/* ═══════════════════════════════════════════
   Gutierrez-Rose Family — Base Styles
   Warm, inviting, editorial family aesthetic
   ═══════════════════════════════════════════ */

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

:root {
  --bg: #faf8f5;
  --bg-elevated: #f2efe9;
  --bg-card: #ffffff;
  --ink: #1a1a1a;
  --text: #2a2a2a;
  --text-muted: #7a7670;
  --accent: #b08d57;           /* WHY: Warm gold — shared family identity, matches Brett's site accent */
  --accent-hover: #c9a46a;
  --accent-light: rgba(176,141,87,0.08);
  --border: rgba(26,26,26,0.1);
  --border-hover: rgba(26,26,26,0.2);
  --white: #ffffff;
  --serif: 'Playfair Display', Georgia, serif;
  --sans: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --mono: 'JetBrains Mono', 'SF Mono', monospace;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --max-w: 1280px;
}

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

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; border: none; background: none; font: inherit; color: inherit; }

::selection {
  background: var(--accent);
  color: var(--white);
}

/* --- Navigation --- */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 3rem;
  background: rgba(250,248,245,0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: padding 0.4s var(--ease);
}

#navbar.scrolled { padding: 1rem 3rem; }

.logo {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 900;
  color: var(--ink);
  letter-spacing: -0.02em;
  transition: color 0.3s;
}
.logo:hover { color: var(--accent); }
.logo-amp {
  font-style: italic;
  color: var(--accent);
  margin: 0 0.1em;
}

.nav-inline {
  display: flex;
  gap: 2.5rem;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.nav-inline a {
  position: relative;
  color: var(--text-muted);
  transition: color 0.3s;
}
.nav-inline a:hover { color: var(--ink); }
.nav-inline a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.3s var(--ease);
}
.nav-inline a:hover::after { width: 100%; }

/* Hamburger */
.menu-btn {
  display: none;
  flex-direction: column;
  gap: 6px;
  width: 28px;
  padding: 4px 0;
  z-index: 1001;
}
.menu-btn span {
  display: block;
  height: 1.5px;
  background: var(--ink);
  border-radius: 1px;
  transition: transform 0.4s var(--ease), opacity 0.3s;
}
.menu-btn.open span:first-child { transform: translateY(3.75px) rotate(45deg); }
.menu-btn.open span:last-child { transform: translateY(-3.75px) rotate(-45deg); }

/* Overlay nav */
.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(250,248,245,0.98);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s var(--ease);
}
.nav-overlay.open { opacity: 1; pointer-events: all; }

.nav-overlay-content {
  text-align: center;
  width: 100%;
  max-width: 600px;
  padding: 2rem;
}

.nav-links-big { display: flex; flex-direction: column; gap: 0.5rem; margin-bottom: 3rem; }
.nav-link-big {
  font-family: var(--serif);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 400;
  color: var(--text-muted);
  transition: color 0.3s, transform 0.3s var(--ease);
  display: inline-block;
}
.nav-link-big:hover { color: var(--ink); transform: translateX(8px); }
.nav-link-big::before {
  content: attr(data-num);
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--accent);
  margin-right: 1rem;
  vertical-align: super;
}

.nav-overlay-footer {
  display: flex;
  gap: 3rem;
  justify-content: center;
  font-size: 0.8rem;
  color: var(--text-muted);
}
.nav-footer-label {
  display: block;
  font-family: var(--mono);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 0.4rem;
}

/* --- Hero --- */
.hero {
  min-height: 70vh;
  display: flex;
  align-items: flex-end;
  padding: 8rem 3rem 4rem;
}

.hero-inner { width: 100%; max-width: var(--max-w); margin: 0 auto; }

.hero-tag {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 2rem;
}

.hero-headline {
  font-family: var(--serif);
  font-size: clamp(4rem, 10vw, 9rem);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin-bottom: 3rem;
}
.hero-headline em {
  font-style: italic;
  color: var(--accent);
}

.line { display: block; overflow: hidden; }
.line-inner {
  display: inline-block;
  animation: slideUp 0.8s var(--ease) both;
}
.line:nth-child(2) .line-inner { animation-delay: 0.15s; }

@keyframes slideUp {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.hero-bottom {
  display: flex;
  align-items: flex-end;
  gap: 4rem;
}

.hero-scroll-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--mono);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  flex-shrink: 0;
}
.scroll-line {
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}

.hero-intro {
  max-width: 520px;
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* --- Section Utilities --- */
.section-num {
  display: block;
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--accent);
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
}

/* --- Photo Strip --- */
.photo-strip {
  overflow: hidden;
  padding: 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.photo-strip-scroll {
  display: flex;
  gap: 4px;
  animation: stripScroll 40s linear infinite;
}
.strip-img {
  flex-shrink: 0;
  width: 320px;
  height: 220px;
  overflow: hidden;
}
.strip-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* WHY: Slight desaturation gives editorial warmth without looking filtered */
  filter: saturate(0.9);
}
@keyframes stripScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* --- About Section --- */
.about-section {
  padding: 6rem 3rem;
  border-bottom: 1px solid var(--border);
}
.about-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}
.about-heading {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  color: var(--ink);
  margin-bottom: 2.5rem;
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}
.about-text p {
  margin-bottom: 1.25rem;
  line-height: 1.8;
  color: var(--text);
  font-size: 1.02rem;
}
.about-lead {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-style: italic;
  color: var(--ink);
  line-height: 1.6;
}
.about-text a {
  color: var(--accent);
  border-bottom: 1px solid var(--accent);
  transition: opacity 0.3s;
}
.about-text a:hover { opacity: 0.7; }
.about-image {
  position: sticky;
  top: 6rem;
}
.about-image img {
  width: 100%;
  border-radius: 8px;
  /* WHY: Subtle desaturation for editorial warmth */
  filter: saturate(0.9);
}

