/* ============================================================
   ALLIED HEATING LTD — Design System
   Palette: Brand Green + Brand Blue + White, built out to AA contrast
   Type: Oswald (headings) + Public Sans (body)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@500;600;700&family=Public+Sans:wght@400;500;600;700&display=swap');

/* ── Custom properties ── */
:root {
  --green:        #389B2B;  /* brand green — accents, icons, large surfaces */
  --green-deep:   #163A11;  /* near-black green — header/footer/hero bg */
  --green-btn:    #2B7A20;  /* AA-safe green for buttons/links on white (5.4:1) */
  --blue:         #3FA0E7;  /* brand blue — accents on dark backgrounds */
  --blue-deep:    #1D6FB0;  /* AA-safe blue for links/text on white (5.3:1) */
  --white:        #FFFFFF;
  --ink:          #182019;  /* body text */
  --grey-100:     #EBEFE9;
  --grey-300:     #CBD3C8;
  --grey-500:     #6E7A6B;
  --grey-700:     #3E463C;
  --gray-hero:    #232323;  /* dark charcoal fallback behind the homepage hero photo */

  --font-head:    'Oswald', sans-serif;
  --font-body:    'Public Sans', sans-serif;

  --radius:       4px;
  --radius-lg:    10px;
  --shadow:       0 2px 14px rgba(22,58,17,.14);
  --shadow-lg:    0 10px 34px rgba(22,58,17,.22);

  --max-w:        1180px;
  --gap:          clamp(1rem, 4vw, 2rem);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--green-btn); text-decoration: none; }
a:hover { text-decoration: underline; }
ul { list-style: none; }
button, input, select, textarea { font: inherit; }
:focus-visible { outline: 3px solid var(--blue-deep); outline-offset: 2px; }

/* ── Typography scale ── */
h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.12;
  color: var(--green-deep);
  letter-spacing: .01em;
}
h1 { font-size: clamp(2.1rem, 5.4vw, 3.4rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 3.6vw, 2.3rem); }
h3 { font-size: clamp(1.15rem, 2.6vw, 1.5rem); }
h4 { font-size: 1.05rem; }
p { max-width: 68ch; }
p + p { margin-top: .9em; }
strong { font-weight: 600; }

/* ── Utility ── */
.container {
  width: min(var(--max-w), 100% - 2 * var(--gap));
  margin-inline: auto;
}
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.text-blue { color: var(--blue); }
.bg-deep  { background: var(--green-deep); color: var(--white); }
.bg-off   { background: var(--grey-100); }
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 1000;
  background: var(--white); color: var(--green-deep);
  padding: .75rem 1.25rem; border-radius: 0 0 var(--radius) 0;
  font-weight: 600;
}
.skip-link:focus { left: 0; }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5em;
  padding: .85em 1.7em;
  border-radius: var(--radius);
  font-family: var(--font-head);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: .02em;
  cursor: pointer;
  transition: background .18s, transform .12s, color .18s;
  white-space: nowrap;
  border: 2px solid transparent;
  min-height: 48px;
}
.btn:hover { transform: translateY(-1px); text-decoration: none; }
.btn-primary {
  background: var(--green-btn);
  color: var(--white);
  border-color: var(--green-btn);
}
.btn-primary:hover { background: #1F5C17; border-color: #1F5C17; }
.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}
.btn-outline:hover { background: var(--white); color: var(--green-deep); }
.btn-outline-dark {
  background: transparent;
  color: var(--green-deep);
  border-color: var(--green-deep);
}
.btn-outline-dark:hover { background: var(--green-deep); color: var(--white); }

