/* =============================================================================
   SAGE  -  clean / trustworthy plumber template
   Pinnacle Web Design
   ========================================================================== */

:root {
  --bg:        #f8f6f1;
  --paper:     #ffffff;
  --forest:    #2f5d4c;
  --forest-2:  #244a3c;
  --forest-3:  #6a8f7f;
  --forest-tint: #eaf1ec;
  --forest-soft: rgba(47, 93, 76, 0.08);

  --ink:   #22302b;
  --text:  #4f5b55;
  --muted: #8a948e;
  --amber: #e0a017;
  --line:   rgba(34, 48, 43, 0.11);
  --line-2: rgba(34, 48, 43, 0.2);

  --font-display: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
  --font-sans:    "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --wrap: 1200px;
  --radius: 14px;
  --radius-lg: 22px;
  --radius-xl: 32px;
  --pill: 999px;
  --shadow: 0 24px 60px -34px rgba(34, 48, 43, 0.35);
  --shadow-sm: 0 8px 26px -16px rgba(34, 48, 43, 0.24);
  --shadow-card: 0 2px 4px rgba(34, 48, 43, 0.03), 0 16px 34px -22px rgba(34, 48, 43, 0.2);
}

/* ---------- reset / base -------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 1.0625rem;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
.tk-pending body { opacity: 0; }
body { opacity: 1; transition: opacity .45s ease; }
body.nav-locked { overflow: hidden; }

img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul { list-style: none; padding: 0; }
section[id] { scroll-margin-top: 88px; }
:focus-visible { outline: 2px solid var(--forest); outline-offset: 3px; }

/* ---------- layout helpers ------------------------------------------------ */
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.section { padding: clamp(4rem, 8vw, 7rem) 0; }

.eyebrow { display: inline-flex; align-items: center; gap: .5rem; font-family: var(--font-display); font-size: .82rem; font-weight: 600; color: var(--forest); background: var(--forest-tint); padding: .45rem .9rem; border-radius: var(--pill); margin-bottom: 1.2rem; }
.eyebrow svg { width: 1.05em; height: 1.05em; }
.eyebrow.center { margin-left: auto; margin-right: auto; }

.section-head { max-width: 620px; margin-bottom: clamp(2.5rem, 5vw, 3.5rem); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-title { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.9rem, 3.6vw, 2.9rem); line-height: 1.12; letter-spacing: -.02em; color: var(--ink); }
.section-lead { margin-top: 1rem; font-size: 1.075rem; color: var(--text); max-width: 58ch; }
.section-head.center .section-lead { margin-left: auto; margin-right: auto; }

/* ---------- buttons ------------------------------------------------------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .55rem; font-family: var(--font-display); font-weight: 600; font-size: .95rem; padding: .9rem 1.6rem; border-radius: var(--radius); transition: transform .2s ease, background .2s ease, box-shadow .2s ease, color .2s ease; border: 1px solid transparent; white-space: nowrap; }
.btn svg { width: 1.1em; height: 1.1em; }
.btn-solid { background: var(--forest); color: #fff; box-shadow: 0 12px 24px -14px rgba(47,93,76,.7); }
.btn-solid:hover { background: var(--forest-2); transform: translateY(-2px); box-shadow: 0 16px 30px -14px rgba(47,93,76,.7); }
.btn-soft { background: var(--paper); color: var(--ink); border-color: var(--line); box-shadow: var(--shadow-sm); }
.btn-soft:hover { transform: translateY(-2px); color: var(--forest); }
.btn-white { background: #fff; color: var(--forest); }
.btn-white:hover { transform: translateY(-2px); background: #f3f7f4; }
.btn-sm { padding: .62rem 1.15rem; font-size: .9rem; }
.btn-block { width: 100%; padding-top: 1rem; padding-bottom: 1rem; }

/* ---------- header -------------------------------------------------------- */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 100; background: rgba(248,246,241,.85); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid transparent; transition: border-color .3s ease, box-shadow .3s ease, padding .3s ease; padding: 15px 0; }
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 10px 30px -24px rgba(34,48,43,.5); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.brand { display: inline-flex; align-items: center; gap: .6rem; }
.brand-mark { display: grid; place-items: center; width: 38px; height: 38px; color: #fff; background: var(--forest); border-radius: 11px; flex: none; }
.brand-mark svg { width: 20px; height: 20px; }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; color: var(--ink); letter-spacing: -.01em; }
.nav { display: flex; align-items: center; gap: 1.7rem; }
.nav a { font-family: var(--font-display); font-size: .93rem; font-weight: 500; color: var(--ink); transition: color .2s ease; }
.nav a:hover { color: var(--forest); }
.header-cta { display: flex; align-items: center; gap: 1.1rem; }
.header-phone { display: inline-flex; align-items: center; gap: .4rem; font-family: var(--font-display); font-weight: 600; font-size: .93rem; color: var(--forest); }
.header-phone svg { width: 1.05em; height: 1.05em; }
.nav-toggle { display: none; width: 44px; height: 44px; flex-direction: column; gap: 5px; align-items: center; justify-content: center; }
.nav-toggle span { width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .3s ease, opacity .3s ease; }
.nav-toggle.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-active span:nth-child(2) { opacity: 0; }
.nav-toggle.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- hero ---------------------------------------------------------- */
.hero { padding-top: clamp(7rem, 12vw, 9.5rem); padding-bottom: clamp(3rem, 6vw, 5rem); background:
  radial-gradient(60% 55% at 85% 10%, rgba(47,93,76,.08), transparent 70%), var(--bg); }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2.5rem, 5vw, 4.5rem); align-items: center; }
