/* =========================================================================
   KC Pergolas — design system + base styles
   Borrows architectural patterns from the KCH design system
   (italic serif eyebrows, hairline gold rules, premium card hovers,
   editorial dot connectors) — adapted to the tan/white/sans-serif brand.
   ========================================================================= */

:root {
  /* Brand palette */
  --tan: #B89967;
  --tan-light: #D2B783;
  --tan-deep: #8C7349;
  --tan-bright: #E2C994;
  --ink: #1F2025;
  --ink-soft: #3D3F46;
  --muted: #6B6F78;
  --line: rgba(31,32,37,0.10);
  --rule: rgba(140,115,73,0.32);  /* tan-deep at 32% — for editorial hairlines */

  /* Surfaces */
  --paper: #FFFFFF;
  --paper-2: #FAF8F4;
  --paper-3: #F2EDE2;

  /* Typography — sans-serif primary, serif italic for accent eyebrows */
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-serif: 'Cormorant Garamond', Georgia, serif;

  /* Spacing & motion */
  --radius: 4px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; }

/* ====================================================================
   Accessibility — skip link, focus indicators, reduced motion
   ==================================================================== */

/* Skip-to-main link. Hidden offscreen until focused, then slides into view
   as a prominent gold pill at the top of the page. Always above any nav. */
.skip-link {
  position: fixed;
  top: 0; left: 50%;
  transform: translate(-50%, -120%);
  background: #E2C994;
  color: #3F3320;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  padding: 0.85rem 1.5rem;
  border-radius: 0 0 12px 12px;
  border: 2px solid #B89967;
  border-top: 0;
  box-shadow: 0 8px 24px rgba(54, 38, 20, 0.30);
  text-decoration: none;
  z-index: 99999;
  transition: transform 200ms var(--ease);
  white-space: nowrap;
}
.skip-link:focus,
.skip-link:focus-visible {
  transform: translate(-50%, 0);
  outline: 3px solid #5E4A2A;
  outline-offset: 2px;
}

/* Global focus ring — only shows on keyboard navigation (Tab),
   not on mouse clicks, thanks to :focus-visible. Brand brown
   with a small offset for clear separation from the element. */
:focus-visible {
  outline: 3px solid #B89967;
  outline-offset: 3px;
  border-radius: 3px;
}

/* Stronger ring on interactive controls so the contrast pops on hero photos */
a:focus-visible,
button:focus-visible,
[role="button"]:focus-visible,
.cta:focus-visible,
.cta-primary:focus-visible,
.cta-secondary:focus-visible,
.btn:focus-visible,
.nav-cta:focus-visible {
  outline: 3px solid #E2C994;
  outline-offset: 3px;
  box-shadow: 0 0 0 6px rgba(94, 74, 42, 0.35);
}

/* Remove focus ring on mouse focus, keep for keyboard */
:focus:not(:focus-visible) { outline: none; }

/* Respect prefers-reduced-motion globally. Honors the user's
   system setting; collapses animations to near-instant changes
   while preserving the state transitions. */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* Containers */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.container-narrow { max-width: 760px; margin: 0 auto; padding: 0 1.5rem; }
.container-wide { max-width: 1400px; margin: 0 auto; padding: 0 1.5rem; }

/* Type scale */
h1, h2, h3, h4 {
  font-family: var(--font-sans);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--ink);
  text-wrap: balance;
}
h1 { font-size: clamp(2.4rem, 5.5vw, 4.4rem); line-height: 1.05; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); }
h3 { font-size: clamp(1.3rem, 2.2vw, 1.6rem); }
p { color: var(--ink-soft); text-wrap: pretty; }
.lede { font-size: 1.15rem; line-height: 1.7; color: var(--ink-soft); max-width: 60ch; }

/* Eyebrow — borrowed from KCH (italic serif, tan-deep) */
.eyebrow {
  display: inline-block;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--tan-deep);
  letter-spacing: 0.01em;
  margin-bottom: 0.9rem;
}

/* Eyebrow alt — small caps style for in-content section labels */
.section-label {
  display: inline-block;
  font-size: 0.7rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--tan-deep);
  margin-bottom: 0.6rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.95rem 1.65rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transition: transform 200ms var(--ease), background 200ms var(--ease), color 200ms var(--ease), box-shadow 200ms var(--ease);
  white-space: nowrap;
}
.btn-primary {
  background: var(--tan-deep);   /* deeper brown so it reads as solid brown */
  color: #fff;
  box-shadow: 0 8px 22px rgba(140,115,73,0.32);
}
.btn-primary:hover { background: #6F5A39; transform: translateY(-1px); box-shadow: 0 12px 28px rgba(140,115,73,0.4); }
.btn-secondary {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
}
.btn-secondary:hover { background: var(--ink); color: #fff; transform: translateY(-1px); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  padding: 0.6rem 0;
  letter-spacing: 0.12em;
}
.btn-ghost::after {
  content: ' \2192';
  transition: transform 200ms var(--ease);
  display: inline-block;
}
.btn-ghost:hover::after { transform: translateX(4px); }

/* Section CTA pill (KCH pattern, adapted) */
.section-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.65rem;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  background: var(--ink);
  color: var(--tan-bright);
  border: 1px solid var(--ink);
  transition: transform 200ms var(--ease), background 200ms var(--ease);
}
.section-cta-btn:hover { background: var(--ink-soft); transform: translateY(-1px); }

