/* AVL Plumbing & Heating. Two temperatures: water blue and flame orange on navy. */
:root {
  --navy: #0f1f3d;
  --navy-deep: #0a1730;
  --water: #1e7be0;
  --water-soft: #e3effc;
  --flame: #f2711c;
  --flame-soft: #fdebdd;
  --ink: #14213d;
  --ink-soft: #4a5570;
  --ground: #f5f7fb;
  --white: #ffffff;
  --line: #d6dce8;
  --display: "Barlow Condensed", "Arial Narrow", Impact, sans-serif;
  --body: "Barlow", "Helvetica Neue", Arial, sans-serif;
  --wrap: 1120px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 6px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--ink);
  background: var(--ground);
  padding-bottom: 68px; /* room for the mobile call bar */
}
img { max-width: 100%; display: block; }
a { color: var(--water); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--flame);
  outline-offset: 2px;
}
h1, h2, h3 {
  font-family: var(--display);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.01em;
  margin: 0 0 0.5rem;
}
h1 { font-size: clamp(2.6rem, 7vw, 4.75rem); }
h2 { font-size: clamp(2rem, 4.5vw, 3rem); color: var(--navy); }
h3 { font-size: 1.45rem; font-weight: 700; }
p { margin: 0 0 1rem; max-width: 62ch; }
ul { padding-left: 1.2rem; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(3rem, 7vw, 5.5rem); }
.section-tint { background: var(--white); }
.section-dark { background: var(--navy); color: var(--white); }
.section-dark h2, .section-dark a { color: var(--white); }
.section-intro { color: var(--ink-soft); font-size: 1.15rem; margin-bottom: 2rem; }

/* Buttons */
.button {
  display: inline-block;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 0.01em;
  padding: 0.75rem 1.4rem;
  border-radius: var(--radius);
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  line-height: 1.1;
}
.button-orange { background: var(--flame); color: var(--navy-deep); border-color: var(--flame); }
.button-orange:hover { background: #ff8533; }
.button-blue { background: var(--water); color: var(--white); border-color: var(--water); }
.button-ghost { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.45); }
.button-ghost:hover { border-color: var(--white); }

/* Top bar */
.topbar {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 0.6rem var(--gutter);
  background: var(--navy-deep);
  color: var(--white);
}
.brand { display: flex; align-items: center; gap: 0.75rem; color: var(--white); text-decoration: none; font-family: var(--display); font-weight: 700; font-size: 1.35rem; }
.brand img { width: 56px; height: 56px; border-radius: 50%; }
.topbar-call { color: var(--white); text-decoration: none; font-family: var(--display); font-weight: 700; font-size: 1.25rem; white-space: nowrap; }
.topbar-call:hover { color: var(--flame); }

