/* Wedding Website — Sage Green & Powdered Pink · Classic & Natural */

:root {
  --color-cream: #faf8f5;
  --color-ivory: #f8f5f0;
  --color-beige: #e8e2d9;
  --color-sage: #7d8f6f;
  --color-sage-deep: #65765a;
  --color-sage-light: #9bab8e;
  --color-powdered-pink: #e5d4d8;
  --color-powdered-pink-soft: #efe6e8;
  --color-pink-ribbon: #d4b8be;
  --color-surface: #ffffff;
  --color-surface-soft: #fdfbf8;
  --color-charcoal: #2c2c2c;
  --color-muted: #5c5c5c;
  --color-gold: #b8860b;
  --color-gold-light: #c9a227;
  --color-gold-muted: rgba(184, 134, 11, 0.15);
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "Outfit", -apple-system, sans-serif;
  --shadow-soft: 0 4px 24px rgba(44, 44, 44, 0.06);
  --shadow-medium: 0 8px 32px rgba(44, 44, 44, 0.08);
  --radius: 12px;
  --transition: 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--color-charcoal);
  background: var(--color-cream);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Navigation */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(248, 245, 240, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(125, 143, 111, 0.2);
  transition: var(--transition);
}

.nav.scrolled {
  box-shadow: var(--shadow-soft);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.lang-switcher {
  display: flex;
  align-items: center;
  gap: 0;
  border: 1px solid rgba(125, 143, 111, 0.35);
  border-radius: var(--radius);
  overflow: hidden;
}

.lang-btn {
  padding: 0.35rem 0.65rem;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--color-muted);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: color var(--transition), background var(--transition);
}

.lang-btn:hover {
  color: var(--color-sage);
}

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

.lang-btn:not(:last-child) {
  border-right: 1px solid rgba(125, 143, 111, 0.25);
}

.nav-logo {
  order: 1;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--color-charcoal);
  text-decoration: none;
  letter-spacing: 0.02em;
}

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

.nav-right { order: 3; }

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-muted);
  text-decoration: none;
  transition: color var(--transition);
}

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

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

.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--color-charcoal);
  transition: var(--transition);
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }
  .lang-switcher {
    order: 1;
  }
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 280px;
    height: 100vh;
    background: var(--color-cream);
    flex-direction: column;
    padding: 4rem 2rem 2rem;
    gap: 1.5rem;
    box-shadow: -4px 0 24px rgba(0,0,0,0.08);
    transition: right var(--transition);
  }
  .nav-links.open {
    right: 0;
  }
}

/* Hero */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  padding: 6rem 1.5rem 4rem;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: var(--color-ivory);
  z-index: 0;
  overflow: hidden;
}

.hero-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 90% 28%;
  display: block;
  filter: brightness(0.8) contrast(1.05) saturate(0.98);
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(160deg, rgba(250, 248, 245, 0.82) 0%, rgba(248, 245, 240, 0.88) 40%, rgba(125, 143, 111, 0.25) 100%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
}

.hero-subtitle {
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-sage);
  margin-bottom: 1rem;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.85);
}

.hero-names {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  font-weight: 500;
  line-height: 1.15;
  color: var(--color-charcoal);
  margin-bottom: 1rem;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.9);
}

.hero-names .name-first,
.hero-names .name-second {
  display: block;
}

.hero-names .amp {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: 0.7em;
  color: var(--color-charcoal);
  margin: 0.2em 0;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.9);
}

.hero-date {
  font-size: 1.15rem;
  color: var(--color-muted);
  margin-bottom: 0.5rem;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.85);
}

.hero-verse {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-style: italic;
  color: var(--color-charcoal);
  margin-bottom: 2rem;
  letter-spacing: 0.02em;
  text-shadow:
    0 0 24px rgba(255, 255, 255, 1),
    0 0 12px rgba(255, 255, 255, 0.95),
    0 1px 0 rgba(255, 255, 255, 0.9),
    0 -1px 2px rgba(255, 255, 255, 0.8),
    1px 0 2px rgba(255, 255, 255, 0.8),
    -1px 0 2px rgba(255, 255, 255, 0.8),
    0 1px 2px rgba(255, 255, 255, 0.8);
}

