/* Elegant minimalist theme for David & Karolina */
:root {
  --bg: #ffffff;
  --text: #2b2b2b;
  --muted: #6b6b6b;
  --rose: #c76b7b;
  --rose-ink: #a03f55;
  --rose-50: #fff2f5;
  --champagne: #B69B7C;
  --border: #ececec;
  --shadow: 0 8px 30px rgba(0,0,0,0.05);
}

* { 
  box-sizing: border-box;
  cursor: url('/frog-cursor.svg'), auto;
}
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Cormorant Garamond', Georgia, 'Times New Roman', Times, serif;
  color: var(--text);
  background: var(--bg);
  font-weight: 300;
  cursor: url('/frog-cursor.svg'), auto;
}

.container { width: 100%; max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.container.narrow { max-width: 760px; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* Navigation */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,0.8); backdrop-filter: blur(8px); border-bottom: 1px solid var(--border); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; padding: 16px 0; }
.brand { letter-spacing: 0.04em; font-size: 20px; color: var(--text); }
.amp { color: var(--rose); font-style: italic; }
.menu { display: none; gap: 20px; align-items: center; }
.menu-link { position: relative; text-decoration: none; color: var(--muted); padding: 4px 0; border-bottom: 1px solid transparent; transition: color .2s ease; font-size: 14px; letter-spacing: 0.06em; }
.menu-link:hover { color: var(--rose-ink); }
.menu-link.active { color: var(--rose-ink); }
.menu-link::after { content: ""; position: absolute; left: 50%; bottom: -2px; width: 0; height: 1px; background: var(--rose-ink); transition: width .2s ease, left .2s ease; }
.menu-link:hover::after, .menu-link.active::after { width: 100%; left: 0; }
.menu-link:focus-visible { outline: 2px solid var(--rose-ink); outline-offset: 2px; border-radius: 2px; }
.lang-switch { position: relative; }
.lang-switch select { display: none; }
.lang-btn { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; background: rgba(255,255,255,0.9); border: 1px solid var(--border); border-radius: 12px; color: var(--muted); font-size: 14px; letter-spacing: 0.08em; cursor: url('/frog-cursor.svg'), pointer; box-shadow: var(--shadow); }
.lang-btn:hover { color: var(--rose-ink); border-color: var(--rose); }
.lang-btn:focus-visible { outline: 2px solid var(--rose-ink); outline-offset: 2px; }
.lang-btn .globe { display: inline-flex; color: var(--muted); }
.lang-btn .chev { display: inline-flex; color: var(--muted); }
.lang-btn[aria-expanded="true"] .chev { transform: rotate(180deg); transition: transform .2s ease; }

