/* =====================================================
   Salma & Maël — Wedding Website
   Theme: Mer & Montagne · 20 juin 2026
   ===================================================== */

/* ── Custom properties ──────────────────────────────── */
:root {
  --brown:       #8B5E3C;   /* groom suit */
  --navy:        #2F4166;   /* groom suit */
  --sky:         #B0D8E6;   /* bridesmaids */
  --blue:        #447FB0;   /* bridesmaids */
  --green:       #4E9157;   /* nature */
  --white:       #F0F0F0;   /* bride */

  --bg:          #FAFAF8;
  --text:        #2a2a2a;
  --muted:       #6b6b6b;
  --border:      rgba(47, 65, 102, 0.12);

  --serif:       'Cormorant Garamond', 'Georgia', serif;
  --sans:        'Jost', 'Helvetica Neue', sans-serif;

  --max-width:   900px;
  --section-gap: 5rem;
}

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

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

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

img, svg { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }

/* ── Typography helpers ─────────────────────────────── */
.eyebrow {
  font-family: var(--sans);
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--blue);
  font-weight: 500;
}

h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.15; }

/* ── Navigation ─────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 2.5rem;
  background: rgba(250, 250, 248, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  font-family: var(--serif);
  font-size: 1.35rem;
  color: var(--navy);
  letter-spacing: 0.04em;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--navy);
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--blue); }

/* ── Hero ────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 7rem 1.5rem 4rem;
  overflow: hidden;
  background: linear-gradient(
    175deg,
    #f4f8fb 0%,
    #eaf3f8 40%,
    #f0f0f0 100%
  );
}

/* Floating decorative symbols */
.hero-decor {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero-decor svg {
  position: absolute;
  opacity: 0.12;
}

.hero-decor .d-mountain-l {
  bottom: 0; left: -2%;
  width: min(55vw, 420px);
  color: var(--navy);
}

.hero-decor .d-mountain-r {
  bottom: 0; right: -3%;
  width: min(45vw, 340px);
  color: var(--blue);
}

.hero-decor .d-wave {
  bottom: 0; left: 0; right: 0;
  width: 100%;
  color: var(--sky);
  opacity: 0.3;
}

.hero-decor .d-shell-tl {
  top: 12%; left: 6%;
  width: 60px;
  color: var(--brown);
  opacity: 0.18;
}

.hero-decor .d-pine-tr {
  top: 10%; right: 6%;
  width: 48px;
  color: var(--green);
  opacity: 0.2;
}

.hero-decor .d-pinecone-bl {
  bottom: 18%; left: 8%;
  width: 40px;
  color: var(--brown);
  opacity: 0.15;
}

.hero-decor .d-boat-br {
  bottom: 22%; right: 7%;
  width: 56px;
  color: var(--navy);
  opacity: 0.14;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-content .eyebrow { margin-bottom: 1.5rem; }

.hero-names {
  font-family: var(--serif);
  font-size: clamp(3rem, 10vw, 7rem);
  color: var(--navy);
  font-weight: 300;
  letter-spacing: -0.01em;
  line-height: 1.05;
}

.hero-names .amp {
  font-size: 0.55em;
  color: var(--blue);
  vertical-align: middle;
  margin: 0 0.25em;
}

.hero-date {
  margin-top: 1.5rem;
  font-family: var(--sans);
  font-size: 0.9rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brown);
}

.hero-divider {
  margin: 2rem auto;
  width: 60px;
  height: 1px;
  background: var(--blue);
  opacity: 0.5;
}

.hero-place {
  font-family: var(--serif);
  font-size: clamp(0.95rem, 2vw, 1.25rem);
  color: var(--muted);
  font-style: italic;
}

.hero-scroll {
  margin-top: 4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--muted);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  animation: fadeInUp 1.8s ease both;
  animation-delay: 0.8s;
}

.hero-scroll-line {
  width: 1px;
  height: 40px;
  background: var(--blue);
  opacity: 0.4;
  animation: scrollLine 1.8s ease-in-out infinite;
}

@keyframes scrollLine {
  0%, 100% { transform: scaleY(1); opacity: 0.4; }
  50% { transform: scaleY(0.5); opacity: 0.15; }
}

/* ── Section base ────────────────────────────────────── */
.section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--section-gap) 1.5rem;
}

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

.section-header .eyebrow { margin-bottom: 0.75rem; }

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: var(--navy);
}

/* ── Divider ornament ────────────────────────────────── */
.ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin: 1.5rem auto;
  color: var(--sky);
}

.ornament::before,
.ornament::after {
  content: '';
  flex: 1;
  max-width: 80px;
  height: 1px;
  background: var(--border);
}

.ornament svg { width: 22px; color: var(--blue); }

/* ── Story / Intro ───────────────────────────────────── */
.intro-text {
  text-align: center;
  font-family: var(--serif);
  font-size: clamp(1.1rem, 2.5vw, 1.45rem);
  color: var(--text);
  line-height: 1.75;
  max-width: 640px;
  margin: 0 auto;
  font-weight: 300;
}

