/* ============================================================
   MARIO & APRIL — Wedding Website Styles
   Aesthetic: Vintage botanical / Old money olive
   ============================================================ */

/* ----- TOKENS ----- */
:root {
  --cream:        #F7F3EC;
  --cream-dark:   #EDE7D9;
  --olive:        #6B7A4A;
  --olive-dark:   #4E5A35;
  --olive-light:  #8A9A62;
  --gold:         #C4A24A;
  --gold-light:   #D9BF7A;
  --brown:        #3D3025;
  --brown-mid:    #6B5744;
  --text:         #2C2418;
  --text-muted:   #7A6D5E;
  --white:        #FFFFFF;
  --shadow:       0 4px 24px rgba(44, 36, 24, 0.10);
  --shadow-lg:    0 8px 48px rgba(44, 36, 24, 0.18);

  --font-serif:   'Cormorant Garamond', Georgia, serif;
  --font-sans:    'Jost', system-ui, sans-serif;

  --nav-height:   70px;
  --section-pad:  100px;
  --radius:       4px;
  --radius-lg:    12px;

  --transition:   0.25s ease;
}

/* ----- RESET ----- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--cream);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }

/* ----- TYPOGRAPHY ----- */
h1, h2, h3 {
  font-family: var(--font-serif);
  font-weight: 400;
  line-height: 1.2;
}
h1 { font-size: clamp(3rem, 8vw, 6rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }

/* ----- CONTAINERS ----- */
.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}
.container-narrow {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ----- BUTTONS ----- */
.btn {
  display: inline-block;
  padding: 12px 32px;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: var(--radius);
  transition: all var(--transition);
  cursor: pointer;
}
.btn-primary {
  background: var(--olive);
  color: var(--white);
  border: 2px solid var(--olive);
}
.btn-primary:hover {
  background: var(--olive-dark);
  border-color: var(--olive-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}
.btn-outline {
  background: transparent;
  color: var(--olive);
  border: 2px solid var(--olive);
}
.btn-outline:hover {
  background: var(--olive);
  color: var(--white);
}
.btn-full { width: 100%; text-align: center; }

/* ----- BADGE ----- */
.badge {
  display: inline-block;
  padding: 4px 12px;
  background: var(--gold-light);
  color: var(--brown);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 20px;
}

/* ============================================================
   LANGUAGE TOGGLE
   ============================================================ */
.lang-toggle {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.85);
  border: 1px solid rgba(255,255,255,0.35);
  padding: 5px 11px;
  border-radius: 3px;
  background: transparent;
  cursor: pointer;
  transition: all var(--transition);
  flex-shrink: 0;
}
.lang-toggle:hover {
  border-color: var(--gold-light);
  color: var(--gold-light);
}
#site-header.scrolled .lang-toggle {
  color: var(--text-muted);
  border-color: var(--text-muted);
}
#site-header.scrolled .lang-toggle:hover {
  color: var(--olive-dark);
  border-color: var(--olive-dark);
}

/* ============================================================
   NAVIGATION
   ============================================================ */
#site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-height);
  z-index: 100;
  background: transparent;
  transition: background var(--transition), box-shadow var(--transition);
}
#site-header.scrolled {
  background: rgba(247, 243, 236, 0.97);
  box-shadow: 0 1px 16px rgba(44, 36, 24, 0.08);
  backdrop-filter: blur(8px);
}
.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-monogram {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-style: italic;
  color: var(--white);
  transition: color var(--transition);
  letter-spacing: 0.05em;
}
#site-header.scrolled .nav-monogram { color: var(--olive-dark); }

.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
}
.nav-links a {
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.9);
  transition: color var(--transition);
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--white);
  border-bottom-color: var(--gold);
}
#site-header.scrolled .nav-links a { color: var(--text-muted); }
#site-header.scrolled .nav-links a:hover,
#site-header.scrolled .nav-links a.active {
  color: var(--olive-dark);
  border-bottom-color: var(--olive);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all var(--transition);
}
#site-header.scrolled .nav-toggle span { background: var(--brown); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;

  /* Placeholder gradient — replace with background-image once photos arrive */
  background: linear-gradient(
    160deg,
    #3D4E2A 0%,
    #5A6B3A 30%,
    #7A6040 60%,
    #3D3025 100%
  );
  background-attachment: fixed;
}
/* When you have the hero image, replace the background above with:
   background: url('images/hero.jpg') center center / cover no-repeat;
   background-attachment: fixed;
*/
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(30,22,10,0.45) 0%, rgba(30,22,10,0.6) 100%);
}
.hero-content {
  position: relative;
  z-index: 1;
  color: var(--white);
  padding: 40px 24px;
}
.hero-eyebrow {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 16px;
}
.hero-names {
  font-style: italic;
  font-weight: 300;
  color: var(--white);
  margin-bottom: 20px;
  text-shadow: 0 2px 24px rgba(0,0,0,0.3);
}
.hero-names .ampersand {
  font-style: normal;
  color: var(--gold-light);
  margin: 0 12px;
}
.hero-date {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: rgba(255,255,255,0.85);
  margin-bottom: 40px;
  letter-spacing: 0.04em;
}
.hero-scroll-hint {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 20px;
  border-right: 2px solid rgba(255,255,255,0.45);
  border-bottom: 2px solid rgba(255,255,255,0.45);
  transform: translateX(-50%) rotate(45deg);
  animation: bounce 2s infinite;
  z-index: 1;
}
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(8px); }
}