.lang-menu { position: absolute; right: 0; top: calc(100% + 8px); background: #fff; border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow); padding: 6px; min-width: 200px; display: none; z-index: 60; }
.lang-menu.open { display: block; }
.lang-menu li { list-style: none; padding: 10px 12px; border-radius: 8px; color: var(--text); display: flex; align-items: center; justify-content: space-between; gap: 12px; cursor: url('/frog-cursor.svg'), pointer; }
.lang-menu li:hover { background: var(--rose-50); }
.lang-menu li[aria-selected="true"] { background: rgba(199,107,123,0.08); }
.lang-menu li[aria-selected="true"]::after { content: '✓'; color: var(--rose-ink); font-size: 14px; }

@media (min-width: 760px) { .menu { display: flex; } }

/* Sections */
.section { padding: 88px 0; }
.section-title { font-weight: 300; font-size: 44px; margin: 0 0 28px; text-align: center; letter-spacing: 0.05em; }
.subtitle { color: var(--muted); font-size: 20px; margin-top: 10px; letter-spacing: 0.06em; }
.lead { color: var(--muted); text-align: center; font-size: 20px; margin: 0 0 8px; }
.deadline { color: var(--muted); text-align: center; font-size: 16px; margin: 0 0 24px; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.note { text-align: center; color: var(--muted); font-style: italic; margin-top: 16px; }

/* Hero */
.hero { position: relative; text-align: center; min-height: 70vh; display: flex; align-items: center; }
.hero::before { content: ""; position: absolute; inset: 0; background-image: url('/PXL_20240401_124442842.jpg'); background-size: cover; background-position: center center; background-repeat: no-repeat; filter: saturate(105%) contrast(98%); z-index: 0; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background:
  linear-gradient(to bottom, rgba(0,0,0,0.40), rgba(0,0,0,0.22) 45%, rgba(0,0,0,0.15)),
  radial-gradient(600px 300px at 50% 0%, rgba(199,107,123,0.18), rgba(0,0,0,0) 70%);
}
.hero-inner { position: relative; z-index: 2; padding: 64px 0; width: 100%; }
.hero-icon { color: var(--rose); margin-bottom: 16px; }
.hero-icon svg { display: inline-block; }
.display { font-family: 'Playfair Display', 'Cormorant Garamond', serif; font-weight: 600; font-size: clamp(48px, 9vw, 104px); margin: 0; letter-spacing: 0.015em; color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,0.25); }
.subtitle { color: #f4f4f4; text-shadow: 0 1px 2px rgba(0,0,0,0.25); }
.ornament { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 12px auto 2px; }
.ornament .line { width: 120px; height: 1px; background: linear-gradient(90deg, rgba(255,255,255,0), rgba(255,255,255,0.7), rgba(255,255,255,0)); }
.ornament .dot { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,0.85); }

/* Cards */
.cards { display: grid; grid-template-columns: 1fr; gap: 20px; max-width: 720px; margin: 28px auto; }
.card { background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 28px; text-align: center; box-shadow: var(--shadow); }
.card::before { content: ""; display: block; position: absolute; }
.card-icon { font-size: 28px; color: var(--rose-ink); margin-bottom: 12px; }
.card-title { font-weight: 400; font-size: 24px; margin: 0 0 6px; letter-spacing: 0.04em; }
.card-date { font-family: 'Playfair Display', serif; font-weight: 600; letter-spacing: 0.2em; }

@media (min-width: 680px) { .cards { grid-template-columns: repeat(2, 1fr); } }

/* Buttons */
.btn { appearance: none; border: 1px solid var(--rose); color: var(--rose-ink); background: transparent; padding: 12px 22px; border-radius: 999px; letter-spacing: 0.08em; font-size: 15px; cursor: url('/frog-cursor.svg'), pointer; transition: background .2s ease, color .2s ease, border-color .2s ease, transform .1s ease; }
.btn:hover { background: var(--rose-50); }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--rose-ink); color: #fff; border-color: var(--rose-ink); }
.btn.primary:hover { background: var(--rose); border-color: var(--rose); }
.btn.outline { border-color: rgba(255,255,255,0.85); color: #fff; }
.btn.outline:hover { background: rgba(255,255,255,0.10); border-color: #fff; }
.btn:disabled { opacity: 0.6; cursor: not-allowed; }

/* Add to calendar link */
.addcal { display: inline-block; margin-top: 10px; color: var(--rose-ink); text-decoration: none; border-bottom: 1px dotted var(--rose-ink); padding-bottom: 2px; font-size: 14px; letter-spacing: 0.06em; }
.addcal:hover { color: var(--rose); border-bottom-color: var(--rose); }

/* Map container */
.map-container {
  max-width: 900px;
  margin: 2.5rem auto 0;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0,0,0,0.12);
  border: 1px solid var(--border);
  background: #fff;
}

.map-container iframe {
  display: block;
  width: 100%;
  height: 400px;
}

@media (max-width: 768px) {
  .map-container iframe {
    height: 300px;
  }
}

@media (max-width: 480px) {
  .map-container {
    margin: 1.5rem -20px 0;
    border-radius: 0;
    border-left: none;
    border-right: none;
  }
  
  .map-container iframe {
    height: 250px;
  }
}

/* RSVP */
.rsvp { background: var(--rose-50); }
.notice { border-left: 4px solid #e6b800; background: #fff6cc; color: #6b5e00; padding: 12px 14px; border-radius: 8px; margin: 0 0 18px; }
.notice.rose { border-left-color: var(--rose-ink); background: #ffe8ee; color: #6e2a3a; }
.form-status { text-align: center; margin-top: 14px; color: var(--rose-ink); }
.success-panel { display: none; margin-top: 14px; background: #ecfbf1; border: 1px solid #b7e4c7; color: #1b5e20; padding: 12px 14px; border-radius: 10px; text-align: center; }
.success-panel[hidden] { display: none; }
.success-panel.show { display: block; }

.field { margin-bottom: 16px; }
.field label { display: block; margin-bottom: 8px; font-size: 15px; color: var(--text); letter-spacing: 0.04em; }
.field input, .field textarea, .lang-switch select { width: 100%; border: 1px solid var(--border); background: #fff; border-radius: 12px; padding: 14px 16px; font-family: inherit; font-size: 16px; color: var(--text); transition: border-color .2s ease, box-shadow .2s ease; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--rose); box-shadow: 0 0 0 3px rgba(199,107,123,0.15); }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: #e55353; }
.error { min-height: 16px; color: #b3261e; font-size: 13px; margin-top: 4px; }

/* Reveal on scroll */
[data-reveal] { opacity: 0; transform: translateY(8px); transition: opacity .35s ease, transform .35s ease; }
[data-reveal].reveal-in { opacity: 1; transform: none; }

/* Invitation text */
.invitation-text { 
  margin: 2.5rem auto 3rem; 
  max-width: 700px; 
  text-align: center;
}
.invitation { 
  font-size: 1.125rem; 
  line-height: 1.75; 
  color: #494949; 
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
  font-style: italic;
  letter-spacing: 0.02em;
}

/* Cursor for interactive elements */
a, button, input[type="submit"], input[type="button"], select, label[for] {
  cursor: url('/frog-cursor.svg'), pointer;
}

input[type="text"], input[type="email"], input[type="number"], textarea {
  cursor: url('/frog-cursor.svg'), text;
}

/* Active/clicking cursor state */
body.clicking * {
  cursor: url('/frog-cursor-open.svg'), auto !important;
}

/* Footer */
.footer { padding: 48px 0 72px; background: #242424; color: #fff; text-align: center; }
.footer .muted { color: #bcbcbc; }
.footer-icon { color: #ffb2c2; margin-bottom: 10px; }
.footline { margin: 0; font-size: 18px; letter-spacing: 0.03em; }

/* Mobile adjustments */
@media (max-width: 480px) {
  .hero-inner { padding: 64px 0; }
  .lang-switch select { padding: 12px; font-size: 16px; }
}
