/* Two Brothers Sprinkler — landing page layout, built on top of styles.css */

html { scroll-behavior: smooth; }
a.brand-link { color: inherit; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

.eyebrow {
  display: block;
  font-family: var(--font-heading); font-size: 12px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--color-accent-700); margin-bottom: 10px;
}
.eyebrow-line {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-heading); font-size: 12px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--color-accent-700); margin-bottom: 18px;
}
.eyebrow-line::before { content: ""; display: block; width: 42px; height: 1px; background: var(--color-accent); }

.section-title { font-size: clamp(32px, 4vw, 48px); margin: 0; letter-spacing: -0.015em; }
.text-muted { color: color-mix(in srgb, var(--color-text) 68%, transparent); }

/* — reveal-on-scroll — */
[data-reveal] {
  opacity: 0; transform: translateY(20px);
  transition: opacity 700ms ease, transform 700ms cubic-bezier(0.22, 1, 0.36, 1);
}
[data-reveal].is-visible { opacity: 1; transform: none; }

@keyframes tbs-drift { from { transform: translateX(-100%); } to { transform: translateX(100%); } }

/* — top bar — */
.topbar { background: var(--brand-green-deep); color: #f2f2f3; }
.topbar-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 8px 24px; padding: 8px 24px;
}
.topbar-info {
  display: flex; flex-wrap: wrap; align-items: center; row-gap: 4px; column-gap: 24px;
  font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase;
  font-family: var(--font-heading);
}
.topbar span.sep { opacity: 0.5; }
/* the call button's corner marks default to a dark tint (readable on the
   light header) — on the topbar's dark ground they need a light one. */
.topbar .blueprint > .corner { color: color-mix(in srgb, #f2f2f3 55%, transparent); }

/* — header — */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: var(--brand-black);
  border-bottom: 1px solid color-mix(in srgb, #f2f2f3 14%, transparent);
}
.nav-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; gap: 28px; flex-wrap: wrap;
  padding: 10px 24px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; }
.brand img { height: 52px; width: auto; }
.main-nav {
  display: flex; flex-wrap: wrap; gap: 22px; font-size: 14px;
  font-family: var(--font-heading); letter-spacing: 0.04em; text-transform: uppercase;
}
.main-nav a { color: #f2f2f3; text-decoration: none; transition: color 160ms ease; }
.main-nav a:hover { color: var(--brand-gold); }

.btn-call {
  text-decoration: none; padding: 6px 16px; font-size: 13px; letter-spacing: 0.05em;
  text-transform: uppercase; white-space: nowrap; flex: none;
  background: var(--brand-blue); color: #f2f2f3;
}
.btn-call:hover { transform: translateY(-2px); background: var(--brand-blue-dark); }

/* — hero — */
.hero {
  max-width: 1200px; margin: 0 auto;
  padding: clamp(48px, 7vw, 92px) 24px clamp(40px, 5vw, 64px);
  display: grid; gap: clamp(32px, 5vw, 64px);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr));
  align-items: center;
}
.hero h1 {
  font-size: clamp(42px, 6.2vw, 74px); line-height: 0.98;
  letter-spacing: -0.02em; margin: 0 0 20px; text-wrap: balance;
}
.hero-lead {
  font-size: 18px; line-height: 1.6; max-width: 52ch;
  color: color-mix(in srgb, var(--color-text) 78%, transparent);
  margin: 0 0 28px; text-wrap: pretty;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 34px; }
