/* ═══════════════════════════════════════════════════
   KM Wedding Page — style.css
   Theme: sage green · sunflower yellow · white
   ═══════════════════════════════════════════════════ */

/* ─── Custom Properties ─── */
:root {
  --sage:        #7C9A7E;
  --sage-light:  #F2F6F2;
  --sage-dark:   #4E6B50;
  --yellow:      #E8C547;
  --yellow-dark: #C9A827;
  --white:       #FFFFFF;
  --text:        #1A1A1A;
  --text-muted:  #5C6B5D;
  --overlay:     rgba(18, 28, 18, 0.44);

  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body:    'Inter', system-ui, sans-serif;

  --nav-h:    64px;
  --radius:   12px;
  --radius-lg: 20px;
  --shadow:   0 2px 16px rgba(0, 0, 0, 0.07);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.13);
  --section-pad: 96px 24px;
}

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

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

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

/* ─── Utility ─── */
.section-tag {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  color: var(--text);
  line-height: 1.15;
  margin-bottom: 1.2rem;
}

.section-title em {
  font-style: italic;
  color: var(--sage-dark);
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto;
}

.text-center  { text-align: center; }
.text-yellow  { color: var(--yellow-dark); }

/* ─── Navbar ─── */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-h);
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(20px, 5vw, 60px);
  z-index: 900;
  transition: box-shadow 0.3s;
}

#navbar.scrolled {
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.09);
}

.nav-logo {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--sage-dark);
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.nav-logo span {
  color: var(--yellow-dark);
}

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

.nav-links a {
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--text);
  padding-bottom: 3px;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--sage-dark);
  border-bottom-color: var(--yellow);
}

.nav-hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  color: var(--text);
  font-size: 1.3rem;
  line-height: 1;
}

/* ─── Hero ─── */
#home {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-image: url('assets/header-photo.jpg');
  background-size: cover;
  background-position: center;
  scroll-margin-top: 0;
}

#home::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--overlay);
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-ornament {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 1rem;
  color: rgba(255,255,255,0.65);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  margin-bottom: 1.2rem;
}

.hero-names {
  font-family: var(--font-heading);
  font-size: clamp(3rem, 8vw, 5.5rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.05;
  margin-bottom: 0.5rem;
  text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.hero-names .amp {
  color: var(--yellow);
  font-style: italic;
  font-weight: 400;
}

.hero-date {
  font-size: 1.1rem;
  font-weight: 400;
  color: rgba(255,255,255,0.85);
  letter-spacing: 0.12em;
  margin-bottom: 0.3rem;
}

.hero-venue {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.65);
  letter-spacing: 0.06em;
  margin-bottom: 2.8rem;
}

/* Countdown */
.countdown {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.countdown-box {
  background: rgba(124, 154, 126, 0.75);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius);
  padding: 18px 20px 14px;
  min-width: 80px;
  text-align: center;
  transition: transform 0.2s;
}

.countdown-box:hover {
  transform: translateY(-2px);
}

.countdown-number {
  display: block;
  font-family: var(--font-heading);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1;
  transition: transform 0.2s, color 0.2s;
}

.countdown-number.pulse {
  transform: scale(1.15);
  color: var(--yellow);
}

.countdown-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
  margin-top: 6px;
}

/* Scroll chevron */
.hero-scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  color: rgba(255,255,255,0.6);
  font-size: 1.5rem;
  animation: bounce 2s infinite;
  transition: color 0.2s;
}

.hero-scroll:hover {
  color: var(--yellow);
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(8px); }
}

/* ─── Couple ─── */
#couple {
  padding: var(--section-pad);
  background: var(--white);
  scroll-margin-top: var(--nav-h);
}

#couple .section-header {
  margin-bottom: 56px;
}

.couple-grid {
  max-width: 820px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.couple-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.couple-photo-wrap {
  width: 220px;
  height: 260px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 24px;
  box-shadow: var(--shadow-lg);
  border: 3px solid var(--sage-light);
}

.couple-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.couple-photo-wrap:hover .couple-photo {
  transform: scale(1.04);
}

.couple-name {
  font-family: var(--font-heading);
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--sage-dark);
  margin-bottom: 12px;
}

