/* ============================================================
   TOLES FAMILY REUNION — Design System
   Aesthetic: Bold Celebratory · Red & White · Warm & Grand
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;0,800;0,900;1,400;1,700&family=Nunito+Sans:opsz,wght@6..12,300;6..12,400;6..12,500;6..12,600;6..12,700;6..12,800&display=swap');

:root {
  --red: #b91c1c;
  --red-bright: #dc2626;
  --red-dark: #991b1b;
  --red-deep: #7f1d1d;
  --red-glow: rgba(185, 28, 28, 0.3);
  --red-dim: rgba(185, 28, 28, 0.08);
  --rose: #fff1f2;
  --rose-warm: #fef2f2;

  --white: #ffffff;
  --cream: #fdfcfa;
  --linen: #f9f6f2;
  --ink: #111827;
  --text: #1f2937;
  --muted: #4b5563;
  --border: #e5e7eb;

  --gold: #b8860b;
  --gold-dim: rgba(184, 134, 11, 0.1);

  --font-display: 'Playfair Display', serif;
  --font-body: 'Nunito Sans', sans-serif;

  --section-pad: clamp(3rem, 6vw, 5rem);
  --container: 1140px;
  --radius: 20px;

  --shadow: 0 20px 50px rgba(17, 24, 39, 0.08);
  --shadow-lg: 0 30px 70px rgba(17, 24, 39, 0.12);
  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

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

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.15;
}

h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
}

h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
}

h3 {
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  font-weight: 700;
}

p {
  color: var(--muted);
  font-size: 1rem;
  max-width: 640px;
}

.section-tag {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--red);
  margin-bottom: 0.75rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.section-tag .dot {
  width: 8px;
  height: 8px;
  background: var(--red);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 var(--red-glow); }
  50% { opacity: 0.7; box-shadow: 0 0 0 8px transparent; }
}

/* --- Header --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(253, 252, 250, 0.88);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border-bottom: 1px solid var(--border);
}

.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 76px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.logo-mark {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--red), var(--red-bright));
  box-shadow: 0 8px 20px var(--red-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 800;
}

.logo-text h1 {
  font-size: 0.95rem;
  font-family: var(--font-body);
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.2;
}

.logo-text p {
  font-size: 0.7rem;
  color: var(--muted);
  margin-top: 1px;
}

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

.nav-links a {
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.5rem 0.9rem;
  border-radius: 100px;
  border: 1px solid transparent;
  color: var(--text);
  transition: all 0.2s var(--ease);
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active {
  background: var(--red-dim);
  border-color: rgba(185, 28, 28, 0.15);
  color: var(--red-dark);
}

.nav-cta {
  background: var(--red) !important;
  color: white !important;
  border-color: var(--red) !important;
  box-shadow: 0 8px 20px var(--red-glow);
  font-weight: 800 !important;
}

.nav-cta:hover {
  background: var(--red-dark) !important;
  border-color: var(--red-dark) !important;
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: all 0.3s var(--ease);
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.85rem 1.75rem;
  border-radius: 14px;
  transition: all 0.25s var(--ease);
  cursor: pointer;
  border: 1px solid var(--border);
  background: white;
  color: var(--ink);
  box-shadow: var(--shadow);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-primary {
  background: var(--red);
  color: white;
  border-color: var(--red);
  box-shadow: 0 14px 30px var(--red-glow);
}

.btn-primary:hover {
  background: var(--red-dark);
  border-color: var(--red-dark);
}

.btn-ghost {
  border-color: rgba(185, 28, 28, 0.2);
  background: var(--red-dim);
  color: var(--red-dark);
}

.btn-ghost:hover {
  background: rgba(185, 28, 28, 0.12);
}

.btn-gold {
  background: linear-gradient(135deg, #b8860b, #d4a017);
  color: white;
  border-color: #b8860b;
  box-shadow: 0 14px 30px rgba(184, 134, 11, 0.25);
}

.btn-gold:hover {
  background: linear-gradient(135deg, #9a7209, #b8860b);
}

/* --- Hero --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 76px;
  overflow: hidden;
  background: linear-gradient(180deg, var(--cream), var(--rose-warm), var(--cream));
}

.hero::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -15%;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, var(--red-glow) 0%, transparent 65%);
  opacity: 0.4;
  filter: blur(80px);
  animation: heroFloat 10s ease-in-out infinite alternate;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -20%;
  left: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(184, 134, 11, 0.12) 0%, transparent 65%);
  filter: blur(60px);
  animation: heroFloat2 12s ease-in-out infinite alternate;
}

@keyframes heroFloat {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-30px, 25px) scale(1.08); }
}

@keyframes heroFloat2 {
  0% { transform: translate(0, 0); }
  100% { transform: translate(20px, -15px) scale(1.05); }
}

.hero .container {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 3rem 2rem;
}

.hero h1 {
  margin-bottom: 1rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.hero h1 .red { color: var(--red); }

.hero > .container > p {
  font-size: 1.15rem;
  max-width: 560px;
  margin: 0 auto 2rem;
  line-height: 1.8;
}

.hero-buttons {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

/* Countdown */
.countdown-bar {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
  margin: 2.5rem 0;
}