.hero-title { font-family: var(--font-display); font-weight: 800; color: var(--ink); font-size: clamp(2.4rem, 4.8vw, 3.9rem); line-height: 1.05; letter-spacing: -.03em; margin-top: .3rem; }
.hero-title span { color: var(--forest); }
.hero-sub { margin-top: 1.3rem; font-size: 1.15rem; color: var(--text); max-width: 38rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.hero-badges { display: flex; flex-wrap: wrap; gap: .8rem 1.5rem; margin-top: 2.2rem; }
.hero-badges li { display: inline-flex; align-items: center; gap: .5rem; font-size: .9rem; font-weight: 500; color: var(--ink); }
.hero-badges svg { width: 1.25em; height: 1.25em; color: var(--forest); flex: none; }

.hero-figure { position: relative; }
.hero-figure > img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius-xl); box-shadow: var(--shadow); }
.hero-float { position: absolute; left: -18px; bottom: 26px; display: flex; align-items: center; gap: .8rem; background: var(--paper); border-radius: var(--radius); padding: .9rem 1.1rem; box-shadow: var(--shadow); }
.hero-float-ic { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 11px; background: var(--forest-tint); color: var(--forest); flex: none; }
.hero-float-ic svg { width: 24px; height: 24px; }
.hero-float span:last-child { display: grid; font-size: .8rem; color: var(--muted); line-height: 1.3; }
.hero-float strong { font-family: var(--font-display); font-size: .95rem; color: var(--ink); }

/* ---------- services ------------------------------------------------------ */
.service-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.1rem; }
.service-card { background: var(--paper); border-radius: var(--radius-lg); padding: 1.8rem 1.6rem; box-shadow: var(--shadow-card); transition: transform .28s ease, box-shadow .28s ease; }
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.service-icon { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 13px; background: var(--forest-tint); color: var(--forest); margin-bottom: 1.2rem; }
.service-icon svg { width: 25px; height: 25px; }
.service-card h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.18rem; color: var(--ink); margin-bottom: .45rem; }
.service-card p { font-size: .94rem; color: var(--text); }

/* ---------- our work ------------------------------------------------------ */
.work-grid { display: grid; grid-template-columns: 1.5fr 1fr; grid-auto-rows: 232px; gap: 1.1rem; }
.work-card { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-card); }
.work-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.work-card:hover img { transform: scale(1.04); }
.work-card-lg { grid-row: span 2; }
.work-card figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 1.4rem 1.3rem .9rem; font-family: var(--font-display); font-weight: 600; color: #fff; background: linear-gradient(to top, rgba(20,32,27,.8), transparent); }

/* ---------- why us -------------------------------------------------------- */
.why-grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: clamp(2.5rem, 5vw, 4.5rem); align-items: center; }
.why-media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius-xl); box-shadow: var(--shadow); }
.tick-list { margin-top: 1.6rem; display: grid; grid-template-columns: 1fr 1fr; gap: .7rem 1.4rem; }
.tick-list li { position: relative; padding-left: 2rem; color: var(--ink); font-size: .98rem; }
.tick-list li::before { content: ""; position: absolute; left: 0; top: .08em; width: 1.3rem; height: 1.3rem; border-radius: 50%; background: var(--forest-tint); }
.tick-list li::after { content: ""; position: absolute; left: .46rem; top: .3em; width: .35rem; height: .62rem; border-right: 2px solid var(--forest); border-bottom: 2px solid var(--forest); transform: rotate(45deg); }
.mini-stats { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2rem; }
.mini-stat { background: var(--paper); border-radius: var(--radius); padding: 1.1rem 1.3rem; box-shadow: var(--shadow-card); min-width: 118px; }
.mini-stat strong { display: block; font-family: var(--font-display); font-weight: 700; font-size: 1.7rem; color: var(--forest); line-height: 1; }
.mini-stat span { font-size: .82rem; color: var(--muted); }