.btn {
  display: inline-block;
  padding: 0.85rem 2rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  border-radius: var(--radius);
  transition: var(--transition);
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-sage-deep), var(--color-sage));
  color: white;
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--color-sage), var(--color-sage-light));
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(125, 143, 111, 0.35);
}

.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-muted);
  animation: bounce 2s ease-in-out infinite;
}

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

/* Sections common */
section {
  padding: 5rem 1.5rem;
}

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

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 500;
  text-align: center;
  color: var(--color-charcoal);
  margin-bottom: 0.5rem;
  letter-spacing: 0.02em;
}

.section-title::after {
  content: "";
  display: block;
  width: 48px;
  height: 2px;
  margin: 1.25rem auto 2.5rem;
  background: linear-gradient(90deg, var(--color-sage), var(--color-pink-ribbon));
  border-radius: 1px;
}

/* Story */
.story {
  background: var(--color-ivory);
  box-shadow: inset 0 1px 0 rgba(125, 143, 111, 0.08);
}

.story-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}

.story-card {
  padding: 2rem;
  background: white;
  border-radius: var(--radius);
  border: 1px solid rgba(125, 143, 111, 0.18);
  box-shadow: var(--shadow-soft);
  transition: var(--transition);
}

.story-card:hover {
  box-shadow: var(--shadow-medium);
  border-color: var(--color-sage-light);
  border-left: 3px solid var(--color-powdered-pink);
}

.story-year {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--color-sage);
  margin-bottom: 0.75rem;
}

.story-card h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--color-charcoal);
  margin-bottom: 0.75rem;
}

.story-card p {
  font-size: 0.95rem;
  color: var(--color-muted);
  line-height: 1.65;
}

/* Details */
.details {
  background: var(--color-surface);
  border-top: 1px solid var(--color-powdered-pink-soft);
}

.details-blessing {
  text-align: center;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-style: italic;
  color: var(--color-sage);
  margin-bottom: 0.25rem;
  letter-spacing: 0.03em;
}

.details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.detail-card {
  text-align: center;
  padding: 2.5rem 2rem;
  background: var(--color-surface-soft);
  border-radius: var(--radius);
  border: 1px solid rgba(125, 143, 111, 0.15);
  box-shadow: var(--shadow-soft);
  transition: var(--transition);
}

.detail-card:hover {
  box-shadow: var(--shadow-medium);
  transform: translateY(-4px);
  border-color: var(--color-sage-light);
}

.detail-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--color-sage-deep);
  filter: saturate(0.8);
}

.detail-icon-church {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
}

.detail-cross {
  font-size: 0.9rem;
  color: var(--color-sage);
  opacity: 0.85;
  font-style: normal;
  letter-spacing: 0;
}

.detail-card-ceremony {
  border-color: rgba(125, 143, 111, 0.25);
}

.detail-card-ceremony:hover {
  border-color: var(--color-sage-light);
}

.detail-card h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--color-charcoal);
  margin-bottom: 0.5rem;
}

.detail-name {
  font-weight: 500;
  color: var(--color-charcoal);
  margin-bottom: 0.25rem;
}

.detail-address {
  font-size: 0.95rem;
  color: var(--color-muted);
  line-height: 1.6;
}

.detail-link {
  display: inline-block;
  margin-top: 1rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-sage);
  text-decoration: none;
  transition: color var(--transition);
}

.detail-link:hover {
  color: var(--color-sage-deep);
}

/* Route illustration — church to finca */
.route-illustration {
  margin-top: 3rem;
  padding: 2rem 1rem;
  text-align: center;
}

.route-illustration-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--color-sage);
  margin-bottom: 1.5rem;
  letter-spacing: 0.02em;
}

.route-driving {
  max-width: 34rem;
  margin: 0 auto 1.5rem;
  font-size: 0.95rem;
  color: var(--color-muted);
  line-height: 1.65;
  text-align: center;
}

.route-driving strong {
  color: var(--color-charcoal);
  font-weight: 600;
}

.route-svg {
  width: 100%;
  max-width: 620px;
  height: auto;
  margin: 0 auto;
  display: block;
  color: var(--color-sage);
}

.route-svg .route-label {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  fill: var(--color-charcoal);
}

.route-svg .route-place-name {
  font-family: var(--font-body);
  font-size: 10px;
  fill: var(--color-muted);
}

