/* ==========================================================================
   Classic Elegance / Royal Theme Variables
   ========================================================================== */
:root {
    --bg-main: #FDFCF9;       /* Warm Ivory / Off-white */
    --gold: #C2A878;          /* Antique Gold */
    --gold-light: #E6DBC6;    
    --text-dark: #2C302E;     /* Deep Charcoal */
    --text-muted: #757A77;
    --white: #FFFFFF;
    
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Lora', serif;
    
    --transition: all 0.5s ease;
}

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

body {
    font-family: var(--font-body);
    background-color: var(--bg-main);
    color: var(--text-dark);
    line-height: 1.8;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: var(--gold);
}

.container {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 40px;
    text-align: center;
}

/* ==========================================================================
   Fixed Ornamental Border (Corner accents)
   ========================================================================== */
.fixed-border {
    position: fixed;
    top: 20px; left: 20px; right: 20px; bottom: 20px;
    border: 1px solid var(--gold-light);
    pointer-events: none;
    z-index: 100;
}
.corner {
    position: absolute;
    width: 30px; height: 30px;
    border: 2px solid var(--gold);
}
.corner.top-left { top: -2px; left: -2px; border-right: none; border-bottom: none; }
.corner.top-right { top: -2px; right: -2px; border-left: none; border-bottom: none; }
.corner.bottom-left { bottom: -2px; left: -2px; border-right: none; border-top: none; }
.corner.bottom-right { bottom: -2px; right: -2px; border-left: none; border-top: none; }

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-royal {
    position: relative;
    height: 100vh;
    min-height: 800px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.hero-bg {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 1;
    opacity: 0.15; /* Very subtle background */
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Gradient fade at bottom of hero to blend into next section */
.hero-royal::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 300px;
    background: linear-gradient(to top, var(--bg-main), transparent);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    max-width: 800px;
    background: rgba(253, 252, 249, 0.85); /* Frosty ivory overlay behind text */
    padding: 60px;
    border: 1px solid var(--gold-light);
}

.monogram {
    font-family: var(--font-heading);
    font-size: 3rem;
    color: var(--gold);
    margin-bottom: 30px;
    display: inline-block;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--gold);
}
.monogram .amp {
    font-size: 2rem;
    margin: 0 10px;
    font-style: italic;
    color: var(--text-dark);
}

.invite-intro {
    font-style: italic;
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    letter-spacing: 1px;
}

.names {
    font-family: var(--font-heading);
    font-size: 4rem;
    font-weight: 400;
    line-height: 1.3;
    margin-bottom: 40px;
    color: var(--text-dark);
}

.and-word {
    display: block;
    font-family: var(--font-body);
    font-size: 1.2rem;
    font-style: italic;
    color: var(--gold);
    margin: 10px 0;
}

.date-formal {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}
.date-formal .day, .date-formal .year {
    font-size: 1.8rem;
    color: var(--gold);
}
.date-formal .month {
    border-left: 1px solid var(--gold-light);
    border-right: 1px solid var(--gold-light);
    padding: 0 20px;
}

/* ==========================================================================
   Details Section
   ========================================================================== */
.details-royal {
    padding: 100px 0 150px;
    position: relative;
    z-index: 3;
}

.details-grid {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 60px;
}

.detail-col {
    flex: 1;
    max-width: 400px;
}

.detail-divider {
    width: 1px;
    height: 200px;
    background: var(--gold-light);
    margin-top: 40px;
}

.ornament-icon {
    margin-bottom: 20px;
}

.detail-col h3 {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-style: italic;
    font-weight: 400;
    color: var(--gold);
    margin-bottom: 20px;
}

.detail-col .time {
    font-size: 1.2rem;
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.detail-col .location {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.detail-col .address {
    color: var(--text-muted);
    font-size: 1rem;
    font-style: italic;
}

/* ==========================================================================
   RSVP Form Section
   ========================================================================== */
.rsvp-royal {
    padding: 100px 0;
    background-color: var(--white);
    position: relative;
    z-index: 3;
    border-top: 1px solid var(--gold-light);
    border-bottom: 1px solid var(--gold-light);
}

.rsvp-card {
    max-width: 700px;
    margin: 0 auto;
}

.title-serif {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 400;
    color: var(--gold);
    margin-bottom: 10px;
    letter-spacing: 4px;
}

.subtitle-serif {
    font-style: italic;
    color: var(--text-muted);
    margin-bottom: 50px;
}

.formal-form .input-row {
    margin-bottom: 30px;
}

.formal-form .split {
    display: flex;
    gap: 30px;
}
.formal-form .split > * {
    flex: 1;
}

.formal-form input,
.formal-form select {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--gold);
    padding: 15px 0;
    font-family: var(--font-body);
    font-size: 1.1rem;
    color: var(--text-dark);
    border-radius: 0;
    transition: var(--transition);
    appearance: none;
    text-align: center;
}

.formal-form input::placeholder {
    color: var(--text-muted);
    font-style: italic;
}

.formal-form input:focus,
.formal-form select:focus {
    outline: none;
    border-bottom-width: 2px;
}

.btn-royal {
    margin-top: 20px;
    display: inline-block;
    padding: 15px 50px;
    background: transparent;
    border: 1px solid var(--gold);
    color: var(--gold);
    font-family: var(--font-heading);
    font-size: 1rem;
    letter-spacing: 3px;
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
}

.btn-royal:hover {
    background: var(--gold);
    color: var(--white);
}

.form-message {
    margin-top: 30px;
    font-style: italic;
    font-size: 1.1rem;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer-royal {
    padding: 80px 0;
    background-color: var(--bg-main);
    text-align: center;
    position: relative;
    z-index: 3;
}

.monogram-small {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--gold);
    margin-bottom: 20px;
}
.monogram-small span {
    font-style: italic;
    font-size: 1.2rem;
    color: var(--text-muted);
    margin: 0 10px;
}

.brand {
    font-size: 0.9rem;
    font-style: italic;
    color: var(--text-muted);
}
.brand a {
    color: var(--text-dark);
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 768px) {
    .fixed-border { top: 10px; left: 10px; right: 10px; bottom: 10px; }
    .hero-royal { padding: 20px; }
    .hero-content { padding: 40px 20px; }
    .names { font-size: 2.5rem; }
    .details-grid { flex-direction: column; align-items: center; gap: 40px; }
    .detail-divider { width: 200px; height: 1px; margin: 0; }
    .formal-form .split { flex-direction: column; gap: 30px; }
}

/* ==========================================================================
   Action Buttons (Calendar & Map)
   ========================================================================== */
.action-buttons-section {
    padding: 40px 0;
    position: relative;
    z-index: 10;
}
.action-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    width: 100%;
}
.btn-action {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 26px;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none !important;
    transition: all 0.3s ease;
    background: rgba(128, 128, 128, 0.1);
    color: inherit;
    border: 1px solid currentColor;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}
.btn-action:hover {
    background: rgba(128, 128, 128, 0.3);
    transform: translateY(-3px);
}
.btn-action i {
    font-size: 1.3rem;
}

.map-link-inline {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 10px;
    padding: 6px 12px;
    border-radius: 20px;
    background: rgba(0,0,0,0.05);
    color: inherit;
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none !important;
    border: 1px solid currentColor;
    transition: all 0.3s ease;
}
.map-link-inline:hover {
    background: rgba(0,0,0,0.1);
}