/* Navigation — transparent over hero, frosted/white after scroll (KCH pattern) */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease), padding 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.nav.scrolled {
  background: rgba(140, 115, 73, 0.96);  /* solid brown (tan-deep) */
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom-color: rgba(0,0,0,0.08);
  box-shadow: 0 4px 24px rgba(31,32,37,0.18);
}
.nav-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 1.05rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  transition: padding 0.4s var(--ease);
}
.nav.scrolled .nav-inner { padding: 0.7rem 1.5rem; }

/* Two logo variants — both tan badge, wordmark swaps between white (over hero)
   and black (after scroll). We render BOTH and toggle visibility on scroll state. */
.nav-logo {
  display: inline-flex;
  align-items: center;
  position: relative;
}
.nav-logo img {
  height: 56px;
  width: auto;
  display: block;
  transition: height 0.4s var(--ease), opacity 0.4s var(--ease);
}
/* Brown nav in both states — keep the white-wordmark logo throughout, just
   shrink it after scroll. logo-dark variant is preloaded but never shown. */
.nav-logo .logo-light { opacity: 1; }
.nav-logo .logo-dark  { display: none; }
.nav.scrolled .nav-logo img { height: 44px; }

.nav-links { display: flex; align-items: center; gap: 2rem; list-style: none; }
.nav-links a {
  font-size: 0.92rem;
  font-weight: 500;
  color: #fff;
  letter-spacing: 0.01em;
  text-shadow: 0 1px 8px rgba(0,0,0,0.25);
  transition: color 200ms var(--ease), text-shadow 200ms var(--ease);
}
.nav-links a:hover { color: var(--tan-bright); }
/* Brown nav after scroll — keep links white, just drop the text-shadow */
.nav.scrolled .nav-links a {
  color: #fff;
  text-shadow: none;
}
.nav.scrolled .nav-links a:hover { color: var(--tan-bright); }