/* ============================================================
   SECTION SHELL
   ============================================================ */
.section { padding: var(--section-pad) 0; }
.section-light  { background: var(--cream); }
.section-dark   { background: var(--brown); color: var(--cream); }
.section-cream  { background: var(--cream-dark); }

.section-title {
  font-family: var(--font-serif);
  font-style: italic;
  text-align: center;
  margin-bottom: 12px;
  color: inherit;
}
.section-dark .section-title { color: var(--cream); }
.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 2px;
  background: var(--gold);
  margin: 16px auto 0;
}
.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 56px;
  font-size: 1rem;
}
.section-dark .section-subtitle { color: rgba(237,231,217,0.7); }

/* ============================================================
   SCHEDULE / TIMELINE
   ============================================================ */
.timeline {
  position: relative;
  max-width: 640px;
  margin: 0 auto;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 100px;
  top: 0; bottom: 0;
  width: 1px;
  background: var(--gold-light);
}
.timeline-item {
  display: flex;
  gap: 32px;
  margin-bottom: 48px;
  position: relative;
}
.timeline-item::before {
  content: '';
  position: absolute;
  left: 96px;
  top: 8px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--gold);
  border: 2px solid var(--cream);
  box-shadow: 0 0 0 2px var(--gold);
}
.timeline-time {
  min-width: 100px;
  text-align: right;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--gold);
  padding-top: 2px;
}
.timeline-body h3 {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  margin-bottom: 4px;
}
.timeline-location {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 8px;
  letter-spacing: 0.04em;
}

/* ============================================================
   TRAVEL & LOGISTICS
   ============================================================ */
.travel-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.travel-card-wide { grid-column: span 2; }

.travel-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(237,231,217,0.15);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  color: var(--cream);
}
.travel-card h3 {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.25rem;
  margin-bottom: 10px;
  color: var(--gold-light);
}
.travel-card p { font-size: 0.92rem; margin-bottom: 16px; color: rgba(237,231,217,0.85); }
.travel-card .btn-outline {
  color: var(--gold-light);
  border-color: var(--gold-light);
  font-size: 0.75rem;
}
.travel-card .btn-outline:hover {
  background: var(--gold-light);
  color: var(--brown);
}

/* ----- MAP EMBED ----- */
.map-embed {
  margin: 16px 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(237,231,217,0.15);
}
.map-embed iframe {
  display: block;
  width: 100%;
  height: 280px;
  border: none;
}
.map-embed.weather-frame iframe {
  height: 420px;
}
.map-embed-placeholder {
  height: 280px;
  background: rgba(255,255,255,0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(237,231,217,0.4);
  font-style: italic;
  font-size: 0.85rem;
}
.map-embed-placeholder p { margin: 0; }


.hotel-list li {
  font-size: 0.9rem;
  color: rgba(237,231,217,0.85);
  margin-bottom: 14px;
  padding-left: 12px;
  border-left: 2px solid var(--gold);
}
.hotel-list a { color: var(--gold-light); text-decoration: underline; }

.tips-list {
  list-style: disc;
  padding-left: 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 24px;
}
.tips-list li { font-size: 0.9rem; color: rgba(237,231,217,0.85); }

/* ============================================================
   RSVP FORM
   ============================================================ */
.rsvp-form { margin-top: 16px; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.form-group { margin-bottom: 24px; }
.form-group label {
  display: block;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 8px;
  color: var(--text-muted);
}
.required { color: var(--olive); }
.optional { color: var(--text-muted); font-size: 0.75rem; text-transform: none; letter-spacing: 0; }

input[type="text"],
input[type="email"],
input[type="date"],
select,
textarea {
  width: 100%;
  padding: 12px 16px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--text);
  background: var(--white);
  border: 1.5px solid var(--cream-dark);
  border-radius: var(--radius);
  transition: border-color var(--transition), box-shadow var(--transition);
  appearance: none;
  -webkit-appearance: none;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--olive);
  box-shadow: 0 0 0 3px rgba(107, 122, 74, 0.15);
}
select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236B7A4A' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}
textarea { resize: vertical; }

.radio-group { display: flex; gap: 24px; }
.radio-group-stacked { flex-direction: column; gap: 10px; }
.radio-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  cursor: pointer;
  text-transform: none;
  letter-spacing: 0;
}
.radio-label input { width: auto; accent-color: var(--olive); }

.field-hint {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 10px;
  margin-top: -4px;
}

