/* ============================================================
   McGee Family Website — Shared Stylesheet
   Theme: Woodland · Sage Green · Warm Cream · Earth Brown
   Font: SF Pro (system) · Design: Apple HIG
   ============================================================ */

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

:root {
  /* ── Woodland Palette ── */
  --sage:        #7A9E7E;
  --sage-light:  #B2CDB5;
  --sage-pale:   #EAF2EB;
  --cream:       #FAF6EF;
  --cream-dark:  #F0E9DC;
  --brown:       #6B4F3A;
  --brown-light: #A0785A;
  --brown-pale:  #EDE0D4;
  --terracotta:  #C4714A;
  --terra-pale:  #F5E4D8;
  --mushroom:    #8E7B6A;
  --forest:      #3D6B52;
  --sky:         #8BB8C8;

  /* ── UI Tokens ── */
  --text-primary:   #2C2114;
  --text-secondary: #5A4A3A;
  --text-tertiary:  #8E7B6A;
  --surface:        rgba(250,246,239,0.80);
  --glass-bg:       rgba(250,246,239,0.65);
  --glass-border:   rgba(255,255,255,0.70);
  --glass-shadow:   0 8px 40px rgba(60,40,20,0.10);
  --radius-sm:      12px;
  --radius-md:      18px;
  --radius-lg:      24px;
  --radius-xl:      32px;
  --radius-full:    999px;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: -apple-system, "SF Pro Text", "SF Pro Display",
               BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  background-color: var(--cream);
  color: var(--text-primary);
  min-height: 100svh;
  overflow-x: hidden;
}

/* ── TYPOGRAPHY ─────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.1;
  color: var(--text-primary);
}

h1 { font-size: clamp(40px, 8vw, 80px); }
h2 { font-size: clamp(28px, 5vw, 46px); }
h3 { font-size: clamp(20px, 3vw, 28px); }
h4 { font-size: 18px; }

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

a {
  color: var(--forest);
  text-decoration: none;
  transition: color 0.15s ease;
}
a:hover { color: var(--terracotta); }

/* ── NAV ────────────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  height: 60px;
  background: rgba(250,246,239,0.82);
  backdrop-filter: blur(24px) saturate(1.6);
  -webkit-backdrop-filter: blur(24px) saturate(1.6);
  border-bottom: 1px solid rgba(107,79,58,0.10);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--brown);
  text-decoration: none;
}

.nav-logo .logo-icon {
  font-size: 22px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}

.nav-links a {
  display: inline-block;
  padding: 6px 13px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius-full);
  transition: background 0.15s, color 0.15s;
}

.nav-links a:hover,
.nav-links a.active {
  background: var(--brown-pale);
  color: var(--brown);
}

.nav-mobile-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 22px;
  cursor: pointer;
  color: var(--brown);
}

/* ── GLASS CARD ─────────────────────────────────────────── */
.card {
  background: var(--glass-bg);
  border: 1.5px solid var(--glass-border);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border-radius: var(--radius-xl);
  box-shadow: var(--glass-shadow);
  overflow: hidden;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 52px rgba(60,40,20,0.14);
}

.card-body { padding: 28px; }

/* ── SECTION ────────────────────────────────────────────── */
.section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 72px 24px;
}

.section-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--forest);
  margin-bottom: 10px;
}

.section-title {
  font-size: clamp(28px, 5vw, 44px);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin-bottom: 14px;
}

.section-body {
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.65;
  max-width: 580px;
  margin-bottom: 48px;
}