.nav-cta {
  padding: 0.7rem 1.25rem;
  border-radius: 999px;
  background: var(--tan);
  color: #fff;
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
  text-shadow: none;
  transition: background 200ms var(--ease);
}
.nav-cta:hover { background: var(--tan-deep); color: #fff; }
.hamburger { display: none; }

@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-logo img { height: 44px; }
  .nav.scrolled .nav-logo img { height: 38px; }
  .hamburger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 28px;
    height: 28px;
    justify-content: center;
    align-items: center;
    cursor: pointer;
  }
  .hamburger span { display: block; width: 24px; height: 2px; background: #fff; transition: transform 200ms var(--ease), opacity 200ms var(--ease); }
  /* Hamburger stays white in both states (brown nav background) */
  .hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .hamburger.active span:nth-child(2) { opacity: 0; }
  .hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

.mobile-menu {
  position: fixed;
  top: 70px; left: 0; right: 0;
  background: #fff;
  border-bottom: 1px solid var(--line);
  padding: 1.5rem;
  display: none;
  flex-direction: column;
  gap: 1.2rem;
  z-index: 999;
  box-shadow: 0 8px 24px rgba(31,32,37,0.08);
}
.mobile-menu.open { display: flex; }
.mobile-menu a { font-size: 1rem; font-weight: 600; color: var(--ink); }
.mobile-menu .mobile-cta { background: var(--tan); color: #fff; padding: 0.85rem 1.2rem; border-radius: 999px; text-align: center; }

/* Hero — day/night portal layered hero with KCH-style lower-left content */
.hero {
  position: relative;
  width: 100%;
  min-height: 92vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  /* CSS custom property driven by JS to sweep the day/night reveal band */
  --scanY: 0%;
}
.hero-layer {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}
.hero-layer-night {
  background-image: url('/assets/images/hero/hero-1-night.jpg');
  background-image: image-set(
    url('/assets/images/hero/hero-1-night.webp') type('image/webp'),
    url('/assets/images/hero/hero-1-night.jpg') type('image/jpeg'));
  z-index: 1;
  filter: saturate(1.06) contrast(1.02);
}
.hero-layer-day {
  background-image: url('/assets/images/hero/hero-1.jpg');
  background-image: image-set(
    url('/assets/images/hero/hero-1.webp') type('image/webp'),
    url('/assets/images/hero/hero-1.jpg') type('image/jpeg'));
  z-index: 2;
  filter: brightness(1.02) saturate(1.04);
  /* Vertical band sweep: left is transparent (night shows through),
     right is opaque (day shows). --scanY (set by JS, named legacy) drives
     the horizontal position so the day-to-night transition flows left-to-right. */
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent 0%,
    transparent calc(var(--scanY) - 22%),
    black calc(var(--scanY) + 22%),
    black 100%
  );
          mask-image: linear-gradient(
    90deg,
    transparent 0%,
    transparent calc(var(--scanY) - 22%),
    black calc(var(--scanY) + 22%),
    black 100%
  );
  will-change: mask-image, -webkit-mask-image;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  /* Vignette weighted heavier in the lower-left where the copy lives.
     Applied on TOP of both layers so the text stays readable through
     either day or night state. */
  background:
    linear-gradient(180deg, rgba(31,32,37,0.0) 0%, rgba(31,32,37,0.05) 40%, rgba(31,32,37,0.85) 100%),
    linear-gradient(90deg, rgba(31,32,37,0.55) 0%, rgba(31,32,37,0.0) 55%);
  z-index: 3;
  pointer-events: none;
}
.hero-inner {
  position: relative;
  z-index: 4;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem 5rem;
}
.hero-text {
  max-width: 540px;
}
/* AI render disclosure — small tan diamond, fades in only during the night
   portion of the cycle. Honors the gold-diamond convention used on the KCH
   site for AI-enhanced imagery. */
.hero-ai-mark {
  position: absolute;
  right: 16px;
  bottom: 16px;
  z-index: 20;
  width: 10px;
  height: 10px;
  transform: rotate(45deg);
  background: var(--tan);
  opacity: 0;
  transition: opacity 600ms ease;
  cursor: help;
  pointer-events: auto;
}
.hero-ai-label {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* Reduced motion: pin the hero on day, no scan */
@media (prefers-reduced-motion: reduce) {
  .hero-layer-day {
    -webkit-mask-image: none !important;
            mask-image: none !important;
  }
  .hero-ai-mark { opacity: 0 !important; }
}
.hero-eyebrow {
  display: inline-block;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--tan-bright);
  margin-bottom: 1.1rem;
  text-shadow: 0 1px 8px rgba(0,0,0,0.45);
  letter-spacing: 0.01em;
}
.hero h1 {
  color: #fff;
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.022em;
  line-height: 1.04;
  margin-bottom: 1.3rem;
  text-shadow: 0 2px 18px rgba(0,0,0,0.5);
  text-wrap: balance;
}
.hero p {
  color: rgba(255,255,255,0.92);
  font-size: clamp(1rem, 1.4vw, 1.18rem);
  line-height: 1.55;
  max-width: 30rem;
  margin: 0 0 2rem;
  text-shadow: 0 1px 8px rgba(0,0,0,0.3);
}
.hero-actions { display: flex; gap: 0.9rem; flex-wrap: wrap; }
.hero .btn-secondary {
  background: rgba(255,255,255,0.08);
  color: #fff;
  border-color: rgba(255,255,255,0.5);
}
.hero .btn-secondary:hover { background: rgba(255,255,255,0.95); color: var(--ink); }
@media (max-width: 760px) {
  .hero { min-height: 78vh; align-items: flex-end; }
  .hero-inner { padding: 0 1.4rem 3rem; }
  .hero h1 { font-size: 2.2rem; }
  .hero p { font-size: 1.02rem; }
}

/* Editorial divider — borrowed from KCH index pattern */
/* Thin tan hairlines top + bottom, with small dot anchors at the centerline */
.editorial-frame {
  position: relative;
  padding: 1.75rem 0 1.9rem;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.editorial-frame::before,
.editorial-frame::after {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--tan);
  box-shadow: 0 0 0 4px var(--paper);
}
.editorial-frame::before { top: -3px; }
.editorial-frame::after  { bottom: -3px; }

/* Simple horizontal hairline divider */
.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--rule), transparent);
  margin: 3.5rem 0;
  border: 0;
}

/* Generic section */
.section { padding: 6rem 0; }
.section-tight { padding: 4rem 0; }
.section-paper-2 { background: var(--paper-2); }
.section-paper-3 { background: var(--paper-3); }

.section-head { text-align: center; max-width: 760px; margin: 0 auto 3.5rem; }
.section-head h2 { margin-bottom: 1rem; }
.section-head p { color: var(--muted); font-size: 1.08rem; line-height: 1.65; text-wrap: balance; }