/* ---------- process ------------------------------------------------------- */
.process { background: var(--paper); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.step { text-align: center; }
.step-num { display: grid; place-items: center; width: 52px; height: 52px; margin: 0 auto 1.1rem; border-radius: 50%; background: var(--forest); color: #fff; font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; box-shadow: 0 12px 24px -14px rgba(47,93,76,.8); }
.step h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.25rem; color: var(--ink); margin-bottom: .5rem; }
.step p { color: var(--text); font-size: .96rem; max-width: 34ch; margin: 0 auto; }

/* ---------- reviews ------------------------------------------------------- */
.review-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.review-card { background: var(--paper); border-radius: var(--radius-lg); padding: 1.9rem 1.7rem; box-shadow: var(--shadow-card); }
.review-card .stars { display: block; color: var(--amber); letter-spacing: .1em; margin-bottom: 1rem; }
.review-card blockquote { color: var(--ink); font-size: 1.02rem; line-height: 1.6; margin-bottom: 1.4rem; }
.review-card figcaption { display: flex; align-items: center; gap: .8rem; }
.avatar { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--forest-tint); color: var(--forest); font-family: var(--font-display); font-weight: 700; flex: none; }
.rev-name { display: grid; font-family: var(--font-display); font-weight: 600; font-size: .92rem; color: var(--ink); }
.rev-name small { font-family: var(--font-sans); font-weight: 400; font-size: .8rem; color: var(--muted); }

