/* ============================================
   BYRD'S NEST — Warm & Organic
   Where we teach you to fly again
   A nurturing, welcoming design for women's transitional housing
   ============================================ */

/* ---------- Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,500;0,9..144,600;0,9..144,700;1,9..144,400;1,9..144,500&family=Nunito+Sans:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap');

/* ---------- CSS Custom Properties ---------- */
:root {
  /* Primary - Warm Terracotta (The Nest) */
  --primary: #C4704B;
  --primary-light: #D4957A;
  --primary-dark: #A85A3B;

  /* Secondary - Soft Sage (The Sky - Growth) */
  --secondary: #8FA68E;
  --secondary-light: #A8BFA7;
  --secondary-dark: #6B8A6A;

  /* Accent - Warmth & Hope */
  --accent: #E6B347;
  --accent-light: #F0C76A;
  --accent-soft: #E89B8A;

  /* Neutrals - Natural Tones */
  --white: #FFFFFF;
  --cream: #FDF8F3;
  --warm-sand: #F5EDE4;
  --linen: #EDE4D8;
  --clay: #D9CFC3;
  --bark: #4A3F35;
  --branch: #6B5D52;
  --twig: #9A8B7D;

  /* Gray scale (for compatibility) */
  --gray-50: var(--cream);
  --gray-100: var(--warm-sand);
  --gray-200: var(--linen);
  --gray-300: var(--clay);
  --gray-400: var(--twig);
  --gray-500: #8A7B6D;
  --gray-600: var(--branch);
  --gray-700: #5A4D42;
  --gray-800: var(--bark);
  --gray-900: #3A3028;

  /* Semantic */
  --text-primary: var(--bark);
  --text-secondary: var(--branch);
  --text-muted: var(--twig);
  --bg-primary: var(--cream);
  --bg-secondary: var(--warm-sand);
  --bg-tertiary: var(--linen);
  --bg-subtle: var(--cream);
  --bg-muted: var(--warm-sand);
  --border-color: rgba(74, 63, 53, 0.1);
  --border-color-strong: rgba(74, 63, 53, 0.2);

  /* Legacy aliases (for backward compatibility) */
  --lavender-light: var(--warm-sand);
  --lavender: var(--primary);
  --lavender-dark: var(--primary-dark);
  --coral-light: var(--accent-soft);
  --coral: var(--accent-soft);
  --plum: var(--bark);
  --plum-light: var(--branch);
  --sky-light: var(--warm-sand);
  --sunset-orange: var(--accent);
  --cream-warm: var(--warm-sand);
  --cream-dark: var(--linen);
  --honey: var(--accent);
  --forest: var(--secondary);
  --forest-light: var(--secondary-light);
  --forest-dark: var(--secondary-dark);
  --amber: var(--primary);
  --amber-light: var(--primary-light);
  --amber-dark: var(--primary-dark);
  --charcoal: var(--bark);
  --charcoal-light: var(--branch);
  --peach: #FFDAB3;
  --success: #4A8B6A;
  --success-light: rgba(74, 139, 106, 0.1);
  --danger: #C44B4B;
  --danger-light: rgba(196, 75, 75, 0.1);

  /* Typography */
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Nunito Sans', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 0.75rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2.5rem;
  --space-2xl: 4rem;
  --space-3xl: 6rem;

  /* Borders - Organic shapes */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;
  --radius-organic: 24px 8px 24px 8px;
  --radius-blob: 60% 40% 50% 50% / 50% 60% 40% 50%;

  /* Shadows - Warm tinted */
  --shadow-xs: 0 1px 2px rgba(74, 63, 53, 0.04);
  --shadow-sm: 0 2px 8px rgba(74, 63, 53, 0.06);
  --shadow-md: 0 4px 16px rgba(74, 63, 53, 0.08);
  --shadow-lg: 0 8px 30px rgba(74, 63, 53, 0.1);
  --shadow-xl: 0 16px 50px rgba(74, 63, 53, 0.12);
  --shadow-warm: 0 8px 30px rgba(196, 112, 75, 0.1);
  --shadow-soft: var(--shadow-sm);
  --shadow-medium: var(--shadow-md);
  --shadow-dramatic: var(--shadow-lg);
  --shadow-lifted: 0 20px 40px rgba(74, 63, 53, 0.12);
  --shadow-glow: 0 0 0 4px rgba(196, 112, 75, 0.15);

  /* Transitions - Organic feel */
  --ease-out: cubic-bezier(0.33, 1, 0.68, 1);
  --ease-organic: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
  --duration-fast: 150ms;
  --duration-normal: 300ms;
  --duration-slow: 500ms;
  --duration-gentle: 700ms;
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.65;
  color: var(--text-primary);
  background: var(--bg-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Subtle paper texture overlay for warmth */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  opacity: 0.015;
  pointer-events: none;
  z-index: 9999;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.2;
  color: var(--text-primary);
}

h1 {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 600;
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  letter-spacing: -0.01em;
}

h3 {
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
}

h4 {
  font-size: 1.125rem;
  font-family: var(--font-body);
  font-weight: 600;
}

p {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-secondary);
}

.text-large {
  font-size: 1.125rem;
  line-height: 1.7;
}

.text-small {
  font-size: 0.875rem;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-out);
}