/* ── BUTTONS ────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.btn-primary {
  background: var(--forest);
  color: #fff;
  box-shadow: 0 4px 18px rgba(61,107,82,0.30);
}
.btn-primary:hover {
  background: #2d5240;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 26px rgba(61,107,82,0.38);
}

.btn-secondary {
  background: var(--glass-bg);
  color: var(--brown);
  border: 1.5px solid rgba(107,79,58,0.20);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.btn-secondary:hover {
  background: var(--brown-pale);
  color: var(--brown);
  transform: translateY(-2px);
}

.btn-terra {
  background: var(--terracotta);
  color: #fff;
  box-shadow: 0 4px 18px rgba(196,113,74,0.30);
}
.btn-terra:hover {
  background: #b35e39;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 26px rgba(196,113,74,0.38);
}

/* ── TAGS / CHIPS ───────────────────────────────────────── */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 500;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  background: var(--brown-pale);
  color: var(--brown);
  border: 1px solid rgba(107,79,58,0.12);
}

.tag-sage {
  background: var(--sage-pale);
  color: var(--forest);
  border-color: rgba(122,158,126,0.20);
}

.tag-terra {
  background: var(--terra-pale);
  color: var(--terracotta);
  border-color: rgba(196,113,74,0.20);
}

/* ── DIVIDER ────────────────────────────────────────────── */
.divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(107,79,58,0.12) 25%,
    rgba(107,79,58,0.12) 75%,
    transparent 100%
  );
}

/* ── WOODLAND BACKGROUND TEXTURES ───────────────────────── */
.bg-cream   { background-color: var(--cream); }
.bg-sage    { background-color: var(--sage-pale); }
.bg-brown   { background-color: var(--brown-pale); }
.bg-terra   { background-color: var(--terra-pale); }

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

.bg-gradient-forest {
  background: linear-gradient(160deg, var(--sage-pale) 0%, var(--cream) 60%, var(--brown-pale) 100%);
}

/* ── FOOTER ─────────────────────────────────────────────── */
.footer {
  background: var(--brown);
  color: rgba(255,255,255,0.75);
  text-align: center;
  padding: 48px 24px 60px;
}

.footer-logo {
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.footer-tagline {
  font-size: 14px;
  color: rgba(255,255,255,0.55);
  margin-bottom: 24px;
}

.footer-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px 18px;
  list-style: none;
  margin-bottom: 28px;
}

.footer-nav a {
  font-size: 14px;
  color: rgba(255,255,255,0.65);
  transition: color 0.15s;
}
.footer-nav a:hover { color: #fff; }

.footer-copy {
  font-size: 12px;
  color: rgba(255,255,255,0.35);
}

/* ── RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 768px) {
  .nav { padding: 0 20px; }

  .nav-links {
    display: none;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(250,246,239,0.97);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    padding: 16px 20px 24px;
    border-bottom: 1px solid rgba(107,79,58,0.10);
    gap: 4px;
  }

  .nav-links.open { display: flex; }

  .nav-links a {
    padding: 10px 14px;
    font-size: 16px;
  }

  .nav-mobile-toggle { display: block; }

  .section { padding: 52px 20px; }
  .card-body { padding: 22px; }
}

/* ── PHOTO GRID ─────────────────────────────────────────── */
.photo-grid {
  display: grid;
  gap: 12px;
}

.photo-grid-3 { grid-template-columns: repeat(3, 1fr); }
.photo-grid-4 { grid-template-columns: repeat(4, 1fr); }

.photo-grid img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.photo-grid img:hover {
  transform: scale(1.03);
  box-shadow: 0 10px 36px rgba(60,40,20,0.18);
  z-index: 2;
  position: relative;
}

/* ── LIGHTBOX ───────────────────────────────────────────── */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(14,8,3,0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  align-items: center;
  justify-content: center;
  padding: 24px;
  flex-direction: column;
  gap: 16px;
}
.lightbox.open { display: flex; }

.lightbox img {
  max-width: min(92vw, 1100px);
  max-height: 82svh;
  border-radius: var(--radius-lg);
  box-shadow: 0 32px 100px rgba(0,0,0,0.7);
  object-fit: contain;
  cursor: zoom-out;
  transition: opacity 0.15s ease;
}

.lightbox-close {
  position: absolute;
  top: 18px;
  right: 22px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  border: 1.5px solid rgba(255,255,255,0.20);
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
  line-height: 1;
}
.lightbox-close:hover { background: rgba(255,255,255,0.22); }

.lightbox-hint {
  font-size: 12px;
  color: rgba(255,255,255,0.35);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  user-select: none;
}

/* ── FORM ───────────────────────────────────────────────── */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 18px;
}

