/* ============================================================
   Be Cool UK — Air Conditioning & Electrical
   Design tokens: navy / electric blue / white
   ============================================================ */

:root {
  --navy: #0a1f44;
  --navy-deep: #071631;
  --electric: #4da3ff;
  --electric-strong: #1560c2;
  --white: #ffffff;
  --off-white: #f5f8fd;
  --ink: #16213a;
  --grey: #5a6784;
  --line: #dde5f0;
  --radius: 12px;
  --shadow: 0 4px 18px rgba(10, 31, 68, 0.08);
  --shadow-lg: 0 12px 32px rgba(10, 31, 68, 0.14);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --transition: 160ms ease;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
}

img, svg { max-width: 100%; height: auto; }

a { color: var(--electric-strong); text-decoration: none; }
a:hover, a:focus-visible { text-decoration: underline; }

:focus-visible {
  outline: 3px solid var(--electric);
  outline-offset: 3px;
  border-radius: 4px;
}

.container { width: min(1140px, 92vw); margin-inline: auto; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  clip: rect(0 0 0 0); clip-path: inset(50%);
  overflow: hidden; white-space: nowrap;
}

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--navy); color: var(--white);
  padding: 0.75rem 1.25rem; border-radius: 0 0 var(--radius) 0;
  z-index: 999;
}
.skip-link:focus { left: 0; color: var(--white); text-decoration: none; }

/* ---------- Header ---------- */

.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 50;
}

.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding-block: 0.75rem; gap: 1rem;
}

.brand { display: flex; flex-direction: column; align-items: flex-start; gap: 0.15rem; }
.brand:hover { text-decoration: none; }
.brand-logo { display: block; width: 243px; height: auto; }
/* Tagline aligns with the wordmark, past the badge (80/324 of the logo width) */
.brand-tag { padding-left: 60px; font-size: 0.6rem; color: var(--grey); letter-spacing: 0.16em; text-transform: uppercase; white-space: nowrap; }
@media (max-width: 400px) { .brand-logo { width: 205px; } .brand-tag { padding-left: 51px; font-size: 0.52rem; letter-spacing: 0.12em; } }

.topbar {
  display: flex; justify-content: space-between; align-items: center;
  background: var(--navy);
  /* Extend the navy band edge-to-edge while content stays in the container */
  box-shadow: 0 0 0 100vmax var(--navy);
  clip-path: inset(0 -100vmax);
  color: rgba(255, 255, 255, 0.9);
  padding-block: 0.5rem;
  font-size: 0.85rem;
}
.topbar-text { font-weight: 500; }

/* ---------- Nav ---------- */

.site-nav { position: relative; }

.menu-toggle {
  display: none;
  background: transparent; border: 0; cursor: pointer;
  padding: 0.5rem;
}
.menu-toggle-bar {
  display: block; width: 22px; height: 3px;
  background: var(--navy); border-radius: 2px;
  margin-block: 4px;
  transition: transform var(--transition), opacity var(--transition);
}

.nav-list {
  display: flex; align-items: center; gap: 1.25rem;
  list-style: none;
}
.nav-list a {
  color: var(--navy); font-weight: 600; font-size: 0.95rem;
  padding-block: 0.25rem;
}
.nav-list a:hover { color: var(--electric-strong); text-decoration: none; }
.nav-list a[aria-current="page"] {
  color: var(--electric-strong);
  box-shadow: inset 0 -3px 0 var(--electric-strong);
}
.nav-cta { margin-left: 0.5rem; }