.btn-estimate {
  text-decoration: none; padding: 14px 26px; font-size: 16px; letter-spacing: 0.05em;
  text-transform: uppercase; background: var(--brand-green); color: #f2f2f3;
}
.btn-estimate:hover { transform: translateY(-2px); background: var(--brand-green-dark); }
.btn-outline {
  text-decoration: none; padding: 14px 26px; font-size: 16px; letter-spacing: 0.05em;
  text-transform: uppercase; border-radius: 0; white-space: nowrap; flex: none;
  border: 1px solid var(--brand-blue); color: var(--brand-blue); background: transparent;
}
.btn-outline:hover { background: var(--brand-blue); color: #f2f2f3; }

.hero-stats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 1px;
  background: var(--color-divider); border: 1px solid var(--color-divider);
}
.hero-stats div { background: var(--color-bg); padding: 16px 18px; }
.hero-stats .stat-num { font-family: var(--font-heading); font-size: 36px; line-height: 1; color: var(--brand-green-deep); }
.hero-stats .stat-label {
  font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  color: color-mix(in srgb, var(--color-text) 55%, transparent); margin-top: 6px;
}

.hero-figure { margin: 0; }
.hero-figure img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }

.divider-anim {
  height: 1px; background: var(--color-divider); position: relative; overflow: hidden;
}
.divider-anim span {
  position: absolute; inset: 0; width: 30%;
  background: linear-gradient(90deg, transparent, var(--color-accent), transparent);
  animation: tbs-drift 5s linear infinite;
}

/* — sections — */
.section { max-width: 1200px; margin: 0 auto; padding: clamp(56px, 7vw, 100px) 24px; }
.section-head {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between;
  gap: 20px; margin-bottom: 40px;
}
.section-head p { max-width: 40ch; font-size: 15px; margin: 0; }
.section-head.stacked { display: block; }

/* — services — */
.services-grid { display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.service-card { background: transparent; padding: 0; }
.service-card .service-img-wrap { overflow: hidden; }
.service-card img {
  width: 100%; aspect-ratio: 16 / 10; object-fit: cover;
  transition: transform 600ms cubic-bezier(0.22, 1, 0.36, 1);
}
.service-card:hover img { transform: scale(1.05); }
.service-card-body { padding: 22px 24px 26px; }
.service-tag { font-family: var(--font-heading); font-size: 11px; letter-spacing: 0.14em; color: var(--color-accent-700); margin-bottom: 8px; }
.service-card h3 { font-size: 24px; margin: 0 0 10px; }
.service-card p { font-size: 15px; line-height: 1.6; color: color-mix(in srgb, var(--color-text) 72%, transparent); margin: 0; }

/* — why us — */
#why { background: var(--color-surface); border-block: 1px solid var(--color-divider); }
.why-grid {
  display: grid; gap: clamp(32px, 5vw, 64px);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr)); align-items: center;
}
#why h2 { margin: 0 0 18px; }
#why > .container > .why-grid > div:first-child > p { font-size: 16px; line-height: 1.65; color: color-mix(in srgb, var(--color-text) 74%, transparent); max-width: 54ch; }
.why-list { display: grid; gap: 1px; background: var(--color-divider); border: 1px solid var(--color-divider); margin-top: 28px; }
.why-list > div { background: var(--color-surface); padding: 18px 20px; }
.why-list h4 { font-size: 18px; margin: 0 0 5px; }
.why-list p { font-size: 14px; margin: 0; color: color-mix(in srgb, var(--color-text) 68%, transparent); }
.why-figure img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.why-figure figcaption { font-size: 12px; padding-top: 8px; }

/* — recent work — */
.work-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.work-grid figure { margin: 0; overflow: hidden; }
.work-grid img {
  width: 100%; aspect-ratio: 1; object-fit: cover;
  transition: transform 700ms cubic-bezier(0.22, 1, 0.36, 1);
}
.work-grid figure:hover img { transform: scale(1.06); }

