/* ==========================================================================
   NANOMAX — main stylesheet
   Values are taken 1:1 from design-reference/BlueShield.dc.html.

   1. Design tokens
   2. Base / reset
   3. Layout helpers
   4. Components (buttons, eyebrow, headings, rows, fields)
   5. Sections (top to bottom of the homepage)
   6. Product pages (products.php, product.php)
   7. Responsive tweaks
   ========================================================================== */


/* 1. Design tokens
   ========================================================================== */
:root {
  /* Brand colours */
  --navy-950: #0A1838;   /* announcement bar */
  --navy-900: #0F224C;   /* hero, warranty, footer, body text */
  --blue-700: #1D3A7A;   /* primary brand blue */
  --accent:   #D7B0A9;   /* rose-gold accent */

  /* Surfaces & lines */
  --white:        #FFFFFF;
  --surface-tint: #F2F6FC;
  --line:         #DCE5F5;
  --line-strong:  #C9D6EE;
  --line-dark:    #2B4170;
  --input-line:   #8FA3C7;

  /* Text */
  --text:            var(--navy-900);
  --text-muted:      #3D4C68;
  --text-on-dark:    #C5D3EE;
  --text-on-dark-hi: #E3EAF8;

  /* Type */
  --font-display: 'Sora', system-ui, sans-serif;
  --font-body:    'Inter', system-ui, sans-serif;
  --fs-title: clamp(34px, 3.8vw, 52px);

  /* Layout */
  --container: 1280px;
  --gutter: 40px;
  --section-y: 112px;

  /* Radii */
  --r-sm: 8px;
  --r-md: 10px;
  --r-lg: 12px;
  --r-xl: 20px;
  --r-2xl: 24px;
  --r-3xl: 28px;
}


/* 2. Base / reset
   ========================================================================== */
*,
*::before,
*::after { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--white);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, p { margin: 0; }

ul, ol { margin: 0; padding: 0; list-style: none; }

/* :where() keeps specificity at zero so component classes always win */
:where(a) { color: var(--blue-700); }
:where(a:hover) { color: var(--navy-900); }

.text-accent { color: var(--accent); }
.text-muted  { color: var(--text-muted); }

/* Hidden on screen, still read by screen readers */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}


/* 3. Layout helpers
   ========================================================================== */
.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section-y); }
.section--flush-top { padding-top: 0; }
.section--stack { display: flex; flex-direction: column; gap: 48px; }

.band--tint { background: var(--surface-tint); }
.band--dark { background: var(--navy-900); color: var(--white); }

.grid { display: grid; }
.grid--340 { grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); gap: 24px; }
.grid--270 { grid-template-columns: repeat(auto-fit, minmax(min(270px, 100%), 1fr)); gap: 20px; }
.grid--220 { grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 32px; }

/* Two-column split that stacks below ~1000px */
.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(480px, 100%), 1fr)); }
.split--64 { gap: 64px; }
.split--56 { gap: 56px; }
.split--48 { gap: 48px; }
.split--center { align-items: center; }

.stack-20 { display: flex; flex-direction: column; gap: 20px; }
.stack-24 { display: flex; flex-direction: column; gap: 24px; }
.stack-28 { display: flex; flex-direction: column; gap: 28px; }


/* 4. Components
   ========================================================================== */

/* Buttons --------------------------------------------------------------- */
.btn {
  display: inline-block;
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  text-align: center;
  padding: 15px 26px;
  border: 0;
  border-radius: var(--r-md);
  cursor: pointer;
}
.btn--sm    { font-size: 15px; padding: 14px 24px; }
.btn--lg    { font-size: 17px; padding: 19px 34px; border-radius: var(--r-lg); }
.btn--wide  { padding: 17px 30px; }
.btn--block { width: 100%; padding: 17px; }

.btn--accent,
.btn--accent:hover  { background: var(--accent); color: var(--navy-900); }
.btn--primary,
.btn--primary:hover { background: var(--blue-700); color: var(--white); }
.btn--light,
.btn--light:hover   { background: var(--white); color: var(--navy-900); }
.btn--ghost,
.btn--ghost:hover   { background: transparent; color: var(--white); border: 2px solid var(--white); }
.btn--ghost.btn--lg { padding: 17px 34px; }

.link-strong { font-weight: 600; padding: 12px 0; }

/* Section headings ------------------------------------------------------ */
.section-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
}