@media (max-width: 1100px) {
  .menu-toggle { display: block; }
  .nav-list {
    position: absolute; top: calc(100% + 0.75rem); right: 0;
    flex-direction: column; align-items: stretch;
    background: var(--white);
    border: 1px solid var(--line); border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    min-width: 260px; padding: 0.75rem;
    gap: 0.25rem;
    z-index: 60; /* above the topbar, whose clip-path creates its own stacking layer */
    opacity: 0; visibility: hidden; transform: translateY(-6px);
    transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
  }
  .nav-list.nav-open { opacity: 1; visibility: visible; transform: translateY(0); }
  body.nav-scrim::after {
    content: ""; position: fixed; inset: 0; z-index: 40;
    background: rgba(7, 22, 49, 0.5);
  }
  .menu-toggle[aria-expanded="true"] .menu-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] .menu-toggle-bar:nth-child(2) { opacity: 0; }
  .menu-toggle[aria-expanded="true"] .menu-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .menu-toggle-bar { transition: transform var(--transition), opacity var(--transition); }
  .nav-list a { display: block; padding: 0.6rem 0.75rem; border-radius: 8px; }
  .nav-list a:hover { background: var(--off-white); }
  /* The sticky call bar covers this on small screens */
  .nav-cta { display: none; }
  .topbar { flex-direction: column; gap: 0.25rem; text-align: center; }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 0.5rem;
  font-weight: 700; font-size: 0.95rem;
  border-radius: 999px;
  padding: 0.75rem 1.5rem;
  color: var(--white);
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: #1560c2;
  color: var(--white);
  box-shadow: 0 4px 14px rgba(21, 96, 194, 0.35);
}
.btn-primary:hover { background: #0f4fa5; }
.nav-list .btn-primary, .nav-list a.btn { color: var(--white); }
.nav-list a.btn:hover, .nav-list a.btn-primary:hover { background: #0f4fa5; color: var(--white); }

.btn-secondary {
  background: transparent; color: var(--navy);
  border: 2px solid var(--navy);
}
.btn-secondary:hover { background: var(--off-white); }

.btn-large { padding: 0.95rem 1.9rem; font-size: 1.02rem; }
.btn-small { padding: 0.5rem 1rem; font-size: 0.85rem; }
.btn-block { width: 100%; }

/* ---------- Hero ---------- */

.hero {
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(77, 163, 255, 0.16), transparent 60%),
    linear-gradient(180deg, var(--off-white), var(--white));
  padding-block: 4.5rem 4rem;
}

.hero-grid {
  display: grid; grid-template-columns: 1.5fr 1fr;
  gap: 3rem; align-items: start;
}

.hero h1 {
  color: var(--navy);
  font-size: clamp(1.9rem, 4vw, 2.9rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin-bottom: 1rem;
}

.lede { font-size: 1.08rem; color: var(--grey); max-width: 56ch; margin-bottom: 1.5rem; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-bottom: 1.75rem; }

.hero-points { list-style: none; display: grid; gap: 0.55rem; }
.hero-points li {
  padding-left: 1.75rem; position: relative; color: var(--ink);
}
.hero-points li::before {
  content: "✓"; position: absolute; left: 0;
  color: var(--electric-strong); font-weight: 800;
}

.hero-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 1.75rem;
  display: grid; gap: 0.9rem;
}
.hero-card-title { color: var(--navy); font-size: 1.25rem; }
.hero-card p { color: var(--grey); font-size: 0.97rem; }
.hero-card-note { font-size: 0.9rem; }

.hero-aside { display: grid; gap: 1.25rem; }
.fgas-badge {
  display: flex; align-items: center; gap: 1rem;
  padding: 1rem 1.25rem;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.7);
}
.fgas-badge img { flex: none; width: 84px; height: 84px; }
.fgas-badge-title { color: var(--navy); font-weight: 800; font-size: 1.05rem; }
.fgas-badge-text { color: var(--grey); font-size: 0.9rem; line-height: 1.45; }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero { padding-block: 3rem 2.5rem; }
}

/* ---------- Page hero (inner pages) ---------- */

.page-hero {
  background:
    radial-gradient(700px 380px at 90% -20%, rgba(77, 163, 255, 0.14), transparent 60%),
    linear-gradient(180deg, var(--off-white), var(--white));
  padding-block: 3.5rem 2.5rem;
}
.page-hero h1 {
  color: var(--navy);
  font-size: clamp(1.6rem, 3.4vw, 2.4rem);
  line-height: 1.2;
  margin-bottom: 0.75rem;
}
.page-hero-grid {
  display: grid; grid-template-columns: 1.25fr 1fr;
  gap: 2.5rem; align-items: center;
}
.page-hero-art { width: 100%; max-width: 420px; height: auto; justify-self: end; }
@media (max-width: 860px) {
  .page-hero-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .page-hero-art { max-width: 320px; justify-self: center; }
}

