/* ============================================================
   Clean Vents UK Ltd — style.css
   Single shared stylesheet. Mobile-first. System fonts only.
   ============================================================ */

:root {
  --navy: #0B1E33;
  --blue: #1470D6;
  --blue-dark: #0E4FA8;
  --light: #F4F7FB;
  --white: #FFFFFF;
  --accent: #F59E0B;
  --accent-dark: #D97706;
  --whatsapp: #25D366;
  --text: #1A2B3C;
  --muted: #52627A;
  --border: #DCE4EF;
  --radius: 8px;
  --shadow: 0 4px 20px rgba(11, 30, 51, 0.10);
  --shadow-lg: 0 10px 34px rgba(11, 30, 51, 0.16);
  --maxw: 1180px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, Helvetica, Arial, sans-serif;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.2; color: var(--navy); margin: 0 0 .5em; font-weight: 800; }
h1 { font-size: clamp(1.85rem, 1.2rem + 3vw, 3rem); }
h2 { font-size: clamp(1.5rem, 1.1rem + 2vw, 2.25rem); }
h3 { font-size: clamp(1.15rem, 1rem + .6vw, 1.4rem); }
p { margin: 0 0 1rem; }
ul, ol { margin: 0 0 1rem; padding-left: 1.25rem; }
li { margin-bottom: .4rem; }

/* ---------- Accessibility helpers ---------- */
.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 2000;
  background: var(--accent); color: var(--navy); padding: .75rem 1.25rem;
  font-weight: 700; border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus { left: 0; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 20px; }