.couple-bio {
  font-size: 0.97rem;
  color: var(--text-muted);
  line-height: 1.75;
  max-width: 320px;
}

@media (max-width: 600px) {
  .couple-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

/* ─── Gallery ─── */
#gallery {
  padding: var(--section-pad);
  background: var(--white);
  scroll-margin-top: var(--nav-h);
}

#gallery .section-header {
  text-align: center;
  margin-bottom: 48px;
}

.gallery-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
}

.gallery-grid figure {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  aspect-ratio: 4 / 3;
  cursor: pointer;
  background: var(--sage-light);
}

.gallery-grid figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery-grid figure:hover img {
  transform: scale(1.06);
}

.gallery-grid figure::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(78, 107, 80, 0);
  transition: background 0.3s;
}

.gallery-grid figure:hover::after {
  background: rgba(78, 107, 80, 0.15);
}

/* Live photo */
.gallery-grid figure.live-photo video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-grid figure.live-photo.playing video {
  opacity: 1;
}

.gallery-grid figure.live-photo.playing img {
  opacity: 0;
}

.gallery-grid figure.live-photo img {
  transition: opacity 0.3s ease;
}

.live-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  background: rgba(0, 0, 0, 0.45);
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 4px 9px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 5px;
  backdrop-filter: blur(4px);
  pointer-events: none;
  transition: opacity 0.3s;
}

.gallery-grid figure.live-photo.playing .live-badge {
  background: rgba(232, 197, 71, 0.85);
  color: var(--text);
}

/* Placeholder cards */
.gallery-placeholder {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  background: var(--sage-light);
  border: 2px dashed rgba(124, 154, 126, 0.4);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--sage);
}

.gallery-placeholder i {
  font-size: 2rem;
  opacity: 0.5;
}

.gallery-placeholder span {
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

/* Lightbox */
#lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0,0,0,0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}

#lightbox.open {
  opacity: 1;
  pointer-events: all;
}

#lightbox img {
  max-width: 90vw;
  max-height: 86vh;
  border-radius: 6px;
  object-fit: contain;
  box-shadow: 0 12px 60px rgba(0,0,0,0.5);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  background: none;
  border: none;
  color: rgba(255,255,255,0.75);
  font-size: 1.8rem;
  cursor: pointer;
  transition: color 0.2s;
  line-height: 1;
}

.lightbox-close:hover { color: var(--white); }

.lightbox-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.1);
  border: none;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  color: var(--white);
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.lightbox-btn:hover { background: rgba(255,255,255,0.22); }
.lightbox-btn.prev  { left: 20px; }
.lightbox-btn.next  { right: 20px; }

/* ─── Info ─── */
#info {
  padding: var(--section-pad);
  background: var(--sage-light);
  scroll-margin-top: var(--nav-h);
}

#info .section-header {
  text-align: center;
  margin-bottom: 56px;
}

.info-grid {
  max-width: 1060px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.info-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  box-shadow: var(--shadow);
}

.info-card.wide {
  grid-column: 1 / -1;
}

.info-card-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--sage-dark);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.info-card-title i {
  color: var(--sage);
  font-size: 1.1rem;
}

/* Timeline */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.timeline-item {
  display: flex;
  gap: 16px;
  position: relative;
}

.timeline-item:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 30px;
  top: 28px;
  bottom: -4px;
  width: 2px;
  background: rgba(124, 154, 126, 0.25);
}

.timeline-dot {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--yellow);
  border: 3px solid var(--white);
  box-shadow: 0 0 0 2px var(--yellow);
  margin-top: 12px;
  margin-left: 20px;
  position: relative;
  z-index: 1;
}

.timeline-content {
  padding: 8px 0 20px;
}

.timeline-time {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--sage);
  letter-spacing: 0.06em;
  margin-bottom: 2px;
}

.timeline-event {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text);
}

