:root {
  --color-bg: #fdf8f5;
  --color-bg-alt: #f5efe9;
  --color-text: #5a4a42;
  --color-text-dark: #3d2c28;
  --color-burgundy: #7d2935;
  --color-gold: #b8956a;
  --color-gold-light: #d4b896;
  --color-white: #ffffff;
  --font-script: "Great Vibes", cursive;
  --font-serif: "Cormorant Garamond", Georgia, serif;
  --font-sans: "Montserrat", "Segoe UI", sans-serif;
  --sidebar-width: 280px;
  --transition: 0.3s ease;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 2rem; }
body { font-family: var(--font-sans); font-weight: 300; color: var(--color-text); background: var(--color-bg); line-height: 1.7; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
.sidebar { position: fixed; top: 0; left: 0; width: var(--sidebar-width); height: 100vh; background: var(--color-bg); border-right: 1px solid rgba(125,41,53,0.12); z-index: 100; }
.sidebar-inner { display: flex; flex-direction: column; height: 100%; padding: 2.5rem 2rem; }
.sidebar-brand { text-align: center; margin-bottom: 3rem; }
.floral-icon { width: 50px; height: 35px; color: var(--color-burgundy); margin: 0 auto 1rem; }
.brand-names { font-family: var(--font-script); font-size: 2rem; color: var(--color-burgundy); display: block; line-height: 1.2; }
.brand-date { font-size: 0.7rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--color-text); margin-top: 0.3rem; display: block; }
.sidebar-nav { flex: 1; display: flex; align-items: center; }
.sidebar-nav ul { width: 100%; }
.nav-link { display: block; padding: 0.6rem 0; font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-text); transition: color var(--transition); position: relative; }
.nav-link::after { content: ""; position: absolute; bottom: 0; left: 0; width: 0; height: 1px; background: var(--color-burgundy); transition: width var(--transition); }
.nav-link:hover, .nav-link.active { color: var(--color-burgundy); }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }
.sidebar-footer { text-align: center; padding-top: 2rem; border-top: 1px solid rgba(125,41,53,0.12); }
.brand-names-small { font-family: var(--font-script); font-size: 1.1rem; color: var(--color-burgundy); display: block; }
.brand-date-small { font-size: 0.6rem; letter-spacing: 0.1em; text-transform: uppercase; opacity: 0.7; }
.menu-toggle { display: none; position: fixed; top: 1rem; left: 1rem; z-index: 200; width: 44px; height: 44px; background: var(--color-bg); border: 1px solid rgba(125,41,53,0.3); border-radius: 4px; cursor: pointer; flex-direction: column; align-items: center; justify-content: center; gap: 5px; padding: 10px; }
.menu-toggle span { display: block; width: 20px; height: 2px; background: var(--color-burgundy); transition: var(--transition); }
.menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }
.main-content { margin-left: var(--sidebar-width); }
.section { position: relative; }
.section-inner { max-width: 900px; margin: 0 auto; padding: 5rem 2rem; position: relative; z-index: 2; }
.section-label { font-size: 0.75rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--color-burgundy); margin-bottom: 0.5rem; }
.section-title { font-family: var(--font-serif); font-size: 2.5rem; font-weight: 400; color: var(--color-text-dark); margin-bottom: 2rem; }
.section-title.centered { text-align: center; }
.section-intro { font-family: var(--font-script); font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 400; color: var(--color-burgundy); text-align: center; margin-bottom: 0.5rem; line-height: 1.2; }
.section-intro--bold { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 600; margin-bottom: 1.5rem; -webkit-text-stroke: 0.3px currentColor; }
.hero { min-height: 100vh; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; background-image: url("../images/hero-bg.png"); background-size: cover; background-position: center; background-color: #fdf8f5; }
.hero-bg--alt1 { background-image: url("../images/fundal-1.jfif"); background-position: center 40%; background-color: #fdf8f5; }
.hero-bg--alt2 { background-image: url("../images/fundal-2.jfif"); background-position: center 60%; background-color: #fdf8f5; }
.hero-bg--floral { background-image: url("../images/fundal-principal.png"); background-color: #ffffff; background-position: center; background-size: contain; background-repeat: no-repeat; }
@media (min-width: 769px) {
  .hero-bg--floral { background-image: url("../images/fundal-desktop.png"); background-color: #fdf8f5; background-size: cover; background-repeat: no-repeat; }
}
.hero-bg--alt1::after, .hero-bg--alt2::after { content: ""; position: absolute; inset: 0; background: rgba(253, 248, 245, 0.45); }
.hero-content { position: relative; z-index: 2; text-align: center; padding: 2rem; max-width: 650px; }
.hero-title { font-family: var(--font-script); font-size: clamp(3rem, 8vw, 5.5rem); color: var(--color-burgundy); margin-bottom: 1.5rem; line-height: 1.1; }
.hero-subtitle { font-family: var(--font-serif); font-size: clamp(1rem, 2.5vw, 1.35rem); color: var(--color-text-dark); font-weight: 400; line-height: 1.8; }
.hero-subtitle strong { display: block; margin-top: 0.75rem; font-weight: 600; }
.hero-heart { margin-top: 2rem; }
.hero-heart svg { width: 28px; height: 28px; color: var(--color-burgundy); opacity: 0.7; animation: heartbeat 2s ease-in-out infinite; }
@keyframes heartbeat { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.15); } }
.about { background: var(--color-bg); }

.about-title { font-family: var(--font-script); font-size: clamp(2.4rem, 5vw, 3.5rem); font-weight: 400; color: var(--color-burgundy); margin-bottom: 1.5rem; line-height: 1.2; }.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.about-image { width: 100%; max-width: min(420px, 100%); margin: 0 auto; }
.about-image-frame { position: relative; width: 100%; padding: clamp(4px, 0.6vw, 6px); background: var(--color-bg); border: 2px solid var(--color-gold); }
.about-image-frame img { display: block; width: 100%; height: auto; aspect-ratio: 2/3; object-fit: cover; object-position: center top; }
.about-text .section-title { font-family: var(--font-script); font-size: 2.2rem; color: var(--color-burgundy); margin-bottom: 1rem; }
.godparents { font-family: var(--font-serif); font-size: 1.2rem; color: var(--color-text-dark); margin-bottom: 2.5rem; line-height: 1.8; }
.countdown-label { font-family: var(--font-script); font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 400; color: var(--color-burgundy); margin-bottom: 1rem; line-height: 1.3; }
.countdown { display: flex; gap: 1.5rem; margin-bottom: 2rem; }
.countdown-number { display: block; font-family: var(--font-serif); font-size: 2.5rem; font-weight: 500; color: var(--color-burgundy); line-height: 1; }
.countdown-unit { display: block; font-size: 0.65rem; letter-spacing: 0.15em; text-transform: uppercase; margin-top: 0.4rem; }
.about-message { font-family: var(--font-serif); font-size: 1.35rem; font-style: italic; color: var(--color-text-dark); margin-bottom: 0.75rem; }
.about-date { font-size: 1rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--color-burgundy); }
.locations { position: relative; }
.locations-bg { position: absolute; inset: 0; background-image: url("../images/about-bg.png"); background-size: cover; background-position: center; opacity: 0.08; }
.location-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }

.location-card-frame { width: 100%; margin-bottom: 1.5rem; padding: clamp(4px, 0.6vw, 6px); background: var(--color-bg); border: 2px solid var(--color-gold); }
.location-card-frame img { display: block; width: 100%; height: auto; aspect-ratio: 4/3; object-fit: cover; object-position: center; }.location-card { background: rgba(255,255,255,0.92); padding: 2.5rem 2rem; text-align: center; border: 1px solid rgba(125,41,53,0.12); backdrop-filter: blur(4px); transition: box-shadow var(--transition); }
.location-card:hover { box-shadow: 0 8px 30px rgba(125,41,53,0.1); }
.location-card h3 { font-family: var(--font-serif); font-size: 1.4rem; font-weight: 500; color: var(--color-text-dark); margin-bottom: 1rem; }
.location-time { font-size: 0.85rem; color: var(--color-burgundy); margin-bottom: 1rem; letter-spacing: 0.05em; }
.location-address { font-size: 0.9rem; line-height: 1.8; margin-bottom: 1.5rem; }
.btn-map { display: inline-block; padding: 0.6rem 1.8rem; font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--color-burgundy); border: 1px solid var(--color-burgundy); transition: all var(--transition); }
.btn-map:hover { background: var(--color-burgundy); color: var(--color-white); }
.rsvp { background: var(--color-bg-alt); }
.rsvp-intro { text-align: center; max-width: 600px; margin: 0 auto 3rem; font-size: 0.95rem; line-height: 1.8; }
.rsvp-form { max-width: 600px; margin: 0 auto; }
.form-row { margin-bottom: 1.5rem; }
.form-row.two-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.form-group label { display: block; font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 0.5rem; }
.form-group input, .form-group select, .form-group textarea { width: 100%; padding: 0.85rem 1rem; font-family: var(--font-sans); font-size: 0.9rem; font-weight: 300; color: var(--color-text-dark); background: var(--color-white); border: 1px solid rgba(125,41,53,0.2); outline: none; transition: border-color var(--transition); }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--color-burgundy); }
.error-msg { display: none; font-size: 0.75rem; color: #c0392b; margin-top: 0.3rem; }
.form-group.invalid .error-msg { display: block; }
.form-group.invalid input, .form-group.invalid select { border-color: #c0392b; }
.form-actions { display: flex; gap: 1rem; margin-top: 2rem; }
.btn { flex: 1; padding: 1rem 1.5rem; font-family: var(--font-sans); font-size: 0.8rem; font-weight: 400; letter-spacing: 0.1em; text-transform: uppercase; border: 1px solid; cursor: pointer; transition: all var(--transition); }
.btn-decline { background: transparent; color: var(--color-text); border-color: rgba(125,41,53,0.3); }
.btn-decline:hover { border-color: var(--color-text-dark); }
.btn-accept { background: var(--color-burgundy); color: var(--color-white); border-color: var(--color-burgundy); }
.btn-accept:hover { background: #9a3342; }
.btn:disabled { opacity: 0.6; cursor: not-allowed; }
.rsvp-message { max-width: 500px; margin: 3rem auto 0; text-align: center; padding: 2.5rem; border: 1px solid rgba(125,41,53,0.15); background: var(--color-white); }
.rsvp-message.hidden { display: none; }
.rsvp-message.error { margin-top: 1.5rem; padding: 1rem; color: #8b2e3a; background: rgba(125,41,53,0.08); border-color: rgba(125,41,53,0.2); }
.rsvp-message h3 { font-family: var(--font-serif); font-size: 1.3rem; font-weight: 400; color: var(--color-text-dark); }
.rsvp-hidden-frame { display: none; width: 0; height: 0; border: 0; visibility: hidden; }
.footer { background: var(--color-bg); padding: 4rem 2rem; text-align: center; border-top: 1px solid rgba(125,41,53,0.1); }
.footer-names { font-family: var(--font-script); font-size: 2.5rem; color: var(--color-burgundy); margin-bottom: 0.5rem; }
.footer-date { font-size: 0.75rem; letter-spacing: 0.15em; text-transform: uppercase; margin-bottom: 1rem; }
.footer-credit { font-size: 0.8rem; opacity: 0.6; }
@media (max-width: 1024px) { .about-grid { grid-template-columns: 1fr; } .about-image { max-width: 500px; margin: 0 auto; } }
@media (max-width: 768px) {
  :root { --sidebar-width: 0px; }
  .menu-toggle { display: flex; }
  .sidebar { transform: translateX(-100%); width: 260px; transition: transform var(--transition); box-shadow: 4px 0 20px rgba(0,0,0,0.1); }
  .sidebar.open { transform: translateX(0); }
  .main-content { margin-left: 0; }
  .section-inner { padding: 4rem 1.5rem; }
  .location-cards, .form-row.two-cols { grid-template-columns: 1fr; }
  .form-actions { flex-direction: column; }
}
