/* =========================================
   VARIABLES & SETUP
========================================= */
:root {
    /* Colors */
    --c-black: #0F0F11;
    --c-black-alt: #161619;
    --c-black-lighter: #232328;
    
    --c-gold: #D4AF37;
    --c-gold-light: #F3E5AB;
    --c-gold-dark: #AA8C2C;
    
    --c-ivory: #FFFFF0;
    --c-white: #FFFFFF;
    
    --c-emerald: #064E3B;
    --c-emerald-light: #065F46;
    --c-emerald-dark: #022C22;
    
    --c-text-main: #F3F4F6;
    --c-text-muted: #9CA3AF;
    
    --c-border: rgba(212, 175, 55, 0.2);
    
    /* Typography */
    --f-heading: 'Bodoni Moda', serif;
    --f-body: 'Montserrat', sans-serif;
    
    /* UI */
    --t-fast: 0.3s ease;
    --t-slow: 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--f-body);
    background-color: var(--c-black);
    color: var(--c-text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

/* =========================================
   TYPOGRAPHY & UTILITIES
========================================= */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--f-heading);
    font-weight: 500;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--t-fast);
}

ul { list-style: none; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.container-medium { max-width: 900px; }

.section { padding: 100px 0; }

.text-center { text-align: center; }
.text-gold { color: var(--c-gold); }
.text-emerald { color: var(--c-emerald); }
.text-black { color: var(--c-black); }
.text-muted { color: var(--c-text-muted); }
.italic { font-style: italic; }
.small-caps { font-variant: small-caps; font-size: 0.9rem; letter-spacing: 2px; }
.text-sm { font-size: 0.9rem; }

.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-5 { margin-bottom: 3rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-5 { margin-top: 3rem; }
.pt-0 { padding-top: 0; }
.pt-5 { padding-top: 4rem; }
.p-4 { padding: 2rem; }
.mx-auto { margin-left: auto; margin-right: auto; }
.w-100 { width: 100%; }

.align-center { display: flex; align-items: center; }
.justify-center { justify-content: center; }

.border-gold { border: 1px solid var(--c-border); }
.border-top { border-top: 1px solid var(--c-border); }

.img-fluid { width: 100%; height: auto; display: block; }
.rounded-shadow {
    border-radius: 4px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.8);
}

.lead-text {
    font-size: 1.1rem;
    color: var(--c-text-muted);
    font-weight: 300;
}

.divider-gold, .divider-emerald {
    width: 60px;
    height: 2px;
    margin-top: 1.5rem;
    margin-bottom: 2rem;
}
.divider-gold { background-color: var(--c-gold); }
.divider-emerald { background-color: var(--c-emerald); }

/* =========================================
   BUTTONS
========================================= */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.9rem 2.5rem;
    font-family: var(--f-body);
    font-weight: 500;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-radius: 0;
    cursor: pointer;
    transition: var(--t-fast);
    border: 1px solid transparent;
}

.btn-gold-solid {
    background: var(--c-gold);
    color: var(--c-black);
    font-weight: 600;
}

.btn-gold-solid:hover {
    background: var(--c-gold-light);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(212, 175, 55, 0.2);
}

.btn-emerald-solid {
    background: var(--c-emerald);
    color: var(--c-ivory);
    border: 1px solid var(--c-emerald-light);
}

.btn-emerald-solid:hover {
    background: var(--c-emerald-light);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(6, 78, 59, 0.4);
}

/* =========================================
   PRELOADER
========================================= */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--c-black);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.6s ease;
}

.loader-content {
    text-align: center;
}

.gala-logo-mark {
    font-family: var(--f-heading);
    font-size: 4rem;
    color: var(--c-gold);
    margin-bottom: 1rem;
    animation: fadePulse 2s infinite;
}

.loader-text {
    font-family: var(--f-body);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--c-text-muted);
}

@keyframes fadePulse {
    0%, 100% { opacity: 0.3; transform: scale(0.95); }
    50% { opacity: 1; transform: scale(1); }
}