.route-svg .route-icon-stroke {
  color: var(--color-sage);
}

.route-path-dash {
  animation: routePathFlow 55s linear infinite;
}

@keyframes routePathFlow {
  to {
    stroke-dashoffset: -120;
  }
}

@media (prefers-reduced-motion: reduce) {
  .route-path-dash {
    animation: none;
  }
}

@media (max-width: 768px) {
  .route-illustration {
    margin-top: 2rem;
    padding: 1.5rem 0.5rem;
  }
  .route-illustration-title {
    font-size: 1.1rem;
  }
  .route-driving {
    font-size: 0.88rem;
  }
  .route-svg .route-label {
    font-size: 10px;
  }
  .route-svg .route-place-name {
    font-size: 9px;
  }
}

/* Gifts */
.gifts {
  background: var(--color-ivory);
  border-top: 1px solid rgba(125, 143, 111, 0.1);
  box-shadow: inset 0 1px 0 rgba(212, 184, 190, 0.2);
}

.gift-intro {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 2rem;
  font-size: 1.05rem;
  color: var(--color-muted);
  line-height: 1.65;
}

.gift-card {
  max-width: 440px;
  margin: 0 auto;
  padding: 2rem;
  background: var(--color-surface-soft);
  border-radius: var(--radius);
  border: 1px solid rgba(125, 143, 111, 0.2);
  box-shadow: var(--shadow-soft);
}

.gift-row {
  margin-bottom: 1rem;
  font-size: 0.95rem;
  color: var(--color-charcoal);
}

.gift-row:last-child {
  margin-bottom: 0;
}

.gift-label {
  display: inline-block;
  min-width: 6rem;
  color: var(--color-sage);
  font-weight: 500;
}

.gift-value {
  word-break: break-all;
  font-weight: 600;
  color: var(--color-charcoal);
}

.gift-iban {
  font-family: var(--font-body);
  letter-spacing: 0.02em;
}

.gift-note {
  text-align: center;
  margin-top: 1.5rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-style: italic;
  color: var(--color-sage);
}

/* Gallery */
.gallery {
  background: var(--color-ivory);
}

.gallery-intro {
  text-align: center;
  color: var(--color-muted);
  margin-bottom: 2rem;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.gallery-item {
  aspect-ratio: 1;
  background-size: cover;
  background-position: center;
  border-radius: var(--radius);
  border: 3px solid white;
  box-shadow: var(--shadow-soft);
  transition: transform var(--transition), box-shadow var(--transition);
}

.gallery-item:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 28px rgba(125, 143, 111, 0.2);
}

