/* ============================================================================
   Harmony Constellations – Improved Styles
   Minimal, clean, sage + ivory palette with enhanced organization
   ============================================================================ */

/* ----------------------------------------------------------------------------
   1. CSS CUSTOM PROPERTIES
   ---------------------------------------------------------------------------- */

:root {
  /* Colors - Base Palette */
  --bg: #f4f6f1;
  --surface: rgba(255, 255, 255, 0.78);
  --surface-2: rgba(255, 255, 255, 0.65);
  --border: rgba(28, 36, 30, 0.14);
  --ink: #1c241e;
  --muted: rgba(28, 36, 30, 0.70);
  
  /* Colors - Sage Scale */
  --sage-50: #eef5ee;
  --sage-100: #e6efe6;
  --sage-200: #cfdfcf;
  --sage-500: #6f8b73;
  
  /* Effects */
  --shadow: 0 18px 50px rgba(10, 15, 10, 0.10);
  --shadow-lg: 0 30px 70px rgba(0, 0, 0, 0.18);
  --focus: rgba(111, 139, 115, 0.55);
  
  /* Layout */
  --radius: 22px;
  --radius-sm: 14px;
  --radius-full: 999px;
  --max-width: 1280px; /* Increased from 1120px to give more room */
  
  /* Spacing Scale */
  --space-xs: 8px;
  --space-sm: 12px;
  --space-md: 18px;
  --space-lg: 26px;
  --space-xl: 44px;
  --space-2xl: 64px;
  
  /* Brand Sizing */
  --brand-size: 60px;
  --brand-size-mobile: 80px;
  --brand-radius: 16px;
  
  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.55s ease;
  
  /* Z-index Scale */
  --z-base: 1;
  --z-dropdown: 100;
  --z-sticky: 500;
  --z-fixed: 1000;
  --z-modal-backdrop: 9000;
  --z-modal: 9999;
  --z-tooltip: 10000;
  
  /* Header */
  --header-height: 80px;
  --header-height-mobile: 70px;
}

/* ----------------------------------------------------------------------------
   2. RESET & BASE STYLES
   ---------------------------------------------------------------------------- */

/* Fallback font with size-adjust to match Arima and prevent layout shift */
@font-face {
  font-family: 'Arima Fallback';
  src: local('Georgia'), local('Times New Roman');
  size-adjust: 105%;
  ascent-override: 95%;
  descent-override: 25%;
  line-gap-override: 0%;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Arima", "Arima Fallback", Georgia, serif;
  color: var(--ink);
  background:
    radial-gradient(1200px 800px at 15% 0%, var(--sage-100), transparent 60%),
    radial-gradient(1200px 800px at 90% 20%, rgba(184, 207, 184, 0.45), transparent 60%),
    var(--bg);
  background-attachment: fixed;
  line-height: 1.55;
  letter-spacing: 0.15px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-display: swap;
}

/* Links */
a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

/* Images */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Forms */
button,
input,
select,
textarea {
  font-family: inherit;
  font-size: 100%;
}

/* ----------------------------------------------------------------------------
   3. UTILITY CLASSES
   ---------------------------------------------------------------------------- */

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

.hidden {
  display: none !important;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.m0 {
  margin: 0;
}

.small {
  font-size: 14px;
  color: var(--muted);
}

.kicker {
  font-size: 13px;
  letter-spacing: 0.18px;
  text-transform: uppercase;
  font-weight: 600;
  color: rgba(28, 36, 30, 0.80);
}

.sep {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 16px auto;
  max-width: 600px;
}

/* ----------------------------------------------------------------------------
   4. LAYOUT COMPONENTS
   ---------------------------------------------------------------------------- */

.section {
  padding: 76px 0;
}

.section.tight {
  padding: 54px 0;
}

.grid {
  display: grid;
  gap: var(--space-sm);
}

.cards-2 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.cards-3 {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

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

/* ----------------------------------------------------------------------------
   5. HEADER & NAVIGATION
   ---------------------------------------------------------------------------- */

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(244, 246, 241, 0.70);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(28, 36, 30, 0.10);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  padding: 10px 0;
  position: relative;
  flex-wrap: nowrap; /* Prevent wrapping to keep everything on one line */
}

/* Add 1 inch gap between brand and nav */
.navbar .brand {
  margin-right: 40px; /* Reduced from 96px to save space */
  flex-shrink: 0; /* Don't shrink the brand */
}

/* Brand */
.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: unset;
  flex-shrink: 0;
}

