/* =========================================================
   AquaStem Plumbing & Heating — stylesheet
   Theme pulled from the logo: deep teal → emerald green
   ========================================================= */

:root {
  /* Brand palette (from logo) */
  --teal-deep: #0E6E7D;
  --teal: #15808F;
  --green: #2BA66F;
  --green-bright: #34C77B;
  --ink: #1B2A33;          /* dark slate used in logo wordmark */
  --ink-soft: #4a5b66;
  --muted: #6b7b85;
  --line: #e3e9ec;
  --bg: #ffffff;
  --bg-alt: #f4f8f9;
  --bg-dark: #0f2730;
  --white: #ffffff;

  --grad: linear-gradient(135deg, var(--teal-deep) 0%, var(--green) 100%);
  --grad-soft: linear-gradient(135deg, #e8f4f4 0%, #eaf7ee 100%);

  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 2px 10px rgba(15, 39, 48, 0.06);
  --shadow: 0 12px 34px rgba(15, 39, 48, 0.10);
  --shadow-lg: 0 24px 60px rgba(15, 39, 48, 0.16);

  --font-head: "Poppins", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;

  --maxw: 1160px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.15; color: var(--ink); }
.hidden { position: absolute; left: -9999px; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
.container--narrow { max-width: 820px; }
.grad-text {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--font-head); font-weight: 600; font-size: .98rem;
  padding: .8rem 1.5rem; border-radius: 999px; border: 2px solid transparent;
  cursor: pointer; transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
  white-space: nowrap;
}
.btn--primary { background: var(--grad); color: #fff; box-shadow: 0 8px 22px rgba(43,166,111,.32); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(43,166,111,.42); }
.btn--ghost { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.55); }
.btn--ghost:hover { background: rgba(255,255,255,.22); transform: translateY(-2px); }
.btn--lg { padding: 1rem 1.9rem; font-size: 1.05rem; }
.btn--block { width: 100%; }

/* ---------- Top bar ---------- */
.topbar { background: var(--bg-dark); color: #cfe6e6; font-size: .85rem; }
.topbar__inner { display: flex; align-items: center; gap: 1.2rem; padding: .55rem 22px; flex-wrap: wrap; }
.topbar__item { opacity: .9; }
.topbar__divider { position: relative; }
.topbar__phone { margin-left: auto; font-weight: 600; color: #fff; }
.topbar__phone:hover { color: var(--green-bright); }
@media (max-width: 720px) { .topbar__item:not(:first-child) { display: none; } }

/* ---------- Header / nav ---------- */
.header {
  position: sticky; top: 0; z-index: 60; background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px); border-bottom: 1px solid var(--line);
  transition: box-shadow .2s ease;
}
.header.scrolled { box-shadow: var(--shadow-sm); }
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: flex; align-items: center; gap: .55rem; }
.brand__icon { height: 46px; width: 46px; object-fit: contain; flex: 0 0 auto; }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__name { font-family: var(--font-head); font-weight: 800; font-size: 1.55rem; letter-spacing: -0.01em; }
.brand__name--aqua { color: var(--teal-deep); }
.brand__name--stem { color: var(--green); }
.brand__tag {
  font-family: var(--font-head); font-weight: 600; font-size: .58rem; letter-spacing: .22em;
  text-transform: uppercase; color: var(--muted); margin-top: 4px;
}
@media (max-width: 420px) {
  .brand__name { font-size: 1.3rem; }
  .brand__icon { height: 40px; width: 40px; }
  .brand__tag { font-size: .52rem; letter-spacing: .16em; }
}
.nav { display: flex; align-items: center; gap: 1.6rem; }
.nav__link { font-weight: 500; color: var(--ink-soft); font-size: .98rem; transition: color .15s; }
.nav__link:hover { color: var(--teal); }
.nav__link--cta {
  background: var(--grad); color: #fff !important; padding: .6rem 1.2rem; border-radius: 999px;
  box-shadow: 0 6px 16px rgba(43,166,111,.3);
}
.nav__link--cta:hover { transform: translateY(-1px); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 6px; }
.nav-toggle span { width: 26px; height: 3px; background: var(--ink); border-radius: 2px; transition: .25s; }
.nav-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

@media (max-width: 920px) {
  .nav-toggle { display: flex; }
  .nav {
    position: fixed; inset: 76px 0 auto 0; flex-direction: column; gap: 0;
    background: #fff; padding: .5rem 22px 1.2rem; border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow); transform: translateY(-130%); transition: transform .3s ease; align-items: stretch;
  }
  .nav.open { transform: translateY(0); }
  .nav__link { padding: .9rem 0; border-bottom: 1px solid var(--line); }
  .nav__link--cta { margin-top: .8rem; text-align: center; }
}

/* ---------- Hero ---------- */
.hero { position: relative; color: #fff; overflow: hidden; }
.hero__bg { position: absolute; inset: 0; background: var(--grad); z-index: -2; }
.hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 80% 15%, rgba(255,255,255,.18), transparent 40%),
    radial-gradient(circle at 10% 90%, rgba(0,0,0,.15), transparent 45%);
}
.hero__inner {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 3rem; align-items: center;
  padding: 4.5rem 22px 5rem;
}
.hero__eyebrow {
  display: inline-block; font-family: var(--font-head); font-weight: 600; font-size: .85rem;
  letter-spacing: .06em; text-transform: uppercase; background: rgba(255,255,255,.16);
  padding: .4rem .9rem; border-radius: 999px; margin-bottom: 1.1rem;
}
.hero__title { font-size: clamp(2.2rem, 5vw, 3.5rem); font-weight: 800; color: #fff; }
.hero__title .grad-text { -webkit-text-fill-color: #d8ffe9; }
.hero__subtitle { font-size: 1.12rem; margin: 1.2rem 0 1.8rem; max-width: 540px; color: rgba(255,255,255,.92); }
.hero__cta { display: flex; gap: .9rem; flex-wrap: wrap; }
.hero__trust { display: flex; gap: 1.4rem; margin-top: 1.8rem; flex-wrap: wrap; font-weight: 500; font-size: .95rem; }

/* Quote card */
.hero__card { display: flex; justify-content: center; }
.quote-card {
  background: #fff; color: var(--ink); border-radius: var(--radius-lg);
  padding: 2rem; width: 100%; max-width: 400px; box-shadow: var(--shadow-lg);
}
.quote-card__title { font-size: 1.4rem; font-weight: 700; }
.quote-card__sub { color: var(--muted); font-size: .92rem; margin: .35rem 0 1.2rem; }
.quote-card__form { display: flex; flex-direction: column; gap: .8rem; }
.quote-card__form input, .quote-card__form select {
  width: 100%; padding: .85rem 1rem; border: 1.5px solid var(--line); border-radius: 10px;
  font-family: var(--font-body); font-size: .98rem; background: #fff; color: var(--ink);
}
.quote-card__form input:focus, .quote-card__form select:focus { outline: none; border-color: var(--teal); }

@media (max-width: 920px) {
  .hero__inner { grid-template-columns: 1fr; gap: 2.4rem; padding: 3rem 22px 3.5rem; }
  .hero__card { order: 2; }
}

/* ---------- Trust strip ---------- */
.trust-strip { background: var(--bg-dark); }
.trust-strip__inner { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; padding: 1.6rem 22px; text-align: center; }
.trust-strip__item { color: #fff; }
.trust-strip__item strong { display: block; font-family: var(--font-head); font-size: 1.15rem; color: var(--green-bright); }
.trust-strip__item span { font-size: .85rem; color: #b7cdcd; }
@media (max-width: 680px) { .trust-strip__inner { grid-template-columns: repeat(2, 1fr); gap: 1.4rem 1rem; } }

/* ---------- Sections ---------- */
.section { padding: 5rem 0; }
.section--alt { background: var(--bg-alt); }
.section__head { text-align: center; max-width: 680px; margin: 0 auto 3rem; }
.section__eyebrow {
  font-family: var(--font-head); font-weight: 600; font-size: .82rem; letter-spacing: .08em;
  text-transform: uppercase; color: var(--teal);
}
.section__eyebrow--light { color: #aef0cf; }
.section__title { font-size: clamp(1.8rem, 3.6vw, 2.5rem); font-weight: 700; margin-top: .5rem; }
.section__title--light { color: #fff; }
.section__lead { color: var(--muted); font-size: 1.08rem; margin-top: .8rem; }
.section__cta { text-align: center; margin-top: 2.6rem; }

/* ---------- Services ---------- */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.service-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem 1.6rem;
  box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .2s ease, border-color .2s;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.service-card__icon {
  width: 58px; height: 58px; display: grid; place-items: center; font-size: 1.7rem;
  background: var(--grad-soft); border-radius: 14px; margin-bottom: 1.1rem;
}
.service-card h3 { font-size: 1.18rem; margin-bottom: .5rem; }
.service-card p { color: var(--muted); font-size: .96rem; }
@media (max-width: 900px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .services-grid { grid-template-columns: 1fr; } }

/* ---------- Why us ---------- */
.why { display: grid; grid-template-columns: .85fr 1.15fr; gap: 3rem; align-items: center; }
.why__media {
  position: relative; min-height: 360px; border-radius: var(--radius-lg);
  background: var(--grad); display: grid; place-items: center; overflow: hidden;
}
.why__media::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 70% 30%, rgba(255,255,255,.2), transparent 50%);
}
.why__badge {
  background: #fff; border-radius: 20px; padding: 1.6rem 2rem; text-align: center;
  box-shadow: var(--shadow-lg); position: relative; z-index: 1;
}
.why__badge-num { display: block; font-family: var(--font-head); font-weight: 800; font-size: 2.6rem; color: var(--teal); }
.why__badge-text { font-family: var(--font-head); font-weight: 600; color: var(--ink-soft); }
.why__list { display: flex; flex-direction: column; gap: 1.3rem; margin-top: 1.6rem; }
.why__list li { display: flex; gap: 1rem; }
.why__check {
  flex: 0 0 auto; width: 30px; height: 30px; border-radius: 50%; background: var(--grad);
  color: #fff; display: grid; place-items: center; font-weight: 700; font-size: .9rem;
}
.why__list strong { font-family: var(--font-head); }
.why__list p { color: var(--muted); font-size: .95rem; margin-top: .2rem; }
@media (max-width: 860px) { .why { grid-template-columns: 1fr; } .why__media { min-height: 220px; } }

/* ---------- About ---------- */
.about__content { max-width: 760px; margin: 0 auto; text-align: center; }
.about__content p { color: var(--ink-soft); margin-top: 1rem; font-size: 1.05rem; }
.about__stats { display: flex; justify-content: center; gap: 2.5rem; margin-top: 2.4rem; flex-wrap: wrap; }
.about__stats strong { display: block; font-family: var(--font-head); font-weight: 800; font-size: 2.4rem; color: var(--teal); }
.about__stats span { color: var(--muted); font-size: .92rem; }

/* ---------- Reviews ---------- */
.reviews-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.review { background: #fff; border-radius: var(--radius); padding: 1.8rem; box-shadow: var(--shadow-sm); border: 1px solid var(--line); }
.review__stars { color: #f5b301; font-size: 1.1rem; letter-spacing: 2px; margin-bottom: .8rem; }
.review blockquote { font-size: 1rem; color: var(--ink-soft); font-style: italic; }
.review figcaption { margin-top: 1rem; font-weight: 600; font-family: var(--font-head); color: var(--ink); font-size: .92rem; }
@media (max-width: 880px) { .reviews-grid { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq { display: flex; flex-direction: column; gap: .8rem; }
.faq__item { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; }
.faq__q {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 1.15rem 1.3rem; background: none; border: 0; cursor: pointer; text-align: left;
  font-family: var(--font-head); font-weight: 600; font-size: 1.02rem; color: var(--ink);
}
.faq__icon { font-size: 1.5rem; color: var(--teal); transition: transform .25s; flex: 0 0 auto; }
.faq__item.open .faq__icon { transform: rotate(45deg); }
.faq__a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq__a p { padding: 0 1.3rem 1.2rem; color: var(--muted); }

/* ---------- Contact ---------- */
.section--contact { background: var(--bg-dark); }
.contact { display: grid; grid-template-columns: 1fr 1.05fr; gap: 3rem; align-items: start; }
.contact__lead { color: #c5dada; margin-top: .8rem; max-width: 420px; }
.contact__list { margin-top: 2rem; display: flex; flex-direction: column; gap: 1.3rem; }
.contact__list li { display: flex; gap: 1rem; align-items: flex-start; color: #dcebeb; }
.contact__ico {
  flex: 0 0 auto; width: 44px; height: 44px; display: grid; place-items: center; font-size: 1.2rem;
  background: rgba(255,255,255,.08); border-radius: 12px;
}
.contact__list strong { display: block; color: #fff; font-family: var(--font-head); font-size: .95rem; margin-bottom: .15rem; }
.contact__list a:hover { color: var(--green-bright); }

.contact__form-wrap { background: #fff; border-radius: var(--radius-lg); padding: 2.2rem; box-shadow: var(--shadow-lg); }
.contact__form { display: flex; flex-direction: column; gap: 1.1rem; }
.field { display: flex; flex-direction: column; gap: .4rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.field label { font-weight: 600; font-size: .88rem; font-family: var(--font-head); color: var(--ink); }
.field input, .field select, .field textarea {
  padding: .8rem 1rem; border: 1.5px solid var(--line); border-radius: 10px;
  font-family: var(--font-body); font-size: .98rem; color: var(--ink); background: #fff; resize: vertical;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--teal); }
.contact__form-note { text-align: center; color: var(--muted); font-size: .85rem; }
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; gap: 2.2rem; } .field-row { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.footer { background: #0a1c23; color: #aebfc4; padding-top: 3.2rem; }
.footer__inner { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 2rem; padding-bottom: 2.6rem; }
.brand--footer { margin-bottom: 1rem; }
.brand--footer .brand__icon { background: #fff; border-radius: 10px; padding: 5px; height: 46px; width: 46px; }
.brand--footer .brand__name--aqua { color: #cfeaf0; }
.brand--footer .brand__name--stem { color: var(--green-bright); }
.brand--footer .brand__tag { color: #8aa3a8; }
.footer__brand p { font-size: .92rem; max-width: 280px; }
.footer__col h4 { color: #fff; font-size: 1rem; margin-bottom: 1rem; }
.footer__col ul li { margin-bottom: .6rem; font-size: .92rem; }
.footer__col a:hover { color: var(--green-bright); }
.footer__bar { border-top: 1px solid rgba(255,255,255,.1); }
.footer__bar-inner { display: flex; justify-content: space-between; padding: 1.2rem 22px; font-size: .82rem; flex-wrap: wrap; gap: .5rem; }
@media (max-width: 820px) { .footer__inner { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer__inner { grid-template-columns: 1fr; } }

/* ---------- Floating call button ---------- */
.fab-call {
  position: fixed; right: 18px; bottom: 18px; z-index: 70; width: 58px; height: 58px;
  border-radius: 50%; background: var(--grad); color: #fff; display: none; place-items: center;
  font-size: 1.5rem; box-shadow: var(--shadow-lg); animation: pulse 2.4s infinite;
}
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(43,166,111,.5);} 70% { box-shadow: 0 0 0 16px rgba(43,166,111,0);} 100% { box-shadow: 0 0 0 0 rgba(43,166,111,0);} }
@media (max-width: 920px) { .fab-call { display: grid; } }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  .fab-call { animation: none; }
}