/* ── Site Header ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 3px solid var(--green);
  box-shadow: 0 2px 10px rgba(0,0,0,.08);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: .7rem;
}
.site-logo {
  display: flex;
  align-items: center;
}
.site-logo img { height: 44px; width: auto; display: block; }
.site-logo:hover { text-decoration: none; }

.header-tel {
  font-family: var(--font-head);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--green-deep);
  letter-spacing: .02em;
  text-align: right;
}
.header-tel:hover { color: var(--blue-deep); text-decoration: none; }
.header-tel-label { font-size: .7rem; font-weight: 600; color: var(--grey-700); display: block; font-family: var(--font-body); letter-spacing: .04em; text-transform: uppercase; }

.nav-list {
  display: flex;
  gap: 1.35rem;
  align-items: center;
  flex-wrap: wrap;
}
.nav-list a {
  color: var(--grey-700);
  font-size: .88rem;
  font-weight: 500;
  letter-spacing: .01em;
  transition: color .15s;
}
.nav-list a:hover,
.nav-list a[aria-current="page"] {
  color: var(--green-deep);
  text-decoration: none;
}
.nav-list a[aria-current="page"]::after {
  content: '';
  display: block;
  height: 2px;
  background: var(--green);
  margin-top: 3px;
}
.nav-list .btn { padding: .5em 1.1em; font-size: .85rem; min-height: auto; }
.nav-list .btn-primary,
.nav-list .btn-primary:hover { color: var(--white); }

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: .4rem;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--green-deep);
  border-radius: 2px;
  transition: transform .2s, opacity .2s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--white);
    padding: 1rem var(--gap) 1.5rem;
    border-top: 1px solid var(--grey-100);
    box-shadow: 0 8px 24px rgba(0,0,0,.12);
  }
  .site-nav.is-open { display: block; }
  .nav-list { flex-direction: column; align-items: flex-start; gap: .85rem; }
  .nav-list a { font-size: 1rem; }
  .nav-list .btn { margin-top: .5rem; }
  .header-tel { display: none; }
}

/* ── Hero ── */
.hero {
  position: relative;
  min-height: clamp(400px, 56vw, 620px);
  display: flex;
  align-items: flex-end;
  padding-bottom: clamp(2.2rem, 5vw, 4.2rem);
  overflow: hidden;
  background: var(--gray-hero);
}
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; opacity: .4; }
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: rgba(0,0,0,.55);
}
.hero-body { position: relative; z-index: 1; color: var(--white); max-width: 640px; }
.hero-body h1 { color: var(--white); margin-bottom: .55em; }
.hero-body p  { font-size: 1.12rem; opacity: .94; margin-bottom: 1.4em; max-width: 50ch; }
.hero-cta     { display: flex; gap: .75rem; flex-wrap: wrap; }
.hero-badge   { margin-top: 1.9rem; display: flex; gap: 1.4rem; flex-wrap: wrap; }
.hero-badge-item { font-size: .84rem; opacity: .92; display: flex; align-items: center; gap: .4em; }
.hero-badge-item::before { content: '✓'; font-weight: 700; color: var(--blue); font-size: 1em; }

/* Asymmetric hero variant (homepage) */
.hero-asym .container { display: grid; grid-template-columns: 1.15fr .85fr; gap: 2rem; align-items: end; }
@media (max-width: 860px) { .hero-asym .container { grid-template-columns: 1fr; } }
.hero-quickfacts {
  background: #262626;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: var(--radius-lg);
  padding: 1.4rem 1.5rem;
  box-shadow: var(--shadow-lg);
}
.hero-quickfacts h2 { color: var(--white); font-size: 1rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: .9rem; }
.hero-quickfacts ul { display: flex; flex-direction: column; gap: .6rem; }
.hero-quickfacts li { color: var(--white); font-size: .92rem; display: flex; gap: .55em; }
.hero-quickfacts li::before { content: '✓'; color: var(--blue); font-weight: 700; }

/* ── Trust bar ── */
.trust-bar { background: var(--green); color: var(--green-deep); padding: 0; }
.trust-bar-inner {
  display: flex;
  gap: clamp(1rem, 3vw, 2.5rem);
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  font-size: .88rem;
  font-weight: 600;
  padding: .95rem 0;
  background: var(--white);
  color: var(--green-deep);
  border-bottom: 4px solid var(--green);
}
.trust-bar-item { display: flex; align-items: center; gap: .4em; }
.trust-bar-item strong { color: var(--green-btn); }

/* ── Section spacing ── */
.section { padding-block: clamp(3rem, 7vw, 5.5rem); }
.section-head { margin-bottom: clamp(1.5rem, 4vw, 2.5rem); }
.section-head h2 { margin-bottom: .4em; }
.section-head p  { color: var(--grey-700); font-size: 1.05rem; }
.section-label {
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--green-btn);
  margin-bottom: .5em;
}
.bg-deep .section-label { color: var(--blue); }