.brand img {
  width: var(--brand-size);
  height: auto;
  border-radius: 0;
  flex: 0 0 auto;
}

/* Brand text can be direct children OR in a wrapper */
.brand > div,
.brand .brand-text {
  height: var(--brand-size); /* Match logo height exactly */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  text-align: left;
  gap: 3px; /* Reduced to fit within logo height */
}

.brand .title,
.brand > div > .title {
  font-size: calc(var(--brand-size) * 0.507); /* 0.39 * 1.3 = 0.507 (total 169% from original 0.30) */
  font-weight: 750;
  letter-spacing: 0.05px;
  line-height: 1.0;
  white-space: nowrap;
}

.brand .subtitle,
.brand > div > .subtitle {
  font-size: calc(var(--brand-size) * 0.304); /* 0.234 * 1.3 = 0.304 (total 169% from original 0.18) */
  color: var(--muted);
  line-height: 1.0;
  white-space: nowrap;
}

/* Navigation Links */
.navlinks {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: nowrap; /* Changed from wrap to nowrap */
  justify-content: center;
  flex: 1;
  margin-left: 0;
}

.navlinks a {
  font-size: 13px; /* Reduced from 14px */
  font-weight: 650;
  color: rgba(28, 36, 30, 0.86);
  padding: 8px 10px; /* Reduced vertical padding */
  border-radius: var(--radius-full);
  transition: background var(--transition-fast), color var(--transition-fast);
  white-space: nowrap;
}

.navlinks a:hover {
  background: rgba(207, 223, 207, 0.55);
  color: rgba(28, 36, 30, 0.96);
}

.navlinks a.active {
  background: rgba(207, 223, 207, 0.70);
  border: 1px solid rgba(28, 36, 30, 0.10);
  box-shadow: 0 10px 25px rgba(10, 15, 10, 0.06);
}

/* Nav CTA */
.nav-cta {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: unset;
  justify-content: flex-end;
  margin-left: 30px; /* Reduced spacing */
  flex-shrink: 0;
}

/* Make Book button 2x wider */
.nav-cta .btn {
  min-width: 140px; /* Slightly reduced to fit better */
  padding: 8px 24px; /* Adjusted padding */
  font-size: 14px;
  white-space: nowrap;
}

/* Mobile Menu */
.burger {
  display: none;
  padding: 11px 14px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.60);
  font-weight: 700;
  cursor: pointer;
  transition: background var(--transition-fast);
}

.burger:hover {
  background: rgba(255, 255, 255, 0.80);
}

.burger:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.mobile {
  display: none;
  border-top: 1px solid rgba(28, 36, 30, 0.10);
  padding: var(--space-sm) 0 14px;
}

.mobile.open {
  display: block;
}

.mobile a {
  display: block;
  padding: 10px var(--space-xs);
  border-radius: var(--space-sm);
  color: rgba(28, 36, 30, 0.86);
  font-weight: 650;
  transition: background var(--transition-fast);
}

.mobile a:hover {
  background: rgba(207, 223, 207, 0.55);
}

.mobile .mobile-book-link {
  margin-top: var(--space-xs);
  text-align: center;
  padding: var(--space-sm) 10px;
  border-radius: var(--radius-full);
  background: rgba(207, 223, 207, 0.70);
  border: 1px solid rgba(111, 139, 115, 0.22);
  font-weight: 850;
}

.nav-cta {
  display: none;
  padding: var(--space-xs) 0 0;
}

.mobile-book {
  width: 52%;
  max-width: 240px;
  margin: 0 auto;
  font-weight: 800;
  display: block; /* Ensure margin auto works */
}