/* Hero: the phone number is the headline act */
.hero { background: linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%); color: var(--white); padding-block: clamp(2.5rem, 6vw, 5rem) 0; }
.hero-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; align-items: center; }
.hero-copy h1 { color: var(--white); }
.lede { font-size: 1.2rem; color: rgba(255,255,255,0.82); max-width: 48ch; }
.hero-phone {
  display: inline-block;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2.8rem, 9vw, 5.5rem);
  line-height: 1;
  color: var(--flame);
  text-decoration: none;
  margin: 0.5rem 0 1.25rem;
  letter-spacing: 0.01em;
}
.hero-phone:hover { color: #ff8533; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.hero-logo { width: min(320px, 70vw); margin-inline: auto; filter: drop-shadow(0 12px 30px rgba(0,0,0,0.45)); }
.trust {
  list-style: none; padding-left: var(--gutter); margin: 3rem auto 0;
  display: flex; flex-wrap: wrap; gap: 0.5rem 2rem;
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-block: 1.1rem;
  font-weight: 600; color: rgba(255,255,255,0.88); font-size: 0.98rem;
}
.trust a { color: var(--white); }

/* Services: colour-coded by temperature */
.services { display: grid; grid-template-columns: 1fr; gap: 1rem; }
.service-card {
  background: var(--white);
  border-left: 6px solid var(--water);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.25rem 1.25rem 1rem 1.1rem;
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 0 0.9rem;
}
.service-card.is-heat { border-left-color: var(--flame); }
.service-card .icon { width: 36px; height: 36px; color: var(--water); grid-row: span 3; margin-top: 2px; }
.service-card.is-heat .icon { color: var(--flame); }
.service-card h3 { margin-bottom: 0.25rem; color: var(--navy); }
.service-card p { color: var(--ink-soft); margin-bottom: 0.6rem; font-size: 1rem; }
.service-items { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 0.35rem; }
.service-items li { font-size: 0.85rem; font-weight: 600; padding: 0.15rem 0.55rem; border-radius: 999px; background: var(--water-soft); color: var(--navy); }
.is-heat .service-items li { background: var(--flame-soft); }

/* About */
.about-grid { display: grid; grid-template-columns: 1fr; gap: 1rem 3rem; }
.about-copy p { font-size: 1.1rem; }
.signature { font-family: var(--display); font-weight: 700; font-size: 1.4rem; color: var(--flame); }

/* Reviews */
.reviews { display: grid; grid-template-columns: 1fr; gap: 1rem; margin-bottom: 1.5rem; }
.review { margin: 0; background: var(--white); border-top: 4px solid var(--water); padding: 1.25rem; }
.review p { font-size: 1.1rem; }
.review footer { color: var(--ink-soft); font-weight: 600; }

/* Areas */
.areas { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.areas li { background: var(--white); border: 1px solid var(--line); padding: 0.4rem 0.9rem; border-radius: 999px; font-weight: 600; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr; gap: 2.5rem; }
.contact-copy p { color: rgba(255,255,255,0.85); }
.contact-phone a { font-family: var(--display); font-weight: 800; font-size: clamp(2rem, 6vw, 3rem); text-decoration: none; color: var(--flame); }
.contact-form { display: grid; gap: 1rem; background: var(--navy-deep); padding: 1.5rem; border-radius: var(--radius); border: 1px solid rgba(255,255,255,0.12); }
.contact-form label { display: grid; gap: 0.35rem; font-weight: 600; font-size: 0.95rem; color: rgba(255,255,255,0.9); }
.contact-form input, .contact-form textarea {
  font: inherit; font-size: 1rem; color: var(--ink);
  padding: 0.7rem 0.8rem; border-radius: 4px; border: 1px solid var(--line); background: var(--white);
  width: 100%;
}
.contact-form textarea { resize: vertical; }
.contact-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { min-height: 1.4em; margin: 0; font-weight: 600; color: #8fd3ff; }
.form-status.is-error { color: #ffb38a; }

/* Footer */
.footer { background: var(--navy-deep); color: rgba(255,255,255,0.8); padding-block: 2.5rem; font-size: 0.95rem; }
.footer a { color: var(--white); }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
.footer-name { font-family: var(--display); font-weight: 700; font-size: 1.4rem; color: var(--white); margin-bottom: 0.25rem; }

/* Thanks page */
.thanks { padding-block: 4rem 6rem; }
.thanks h1 { color: var(--navy); }

/* Mobile sticky call bar */
.call-bar {
  position: fixed; inset: auto 0 0 0; z-index: 10;
  display: flex; align-items: center; justify-content: center; gap: 0.6rem;
  background: var(--flame); color: var(--navy-deep); text-decoration: none;
  font-family: var(--display); font-weight: 800; font-size: 1.35rem;
  padding: 0.9rem 1rem; padding-bottom: calc(0.9rem + env(safe-area-inset-bottom));
}
.call-bar svg { width: 22px; height: 22px; fill: currentColor; }

@media (min-width: 720px) {
  .hero-grid { grid-template-columns: 1.3fr 1fr; }
  .hero-logo { margin-inline: 0 auto; }
  .services { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr 2fr; }
  .reviews { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr 1.2fr; align-items: start; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 900px) {
  body { padding-bottom: 0; }
  .call-bar { display: none; }
  .reviews { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 479px) {
  .brand span { display: none; }
}

.review h3 { font-size: 1.2rem; color: var(--navy); margin-bottom: 0.4rem; }
.review p { font-size: 1.05rem; color: var(--ink); }
.review footer { font-size: 0.95rem; }
.review-score { color: var(--water); }

/* Recent work: a continuously drifting strip of job photos, paused on hover/focus */
.work { padding-bottom: clamp(2.5rem, 6vw, 4.5rem); }
.work .section-intro { color: rgba(255,255,255,0.8); margin-bottom: 1.5rem; }
.marquee { overflow: hidden; width: 100%; -webkit-mask: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.marquee:focus-visible { outline: 3px solid var(--flame); outline-offset: -3px; }
.marquee-track { display: flex; width: max-content; animation: marquee 48s linear infinite; }
.marquee:hover .marquee-track, .marquee:focus-within .marquee-track { animation-play-state: paused; }
.marquee-set { display: flex; gap: 0.9rem; list-style: none; margin: 0; padding: 0 0.45rem; }
.marquee-set li { flex: none; }
.marquee-set img {
  height: 240px; width: auto; display: block;
  border-radius: var(--radius); border: 3px solid rgba(255,255,255,0.08);
  background: var(--navy-deep);
}
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (min-width: 720px) { .marquee-set img { height: 320px; } }
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; width: auto; }
  .marquee { overflow-x: auto; -webkit-mask: none; mask: none; }
  .marquee-set[aria-hidden="true"] { display: none; }
}