@media (max-width: 640px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* RSVP */
.rsvp {
  background: linear-gradient(180deg, var(--color-surface) 0%, #fdf9f6 100%);
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(125, 143, 111, 0.12);
}

.rsvp::before {
  content: "";
  position: absolute;
  top: -40%;
  right: -15%;
  width: min(55vw, 420px);
  height: min(55vw, 420px);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 184, 190, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.rsvp-container {
  max-width: 1040px;
  position: relative;
  z-index: 1;
}

.rsvp-block.hidden {
  display: none;
}

.rsvp-layout {
  display: grid;
  gap: 2rem;
  align-items: start;
  grid-template-columns: 1fr;
}

.rsvp-heading {
  margin-bottom: 0;
  text-align: center;
  grid-column: 1;
}

.rsvp-heading::after {
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 1.25rem;
}

.rsvp-intro {
  text-align: center;
  color: var(--color-muted);
  margin-bottom: 0;
  font-size: 1.05rem;
  line-height: 1.65;
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 880px) {
  .rsvp-layout {
    grid-template-columns: 1fr;
    row-gap: 2.5rem;
  }

  .rsvp-heading {
    grid-column: 1;
    justify-self: center;
    width: 100%;
  }

  .rsvp-intro {
    grid-column: 1;
    grid-row: auto;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    max-width: 38rem;
    padding-top: 0;
  }

  .rsvp-card {
    grid-column: 1;
    justify-self: center;
    width: 100%;
    max-width: 640px;
  }
}

.rsvp-card {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(125, 143, 111, 0.18);
  border-radius: calc(var(--radius) + 4px);
  box-shadow: var(--shadow-medium);
  padding: 2rem 1.75rem 1.75rem;
}

@media (min-width: 640px) {
  .rsvp-card {
    padding: 2.25rem 2.25rem 2rem;
  }
}

.rsvp-form {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.rsvp-form-section {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: 1rem 1.15rem;
  background: rgba(125, 143, 111, 0.06);
  border: 1px solid rgba(125, 143, 111, 0.13);
  border-radius: var(--radius);
}

.rsvp-form > .btn-block {
  margin-top: 0.25rem;
}

.form-grid {
  display: grid;
  gap: 1.15rem;
}

.form-grid--2 {
  grid-template-columns: 1fr;
}

@media (min-width: 560px) {
  .form-grid--2 {
    grid-template-columns: 1fr 1fr;
    gap: 1rem 1.35rem;
  }
}

/* Guest counts: stacked; section panel comes from .rsvp-form-section */
.form-grid--guests {
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

.form-grid--2.form-grid--stack-lg {
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .form-grid--2.form-grid--stack-lg {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}

.form-divider {
  height: 1px;
  margin: 0.35rem 0 0.15rem;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(125, 143, 111, 0.25) 15%,
    rgba(212, 184, 190, 0.35) 50%,
    rgba(125, 143, 111, 0.25) 85%,
    transparent
  );
  border: none;
}

.form-row label {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-charcoal);
  margin-bottom: 0.4rem;
}

.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  font-family: var(--font-body);
  font-size: 1rem;
  border: 1px solid rgba(125, 143, 111, 0.3);
  border-radius: var(--radius);
  background: var(--color-surface);
  color: var(--color-charcoal);
  transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--color-sage);
  box-shadow: 0 0 0 3px rgba(212, 184, 190, 0.22);
  background: #fffdfb;
}

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

.form-hint {
  font-size: 0.82rem;
  color: var(--color-muted);
  line-height: 1.5;
  margin: -0.05rem 0 0;
  padding: 0;
}

.rsvp-submit {
  margin-top: 0.35rem;
  letter-spacing: 0.04em;
  font-weight: 600;
}

.btn-block {
  width: 100%;
  padding: 1rem;
  font-size: 1rem;
}

.rsvp-note {
  text-align: center;
  font-size: 0.8rem;
  color: var(--color-muted);
  margin-top: 1.25rem;
  margin-bottom: 0;
  padding-top: 1.1rem;
  border-top: 1px solid rgba(125, 143, 111, 0.12);
  line-height: 1.5;
}

.rsvp-card .rsvp-note {
  max-width: none;
}

/* Footer */
.footer {
  text-align: center;
  padding: 3rem 1.5rem;
  background: var(--color-ivory);
  color: var(--color-charcoal);
  border-top: 1px solid rgba(125, 143, 111, 0.2);
}

.footer p {
  font-size: 1rem;
}

.footer strong {
  color: var(--color-sage);
  font-weight: 500;
}

.footer-date {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: var(--color-muted);
}

/* Success message (for RSVP) */
.rsvp-success {
  display: none;
  text-align: center;
  padding: 2rem;
  background: var(--color-powdered-pink-soft);
  border: 1px solid var(--color-pink-ribbon);
  border-radius: var(--radius);
  color: var(--color-charcoal);
  font-weight: 500;
}

.rsvp-success.visible {
  display: block;
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-soft);
}

/* Decorative divider — botanical / ivory stationery feel */
.divider {
  padding: 1.5rem;
  text-align: center;
  color: var(--color-sage);
}

.divider svg {
  width: 80px;
  height: auto;
  max-height: 26px;
}

/* RSVP success/error modal popup */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: rgba(44, 44, 44, 0.5);
  backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.modal-overlay.modal-visible {
  opacity: 1;
  visibility: visible;
}

.modal-overlay[hidden] {
  display: none;
}

.modal-box {
  position: relative;
  width: 100%;
  max-width: 420px;
  padding: 2rem;
  background: var(--color-surface-soft);
  border-radius: var(--radius);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(125, 143, 111, 0.2);
  transform: scale(0.95);
  transition: transform 0.25s ease;
}

.modal-overlay.modal-visible .modal-box {
  transform: scale(1);
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 2rem;
  height: 2rem;
  padding: 0;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--color-muted);
  background: none;
  border: none;
  cursor: pointer;
  border-radius: 4px;
  transition: color var(--transition), background var(--transition);
}