a:hover {
  color: var(--primary-dark);
}

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container--narrow {
  max-width: 800px;
}

.container--wide {
  max-width: 1400px;
}

.section {
  padding: var(--space-2xl) 0;
}

.section--large {
  padding: var(--space-3xl) 0;
}

/* ---------- Navigation ---------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: var(--space-md) 0;
  background: rgba(253, 248, 243, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition:
    border-color var(--duration-normal) var(--ease-out),
    background-color var(--duration-normal) var(--ease-out),
    box-shadow var(--duration-normal) var(--ease-out);
}

.nav.scrolled,
.nav.nav--scrolled {
  border-bottom-color: var(--border-color);
  background: rgba(253, 248, 243, 0.98);
  box-shadow: 0 4px 20px rgba(74, 63, 53, 0.04);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  text-decoration: none;
  color: var(--text-primary);
  transition: transform var(--duration-normal) var(--ease-organic);
}

.nav__logo:hover {
  color: var(--text-primary);
  transform: scale(1.01);
}

.nav__logo-img {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow:
    0 4px 20px rgba(74, 63, 53, 0.15),
    0 0 0 3px rgba(255, 255, 255, 0.8),
    0 0 0 6px rgba(193, 154, 107, 0.2);
  transition:
    box-shadow var(--duration-normal) var(--ease-out),
    transform var(--duration-normal) var(--ease-organic);
}

.nav__logo:hover .nav__logo-img {
  box-shadow:
    0 8px 30px rgba(74, 63, 53, 0.2),
    0 0 0 3px rgba(255, 255, 255, 0.9),
    0 0 0 6px rgba(193, 154, 107, 0.3);
  transform: scale(1.02);
}

.nav__logo-text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.nav__logo-title {
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 600;
  color: var(--bark);
  letter-spacing: -0.01em;
  line-height: 1;
}

.nav__logo-subtitle {
  font-size: 0.5rem;
  color: var(--twig);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  line-height: 1;
  opacity: 1;
  margin-top: 0.1rem;
}

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

.nav__links {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  list-style: none;
}

.nav__link {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-secondary);
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-md);
  cursor: pointer;
  text-decoration: none;
  position: relative;
  transition:
    color var(--duration-fast) var(--ease-out),
    background-color var(--duration-fast) var(--ease-out);
}

/* Hand-drawn style underline - only for direct links, not dropdown triggers */
.nav__link:not(.nav__dropdown-trigger)::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transform: translateX(-50%);
  transition: width var(--duration-normal) var(--ease-bounce);
}

.nav__link:hover {
  color: var(--primary);
}

.nav__link:not(.nav__dropdown-trigger):hover::after {
  width: calc(100% - var(--space-md));
}

.nav__link--active {
  color: var(--primary);
}

.nav__link--active:not(.nav__dropdown-trigger)::after {
  width: calc(100% - var(--space-md));
}

/* Dropdown */
.nav__item {
  position: relative;
}

.nav__dropdown-trigger {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Dropdown arrow - separate from underline */
.nav__dropdown-trigger::after {
  content: '';
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  opacity: 0.5;
  transition: transform var(--duration-normal) var(--ease-bounce);
  position: static;
  background: none;
  border-radius: 0;
}

.nav__item:hover .nav__dropdown-trigger::after {
  transform: rotate(180deg);
}

.nav__dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 200px;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: var(--space-xs);
  opacity: 0;
  visibility: hidden;
  transition: all var(--duration-normal) var(--ease-organic);
  border: 1px solid var(--border-color);
}

.nav__item:hover .nav__dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.nav__dropdown-link {
  display: block;
  padding: var(--space-sm) var(--space-md);
  font-size: 0.9375rem;
  color: var(--text-secondary);
  border-radius: var(--radius-md);
  transition: all var(--duration-fast) var(--ease-out);
}

.nav__dropdown-link:hover {
  background: var(--warm-sand);
  color: var(--primary);
  transform: translateX(4px);
}

.nav__dropdown-link--active {
  background: var(--warm-sand);
  color: var(--primary);
}

/* CTA Button */
.nav__cta {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--white);
  background: var(--primary);
  padding: var(--space-sm) var(--space-lg);
  border-radius: var(--radius-full);
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(196, 112, 75, 0.25);
  transition:
    transform var(--duration-normal) var(--ease-bounce),
    box-shadow var(--duration-normal) var(--ease-out),
    background-color var(--duration-fast) var(--ease-out);
}

.nav__cta:hover {
  background: var(--primary-dark);
  color: var(--white);
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 6px 20px rgba(196, 112, 75, 0.35);
}

/* Mobile Toggle */
.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-xs);
}

.nav__toggle span {
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all var(--duration-fast) var(--ease-out);
}

/* ---------- Hero Section ---------- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 100px;
  position: relative;
  overflow: hidden;
  /* Gradient mesh background */
  background:
    radial-gradient(ellipse at 15% 25%, rgba(232, 155, 138, 0.2) 0%, transparent 45%),
    radial-gradient(ellipse at 85% 20%, rgba(143, 166, 142, 0.18) 0%, transparent 45%),
    radial-gradient(ellipse at 50% 90%, rgba(230, 179, 71, 0.12) 0%, transparent 40%),
    radial-gradient(ellipse at 70% 60%, rgba(196, 112, 75, 0.08) 0%, transparent 35%),
    linear-gradient(168deg, var(--cream) 0%, var(--warm-sand) 50%, var(--linen) 100%);
}

