/* ====================================
   STURTEVANT PLUMBING — Design Tokens
   Forest green + brass/gold craftsman
   ==================================== */

:root {
  /* Type Scale */
  --text-xs:   clamp(0.75rem,  0.7rem  + 0.25vw, 0.875rem);
  --text-sm:   clamp(0.875rem, 0.8rem  + 0.35vw, 1rem);
  --text-base: clamp(1rem,     0.95rem + 0.25vw, 1.125rem);
  --text-lg:   clamp(1.125rem, 1rem    + 0.75vw, 1.5rem);
  --text-xl:   clamp(1.5rem,   1.2rem  + 1.25vw, 2.25rem);
  --text-2xl:  clamp(2rem,     1.2rem  + 2.5vw,  3.5rem);
  --text-3xl:  clamp(2.5rem,   1rem    + 4vw,    5rem);

  /* Spacing */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.25rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* Brand Colors — Forest Green + Brass */
  --color-forest:       #1a4a3a;
  --color-forest-deep:  #0f2e24;
  --color-forest-light: #2a6b52;
  --color-brass:        #c4993d;
  --color-brass-light:  #dbb56a;
  --color-brass-dark:   #9a7728;
  --color-cream:        #f5f0e8;
  --color-cream-dark:   #e8e0d2;

  /* Surfaces */
  --color-bg:             #f7f4ef;
  --color-surface:        #ffffff;
  --color-surface-2:      #faf8f4;
  --color-surface-offset: #f0ece4;
  --color-divider:        #ddd8ce;
  --color-border:         #d4cfc5;

  /* Text */
  --color-text:         #1c1c1a;
  --color-text-muted:   #5e5d58;
  --color-text-faint:   #9a9890;
  --color-text-inverse: #f7f4ef;

  /* Primary = Forest Green */
  --color-primary:       var(--color-forest);
  --color-primary-hover: var(--color-forest-deep);

  /* Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-full: 9999px;

  /* Transitions */
  --transition-interactive: 180ms cubic-bezier(0.16, 1, 0.3, 1);

  /* Shadows */
  --shadow-sm: 0 1px 2px oklch(0.2 0.02 80 / 0.06);
  --shadow-md: 0 4px 12px oklch(0.2 0.02 80 / 0.08);
  --shadow-lg: 0 12px 32px oklch(0.2 0.02 80 / 0.12);

  /* Content widths */
  --content-narrow: 640px;
  --content-default: 960px;
  --content-wide: 1200px;
  --content-full: 100%;

  /* Fonts */
  --font-display: 'Zodiak', Georgia, serif;
  --font-body: 'General Sans', 'Helvetica Neue', Arial, sans-serif;
}


/* ====================================
   CONTAINER
   ==================================== */

.container {
  max-width: var(--content-wide);
  margin-inline: auto;
  padding-inline: var(--space-4);
}

@media (min-width: 768px) {
  .container { padding-inline: var(--space-8); }
}


/* ====================================
   HEADER
   ==================================== */

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: oklch(from var(--color-bg) l c h / 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid oklch(from var(--color-text) l c h / 0.08);
  transition: box-shadow 0.3s ease;
}

.header--scrolled {
  box-shadow: var(--shadow-sm);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
  gap: var(--space-4);
}

@media (min-width: 768px) {
  .header__inner { height: 4.5rem; }
}

/* Logo */
.header__logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  color: var(--color-text);
  flex-shrink: 0;
}

.logo-text {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--color-forest);
}

.logo-text--sub {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-brass-dark);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Nav */
.header__nav {
  display: none;
  align-items: center;
  gap: var(--space-6);
}

@media (min-width: 768px) {
  .header__nav { display: flex; }
}

.nav-link {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-muted);
  text-decoration: none;
  letter-spacing: 0.01em;
  position: relative;
  padding: var(--space-1) 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-brass);
  transition: width 0.25s ease;
}

.nav-link:hover {
  color: var(--color-forest);
}

.nav-link:hover::after {
  width: 100%;
}

/* Header CTA */
.header__cta {
  display: none;
  font-size: var(--text-sm);
  padding: var(--space-2) var(--space-4);
}

@media (min-width: 1024px) {
  .header__cta { display: inline-flex; }
}

/* Mobile menu toggle */
.header__menu-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: var(--space-2);
  z-index: 101;
}

@media (min-width: 768px) {
  .header__menu-toggle { display: none; }
}