.section-head {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 640px;
}

.eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue-700);
}
.eyebrow--accent { color: var(--accent); }

.section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-title);
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.lead-muted { color: var(--text-muted); font-size: 18px; max-width: 480px; }
.lead-muted--460 { max-width: 460px; }

/* Divided rows (tech layers, install steps) ---------------------------- */
.rows > li {
  display: flex;
  border-top: 1px solid var(--line);
}
.rows > li:last-child { border-bottom: 1px solid var(--line); }

.rows--tech > li { gap: 20px; padding: 20px 0; border-color: var(--line-strong); }
.rows--steps > li { gap: 16px; padding: 18px 0; }

.rows__num { color: var(--blue-700); min-width: 28px; }
.rows__num--display { font-family: var(--font-display); font-weight: 700; min-width: 32px; }
.rows__sub { color: var(--text-muted); font-size: 15px; }

/* Form fields ----------------------------------------------------------- */
.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
}
.field__row { display: flex; flex-wrap: wrap; gap: 10px; }
.field__row .input { flex: 1 1 220px; padding: 15px 16px; }

.input {
  font: inherit;
  font-size: 16px;
  padding: 14px;
  border: 1.5px solid var(--input-line);
  border-radius: var(--r-md);
  background: var(--white);
  color: var(--text);
}


/* 5. Sections
   ========================================================================== */

/* Announcement bar ------------------------------------------------------ */
.topbar { background: var(--navy-950); color: var(--text-on-dark); font-size: 13px; }
.topbar__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding-block: 10px;
}
.topbar__links { display: flex; gap: 24px; }
.topbar__links a { color: var(--white); }

/* Hero ------------------------------------------------------------------ */
.hero {
  position: relative;
  isolation: isolate;
  min-height: 860px;
  overflow: hidden;
  background: var(--navy-900);
  color: var(--white);
}
.hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
  filter: grayscale(1) contrast(1.15) brightness(1.05);
}
.hero__tint {
  position: absolute;
  inset: 0;
  background: var(--blue-700);
  mix-blend-mode: color;
}
.hero__fade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg,
    rgba(15, 34, 76, 0.95) 0%,
    rgba(15, 34, 76, 0.8) 34%,
    rgba(15, 34, 76, 0.2) 70%,
    rgba(15, 34, 76, 0.05) 100%);
}

.site-header { position: relative; border-bottom: 1px solid rgba(255, 255, 255, 0.18); }
.site-header__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-block: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 24px;
  letter-spacing: 0.14em;
  color: var(--accent);
  text-decoration: none;
}
.brand:hover { color: var(--accent); }
.brand__logo { width: 52px; height: 52px; object-fit: cover; border-radius: var(--r-md); }

.site-nav { display: flex; flex-wrap: wrap; gap: 34px; font-size: 15px; font-weight: 500; }
.site-nav a { color: var(--white); text-decoration: none; padding: 12px 0; }

.hero__body { position: relative; padding-top: 110px; padding-bottom: 120px; }
.hero__content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 28px;
  max-width: 620px;
}

.pill {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.35);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 9px 16px;
  border-radius: 999px;
}
.pill__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }

.hero__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(46px, 6vw, 88px);
  line-height: 0.98;
  letter-spacing: -0.04em;
}
.hero__lead { max-width: 540px; font-size: 20px; line-height: 1.5; color: var(--text-on-dark-hi); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }

.checklist {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-on-dark-hi);
}
.checklist li { display: flex; align-items: center; gap: 8px; }
.checklist svg { color: var(--accent); }

/* Products -------------------------------------------------------------- */
.product-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  overflow: hidden;
}
.product-card__swatch,
.product-card__img { display: block; width: 100%; height: 170px; object-fit: cover; }
.product-card__body { display: flex; flex-direction: column; gap: 10px; padding: 26px; }
.product-card h3 { font-family: var(--font-display); font-weight: 600; font-size: 22px; }
.product-card p { color: var(--text-muted); }
.product-card__meta { font-size: 14px; font-weight: 600; color: var(--blue-700); }