/* Decorative organic shapes */
.hero::before {
  content: '';
  position: absolute;
  top: -10%;
  right: -5%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(196, 112, 75, 0.08) 0%, transparent 70%);
  border-radius: var(--radius-blob);
  animation: gentle-float 8s ease-in-out infinite;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -15%;
  left: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(143, 166, 142, 0.1) 0%, transparent 70%);
  border-radius: 40% 60% 55% 45% / 55% 40% 60% 45%;
  animation: gentle-float 10s ease-in-out infinite reverse;
}

@keyframes gentle-float {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-20px) rotate(2deg);
  }
}

.hero__bg,
.hero__blobs,
.hero__blob {
  display: none;
}

.hero__content {
  max-width: 680px;
  padding: var(--space-2xl) 0;
  position: relative;
  z-index: 1;
}

.hero__tagline {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: var(--space-md);
  padding: var(--space-xs) var(--space-md);
  background: rgba(196, 112, 75, 0.1);
  border-radius: var(--radius-full);
}

.hero__title {
  margin-bottom: var(--space-lg);
  color: var(--text-primary);
  font-weight: 600;
}

.hero__title em {
  font-style: italic;
  color: var(--primary);
  position: relative;
}

/* Hand-drawn underline flourish */
.hero__title em::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 8px;
  background: url("data:image/svg+xml,%3Csvg width='100' height='8' viewBox='0 0 100 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 4C10 2 20 6 30 4C40 2 50 6 60 4C70 2 80 6 90 4C95 3 100 4 100 4' stroke='%23E6B347' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center;
  background-size: 100% 100%;
  opacity: 0.7;
}

.hero__subtitle {
  font-size: 1.1875rem;
  color: var(--text-secondary);
  margin-bottom: var(--space-md);
  max-width: 540px;
  line-height: 1.75;
}

.hero__actions {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
  margin-top: var(--space-xl);
}

.hero__scroll {
  display: none;
}

/* Wave divider at bottom of hero */
.hero__wave {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 25px;
  overflow: hidden;
  z-index: 2;
}

.hero__wave svg {
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 100%;
}


/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  padding: 0.875rem 1.75rem;
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  text-decoration: none;
  position: relative;
  transition:
    transform var(--duration-normal) var(--ease-bounce),
    box-shadow var(--duration-normal) var(--ease-out),
    background-color var(--duration-fast) var(--ease-out);
}

.btn--primary {
  background: var(--primary);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(196, 112, 75, 0.25);
}

.btn--primary:hover {
  background: var(--primary-dark);
  color: var(--white);
  transform: translateY(-2px) scale(1.02);
  box-shadow:
    0 8px 25px rgba(196, 112, 75, 0.3),
    var(--shadow-glow);
}

.btn--primary:active {
  transform: translateY(0) scale(0.98);
  box-shadow: 0 2px 8px rgba(196, 112, 75, 0.2);
}

.btn--secondary {
  background: var(--white);
  color: var(--text-primary);
  box-shadow: inset 0 0 0 2px var(--border-color-strong);
}

.btn--secondary:hover {
  background: var(--warm-sand);
  box-shadow: inset 0 0 0 2px var(--primary-light);
  color: var(--primary-dark);
  transform: translateY(-2px);
}

.btn--secondary:active {
  transform: translateY(0);
}

.btn--light {
  background: var(--white);
  color: var(--text-primary);
  box-shadow: var(--shadow-sm);
}

.btn--light:hover {
  background: var(--cream);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn--accent {
  background: var(--accent);
  color: var(--bark);
  box-shadow: 0 4px 14px rgba(230, 179, 71, 0.3);
}

.btn--accent:hover {
  background: var(--accent-light);
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 25px rgba(230, 179, 71, 0.35);
}

.btn--large {
  padding: 1.125rem 2.25rem;
  font-size: 1rem;
}

/* ---------- Page Header ---------- */
.page-header {
  padding: calc(var(--space-3xl) + 80px) 0 var(--space-2xl);
  position: relative;
  overflow: hidden;
  /* Warm gradient with organic feel */
  background:
    radial-gradient(ellipse at 20% 30%, rgba(232, 155, 138, 0.35) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 70%, rgba(230, 179, 71, 0.2) 0%, transparent 50%),
    linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 50%, #8A4A32 100%);
}

/* Decorative organic shapes in header */
.page-header::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 70%);
  border-radius: var(--radius-blob);
}

.page-header::after {
  content: '';
  position: absolute;
  bottom: -50%;
  left: -5%;
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(230, 179, 71, 0.15) 0%, transparent 70%);
  border-radius: 45% 55% 60% 40% / 50% 45% 55% 50%;
}

.page-header__bg,
.page-header__blob {
  display: none;
}

.page-header__content {
  max-width: 650px;
  position: relative;
  z-index: 1;
}