section { padding: clamp(2.5rem, 1.5rem + 4vw, 4.5rem) 0; }
.section-light { background: var(--light); }
.section-navy { background: var(--navy); color: #E7EEF7; }
.section-navy h1, .section-navy h2, .section-navy h3 { color: var(--white); }
.section-head { max-width: 760px; margin: 0 auto 2.25rem; text-align: center; }
.section-head p { color: var(--muted); font-size: 1.075rem; }
.section-navy .section-head p { color: #B9C6D8; }
.eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 800; letter-spacing: .12em;
  text-transform: uppercase; color: var(--blue); margin-bottom: .6rem;
}
.section-navy .eyebrow { color: var(--accent); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-weight: 700; font-size: 1rem; line-height: 1; text-align: center;
  padding: .95rem 1.5rem; border-radius: var(--radius); border: 2px solid transparent;
  cursor: pointer; transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
  min-height: 48px; text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn-primary { background: var(--accent); color: var(--navy); border-color: var(--accent); }
.btn-primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.btn-secondary { background: var(--blue); color: var(--white); border-color: var(--blue); }
.btn-secondary:hover { background: var(--blue-dark); border-color: var(--blue-dark); }
.btn-outline { background: transparent; color: var(--blue); border-color: var(--blue); }
.btn-outline:hover { background: var(--blue); color: var(--white); }
.btn-ghost { background: transparent; color: var(--white); border-color: rgba(255,255,255,.6); }
.btn-ghost:hover { background: rgba(255,255,255,.12); }
.btn-block { width: 100%; }

/* ---------- Utility top bar ---------- */
.utilitybar { background: var(--navy); color: #D6E1F0; font-size: .875rem; }
.utilitybar .container { display: flex; align-items: center; gap: 1.25rem; padding-block: .5rem; flex-wrap: wrap; }
.utilitybar a { color: #D6E1F0; }
.utilitybar a:hover { color: var(--white); }
.utilitybar .u-item { display: inline-flex; align-items: center; gap: .4rem; }
.utilitybar .u-spacer { margin-left: auto; }
.utilitybar .u-quote {
  background: var(--accent); color: var(--navy); font-weight: 700;
  padding: .35rem .85rem; border-radius: var(--radius);
}
.utilitybar .u-quote:hover { background: var(--accent-dark); text-decoration: none; }
.utilitybar .u-hours { color: #9FB2CC; }

/* ---------- Header / nav ---------- */
.site-header { position: sticky; top: 0; z-index: 1000; background: var(--white); box-shadow: 0 2px 10px rgba(11,30,51,.07); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: .75rem; }
.brand { display: inline-flex; flex-direction: column; line-height: 1; }
.brand:hover { text-decoration: none; }
.brand .brand-name { font-size: 1.3rem; font-weight: 900; letter-spacing: .02em; }
.brand .brand-name .c-clean { color: var(--blue); }
.brand .brand-name .c-vents { color: var(--navy); }
.brand .brand-sub { font-size: .62rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); font-weight: 700; margin-top: .25rem; }

.mainnav ul { list-style: none; display: flex; gap: .25rem; margin: 0; padding: 0; align-items: center; }
.mainnav > ul > li { position: relative; }
.mainnav a, .mainnav .navlabel {
  display: inline-flex; align-items: center; gap: .3rem; padding: .6rem .8rem;
  color: var(--navy); font-weight: 600; border-radius: var(--radius); background: none;
  border: 0; font-size: 1rem; font-family: inherit; cursor: pointer;
}
.mainnav a:hover, .mainnav .navlabel:hover { background: var(--light); text-decoration: none; color: var(--blue); }
.has-dropdown > .navlabel::after { content: "▾"; font-size: .75rem; transition: transform .16s ease; }
.has-dropdown.open > .navlabel::after { transform: rotate(180deg); }
.has-dropdown.open > .navlabel { background: var(--light); color: var(--blue); }
/* Selector is .mainnav .dropdown so the hide rule out-specifies `.mainnav ul { display:flex }` */
.mainnav .dropdown {
  position: absolute; top: 100%; left: 0; min-width: 250px; background: var(--white);
  border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-lg);
  padding: .4rem; display: none; flex-direction: column; gap: 0;
}
.dropdown li { margin: 0; }
.dropdown a { display: block; padding: .6rem .8rem; font-weight: 500; }
/* Dropdowns open on click only (toggled via .open by main.js) — with a smooth entrance */
.has-dropdown.open > .dropdown { display: flex; animation: ddIn .16s ease; }
@keyframes ddIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .has-dropdown.open > .dropdown { animation: none; } }

.nav-toggle {
  display: none; background: none; border: 2px solid var(--border); border-radius: var(--radius);
  width: 48px; height: 48px; cursor: pointer; padding: 0; align-items: center; justify-content: center;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; display: block; width: 22px; height: 2px; background: var(--navy); position: relative; transition: .2s;
}
.nav-toggle span::before { position: absolute; top: -7px; }
.nav-toggle span::after { position: absolute; top: 7px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: rotate(45deg); top: 0; }
.nav-toggle[aria-expanded="true"] span::after { transform: rotate(-45deg); top: 0; }

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .mainnav {
    position: fixed; inset: 0 0 0 auto; width: min(88vw, 340px); background: var(--white);
    box-shadow: var(--shadow-lg); transform: translateX(100%); transition: transform .25s ease;
    padding: 5rem 1rem 2rem; overflow-y: auto; z-index: 1100;
  }
  .mainnav.open { transform: translateX(0); }
  .mainnav ul { flex-direction: column; align-items: stretch; gap: .1rem; }
  .mainnav a, .mainnav .navlabel { width: 100%; }
  .mainnav .dropdown { position: static; box-shadow: none; border: 0; border-left: 3px solid var(--light); border-radius: 0; margin-left: .5rem; padding-left: .25rem; min-width: 0; }
  .has-dropdown > .navlabel { justify-content: space-between; }
  .nav-backdrop { display: none; position: fixed; inset: 0; background: rgba(11,30,51,.5); z-index: 1050; }
  .nav-backdrop.open { display: block; }
}

/* ---------- Hero ---------- */
.hero { position: relative; color: var(--white); }
.hero .placeholder { position: absolute; inset: 0; z-index: 0; border-radius: 0; }
.hero-overlay { position: relative; z-index: 1; background: linear-gradient(100deg, rgba(11,30,51,.92) 0%, rgba(11,30,51,.78) 55%, rgba(11,30,51,.55) 100%); }
.hero-inner { padding-block: clamp(3rem, 2rem + 6vw, 6rem); max-width: 720px; }
.hero h1 { color: var(--white); margin-bottom: .75rem; }
.hero .subline { font-size: 1.15rem; color: #D6E1F0; margin-bottom: 1.5rem; }
.hero .btn-row { display: flex; flex-wrap: wrap; gap: .85rem; margin-bottom: 1.75rem; }
.trust-chips { display: flex; flex-wrap: wrap; gap: .6rem; list-style: none; padding: 0; margin: 0; }
.trust-chips li {
  display: inline-flex; align-items: center; gap: .45rem; margin: 0;
  background: rgba(255,255,255,.10); border: 1px solid rgba(255,255,255,.22);
  padding: .5rem .85rem; border-radius: 50px; font-size: .875rem; font-weight: 600;
}
.trust-chips li::before { content: "✓"; color: var(--accent); font-weight: 900; }

/* ---------- Placeholder image blocks ---------- */
.placeholder {
  display: flex; align-items: center; justify-content: center; text-align: center;
  background: linear-gradient(135deg, #24384f 0%, #0B1E33 100%);
  color: #9FB2CC; font-size: .8rem; font-weight: 600; letter-spacing: .03em;
  padding: 1rem; border-radius: var(--radius); border: 1px dashed rgba(159,178,204,.35);
  min-height: 180px; line-height: 1.4;
}
.placeholder.ph-round { border-radius: 50%; }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

.card {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.6rem; box-shadow: var(--shadow); transition: transform .18s ease, box-shadow .18s ease;
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.card h3 { margin-bottom: .4rem; }
.card p { color: var(--muted); }
.card .card-link { margin-top: auto; font-weight: 700; }
.card .card-link::after { content: " →"; }

.icon-circle {
  width: 60px; height: 60px; border-radius: 50%; background: var(--blue);
  color: var(--white); display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 1rem; flex-shrink: 0;
}
.icon-circle svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 2; }

/* ---------- Why choose / feature list ---------- */
.feature-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.feature-list li { margin: 0; display: flex; gap: .85rem; align-items: flex-start; }
.feature-list .fi-icon {
  width: 42px; height: 42px; border-radius: 50%; background: rgba(20,112,214,.18);
  color: var(--accent); display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0; font-weight: 900;
}
.feature-list h3 { color: var(--white); font-size: 1.1rem; margin-bottom: .2rem; }
.feature-list p { color: #B9C6D8; margin: 0; font-size: .95rem; }

/* ---------- Compliance strip ---------- */
.chip-row { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center; list-style: none; padding: 0; margin: 0 0 1.25rem; }
.chip-row li { margin: 0; }
.chip {
  display: inline-block; background: var(--white); border: 1px solid var(--border);
  padding: .6rem 1.1rem; border-radius: 50px; font-weight: 700; color: var(--navy); font-size: .95rem;
}
.section-navy .chip { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.2); color: var(--white); }

/* ---------- Steps ---------- */
.steps { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); counter-reset: step; }
.step { text-align: center; padding: 1.5rem; }
.step .step-num {
  width: 54px; height: 54px; border-radius: 50%; background: var(--accent); color: var(--navy);
  font-weight: 900; font-size: 1.4rem; display: inline-flex; align-items: center; justify-content: center; margin-bottom: 1rem;
}

/* ---------- Industries ---------- */
.industry-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.industry-grid .industry {
  display: flex; align-items: center; gap: .75rem; background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1rem 1.1rem; font-weight: 600; box-shadow: var(--shadow);
}
.industry .ind-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--blue); flex-shrink: 0; }