/* =========================================
   NAVIGATION
========================================= */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 0;
    z-index: 1000;
    transition: var(--t-fast);
    border-bottom: 1px solid transparent;
}

.navbar.scrolled {
    padding: 1rem 0;
    background: rgba(15, 15, 17, 0.95);
    backdrop-filter: blur(10px);
    border-bottom-color: rgba(212, 175, 55, 0.1);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-text {
    font-family: var(--f-heading);
    font-size: 1.5rem;
    letter-spacing: 3px;
    color: var(--c-gold);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.nav-item {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--c-text-main);
    opacity: 0.8;
}

.nav-item:hover {
    opacity: 1;
    color: var(--c-gold);
}

.nav-btn {
    padding: 0.6rem 1.5rem;
    font-size: 0.8rem;
}

.mobile-toggle {
    display: none;
    background: transparent;
    border: none;
    color: var(--c-gold);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--c-emerald-dark);
    z-index: 1001;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--t-fast);
}

.mobile-menu.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-inner {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    transform: translateY(20px);
    transition: var(--t-slow);
}

.mobile-menu.active .mobile-menu-inner {
    transform: translateY(0);
}

.close-mobile {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: transparent;
    border: none;
    color: var(--c-gold);
    font-size: 2rem;
    cursor: pointer;
}

.mobile-nav-item {
    font-family: var(--f-heading);
    font-size: 2rem;
    color: var(--c-ivory);
}

.mobile-nav-item:hover {
    color: var(--c-gold);
    font-style: italic;
}

/* =========================================
   HERO SECTION
========================================= */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://images.unsplash.com/photo-1519671282429-b44660ead0a7?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80') center/cover;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(15,15,17,0.7) 0%, rgba(15,15,17,0.95) 100%);
    z-index: 1;
}

.hero-container {
    position: relative;
    z-index: 10;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.edition-badge {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    border: 1px solid var(--c-gold);
    color: var(--c-gold);
    font-family: var(--f-body);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 2rem;
}

.hero-title {
    font-size: clamp(3.5rem, 6vw, 5.5rem);
    margin-bottom: 1.5rem;
    line-height: 1.1;
    color: var(--c-ivory);
}

.hero-desc {
    font-size: 1.15rem;
    color: var(--c-text-muted);
    font-weight: 300;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin-bottom: 3rem;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.meta-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    text-align: left;
}

.meta-item i {
    color: var(--c-gold);
    font-size: 1.2rem;
    margin-top: 0.2rem;
}

.meta-text {
    display: flex;
    flex-direction: column;
}

.meta-text strong {
    font-weight: 500;
    font-size: 1.05rem;
    color: var(--c-ivory);
}

.meta-text span {
    font-size: 0.9rem;
    color: var(--c-text-muted);
}

.meta-divider {
    width: 1px;
    height: 40px;
    background: rgba(255,255,255,0.1);
}

/* =========================================
   SECTION HEADINGS
========================================= */
.section-subtitle {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: var(--c-gold);
    margin-bottom: 0.8rem;
}

.section-title {
    font-size: 3rem;
    color: var(--c-ivory);
}

/* =========================================
   ABOUT OVERVIEW
========================================= */
.about-section { background: var(--c-black); }

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.honour-name {
    font-size: 1.8rem;
    color: var(--c-ivory);
}

.honour-title {
    font-style: italic;
    color: var(--c-text-muted);
    font-family: var(--f-heading);
    font-size: 1.1rem;
}

.img-wrapper {
    position: relative;
    padding: 1rem 1rem 0 0;
}

.img-accent-border {
    position: absolute;
    top: 0;
    right: 0;
    width: 90%;
    height: 90%;
    border: 2px solid var(--c-gold);
    z-index: 0;
}

.img-wrapper img {
    position: relative;
    z-index: 1;
}

/* =========================================
   AWARD CATEGORIES
========================================= */
.pattern-bg {
    background-color: var(--c-black-alt);
    background-image: radial-gradient(rgba(212, 175, 55, 0.05) 1px, transparent 1px);
    background-size: 30px 30px;
}

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

.category-card {
    background: var(--c-black-lighter);
    padding: 3rem 2rem;
    border: 1px solid rgba(255,255,255,0.03);
    text-align: center;
    transition: var(--t-fast);
}

.category-card:hover {
    border-color: var(--c-border);
    transform: translateY(-5px);
}

.cat-icon {
    font-size: 2.5rem;
    color: var(--c-gold);
    margin-bottom: 1.5rem;
}

.category-card h3 {
    font-family: var(--f-heading);
    font-size: 1.4rem;
    color: var(--c-ivory);
    margin-bottom: 1rem;
}

.category-card p {
    color: var(--c-text-muted);
    font-size: 0.95rem;
}

/* =========================================
   ITINERARY
========================================= */
.itinerary-section { background: var(--c-black); }

.timeline {
    position: relative;
    padding-left: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 2px;
    height: 100%;
    background: rgba(255,255,255,0.05);
}

.timeline-item {
    position: relative;
    padding-bottom: 3rem;
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 2rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    top: 5px;
    left: -2.35rem; /* center on the 2px line */
    width: 12px;
    height: 12px;
    background: var(--c-emerald);
    border-radius: 50%;
    border: 3px solid var(--c-black);
    box-shadow: 0 0 0 1px var(--c-emerald);
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-time h4 {
    font-family: var(--f-body);
    font-size: 1.2rem;
    color: var(--c-emerald);
    font-weight: 600;
}

.timeline-time span {
    font-size: 0.85rem;
    color: var(--c-text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.timeline-content h3 {
    font-size: 1.5rem;
    color: var(--c-ivory);
    margin-bottom: 0.5rem;
    margin-top: -5px; /* align with time */
}

.timeline-content p {
    color: var(--c-text-muted);
}

/* =========================================
   INFO SECTION (DRESS & SEATING)
========================================= */
.dark-emerald-bg {
    background: var(--c-emerald-dark);
    position: relative;
}

.dark-emerald-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0,0,0,0.6) 0%, transparent 100%);
}

.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    position: relative;
    z-index: 2;
}