/* Product swatches: --swatch is the product colour set in the admin panel */
.swatch { --swatch: #1D3A7A; background: var(--swatch); }
.swatch--gloss {
  background: linear-gradient(115deg,
    var(--swatch) 0 38%, color-mix(in srgb, var(--swatch), #fff 45%) 38% 46%,
    var(--swatch) 46% 60%, color-mix(in srgb, var(--swatch), #fff 22%) 60% 64%, var(--swatch) 64%);
}
.swatch--satin { background: linear-gradient(115deg, var(--swatch), color-mix(in srgb, var(--swatch), #fff 32%) 50%, var(--swatch)); }
.swatch--matte { background: color-mix(in srgb, var(--swatch), #808080 12%); }

/* Technology: layer diagram -------------------------------------------- */
.layers { display: flex; flex-direction: column; gap: 14px; padding: 16px 40px; }
.layer {
  display: flex;
  align-items: center;
  justify-content: center;
  transform: skewX(-28deg);
  border: 2px solid var(--blue-700);
  border-radius: 6px;
}
.layer span {
  transform: skewX(28deg);
  font-size: 13px;
  font-weight: 600;
  color: var(--blue-700);
}
.layer--top      { height: 44px; background: rgba(29, 58, 122, 0.14); }
.layer--core     { height: 84px; background: var(--white); border-color: #7FAAFF; }
.layer--adhesive { height: 36px; background: #DCE8FF; border: 2px dashed #5E8BE8; }
.layer--paint    { height: 56px; background: var(--navy-900); border-color: var(--navy-900); }
.layer--paint span { color: var(--white); }

/* Before & after -------------------------------------------------------- */
.compare {
  --pos: 50%;             /* updated by js/main.js */
  display: flex;
  flex-direction: column;
  gap: 40px;
}
.compare__head { max-width: none; }
/* Smaller than other section titles so the line fits on one row on desktop */
.compare__title { font-size: clamp(28px, 2.9vw, 42px); }

.compare__frame {
  position: relative;
  border-radius: var(--r-3xl);
  overflow: hidden;
  background: var(--navy-900);
  cursor: ew-resize;
  touch-action: pan-y;    /* vertical swipes still scroll the page on phones */
  user-select: none;
}
.compare__frame:focus-visible { outline: 3px solid var(--blue-700); outline-offset: 4px; }
.compare__img { pointer-events: none; }
.compare__img { width: 100%; height: auto; }
.compare__img--before {
  position: absolute;
  inset: 0;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.35) contrast(0.78) brightness(0.92);
  clip-path: inset(0 calc(100% - var(--pos)) 0 0);
}
.compare__divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--pos);
  width: 4px;
  margin-left: -2px;
  background: var(--white);
}
.compare__handle {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 48px;
  height: 48px;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--white);
  color: var(--blue-700);
  box-shadow: 0 4px 16px rgba(10, 24, 56, 0.35);
}
.compare__tag {
  position: absolute;
  bottom: 20px;
  color: var(--white);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 8px 12px;
  border-radius: var(--r-sm);
}
.compare__tag--before { left: 20px; background: var(--navy-900); }
.compare__tag--after  { right: 20px; background: var(--blue-700); }

/* Feature tiles --------------------------------------------------------- */
.feature {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 32px;
  background: var(--surface-tint);
  border-radius: var(--r-xl);
}
.feature svg { color: var(--blue-700); }
.feature h3 { font-family: var(--font-display); font-weight: 600; font-size: 20px; }
.feature p { color: var(--text-muted); }

/* Installation ---------------------------------------------------------- */
.install__img {
  width: 100%;
  height: 560px;
  object-fit: cover;
  object-position: 22% center;
  border-radius: var(--r-3xl);
}
.install__cta { align-self: flex-start; }

/* Warranty -------------------------------------------------------------- */
.warranty-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 30px;
  border: 1px solid var(--line-dark);
  border-radius: var(--r-xl);
}
.warranty-card__num { font-family: var(--font-display); font-weight: 700; font-size: 28px; color: var(--accent); }
.warranty-card h3 { font-size: 19px; font-weight: 600; }
.warranty-card p { color: var(--text-on-dark); }

/* Dealer enquiry -------------------------------------------------------- */
.contact-details { display: flex; flex-direction: column; gap: 6px; font-weight: 500; }

.enquiry-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 36px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-2xl);
}

/* Footer ---------------------------------------------------------------- */
.site-footer { background: var(--navy-900); color: var(--text-on-dark); }
.site-footer__inner {
  display: flex;
  flex-direction: column;
  gap: 40px;
  padding-top: 64px;
  padding-bottom: 40px;
}
.site-footer__brand { display: flex; flex-direction: column; gap: 12px; font-size: 15px; }
.site-footer__name { font-family: var(--font-display); font-weight: 700; font-size: 20px; color: var(--white); }
.site-footer__col { display: flex; flex-direction: column; gap: 4px; font-size: 15px; }
.site-footer__col a,
.site-footer__col > span:not(.site-footer__title) { color: var(--text-on-dark); padding: 6px 0; }
.site-footer__col a:hover { color: var(--white); }
.site-footer__title { color: var(--white); font-weight: 600; padding-bottom: 6px; }
.site-footer__legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding-top: 24px;
  border-top: 1px solid var(--line-dark);
  font-size: 13px;
}
.site-footer__legal a { color: var(--text-on-dark); }
.site-footer__legal a:hover { color: var(--white); }


/* 6. Product pages
   ========================================================================== */

/* Shared bits used by the product cards on every page ------------------- */
.product-card { position: relative; transition: border-color .2s, box-shadow .2s, transform .2s; }
.product-card:hover {
  border-color: #B9CBEB;
  box-shadow: 0 12px 32px rgba(15, 34, 76, 0.08);
  transform: translateY(-3px);
}
.product-card:focus-within { outline: 3px solid var(--blue-700); outline-offset: 3px; }
.product-card[hidden] { display: none; }
.product-card__link { color: inherit; text-decoration: none; }
.product-card__link:hover { color: inherit; }
.product-card__link:focus-visible { outline: none; }
/* Stretches the title link over the whole card so the card is clickable */
.product-card__link::after { content: ''; position: absolute; inset: 0; }
.product-card__cat {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.product-card__more { margin-top: 4px; font-size: 15px; font-weight: 600; color: var(--blue-700); }

.btn--outline,
.btn--outline:hover { background: transparent; color: var(--blue-700); border: 2px solid var(--blue-700); }
.btn--outline.btn--wide { padding: 15px 28px; }

.site-nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--accent); }

/* Page hero (navy band with the header and page title) ------------------ */
.page-hero {
  background:
    radial-gradient(circle at 85% -20%, rgba(59, 123, 255, 0.35), transparent 55%),
    var(--navy-900);
  color: var(--white);
}
.page-hero__body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  padding-top: 64px;
  padding-bottom: 80px;
}
.page-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(40px, 5vw, 68px);
  line-height: 1.02;
  letter-spacing: -0.04em;
}
.page-lead { max-width: 620px; font-size: 19px; line-height: 1.5; color: var(--text-on-dark-hi); }