.page-header__title {
  color: var(--white);
  margin-bottom: var(--space-sm);
  font-weight: 600;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.page-header__subtitle {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.125rem;
  line-height: 1.7;
}

/* Wave divider at bottom of page header */
.page-header__wave {
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 60px;
  overflow: hidden;
}

.page-header__wave svg {
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 100%;
}

.page-header__wave path {
  fill: var(--cream);
}

/* ---------- Section Headers ---------- */
.section-header {
  margin-bottom: var(--space-xl);
  text-align: center;
}

.section-header__label {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: var(--space-md);
  padding: 0.5rem 1.25rem;
  background: linear-gradient(135deg, rgba(196, 112, 75, 0.12) 0%, rgba(230, 179, 71, 0.08) 100%);
  border-radius: var(--radius-full);
  border: 1px solid rgba(196, 112, 75, 0.15);
}

.section-header__title {
  margin-bottom: var(--space-md);
  position: relative;
  text-align: center;
}

.section-header__subtitle {
  color: var(--text-secondary);
  font-size: 1.0625rem;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.75;
  text-align: center;
}

/* Ensure all p tags inside section-header are centered */
.section-header p {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

/* ---------- Cards ---------- */
.card {
  background: var(--white);
  border-radius: var(--radius-organic);
  padding: var(--space-lg);
  border: 1px solid var(--border-color);
  position: relative;
  transition:
    transform var(--duration-slow) var(--ease-organic),
    box-shadow var(--duration-slow) var(--ease-out),
    border-color var(--duration-normal) var(--ease-out);
}

.card:hover {
  border-color: var(--primary-light);
  box-shadow: var(--shadow-lifted);
  transform: translateY(-8px);
}

/* Decorative corner flourish */
.card::after {
  content: '';
  position: absolute;
  bottom: 12px;
  right: 12px;
  width: 30px;
  height: 30px;
  background: url("data:image/svg+xml,%3Csvg width='30' height='30' viewBox='0 0 30 30' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M25 5C20 10 15 15 5 25' stroke='%23E6B347' stroke-width='1.5' stroke-linecap='round' opacity='0.3'/%3E%3Cpath d='M25 12C22 15 18 18 12 25' stroke='%23E6B347' stroke-width='1.5' stroke-linecap='round' opacity='0.2'/%3E%3C/svg%3E") no-repeat center;
  opacity: 0;
  transition: opacity var(--duration-normal) var(--ease-out);
}

.card:hover::after {
  opacity: 1;
}

.card__icon {
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, rgba(196, 112, 75, 0.1) 0%, rgba(143, 166, 142, 0.1) 100%);
  border-radius: var(--radius-blob);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-md);
  color: var(--primary);
  transition: transform var(--duration-normal) var(--ease-bounce);
}

.card:hover .card__icon {
  transform: scale(1.1) rotate(-5deg);
}

.card__icon svg {
  width: 24px;
  height: 24px;
}

.card__title {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: var(--space-sm);
  color: var(--text-primary);
}

.card__text {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  line-height: 1.7;
}

/* ---------- Features Grid ---------- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-lg);
}

/* ---------- Mission Section ---------- */
.mission {
  position: relative;
  overflow: hidden;
  margin-top: -1px;
  color: var(--white);
  /* Warm dark gradient */
  background:
    radial-gradient(ellipse at 20% 80%, rgba(196, 112, 75, 0.2) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(143, 166, 142, 0.15) 0%, transparent 50%),
    linear-gradient(160deg, var(--bark) 0%, #3A3028 50%, #2D2620 100%);
}

/* Decorative elements */
.mission::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(230, 179, 71, 0.08) 0%, transparent 70%);
  border-radius: var(--radius-blob);
}

.mission__bg {
  display: none;
}

.mission__content {
  max-width: 700px;
  position: relative;
  z-index: 1;
}

.mission__text h2 {
  color: var(--white);
  margin-bottom: var(--space-lg);
}

.mission__text p {
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.8;
}

.mission__values {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-top: var(--space-lg);
}

.mission__values li {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: var(--space-xs) var(--space-md);
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 500;
  transition: all var(--duration-normal) var(--ease-out);
}

.mission__values li:hover {
  background: rgba(230, 179, 71, 0.2);
  border-color: rgba(230, 179, 71, 0.3);
  transform: translateY(-2px);
}

.mission__visual {
  display: none;
}

.mission__nest,
.mission__nest-inner,
.mission__quote {
  display: none;
}

/* ---------- Founder Section ---------- */
.founder {
  background: var(--warm-sand);
  position: relative;
  overflow: hidden;
}

.founder::before {
  content: '';
  position: absolute;
  top: 10%;
  right: -5%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(196, 112, 75, 0.06) 0%, transparent 70%);
  border-radius: var(--radius-blob);
}

.founder__content {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: var(--space-2xl);
  align-items: center;
  position: relative;
  z-index: 1;
}

.founder__image-wrapper {
  position: relative;
}

.founder__image-shape {
  border-radius: var(--radius-blob);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transition: transform var(--duration-slow) var(--ease-organic);
}

.founder__image-wrapper:hover .founder__image-shape {
  transform: scale(1.02) rotate(-1deg);
}

.founder__image-shape img {
  width: 100%;
  display: block;
}

.founder__image-placeholder {
  border-radius: var(--radius-blob);
}