.timeline-event i {
  color: var(--sage);
  margin-right: 6px;
  font-size: 0.9rem;
}

/* Venue card */
.venue-address {
  color: var(--text-muted);
  font-size: 0.97rem;
  margin-bottom: 20px;
  line-height: 1.7;
}

.venue-address strong {
  display: block;
  color: var(--text);
  font-size: 1.05rem;
  margin-bottom: 4px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  border: none;
  text-decoration: none;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(0,0,0,0.12);
}

.btn-sage {
  background: var(--sage);
  color: var(--white);
}

.btn-sage:hover { background: var(--sage-dark); }

.btn-outline {
  background: transparent;
  color: var(--sage-dark);
  border: 2px solid var(--sage);
}

.btn-outline:hover {
  background: var(--sage);
  color: var(--white);
}

/* Venue blocks */
.venue-block {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.venue-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--sage-light);
  color: var(--sage-dark);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 20px;
  width: fit-content;
}

.venue-badge i {
  font-size: 0.85rem;
}

.venue-badge--yellow {
  background: rgba(232, 197, 71, 0.18);
  color: var(--yellow-dark);
}

.venue-divider {
  border: none;
  border-top: 1.5px dashed rgba(124, 154, 126, 0.3);
  margin: 20px 0;
}

/* Accommodation card */
.accom-intro {
  font-size: 0.97rem;
  color: var(--text-muted);
  margin-bottom: 24px;
  line-height: 1.7;
}

.accom-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.accom-item {
  background: var(--sage-light);
  border-radius: var(--radius);
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.accom-name {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--sage-dark);
  margin-bottom: 4px;
}

.accom-detail {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.55;
  display: flex;
  gap: 8px;
}

.accom-detail i {
  color: var(--sage);
  flex-shrink: 0;
  margin-top: 2px;
  width: 14px;
}

@media (max-width: 860px) {
  .accom-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 540px) {
  .accom-grid {
    grid-template-columns: 1fr;
  }
}

/* Dress code card */
.dresscode-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.dresscode-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--sage-light);
  border-radius: var(--radius);
  padding: 18px 16px;
}

.dresscode-icon {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  background: var(--sage);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1rem;
}

.dresscode-label {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--sage-dark);
  margin-bottom: 4px;
  letter-spacing: 0.03em;
}

.dresscode-desc {
  font-size: 0.93rem;
  color: var(--text-muted);
  line-height: 1.6;
}

@media (max-width: 600px) {
  .dresscode-grid {
    grid-template-columns: 1fr;
  }
}

/* Links card */
.link-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.link-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: var(--radius);
  background: var(--sage-light);
  color: var(--text);
  transition: background 0.2s, transform 0.15s;
  font-weight: 500;
  font-size: 0.95rem;
}

.link-item:hover {
  background: rgba(124, 154, 126, 0.2);
  transform: translateX(4px);
}

.link-item i {
  color: var(--sage);
  font-size: 1rem;
  width: 20px;
  text-align: center;
}

.link-item .link-arrow {
  margin-left: auto;
  color: var(--text-muted);
  font-size: 0.8rem;
}

/* ─── RSVP ─── */
#rsvp {
  padding: var(--section-pad);
  background: var(--white);
  scroll-margin-top: var(--nav-h);
}

#rsvp .section-header {
  text-align: center;
  margin-bottom: 48px;
}

.rsvp-container {
  max-width: 560px;
  margin: 0 auto;
}

.rsvp-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-label {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  text-transform: uppercase;
}

.form-input,
.form-textarea {
  padding: 13px 16px;
  border: 1.5px solid rgba(124, 154, 126, 0.35);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text);
  background: var(--white);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  width: 100%;
}

.form-input:focus,
.form-textarea:focus {
  border-color: var(--sage);
  box-shadow: 0 0 0 3px rgba(124, 154, 126, 0.15);
}

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

/* Attendance toggle */
.attendance-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.attendance-toggle input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.attendance-toggle label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 12px;
  border-radius: 8px;
  border: 1.5px solid rgba(124, 154, 126, 0.35);
  font-weight: 500;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.3;
}

