:root {
  --color-ink: #15181d;
  --color-ink-soft: #404752;
  --color-muted: #69717d;
  --color-line: #dfe4ea;
  --color-surface: #ffffff;
  --color-surface-soft: #f5f7f8;
  --color-surface-strong: #20252c;
  --color-accent: #c9331d;
  --color-accent-dark: #9f2516;
  --color-safety: #087f7a;
  --color-warning: #f2b544;
  --shadow-soft: 0 18px 50px rgba(21, 24, 29, 0.12);
  --container: 1180px;
  --radius: 8px;
  --header-height: 84px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--color-ink);
  font-family: "Inter", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  background: var(--color-surface);
  text-rendering: optimizeLegibility;
}

body.has-panel-open {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.container {
  width: min(100% - 32px, var(--container));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 1000;
  padding: 10px 14px;
  color: #ffffff;
  background: var(--color-ink);
  border-radius: 6px;
  transform: translateY(-160%);
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid rgba(223, 228, 234, 0.88);
  box-shadow: 0 10px 28px rgba(21, 24, 29, 0.05);
}

.topbar {
  color: #ffffff;
  background: var(--color-surface-strong);
}

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 38px;
  gap: 20px;
}

.topbar p {
  margin: 0;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.78);
}

.topbar__links {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 0.84rem;
  font-weight: 600;
}

.topbar__links a {
  color: #ffffff;
}

.topbar__links a:hover,
.topbar__links a:focus {
  color: var(--color-warning);
}

.navbar {
  background: var(--color-surface);
}

.navbar__inner {
  display: flex;
  align-items: center;
  min-height: var(--header-height);
  gap: 28px;
}

.brand {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
}

.brand img {
  width: 110px;
}

.primary-nav {
  margin-left: auto;
}