.breadcrumb { display: flex; flex-wrap: wrap; gap: 10px; font-size: 14px; color: var(--text-on-dark); }
.breadcrumb a { color: var(--white); }

/* Chips & filters ------------------------------------------------------- */
.chips, .filters { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  font: inherit;
  font-size: 15px;
  font-weight: 500;
  padding: 10px 18px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  color: var(--text);
}
button.chip { cursor: pointer; }
button.chip:hover { border-color: var(--blue-700); }
.chip[aria-pressed="true"] { background: var(--blue-700); border-color: var(--blue-700); color: var(--white); }
.chip--dark {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
  color: var(--white);
  font-size: 14px;
  font-weight: 600;
}

/* Comparison table (products.php) -------------------------------------- */
.table-wrap {
  overflow-x: auto;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
}
.compare-table { width: 100%; min-width: 760px; border-collapse: collapse; text-align: left; }
.compare-table th,
.compare-table td { padding: 18px 24px; border-top: 1px solid var(--line); vertical-align: top; }
.compare-table thead th {
  border-top: 0;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.compare-table tbody th { font-family: var(--font-display); font-weight: 600; white-space: nowrap; }
.compare-table td { color: var(--text-muted); }

/* CTA band -------------------------------------------------------------- */
.cta-band {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
}
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* Product detail (product.php) ----------------------------------------- */
.detail { align-items: start; }
.detail__visual {
  position: sticky;
  top: 32px;
  min-height: 520px;
  border-radius: var(--r-3xl);
  overflow: hidden;
  border: 1px solid var(--line);
}
.detail__visual img { width: 100%; height: 100%; min-height: inherit; object-fit: cover; }
.detail__description { font-size: 19px; line-height: 1.6; }
.detail__best { color: var(--text-muted); }
.detail__best strong { color: var(--text); }
.detail__subtitle { font-family: var(--font-display); font-weight: 600; font-size: 22px; }
.detail__actions { display: flex; flex-wrap: wrap; gap: 14px; }

.ticks { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 14px 24px; }
.ticks li { display: flex; align-items: center; gap: 10px; font-weight: 500; }
.ticks svg { flex: none; color: var(--blue-700); }

.spec-table { width: 100%; border-collapse: collapse; }
.spec-table th,
.spec-table td { padding: 14px 0; border-top: 1px solid var(--line); text-align: left; vertical-align: top; }
.spec-table tr:last-child th,
.spec-table tr:last-child td { border-bottom: 1px solid var(--line); }
.spec-table th { width: 42%; font-weight: 500; color: var(--text-muted); }
.spec-table td { font-weight: 600; }

.feature--white { background: var(--white); }
.feature__num { font-family: var(--font-display); font-weight: 700; font-size: 24px; color: var(--blue-700); }


/* 6b. Contact page (contact.php)
   ========================================================================== */
.contact { align-items: start; }

.contact-list > li {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  font-weight: 500;
}
.contact-list > li:last-child { border-bottom: 1px solid var(--line); }
.contact-list__icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: var(--r-lg);
  background: var(--surface-tint);
  color: var(--blue-700);
}
.contact-list__label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); gap: 18px; }
.field__optional { font-weight: 400; color: var(--text-muted); }
.input:focus-visible { outline: 2px solid var(--blue-700); outline-offset: 1px; border-color: var(--blue-700); }
.input--textarea { min-height: 140px; resize: vertical; line-height: 1.5; }