/* Warm gradient section background for liquid-glass card showcase */
.section-warm-bg {
  position: relative;
  background: linear-gradient(165deg, #F5EDDC 0%, #E8D9BD 55%, #DDC9A4 100%);
  overflow: hidden;
}
.warm-bg-aura {
  position: absolute;
  pointer-events: none;
  inset: 0;
  z-index: 0;
}
.warm-bg-aura::before,
.warm-bg-aura::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.55;
}
.warm-bg-aura::before {
  top: -10%;
  left: -10%;
  width: 50vw;
  height: 50vw;
  background: radial-gradient(circle, rgba(255, 245, 220, 0.95) 0%, transparent 70%);
}
.warm-bg-aura::after {
  bottom: -15%;
  right: -15%;
  width: 55vw;
  height: 55vw;
  background: radial-gradient(circle, rgba(184, 153, 103, 0.30) 0%, transparent 70%);
}
.section-warm-bg > .container { position: relative; z-index: 1; }

/* Typography overrides on the warm cream background — keep everything in the
   brown family so the heading doesn't read as harsh black on tan. */
.section-warm-bg .section-head h2 {
  color: var(--tan-deep);
  letter-spacing: -0.025em;
}
.section-warm-bg .section-head p {
  color: #5C4F39;  /* warm dark brown, softer than ink */
}

/* Liquid-glass service cards */
.services-grid--glass {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
@media (max-width: 900px) { .services-grid--glass { grid-template-columns: 1fr; } }

.glass-card {
  position: relative;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  border-radius: 18px;
  overflow: hidden;
  isolation: isolate;
  background: linear-gradient(180deg,
    rgba(255, 255, 255, 0.98) 0%,
    rgba(255, 255, 255, 0.92) 100%);
  backdrop-filter: blur(22px) saturate(180%);
  -webkit-backdrop-filter: blur(22px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.75);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    inset 0 -1px 0 rgba(140, 115, 73, 0.08),
    0 8px 30px rgba(140, 115, 73, 0.18),
    0 22px 50px rgba(140, 115, 73, 0.14);
  transition: transform 360ms var(--ease), box-shadow 360ms var(--ease), background 360ms var(--ease);
}
.glass-card::before {
  /* Soft inner highlight along the top edge for the liquid feel */
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 18px;
  pointer-events: none;
  background: linear-gradient(180deg,
    rgba(255, 255, 255, 0.55) 0%,
    rgba(255, 255, 255, 0) 30%);
  z-index: 0;
}
.glass-card:hover {
  transform: translateY(-6px);
  background: linear-gradient(180deg,
    rgba(255, 255, 255, 1) 0%,
    rgba(255, 255, 255, 0.97) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 1),
    inset 0 -1px 0 rgba(140, 115, 73, 0.08),
    0 16px 42px rgba(140, 115, 73, 0.24),
    0 32px 68px rgba(140, 115, 73, 0.18);
}

.glass-card-photo {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  z-index: 1;
  border-bottom: 1px solid rgba(255, 255, 255, 0.4);
}
.glass-card-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 800ms var(--ease);
}
.glass-card:hover .glass-card-photo img { transform: scale(1.06); }
.glass-card-photo::after {
  /* Soft gradient over the bottom of the photo so the body content sits cleanly */
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 70%, rgba(31, 32, 37, 0.10) 100%);
  pointer-events: none;
}

.glass-card-body {
  position: relative;
  z-index: 2;
  padding: 1.6rem 1.7rem 1.85rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.glass-card-body h3 {
  font-family: var(--font-sans);
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin-bottom: 0.7rem;
  line-height: 1.1;
}
.glass-card-body p {
  font-size: 0.98rem;
  line-height: 1.6;
  color: var(--ink-soft);
  margin: 0 0 1.4rem;
  flex: 1;
}
.glass-card-read {
  font-size: 0.74rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--tan-deep);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.glass-card-read::after {
  content: '\2192';
  transition: transform 240ms var(--ease);
  display: inline-block;
}
.glass-card:hover .glass-card-read { color: #6F5A39; }
.glass-card:hover .glass-card-read::after { transform: translateX(5px); }

/* Three-up service cards (KCH-style premium hover) */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}
@media (max-width: 900px) { .services-grid { grid-template-columns: 1fr; } }

.service-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 280ms var(--ease), box-shadow 280ms var(--ease);
}
.service-card:hover { transform: translateY(-4px); box-shadow: 0 22px 50px rgba(31,32,37,0.10); }
.service-card .photo { aspect-ratio: 4/3; overflow: hidden; background: var(--paper-2); }
.service-card .photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 700ms var(--ease); }
.service-card:hover .photo img { transform: scale(1.05); }
.service-card .body { padding: 1.5rem 1.6rem 1.9rem; display: flex; flex-direction: column; flex: 1; }
.service-card h3 { font-size: 1.5rem; margin-bottom: 0.7rem; line-height: 1.15; }
.service-card p { color: var(--muted); font-size: 0.98rem; line-height: 1.65; flex: 1; margin-bottom: 1.3rem; }
.service-card .read { font-size: 0.74rem; letter-spacing: 0.22em; text-transform: uppercase; font-weight: 700; color: var(--tan-deep); display: inline-flex; align-items: center; gap: 0.4rem; }
.service-card .read::after { content: '\2192'; transition: transform 200ms var(--ease); display: inline-block; }
.service-card:hover .read::after { transform: translateX(4px); }

