/* ==========================================================================
   Boots & Bows Lawn Care — Design System
   ========================================================================== */

:root {
  /* Brand palette pulled from the logo: leather brown boot + cobalt bow + grass green */
  --cream:        #F6F1E4;
  --cream-deep:   #EEE5CF;
  --paper:        #FCFAF3;

  --charcoal:     #1B1712;
  --charcoal-2:   #241E17;
  --ink:          #2A241C;

  --brown:        #4D2005;
  --brown-light:  #7F4A22;
  --brown-pale:   #C9A98A;

  --blue:         #0D3EF5;
  --blue-deep:    #0A2CB0;
  --blue-glow:    #7B96FF;

  --green:        #4AAB0C;
  --green-deep:   #2C6B08;
  --green-glow:   #8FDC5E;

  --gold:         #D9A441;

  --font-display: "Fraunces", "Iowan Old Style", serif;
  --font-body:    "Manrope", -apple-system, sans-serif;

  --container: 1240px;
  --gutter: clamp(1.5rem, 5vw, 4rem);

  --ease: cubic-bezier(.22, 1, .36, 1);
}

/* ---------- Reset ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; cursor: pointer; }
input, textarea { font: inherit; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--charcoal);
  line-height: 1.08;
  letter-spacing: -0.01em;
}

section { position: relative; }

/* subtle film-grain texture over the whole page for a premium, non-flat finish */
.grain {
  position: fixed;
  inset: 0;
  z-index: 999;
  pointer-events: none;
  opacity: 0.035;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--green-deep);
}

.accent-green { color: var(--green); }
.accent-blue { color: var(--blue); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 1rem 2rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), background 0.3s ease, color 0.3s ease;
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

.btn svg { width: 18px; height: 18px; transition: transform 0.3s var(--ease); }

.btn-primary {
  background: linear-gradient(135deg, var(--green) 0%, var(--green-deep) 100%);
  color: var(--paper);
  box-shadow: 0 10px 30px -10px rgba(44, 107, 29, 0.6);
}
.btn-primary::before, .btn-blue::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,0.35) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 0.7s var(--ease);
}
.btn-primary:hover, .btn-blue:hover {
  transform: translateY(-3px);
}
.btn-primary:hover {
  box-shadow: 0 16px 36px -10px rgba(44, 107, 29, 0.75);
}
.btn-primary:hover::before, .btn-blue:hover::before { transform: translateX(120%); }
.btn-primary:hover svg, .btn-blue:hover svg { transform: translateX(3px); }

.btn-blue {
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-deep) 100%);
  color: var(--paper);
  box-shadow: 0 10px 30px -10px rgba(10, 44, 176, 0.65);
}
.btn-blue:hover {
  box-shadow: 0 16px 36px -10px rgba(10, 44, 176, 0.8);
}

.btn-small { padding: 0.75rem 1.4rem; font-size: 0.85rem; }

.btn-ghost {
  background: rgba(255,255,255,0.08);
  color: var(--paper);
  border-color: rgba(255,255,255,0.5);
  backdrop-filter: blur(6px);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.18);
  transform: translateY(-3px);
}

.btn-outline {
  background: transparent;
  color: var(--brown);
  border-color: var(--brown);
}
.btn-outline:hover {
  background: var(--brown);
  color: var(--paper);
  transform: translateY(-3px);
}

.btn-full { width: 100%; }