/* --- Meet the Family --- */
.family-section {
  padding: 6rem 3rem;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
}
.family-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}
.family-heading {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  color: var(--ink);
  margin-bottom: 0.5rem;
}
.family-desc {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 3rem;
}

.member-cards {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}
.member-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.member-card.reverse {
  direction: rtl;
}
.member-card.reverse > * {
  direction: ltr;
}
.member-image {
  overflow: hidden;
  border-radius: 8px;
  /* WHY: Fixed aspect prevents layout shift on lazy load */
  aspect-ratio: 4 / 3;
}
.member-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.9);
  transition: transform 0.5s var(--ease);
}
.member-card:hover .member-image img {
  transform: scale(1.03);
}
.member-info h3 {
  font-family: var(--serif);
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--ink);
  margin-bottom: 0.25rem;
}
.member-role {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 1rem;
}
.member-info p {
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--text);
}

/* Crew (pets) */
.crew-section {
  margin-top: 5rem;
  padding-top: 3rem;
  border-top: 1px solid var(--border);
}
.crew-heading {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--ink);
  margin-bottom: 0.4rem;
}
.crew-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  max-width: 540px;
}
.crew-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}
.crew-member {
  padding: 1.5rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  transition: border-color 0.3s;
}
.crew-member:hover { border-color: var(--accent); }
.crew-name {
  display: block;
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 0.3rem;
}
.crew-detail {
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--text-muted);
}
.crew-alumni {
  border-style: dashed;
}

/* --- Adventures --- */
.adventures-section {
  padding: 6rem 3rem;
  border-bottom: 1px solid var(--border);
}
.adventures-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}
.adventures-heading {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  color: var(--ink);
  margin-bottom: 0.5rem;
}
.adventures-desc {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 3rem;
}
.adventures-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.adventure-card {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  aspect-ratio: 1;
}
.adventure-wide {
  grid-column: span 2;
  aspect-ratio: 2 / 1;
}
.adventure-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.85);
  transition: transform 0.5s var(--ease), filter 0.5s;
}
.adventure-card:hover img {
  transform: scale(1.05);
  filter: saturate(1);
}
.adventure-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem;
  background: linear-gradient(to top, rgba(0,0,0,0.6), transparent);
  color: #fff;
}
.adventure-place {
  display: block;
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 700;
}
.adventure-note {
  display: block;
  font-family: var(--mono);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.8;
  margin-top: 0.2rem;
}

/* --- Family Links Section --- */
.family-links-section {
  padding: 6rem 3rem;
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
}

.family-links-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.family-links-heading {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  color: var(--ink);
  margin-bottom: 0.75rem;
}

.family-links-desc {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 3rem;
  max-width: 500px;
}

.family-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.family-card {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 2rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  transition: border-color 0.3s, transform 0.3s var(--ease), box-shadow 0.3s;
}
.family-card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}

.family-card-initials {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--accent-light);
  color: var(--accent);
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 2px solid var(--accent);
}

.family-card-info h3 {
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 0.2rem;
}

.family-card-url {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

/* --- Footer --- */
.footer {
  border-top: 1px solid var(--border);
  padding: 3rem;
}
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 3rem;
}
.footer-name {
  display: block;
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 0.3rem;
}
.footer-title {
  font-size: 0.85rem;
  color: var(--text-muted);
}
.footer-links {
  display: flex;
  gap: 2rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.footer-links a:hover { color: var(--accent); }
.footer-bottom {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

/* --- Responsive --- */
@media (max-width: 768px) {
  #navbar { padding: 1rem 1.5rem; }
  .nav-inline { display: none; }
  .menu-btn { display: flex; }

  .hero { padding: 6rem 1.5rem 3rem; min-height: 50vh; }
  .hero-bottom { flex-direction: column; gap: 2rem; }
  .hero-scroll-indicator { display: none; }

  .strip-img { width: 240px; height: 160px; }

  .about-section { padding: 4rem 1.5rem; }
  .about-grid { grid-template-columns: 1fr; gap: 2rem; }
  .about-image { position: static; }

  .family-section { padding: 4rem 1.5rem; }
  .member-card,
  .member-card.reverse { grid-template-columns: 1fr; gap: 1.5rem; direction: ltr; }
  .crew-grid { grid-template-columns: 1fr; }

  .adventures-section { padding: 4rem 1.5rem; }
  .adventures-grid { grid-template-columns: 1fr 1fr; }
  .adventure-wide { grid-column: span 2; }

  .family-links-section { padding: 4rem 1.5rem; }
  .family-cards { grid-template-columns: 1fr; }

  .footer { padding: 2rem 1.5rem; }
  .footer-top { flex-direction: column; gap: 1.5rem; }

  .nav-overlay-footer { flex-direction: column; gap: 1.5rem; }
}

@media (max-width: 480px) {
  .hero-headline { font-size: 3.5rem; }
  .adventures-grid { grid-template-columns: 1fr; }
  .adventure-wide { grid-column: span 1; aspect-ratio: 4/3; }
  .adventure-card { aspect-ratio: 4/3; }
}