.form-group label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.01em;
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 12px 16px;
  font-size: 15px;
  font-family: inherit;
  color: var(--text-primary);
  background: rgba(255,255,255,0.80);
  border: 1.5px solid rgba(107,79,58,0.18);
  border-radius: var(--radius-md);
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
  -webkit-appearance: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--sage);
  box-shadow: 0 0 0 3px rgba(122,158,126,0.18);
}

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

/* ── ANIMATIONS ─────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.fade-up {
  animation: fadeUp 0.55s ease both;
}

@keyframes pulse-dot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%       { transform: scale(1.3); opacity: 0.7; }
}

@media (max-width: 600px) {
  .photo-grid-3 { grid-template-columns: repeat(2, 1fr); }
  .photo-grid-4 { grid-template-columns: repeat(2, 1fr); }
}

/* ── FOCUS STYLES (Accessibility) ──────────────────────────────── */
:focus-visible {
  outline: 3px solid var(--forest);
  outline-offset: 3px;
  border-radius: 4px;
}

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

.nav-links a:focus-visible {
  outline: 3px solid var(--forest);
  outline-offset: 2px;
  background: var(--brown-pale);
  color: var(--brown);
}

/* Skip link */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--forest);
  color: #fff;
  padding: 8px 16px;
  z-index: 9999;
  border-radius: 0 0 8px 0;
  font-size: 14px;
  font-weight: 600;
  transition: top 0.2s;
}
.skip-link:focus { top: 0; }

/* ── ACTIVE NAV STATE ────────────────────────────────────────────── */
.nav-links a.active {
  background: var(--brown-pale);
  color: var(--brown);
  font-weight: 600;
}

/* ── MOBILE TAP TARGETS ─────────────────────────────────────────── */
@media (max-width: 768px) {
  .nav-links a {
    padding: 12px 16px;
    min-height: 44px;
    display: flex;
    align-items: center;
  }
  .footer-nav a {
    padding: 10px 0;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }
  .btn {
    min-height: 44px;
  }
}

/* ── SECTION LABEL — STANDARDIZED ───────────────────────────────── */
.section-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--forest);
  margin-bottom: 10px;
}

/* ── HORIZONTAL SCROLL INDICATOR ────────────────────────────────── */
.photo-scroll-wrap {
  position: relative;
}
.photo-scroll-wrap::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 80px;
  background: linear-gradient(to right, transparent, var(--cream));
  pointer-events: none;
  z-index: 2;
}

/* ── GALLERY TAB — photo count badge ────────────────────────────── */
.tab .count {
  display: inline-block;
  font-size: 10px;
  font-weight: 500;
  opacity: 0.55;
  margin-left: 4px;
}

/* ── PAGE TRANSITION FADE ────────────────────────────────────────── */
body {
  animation: pageFadeIn 0.35s ease both;
}
@keyframes pageFadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── MILESTONE POST ──────────────────────────────────────────────── */
.post.post-milestone {
  border-left: 4px solid var(--forest);
  background: linear-gradient(135deg, rgba(61,107,82,0.04), var(--glass-bg));
}
.post.post-milestone .post-title {
  font-size: 22px;
}

/* ═══════════════════════════════════════════════════════════════════
   DESIGN SYSTEM — 3 canonical card patterns
   Use these everywhere. Stop using inline styles for cards.
   ═══════════════════════════════════════════════════════════════════ */