/* ==========================================================================
   Header / Nav
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 0.35rem 0;
  transition: padding 0.4s var(--ease), background 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.site-header.scrolled {
  padding: 0.25rem 0;
  background: rgba(246, 241, 228, 0.85);
  backdrop-filter: blur(14px);
  box-shadow: 0 4px 30px rgba(27, 23, 18, 0.08);
}

.nav-wrap {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  column-gap: 1.5rem;
}

.brand {
  grid-column: 2;
  grid-row: 1;
  justify-self: center;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.brand-mark {
  height: 56px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 10px rgba(0,0,0,0.25));
  transition: height 0.4s var(--ease), transform 0.4s var(--ease);
}
.site-header.scrolled .brand-mark { height: 42px; }
.brand:hover .brand-mark { transform: scale(1.05); }

.main-nav {
  grid-column: 1;
  grid-row: 1;
  justify-self: start;
  display: flex;
  gap: 2.2rem;
  font-weight: 600;
  font-size: 0.92rem;
}
.main-nav a {
  position: relative;
  color: var(--charcoal);
  padding: 0.3rem 0;
}
.site-header:not(.scrolled) .main-nav a { color: var(--paper); }
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 2px;
  background: var(--green);
  transition: width 0.3s var(--ease);
}
.main-nav a:hover::after { width: 100%; }

.nav-actions {
  grid-column: 3;
  grid-row: 1;
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 1.6rem;
  flex-shrink: 0;
}
.nav-phone {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--charcoal);
  white-space: nowrap;
}
.site-header:not(.scrolled) .nav-phone { color: var(--paper); }
.nav-phone svg { width: 16px; height: 16px; }

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0 9px;
  box-sizing: border-box;
  background: none;
  border: none;
  z-index: 200;
}
.hamburger span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--charcoal);
  border-radius: 2px;
  transition: transform 0.35s var(--ease), opacity 0.35s var(--ease), background 0.3s ease;
}
.site-header:not(.scrolled) .hamburger span { background: var(--paper); }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.hamburger.open span { background: var(--paper) !important; }

/* mobile-only header/menu helpers (hidden on desktop) */
.mobile-call, .menu-only { display: none; }
.mobile-call {
  grid-column: 1; grid-row: 1;
  justify-self: start;
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
  border-radius: 50%;
  color: var(--paper);
  background: linear-gradient(135deg, var(--green), var(--green-deep));
  box-shadow: 0 8px 20px -8px rgba(44,107,8,0.8);
}
.mobile-call svg { width: 20px; height: 20px; }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 8rem var(--gutter) 6rem;
  overflow: hidden;
  isolation: isolate;
}

.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-img {
  position: absolute;
  inset: -6% -6%;
  background-size: cover;
  background-position: center 40%;
  filter: saturate(1.55) contrast(1.18) brightness(1.08);
  animation: hero-kenburns 26s ease-in-out infinite alternate;
}
@keyframes hero-kenburns {
  0%   { transform: scale(1.06) translate(0, 0); }
  100% { transform: scale(1.16) translate(-1.5%, -1%); }
}

/* greens up the grass without touching sky/house tones as much */
.hero-tint {
  position: absolute; inset: 0;
  background: radial-gradient(120% 90% at 50% 100%, rgba(60, 130, 30, 0.32) 0%, rgba(60, 130, 30, 0.08) 45%, transparent 70%);
  mix-blend-mode: multiply;
}
.hero-scrim {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(19, 25, 14, 0.55) 0%, rgba(19, 25, 14, 0.15) 32%, rgba(19, 25, 14, 0.1) 55%, rgba(15, 20, 12, 0.65) 100%);
}
.hero-scrim-bottom {
  position: absolute; left: 0; right: 0; bottom: 0; height: 45%;
  background: linear-gradient(180deg, transparent, rgba(12, 16, 9, 0.88) 90%);
}

.hero-content { max-width: 780px; text-align: center; z-index: 2; }

.hero-content .eyebrow {
  color: var(--green-glow);
  display: inline-block;
  padding: 0.4rem 1rem;
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: 999px;
  backdrop-filter: blur(6px);
  background: rgba(0,0,0,0.15);
  margin-bottom: 1.6rem;
}

.hero-title {
  font-size: clamp(2.6rem, 6.4vw, 5.2rem);
  color: var(--paper);
  display: flex;
  flex-direction: column;
  gap: 0.1em;
  text-wrap: balance;
}
.hero-title span:not(.accent-green):not(.accent-blue) { color: var(--paper); }
.hero-title span.accent-blue { color: var(--blue); }

.hero-sub {
  color: rgba(255,255,255,0.88);
  font-size: 1.15rem;
  max-width: 620px;
  margin: 1.8rem auto 0;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 2.6rem;
  flex-wrap: wrap;
}