.countdown-item {
  text-align: center;
}

.countdown-num {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  color: var(--red);
  line-height: 1;
}

.countdown-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin-top: 0.25rem;
}

/* Photo strip */
.photo-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}

.photo-tile {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: white;
  box-shadow: var(--shadow);
  transition: transform 0.4s var(--ease);
}

.photo-tile:hover {
  transform: translateY(-4px);
}

.photo-tile img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.photo-caption {
  padding: 0.75rem 1rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--ink);
  text-align: center;
  background: white;
}

/* --- Sections --- */
section { padding: var(--section-pad) 0; position: relative; }

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header p { margin: 0.5rem auto 0; }

/* --- Cards --- */
.card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  transition: all 0.35s var(--ease);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--red), var(--red-bright), var(--red));
  opacity: 0;
  transition: opacity 0.35s var(--ease);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(185, 28, 28, 0.15);
}

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

.card-icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--red-dim);
  border-radius: 14px;
  margin-bottom: 1.25rem;
  font-size: 1.4rem;
}

.card h3 { margin-bottom: 0.5rem; }

.card-grid {
  display: grid;
  gap: 1.25rem;
}

.card-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.card-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }

/* --- Info Pills --- */
.pill {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, white, var(--rose-warm));
  margin-top: 0.75rem;
}

.pill .label { color: var(--muted); font-size: 0.85rem; }
.pill .value { font-weight: 800; font-size: 0.85rem; color: var(--ink); }

/* --- Hotel Booking Card --- */
.hotel-card {
  background: linear-gradient(135deg, var(--red-deep), var(--red-dark));
  color: white;
  border: none;
  border-radius: var(--radius);
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 50px var(--red-glow);
}

.hotel-card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.08), transparent 60%);
  filter: blur(40px);
}

.hotel-card * { position: relative; color: white; }
.hotel-card h3 { color: white; margin-bottom: 0.75rem; font-size: 1.3rem; }
.hotel-card p { color: rgba(255, 255, 255, 0.8); }

.hotel-card .pill {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.15);
}

.hotel-card .pill .label { color: rgba(255, 255, 255, 0.6); }
.hotel-card .pill .value { color: white; }

/* --- Fee Table --- */
.fee-grid {
  display: grid;
  gap: 0.5rem;
  margin: 1rem 0;
}

.fee-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  background: var(--rose-warm);
  border: 1px solid rgba(185, 28, 28, 0.08);
}

.fee-row .age { font-weight: 600; color: var(--text); font-size: 0.9rem; }
.fee-row .price { font-weight: 800; color: var(--red); font-size: 0.9rem; }
.fee-row .price.free { color: var(--gold); }

/* --- Timeline --- */
.timeline {
  position: relative;
  padding-left: 2.5rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0.75rem;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--red), rgba(185, 28, 28, 0.1));
}