.founder__info h2 {
  margin-bottom: var(--space-sm);
}

.founder__role {
  font-size: 1rem;
  color: var(--primary);
  margin-bottom: var(--space-lg);
  font-weight: 600;
  display: inline-block;
  padding: var(--space-xs) var(--space-md);
  background: rgba(196, 112, 75, 0.1);
  border-radius: var(--radius-full);
}

.founder__story p {
  margin-bottom: var(--space-md);
  color: var(--text-secondary);
  line-height: 1.8;
}

/* ---------- Leadership ---------- */
.leadership-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: var(--space-lg);
}

.leader-card {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: var(--space-lg);
  background: var(--white);
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--border-color);
  transition:
    transform var(--duration-slow) var(--ease-organic),
    box-shadow var(--duration-slow) var(--ease-out),
    border-color var(--duration-normal) var(--ease-out);
}

.leader-card:hover {
  border-color: var(--primary-light);
  box-shadow: var(--shadow-lifted);
  transform: translateY(-6px);
}

.leader-card__image {
  aspect-ratio: 3/4;
  background: var(--warm-sand);
  overflow: hidden;
  position: relative;
}

.leader-card__image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 60%, rgba(74, 63, 53, 0.1) 100%);
  pointer-events: none;
}

.leader-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--duration-slow) var(--ease-organic);
}

.leader-card:hover .leader-card__image img {
  transform: scale(1.05);
}

.leader-card__placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
}

.leader-card__content {
  padding: var(--space-lg) var(--space-lg) var(--space-lg) 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.leader-card__title {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: var(--space-xs);
}

.leader-card__name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-sm);
}

.leader-card__bio {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  line-height: 1.7;
}

/* ---------- Gallery ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-md);
}

.gallery-item {
  position: relative;
  aspect-ratio: 4/3;
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition:
    transform var(--duration-slow) var(--ease-organic),
    box-shadow var(--duration-slow) var(--ease-out);
}

.gallery-item:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: var(--shadow-lg);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--duration-slow) var(--ease-organic);
}

.gallery-item:hover img {
  transform: scale(1.08);
}

/* Overlay effect */
.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(74, 63, 53, 0.4) 0%, transparent 50%);
  opacity: 0;
  transition: opacity var(--duration-normal) var(--ease-out);
}

.gallery-item:hover::after {
  opacity: 1;
}

/* ---------- Footer ---------- */
.footer {
  background: var(--bark);
  color: var(--white);
  padding: var(--space-2xl) 0 var(--space-lg);
  position: relative;
  overflow: hidden;
}

/* Wave divider at top */
.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 1200 60' xmlns='http://www.w3.org/2000/svg' preserveAspectRatio='none'%3E%3Cpath d='M0,60 C150,40 350,0 600,30 C850,60 1050,20 1200,40 L1200,0 L0,0 Z' fill='%23FDF8F3'/%3E%3C/svg%3E") no-repeat center top;
  background-size: 100% 100%;
}

/* Decorative nest illustration */
.footer::after {
  content: '';
  position: absolute;
  bottom: 20%;
  right: 5%;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(230, 179, 71, 0.06) 0%, transparent 70%);
  border-radius: var(--radius-blob);
  pointer-events: none;
}

.footer__content {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: var(--space-xl);
  margin-bottom: var(--space-2xl);
  padding-top: var(--space-xl);
  position: relative;
  z-index: 1;
}

.footer__brand {
  max-width: 300px;
}

.footer__logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  color: var(--white);
  text-decoration: none;
  margin-bottom: var(--space-md);
  transition: transform var(--duration-normal) var(--ease-organic);
}

.footer__logo:hover {
  color: var(--white);
  transform: scale(1.02);
}

.footer__logo img {
  border-radius: var(--radius-blob);
  width: 48px;
  height: 48px;
}

.footer__logo span {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
}

.footer__tagline {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-style: italic;
  color: var(--accent);
  margin-bottom: var(--space-sm);
  line-height: 1.5;
}

.footer__parent {
  color: var(--twig);
  font-size: 0.875rem;
}

.footer__links h4,
.footer__heading {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--space-md);
}

.footer__links ul {
  list-style: none;
}

.footer__links li {
  margin-bottom: var(--space-sm);
}

.footer__links a,
.footer__contact a {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.9375rem;
  transition:
    color var(--duration-fast) var(--ease-out),
    transform var(--duration-fast) var(--ease-out);
  display: inline-block;
}

.footer__links a:hover,
.footer__contact a:hover {
  color: var(--accent);
  transform: translateX(4px);
}

.footer__contact h4 {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--space-md);
}

.footer__contact p {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.9375rem;
  margin-bottom: var(--space-sm);
  line-height: 1.6;
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--space-lg);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.875rem;
  color: var(--twig);
  position: relative;
  z-index: 1;
}

.footer__legal {
  display: flex;
  gap: var(--space-lg);
}

.footer__legal a {
  color: var(--twig);
  transition: color var(--duration-fast) var(--ease-out);
}

.footer__legal a:hover {
  color: var(--accent);
}

.footer__admin-link {
  opacity: 0.3 !important;
  font-size: 0.75rem !important;
}

/* ---------- FAQ Accordion ---------- */
.faq-list {
  max-width: 720px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--border-color);
  transition: border-color var(--duration-normal) var(--ease-out);
}