.attendance-toggle input[type="radio"]:checked + label {
  background: var(--sage);
  border-color: var(--sage);
  color: var(--white);
}

.attendance-toggle input[type="radio"]:checked + label i {
  color: var(--yellow);
}

.attendance-toggle label:hover {
  border-color: var(--sage);
  color: var(--sage-dark);
}

/* Guest count */
.form-group.guest-count {
  display: none;
}

.form-group.guest-count.visible {
  display: flex;
}

/* Submit button */
.btn-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 28px;
  background: var(--yellow);
  color: var(--text);
  border: none;
  border-radius: 8px;
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 1.15rem;
  font-weight: 700;
  cursor: pointer;
  width: 100%;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  margin-top: 6px;
}

.btn-submit:hover {
  background: var(--yellow-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(232, 197, 71, 0.35);
}

.btn-submit i {
  font-size: 1rem;
}

/* RSVP success / error */
.rsvp-message {
  display: none;
  text-align: center;
  padding: 40px 24px;
  border-radius: var(--radius-lg);
  margin-top: 8px;
}

.rsvp-message.success {
  background: var(--sage-light);
  display: block;
}

.rsvp-message.error {
  background: #fff5f5;
  display: block;
}

.rsvp-message i {
  font-size: 2.5rem;
  margin-bottom: 16px;
  display: block;
}

.rsvp-message.success i { color: var(--sage-dark); }
.rsvp-message.error i   { color: #c0392b; }

.rsvp-message h3 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  margin-bottom: 8px;
  color: var(--text);
}

.rsvp-message p {
  color: var(--text-muted);
  font-size: 0.97rem;
}

/* ─── Footer ─── */
footer {
  background: var(--sage-dark);
  color: rgba(255,255,255,0.85);
  text-align: center;
  padding: 48px 24px;
}

.footer-names {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-style: italic;
  color: var(--white);
  margin-bottom: 6px;
}

.footer-date {
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.6);
  margin-bottom: 24px;
}

.footer-links {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-bottom: 28px;
}

.footer-links a {
  color: rgba(255,255,255,0.55);
  font-size: 1.2rem;
  transition: color 0.2s;
}

.footer-links a:hover { color: var(--yellow); }

.footer-copy {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.3);
  letter-spacing: 0.05em;
}

/* ─── Quote ─── */
#quote {
  background: var(--sage-light);
  text-align: center;
  padding: 64px 32px;
}

.quote-text {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: clamp(1.2rem, 3vw, 1.7rem);
  color: var(--sage-dark);
  max-width: 680px;
  margin: 0 auto 16px;
  line-height: 1.6;
  quotes: none;
}

.quote-author {
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

/* ─── Responsive ─── */
@media (max-width: 860px) {
  .info-grid {
    grid-template-columns: 1fr;
  }
  .info-card.wide {
    grid-column: unset;
  }
}

@media (max-width: 640px) {
  :root {
    --section-pad: 72px 20px;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--white);
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    padding: 8px 0 16px;
    z-index: 899;
  }

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

  .nav-links li {
    width: 100%;
  }

  .nav-links a {
    display: block;
    padding: 14px 24px 14px;
    border-bottom: none;
    border-left: 3px solid transparent;
  }

  .nav-links a.active,
  .nav-links a:hover {
    border-bottom: none;
    border-left-color: var(--yellow);
    background: var(--sage-light);
  }

  .nav-hamburger {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .hero-names {
    font-size: clamp(2.6rem, 12vw, 3.8rem);
  }

  .countdown {
    gap: 10px;
  }

  .countdown-box {
    min-width: 68px;
    padding: 14px 12px 10px;
  }

  .countdown-number {
    font-size: 1.9rem;
  }

  .attendance-toggle {
    grid-template-columns: 1fr;
  }

  .info-card {
    padding: 28px 22px;
  }
}

@media (max-width: 400px) {
  .countdown-box {
    min-width: 58px;
    padding: 12px 8px 8px;
  }
  .countdown-number {
    font-size: 1.6rem;
  }
}