.info-card {
    background: var(--c-black-alt);
    padding: 4rem 3rem;
    border: 1px solid rgba(212, 175, 55, 0.1);
    text-align: center;
}

.card-icon {
    font-size: 2.5rem;
    color: var(--c-gold);
    margin-bottom: 1.5rem;
}

.card-title {
    font-size: 2.2rem;
    color: var(--c-ivory);
}

.card-subtitle {
    font-family: var(--f-body);
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.info-list {
    text-align: left;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.info-list li {
    margin-bottom: 1rem;
    color: var(--c-text-muted);
    font-size: 0.95rem;
    padding-left: 1.5rem;
    position: relative;
}

.info-list li::before {
    content: '•';
    color: var(--c-gold);
    position: absolute;
    left: 0;
    top: 0;
}

.info-list li strong {
    color: var(--c-text-main);
    font-weight: 500;
}

/* =========================================
   GALLERY
========================================= */
.gallery-section { background: var(--c-black); }

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 250px;
    gap: 1rem;
}

.g-item {
    overflow: hidden;
}

.g-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(40%);
    transition: var(--t-slow);
}

.g-item:hover img {
    filter: grayscale(0%);
    transform: scale(1.05);
}

/* Specific layout */
.img-1 { grid-column: 1 / 3; grid-row: 1 / 3; }
.img-2 { grid-column: 3 / 5; }
.img-3 { grid-column: 3 / 4; }
.img-4 { grid-column: 4 / 5; }
.img-5 { grid-column: 1 / 5; grid-row: 3 / 4; }

/* =========================================
   SPONSORS
========================================= */
.sponsors-section {
    background: var(--c-black);
    padding: 60px 0;
}

.sponsor-heading {
    font-family: var(--f-body);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--c-text-muted);
}

.sponsors-flex {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4rem;
    flex-wrap: wrap;
}