/* ----------------------------------------------------------------------------
   6. BUTTONS
   ---------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 11px 14px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.60);
  box-shadow: 0 12px 30px rgba(10, 15, 10, 0.08);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: transform var(--transition-fast), 
              background var(--transition-fast), 
              border-color var(--transition-fast);
  user-select: none;
}

.btn:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.75);
  border-color: rgba(28, 36, 30, 0.18);
}

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

.btn:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.btn-primary {
  background: rgba(255, 255, 255, 0.50);
  border-color: rgba(111, 139, 115, 0.25);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.50);
  border-color: rgba(111, 139, 115, 0.25);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.50);
  border-color: rgba(111, 139, 115, 0.25);
  color: var(--ink);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.65);
}

/* ----------------------------------------------------------------------------
   7. CARDS & FEATURES
   ---------------------------------------------------------------------------- */

.card {
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 60px rgba(10, 15, 10, 0.12);
}

.card.pad {
  padding: var(--space-md);
}

.feature {
  border-radius: var(--radius);
  background: var(--surface-2);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  padding: var(--space-md);
}

.feature .top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.tag {
  font-size: 12px;
  font-weight: 800;
  color: rgba(28, 36, 30, 0.72);
  padding: var(--space-xs) 10px;
  border-radius: var(--radius-full);
  background: rgba(207, 223, 207, 0.55);
  border: 1px solid rgba(28, 36, 30, 0.10);
}

.bullets {
  margin: var(--space-sm) 0 0;
  padding-left: var(--space-md);
  color: var(--muted);
  font-size: 14px;
}

.bullets li {
  margin: 6px 0;
}

/* ----------------------------------------------------------------------------
   8. HERO SECTIONS
   ---------------------------------------------------------------------------- */

.hero {
  position: relative;
  padding: 54px 0 44px;
}

.hero-banner {
  color: rgba(255, 255, 255, 0.92);
  padding: 70px 0 64px;
  background:
    linear-gradient(90deg, rgba(16, 18, 16, 0.72) 0%, rgba(16, 18, 16, 0.56) 35%, rgba(16, 18, 16, 0.34) 70%, rgba(16, 18, 16, 0.40) 100%),
    linear-gradient(180deg, rgba(16, 18, 16, 0.28) 0%, rgba(16, 18, 16, 0.55) 65%, rgba(244, 246, 241, 0.95) 100%),
    url("/assets/images/family-banner.jpg");
  background-size: cover;
  background-position: center;
  border-bottom: 1px solid rgba(28, 36, 30, 0.08);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: var(--space-lg);
  align-items: center;
}

.hero-copy .kicker {
  display: inline-block;
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
  color: rgba(255, 255, 255, 0.90);
  font-size: 13px;
  text-transform: none;
}

.hero-copy {
  text-align: center;
}

.hero-copy h1 {
  margin: 14px auto var(--space-sm);
  font-size: clamp(2.1rem, 4.4vw, 3.4rem);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: 0.2px;
  text-align: center;
}

.hero-copy p {
  margin: 0 auto;
  color: rgba(255, 255, 255, 0.86);
  font-size: 16px;
  max-width: 62ch;
  text-align: center;
}

.hero-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
  justify-content: center;
}

.hero-meta {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
  margin-top: 16px;
  justify-content: center;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: 10px var(--space-sm);
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
  color: rgba(255, 255, 255, 0.90);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s ease;
}

/* Hover effect for clickable pills (links) */
a.pill {
  cursor: pointer;
}

a.pill:hover {
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.35);
  transform: translateY(-2px);
}

.hero-media {
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  position: relative;
  max-width: fit-content;
  margin: 0 auto;
}

.hero-media img {
  width: auto;
  max-width: 100%;
  height: 520px;
  object-fit: contain;
  object-position: center;
  display: block;
}