.hero-cards {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  gap: clamp(1rem, 3vw, 2.5rem);
  margin-top: 5.5rem;
  flex-wrap: wrap;
  justify-content: center;
}
.hero-card {
  --tint: var(--green-glow);
  --tint-deep: var(--green);
  text-align: center;
  color: var(--paper);
  padding: 1.6rem 1.8rem 1.4rem;
  border-radius: 20px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.18);
  backdrop-filter: blur(10px);
  min-width: 160px;
  position: relative;
  overflow: hidden;
  transition: transform 0.5s var(--ease), background 0.4s ease;
}
.hero-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--tint), transparent);
}
.hero-card:hover {
  transform: translateY(-6px);
  background: rgba(255,255,255,0.12);
}
.hero-card:nth-child(2) {
  --tint: var(--blue-glow);
  --tint-deep: var(--blue);
  margin-bottom: 1.6rem;
}
.hero-card:nth-child(3) {
  --tint: var(--gold);
  --tint-deep: var(--gold);
}
.hero-card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin: 0 auto 0.9rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--tint), var(--tint-deep));
  color: var(--charcoal);
  box-shadow: 0 8px 18px -6px rgba(0,0,0,0.4);
}
.hero-card-icon svg { width: 20px; height: 20px; }
.hero-card-num {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
  color: var(--tint);
}
.hero-card-label {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.8);
  margin-top: 0.2rem;
}

.scroll-cue {
  position: absolute;
  bottom: 2rem; left: 50%;
  transform: translateX(-50%);
  width: 26px; height: 42px;
  border: 2px solid rgba(255,255,255,0.6);
  border-radius: 20px;
  z-index: 2;
}
.scroll-cue span {
  position: absolute;
  top: 6px; left: 50%;
  width: 4px; height: 8px;
  border-radius: 2px;
  background: var(--paper);
  transform: translateX(-50%);
  animation: cue 1.8s ease-in-out infinite;
}
@keyframes cue {
  0% { top: 6px; opacity: 1; }
  70% { top: 20px; opacity: 0; }
  100% { top: 6px; opacity: 0; }
}

/* ==========================================================================
   Section Head (shared)
   ========================================================================== */
.section-head {
  max-width: 720px;
  margin: 0 auto 4rem;
  padding: 0 var(--gutter);
  text-align: center;
}
.section-head h2 { font-size: clamp(2rem, 4vw, 3rem); margin-top: 0.7rem; }
.section-head.light .eyebrow { color: var(--green-glow); }
.section-head.light h2 { color: var(--paper); }
.section-sub { margin-top: 1rem; color: rgba(255,255,255,0.75); font-size: 1.05rem; }

/* ==========================================================================
   Services
   ========================================================================== */
.services {
  background: var(--cream);
  padding: 7rem 0;
}

.service-grid {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

.service-card {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  min-height: 460px;
  display: flex;
  align-items: flex-end;
  isolation: isolate;
  box-shadow: 0 20px 45px -20px rgba(27, 23, 18, 0.35);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.service-card:hover { transform: translateY(-10px); box-shadow: 0 30px 60px -20px rgba(27, 23, 18, 0.45); }

.service-card-bg {
  position: absolute; inset: 0;
  background-image: var(--bg);
  background-size: cover;
  background-position: center;
  filter: saturate(1.3) contrast(1.05);
  transform: scale(1.08);
  transition: transform 0.7s var(--ease), filter 0.7s var(--ease);
  z-index: -2;
}
.service-card:hover .service-card-bg { transform: scale(1.16); filter: saturate(1.5) contrast(1.1); }

.service-card-glow {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20, 30, 12, 0.15) 0%, rgba(15, 22, 10, 0.55) 55%, rgba(10, 15, 7, 0.94) 100%);
  z-index: -1;
  transition: background 0.5s ease;
}
.service-card:hover .service-card-glow {
  background: linear-gradient(180deg, rgba(20, 30, 12, 0.05) 0%, rgba(15, 22, 10, 0.45) 50%, rgba(10, 15, 7, 0.92) 100%);
}

.service-card-body {
  position: relative;
  padding: 2.2rem;
  color: var(--paper);
}
.service-num {
  display: block;
  font-family: var(--font-display);
  font-style: italic;
  color: var(--green-glow);
  font-size: 1rem;
  margin-bottom: 0.6rem;
  opacity: 0.85;
}
.service-card-body h3 {
  color: var(--paper);
  font-size: 1.5rem;
  margin-bottom: 0.7rem;
}
.service-card-body p {
  color: rgba(255,255,255,0.82);
  font-size: 0.95rem;
  margin-bottom: 1.1rem;
}
.service-list {
  display: grid;
  gap: 0.45rem;
}
/* progressive-disclosure hover reveal only where hover is reliable (mouse/trackpad);
   touch devices can't guarantee :hover, so they get the list shown by default */