.faq-item:hover {
  border-bottom-color: var(--primary-light);
}

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-lg) 0;
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--text-primary);
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  transition: color var(--duration-normal) var(--ease-out);
}

.faq-question:hover {
  color: var(--primary);
}

.faq-question svg {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  color: var(--primary);
  transition: transform var(--duration-normal) var(--ease-bounce);
}

.faq-item.active .faq-question svg {
  transform: rotate(45deg);
}

.faq-item.active .faq-question {
  color: var(--primary);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--duration-slow) var(--ease-organic);
}

.faq-item.active .faq-answer {
  max-height: 600px;
}

.faq-answer-inner {
  padding-bottom: var(--space-lg);
  padding-left: var(--space-md);
  color: var(--text-secondary);
  line-height: 1.8;
  border-left: 3px solid var(--primary-light);
}

/* ---------- Forms ---------- */
.form-group {
  margin-bottom: var(--space-lg);
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-xs);
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 0.875rem 1.125rem;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text-primary);
  background: var(--white);
  border: 2px solid var(--border-color-strong);
  border-radius: var(--radius-lg);
  transition:
    border-color var(--duration-normal) var(--ease-out),
    box-shadow var(--duration-normal) var(--ease-out),
    background-color var(--duration-normal) var(--ease-out);
}

.form-input:hover,
.form-textarea:hover,
.form-select:hover {
  border-color: var(--primary-light);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(196, 112, 75, 0.12);
  background: var(--white);
}

.form-textarea {
  min-height: 150px;
  resize: vertical;
}

/* Placeholder styling */
.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--twig);
  opacity: 0.7;
}

/* ---------- CTA Sections ---------- */
.bg-dusk {
  background:
    radial-gradient(ellipse at 30% 50%, rgba(232, 155, 138, 0.15) 0%, transparent 50%),
    linear-gradient(135deg, var(--bark) 0%, #3A3028 100%);
  color: var(--white);
}

.bg-dawn {
  background:
    radial-gradient(ellipse at 80% 30%, rgba(196, 112, 75, 0.08) 0%, transparent 50%),
    var(--warm-sand);
}

.bg-golden {
  background:
    radial-gradient(ellipse at 20% 80%, rgba(255, 255, 255, 0.15) 0%, transparent 50%),
    linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--white);
}

.bg-cream {
  background: var(--cream);
}

/* ---------- Animations ---------- */
/* Gentle bloom effect - like a flower opening */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px) scale(0.98);
  transition:
    opacity var(--duration-gentle) var(--ease-organic),
    transform var(--duration-gentle) var(--ease-organic);
}

.animate-on-scroll.visible,
.animate-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Natural stagger delays */
.delay-1 { transition-delay: 80ms; }
.delay-2 { transition-delay: 160ms; }
.delay-3 { transition-delay: 240ms; }
.delay-4 { transition-delay: 320ms; }
.delay-5 { transition-delay: 400ms; }

/* Respect reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
  .animate-on-scroll {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .btn:hover,
  .card:hover,
  .nav__cta:hover {
    transform: none;
  }

  .hero::before,
  .hero::after {
    animation: none;
  }
}

/* ---------- Service Cards (About page) ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-lg);
}

.service-card {
  background: var(--white);
  border-radius: var(--radius-organic);
  padding: var(--space-lg);
  border: 1px solid var(--border-color);
  position: relative;
  overflow: hidden;
  transition:
    transform var(--duration-slow) var(--ease-organic),
    box-shadow var(--duration-slow) var(--ease-out),
    border-color var(--duration-normal) var(--ease-out);
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-light);
}

/* Decorative number background */
.service-card::before {
  content: attr(data-number);
  position: absolute;
  top: -10px;
  right: -5px;
  font-family: var(--font-display);
  font-size: 5rem;
  font-weight: 700;
  color: var(--primary);
  opacity: 0.05;
  line-height: 1;
  pointer-events: none;
}

.service-card__number {
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: var(--space-sm);
  display: inline-block;
  padding: 2px var(--space-sm);
  background: rgba(196, 112, 75, 0.1);
  border-radius: var(--radius-full);
}

.service-card__title {
  font-family: var(--font-display);
  font-size: 1.1875rem;
  font-weight: 600;
  margin-bottom: var(--space-sm);
  color: var(--text-primary);
}