.form-note {
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 12px;
}
.form-note a { color: var(--olive); text-decoration: underline; }

.rsvp-success {
  text-align: center;
  padding: 48px 24px;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.4rem;
  color: var(--olive-dark);
}
.hidden { display: none !important; }

/* ============================================================
   REGISTRY
   ============================================================ */
.registry-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}
.registry-card {
  background: var(--white);
  border: 1px solid var(--cream-dark);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  text-align: center;
  box-shadow: var(--shadow);
}
.registry-card h3 {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.4rem;
  margin-bottom: 14px;
  color: var(--olive-dark);
}
.registry-card p { font-size: 0.93rem; color: var(--text-muted); margin-bottom: 24px; }
.registry-note {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 10px;
  font-style: italic;
}
.registry-footer-note {
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  font-style: italic;
}

/* ============================================================
   FAQ
   ============================================================ */
.faq-list { display: flex; flex-direction: column; gap: 4px; }

.faq-item {
  border-bottom: 1px solid rgba(237,231,217,0.2);
}
.faq-item summary {
  padding: 20px 0;
  font-family: var(--font-serif);
  font-size: 1.15rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--cream);
  transition: color var(--transition);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-family: var(--font-sans);
  font-size: 1.2rem;
  color: var(--gold);
  flex-shrink: 0;
  margin-left: 16px;
  transition: transform var(--transition);
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item summary:hover { color: var(--gold-light); }
.faq-item p {
  padding: 0 0 20px;
  font-size: 0.95rem;
  color: rgba(237,231,217,0.75);
  line-height: 1.8;
}
.faq-item a { color: var(--gold-light); text-decoration: underline; }

/* ============================================================
   OUR STORY
   ============================================================ */
.story-timeline { display: flex; flex-direction: column; gap: 80px; }

.story-event,
.story-event-reverse {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.story-event-reverse .story-photo-placeholder { order: 2; }
.story-event-reverse .story-text { order: 1; }

.story-photo-placeholder {
  aspect-ratio: 4/3;
  background: var(--cream-dark);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px dashed var(--gold-light);
  color: var(--text-muted);
  font-size: 0.85rem;
  font-style: italic;
}
.story-photo-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-lg);
}
.story-date {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}
.story-text h3 {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.6rem;
  margin-bottom: 12px;
  color: var(--olive-dark);
}
.story-text p { color: var(--text-muted); }

/* ============================================================
   EXPLORE / THINGS TO DO
   ============================================================ */
.explore-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.explore-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}
.explore-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.explore-photo-placeholder {
  aspect-ratio: 4/3;
  background: var(--cream-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--cream-dark);
  color: var(--text-muted);
  font-size: 0.8rem;
  font-style: italic;
}
.explore-body { padding: 20px; }
.explore-body h3 {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--olive-dark);
  margin-bottom: 8px;
}
.explore-body p { font-size: 0.88rem; color: var(--text-muted); }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--brown);
  color: var(--cream);
  text-align: center;
  padding: 56px 24px;
}
.footer-monogram {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 2rem;
  color: var(--gold-light);
  margin-bottom: 8px;
}
.footer-date {
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(237,231,217,0.6);
  margin-bottom: 24px;
}
.footer-copy { font-size: 0.78rem; color: rgba(237,231,217,0.4); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .travel-grid { grid-template-columns: 1fr 1fr; }
  .travel-card-wide { grid-column: span 2; }
  .explore-grid { grid-template-columns: repeat(2, 1fr); }
  .tips-list { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  :root { --section-pad: 64px; }

  /* Nav */
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed;
    top: var(--nav-height);
    left: 0; right: 0;
    background: var(--cream);
    flex-direction: column;
    gap: 0;
    padding: 24px 0;
    box-shadow: var(--shadow-lg);
    transform: translateY(-110%);
    transition: transform var(--transition);
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links a {
    display: block;
    padding: 14px 24px;
    color: var(--text) !important;
    border-bottom: none !important;
    font-size: 0.9rem;
  }
  .nav-links a:hover { background: var(--cream-dark); }

  /* Timeline */
  .timeline::before { left: 0; }
  .timeline-item { flex-direction: column; gap: 8px; padding-left: 20px; }
  .timeline-item::before { left: -4px; }
  .timeline-time { min-width: auto; text-align: left; }

  /* Travel */
  .travel-grid { grid-template-columns: 1fr; }
  .travel-card-wide { grid-column: span 1; }

  /* RSVP */
  .form-row { grid-template-columns: 1fr; gap: 0; }

  /* Registry */
  .registry-grid { grid-template-columns: 1fr; }

  /* Story */
  .story-event,
  .story-event-reverse { grid-template-columns: 1fr; gap: 28px; }
  .story-event-reverse .story-photo-placeholder { order: 0; }
  .story-event-reverse .story-text { order: 1; }

  /* Explore */
  .explore-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .hero-names { font-size: 2.8rem; }
  .registry-card { padding: 28px 20px; }
}