@media (hover: hover) and (pointer: fine) {
  .service-list {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.5s var(--ease), opacity 0.4s ease;
  }
  .service-card:hover .service-list { max-height: 200px; opacity: 1; }
}
.service-list li {
  font-size: 0.86rem;
  padding-left: 1.1rem;
  position: relative;
  color: rgba(255,255,255,0.9);
}
.service-list li::before {
  content: "";
  position: absolute; left: 0; top: 0.5em;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--green-glow);
}

/* ==========================================================================
   About
   ========================================================================== */
.about {
  max-width: var(--container);
  margin: 0 auto;
  padding: 8rem var(--gutter);
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: center;
}

.about-media { position: relative; width: 100%; }
.about-img {
  aspect-ratio: 4 / 5;
  background-size: cover;
  background-position: center;
  border-radius: 28px;
  filter: saturate(1.2) contrast(1.05);
  box-shadow: 0 30px 60px -25px rgba(27,23,18,0.4);
}
.about-img-frame {
  position: absolute;
  top: 1.6rem; left: -1.6rem;
  right: -1.6rem; bottom: -1.6rem;
  border: 2px solid var(--brown-pale);
  border-radius: 28px;
  z-index: -1;
}
.about-badge {
  position: absolute;
  bottom: -1.5rem; right: -1.5rem;
  background: var(--paper);
  border-radius: 18px;
  padding: 1.1rem 1.4rem;
  box-shadow: 0 20px 40px -15px rgba(27,23,18,0.35);
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.about-badge strong {
  font-family: var(--font-display);
  color: var(--blue);
  font-size: 1.1rem;
}
.about-badge span { font-size: 0.8rem; color: var(--brown); font-weight: 600; }

.about-content h2 { font-size: clamp(2rem, 4vw, 2.8rem); margin: 0.7rem 0 1.4rem; }
.about-content > p:not(.eyebrow) { color: var(--brown); font-size: 1.08rem; max-width: 560px; }

.about-stats {
  display: flex;
  gap: clamp(1.5rem, 4vw, 3rem);
  margin: 2.6rem 0 2.4rem;
  flex-wrap: wrap;
}
.stat { display: flex; flex-direction: column; }
.stat-num, .stat-plus {
  font-family: var(--font-display);
  font-size: 2.4rem;
  color: var(--green-deep);
  display: inline-block;
}
.stat-plus { font-size: 1.6rem; }
.stat-label {
  font-size: 0.8rem;
  color: var(--brown-light);
  font-weight: 600;
  margin-top: 0.2rem;
}

/* ==========================================================================
   Why Us
   ========================================================================== */
.why {
  background: var(--cream-deep);
  padding: 6rem 0;
}
.why-grid {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}
.why-item {
  text-align: left;
  padding: 2rem 1.6rem 2rem 0;
  border-left: 2px solid rgba(74, 46, 29, 0.15);
  padding-left: 1.6rem;
  transition: border-color 0.4s ease;
}
.why-item:hover { border-color: var(--green); }
.why-icon {
  width: 46px; height: 46px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--green) 0%, var(--green-deep) 100%);
  color: var(--paper);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.2rem;
  box-shadow: 0 10px 20px -8px rgba(44,107,29,0.5);
}
.why-icon svg { width: 22px; height: 22px; }
.why-item h3 { font-size: 1.15rem; margin-bottom: 0.5rem; }
.why-item p { font-size: 0.92rem; color: var(--brown); }

/* ==========================================================================
   Gallery
   ========================================================================== */