.menu-bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.header__menu-toggle[aria-expanded="true"] .menu-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.header__menu-toggle[aria-expanded="true"] .menu-bar:nth-child(2) {
  opacity: 0;
}
.header__menu-toggle[aria-expanded="true"] .menu-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile nav overlay */
.header__nav--mobile-open {
  display: flex;
  flex-direction: column;
  position: fixed;
  inset: 4rem 0 0 0;
  background: var(--color-bg);
  padding: var(--space-8) var(--space-6);
  gap: var(--space-6);
  z-index: 99;
  animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

.header__nav--mobile-open .nav-link {
  font-size: var(--text-lg);
  color: var(--color-text);
}


/* ====================================
   BUTTONS
   ==================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--text-sm);
  text-decoration: none;
  border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-6);
  cursor: pointer;
  border: none;
  line-height: 1.2;
  white-space: nowrap;
}

.btn--primary {
  background: var(--color-forest);
  color: var(--color-cream);
}

.btn--primary:hover {
  background: var(--color-forest-deep);
}

.btn--primary:active {
  transform: scale(0.98);
}

.btn--outline {
  background: transparent;
  color: var(--color-cream);
  border: 2px solid oklch(from var(--color-cream) l c h / 0.5);
}

.btn--outline:hover {
  background: oklch(from var(--color-cream) l c h / 0.15);
  border-color: var(--color-cream);
}

.btn--lg {
  padding: var(--space-4) var(--space-8);
  font-size: var(--text-base);
}

.btn--full {
  width: 100%;
}


/* ====================================
   HERO
   ==================================== */

.hero {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

@media (min-width: 768px) {
  .hero { min-height: 85vh; }
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    oklch(from var(--color-forest-deep) l c h / 0.88) 0%,
    oklch(from var(--color-forest-deep) l c h / 0.7) 50%,
    oklch(from var(--color-forest-deep) l c h / 0.5) 100%
  );
}

.hero__content {
  position: relative;
  z-index: 1;
  padding: var(--space-16) 0 var(--space-12);
  max-width: 700px;
}

.hero__badge {
  display: inline-block;
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-brass-light);
  background: oklch(from var(--color-brass) l c h / 0.15);
  border: 1px solid oklch(from var(--color-brass) l c h / 0.3);
  padding: var(--space-1) var(--space-4);
  border-radius: var(--radius-full);
  margin-bottom: var(--space-6);
}

.hero__title {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 700;
  color: var(--color-cream);
  margin-bottom: var(--space-4);
  letter-spacing: -0.02em;
}

.hero__subtitle {
  font-size: var(--text-base);
  color: oklch(from var(--color-cream) l c h / 0.85);
  margin-bottom: var(--space-8);
  max-width: 560px;
  line-height: 1.7;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
}


/* ====================================
   TRUST BAR
   ==================================== */

.trust-bar {
  background: var(--color-forest-deep);
  border-bottom: 3px solid var(--color-brass);
  padding: var(--space-5) 0;
}

.trust-bar__inner {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
}

@media (min-width: 768px) {
  .trust-bar__inner {
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-6);
  }
}

.trust-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.trust-item strong {
  display: block;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-cream);
}

.trust-item span {
  display: block;
  font-size: var(--text-xs);
  color: oklch(from var(--color-cream) l c h / 0.65);
}

.trust-item svg {
  flex-shrink: 0;
}


/* ====================================
   SECTION HEADERS
   ==================================== */

.section-label {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-brass-dark);
  margin-bottom: var(--space-2);
}

.section-title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-forest);
  margin-bottom: var(--space-4);
  letter-spacing: -0.01em;
}

.section-desc {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  max-width: 600px;
  line-height: 1.7;
}

.section-header {
  margin-bottom: var(--space-10);
}

.section-header--center {
  text-align: center;
}

.section-header--center .section-desc {
  margin-inline: auto;
}


/* ====================================
   SERVICES
   ==================================== */

.services {
  padding: clamp(var(--space-12), 8vw, var(--space-24)) 0;
  background: var(--color-bg);
}

.services__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}

@media (min-width: 640px) {
  .services__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .services__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.service-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.service-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.service-card__icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: oklch(from var(--color-forest) l c h / 0.08);
  border-radius: var(--radius-md);
  color: var(--color-forest);
  margin-bottom: var(--space-4);
}

.service-card h3 {
  font-family: var(--font-body);
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-2);
}

.service-card p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.65;
}


/* ====================================
   ABOUT
   ==================================== */

.about {
  padding: clamp(var(--space-12), 8vw, var(--space-24)) 0;
  background: var(--color-surface-2);
}

.about__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-10);
  align-items: center;
}

@media (min-width: 768px) {
  .about__inner {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-12);
  }
}

.about__image-col img {
  border-radius: var(--radius-lg);
  width: 100%;
  height: auto;
  object-fit: cover;
  box-shadow: var(--shadow-lg);
}

.about__lead {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--color-brass-dark);
  margin-bottom: var(--space-4);
}

.about__text-col p {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-bottom: var(--space-4);
}

.about__stats {
  display: flex;
  gap: var(--space-8);
  margin-top: var(--space-6);
  padding-top: var(--space-6);
  border-top: 1px solid var(--color-divider);
}

.stat {
  text-align: center;
}

.stat__number {
  display: block;
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-forest);
  line-height: 1;
  margin-bottom: var(--space-1);
}

.stat__label {
  display: block;
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  font-weight: 500;
}


/* ====================================
   IMAGE DIVIDER
   ==================================== */

.image-divider {
  position: relative;
  height: clamp(300px, 40vw, 450px);
  overflow: hidden;
}

.image-divider img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-divider__overlay {
  position: absolute;
  inset: 0;
  background: oklch(from var(--color-forest-deep) l c h / 0.78);
  display: flex;
  align-items: center;
  justify-content: center;
}