/* ── Details cards ───────────────────────────────────── */
.details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.detail-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 2rem 1.5rem;
  text-align: center;
  transition: transform 0.25s, box-shadow 0.25s;
}

.detail-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 28px rgba(47, 65, 102, 0.08);
}

.detail-card-icon {
  width: 40px;
  height: 40px;
  margin: 0 auto 1.25rem;
  color: var(--blue);
}

.detail-card-title {
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.detail-card-value {
  font-family: var(--serif);
  font-size: 1.4rem;
  color: var(--navy);
  line-height: 1.3;
}

.detail-card-sub {
  margin-top: 0.4rem;
  font-size: 0.82rem;
  color: var(--muted);
  font-style: italic;
}

/* ── Program / Timeline ──────────────────────────────── */
.timeline {
  position: relative;
  max-width: 520px;
  margin: 0 auto;
  padding-left: 2rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.6rem;
  bottom: 0.6rem;
  width: 1px;
  background: var(--border);
}

.timeline-item {
  position: relative;
  padding: 0 0 2rem 1.5rem;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -4px;
  top: 0.5rem;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--sky);
  border: 2px solid var(--blue);
}

.timeline-time {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--blue);
  font-weight: 500;
}

.timeline-label {
  font-family: var(--serif);
  font-size: 1.2rem;
  color: var(--navy);
  margin-top: 0.15rem;
}

.timeline-desc {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 0.2rem;
}

/* ── Location ────────────────────────────────────────── */
.location-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.location-text .eyebrow { margin-bottom: 0.75rem; }

.location-title {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: var(--navy);
  margin-bottom: 1rem;
}

.location-address {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.8;
  font-style: italic;
}

.location-desc {
  margin-top: 1rem;
  font-size: 0.92rem;
  color: var(--text);
  line-height: 1.7;
}

.location-map {
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--border);
  aspect-ratio: 4/3;
  background: var(--sky);
  display: flex;
  align-items: center;
  justify-content: center;
}

.location-map-placeholder {
  text-align: center;
  color: var(--navy);
  padding: 2rem;
}

.location-map-placeholder svg {
  width: 48px;
  margin: 0 auto 1rem;
  opacity: 0.5;
}

.location-map-placeholder p {
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.6;
}

/* ── RSVP ────────────────────────────────────────────── */
.rsvp-section {
  background: linear-gradient(135deg, var(--navy) 0%, #1d2e50 100%);
  padding: var(--section-gap) 1.5rem;
  text-align: center;
  color: var(--white);
}

.rsvp-section .eyebrow { color: var(--sky); }

.rsvp-section .section-title { color: var(--white); }

.rsvp-intro {
  margin: 1.5rem auto;
  max-width: 480px;
  font-size: 0.95rem;
  color: rgba(240, 240, 240, 0.75);
  line-height: 1.7;
}

.rsvp-date {
  margin-top: 0.5rem;
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--sky);
}

.rsvp-btn {
  display: inline-block;
  margin-top: 2rem;
  padding: 1rem 2.5rem;
  background: transparent;
  border: 1px solid rgba(176, 216, 230, 0.5);
  color: var(--white);
  font-family: var(--sans);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 500;
  border-radius: 2px;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.rsvp-btn:hover {
  background: var(--sky);
  border-color: var(--sky);
  color: var(--navy);
}

/* ── Symbols band ────────────────────────────────────── */
.symbols-band {
  padding: 3rem 1.5rem;
  overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.symbols-inner {
  display: flex;
  gap: 2.5rem;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

.sym-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.sym-item svg {
  width: 30px;
  height: 30px;
  color: var(--navy);
  opacity: 0.35;
  transition: opacity 0.25s, color 0.25s;
}

.sym-item:hover svg {
  opacity: 0.8;
  color: var(--blue);
}

/* ── Footer ──────────────────────────────────────────── */
.footer {
  text-align: center;
  padding: 2rem 1.5rem;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.footer-names {
  font-family: var(--serif);
  font-size: 1.1rem;
  color: var(--navy);
  margin-bottom: 0.25rem;
}

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

.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* hero elements animation */
.hero-content > * {
  animation: fadeInUp 0.9s ease both;
}
.hero-content .eyebrow    { animation-delay: 0.1s; }
.hero-content .hero-names { animation-delay: 0.25s; }
.hero-content .hero-date  { animation-delay: 0.4s; }
.hero-content .hero-divider { animation-delay: 0.5s; }
.hero-content .hero-place { animation-delay: 0.6s; }
.hero-content .hero-scroll { animation-delay: 0.8s; }

/* ── Responsive ──────────────────────────────────────── */
@media (max-width: 700px) {
  .nav { padding: 1rem 1.25rem; }
  .nav-links { gap: 1.25rem; }

  .location-block {
    grid-template-columns: 1fr;
  }

  .location-map { aspect-ratio: 16/9; }
}

@media (max-width: 480px) {
  .nav-links { display: none; }
}