.check { display: flex; align-items: flex-start; gap: 12px; font-size: 14px; color: var(--text-muted); }
.check input { flex: none; width: 20px; height: 20px; margin-top: 1px; accent-color: var(--blue-700); }

.enquiry-form[hidden] { display: none; }
.contact-thanks { align-items: flex-start; }
.contact-thanks:focus { outline: none; }

.faq details { padding: 22px 0; border-top: 1px solid var(--line-strong); }
.faq details:last-child { border-bottom: 1px solid var(--line-strong); }
.faq summary {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; flex: none; color: var(--blue-700); font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: '\2212'; }
.faq p { margin-top: 12px; max-width: 620px; color: var(--text-muted); }
.faq a { color: var(--blue-700); font-weight: 600; }


/* 6c. Mobile menu button, coverage builder (build.php), film finder (products.php)
   ========================================================================== */
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  border-radius: var(--r-md);
  background: transparent;
  color: var(--white);
  cursor: pointer;
}
.nav-toggle__bar,
.nav-toggle__bar::before,
.nav-toggle__bar::after {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  transition: transform .2s, background-color .2s;
}
.nav-toggle__bar { position: relative; }
.nav-toggle__bar::before,
.nav-toggle__bar::after { content: ''; position: absolute; left: 0; }
.nav-toggle__bar::before { top: -7px; }
.nav-toggle__bar::after { top: 7px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar::after { transform: translateY(-7px) rotate(-45deg); }

.section-row__links { display: flex; flex-wrap: wrap; gap: 0 28px; }
.section-row__side { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }

/* Product search (homepage + products.php) */
.search-field { position: relative; display: flex; align-items: center; width: min(320px, 100%); }
.search-field svg { position: absolute; left: 16px; color: var(--text-muted); pointer-events: none; }
.search-field .input { width: 100%; padding: 13px 16px 13px 46px; border-radius: 999px; }
.search-field--wide { width: min(560px, 100%); }
.product-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
  padding: 18px;
  background: var(--surface-tint);
  border-radius: var(--r-xl);
}
.product-toolbar__count { margin-left: auto; font-size: 14px; font-weight: 600; color: var(--text-muted); }
.product-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 48px 20px;
  border: 1.5px dashed var(--line-strong);
  border-radius: var(--r-xl);
  text-align: center;
}
.product-empty[hidden] { display: none; }
.product-empty__title { font-family: var(--font-display); font-weight: 600; font-size: 20px; }