.gallery {
  background:
    radial-gradient(60% 50% at 8% 0%, rgba(13,62,245,0.28), transparent 70%),
    radial-gradient(55% 50% at 95% 100%, rgba(74,171,12,0.26), transparent 70%),
    repeating-linear-gradient(100deg, rgba(255,255,255,0.025) 0 70px, transparent 70px 140px),
    var(--charcoal);
  padding: 7rem 0;
}
.flip-grid {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  perspective: 1600px;
}
.flip-tile {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
  border-radius: 22px;
  transition: transform 0.5s var(--ease);
}
.flip-tile:hover { transform: translateY(-6px); }
.flip-tile:focus-visible { outline: 3px solid var(--green-glow); outline-offset: 4px; }
.flip-inner {
  position: absolute; inset: 0;
  transform-style: preserve-3d;
  transition: transform 0.9s cubic-bezier(.45, .05, .25, 1);
  border-radius: 22px;
}
.flip-tile.is-flipped .flip-inner { transform: rotateY(180deg); }
.flip-face {
  position: absolute; inset: 0;
  overflow: hidden;
  border-radius: 22px;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  background: var(--charcoal-2);
  box-shadow: 0 28px 50px -24px rgba(0,0,0,0.75), 0 0 0 1px rgba(255,255,255,0.12);
}
.flip-back { transform: rotateY(180deg); }
.flip-face img {
  display: block;
  width: 100%; height: 100%;
  object-fit: cover;
  filter: saturate(1.2) contrast(1.05);
}
.flip-face::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,8,6,0.35) 0%, transparent 28%, transparent 62%, rgba(10,8,6,0.7) 100%);
  pointer-events: none;
}
.flip-tag, .flip-count {
  position: absolute;
  z-index: 3;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--paper);
  pointer-events: none;
  transition: opacity 0.35s ease;
}
.flip-tag {
  top: 1rem; left: 1rem;
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--green), var(--green-deep));
  box-shadow: 0 6px 16px -6px rgba(0,0,0,0.5);
}
.flip-tile:nth-child(3n+2) .flip-tag { background: linear-gradient(135deg, var(--blue), var(--blue-deep)); }
.flip-tile:nth-child(3n) .flip-tag { background: linear-gradient(135deg, var(--gold), #a8741f); }
.flip-count {
  bottom: 1.1rem; right: 1.1rem;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-transform: none;
  color: rgba(255,255,255,0.85);
}
.flip-tile.is-swapping .flip-tag, .flip-tile.is-swapping .flip-count { opacity: 0; }
.flip-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  margin-top: 2.4rem;
  padding: 0 var(--gutter);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.65);
  text-align: center;
}
.live-dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--green-glow);
  box-shadow: 0 0 0 0 rgba(143,220,94,0.6);
  animation: live-pulse 2s ease-out infinite;
  flex-shrink: 0;
}
@keyframes live-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(143,220,94,0.55); }
  70%  { box-shadow: 0 0 0 12px rgba(143,220,94,0); }
  100% { box-shadow: 0 0 0 0 rgba(143,220,94,0); }
}
@media (prefers-reduced-motion: reduce) {
  .flip-inner { transition-duration: 0.01s; }
  .live-dot { animation: none; }
}
.lightbox {
  position: fixed; inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: rgba(10, 8, 6, 0.92);
  backdrop-filter: blur(8px);
}
.lightbox[hidden] { display: none; }
.lightbox img {
  max-width: min(92vw, 1100px);
  max-height: 88vh;
  width: auto; height: auto;
  border-radius: 14px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.6);
}
.lightbox-close {
  position: absolute;
  top: 1.2rem; right: 1.4rem;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.3);
  background: rgba(255,255,255,0.08);
  color: var(--paper);
  font-size: 1.8rem;
  line-height: 1;
  transition: background 0.3s ease;
}
.lightbox-close:hover { background: rgba(255,255,255,0.2); }

/* ==========================================================================
   Contact
   ========================================================================== */
.contact {
  max-width: var(--container);
  margin: 0 auto;
  padding: 8rem var(--gutter);
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(2.5rem, 6vw, 6rem);
}

.contact-info h2 { font-size: clamp(2rem, 4vw, 2.8rem); margin: 0.7rem 0 1.2rem; }
.contact-lead { color: var(--brown); font-size: 1.05rem; max-width: 480px; margin-bottom: 2.2rem; }

.contact-detail {
  display: flex;
  flex-direction: column;
  padding: 1.1rem 0;
  border-top: 1px solid rgba(74,46,29,0.15);
}
.contact-detail:last-child { border-bottom: 1px solid rgba(74,46,29,0.15); }
.contact-detail-label {
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green-deep);
  margin-bottom: 0.3rem;
}
.contact-detail a {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--charcoal);
  transition: color 0.3s ease;
}
.contact-detail a:hover { color: var(--blue); }