.pullquote {
  text-align: center;
  max-width: 700px;
}

.pullquote p {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 500;
  color: var(--color-cream);
  font-style: italic;
  line-height: 1.5;
  max-width: none;
}


/* ====================================
   SERVICE AREA
   ==================================== */

.area {
  padding: clamp(var(--space-12), 8vw, var(--space-24)) 0;
  background: var(--color-bg);
}

.area__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}

@media (min-width: 640px) {
  .area__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.area-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
}

.area-card--featured {
  background: var(--color-forest);
  border-color: var(--color-forest);
  color: var(--color-cream);
}

.area-card--featured h3 {
  color: var(--color-brass-light);
}

.area-card--featured li {
  color: oklch(from var(--color-cream) l c h / 0.9);
}

.area-card h3 {
  font-family: var(--font-body);
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--color-forest);
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-3);
  border-bottom: 2px solid var(--color-brass);
}

.area-card--featured h3 {
  border-bottom-color: oklch(from var(--color-brass) l c h / 0.5);
}

.area-card ul {
  list-style: none;
  padding: 0;
}

.area-card li {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  padding: var(--space-2) 0;
  border-bottom: 1px solid oklch(from var(--color-text) l c h / 0.06);
}

.area-card--featured li {
  border-bottom-color: oklch(from var(--color-cream) l c h / 0.12);
}

.area-card li:last-child {
  border-bottom: none;
}

.area__note {
  text-align: center;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-top: var(--space-8);
  font-style: italic;
}


/* ====================================
   CONTACT
   ==================================== */

.contact {
  padding: clamp(var(--space-12), 8vw, var(--space-24)) 0;
  background: var(--color-surface-2);
}

.contact__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-10);
  align-items: start;
}

@media (min-width: 768px) {
  .contact__inner {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-12);
  }
}

.contact__text p {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-bottom: var(--space-6);
}

.contact__details {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
}

.contact-item svg {
  flex-shrink: 0;
  margin-top: 2px;
}

.contact-item strong {
  display: block;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-1);
}

.contact-item span,
.contact-item a {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  text-decoration: none;
}

.contact-item a:hover {
  color: var(--color-forest);
}

/* CTA Card */
.cta-card {
  background: var(--color-forest);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  text-align: center;
}

.cta-card h3 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-cream);
  margin-bottom: var(--space-3);
}

.cta-card > p {
  font-size: var(--text-sm);
  color: oklch(from var(--color-cream) l c h / 0.8);
  margin-bottom: var(--space-6);
  max-width: none;
}

.cta-card .btn--primary {
  background: var(--color-brass);
  color: var(--color-forest-deep);
  font-weight: 700;
}

.cta-card .btn--primary:hover {
  background: var(--color-brass-light);
}

.cta-card__small {
  font-size: var(--text-xs) !important;
  color: oklch(from var(--color-cream) l c h / 0.55) !important;
  margin-top: var(--space-3) !important;
  margin-bottom: 0 !important;
}


/* ====================================
   FOOTER
   ==================================== */

.footer {
  background: var(--color-forest-deep);
  padding: var(--space-8) 0;
  border-top: 3px solid var(--color-brass);
}

.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
  text-align: center;
}

@media (min-width: 768px) {
  .footer__inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
    gap: var(--space-6);
  }
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.footer__name {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--color-cream);
}

.footer__info p {
  font-size: var(--text-xs);
  color: oklch(from var(--color-cream) l c h / 0.55);
  line-height: 1.6;
  max-width: none;
}

.footer__credits {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-shrink: 0;
}

.footer__credits a {
  font-size: var(--text-xs);
  color: oklch(from var(--color-cream) l c h / 0.55);
  text-decoration: none;
}

.footer__credits a:hover {
  color: var(--color-brass-light);
}

.footer__sep {
  color: oklch(from var(--color-cream) l c h / 0.3);
  font-size: var(--text-xs);
}


/* ====================================
   MOBILE CTA
   ==================================== */

.mobile-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 90;
  background: var(--color-bg);
  padding: var(--space-3) var(--space-4);
  border-top: 1px solid var(--color-border);
  box-shadow: 0 -4px 16px oklch(0.2 0.02 80 / 0.1);
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.mobile-cta--visible {
  transform: translateY(0);
}

@media (max-width: 767px) {
  .mobile-cta { display: block; }
}


/* ====================================
   SCROLL ANIMATIONS
   ==================================== */

.fade-in {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in--visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children */
.fade-in:nth-child(2) { transition-delay: 0.08s; }
.fade-in:nth-child(3) { transition-delay: 0.16s; }
.fade-in:nth-child(4) { transition-delay: 0.24s; }
.fade-in:nth-child(5) { transition-delay: 0.32s; }
.fade-in:nth-child(6) { transition-delay: 0.4s; }


/* ====================================
   RESPONSIVE ADJUSTMENTS
   ==================================== */

/* Prevent body scroll when mobile menu is open */
body.menu-open {
  overflow: hidden;
}

/* Extra spacing for mobile CTA bar */
@media (max-width: 767px) {
  .footer {
    padding-bottom: calc(var(--space-8) + 72px);
  }
}