/* Choice chips built on real radio inputs (keyboard + screen reader friendly) */
.options { display: flex; flex-wrap: wrap; gap: 10px; }
.option { position: relative; cursor: pointer; }
.option input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.option > span {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 18px;
  border: 1.5px solid var(--line-strong);
  border-radius: 999px;
  background: var(--white);
  font-size: 15px;
  font-weight: 500;
  transition: background-color .15s, border-color .15s, color .15s;
}
.option:hover > span { border-color: var(--blue-700); }
.option input:checked + span { background: var(--blue-700); border-color: var(--blue-700); color: var(--white); }
.option input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.option__dot { flex: none; width: 16px; height: 16px; border-radius: 50%; box-shadow: 0 0 0 1.5px rgba(255, 255, 255, 0.8); }


/* Builder layout */
.builder { align-items: start; }
.builder__stage { position: sticky; top: 24px; display: flex; flex-direction: column; gap: 20px; }
.builder__canvas {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 32px 28px 22px;
  background: var(--surface-tint);
  border: 1px solid var(--line);
  border-radius: var(--r-3xl);
}
.builder__legend { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; font-size: 14px; color: var(--text-muted); }
.builder__legend > span { display: inline-flex; align-items: center; gap: 8px; }
.builder__key { width: 18px; height: 18px; border-radius: 5px; border: 1.5px solid #8D9AB2; }
.builder__key:not(.swatch) { background: #D3DBE8; }
.builder__hint { margin-left: auto; }

.builder__summary {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--r-2xl);
}
.builder__facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 16px; margin: 0; }
.builder__facts dt { font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); }
.builder__facts dd { margin: 4px 0 0; font-family: var(--font-display); font-weight: 600; font-size: 17px; }
.builder__areas { font-size: 15px; color: var(--text-muted); }

.builder__controls { display: flex; flex-direction: column; gap: 36px; }
.builder__group { display: flex; flex-direction: column; gap: 14px; min-width: 0; margin: 0; padding: 0; border: 0; }
.builder__group legend {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  padding: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 20px;
}
.builder__step {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--blue-700);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 14px;
}
.builder__note { max-width: 560px; font-size: 15px; color: var(--text-muted); }

.panel-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(170px, 100%), 1fr)); gap: 12px 20px; }
.builder__group .check { align-items: center; font-size: 15px; font-weight: 500; color: var(--text); cursor: pointer; }