/* ── Services grid ── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
}
.service-card {
  background: var(--white);
  border: 1px solid var(--grey-300);
  border-top: 3px solid var(--green);
  border-radius: var(--radius-lg);
  padding: 1.6rem;
  transition: box-shadow .18s, border-color .18s;
}
.service-card:hover { box-shadow: var(--shadow); }
.service-card h3 { margin-bottom: .4em; font-size: 1.2rem; }
.service-card p  { font-size: .95rem; color: var(--grey-700); }
.service-card .card-link { display: inline-block; margin-top: .9rem; font-size: .9rem; font-weight: 600; color: var(--blue-deep); }

/* ── Checklist ── */
.checklist { display: flex; flex-direction: column; gap: .75rem; }
.checklist li { display: flex; gap: .75rem; align-items: flex-start; line-height: 1.5; }
.checklist li::before {
  content: '';
  flex-shrink: 0;
  width: 20px; height: 20px;
  margin-top: .15em;
  background: var(--green-btn);
  border-radius: 50%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='white'%3E%3Cpath fill-rule='evenodd' d='M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z' clip-rule='evenodd'/%3E%3C/svg%3E");
}

/* ── Split (asymmetric ratio, not 50/50) ── */
.split { display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.split-rev { grid-template-columns: .8fr 1.2fr; }
.split-rev > *:first-child { order: 2; }
.split-img { border-radius: var(--radius-lg); overflow: hidden; background: var(--grey-100); position: relative; }
.split-img img { display: block; width: 100%; aspect-ratio: 4/3; object-fit: cover; }
@media (max-width: 760px) {
  .split, .split-rev { grid-template-columns: 1fr; }
  .split-rev > *:first-child { order: 0; }
}

/* ── Hero photo-pending note ── */
.hero-photo-note {
  position: absolute; top: 1rem; right: 1rem; z-index: 2;
  background: rgba(0,0,0,.55); color: var(--white);
  font-size: .72rem; padding: .4rem .7rem; border-radius: var(--radius);
  max-width: 220px; text-align: right; line-height: 1.3;
}

/* ── Content photo ── */
.content-photo {
  display: block;
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: var(--radius-lg);
}

/* ── Photo placeholder ── */
.photo-placeholder {
  background: var(--grey-100);
  border: 2px dashed var(--grey-500);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  color: var(--grey-700);
  font-size: .88rem;
  text-align: center;
  padding: 2rem;
  min-height: 220px;
  width: 100%;
  height: 100%;
}

/* ── Area list ── */
.area-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: .6rem; }
.area-pill {
  background: var(--white);
  border: 1px solid var(--grey-300);
  border-left: 4px solid var(--green);
  border-radius: var(--radius);
  padding: .6rem 1rem;
  font-size: .9rem;
  font-weight: 500;
  color: var(--green-deep);
  transition: background .15s, border-color .15s;
}
.area-pill:hover { background: var(--grey-100); text-decoration: none; }
.area-pill a { color: inherit; }

/* ── CTA band ── */
.cta-band { background: var(--green-deep); color: var(--white); padding-block: clamp(2.6rem, 6vw, 4.2rem); text-align: center; }
.cta-band h2 { color: var(--white); margin-bottom: .5em; }
.cta-band p  { margin-inline: auto; opacity: .88; margin-bottom: 1.4em; }
.cta-band-btns { display: flex; gap: .75rem; justify-content: center; flex-wrap: wrap; }

/* ── FAQ accordion ── */
.faq-list { display: flex; flex-direction: column; gap: .5rem; }
.faq-item { border: 1px solid var(--grey-300); border-radius: var(--radius); overflow: hidden; }
.faq-q {
  width: 100%; text-align: left;
  background: var(--white); border: none;
  padding: 1rem 1.25rem; font-size: 1rem; font-weight: 600; color: var(--green-deep);
  cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  transition: background .15s;
}
.faq-q:hover { background: var(--grey-100); }
.faq-q::after { content: '+'; font-size: 1.4rem; font-weight: 400; flex-shrink: 0; transition: transform .2s; }
.faq-item.is-open .faq-q::after { transform: rotate(45deg); }
.faq-a { display: none; padding: 1rem 1.25rem 1.25rem; font-size: .95rem; color: var(--grey-700); border-top: 1px solid var(--grey-100); }
.faq-item.is-open .faq-a { display: block; }