/* ---------- areas (dark green block) -------------------------------------- */
.areas-card { background: var(--forest); border-radius: var(--radius-xl); padding: clamp(2.2rem, 4vw, 3.5rem); color: #fff; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 4vw, 3.5rem); align-items: center; box-shadow: var(--shadow); }
.areas-card .eyebrow { background: rgba(255,255,255,.14); color: #d6e5dd; }
.areas-card .section-title { color: #fff; }
.areas-card .section-lead { color: rgba(255,255,255,.82); }
.areas-list { display: flex; flex-wrap: wrap; gap: .6rem; }
.areas-list span { border: 1px solid rgba(255,255,255,.24); background: rgba(255,255,255,.07); border-radius: var(--pill); padding: .55rem 1rem; font-size: .9rem; font-weight: 500; color: #fff; }

/* ---------- faq ----------------------------------------------------------- */
.faq-list { max-width: 800px; margin: 0 auto; display: grid; gap: .8rem; }
.faq-item { background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow-card); overflow: hidden; }
.faq-q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem; text-align: left; padding: 1.3rem 1.5rem; font-family: var(--font-display); font-weight: 600; font-size: 1.08rem; color: var(--ink); }
.faq-icon { position: relative; flex: none; width: 18px; height: 18px; }
.faq-icon::before, .faq-icon::after { content: ""; position: absolute; background: var(--forest); border-radius: 2px; transition: transform .3s ease, opacity .3s ease; }
.faq-icon::before { top: 8px; left: 0; width: 18px; height: 2px; }
.faq-icon::after { left: 8px; top: 0; width: 2px; height: 18px; }
.faq-item.is-open .faq-icon::after { transform: scaleY(0); opacity: 0; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.faq-a p { padding: 0 1.5rem 1.4rem; color: var(--text); max-width: 62ch; }

/* ---------- contact ------------------------------------------------------- */
.contact { background: var(--forest-tint); }
.contact-card { background: var(--paper); border-radius: var(--radius-xl); box-shadow: var(--shadow); padding: clamp(1.8rem, 4vw, 3.2rem); display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(2rem, 4vw, 4rem); align-items: start; }
.contact-list { margin-top: 1.8rem; display: grid; gap: 1.2rem; }
.contact-list li { display: flex; gap: 1rem; align-items: flex-start; }
.contact-ic { display: grid; place-items: center; width: 44px; height: 44px; flex: none; border-radius: 12px; background: var(--forest-tint); color: var(--forest); }
.contact-ic svg { width: 22px; height: 22px; }
.contact-list small { display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: .15rem; }
.contact-list a { color: var(--ink); font-weight: 500; }
.contact-list a:hover { color: var(--forest); }
.contact-list span:last-child { color: var(--text); line-height: 1.5; }

.quote-form { display: grid; gap: 1rem; }
.field { display: grid; gap: .4rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field label { font-family: var(--font-display); font-size: .82rem; font-weight: 600; color: var(--ink); }
.field input, .field select, .field textarea { width: 100%; background: var(--bg); border: 1px solid var(--line-2); border-radius: var(--radius); padding: .82rem .95rem; color: var(--ink); font: inherit; font-size: .98rem; transition: border-color .2s ease, box-shadow .2s ease, background .2s ease; }
.field textarea { resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: var(--muted); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--forest); background: #fff; box-shadow: 0 0 0 3px rgba(47,93,76,.14); }
.form-note { font-size: .78rem; color: var(--muted); }
.form-success { background: var(--forest-tint); border-radius: var(--radius); padding: 2rem; display: grid; gap: .4rem; }
.form-success strong { font-family: var(--font-display); font-size: 1.3rem; color: var(--forest); }
.form-success span { color: var(--text); }

/* ---------- footer -------------------------------------------------------- */
.site-footer { background: #1e3b30; color: #fff; padding-top: clamp(3.5rem, 6vw, 5rem); }
.site-footer .brand-name { color: #fff; }
.site-footer .brand-mark { background: rgba(255,255,255,.12); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 2.5rem; padding-bottom: 3rem; }
.footer-brand p { margin-top: 1.1rem; color: rgba(255,255,255,.6); max-width: 30ch; font-size: .95rem; }
.footer-col h4 { font-family: var(--font-display); font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: #fff; margin-bottom: 1.1rem; }
.footer-col ul { display: grid; gap: .6rem; }
.footer-col a, .footer-contact li { color: rgba(255,255,255,.66); font-size: .95rem; }
.footer-col a:hover { color: #fff; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding: 1.6rem 24px; border-top: 1px solid rgba(255,255,255,.12); color: rgba(255,255,255,.55); font-size: .86rem; }
.footer-bottom .credit a { color: #cfe0d8; }
.footer-bottom .credit a:hover { color: #fff; text-decoration: underline; }

/* ---------- sticky mobile bar --------------------------------------------- */
.mobile-bar { display: none; }

/* ---------- reveal -------------------------------------------------------- */
[data-reveal] { opacity: 0; transform: translateY(20px); transition: opacity .7s ease, transform .7s ease; }
[data-reveal].is-visible { opacity: 1; transform: none; }

/* =============================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1024px) {
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

@media (max-width: 880px) {
  .nav { position: fixed; inset: 0; z-index: 99; flex-direction: column; justify-content: center; gap: 1.4rem; background: rgba(248,246,241,.98); backdrop-filter: blur(8px); opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .3s ease, transform .3s ease, visibility .3s; }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav a { font-family: var(--font-display); font-size: 1.6rem; }
  .nav-toggle { display: flex; }
  .header-phone, .header-cta .btn-sm { display: none; }

  .hero-grid, .why-grid, .areas-card, .contact-card { grid-template-columns: 1fr; }
  .hero-figure { max-width: 460px; }
  .hero-figure > img { aspect-ratio: 5 / 4; }
  .why-media { order: -1; max-width: 460px; }
  .steps { grid-template-columns: 1fr; gap: 2.4rem; }
  .work-grid { grid-template-columns: 1fr; grid-auto-rows: auto; }
  .work-card { aspect-ratio: 16 / 10; }
  .work-card-lg { grid-row: auto; }

  .mobile-bar { display: grid; grid-template-columns: 1fr 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; box-shadow: 0 -8px 24px -16px rgba(34,48,43,.5); transition: transform .35s ease; }
  .mobile-bar.is-hidden { transform: translateY(100%); }
  .mobile-bar a { display: flex; align-items: center; justify-content: center; gap: .5rem; padding: 1.05rem; font-family: var(--font-display); font-weight: 600; font-size: 1rem; }
  .mobile-bar-call { background: var(--forest); color: #fff; }
  .mobile-bar-call svg { width: 1.15em; height: 1.15em; }
  .mobile-bar-quote { background: var(--paper); color: var(--forest); }
}

@media (max-width: 560px) {
  .wrap { padding: 0 18px; }
  .service-grid { grid-template-columns: 1fr; }
  .tick-list { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .review-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .hero-float { left: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  [data-reveal] { opacity: 1; transform: none; }
}