/* ============================================================
   It's All About Family — homepage About teaser with team row
   ============================================================ */
.family-section {
  background: #fff;
  padding: 5rem 0 5.5rem;
  overflow: hidden;
}
.family-head {
  max-width: 720px;
  margin: 0 auto 3.5rem;
  text-align: center;
}
.family-head .eyebrow {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--tan-deep);
  text-transform: none;
  letter-spacing: 0.01em;
  font-weight: 600;
  margin-bottom: 0.85rem;
}
.family-head h2 {
  font-family: var(--font-sans);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.05;
  color: var(--tan-deep);
  margin-bottom: 1.25rem;
  text-wrap: balance;
}
.family-lede {
  color: #4F4232;
  font-size: 1.1rem;
  line-height: 1.6;
  margin: 0 auto;
  max-width: 38rem;
  text-wrap: pretty;
}

/* Three caricature cards in a row */
.family-team {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  max-width: 980px;
  margin: 0 auto;
  align-items: end;
}
@media (max-width: 760px) {
  .family-team { grid-template-columns: 1fr; gap: 2rem; max-width: 320px; }
}

.family-member {
  text-align: center;
  margin: 0;
}
.family-member-photo {
  position: relative;
  width: 100%;
  max-width: 240px;
  margin: 0 auto 1.1rem;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  overflow: visible;
  /* Floating gentle hover for each brother — staggered timing so they don't
     bob in sync. */
  animation: family-bob 4.5s ease-in-out infinite;
}
.family-member:nth-child(2) .family-member-photo { animation-delay: -1.5s; }
.family-member:nth-child(3) .family-member-photo { animation-delay: -3s; }
.family-member-photo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 18px 30px rgba(40, 24, 8, 0.18));
}
@keyframes family-bob {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}
@media (prefers-reduced-motion: reduce) {
  .family-member-photo { animation: none; }
}

.family-member figcaption h3 {
  font-family: var(--font-sans);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--tan-deep);
  letter-spacing: -0.015em;
  margin: 0 0 0.2rem;
}
.family-member figcaption p {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.98rem;
  color: var(--ink-soft);
  margin: 0;
  letter-spacing: 0.01em;
}

@media (max-width: 640px) {
  .family-section { padding: 4rem 0 4.5rem; }
  .family-head { margin-bottom: 2.5rem; }
}

/* ============================================================
   Why Us — photo-backed connected-grid block (KCH wsua pattern)
   ============================================================ */
.whyus-section {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: #fff;
  padding: 5rem 0 5.5rem;
}
.whyus-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('https://res.cloudinary.com/diir0gmvw/image/upload/f_auto,q_auto,w_2200/kcp/backgrounds/pergola-hanging-basket');
  background-size: cover;
  background-position: center 40%;
  filter: brightness(1.22) saturate(1.05);
  z-index: -2;
}
.whyus-section::after {
  /* Soft warm tint so the photo stays bright but the headline area has
     enough contrast for white type. */
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20, 15, 8, 0.42) 0%, rgba(20, 15, 8, 0.22) 30%, rgba(20, 15, 8, 0.22) 70%, rgba(20, 15, 8, 0.42) 100%);
  z-index: -1;
}
.whyus-section .container { position: relative; z-index: 1; }
.whyus-aura { display: none; }