/* ── Breadcrumb ── */
.breadcrumb { font-size: .85rem; color: var(--grey-500); padding-block: .75rem; border-bottom: 1px solid var(--grey-100); }
.breadcrumb ol { display: flex; gap: .4em; flex-wrap: wrap; align-items: center; list-style: none; padding: 0; margin: 0; }
.breadcrumb li + li::before { content: '/'; margin-right: .4em; }
.breadcrumb a { color: var(--grey-500); }
.breadcrumb a:hover { color: var(--green-btn); }
.breadcrumb [aria-current="page"] { color: var(--ink); }

/* ── Contact form ── */
.form-grid { display: grid; gap: 1rem; }
.form-group { display: flex; flex-direction: column; gap: .35rem; }
.form-label { font-size: .9rem; font-weight: 600; }
.form-input, .form-textarea, .form-select {
  border: 1.5px solid var(--grey-300);
  border-radius: var(--radius);
  padding: .7rem .9rem;
  font-size: 1rem;
  color: var(--ink);
  background: var(--white);
  transition: border-color .15s;
  min-height: 48px;
}
.form-input:focus, .form-textarea:focus, .form-select:focus {
  outline: none; border-color: var(--blue-deep); box-shadow: 0 0 0 3px rgba(29,111,176,.18);
}
.form-textarea { resize: vertical; min-height: 120px; }

/* ── Footer ── */
.site-footer { background: var(--green-deep); color: rgba(255,255,255,.78); padding-block: clamp(2.5rem, 5vw, 4rem); font-size: .9rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: clamp(1.5rem, 4vw, 3rem); margin-bottom: 2rem; }
.footer-col h4 { color: var(--white); font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: .9rem; }
.footer-col ul { display: flex; flex-direction: column; gap: .45rem; }
.footer-col a { color: rgba(255,255,255,.72); }
.footer-col a:hover { color: var(--white); text-decoration: none; }
.footer-logo { display: inline-block; margin-bottom: .9rem; }
.footer-logo img { height: 38px; width: auto; display: block; }
.footer-tagline { margin-bottom: 1rem; line-height: 1.5; }
.footer-badges { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }
.footer-badge { font-size: .74rem; border: 1px solid rgba(255,255,255,.3); border-radius: var(--radius); padding: .3rem .6rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.14); padding-top: 1.25rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem; font-size: .8rem; color: rgba(255,255,255,.55); }
@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid .footer-col:first-child { grid-column: 1/-1; }
}
@media (max-width: 420px) { .footer-grid { grid-template-columns: 1fr; } }

/* ── Page-specific: interior pages ── */
.page-hero { background: var(--green-deep); color: var(--white); padding-block: clamp(2.4rem, 6vw, 4.2rem); }
.page-hero h1 { color: var(--white); margin-bottom: .4em; }
.page-hero p  { opacity: .88; font-size: 1.05rem; max-width: 62ch; }
.page-content { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.stack { display: flex; flex-direction: column; gap: clamp(2.6rem, 6vw, 4.2rem); }

/* Process steps */
.steps { display: flex; flex-direction: column; gap: 1.5rem; counter-reset: step; }
.step { display: flex; gap: 1.25rem; align-items: flex-start; counter-increment: step; }
.step-num {
  flex-shrink: 0; width: 2.3rem; height: 2.3rem;
  background: var(--green-btn); color: var(--white); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head); font-weight: 700; font-size: 1.05rem;
}
.step-num::before { content: counter(step); }
.step-body h4 { margin-bottom: .25em; }
.step-body p  { color: var(--grey-700); font-size: .95rem; }

/* Accreditation strip */
.accred-strip { display: flex; flex-wrap: wrap; gap: 1.5rem; align-items: center; }
.accred-item {
  display: flex; align-items: center; gap: .5rem;
  font-family: var(--font-head); font-weight: 600; font-size: .95rem; color: var(--green-deep);
  border: 1px solid var(--grey-300); border-radius: var(--radius); padding: .55rem 1rem;
}
.accred-item .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); flex-shrink: 0; }
.confirm-note { font-size: .8rem; color: var(--grey-500); font-family: var(--font-body); font-weight: 400; margin-top: .6rem; }

/* ── Print / motion ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