.timeline-item {
  position: relative;
  margin-bottom: 2rem;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -1.85rem;
  top: 0.5rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--red);
  border: 3px solid var(--cream);
  box-shadow: 0 0 0 2px var(--red);
}

.timeline-item h4 {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--red);
  margin-bottom: 0.25rem;
}

.timeline-item p {
  font-size: 0.9rem;
  color: var(--text);
}

/* --- Quote Block --- */
.quote-block {
  background: var(--rose-warm);
  border-left: 4px solid var(--red);
  border-radius: 0 14px 14px 0;
  padding: 1.5rem 1.75rem;
  margin: 1.25rem 0;
  font-size: 0.95rem;
  color: var(--text);
  line-height: 1.8;
}

/* --- Page Hero (inner pages) --- */
.page-hero {
  padding: calc(76px + var(--section-pad)) 0 var(--section-pad);
  text-align: center;
  background: linear-gradient(180deg, var(--cream), var(--rose-warm), var(--cream));
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: -30%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(circle, var(--red-glow), transparent 70%);
  opacity: 0.2;
  filter: blur(60px);
}

.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 { margin-bottom: 0.75rem; }
.page-hero p { margin: 0 auto; font-size: 1.1rem; }

/* --- PDF Viewer --- */
.viewer-wrap {
  border-radius: 16px;
  border: 1px solid var(--border);
  overflow: hidden;
  background: white;
  box-shadow: var(--shadow);
  margin-top: 1.5rem;
}

.viewer {
  width: 100%;
  height: 78vh;
  border: 0;
  display: block;
}

/* --- CTA Section --- */
.cta-section {
  background: linear-gradient(135deg, var(--red-deep), var(--red-dark), var(--red));
  border-radius: 24px;
  padding: 4rem;
  text-align: center;
  margin: 0 2rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 60px var(--red-glow);
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.08), transparent 60%);
  filter: blur(40px);
}

.cta-section * { position: relative; }
.cta-section h2 { color: white; margin-bottom: 0.75rem; }
.cta-section p { color: rgba(255, 255, 255, 0.8); margin: 0 auto 2rem; }

.cta-section .btn-primary {
  background: white;
  color: var(--red);
  border-color: white;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.2);
}

.cta-section .btn-primary:hover {
  background: var(--rose);
}

/* --- Footer --- */
.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.5);
  padding: 3rem 0 1.5rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.footer-brand .logo-text h1 { color: white; font-size: 0.95rem; }
.footer-brand .logo-text p { color: rgba(255, 255, 255, 0.4); }
.footer-brand > p { margin-top: 0.75rem; font-size: 0.85rem; color: rgba(255, 255, 255, 0.4); max-width: 280px; }

.footer-col h4 {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: white;
  margin-bottom: 0.75rem;
}

.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.5rem; }

.footer-col a {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
  transition: color 0.25s var(--ease);
}

.footer-col a:hover { color: white; }

.footer-bottom {
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.75rem;
  text-align: center;
}

/* --- Fade Animations --- */
.fade-up {
  opacity: 0;
  transform: translateY(25px);
  animation: fadeUp 0.7s var(--ease-out) forwards;
}

.fade-up.d1 { animation-delay: 0.1s; }
.fade-up.d2 { animation-delay: 0.2s; }
.fade-up.d3 { animation-delay: 0.3s; }
.fade-up.d4 { animation-delay: 0.4s; }

@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .card-grid.cols-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav-toggle { display: flex; z-index: 1001; }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 270px;
    height: 100vh;
    flex-direction: column;
    background: var(--cream);
    padding: 5rem 1.5rem 2rem;
    gap: 0.75rem;
    transition: right 0.4s var(--ease-out);
    border-left: 1px solid var(--border);
  }

  .nav-links.open { right: 0; }

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

  .photo-strip { grid-template-columns: 1fr; }

  .cta-section { padding: 3rem 1.5rem; margin: 0 1rem; }

  .hero-buttons { flex-direction: column; align-items: center; }

  .btn { width: 100%; }

  .footer-inner { flex-direction: column; }

  .countdown-bar { gap: 1rem; }

  .viewer { height: 65vh; }
}