/* ---------- Trust strip ---------- */
.trust-strip { border-block: 1px solid var(--line); background: var(--white); }
.trust-list {
  list-style: none;
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1rem; padding-block: 1.25rem;
}
.trust-list li { display: flex; align-items: center; gap: 0.75rem; }
.trust-list svg {
  flex: none; width: 44px; height: 44px; padding: 10px;
  border-radius: 12px; background: #e8f2ff; color: var(--electric-strong);
}
.trust-list strong { display: block; color: var(--navy); font-size: 0.95rem; line-height: 1.25; }
.trust-list span { font-size: 0.82rem; color: var(--grey); line-height: 1.3; }
@media (max-width: 900px) { .trust-list { grid-template-columns: 1fr 1fr; } }
@media (max-width: 380px) { .trust-list { grid-template-columns: 1fr; } }

/* ---------- Service icons ---------- */
.service-icon {
  display: grid; place-items: center;
  width: 52px; height: 52px; margin-bottom: 1rem;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--navy), var(--navy-deep));
  color: var(--electric);
}
.service-icon svg { width: 26px; height: 26px; }

/* ---------- FAQ ---------- */
.faq { padding-block: 3rem; }
.faq h2 { color: var(--navy); font-size: 1.5rem; margin-bottom: 1rem; }
.faq-list { display: grid; gap: 0.75rem; max-width: 820px; }
.faq-list details {
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--white); box-shadow: var(--shadow);
}
.faq-list summary {
  cursor: pointer; list-style: none;
  padding: 1rem 3rem 1rem 1.25rem; position: relative;
  font-weight: 700; color: var(--navy);
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+"; position: absolute; right: 1.25rem; top: 50%; transform: translateY(-50%);
  font-size: 1.4rem; font-weight: 400; color: var(--electric-strong);
}
.faq-list details[open] summary::after { content: "−"; }
.faq-list details > p { padding: 0 1.25rem 1.1rem; color: var(--grey); }