.primary-nav__list {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.primary-nav a,
.mega-trigger {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  color: var(--color-ink);
  font-size: 0.94rem;
  font-weight: 700;
  background: transparent;
  border: 0;
  border-radius: 6px;
}

.primary-nav a:hover,
.primary-nav a:focus,
.mega-trigger:hover,
.mega-trigger:focus,
.primary-nav a.is-active,
.mega-trigger.is-active {
  color: var(--color-accent);
  background: #fff3f0;
}

.has-mega {
  position: relative;
}

.mega-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  width: min(760px, calc(100vw - 32px));
  padding-top: 12px;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 8px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.has-mega:hover .mega-menu,
.has-mega:focus-within .mega-menu,
.has-mega.is-open .mega-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

.mega-menu__panel {
  display: grid;
  grid-template-columns: 1fr 1fr 1.1fr;
  gap: 20px;
  padding: 22px;
  background: #ffffff;
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.mega-menu__panel a {
  display: flex;
  width: 100%;
  min-height: auto;
  padding: 9px 0;
  color: var(--color-ink-soft);
  background: transparent;
  border-radius: 0;
}

.mega-menu__panel a:hover,
.mega-menu__panel a:focus {
  color: var(--color-accent);
  background: transparent;
}

.mega-menu__eyebrow,
.section-eyebrow {
  margin: 0 0 10px;
  color: var(--color-accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.mega-menu__cta {
  padding: 18px;
  background: var(--color-surface-soft);
  border-radius: var(--radius);
}

.mega-menu__cta p {
  margin: 0 0 12px;
  color: var(--color-ink);
  font-weight: 700;
  line-height: 1.45;
}

.navbar__cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  font-size: 0.94rem;
  font-weight: 800;
  border: 1px solid transparent;
  border-radius: 6px;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.navbar__cta,
.button--primary {
  color: #ffffff;
  background: var(--color-accent);
  border-color: var(--color-accent);
}

.navbar__cta:hover,
.navbar__cta:focus,
.button--primary:hover,
.button--primary:focus {
  background: var(--color-accent-dark);
  border-color: var(--color-accent-dark);
  transform: translateY(-1px);
}

.button--secondary {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.42);
}

.button--secondary:hover,
.button--secondary:focus {
  background: rgba(255, 255, 255, 0.22);
}

.button--ghost {
  color: var(--color-ink);
  background: #ffffff;
  border-color: var(--color-line);
}

.button--ghost:hover,
.button--ghost:focus {
  color: var(--color-accent);
  border-color: #efb3aa;
}

.text-link {
  color: var(--color-accent);
  font-weight: 800;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.section {
  padding: 36px 0;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 36px;
}

.section-heading--split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 420px);
  align-items: end;
  max-width: none;
  gap: 32px;
}

.section-heading h2,
.product-copy h2,
.authority-layout h2,
.cta-panel h2 {
  margin: 0;
  color: var(--color-ink);
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.08;
}

.section-heading p:not(.section-eyebrow),
.product-copy p,
.authority-layout p,
.cta-panel p {
  margin: 12px 0 0;
  color: var(--color-muted);
}

.site-footer {
  color: #ffffff;
  background: var(--color-surface-strong);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr 1.1fr;
  gap: 36px;
  padding: 64px 0;
}

.footer-brand img {
  width: 172px;
  padding: 10px;
  background: #ffffff;
  border-radius: 6px;
}

.footer-grid h2 {
  margin: 0 0 16px;
  color: #ffffff;
  font-size: 1rem;
}

.footer-grid p {
  margin: 16px 0 0;
  color: rgba(255, 255, 255, 0.7);
}

.footer-grid a {
  display: block;
  margin-top: 9px;
  color: rgba(255, 255, 255, 0.72);
}

.footer-grid a:hover,
.footer-grid a:focus {
  color: var(--color-warning);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.footer-bottom__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 58px;
  gap: 20px;
}

.footer-bottom p {
  margin: 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.9rem;
}

.footer-bottom a {
  color: #ffffff;
  font-weight: 800;
}

.floating-actions {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 120;
  display: grid;
  gap: 10px;
}

.floating-actions__item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 86px;
  min-height: 42px;
  padding: 0 12px;
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 800;
  border: 0;
  border-radius: 6px;
  box-shadow: 0 10px 28px rgba(21, 24, 29, 0.18);
}

.floating-actions__item--phone {
  background: #176db6;
}

.floating-actions__item--whatsapp {
  background: #1a8f4f;
}

.floating-actions__item--enquiry {
  background: var(--color-accent);
}

.enquiry-panel {
  position: fixed;
  inset: 0;
  z-index: 160;
  display: none;
}

.enquiry-panel.is-open {
  display: block;
}

.enquiry-panel__overlay {
  position: absolute;
  inset: 0;
  background: rgba(21, 24, 29, 0.62);
}

.enquiry-panel__dialog {
  position: absolute;
  top: 0;
  right: 0;
  width: min(100%, 430px);
  height: 100%;
  padding: 34px;
  overflow-y: auto;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.enquiry-panel__close {
  position: absolute;
  top: 16px;
  right: 16px;
  min-height: 36px;
  padding: 0 12px;
  color: var(--color-ink);
  background: var(--color-surface-soft);
  border: 1px solid var(--color-line);
  border-radius: 6px;
}

.enquiry-panel h2 {
  margin: 0 0 22px;
  font-size: 1.8rem;
  line-height: 1.15;
}

.enquiry-form,
.quote-form {
  display: grid;
  gap: 14px;
}

.enquiry-form label,
.quote-form label {
  display: grid;
  gap: 6px;
  color: var(--color-ink-soft);
  font-size: 0.9rem;
  font-weight: 700;
}

.enquiry-form input,
.enquiry-form textarea,
.quote-form input,
.quote-form select,
.quote-form textarea {
  width: 100%;
  min-height: 46px;
  padding: 11px 12px;
  color: var(--color-ink);
  background: #ffffff;
  border: 1px solid #ccd4dc;
  border-radius: 6px;
}

.enquiry-form textarea,
.quote-form textarea {
  resize: vertical;
}

.enquiry-form input:focus,
.enquiry-form textarea:focus,
.quote-form input:focus,
.quote-form select:focus,
.quote-form textarea:focus {
  outline: 3px solid rgba(201, 51, 29, 0.18);
  border-color: var(--color-accent);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  margin-left: auto;
  padding: 0;
  background: #ffffff;
  border: 1px solid var(--color-line);
  border-radius: 6px;
}

.nav-toggle__bar {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: var(--color-ink);
}

@media (max-width: 980px) {
  .topbar__inner {
    align-items: flex-start;
    flex-direction: column;
    padding: 8px 0;
    gap: 4px;
  }

  .navbar__inner {
    min-height: 74px;
  }

  .nav-toggle {
    display: block;
  }

  .navbar__cta {
    display: none;
  }

  .primary-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    margin: 0;
    padding: 14px 16px 20px;
    background: #ffffff;
    border-top: 1px solid var(--color-line);
    box-shadow: 0 16px 34px rgba(21, 24, 29, 0.12);
  }

  .primary-nav.is-open {
    display: block;
  }

  .primary-nav__list {
    align-items: stretch;
    flex-direction: column;
  }

  .primary-nav a,
  .mega-trigger {
    justify-content: space-between;
    width: 100%;
    min-height: 46px;
    padding: 0 10px;
  }

  .mega-menu {
    position: static;
    display: none;
    width: 100%;
    padding-top: 0;
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }

  .has-mega.is-open .mega-menu {
    display: block;
  }

  .mega-menu__panel {
    grid-template-columns: 1fr;
    margin: 8px 0 12px;
    padding: 16px;
    box-shadow: none;
  }

  .section,
  .footer-grid {
    padding: 58px 0;
  }

  .section-heading--split,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom__inner {
    align-items: flex-start;
    flex-direction: column;
    padding: 18px 0;
    gap: 8px;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 24px, var(--container));
  }

  .brand img {
    width: 150px;
  }

  .topbar__links {
    align-items: flex-start;
    flex-direction: column;
    gap: 2px;
  }

  .floating-actions {
    right: 12px;
    bottom: 12px;
  }

  .floating-actions__item {
    min-width: 76px;
    min-height: 38px;
    font-size: 0.72rem;
  }

  .enquiry-panel__dialog {
    padding: 30px 20px;
  }
}