/* card-glass — frosted glass, for primary content */
.card-glass {
  background: var(--glass-bg);
  border: 1.5px solid var(--glass-border);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border-radius: var(--radius-xl);
  box-shadow: var(--glass-shadow);
  padding: 28px;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.card-glass:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 52px rgba(60,40,20,0.13);
}

/* card-warm — cream/brown background, for storytelling */
.card-warm {
  background: var(--cream-dark);
  border: 1.5px solid rgba(107,79,58,0.12);
  border-radius: var(--radius-xl);
  padding: 28px;
}

/* card-accent — colored bg, for highlights and CTAs */
.card-accent {
  border-radius: var(--radius-xl);
  padding: 28px;
}
.card-accent.sage  { background: var(--sage-pale);  border: 1.5px solid rgba(122,158,126,0.25); }
.card-accent.brown { background: var(--brown-pale);  border: 1.5px solid rgba(107,79,58,0.18); }
.card-accent.terra { background: var(--terra-pale);  border: 1.5px solid rgba(196,113,74,0.22); }
.card-accent.dark  { background: var(--brown);       color: rgba(255,255,255,0.88); }

/* ── PULL QUOTE ─────────────────────────────────────────────────── */
.pull-quote {
  border-left: 3px solid var(--sage);
  padding: 16px 24px;
  margin: 28px 0;
  background: var(--sage-pale);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}
.pull-quote p {
  font-size: 18px;
  font-style: italic;
  color: var(--text-primary);
  line-height: 1.65;
  margin: 0;
  font-weight: 500;
}

/* ── TYPOGRAPHY SCALE ───────────────────────────────────────────── */
.text-display { font-size: clamp(48px, 9vw, 96px); font-weight: 700; letter-spacing: -0.04em; line-height: 1.0; }
.text-headline { font-size: clamp(28px, 5vw, 48px); font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; }
.text-title    { font-size: clamp(20px, 3vw, 28px); font-weight: 700; letter-spacing: -0.02em; }
.text-body-lg  { font-size: 18px; line-height: 1.75; color: var(--text-secondary); }
.text-body     { font-size: 16px; line-height: 1.70; color: var(--text-secondary); }
.text-small    { font-size: 13px; line-height: 1.55; color: var(--text-tertiary); }
.text-caption  { font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-tertiary); }

/* ── SPACING SCALE ──────────────────────────────────────────────── */
.gap-xs  { gap: 8px;  }
.gap-sm  { gap: 14px; }
.gap-md  { gap: 20px; }
.gap-lg  { gap: 32px; }
.gap-xl  { gap: 48px; }

/* ── GALLERY TAB — active count stays visible ───────────────────── */
.tab.active .count { opacity: 0.75; }

/* ── ENHANCED MICRO-INTERACTIONS ────────────────────────────────── */

/* Button press effect */
.btn:active { transform: scale(0.97); }

/* Card lift on hover — unified */
.card:hover,
.card-glass:hover { transform: translateY(-3px); box-shadow: 0 16px 52px rgba(60,40,20,0.13); }

/* Nav logo hover */
.nav-logo:hover { opacity: 0.75; transition: opacity 0.15s; }

/* Gallery image hover — slightly stronger */
.masonry img:hover { transform: scale(1.03); box-shadow: 0 12px 40px rgba(60,40,20,0.20); }

/* Timeline dot hover */
.tl-dot-inner:hover { transform: scale(1.15); box-shadow: 0 0 0 4px rgba(122,158,126,0.30); }

/* Smooth scrolling for anchor links */
html { scroll-behavior: smooth; }

/* Tab hover feedback */
.tab:active { transform: scale(0.96); }

/* Footer nav hover */
.footer-nav a:hover { color: rgba(255,255,255,0.90); transform: translateX(2px); display: inline-block; transition: all 0.15s; }

/* Photo hover cursor */
.masonry img, .bently-grid img, .photo-row img { cursor: zoom-in; }