/* ---------- Sticky mobile call bar ---------- */
.mobile-cta { display: none; }
@media (max-width: 1100px) {
  .mobile-cta {
    display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
    padding: 0.6rem 0.75rem calc(0.6rem + env(safe-area-inset-bottom));
    background: var(--white); border-top: 1px solid var(--line);
    box-shadow: 0 -6px 20px rgba(10, 31, 68, 0.1);
  }
  .mobile-cta a {
    display: flex; align-items: center; justify-content: center; gap: 0.5rem;
    padding: 0.8rem; border-radius: 999px; font-weight: 700; font-size: 1rem;
  }
  .mobile-cta a:hover { text-decoration: none; }
  .mobile-cta svg { width: 20px; height: 20px; }
  .mobile-cta-call { background: #1560c2; color: var(--white); }
  .mobile-cta-call:hover { color: var(--white); }
  .mobile-cta-wa { background: #25d366; color: var(--navy-deep); }
  body { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
}

.thankyou-hero { text-align: center; }
.thankyou-hero .lede { margin-inline: auto; }
.thankyou-hero .hero-actions { justify-content: center; }

/* ---------- Sections ---------- */

.section { padding-block: 3rem; }
.section h2, .services h2, .feature-band h2, .areas h2 {
  color: var(--navy);
  font-size: 1.5rem;
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
}
.section h3 { color: var(--navy); margin-bottom: 0.5rem; }

.prose { max-width: 76ch; }
.prose h2 { margin-top: 2.25rem; }
.prose h2:first-of-type { margin-top: 0; }
.prose p, .prose ul { margin-bottom: 0.9rem; }
.prose ul { padding-left: 1.25rem; }

/* ---------- Services grid ---------- */

.services { padding-block: 3rem; }
.service-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.service-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.service-card-primary {
  border: 2px solid var(--electric);
  background: linear-gradient(180deg, #f2f8ff, var(--white));
}
.service-card h3 { color: var(--navy); margin-bottom: 0.6rem; }
.service-card h3 a { color: inherit; }
.service-card p { color: var(--grey); font-size: 0.96rem; }
.service-link { margin-top: 0.75rem; font-weight: 600; }

@media (max-width: 900px) { .service-grid { grid-template-columns: 1fr; } }

/* ---------- Feature band ---------- */

.feature-band {
  background: var(--off-white);
  padding-block: 3rem;
  border-block: 1px solid var(--line);
}
.feature-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.75rem;
}
/* Each item spans two shared rows so headings and text line up across a row, even when a heading wraps */
.feature-item { display: grid; grid-row: span 2; grid-template-rows: subgrid; row-gap: 0; align-content: start; }
.feature-item h3 { color: var(--navy); margin-bottom: 0.5rem; font-size: 1.05rem; }
.feature-item p { color: var(--grey); font-size: 0.95rem; }

.center-note { text-align: center; margin-top: 2rem; }

/* ---------- Areas ---------- */

.areas { padding-block: 3rem; }
.areas p { max-width: 72ch; }

/* ---------- Lists ---------- */

.list-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem 2rem;
  margin-bottom: 1.25rem;
}
.list-grid ul { padding-left: 1.2rem; display: grid; gap: 0.4rem; }

/* ---------- CTA band ---------- */

.cta-band {
  background: linear-gradient(135deg, var(--navy), var(--navy-deep));
  color: var(--white);
  padding-block: 3.5rem;
}
.cta-inner { text-align: center; }
.cta-inner h2 { font-size: 1.6rem; margin-bottom: 0.5rem; }
.cta-inner p { color: rgba(255, 255, 255, 0.82); margin-bottom: 1.5rem; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; justify-content: center; }
.cta-band .btn-secondary {
  background: transparent; color: var(--white); border-color: rgba(255, 255, 255, 0.6);
}
.cta-band .btn-secondary:hover { background: rgba(255, 255, 255, 0.1); }

/* ---------- Contact ---------- */

.contact-grid {
  display: grid; grid-template-columns: 1fr 1.2fr;
  gap: 3rem; align-items: start;
}
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-list { list-style: none; display: grid; gap: 0.9rem; }
.contact-note { color: var(--grey); font-size: 0.9rem; margin-top: 1rem; font-style: italic; }

.contact-form-wrap {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.75rem;
}
.contact-form-wrap h2 { color: var(--navy); margin-bottom: 1.25rem; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }

.form-group { margin-bottom: 1.1rem; display: grid; gap: 0.35rem; }
.form-group label { font-weight: 600; font-size: 0.92rem; color: var(--navy); }
.optional { color: var(--grey); font-weight: 400; font-size: 0.85rem; }

.form-group input, .form-group select, .form-group textarea {
  font: inherit; color: var(--ink);
  width: 100%;
  padding: 0.7rem 0.85rem;
  border: 1.5px solid var(--line);
  border-radius: 8px;
  background: var(--off-white);
  transition: border-color var(--transition), background var(--transition);
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--electric-strong);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(77, 163, 255, 0.2);
}
.form-group input[aria-invalid="true"], .form-group textarea[aria-invalid="true"] {
  border-color: #d64545;
  background: #fff6f6;
}

textarea { resize: vertical; min-height: 120px; }

.hp-field {
  position: absolute; left: -9999px; width: 1px; height: 1px;
  overflow: hidden;
}

.cf-turnstile { min-height: 0; }
.cf-turnstile:has(.cf-turnstile) { min-height: 65px; }

.form-status {
  min-height: 1.4rem;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}
.form-status.is-error { color: #b02a2a; font-weight: 600; }
.form-status.is-success { color: #1c7a4a; font-weight: 600; }

.form-privacy { font-size: 0.82rem; color: var(--grey); margin-top: 0.9rem; text-align: center; }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--navy-deep);
  color: rgba(255, 255, 255, 0.82);
  padding-block: 3rem 0;
  margin-top: 3rem;
}
.footer-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 2rem;
  padding-bottom: 2rem;
}
.footer-logo { display: block; width: 203px; height: auto; margin-bottom: 0.6rem; }
.footer-tag { color: var(--electric); font-size: 0.78rem; letter-spacing: 0.05em; text-transform: uppercase; }
.footer-col h3 {
  color: var(--white); font-size: 0.95rem; margin-bottom: 0.75rem;
  letter-spacing: 0.02em;
}
.footer-col ul { list-style: none; display: grid; gap: 0.45rem; }
.footer-col a { color: rgba(255, 255, 255, 0.85); }
.footer-col a:hover { color: var(--electric); }
.footer-col p { font-size: 0.88rem; }
.footer-col em { color: var(--electric); }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-block: 1.1rem;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.55);
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
}

/* ---------- Policy table ---------- */
.policy-table { width: 100%; border-collapse: collapse; margin-bottom: 1rem; font-size: 0.93rem; }
.policy-table th, .policy-table td { border: 1px solid var(--line); padding: 0.6rem 0.75rem; text-align: left; vertical-align: top; }
.policy-table th { background: var(--off-white); color: var(--navy); }
@media (max-width: 640px) { .policy-table { display: block; overflow-x: auto; } }