.whyus-head {
  max-width: 760px;
  margin: 0 auto 3rem;
  text-align: center;
}
.whyus-eyebrow {
  display: inline-block;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--tan-bright);
  margin-bottom: 0.85rem;
  letter-spacing: 0.02em;
  text-shadow: 0 1px 8px rgba(0,0,0,0.4);
}
.whyus-head h2 {
  font-family: var(--font-sans);
  font-size: clamp(1.85rem, 3.6vw, 2.7rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.05;
  color: #fff;
  text-wrap: balance;
  text-shadow: 0 2px 18px rgba(0,0,0,0.55);
}
/* Brand flow — continuous waves of warm-gold tint roll through the
   letters of the brand name. The text is always visible; the colors
   undulate like sunlight on water. */
.brand-glow {
  /* Base color for unsupported browsers */
  color: #fff;
  /* Repeating wave gradient — each wave has a bright sparkle core flanked
     by saturated warm gold, so the peaks pop while the troughs stay white. */
  background-image: linear-gradient(
    105deg,
    #ffffff 0%,
    #FFE9A8 8%,
    #FFD55E 18%,
    #FFF8C8 25%,
    #FFD55E 32%,
    #FFE9A8 42%,
    #ffffff 50%,
    #FFE9A8 58%,
    #FFD55E 68%,
    #FFF8C8 75%,
    #FFD55E 82%,
    #FFE9A8 92%,
    #ffffff 100%
  );
  background-size: 220% 100%;
  background-repeat: repeat-x;
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
  /* No glow halo — shine stays contained inside the letters via the
     gradient wave alone. */
  /* Slow continuous linear flow — no easing, no holds */
  animation: brand-flow 12s linear infinite;
  will-change: background-position;
}
@keyframes brand-flow {
  0%   { background-position: 0% 0; }
  100% { background-position: 220% 0; }
}
@media (prefers-reduced-motion: reduce) {
  .brand-glow { animation: none; }
}

/* Premium liquid-glass panel — more transparency, brighter highlights,
   refined edges. The photo behind shows through clearly. */
.whyus-panel {
  max-width: 1080px;
  margin: 0 auto;
  position: relative;
  background: linear-gradient(180deg, rgba(255, 249, 238, 0.62) 0%, rgba(248, 238, 220, 0.52) 100%);
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 22px;
  overflow: hidden;
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    inset 0 -1px 0 rgba(140, 115, 73, 0.12),
    0 32px 70px rgba(40, 24, 8, 0.32),
    0 12px 28px rgba(40, 24, 8, 0.12);
}
/* Bright top-edge highlight for the liquid feel */
.whyus-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 22px;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.55) 0%, rgba(255, 255, 255, 0) 22%);
  z-index: 0;
}

.whyus-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  position: relative;
  z-index: 1;
}

.whyus-item {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  /* Center the number with the text block so single-line and multi-line
     items both have the number vertically centered against the prose. */
  align-items: center;
  gap: 1.2rem;
  padding: 2.4rem 2rem;
  /* Soft warm hairline dividers between cells */
  border-right: 1px solid rgba(140, 115, 73, 0.20);
  border-bottom: 1px solid rgba(140, 115, 73, 0.20);
}
/* Remove the right border on every 2nd cell (right column) */
.whyus-item:nth-child(2n) { border-right: none; }

@media (max-width: 760px) {
  .whyus-grid { grid-template-columns: 1fr; }
  .whyus-item { border-right: none; }
  .whyus-item:nth-last-child(2) { border-bottom: 1px solid rgba(140, 115, 73, 0.20); }
}

.whyus-num {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 600;
  font-size: 2.5rem;
  line-height: 1;
  color: var(--tan-deep);
  letter-spacing: -0.02em;
  white-space: nowrap;
  min-width: 2.4ch;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
}
.whyus-item p {
  margin: 0;
  padding: 0;
  font-size: 1.08rem;
  line-height: 1.55;
  color: #2A1F0F;  /* deep warm brown for crisp contrast on the warm panel */
  font-weight: 500;
  text-wrap: pretty;
}

/* Signoff sits directly on the photo background, no card chrome —
   just bold text with strong drop shadow so it stays readable. */
.whyus-signoff {
  max-width: 700px;
  margin: 3.5rem auto 0;
  text-align: center;
}
.whyus-signoff p {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 700;
  font-size: clamp(1.2rem, 2.1vw, 1.6rem);
  line-height: 1.45;
  color: #fff;
  margin: 0;
  letter-spacing: 0.005em;
  text-wrap: balance;
  text-shadow:
    0 2px 8px rgba(0, 0, 0, 0.85),
    0 1px 3px rgba(0, 0, 0, 0.7),
    0 0 18px rgba(0, 0, 0, 0.45);
}

@media (max-width: 640px) {
  .whyus-section { padding: 4rem 0 4.5rem; }
  .whyus-head { margin-bottom: 2.25rem; }
  .whyus-item { padding: 1.95rem 1.4rem; gap: 1rem; }
  .whyus-num { font-size: 2.1rem; }
  .whyus-item p { font-size: 1.05rem; }
  .whyus-signoff { margin-top: 2.75rem; }
  .whyus-signoff p { font-size: 1.2rem; }
}

@media (max-width: 640px) {
  .whyus-head { margin-bottom: 3rem; }
  .whyus-item { padding: 1.5rem 0.5rem; gap: 1.25rem; }
  .whyus-num { font-size: 2.4rem; }
  .whyus-item p { font-size: 1rem; padding-top: 0.35rem; }
  .whyus-closer { margin-top: 3rem; }
  .whyus-closer p { font-size: 1.25rem; }
}