.hero-badge {
  position: absolute;
  left: 14px;
  bottom: 14px;
  padding: 10px var(--space-sm);
  border-radius: var(--radius-full);
  background: rgba(16, 18, 16, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: rgba(255, 255, 255, 0.92);
  font-weight: 700;
  font-size: 13px;
}

/* Page Hero */
.page-hero {
  padding: 54px 0 30px;
}

.page-wrap h1 {
  margin: var(--space-sm) 0 6px;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  line-height: 1.15;
}

/* ----------------------------------------------------------------------------
   9. BAND / CALLOUT
   ---------------------------------------------------------------------------- */

.band {
  border-radius: var(--radius);
  border: 1px solid rgba(111, 139, 115, 0.20);
  background: linear-gradient(135deg, rgba(111, 139, 115, 0.12), rgba(255, 255, 255, 0.72));
  box-shadow: var(--shadow);
  padding: var(--space-md);
}

.band-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--space-md);
  align-items: start;
}

/* ----------------------------------------------------------------------------
   10. MEDIA BLOCKS
   ---------------------------------------------------------------------------- */

.media {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  background: rgba(255, 255, 255, 0.55);
  min-height: 380px;
}

.media.soft {
  background: rgba(230, 239, 230, 0.55);
}

.media img {
  width: 100%;
  height: 100%;
  min-height: 380px;
  object-fit: cover;
}

/* ----------------------------------------------------------------------------
   11. FORMS
   ---------------------------------------------------------------------------- */

.input {
  width: 100%;
  padding: var(--space-sm);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(28, 36, 30, 0.16);
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  font-family: inherit;
  transition: border-color var(--transition-fast), outline var(--transition-fast);
}

.input:focus {
  outline: 3px solid var(--focus);
  border-color: rgba(111, 139, 115, 0.25);
}

.form-row {
  display: flex;
  gap: 10px;
}

.checkbox {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-top: 10px;
  font-size: 13px;
  color: rgba(28, 36, 30, 0.78);
}

.checkbox input {
  margin-top: 3px;
}

.notice {
  margin-top: 10px;
  padding: 10px var(--space-sm);
  border-radius: var(--radius-sm);
  background: rgba(207, 223, 207, 0.55);
  border: 1px solid rgba(28, 36, 30, 0.10);
  color: rgba(28, 36, 30, 0.85);
  font-size: 13px;
  font-weight: 650;
}

/* ----------------------------------------------------------------------------
   12. TESTIMONIALS
   ---------------------------------------------------------------------------- */

.testimonials .quote {
  border-radius: var(--space-md);
  border: 1px solid rgba(28, 36, 30, 0.12);
  background: rgba(255, 255, 255, 0.70);
  padding: 14px;
  margin-top: 14px;
}

.testimonials blockquote {
  margin: 0;
  color: rgba(28, 36, 30, 0.80);
  font-size: 15px;
}

.testimonials .who {
  margin-top: var(--space-xs);
  font-size: 13px;
  color: rgba(28, 36, 30, 0.65);
  font-weight: 700;
}

.controls {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
}

/* ----------------------------------------------------------------------------
   13. FOOTER
   ---------------------------------------------------------------------------- */

.footer {
  padding: var(--space-xl) 0;
  border-top: 1px solid rgba(28, 36, 30, 0.10);
  background: rgba(244, 246, 241, 0.70);
  backdrop-filter: blur(10px);
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  align-items: flex-start;
}

.footer-links {
  display: grid;
  gap: var(--space-xs);
  color: rgba(28, 36, 30, 0.78);
  font-weight: 650;
}

.footer-links a {
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--sage-500);
}

/* ----------------------------------------------------------------------------
   14. ANIMATIONS
   ---------------------------------------------------------------------------- */