/* ---------- Testimonials ---------- */
.testimonial { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.75rem; box-shadow: var(--shadow); }
.testimonial blockquote { margin: 0 0 1rem; font-style: italic; color: var(--text); }
.testimonial .t-author { font-weight: 700; color: var(--navy); font-style: normal; }
.testimonial .t-role { color: var(--muted); font-size: .9rem; }

/* ---------- Content / prose ---------- */
.prose { max-width: 760px; }
.prose h2 { margin-top: 2.25rem; }
.prose h3 { margin-top: 1.5rem; }
.prose ul li::marker { color: var(--blue); }
.content-wrap { display: grid; gap: 2.5rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 980px) { .content-wrap.has-aside { grid-template-columns: minmax(0, 1fr) 320px; } }
.aside-card { background: var(--light); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; align-self: start; position: sticky; top: 90px; }
.aside-card h3 { font-size: 1.1rem; }
.aside-card ul { list-style: none; padding: 0; margin: 0; }
.aside-card li { border-bottom: 1px solid var(--border); padding: .5rem 0; margin: 0; }
.aside-card li:last-child { border-bottom: 0; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; margin: 1.25rem 0; }
table { border-collapse: collapse; width: 100%; min-width: 460px; background: var(--white); }
th, td { text-align: left; padding: .8rem 1rem; border: 1px solid var(--border); }
thead th { background: var(--navy); color: var(--white); }
tbody tr:nth-child(even) { background: var(--light); }