.service-card__text {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  line-height: 1.7;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .mission__content {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .founder__content {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .leader-card {
    grid-template-columns: 1fr;
  }

  .leader-card__image {
    aspect-ratio: 16/10;
  }

  .leader-card__content {
    padding: var(--space-lg);
  }

  .footer__content {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
  }

  .footer__brand {
    grid-column: span 2;
    max-width: none;
  }
}

@media (max-width: 768px) {
  .nav__logo {
    gap: var(--space-sm);
  }

  .nav__logo-img {
    width: 70px;
    height: 70px;
    box-shadow:
      0 2px 12px rgba(74, 63, 53, 0.12),
      0 0 0 2px rgba(255, 255, 255, 0.8),
      0 0 0 4px rgba(193, 154, 107, 0.15);
  }

  .nav__logo-title {
    font-size: 1.5rem;
  }

  .nav__logo-subtitle {
    font-size: 0.4rem;
    letter-spacing: 0.12em;
  }

  .nav__menu {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    max-width: 280px;
    height: 100vh;
    background: var(--cream);
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding: var(--space-xl) var(--space-md) var(--space-lg);
    gap: var(--space-sm);
    transform: translateX(100%);
    transition: transform var(--duration-slow) var(--ease-organic);
    box-shadow: var(--shadow-xl);
    border-left: 1px solid var(--border-color);
  }

  .nav__menu.active,
  .nav__menu.nav__menu--open {
    transform: translateX(0);
  }

  .nav__toggle {
    display: flex;
    z-index: 1001;
  }

  .nav__links {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin-top: var(--space-sm);
  }

  .nav__link {
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-xs);
  }

  .nav__link::after {
    display: none;
  }

  .nav__link:hover,
  .nav__link--active {
    background: var(--warm-sand);
  }

  .nav__dropdown {
    position: static;
    transform: none;
    box-shadow: none;
    border: none;
    background: var(--warm-sand);
    border-radius: var(--radius-lg);
    margin: var(--space-xs) 0;
    opacity: 1;
    visibility: visible;
    max-height: 0;
    overflow: hidden;
    padding: 0;
  }

  .nav__item.active .nav__dropdown {
    max-height: 400px;
    padding: var(--space-sm);
  }

  .nav__dropdown-link:hover {
    transform: none;
    background: var(--linen);
  }

  .nav__cta {
    margin-top: var(--space-lg);
    text-align: center;
  }

  .hero {
    min-height: auto;
    padding-top: 110px;
    padding-bottom: var(--space-xl);
  }

  .hero::before,
  .hero::after {
    display: none;
  }

  .hero__content {
    padding: var(--space-xl) 0;
  }

  .hero__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero__actions .btn {
    width: 100%;
    justify-content: center;
  }

  .page-header {
    padding-bottom: var(--space-xl);
  }

  .page-header::before,
  .page-header::after {
    display: none;
  }

  .leadership-grid {
    grid-template-columns: 1fr;
  }

  .footer::before {
    height: 40px;
  }

  .footer__content {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .footer__brand {
    grid-column: span 1;
  }

  .footer__bottom {
    flex-direction: column;
    gap: var(--space-md);
    text-align: center;
  }
}

@media (max-width: 480px) {
  :root {
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
  }

  .container {
    padding: 0 1rem;
  }
}

/* ---------- Utilities ---------- */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-0 { margin-bottom: 0; }
.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }

.mt-0 { margin-top: 0; }
.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }

/* ---------- Missing Color Variables (Legacy Support) ---------- */
:root {
  --rich-purple: var(--bark);
  --sunset-light: rgba(230, 179, 71, 0.15);
  --text-light: rgba(255, 255, 255, 0.9);
}

/* ---------- Rules Grid & Cards ---------- */
.rules-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-lg);
}

.rule-card {
  background: var(--white);
  border-radius: var(--radius-organic);
  padding: var(--space-xl);
  border: 1px solid var(--border-color);
  text-align: center;
  position: relative;
  transition:
    transform var(--duration-slow) var(--ease-organic),
    box-shadow var(--duration-slow) var(--ease-out),
    border-color var(--duration-normal) var(--ease-out);
}

.rule-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lifted);
  border-color: var(--primary-light);
}

.rule-card__icon {
  font-size: 2.5rem;
  margin-bottom: var(--space-md);
  display: block;
}

.rule-card__title {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: var(--space-sm);
  color: var(--text-primary);
}

.rule-card__text {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  line-height: 1.7;
}

/* ---------- Centered Section Headers ---------- */
.section-header--centered {
  text-align: center;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.section-header--centered .section-header__subtitle {
  margin-left: auto;
  margin-right: auto;
}

/* ---------- House Crew Grid (Responsive) ---------- */
@media (max-width: 768px) {
  .house-crew-grid {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 900px) and (min-width: 769px) {
  .house-crew-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

/* ---------- Two Column Grid (Responsive) ---------- */
.two-col-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: start;
}

@media (max-width: 768px) {
  .two-col-grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .two-col-grid--reverse-mobile > :first-child {
    order: 2;
  }

  .two-col-grid--reverse-mobile > :last-child {
    order: 1;
  }
}

/* ---------- Gallery Polish ---------- */
.gallery-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition:
    transform var(--duration-slow) var(--ease-organic),
    box-shadow var(--duration-slow) var(--ease-out);
}

.gallery-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lifted);
}

.gallery-card__image {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}

.gallery-card__content {
  padding: var(--space-md);
}

.gallery-card__title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: var(--space-xs);
  color: var(--text-primary);
}