/* Reveal on scroll */
.reveal {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: no-preference) {
  .js .reveal {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity var(--transition-slow), transform var(--transition-slow);
  }

  .js .reveal.in {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ----------------------------------------------------------------------------
   15. RESPONSIVE DESIGN
   ---------------------------------------------------------------------------- */

/* Medium screens - adjust if header starts to wrap */
@media (max-width: 1200px) {
  .navbar .brand {
    margin-right: 20px;
  }

  .nav-cta {
    margin-left: 20px;
  }

  .navlinks a {
    font-size: 12px;
    padding: 8px;
  }

  .nav-cta .btn {
    min-width: 120px;
    padding: 8px 20px;
    font-size: 13px;
  }
}

@media (max-width: 980px) {
  /* Header adjustments */
  .nav-cta .desktop-book {
    display: none;
  }

  /* Right-align Book + Menu on mobile header */
  .nav-cta {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
  }

  .brand img {
    width: var(--brand-size-mobile);
    height: auto;
  }

  .brand > div,
  .brand .brand-text {
    height: var(--brand-size-mobile);
    max-width: calc(100vw - var(--brand-size-mobile) - 120px); /* Prevent overflow */
    gap: 2px; /* Minimal gap to fit within logo height */
  }

  .brand .title,
  .brand > div > .title {
    font-size: calc(var(--brand-size-mobile) * 0.312); /* Increased from 0.24 by 130% */
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .brand .subtitle,
  .brand > div > .subtitle {
    font-size: calc(var(--brand-size-mobile) * 0.195); /* Increased from 0.15 by 130% */
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .navlinks {
    display: none;
  }

  .burger {
    display: inline-flex;
  }

  /* Reset spacing adjustments on mobile */
  .navbar .brand {
    margin-right: 0;
  }

  .nav-cta {
    min-width: unset;
    margin-left: 0;
    justify-content: center; /* Center the Book button on mobile */
  }

  .brand {
    min-width: unset;
  }

  /* Layout adjustments */
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-media img {
    height: 420px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
  }

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

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

  .cards-3,
  .cards-2 {
    grid-template-columns: 1fr;
  }

  .form-row {
    flex-direction: column;
  }

  /* Typography adjustments */
  .hero-copy h1 {
    font-size: clamp(1.8rem, 5vw, 2.6rem);
  }
}

@media (max-width: 640px) {
  .container {
    padding: 0 16px;
  }

  .section {
    padding: 54px 0;
  }

  .section.tight {
    padding: 36px 0;
  }

  /* Portrait mobile: Stack header vertically */
  .navbar {
    flex-direction: column;
    align-items: flex-start; /* Left align */
    gap: 12px;
  }

  .navbar .brand {
    margin-right: 0;
    width: 100%;
    justify-content: flex-start; /* Left align brand */
  }

  .brand > div,
  .brand .brand-text {
    max-width: calc(100% - 100px) !important; /* Prevent overflow, leave room for logo */
    width: auto;
    height: var(--brand-size-mobile); /* Match logo height */
    align-items: flex-start; /* Left align text */
    text-align: left;
    gap: 2px; /* Minimal gap to fit within logo height */
  }

  .brand .title,
  .brand .subtitle {
    white-space: normal !important; /* Allow wrapping if absolutely necessary */
    text-align: left;
    width: 100%;
  }

  .nav-cta {
    width: 100%;
    margin-left: 0;
    display: flex;
    justify-content: flex-end; /* Right-align buttons */
    gap: 8px;
  }
  .burger {
    order: 2;
  }

  .nav-cta .btn {
    order: 2;
  }
}

/* ----------------------------------------------------------------------------
   16. PRINT STYLES
   ---------------------------------------------------------------------------- */

@media print {
  .header,
  .footer,
  .btn,
  .burger,
  .mobile {
    display: none;
  }

  body {
    background: white;
    color: black;
  }

  a {
    text-decoration: underline;
  }
}

/* ============================================================================
   ACCESSIBILITY ENHANCEMENTS
   ============================================================================ */

/* Skip Link */
.skip-link {
  position: absolute;
  top: -100px;
  left: 0;
  background: var(--sage-500);
  color: white;
  padding: 12px 16px;
  text-decoration: none;
  z-index: 10000;
  font-weight: 500;
  border-radius: 0 0 8px 0;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 0;
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

/* Screen Reader Only */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

.sr-only:focus {
  position: static;
  width: auto;
  height: auto;
  padding: inherit;
  margin: inherit;
  overflow: visible;
  clip: auto;
  white-space: normal;
}

/* Enhanced Focus Indicators */
*:focus {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

*:focus:not(:focus-visible) {
  outline: none;
}

*:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.btn:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 4px;
  transform: translateY(-1px);
}

a:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ============================================================================
   UTILITY CLASSES
   ============================================================================ */

.w-full {
  width: 100%;
}

.mt-2 {
  margin-top: 8px;
}

.mt-14 {
  margin-top: 14px;
}

.mb-3 {
  margin-bottom: 12px;
}

.align-start {
  align-items: start !important;
}

.min-h-360 {
  min-height: 360px;
}

/* ============================================================================
   CUSTOM BACKGROUND BANNER
   ============================================================================ */

body {
  position: relative;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('/assets/images/family-banner.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  opacity: 0.3;
  z-index: -1;
  pointer-events: none;
}

/* ============================================================================
   3D SHADOWS - Text and Image Boxes
   ============================================================================ */

/* 3D Shadow for all cards and boxes */
.card,
.feature,
.band,
.hero-media,
.media {
  box-shadow: 
    0 2px 4px rgba(0, 0, 0, 0.1),
    0 4px 8px rgba(0, 0, 0, 0.1),
    0 8px 16px rgba(0, 0, 0, 0.15),
    0 16px 32px rgba(0, 0, 0, 0.15);
  transform: translateZ(0);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

/* Enhanced 3D effect on hover - DISABLED during image animation */
.card:hover,
.feature:hover,
.band:hover {
  box-shadow: 
    0 4px 8px rgba(0, 0, 0, 0.15),
    0 8px 16px rgba(0, 0, 0, 0.15),
    0 16px 32px rgba(0, 0, 0, 0.2),
    0 32px 64px rgba(0, 0, 0, 0.25);
  transform: translateY(-4px) translateZ(10px);
}

/* NO HOVER EFFECTS on image containers - prevents jerky motion */
.hero-media:hover,
.media:hover {
  box-shadow: 
    0 2px 4px rgba(0, 0, 0, 0.1),
    0 4px 8px rgba(0, 0, 0, 0.1),
    0 8px 16px rgba(0, 0, 0, 0.15),
    0 16px 32px rgba(0, 0, 0, 0.15);
  transform: translateZ(0);
}

/* 3D Text Shadow for headings */
h1, h2, h3, h4, h5, h6 {
  text-shadow: 
    1px 1px 2px rgba(0, 0, 0, 0.1),
    2px 2px 4px rgba(0, 0, 0, 0.1),
    3px 3px 6px rgba(0, 0, 0, 0.15);
}

/* 3D Text Shadow for paragraphs and body text */
p, li, span, a, label {
  text-shadow: 
    0.5px 0.5px 1px rgba(0, 0, 0, 0.05),
    1px 1px 2px rgba(0, 0, 0, 0.08);
}

/* Extra shadow for buttons */
.btn {
  box-shadow: 
    0 2px 4px rgba(0, 0, 0, 0.15),
    0 4px 8px rgba(0, 0, 0, 0.15),
    0 8px 16px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.btn:hover {
  box-shadow: 
    0 4px 8px rgba(0, 0, 0, 0.2),
    0 8px 16px rgba(0, 0, 0, 0.2),
    0 16px 32px rgba(0, 0, 0, 0.25);
  transform: translateY(-2px);
}

/* ============================================================================
   IMAGE ANIMATION - Cinematic Movie Effect on Scroll
   ============================================================================ */

/* Initial state for all images - start visible with GPU acceleration */
.media img,
.hero-media img,
img[src*="assets/images/"]:not([src*="logo"]) {
  opacity: 1;
  transform: scale(1) translate3d(0, 0, 0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  perspective: 1000px;
  will-change: auto;
}

/* Cinematic movie effect when scrolling in - SIMPLE AND SMOOTH */
.media img.animate-in,
.hero-media img.animate-in,
img.animate-in {
  animation: cinematicMovieSimple 4s ease-out forwards;
}

/* Simple, smooth animation - NO BLUR OR FILTERS */
@keyframes cinematicMovieSimple {
  0% {
    opacity: 0;
    transform: scale(1.05) translate3d(0, 0, 0);
  }
  100% {
    opacity: 1;
    transform: scale(1) translate3d(0, 0, 0);
  }
}

/* Keep logo always visible and static */
img[src*="logo"] {
  opacity: 1 !important;
  transform: none !important;
  animation: none !important;
}

/* Preserve reveal animation functionality */
.reveal {
  opacity: 1;
}

.reveal.in {
  opacity: 1;
}