.modal-close:hover {
  color: var(--color-charcoal);
  background: rgba(212, 184, 190, 0.22);
}

.modal-title {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 500;
  color: var(--color-charcoal);
  margin-bottom: 0.75rem;
  padding-right: 2rem;
}

.modal-text {
  font-size: 1rem;
  color: var(--color-muted);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.modal-btn {
  width: 100%;
}

/* ========== Mobile / Phone ========== */
@media (max-width: 768px) {
  .nav {
    padding: 0.75rem 1rem;
    padding-top: max(0.75rem, env(safe-area-inset-top));
  }

  .nav-logo {
    font-size: 1.2rem;
  }

  .hero {
    min-height: 100vh;
    min-height: 100dvh;
    padding: 5rem 1rem 3rem;
    padding-top: max(5rem, calc(60px + env(safe-area-inset-top)));
  }

  .hero-content {
    width: 100%;
  }

  .hero-bg-img {
    object-position: 84% 24%;
  }

  .hero-subtitle {
    font-size: 0.85rem;
    letter-spacing: 0.15em;
  }

  .hero-names {
    font-size: clamp(2rem, 10vw, 3.25rem);
  }

  .hero-date {
    font-size: 1rem;
  }

  .hero-verse {
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    padding: 0 0.5rem;
  }

  .btn {
    padding: 0.9rem 1.75rem;
    min-height: 48px;
    font-size: 1rem;
  }

  .hero-scroll {
    bottom: 1.5rem;
    font-size: 0.7rem;
  }

  section {
    padding: 3rem 1rem;
  }

  .section-title {
    font-size: clamp(1.75rem, 6vw, 2.25rem);
  }

  .section-title::after {
    margin-bottom: 2rem;
  }

  .story-grid {
    gap: 1.5rem;
  }

  .story-card {
    padding: 1.5rem;
  }

  .story-card h3 {
    font-size: 1.25rem;
  }

  .details-grid {
    gap: 1.5rem;
  }

  .detail-card {
    padding: 1.75rem 1.25rem;
  }

  .divider {
    padding: 1rem;
  }

  .gift-intro {
    font-size: 1rem;
    margin-bottom: 1.5rem;
    padding: 0 0.5rem;
  }

  .gift-card {
    padding: 1.5rem 1.25rem;
  }

  .gift-row {
    font-size: 0.9rem;
  }

  .gift-label {
    min-width: 5rem;
  }

  .rsvp-intro {
    margin-bottom: 1.5rem;
    padding: 0 0.25rem;
  }

  .rsvp-card {
    padding: 1.5rem 1.2rem 1.35rem;
  }

  .rsvp-form {
    gap: 0.75rem;
  }

  .rsvp-form-section {
    padding: 0.9rem 1rem;
  }

  .form-row input,
  .form-row select,
  .form-row textarea {
    padding: 0.9rem 1rem;
    font-size: 16px;
    min-height: 48px;
  }

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

  .btn-block {
    min-height: 48px;
    padding: 1rem;
  }

  .footer {
    padding: 2.5rem 1rem;
    padding-bottom: max(2.5rem, env(safe-area-inset-bottom));
  }

  .modal-overlay {
    padding: 1rem;
    padding-left: max(1rem, env(safe-area-inset-left));
    padding-right: max(1rem, env(safe-area-inset-right));
  }

  .modal-box {
    padding: 1.75rem 1.25rem;
    max-width: 100%;
  }

  .modal-close {
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    top: 0.75rem;
    right: 0.75rem;
    font-size: 1.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .modal-title {
    font-size: 1.5rem;
    padding-right: 2.5rem;
  }

  .modal-btn {
    min-height: 48px;
  }

  .lang-btn {
    padding: 0.5rem 0.6rem;
    min-height: 44px;
    min-width: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .nav-toggle {
    min-width: 44px;
    min-height: 44px;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .nav-toggle span {
    width: 22px;
    height: 2px;
  }
}

@media (max-width: 480px) {
  .hero-names {
    font-size: clamp(1.85rem, 11vw, 2.75rem);
  }

  .detail-card {
    padding: 1.5rem 1rem;
  }

  .gallery-grid {
    gap: 0.75rem;
  }

  .gallery-item {
    border-width: 2px;
  }
}