/* Numbered value props — one statement per item, numeric badge marker */
.value-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem 2.25rem;
}
@media (max-width: 860px) { .value-grid { grid-template-columns: 1fr; gap: 1.6rem; } }
.value-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}
.value-item .num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--tan);
  color: #fff;
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 2px;
  box-shadow: 0 6px 14px rgba(184,153,103,0.28);
}
.value-item p {
  font-size: 1.02rem;
  line-height: 1.65;
  color: var(--ink-soft);
  font-weight: 500;
  margin: 0;
}

/* Closer — the referrals line gets its own pull-quote treatment */
.value-closer {
  margin-top: 3.5rem;
  padding-top: 3rem;
  text-align: center;
  border-top: 1px solid var(--rule);
  position: relative;
}
.value-closer::before {
  content: '';
  position: absolute;
  left: 50%;
  top: -4px;
  transform: translateX(-50%);
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--tan);
  box-shadow: 0 0 0 5px var(--paper-2);
}
.value-closer p {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.3rem, 2.4vw, 1.65rem);
  line-height: 1.45;
  color: var(--ink);
  max-width: 38rem;
  margin: 0 auto;
  text-wrap: balance;
}
@media (max-width: 640px) {
  .value-closer { margin-top: 2.5rem; padding-top: 2.25rem; }
  .value-closer p { font-size: 1.18rem; }
}

/* Gallery grid for service pages and portfolio */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
@media (max-width: 1100px) { .gallery-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px)  { .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 0.6rem; } }
.gallery-item {
  display: block;
  aspect-ratio: 4/3;
  overflow: hidden;
  border-radius: 6px;
  background: var(--paper-2);
  position: relative;
  transition: transform 280ms var(--ease), box-shadow 280ms var(--ease);
}
.gallery-item:hover { transform: translateY(-3px); box-shadow: 0 14px 32px rgba(31,32,37,0.10); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 700ms var(--ease); }
.gallery-item:hover img { transform: scale(1.05); }