.sponsor-logo {
    font-family: var(--f-heading);
    font-size: 1.5rem;
    color: rgba(255,255,255,0.3);
    letter-spacing: 1px;
    transition: var(--t-fast);
}

.sponsor-logo:hover {
    color: var(--c-ivory);
}

/* =========================================
   RSVP SECTION
========================================= */
.bg-image {
    background: url('https://images.unsplash.com/photo-1517457373958-b7bdd4587205?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80') center/cover fixed;
    position: relative;
}

.rsvp-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(22, 22, 25, 0.9);
}

.rsvp-card {
    position: relative;
    z-index: 2;
    background: var(--c-ivory);
    max-width: 800px;
    margin: 0 auto;
    padding: 4rem;
    border-radius: 2px;
    box-shadow: 0 25px 50px rgba(0,0,0,0.5);
    border-top: 5px solid var(--c-emerald);
}

.rsvp-card .text-muted { color: #6B7280; }

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-family: var(--f-body);
    font-size: 0.85rem;
    color: #374151;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 1rem;
    border: 1px solid #D1D5DB;
    background: #FFF;
    font-family: var(--f-body);
    font-size: 0.95rem;
    color: var(--c-black);
    transition: var(--t-fast);
}

.form-control:focus {
    outline: none;
    border-color: var(--c-emerald);
}

/* Custom Checkbox */
.custom-checkbox {
    display: flex;
    align-items: flex-start;
    position: relative;
    cursor: pointer;
    user-select: none;
    color: #4B5563;
}

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

.checkmark {
    position: relative;
    top: 2px;
    left: 0;
    height: 18px;
    width: 18px;
    background-color: #eee;
    border: 1px solid #D1D5DB;
    margin-right: 10px;
    flex-shrink: 0;
}

.custom-checkbox:hover input ~ .checkmark {
    background-color: #ccc;
}

.custom-checkbox input:checked ~ .checkmark {
    background-color: var(--c-emerald);
    border-color: var(--c-emerald);
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
    left: 5px;
    top: 1px;
    width: 4px;
    height: 9px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

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

/* =========================================
   FOOTER
========================================= */
.footer {
    background: var(--c-black);
    padding: 60px 0 20px;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-desc {
    color: var(--c-text-muted);
    font-style: italic;
    font-family: var(--f-heading);
    font-size: 1.1rem;
}

.footer-socials a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255,255,255,0.1);
    color: var(--c-text-muted);
    margin: 0 0.5rem;
    transition: var(--t-fast);
}

.footer-socials a:hover {
    background: var(--c-gold);
    color: var(--c-black);
    border-color: var(--c-gold);
}

.footer-bottom {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.05);
    color: var(--c-text-muted);
    font-size: 0.85rem;
}

.footer-links a {
    color: var(--c-text-muted);
}
.footer-links a:hover {
    color: var(--c-gold);
}

/* =========================================
   MEDIA QUERIES
========================================= */
@media (max-width: 1024px) {
    .about-grid { gap: 3rem; }
    .hero-title { font-size: 4rem; }
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .mobile-toggle { display: block; }
    
    .hero-title { font-size: 3rem; }
    .hero-meta { flex-direction: column; gap: 1.5rem; text-align: center; }
    .meta-item { justify-content: center; text-align: center; }
    .meta-divider { display: none; }
    
    .about-grid, .info-grid, .form-grid { grid-template-columns: 1fr; }
    .img-wrapper { padding: 0.5rem 0.5rem 0 0; margin-top: 2rem; }
    
    .timeline-item { grid-template-columns: 1fr; gap: 0.5rem; padding-left: 1.5rem; }
    .timeline::before { left: 0; }
    .timeline-item::before { left: -0.35rem; }
    .timeline-time { display: flex; gap: 1rem; align-items: center; }
    
    .gallery-grid { grid-template-columns: 1fr 1fr; }
    .img-1, .img-5 { grid-column: 1 / 3; }
    .img-2, .img-3, .img-4 { grid-column: auto; }
    
    .rsvp-card { padding: 2rem; }
}