.gallery-card__caption {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ---------- Enhanced Section Styling ---------- */
.section--accent {
  background: var(--primary);
  color: var(--white);
}

.section--accent .section-header__label {
  background: rgba(255, 255, 255, 0.2);
  color: var(--white);
}

.section--accent .section-header__title {
  color: var(--white);
}

.section--accent .section-header__subtitle {
  color: rgba(255, 255, 255, 0.85);
}

/* ---------- Quote Block ---------- */
.quote-block {
  position: relative;
  padding: var(--space-xl);
  background: var(--warm-sand);
  border-radius: var(--radius-lg);
  border-left: 4px solid var(--primary);
}

.quote-block::before {
  content: '"';
  position: absolute;
  top: var(--space-sm);
  left: var(--space-md);
  font-family: var(--font-display);
  font-size: 4rem;
  color: var(--primary);
  opacity: 0.2;
  line-height: 1;
}

.quote-block__text {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-style: italic;
  color: var(--text-primary);
  margin-bottom: var(--space-md);
}

.quote-block__author {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--primary);
}

/* ---------- Improved Focus States ---------- */
a:focus-visible,
button:focus-visible,
.btn:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* ---------- Better Image Handling ---------- */
.img-rounded {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.img-circle {
  border-radius: 50%;
  box-shadow: var(--shadow-lifted);
}

/* ---------- Sticky CTA Bar (Mobile) ---------- */
@media (max-width: 768px) {
  .mobile-cta-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: var(--space-md);
    background: var(--white);
    border-top: 1px solid var(--border-color);
    box-shadow: 0 -4px 20px rgba(74, 63, 53, 0.1);
    z-index: 999;
    display: flex;
    gap: var(--space-sm);
  }

  .mobile-cta-bar .btn {
    flex: 1;
  }

  /* Fix span 2 on mobile */
  .service-card[style*="grid-column: span 2"] {
    grid-column: span 1 !important;
  }

  /* Better section header centering on mobile */
  .section-header {
    text-align: center;
  }

  .section-header__subtitle {
    margin-left: auto;
    margin-right: auto;
  }
}

/* ---------- Gallery Photo Grid Improvements ---------- */
.gallery-photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-md);
}

.gallery-photo-grid--small {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

/* ---------- Certificate Grid ---------- */
.certificate-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--space-md);
}

.certificate-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition:
    transform var(--duration-slow) var(--ease-organic),
    box-shadow var(--duration-slow) var(--ease-out);
}

.certificate-card:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: var(--shadow-lifted);
}

.certificate-card img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
}

.certificate-card__title {
  padding: var(--space-sm);
  font-size: 0.8125rem;
  color: var(--text-secondary);
  text-align: center;
  line-height: 1.4;
}

/* ---------- Form Row (Side-by-side fields) ---------- */
.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}

@media (max-width: 480px) {
  .form__row {
    grid-template-columns: 1fr;
  }
}

/* ---------- Enhanced Gallery Photo Cards ---------- */
.gallery-card {
  position: relative;
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition:
    transform var(--duration-slow) var(--ease-organic),
    box-shadow var(--duration-slow) var(--ease-out);
}

.gallery-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: var(--shadow-lifted);
}

.gallery-card img {
  width: 100%;
  transition: transform var(--duration-slow) var(--ease-organic);
}

.gallery-card:hover img {
  transform: scale(1.05);
}

/* Subtle overlay on hover */
.gallery-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(74, 63, 53, 0.1) 0%,
    transparent 50%
  );
  opacity: 0;
  transition: opacity var(--duration-normal) var(--ease-out);
  pointer-events: none;
}

.gallery-card:hover::after {
  opacity: 1;
}

/* ---------- Visual Rhythm Helpers ---------- */
.bg-cream { background: var(--cream); }
.bg-sand { background: var(--warm-sand); }
.bg-linen { background: var(--linen); }

.bg-gradient-warm {
  background: linear-gradient(
    168deg,
    var(--cream) 0%,
    var(--warm-sand) 50%,
    var(--linen) 100%
  );
}

.bg-gradient-soft {
  background: linear-gradient(
    180deg,
    var(--cream) 0%,
    var(--warm-sand) 100%
  );
}

/* ---------- Decorative Divider ---------- */
.section-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  padding: var(--space-lg) 0;
}

.section-divider::before,
.section-divider::after {
  content: '';
  height: 1px;
  width: 60px;
  background: linear-gradient(90deg, transparent, var(--clay), transparent);
}

.section-divider__icon {
  color: var(--primary);
  opacity: 0.5;
}

/* ---------- Site Photo Captions ---------- */
.site-photo-figure {
  margin: 0;
  display: inline-block;
  position: relative;
}

.site-photo-caption {
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--text-secondary);
  text-align: center;
  padding: var(--space-sm) var(--space-md);
  background: rgba(255, 255, 255, 0.85);
  font-style: italic;
  line-height: 1.4;
  max-width: 100%;
}

/* Caption in card layouts */
.photo-card .site-photo-caption,
.team-member__photo .site-photo-caption,
.gallery-item .site-photo-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(74, 63, 53, 0.9), rgba(74, 63, 53, 0.7));
  color: var(--white);
  font-style: normal;
  font-size: 0.8125rem;
  padding: var(--space-sm);
}

/* Caption in about/story sections */
.about-image .site-photo-caption,
.story-section .site-photo-caption,
.founder-section .site-photo-caption {
  background: var(--cream);
  border-top: 1px solid var(--clay);
}

/* Ensure figures work in grid layouts */
.photo-grid .site-photo-figure,
.gallery-grid .site-photo-figure {
  width: 100%;
}

.photo-grid .site-photo-figure img,
.gallery-grid .site-photo-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