/* CTA strip — legacy strip, retained for service pages */
.cta-strip {
  background: linear-gradient(180deg, var(--ink) 0%, #14151A 100%);
  color: #fff;
  padding: 5rem 1.5rem;
  text-align: center;
}
.cta-strip .eyebrow { color: var(--tan-bright); }
.cta-strip h2 { color: #fff; margin-bottom: 1rem; max-width: 24ch; margin-left: auto; margin-right: auto; }
.cta-strip p { color: rgba(255,255,255,0.78); margin-bottom: 2rem; max-width: 36rem; margin-left: auto; margin-right: auto; }
.cta-strip .btn-primary { background: var(--tan); color: #fff; }
.cta-strip .btn-primary:hover { background: var(--tan-light); }

/* ============================================================
   Final CTA — KCH-style premium contact card on rich brown gradient
   ============================================================ */
.final-cta {
  position: relative;
  padding: 6rem 1.5rem 6.5rem;
  text-align: center;
  /* CTA fades into the dark-brown footer at the bottom so there's no
     visible seam between the two sections. Bottom stop matches the
     footer background exactly. */
  background:
    radial-gradient(ellipse at 50% 0%, #A88656 0%, transparent 55%),
    linear-gradient(180deg, #8C7349 0%, #6F5A39 45%, #3F3320 100%);
  overflow: hidden;
}

.final-cta-card {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
  padding: 3.25rem 2.75rem;
  background: #fff;
  border-radius: 16px;
  box-shadow:
    0 0 110px rgba(226, 201, 148, 0.55),
    0 0 60px rgba(184, 153, 103, 0.42),
    0 1px 3px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  z-index: 1;
}

/* Subtle warm shine sweeping across the card */
.final-cta-card::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -90%;
  width: 90%;
  height: 200%;
  transform: skewX(-22deg);
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(226, 201, 148, 0.05) 25%,
    rgba(226, 201, 148, 0.22) 50%,
    rgba(226, 201, 148, 0.05) 75%,
    transparent 100%);
  animation: kcp-cta-shine 14s ease-in-out infinite;
  pointer-events: none;
  filter: blur(8px);
  z-index: 0;
}
@keyframes kcp-cta-shine {
  0%   { left: -90%; opacity: 0; }
  35%  { opacity: 0.9; }
  65%  { opacity: 0.9; }
  100% { left: 190%; opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .final-cta-card::after { animation: none; opacity: 0; }
}
.final-cta-card > * { position: relative; z-index: 1; }

.final-cta-eyebrow {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--tan-deep);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  margin-bottom: 1rem;
}

.final-cta-card h2 {
  font-family: var(--font-sans);
  font-size: clamp(2.1rem, 4.2vw, 3.1rem);
  font-weight: 700;
  color: var(--tan-deep);
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin-bottom: 1.1rem;
  text-wrap: balance;
}

.final-cta-card p {
  font-family: var(--font-sans);
  font-size: 1.08rem;
  color: #4F4232;
  line-height: 1.65;
  margin: 0 auto 2.25rem;
  max-width: 36rem;
  text-wrap: pretty;
}

.final-cta-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.final-cta-phone {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--tan-deep);
  letter-spacing: 0.01em;
  transition: color 200ms var(--ease);
}
.final-cta-phone:hover { color: #6F5A39; text-decoration: underline; }

/* Secondary CTA button — brown-outlined to match the primary's brown fill */
.final-cta-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.95rem 1.65rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  background: transparent;
  color: var(--tan-deep);
  border: 1.5px solid var(--tan-deep);
  transition: transform 200ms var(--ease), background 200ms var(--ease), color 200ms var(--ease);
  white-space: nowrap;
}
.final-cta-secondary:hover {
  background: var(--tan-deep);
  color: #fff;
  transform: translateY(-1px);
}

@media (max-width: 640px) {
  .final-cta { padding: 4rem 1.25rem 4.5rem; }
  .final-cta-card { padding: 2.5rem 1.75rem; }
  .final-cta-actions { flex-direction: column; gap: 1rem; }
}

/* Footer — dark brown (matches the CTA's bottom stop for a seamless fade) */
.footer {
  background: #3F3320;
  color: rgba(255,255,255,0.78);
  padding: 4rem 0 2rem;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 3rem;
}
@media (max-width: 900px) { .footer-inner { grid-template-columns: 1fr 1fr; gap: 2.5rem; } }
@media (max-width: 580px) { .footer-inner { grid-template-columns: 1fr; gap: 2rem; } }

.footer-col h4 { color: #fff; font-size: 0.78rem; letter-spacing: 0.22em; text-transform: uppercase; margin-bottom: 1.25rem; font-weight: 700; }
.footer-col a { display: block; color: rgba(255,255,255,0.7); font-size: 0.95rem; line-height: 2; transition: color 160ms var(--ease); }
.footer-col a:hover { color: var(--tan-bright); }

.footer-brand img { height: 64px; width: auto; margin-bottom: 1rem; opacity: 0.92; }
.footer-brand p { color: rgba(255,255,255,0.62); font-size: 0.92rem; line-height: 1.6; max-width: 28rem; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.10);
  margin-top: 3rem;
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.5);
  flex-wrap: wrap;
}
.footer-bottom a { color: rgba(255,255,255,0.5); transition: color 160ms var(--ease); }
.footer-bottom a:hover { color: var(--tan-bright); }

/* Mobile section spacing */
@media (max-width: 640px) {
  .section { padding: 4rem 0; }
  .hero { min-height: 78vh; padding: 5rem 0 3rem; }
  .hero h1 { font-size: 2.4rem; }
  .hero p { font-size: 1.05rem; }
}

/* Utilities */
.text-center { text-align: center; }
.mt-1 { margin-top: 0.5rem; } .mt-2 { margin-top: 1rem; } .mt-3 { margin-top: 1.5rem; } .mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; } .mb-2 { margin-bottom: 1rem; } .mb-3 { margin-bottom: 1.5rem; } .mb-4 { margin-bottom: 2rem; }

/* ============================================================
   FAQ accordion — shared across service + suburb pages
   (cost.html keeps its own inline copy; identical rules)
   ============================================================ */
.faq { padding: 5rem 2rem 6rem; background: linear-gradient(180deg, #F4ECDA 0%, #EFE3C7 100%); }
.faq-inner { max-width: 820px; margin: 0 auto; }
.faq-head { text-align: center; margin-bottom: 3rem; }
.faq-head h2 { font-family: var(--font-serif); font-size: clamp(2rem, 3.8vw, 2.8rem); font-weight: 600; color: var(--brand-deep); line-height: 1.05; letter-spacing: -0.022em; margin: 0; text-wrap: balance; }
.faq-list { display: flex; flex-direction: column; }
.faq details { border-top: 1px solid var(--line); padding: 1.4rem 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { font-family: var(--font-serif); font-size: 1.25rem; font-weight: 700; color: var(--brand-deep); letter-spacing: -0.015em; line-height: 1.25; cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.1rem 0; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-family: var(--font-sans); font-weight: 400; font-size: 1.6rem; color: var(--gold); transition: transform 220ms ease; flex-shrink: 0; }
.faq details[open] summary::after { content: '\2013'; }
.faq details p { font-family: var(--font-sans); font-size: 1rem; line-height: 1.65; color: var(--ink); font-weight: 500; margin: 1rem 0 0; max-width: 62ch; text-wrap: pretty; }