.contact-form {
  background: var(--paper);
  border-radius: 26px;
  padding: clamp(1.8rem, 4vw, 3rem);
  box-shadow: 0 30px 70px -30px rgba(27,23,18,0.35);
  display: grid;
  gap: 1.3rem;
  align-content: start;
}
.form-row { display: grid; gap: 0.5rem; }
.form-row label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--brown);
  letter-spacing: 0.03em;
}
.form-row input, .form-row textarea {
  border: 1.5px solid rgba(74,46,29,0.2);
  border-radius: 12px;
  padding: 0.85rem 1rem;
  background: var(--cream);
  color: var(--ink);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  resize: vertical;
}
.form-row input:focus, .form-row textarea:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 4px rgba(79,168,44,0.15);
}
.form-note {
  text-align: center;
  font-size: 0.78rem;
  color: var(--brown-light);
}
.form-status { margin: 0; text-align: center; font-size: 0.92rem; font-weight: 600; }
.form-status:empty { display: none; }
.form-status.is-success { color: var(--green-deep); background: rgba(74,171,12,0.12); padding: 0.9rem 1rem; border-radius: 12px; }
.form-status.is-error { color: #9b2c1f; background: rgba(155,44,31,0.1); padding: 0.9rem 1rem; border-radius: 12px; }
.contact-detail a, .footer-bottom a { text-underline-offset: 3px; }
.footer-bottom a:hover { color: var(--green-glow); text-decoration: underline; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--charcoal);
  color: rgba(255,255,255,0.7);
  padding: 3.5rem var(--gutter) 2rem;
}
.footer-top {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.footer-brand .brand-mark { height: 70px; filter: drop-shadow(0 2px 10px rgba(0,0,0,0.35)); }
.footer-nav { display: flex; gap: 2rem; font-weight: 600; font-size: 0.9rem; }
.footer-nav a:hover { color: var(--green-glow); }

.footer-bottom {
  max-width: var(--container);
  margin: 0 auto;
  padding-top: 1.6rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.6rem;
  font-size: 0.85rem;
}

/* ==========================================================================
   Scroll reveal
   ========================================================================== */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
[data-reveal].in-view { opacity: 1; transform: translateY(0); }

/* stagger children within a container that has already animated in */
.hero-content [data-reveal]:nth-child(1) { transition-delay: 0.05s; }
.hero-content [data-reveal]:nth-child(2) { transition-delay: 0.15s; }
.hero-content [data-reveal]:nth-child(3) { transition-delay: 0.25s; }
.hero-content [data-reveal]:nth-child(4) { transition-delay: 0.35s; }
.hero-cards [data-reveal]:nth-child(1) { transition-delay: 0.45s; }
.hero-cards [data-reveal]:nth-child(2) { transition-delay: 0.52s; }
.hero-cards [data-reveal]:nth-child(3) { transition-delay: 0.59s; }

.service-grid [data-reveal]:nth-child(1) { transition-delay: 0s; }
.service-grid [data-reveal]:nth-child(2) { transition-delay: 0.12s; }
.service-grid [data-reveal]:nth-child(3) { transition-delay: 0.24s; }

.why-grid [data-reveal]:nth-child(1) { transition-delay: 0s; }
.why-grid [data-reveal]:nth-child(2) { transition-delay: 0.1s; }
.why-grid [data-reveal]:nth-child(3) { transition-delay: 0.2s; }
.why-grid [data-reveal]:nth-child(4) { transition-delay: 0.3s; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1024px) {
  .service-grid { grid-template-columns: 1fr; }
  .service-card { min-height: 380px; }
  .about { grid-template-columns: 1fr; }
  .about-media { max-width: 420px; margin: 0 auto; }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .contact { grid-template-columns: 1fr; }
  .flip-grid { gap: 1rem; }
}

@media (max-width: 820px) {
  .main-nav, .nav-phone { display: none; }
  .hamburger { display: flex; }

  .main-nav.open {
    display: flex;
    position: fixed;
    inset: 0 0 0 auto;
    width: min(86vw, 340px);
    background: var(--charcoal);
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 2rem;
    padding: 3rem 2.2rem;
    font-size: 1.4rem;
    z-index: 150;
  }
  .main-nav.open a { color: var(--paper); }
  .main-nav.open .menu-only {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0.95rem 1.2rem;
    border-radius: 999px;
    font-size: 1rem;
    font-weight: 700;
    white-space: nowrap;
  }
  .main-nav.open .menu-only::after { display: none; }
  .main-nav.open .menu-call { margin-top: 1rem; background: linear-gradient(135deg, var(--green), var(--green-deep)); }
  .main-nav.open .menu-quote { background: linear-gradient(135deg, var(--blue), var(--blue-deep)); }
  .main-nav.open { gap: 1.6rem; }
  .mobile-call { display: flex; }
  .brand-mark { height: 48px; }
  .site-header.scrolled .brand-mark { height: 40px; }

  .hero-cards { gap: 1rem; }
  .hero-card { min-width: 120px; padding: 1rem; }

  .why-grid { grid-template-columns: 1fr; }
  .why-item { border-left: none; border-top: 2px solid rgba(74,46,29,0.15); padding-left: 0; padding-top: 1.6rem; }
}

@media (max-width: 560px) {
  .nav-actions .btn-small { display: none; }
  .hero {
    min-height: 100svh;
    padding: 5.4rem 1.1rem 1.6rem;
  }
  .hero-content .eyebrow {
    font-size: 0.62rem;
    letter-spacing: 0.08em;
    padding: 0.4rem 0.75rem;
    margin-bottom: 1rem;
  }
  .hero-title { font-size: 2.3rem; }
  .hero-sub { font-size: 0.98rem; line-height: 1.5; margin-top: 1rem; text-shadow: 0 1px 12px rgba(0,0,0,0.65); }
  .hero-actions { margin-top: 1.4rem; }
  .hero-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    align-items: stretch;
    gap: 0.5rem;
    width: 100%;
    margin-top: 1.8rem;
  }
  .hero-card { min-width: 0; padding: 0.8rem 0.3rem 0.7rem; border-radius: 14px; }
  .hero-card:nth-child(2) { margin-bottom: 0; }
  .hero-card-icon { width: 30px; height: 30px; margin-bottom: 0.45rem; }
  .hero-card-icon svg { width: 15px; height: 15px; }
  .hero-card-num { font-size: 1.3rem; }
  .hero-card-label { font-size: 0.62rem; line-height: 1.25; letter-spacing: 0.02em; }
  .scroll-cue { display: none; }
  .about, .contact { padding: 5rem 1.2rem; }
  .services, .why, .gallery { padding: 4.5rem 0; }
  .flip-grid { grid-template-columns: repeat(2, 1fr); gap: 0.8rem; }
  .flip-tile, .flip-inner, .flip-face { border-radius: 16px; }
  .about-img-frame { display: none; }
  .about-badge { padding: 0.8rem 1rem; }
}

