/* ==========================================================================
   AA Heating Services — site styles
   Brand colours live in :root below. Change them here and the whole site updates.
   ========================================================================== */

:root {
  --red: #c8161d;          /* flame red (from logo) */
  --red-600: #a81218;
  --red-50: #fdf1f1;
  --red-light: #ff7a6b;    /* red for use on dark backgrounds */
  --ink: #15171c;          /* charcoal */
  --ink-2: #23262e;
  --text: #1e2128;
  --muted: #5a6070;
  --line: #e7e3de;
  --bg: #ffffff;
  --bg-alt: #f6f4f1;
  --amber: #f7a21b;
  --wa: #0f7f43;           /* WhatsApp green, darkened for readable white text */
  --wa-bright: #1da851;

  --radius: 14px;
  --shadow: 0 1px 2px rgba(16, 18, 24, 0.06), 0 8px 24px rgba(16, 18, 24, 0.08);
  --max: 1160px;
  --header-h: 72px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body { margin: 0; font-family: var(--font); font-size: 17px; line-height: 1.6; color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0 0 0.5em; line-height: 1.15; letter-spacing: -0.02em; color: var(--ink); }
h1 { font-size: clamp(2.1rem, 4.8vw, 3.5rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.1vw, 2.4rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; border-radius: 4px; }

.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; text-decoration: none; font-weight: 700; }
.skip-link:focus { top: 12px; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section--alt { background: var(--bg-alt); }
.section-head { max-width: 700px; margin-bottom: 40px; }
.section-head p { color: var(--muted); font-size: 1.075rem; }
.eyebrow { display: inline-block; margin-bottom: 12px; font-size: 0.8rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--red); }
.eyebrow--light { color: var(--red-light); }

.icon { width: 24px; height: 24px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 22px; border: 2px solid transparent; border-radius: 999px; font: inherit; font-size: 1rem; font-weight: 700; line-height: 1.2; text-decoration: none; cursor: pointer; transition: background 0.15s, border-color 0.15s, transform 0.15s; }
.btn:hover { transform: translateY(-1px); }
.btn .icon { width: 20px; height: 20px; }
.btn--primary { background: var(--red); color: #fff; }
.btn--primary:hover { background: var(--red-600); }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: var(--ink-2); }
.btn--ghost { border-color: rgba(255, 255, 255, 0.35); color: #fff; }
.btn--ghost:hover { border-color: #fff; }
.btn--wa { background: var(--wa); color: #fff; }
.btn--wa:hover { background: #0b6b38; }
.btn--white { background: #fff; color: var(--red); }
.btn--block { width: 100%; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, 0.97); border-bottom: 1px solid var(--line); backdrop-filter: saturate(1.4) blur(8px); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: var(--header-h); }
/* Logo files are in /images (rebuilt from the original artwork; source in /brand) */
.logo { display: flex; flex: none; align-items: center; text-decoration: none; }
.logo img { display: block; width: auto; height: 44px; }
.logo--footer img { width: 230px; height: auto; }

.nav { display: flex; align-items: center; gap: 28px; }
.nav a { color: var(--ink-2); font-size: 0.95rem; font-weight: 600; text-decoration: none; }
.nav a:hover { color: var(--red); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.header-actions .btn { padding: 11px 18px; font-size: 0.95rem; }
.nav-toggle { display: none; place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); cursor: pointer; }

@media (max-width: 1100px) {
  .nav { position: absolute; top: var(--header-h); left: 0; right: 0; display: none; flex-direction: column; align-items: stretch; gap: 0; padding: 4px 20px 16px; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08); }
  .nav.is-open { display: flex; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .nav-toggle { display: inline-grid; }
}
@media (max-width: 560px) {
  .header-actions .btn-label { display: none; }
  .header-actions .btn { padding: 11px 13px; }
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--ink); color: #fff; }
.hero::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(55% 70% at 88% 8%, rgba(200, 22, 29, 0.5), transparent 62%),
    radial-gradient(40% 55% at 5% 105%, rgba(247, 162, 27, 0.14), transparent 70%); }
.hero-inner { position: relative; display: grid; grid-template-columns: 1.25fr 0.9fr; gap: 56px; align-items: center; padding-top: clamp(56px, 8vw, 104px); padding-bottom: clamp(56px, 8vw, 104px); }
.hero h1 { color: #fff; }
.hero h1 em { font-style: normal; color: var(--red-light); }
.hero-lead { max-width: 600px; font-size: 1.15rem; color: rgba(255, 255, 255, 0.84); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 30px 0; }
.hero-points { display: flex; flex-wrap: wrap; gap: 10px 26px; margin: 0; padding: 0; list-style: none; font-size: 0.95rem; font-weight: 600; color: rgba(255, 255, 255, 0.88); }
.hero-points li { display: flex; align-items: center; gap: 8px; }
.hero-points .icon { width: 20px; height: 20px; color: var(--red-light); stroke-width: 2.4; }

.hero-card { padding: 28px; border-radius: 20px; background: #fff; color: var(--text); box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4); }
.hero-card h2 { margin-bottom: 4px; font-size: 1.4rem; }
.hero-card > p { color: var(--muted); font-size: 0.95rem; }
.quick-links { display: grid; gap: 10px; margin: 18px 0; padding: 0; list-style: none; }
.quick-links a { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; color: var(--ink); font-weight: 650; text-decoration: none; transition: border-color 0.15s, background 0.15s; }
.quick-links a:hover { border-color: var(--red); background: var(--red-50); }
.quick-links .icon { width: 18px; height: 18px; color: var(--red); }
.gas-warning { display: flex; gap: 10px; margin: 0; padding: 12px 14px; border-radius: 10px; background: var(--bg-alt); color: var(--muted); font-size: 0.86rem; line-height: 1.5; }
.gas-warning .icon { width: 20px; height: 20px; color: var(--red); }
.gas-warning a { color: var(--ink); font-weight: 700; white-space: nowrap; }

@media (max-width: 900px) { .hero-inner { grid-template-columns: 1fr; gap: 36px; } }
@media (max-width: 480px) { .hero-actions .btn { flex: 1 1 100%; } .hero-card { padding: 22px; } }

/* ---------- Trust bar ---------- */
.trust { border-bottom: 1px solid var(--line); background: #fff; }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.trust-item { display: flex; align-items: center; gap: 14px; padding: 24px 20px; }
.trust-item + .trust-item { border-left: 1px solid var(--line); }
.trust-icon { display: grid; place-items: center; flex: none; width: 46px; height: 46px; border-radius: 12px; background: var(--red-50); color: var(--red); }
.trust-item strong { display: block; color: var(--ink); line-height: 1.25; }
.trust-item span { color: var(--muted); font-size: 0.85rem; }
@media (max-width: 900px) {
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-item:nth-child(3) { border-left: 0; }
  .trust-item:nth-child(n + 3) { border-top: 1px solid var(--line); }
}
@media (max-width: 520px) {
  .trust-item { flex-direction: column; align-items: flex-start; gap: 10px; padding: 18px 14px; }
  .trust-icon { width: 40px; height: 40px; }
  .trust-item strong { font-size: 0.95rem; }
}

/* ---------- Service cards ---------- */
.services-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 1000px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .services-grid { grid-template-columns: 1fr; } }
.card { display: flex; flex-direction: column; padding: 26px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s; }
.card:hover { border-color: #d9d3cb; box-shadow: var(--shadow); transform: translateY(-2px); }
.card-icon { display: grid; place-items: center; width: 50px; height: 50px; margin-bottom: 18px; border-radius: 12px; background: var(--red-50); color: var(--red); }
.card-icon .icon { width: 26px; height: 26px; }
.card p { color: var(--muted); font-size: 0.97rem; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin: auto 0 0; padding: 0; list-style: none; }
.tags li { padding: 4px 10px; border-radius: 999px; background: var(--bg-alt); color: var(--ink-2); font-size: 0.78rem; font-weight: 650; }

.brands { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 32px; margin-top: 40px; padding: 26px 28px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.brands p { margin: 0; color: var(--ink); font-weight: 700; }
.brands p span { display: block; color: var(--muted); font-size: 0.9rem; font-weight: 500; }
.brand-list { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.brand-list li { padding: 10px 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg-alt); color: var(--ink-2); font-size: 1.05rem; font-weight: 800; letter-spacing: -0.01em; }

/* ---------- Landlords ---------- */
.landlord { background: var(--ink); color: #fff; }
.landlord-inner { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; }
.landlord h2 { color: #fff; }
.landlord p { color: rgba(255, 255, 255, 0.8); }
.checklist { display: grid; gap: 14px; margin: 26px 0 32px; padding: 0; list-style: none; }
.checklist li { display: flex; align-items: flex-start; gap: 12px; font-weight: 600; }
.tick { display: grid; place-items: center; flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--red); }
.tick .icon { width: 15px; height: 15px; stroke-width: 2.8; color: #fff; }
.facts { display: grid; gap: 14px; }
.fact { display: flex; align-items: center; gap: 22px; padding: 22px 24px; border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 16px; background: var(--ink-2); }
.fact strong { flex: none; min-width: 108px; color: #fff; font-size: 2rem; font-weight: 800; line-height: 1; letter-spacing: -0.03em; }
.fact strong small { display: block; margin-top: 4px; color: var(--red-light); font-size: 0.8rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.fact p { margin: 0; font-size: 0.95rem; }
.facts-note { margin: 4px 0 0; color: rgba(255, 255, 255, 0.55) !important; font-size: 0.82rem; }
@media (max-width: 900px) { .landlord-inner { grid-template-columns: 1fr; gap: 36px; } }
@media (max-width: 420px) { .fact { flex-direction: column; align-items: flex-start; gap: 10px; } }

/* ---------- Why us ---------- */
.why-grid { display: grid; grid-template-columns: 1.45fr 1fr; gap: 48px; align-items: start; }
.features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px 32px; }
.feature { display: flex; gap: 16px; }
.feature .card-icon { flex: none; width: 46px; height: 46px; margin: 0; }
.feature h3 { margin-bottom: 0.3em; }
.feature p { margin: 0; color: var(--muted); font-size: 0.97rem; }
.guarantee { position: sticky; top: calc(var(--header-h) + 24px); padding: 36px; border-radius: 20px; background: linear-gradient(160deg, var(--red), var(--red-600)); color: #fff; }
.guarantee h3 { color: #fff; font-size: 1.6rem; }
.guarantee p { color: rgba(255, 255, 255, 0.92); }
.seal { display: grid; place-items: center; width: 74px; height: 74px; margin-bottom: 22px; border: 2px dashed rgba(255, 255, 255, 0.6); border-radius: 50%; }
.seal .icon { width: 34px; height: 34px; }
@media (max-width: 980px) { .why-grid { grid-template-columns: 1fr; } .guarantee { position: static; } }
@media (max-width: 640px) { .features { grid-template-columns: 1fr; } }

/* ---------- Areas ---------- */
.areas-inner { display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px; align-items: center; }
.areas-inner .section-head { margin-bottom: 24px; }
.area-list { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.area-list li { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font-size: 0.93rem; font-weight: 600; }
.area-list .icon { width: 16px; height: 16px; color: var(--red); }
.area-list li.is-base { border-color: var(--red); background: var(--red-50); color: var(--red-600); }
@media (max-width: 900px) { .areas-inner { grid-template-columns: 1fr; gap: 28px; } }

/* ---------- Reviews (enable once real reviews exist) ---------- */
.reviews-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.review { padding: 26px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.stars { margin-bottom: 12px; color: var(--amber); letter-spacing: 2px; }
.review footer { margin-top: 14px; color: var(--ink); font-weight: 700; }

/* ---------- FAQ ---------- */
.faq-grid { display: grid; grid-template-columns: 0.8fr 1.4fr; gap: 48px; align-items: start; }
.faq-intro { position: sticky; top: calc(var(--header-h) + 24px); }
.faq-list { display: grid; gap: 12px; }
.faq-list details { padding: 0 22px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.faq-list details[open] { border-color: #d6cfc6; }
.faq-list summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 0; color: var(--ink); font-weight: 700; cursor: pointer; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; flex: none; color: var(--red); font-size: 1.6rem; font-weight: 400; line-height: 1; }
.faq-list details[open] summary::after { content: "\2013"; }
.faq-list details p { margin: 0 0 20px; color: var(--muted); }
.faq-list details p + p { margin-top: -8px; }
@media (max-width: 900px) { .faq-grid { grid-template-columns: 1fr; gap: 24px; } .faq-intro { position: static; } }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.3fr; gap: 32px; align-items: start; }
.contact-info { padding: 32px; border-radius: 20px; background: var(--ink); color: #fff; }
.contact-info h3 { color: #fff; font-size: 1.35rem; }
.contact-info > p { color: rgba(255, 255, 255, 0.75); }
.contact-methods { display: grid; gap: 18px; margin: 26px 0 0; padding: 0; list-style: none; }
.contact-methods li { display: flex; align-items: flex-start; gap: 14px; }
.ci { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 12px; background: rgba(255, 255, 255, 0.08); color: var(--red-light); }
.contact-methods small { display: block; color: rgba(255, 255, 255, 0.6); font-size: 0.76rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.contact-methods a, .contact-methods span { color: #fff; font-size: 1.05rem; font-weight: 650; text-decoration: none; overflow-wrap: anywhere; }
.contact-methods a:hover { text-decoration: underline; }

.form-card { padding: 32px; border: 1px solid var(--line); border-radius: 20px; background: #fff; box-shadow: var(--shadow); }
.form-card h3 { font-size: 1.35rem; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field--full { grid-column: 1 / -1; }
.field label { color: var(--ink); font-size: 0.92rem; font-weight: 650; }
.field label .opt { color: var(--muted); font-weight: 500; }
.req { color: var(--red); }
.field input, .field select, .field textarea { width: 100%; padding: 12px 14px; border: 1.5px solid #d6d0c8; border-radius: 10px; background: #fff; color: var(--text); font: inherit; font-size: 1rem; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(200, 22, 29, 0.15); }
.field textarea { min-height: 130px; resize: vertical; }
.form-note { margin: 16px 0; color: var(--muted); font-size: 0.85rem; }
.form-note a { color: var(--ink); }
.form-status { display: none; margin-top: 16px; padding: 14px 16px; border-radius: 10px; font-weight: 600; }
.form-status.is-success { display: block; background: #eaf7ee; color: #14532d; }
.form-status.is-error { display: block; background: var(--red-50); color: #8a0f14; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } .form-card, .contact-info { padding: 24px; } }

/* ---------- Footer ---------- */
.site-footer { padding: 56px 0 100px; background: #0e0f13; color: rgba(255, 255, 255, 0.7); font-size: 0.93rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.1fr; gap: 32px; }
.footer-grid > div > p { margin-top: 16px; max-width: 320px; }
.site-footer h4 { margin: 0 0 14px; color: #fff; font-size: 0.82rem; letter-spacing: 0.1em; text-transform: uppercase; }
.site-footer ul { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.site-footer a { color: rgba(255, 255, 255, 0.82); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, 0.1); font-size: 0.84rem; }
.footer-bottom p { margin: 0; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- WhatsApp float + mobile action bar ---------- */
.wa-float { position: fixed; right: 22px; bottom: 22px; z-index: 60; display: grid; place-items: center; width: 60px; height: 60px; border-radius: 50%; background: var(--wa-bright); color: #fff; box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25); transition: transform 0.15s; }
.wa-float:hover { transform: scale(1.06); }
.wa-float .icon { width: 32px; height: 32px; stroke-width: 1.6; }
.mobile-bar { display: none; }
@media (max-width: 760px) {
  body { padding-bottom: 78px; }
  .wa-float { display: none; }
  .mobile-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 8px 8px calc(8px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: #fff; box-shadow: 0 -6px 20px rgba(0, 0, 0, 0.08); }
  .mobile-bar a { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 8px 4px; border-radius: 10px; color: #fff; font-size: 0.8rem; font-weight: 700; text-decoration: none; }
  .mobile-bar .icon { width: 22px; height: 22px; }
  .mb-call { background: var(--red); }
  .mb-wa { background: var(--wa); }
  .mb-quote { background: var(--ink); }
}

/* ---------- Simple pages (privacy, thanks, 404) ---------- */
.page-hero { padding: clamp(48px, 7vw, 80px) 0 clamp(32px, 5vw, 48px); background: var(--ink); color: #fff; }
.page-hero h1 { color: #fff; font-size: clamp(2rem, 4vw, 2.8rem); }
.page-hero p { margin: 0; color: rgba(255, 255, 255, 0.75); }
.prose { max-width: 760px; }
.prose h2 { margin-top: 1.8em; font-size: 1.45rem; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: 0.4em; }
.prose a { color: var(--red-600); }
.center-page { display: grid; place-items: center; min-height: 60vh; padding-top: 64px; padding-bottom: 64px; text-align: center; }
.center-page .seal { margin: 0 auto 22px; border-color: var(--red); color: var(--red); }
.center-page p { max-width: 520px; margin-left: auto; margin-right: auto; color: var(--muted); }
.center-page .hero-actions { justify-content: center; }