/* The SVG car */
.car { display: block; width: 100%; height: auto; overflow: visible; }
.car__wheels rect { fill: #1B2233; }
.car__panel { fill: #D3DBE8; cursor: pointer; transition: opacity .15s; }
.car__panel rect,
.car__panel path,
.car__glass-fixed rect { stroke: #8D9AB2; stroke-width: 2; }
.car__panel:hover { opacity: 0.82; }
.car__panel--glass,
.car__glass-fixed { fill: url(#f-glass); }
.car .car__panel.is-covered { fill: url(#f-film); }
.car .car__panel.car__panel--glass.is-covered { fill: url(#f-glass-film); }
.car__lights path { fill: #F4F7FD; pointer-events: none; }
.car__lights .car__lights--rear { fill: #E2566B; }
.car__outline { fill: none; stroke: #5F6E8C; stroke-width: 2.5; pointer-events: none; }

/* Film finder */
.finder {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr));
  gap: 48px;
  padding: 48px;
  border: 1px solid var(--line);
  border-radius: var(--r-3xl);
  background: linear-gradient(180deg, var(--white), var(--surface-tint));
}
.finder__result {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 14px;
  padding: 36px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-2xl);
}
.finder__result p { color: var(--text-muted); }
.finder__name { font-family: var(--font-display); font-weight: 700; font-size: 32px; letter-spacing: -0.02em; }
.finder__extra a { font-weight: 600; }


/* 6d. Guide pages (ppf-vs-ceramic.php, care.php, faq.php)
   ========================================================================== */
.prose { display: flex; flex-direction: column; gap: 18px; max-width: 680px; font-size: 18px; line-height: 1.65; }
.prose p { color: var(--text-muted); }
.prose strong { color: var(--text); }

.feature__best { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line-strong); }
.feature__best strong { color: var(--text); }

.compare-table--guide td.is-highlight,
.compare-table--guide th.is-highlight { background: rgba(29, 58, 122, 0.06); color: var(--text); font-weight: 600; }
.compare-table--guide thead th.is-highlight { color: var(--blue-700); }
.table-note { font-size: 14px; }

.rows--strong > li { padding: 22px 0; }
.rows--strong .link-strong { padding: 0; white-space: nowrap; }

.ticks--stack { grid-template-columns: 1fr; gap: 14px; }
.ticks--stack li { align-items: flex-start; }
.ticks--stack svg { margin-top: 3px; }
.ticks--no svg { color: #B3243B; }

.callout {
  padding: 20px 24px;
  border-left: 4px solid var(--accent);
  border-radius: var(--r-md);
  background: var(--surface-tint);
  color: var(--text-muted);
}

/* FAQ topic bar sticks to the top while scrolling */
.faq-nav {
  position: sticky;
  top: 0;
  z-index: 5;
  padding-block: 14px;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
}
a.chip { text-decoration: none; }
a.chip:hover { border-color: var(--blue-700); color: var(--text); }
.faq-group { scroll-margin-top: 72px; }
.faq__more { display: inline-block; margin-top: 18px; }

.site-footer__cols { grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr)); }


/* 6e. Warranty check (verify.php), shared form messages
   ========================================================================== */
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: 0.02em; }
input.mono { text-transform: uppercase; }
input.mono::placeholder { text-transform: none; }

.field__hint { font-size: 13px; font-weight: 400; color: var(--text-muted); }
.field__error { font-size: 13px; font-weight: 600; color: #B3243B; }
.field__error[hidden] { display: none; }

.alert {
  padding: 14px 18px;
  border: 1px solid;
  border-radius: var(--r-md);
  font-size: 15px;
  font-weight: 500;
}
.alert[hidden] { display: none; }
.alert--success { background: #ECF8F1; border-color: #A9DCC0; color: #145A35; }
.alert--warning { background: #FFF7E8; border-color: #F0D29A; color: #6B4A08; }
.alert--error   { background: #FDEEF0; border-color: #F1B8C1; color: #8A1C2E; }

/* Result card on verify.php */
.verify { align-items: start; }
.verify-guide { gap: 18px; }
.verify-result {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 32px;
  border: 1px solid var(--line);
  border-top: 6px solid;
  border-radius: var(--r-2xl);
  background: var(--white);
}
.verify-result:focus { outline: none; }
.verify-result--success { border-top-color: #1E8A50; }
.verify-result--warning { border-top-color: #D99A1E; }
.verify-result--danger  { border-top-color: #B3243B; }
.verify-result__title { font-family: var(--font-display); font-weight: 700; font-size: 26px; line-height: 1.2; }
.verify-result__message { color: var(--text-muted); }
.verify-result__details { display: grid; gap: 0; margin: 0; }
.verify-result__details > div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-top: 1px solid var(--line); }
.verify-result__details dt { color: var(--text-muted); }
.verify-result__details dd { margin: 0; font-weight: 600; text-align: right; }



/* 7. Responsive tweaks (phones — not in the desktop-only mockup)
   ========================================================================== */
/* Mobile menu: below this width the nav folds behind the menu button */
@media (max-width: 1180px) {
  .nav-toggle { display: inline-flex; order: 2; margin-left: auto; }
  .site-nav { display: none; order: 3; width: 100%; flex-direction: column; gap: 0; }
  .site-header__cta { display: none; order: 4; }
  .site-header.is-open .site-nav { display: flex; }
  .site-header.is-open .site-header__cta { display: inline-block; }
  .site-nav a { padding: 14px 0; border-top: 1px solid rgba(255, 255, 255, 0.14); }
  .site-nav a[aria-current="page"] { box-shadow: none; color: var(--accent); }
}

@media (max-width: 1000px) {
  .detail__visual { position: static; min-height: 320px; }
  .builder__stage { position: static; }
}

@media (max-width: 640px) {
  .section-row__side { align-items: stretch; width: 100%; }
  .search-field { width: 100%; }
  .product-toolbar { padding: 14px; }
  .product-toolbar__count { margin-left: 0; }
  :root {
    --gutter: 20px;
    --section-y: 72px;
  }
  .hero { min-height: 0; }
  .hero__body { padding-top: 72px; padding-bottom: 80px; }
  .layers { padding-inline: 24px; }
  .install__img { height: 360px; }
  .enquiry-form { padding: 24px; }
  .page-hero__body { padding-top: 48px; padding-bottom: 56px; }
  .detail__visual { min-height: 240px; }
  .builder__canvas { padding: 20px 14px 16px; }
  .builder__hint { margin-left: 0; }
  .finder { padding: 24px; gap: 32px; }
  .finder__result { padding: 24px; }
}