/* ---------- Breadcrumb ---------- */
.breadcrumb { background: var(--light); border-bottom: 1px solid var(--border); font-size: .875rem; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: .35rem; margin: 0; padding: .75rem 0; }
.breadcrumb li { margin: 0; }
.breadcrumb li + li::before { content: "/"; margin-right: .35rem; color: var(--muted); }
.breadcrumb [aria-current="page"] { color: var(--muted); }

/* ---------- FAQ ---------- */
.faq details { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: .85rem; overflow: hidden; }
.faq summary { cursor: pointer; padding: 1.1rem 1.25rem; font-weight: 700; color: var(--navy); list-style: none; position: relative; padding-right: 3rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 1.25rem; top: 50%; transform: translateY(-50%); font-size: 1.5rem; color: var(--blue); font-weight: 400; }
.faq details[open] summary::after { content: "–"; }
.faq details > *:not(summary) { padding: 0 1.25rem; }
.faq details p:last-child { padding-bottom: 1.1rem; }

/* ---------- Forms ---------- */
.form-panel { background: var(--blue); color: var(--white); }
.form-panel h2 { color: var(--white); }
.quote-card { background: var(--white); border-radius: var(--radius); padding: 1.75rem; box-shadow: var(--shadow-lg); }
.quote-form .field { margin-bottom: 1rem; }
.quote-form label { display: block; font-weight: 600; margin-bottom: .35rem; color: var(--navy); }
.quote-form label .req { color: var(--accent-dark); }
.quote-form input, .quote-form select, .quote-form textarea {
  width: 100%; padding: .8rem .9rem; border: 1px solid var(--border); border-radius: var(--radius);
  font-family: inherit; font-size: 1rem; color: var(--text); background: var(--white); min-height: 48px;
}
.quote-form textarea { min-height: 120px; resize: vertical; }
.quote-form input:focus, .quote-form select:focus, .quote-form textarea:focus { border-color: var(--blue); outline: 2px solid rgba(20,112,214,.3); outline-offset: 1px; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin-top: 1rem; padding: 1rem; border-radius: var(--radius); font-weight: 600; display: none; }
.form-status.show { display: block; }
.form-status.success { background: #E6F6EC; color: #10623A; border: 1px solid #A7E0BE; }
.form-status.error { background: #FDECEC; color: #8A1C1C; border: 1px solid #F3B4B4; }
.contact-details { color: #E7EEF7; }
.contact-details h3 { color: var(--white); }
.contact-details a { color: var(--white); font-weight: 600; }
.contact-list { list-style: none; padding: 0; margin: 0 0 1.25rem; }
.contact-list li { display: flex; gap: .6rem; align-items: flex-start; margin-bottom: .75rem; }

/* ---------- Pre-footer CTA ---------- */
.cta-band { background: var(--navy); color: var(--white); text-align: center; }
.cta-band h2 { color: var(--white); max-width: 760px; margin-inline: auto; }
.cta-band .btn-row { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-top: 1.5rem; align-items: center; }
.cta-band .cta-phone { color: var(--white); font-weight: 800; font-size: 1.25rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #B9C6D8; padding-top: 3rem; }
.site-footer a { color: #D6E1F0; }
.site-footer a:hover { color: var(--white); }
.footer-grid { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.footer-col h4 { color: var(--white); font-size: 1rem; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 1rem; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: .5rem; }
.badge-row { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }
.badge {
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.18); border-radius: var(--radius);
  padding: .5rem .7rem; font-size: .72rem; font-weight: 700; color: #D6E1F0; text-align: center; line-height: 1.3;
}
.badge span { display: block; color: var(--accent); font-size: .62rem; font-weight: 700; }
.footer-nap { font-style: normal; font-size: .9rem; line-height: 1.7; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 2.5rem; padding: 1.25rem 0; font-size: .85rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem; }

/* ---------- WhatsApp widget ---------- */
.wa-widget { position: fixed; right: 18px; bottom: 18px; z-index: 1200; }
.wa-btn {
  display: inline-flex; align-items: center; gap: .6rem; background: var(--whatsapp); color: #fff;
  border: none; border-radius: 50px; padding: .8rem 1.15rem; font-weight: 700; font-size: .95rem;
  cursor: pointer; box-shadow: var(--shadow-lg); font-family: inherit; text-decoration: none;
  max-width: 78vw;
}
.wa-btn:hover { text-decoration: none; filter: brightness(1.05); }
.wa-btn.offline { background: var(--navy); }
.wa-btn .wa-icon { width: 26px; height: 26px; flex-shrink: 0; }
.wa-label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wa-dot { width: 10px; height: 10px; border-radius: 50%; background: #C9F7D6; position: relative; flex-shrink: 0; }
.wa-btn.offline .wa-dot { display: none; }
.wa-dot::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; background: rgba(201,247,214,.6); animation: wa-pulse 1.8s infinite; }
@keyframes wa-pulse { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(2.4); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .wa-dot::after { animation: none; } html { scroll-behavior: auto; } }
.wa-dismiss {
  position: absolute; top: -8px; right: -8px; width: 24px; height: 24px; border-radius: 50%;
  background: var(--white); color: var(--navy); border: 1px solid var(--border); cursor: pointer;
  font-size: 14px; line-height: 1; font-weight: 700; box-shadow: var(--shadow);
}

/* ---------- Modal ---------- */
.modal { position: fixed; inset: 0; z-index: 1300; display: none; align-items: center; justify-content: center; padding: 1rem; }
.modal.open { display: flex; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(11,30,51,.6); }
.modal-box { position: relative; background: var(--white); border-radius: var(--radius); max-width: 480px; width: 100%; max-height: 90vh; overflow-y: auto; padding: 1.75rem; box-shadow: var(--shadow-lg); }
.modal-box h2 { font-size: 1.4rem; }
.modal-close { position: absolute; top: .75rem; right: .75rem; background: var(--light); border: 1px solid var(--border); border-radius: 50%; width: 40px; height: 40px; font-size: 1.25rem; cursor: pointer; color: var(--navy); }

/* ---------- Misc ---------- */
.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.lead { font-size: 1.15rem; color: var(--muted); }
.pill-note { background: rgba(20,112,214,.08); border-left: 4px solid var(--blue); padding: 1rem 1.25rem; border-radius: var(--radius); margin: 1.5rem 0; }
.section-navy .lead { color: #B9C6D8; }
