/* ==========================================================================
   Luxury & Gold Theme Variables
   ========================================================================== */
:root {
    --bg-dark: #0B110F;      /* Deep Royal Emerald / Almost Black */
    --bg-card: #141E1A;      /* Slightly lighter for cards */
    --gold: #D4AF37;         /* Classic Gold */
    --gold-light: #F9E596;   
    --gold-dark: #997A15;
    --text-light: #FDFBF7;
    --text-muted: rgba(253, 251, 247, 0.6);
    
    --font-serif: 'Cinzel', serif;
    --font-sans: 'Montserrat', sans-serif;
    
    --transition: all 0.4s ease;
}

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

body {
    font-family: var(--font-sans);
    background-color: var(--bg-dark);
    color: var(--text-light);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

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

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

.section-title {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    color: var(--gold);
    margin-bottom: 40px;
    letter-spacing: 2px;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-royal {
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    /* Added stunning background image with dark gradient overlay */
    background: linear-gradient(rgba(11, 17, 15, 0.7), rgba(11, 17, 15, 0.9)), 
                url('https://images.unsplash.com/photo-1519167758481-83f550bb49b3?auto=format&fit=crop&q=80&w=2000');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.gold-border-inner {
    width: 100%;
    max-width: 800px;
    padding: 60px 40px;
    border: 2px solid var(--gold);
    border-radius: 5px;
    position: relative;
    text-align: center;
    background: rgba(11, 17, 15, 0.7);
    box-shadow: 0 0 40px rgba(212, 175, 55, 0.1);
}

/* Corner Ornaments using CSS */
.gold-border-inner::before,
.gold-border-inner::after {
    content: '';
    position: absolute;
    width: 40px;
    height: 40px;
    border: 2px solid var(--gold);
}
.gold-border-inner::before {
    top: -10px;
    left: -10px;
    border-right: none;
    border-bottom: none;
}
.gold-border-inner::after {
    bottom: -10px;
    right: -10px;
    border-left: none;
    border-top: none;
}

.crest-icon {
    width: 60px;
    margin-bottom: 20px;
    filter: invert(79%) sepia(35%) saturate(738%) hue-rotate(352deg) brightness(94%) contrast(89%); /* Make it gold */
}

.hero-royal .eyebrow {
    font-family: var(--font-sans);
    font-size: 0.8rem;
    letter-spacing: 4px;
    color: var(--text-muted);
    margin-bottom: 30px;
}

.hero-royal .names {
    font-family: var(--font-serif);
    font-size: 4rem;
    line-height: 1.1;
    color: var(--gold-light);
    text-shadow: 0 2px 10px rgba(212, 175, 55, 0.3);
    margin-bottom: 40px;
}

.hero-royal .names span {
    font-size: 2rem;
    color: var(--gold);
    font-style: italic;
}

.date-ribbon {
    display: inline-block;
    border-top: 1px solid var(--gold);
    border-bottom: 1px solid var(--gold);
    padding: 10px 30px;
    font-size: 1.2rem;
    letter-spacing: 3px;
    color: var(--text-light);
}

/* ==========================================================================
   Events Section (Dual)
   ========================================================================== */
.events-section {
    padding: 100px 0;
    background-image: url('data:image/svg+xml;utf8,<svg width="20" height="20" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><circle cx="2" cy="2" r="1" fill="%23D4AF37" fill-opacity="0.1"/></svg>');
}

.events-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: stretch;
}

.event-card {
    background: var(--bg-card);
    padding: 30px;
    border: 1px solid rgba(212, 175, 55, 0.2);
    transition: var(--transition);
}

.event-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(212, 175, 55, 0.05);
    border-color: var(--gold);
}

.card-border {
    padding: 40px 20px;
    border: 1px dashed rgba(212, 175, 55, 0.3);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.event-icon {
    font-size: 3rem;
    color: var(--gold);
    margin-bottom: 20px;
}

.event-card h3 {
    font-family: var(--font-serif);
    font-size: 2rem;
    color: var(--gold-light);
    margin-bottom: 20px;
}

.event-details {
    margin-bottom: 30px;
}

.event-details p {
    margin-bottom: 10px;
    font-size: 1rem;
    color: var(--text-light);
}

.event-details strong {
    color: var(--gold);
    font-weight: 400;
}

.dress-code {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-style: italic;
    margin-bottom: 30px;
}

.btn-gold-outline {
    display: inline-block;
    padding: 12px 30px;
    border: 1px solid var(--gold);
    color: var(--gold);
    font-family: var(--font-sans);
    font-size: 0.9rem;
    letter-spacing: 2px;
    transition: var(--transition);
}

.btn-gold-outline:hover {
    background: var(--gold);
    color: var(--bg-dark);
}

/* ==========================================================================
   RSVP Form
   ========================================================================== */
.rsvp-royal {
    padding: 80px 0 120px;
}

.rsvp-box {
    max-width: 600px;
    margin: 0 auto;
    background: var(--bg-card);
    padding: 50px;
    border-top: 3px solid var(--gold);
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}

.rsvp-box .subtitle {
    color: var(--text-muted);
    margin-bottom: 40px;
    font-size: 0.95rem;
}

.royal-form .form-group {
    margin-bottom: 25px;
}

.royal-form input[type="text"],
.royal-form select {
    width: 100%;
    background: transparent;
    border: 1px solid rgba(212, 175, 55, 0.3);
    padding: 15px;
    color: var(--text-light);
    font-family: var(--font-sans);
    font-size: 1rem;
    transition: var(--transition);
}

.royal-form input[type="text"]:focus,
.royal-form select:focus {
    outline: none;
    border-color: var(--gold);
}

.royal-form select option {
    background: var(--bg-card);
    color: var(--text-light);
}

.events-selection {
    text-align: left;
    margin-bottom: 30px;
    padding: 20px;
    background: rgba(0,0,0,0.2);
    border: 1px solid rgba(212, 175, 55, 0.1);
}

.events-selection h4 {
    font-family: var(--font-serif);
    color: var(--gold);
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.checkbox-container {
    display: block;
    position: relative;
    padding-left: 35px;
    margin-bottom: 15px;
    cursor: pointer;
    font-size: 0.95rem;
    color: var(--text-light);
    user-select: none;
}

.checkbox-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: absolute;
    top: 0;
    left: 0;
    height: 20px;
    width: 20px;
    background-color: transparent;
    border: 1px solid rgba(212, 175, 55, 0.5);
}

.checkbox-container:hover input ~ .checkmark {
    border-color: var(--gold);
}

.checkbox-container input:checked ~ .checkmark {
    background-color: var(--gold);
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.checkbox-container input:checked ~ .checkmark:after {
    display: block;
}

.checkbox-container .checkmark:after {
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid var(--bg-dark);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.btn-gold-solid {
    width: 100%;
    padding: 15px;
    background: var(--gold);
    color: var(--bg-dark);
    border: none;
    font-family: var(--font-serif);
    font-weight: 600;
    font-size: 1.1rem;
    letter-spacing: 2px;
    cursor: pointer;
    transition: var(--transition);
}

.btn-gold-solid:hover {
    background: var(--gold-light);
}

.form-message {
    margin-top: 15px;
    font-weight: 600;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer-royal {
    text-align: center;
    padding: 40px 0;
    background: #080D0B;
}

.footer-royal h2 {
    font-family: var(--font-serif);
    color: var(--gold);
    font-size: 2rem;
    margin-bottom: 15px;
}

.divider {
    width: 50px;
    height: 1px;
    background: var(--gold);
    margin: 0 auto 20px;
}

.brand {
    font-size: 0.8rem;
    color: var(--text-muted);
    letter-spacing: 2px;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 768px) {
    .events-grid { grid-template-columns: 1fr; }
    .hero-royal .names { font-size: 3rem; }
    .hero-royal .names span { font-size: 1.5rem; }
    .gold-border-inner { padding: 40px 20px; }
}

/* ==========================================================================
   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);
}