/* ==========================================================================
   Call-or-text chooser
   ========================================================================== */
.contact-sheet {
  position: fixed; inset: 0;
  z-index: 400;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: rgba(10, 8, 6, 0.62);
  backdrop-filter: blur(5px);
  animation: sheet-fade 0.25s ease;
}
.contact-sheet[hidden] { display: none; }
.sheet-card {
  position: relative;
  width: min(100%, 440px);
  padding: 1.7rem 1.4rem calc(1.5rem + env(safe-area-inset-bottom));
  background: var(--paper);
  border-radius: 26px 26px 0 0;
  box-shadow: 0 -20px 60px rgba(0,0,0,0.35);
  text-align: center;
  animation: sheet-up 0.4s var(--ease);
}
.sheet-eyebrow {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--green-deep);
}
.sheet-card h3 { font-size: 1.45rem; margin: 0.4rem 0 1.3rem; }
.sheet-close {
  position: absolute;
  top: 0.9rem; right: 0.9rem;
  width: 40px; height: 40px;
  border: 0;
  border-radius: 50%;
  background: rgba(74,32,5,0.08);
  color: var(--brown);
  font-size: 1.6rem;
  line-height: 1;
}
.sheet-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  width: 100%;
  min-height: 58px;
  margin-top: 0.8rem;
  border-radius: 999px;
  color: var(--paper);
  font-size: 1.02rem;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.sheet-btn svg { width: 22px; height: 22px; flex-shrink: 0; }
.sheet-btn strong { font-weight: 800; }
.sheet-btn:hover, .sheet-btn:active { transform: translateY(-2px); }
.sheet-call { background: linear-gradient(135deg, var(--green), var(--green-deep)); box-shadow: 0 12px 28px -12px rgba(44,107,8,0.8); }
.sheet-text { background: linear-gradient(135deg, var(--blue), var(--blue-deep)); box-shadow: 0 12px 28px -12px rgba(10,44,176,0.8); }
.sheet-note { margin-top: 1.1rem; font-size: 0.8rem; color: var(--brown-light); }
@keyframes sheet-up { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes sheet-fade { from { opacity: 0; } to { opacity: 1; } }
@media (min-width: 561px) {
  .contact-sheet { align-items: center; }
  .sheet-card { border-radius: 26px; padding-bottom: 1.6rem; }
}