/* — gallery page — */
.gallery-video { line-height: 0; margin-bottom: 40px; }
.gallery-video video { width: 100%; height: auto; max-height: 640px; display: block; background: #000; }
.gallery-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.gallery-grid figure { margin: 0; overflow: hidden; }
.gallery-grid img {
  width: 100%; aspect-ratio: 3 / 4; object-fit: cover;
  transition: transform 700ms cubic-bezier(0.22, 1, 0.36, 1);
}
.gallery-grid figure:hover img { transform: scale(1.06); }

/* — service area — */
#area { background: var(--brand-green-deep); color: #f2f2f3; }
#area .eyebrow { color: color-mix(in srgb, #f2f2f3 70%, transparent); }
#area h2 { color: #f2f2f3; }
#area .section-head p { max-width: 56ch; color: color-mix(in srgb, #f2f2f3 78%, transparent); }
.area-grid {
  list-style: none; margin: 0; padding: 0; display: grid; gap: 1px;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  background: color-mix(in srgb, #f2f2f3 18%, transparent);
  border: 1px solid color-mix(in srgb, #f2f2f3 18%, transparent);
}
.area-grid li {
  background: var(--brand-green-deep); padding: 13px 16px;
  font-family: var(--font-heading); font-size: 16px; letter-spacing: 0.03em;
  transition: background 200ms ease;
}
.area-grid li:hover { background: var(--brand-green); }

/* — contact — */
.contact-grid { display: grid; gap: 36px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); align-items: start; }
.contact-card { padding: 28px; }
.contact-card form { display: grid; gap: 16px; }
.field-row { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
.btn-send {
  padding: 14px 24px; font-size: 15px; letter-spacing: 0.06em; text-transform: uppercase;
  background: var(--brand-green); color: #f2f2f3;
}
.btn-send:hover { transform: translateY(-2px); background: var(--brand-green-dark); }
.form-success { min-height: 380px; display: none; flex-direction: column; justify-content: center; gap: 10px; }
.form-success h3 { font-size: 26px; margin: 0; }
.form-success p { font-size: 15px; margin: 0; color: color-mix(in srgb, var(--color-text) 72%, transparent); }
.contact-card.is-sent form { display: none; }
.contact-card.is-sent .form-success { display: flex; }

.contact-info { display: grid; gap: 24px; }
.contact-detail { display: grid; gap: 1px; background: var(--color-divider); border: 1px solid var(--color-divider); }
.contact-detail > div { background: var(--color-bg); padding: 18px 20px; }
.contact-detail .label {
  font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  color: color-mix(in srgb, var(--color-text) 55%, transparent); margin-bottom: 4px;
}
.contact-detail .phone-link { font-family: var(--font-heading); font-size: 26px; text-decoration: none; }
.contact-detail a { text-decoration: none; }
.map-frame { line-height: 0; }
.map-frame iframe { width: 100%; height: 280px; border: 0; filter: grayscale(0.35); }

/* — footer — */
.site-footer { background: var(--brand-black); color: color-mix(in srgb, #f2f2f3 88%, transparent); border-top: 1px solid color-mix(in srgb, #f2f2f3 14%, transparent); }
.footer-grid {
  max-width: 1200px; margin: 0 auto; padding: clamp(40px, 5vw, 64px) 24px 28px;
  display: grid; gap: 36px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
}
.footer-brand img { height: 68px; width: auto; }
.footer-brand p { font-size: 14px; margin: 16px 0 0; max-width: 34ch; color: color-mix(in srgb, #f2f2f3 65%, transparent); }
.footer-grid h4 {
  font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase;
  margin: 0 0 14px; color: color-mix(in srgb, #f2f2f3 60%, transparent);
}
.footer-links { display: grid; gap: 8px; font-size: 14px; }
.footer-links a, .footer-links span { color: inherit; text-decoration: none; }
.footer-links a:hover { color: var(--brand-gold); }
.footer-bottom {
  max-width: 1200px; margin: 0 auto; padding: 18px 24px 32px;
  border-top: 1px solid color-mix(in srgb, #f2f2f3 15%, transparent);
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between;
  font-size: 13px; color: color-mix(in srgb, #f2f2f3 55%, transparent);
}

@media (max-width: 640px) {
  .nav-inner { gap: 14px 20px; }
  .main-nav { gap: 14px 20px; }

  .topbar-inner { flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 10px 20px; }
  .topbar-info { justify-content: center; column-gap: 14px; font-size: 11px; }
}
