@import 'variables.css';
@import '../MockUps/OurLoveStory/css/style.css';

/* Modern Reset */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    width: 100%;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-background);
    color: var(--color-text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-x: hidden; /* Prevent horizontal scroll */
    width: 100%;
    padding-top: 60px; /* Adjusted space for compact fixed header */
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--spacing-sm);
    color: var(--color-text-main);
    word-wrap: break-word; /* Prevent long words from breaking layout */
}

h1 {
    font-size: 3.5rem;
}

h2 {
    font-size: 2.8rem;
    margin-bottom: var(--spacing-md);
    color: var(--color-primary);
}

h3 {
    font-size: 2rem;
}

p {
    margin-bottom: var(--spacing-sm);
    color: var(--color-text-muted);
    font-weight: 300;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--color-primary);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Utility */
.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

.text-center {
    text-align: center;
}

.section-padding {
    padding: var(--spacing-lg) 0;
}

.bg-surface {
    background-color: var(--color-surface);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 35px;
    font-family: var(--font-body);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all var(--transition-fast);
    border: 1px solid transparent;
    font-size: 0.9rem;
}

.btn-primary {
    background-color: var(--color-primary);
    color: white;
    border-radius: 5px;
}

.btn-primary:hover {
    background-color: var(--color-primary-dark);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background-color: transparent;
    border-color: var(--color-text-main);
    color: var(--color-text-main);
}

.btn-outline:hover {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
    color: white;
}

/* Header & Nav */
header {
    background: white;
    box-shadow: var(--shadow-sm);
    padding: 10px 0; /* Reduced padding */
    position: fixed; /* Fixed to top */
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-primary);
}

nav ul {
    display: flex;
    gap: 30px;
}

nav a {
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-text-main);
    position: relative;
}

nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--color-primary);
    transition: width var(--transition-fast);
}

nav a:hover::after,
nav a.active::after {
    width: 100%;
}

nav a.active {
    color: var(--color-text-main) !important;
    /* Override JS inline style if needed, but class is better */
}

/* Hero Section */
.hero {
    height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-color: #f7f7f7;
    /* Fallback */
    background-image: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)), url('../assets/images/hero_bw.jpg');
    background-size: cover;
    background-position: center;
    color: white;
}

.hero h1 {
    color: white;
    font-size: 5rem;
    margin-bottom: 10px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero h2 {
    color: white;
    font-family: var(--font-body);
    font-weight: 300;
    font-size: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: var(--spacing-md);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.hero-date {
    color: white;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 2rem;
    letter-spacing: 1px;
}

/* Venue Cards */
.venue-card {
    flex: 1;
    min-width: 300px;
    padding: 40px;
    box-shadow: var(--shadow-sm);
    text-align: center;
    background-size: cover;
    background-position: center;
    color: white;
    position: relative;
    z-index: 1;
}

.venue-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    /* Dark overlay for readability */
    z-index: -1;
}

.venue-card h3 {
    color: white !important;
    /* Override primary color */
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.venue-card p,
.venue-card a {
    color: white !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.venue-card .btn {
    text-shadow: none;
}

/* Countdown Section */
.countdown-section {
    padding: 80px 0;
    background: transparent;
    text-align: center;
}

.countdown-header {
    color: var(--color-primary);
    font-size: 2.8rem;
    margin-bottom: var(--spacing-md);
    font-family: var(--font-heading);
}

.silver-decal {
    width: 200px;
    height: 200px;
    margin: 0 auto 40px;
    position: relative;
    padding: 10px;
    background: linear-gradient(135deg, #b0b0b0, #ffffff, #808080);
    border-radius: 50%;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2), inset 0 2px 5px rgba(255,255,255,0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.silver-decal::after {
    content: '';
    position: absolute;
    top: 5px;
    left: 5px;
    right: 5px;
    bottom: 5px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    pointer-events: none;
}

.church-doors-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    transition: transform 0.5s ease;
}

.silver-decal:hover .church-doors-img {
    transform: scale(1.05);
}

.countdown-wrapper {
    background-image: url('../assets/images/PurpleSilver/countdown-bg.png');
    background-size: 100% 100%;
    background-position: center;
    background-repeat: no-repeat;
    background-color: var(--color-primary);
    padding: 60px 40px;
    /* Padding inside the red bar */
    color: white;
    text-align: center;
    display: flex;
    justify-content: center;
    gap: 60px;
    /* Increased gap */
    flex-wrap: wrap;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    position: relative;
    /* For absolute positioned shapes */
    overflow: hidden;
    /* inner decoration containment */
}

/* Corner Decorations Removed (Built into bg) */


.countdown-item {
    text-align: center;
    min-width: 80px;
    position: relative;
    z-index: 2;
    /* Ensure text is above decorations */
}

.countdown-number {
    font-size: 3rem;
    font-weight: 700;
    display: block;
    line-height: 1;
    margin-bottom: 5px;
    font-family: var(--font-body);
}

.countdown-label {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 400;
    opacity: 0.9;
}

/* Footer */
footer {
    background-color: #1a1a1a;
    color: white;
    padding: var(--spacing-lg) 0;
    text-align: center;
    margin-top: auto;
}

footer p {
    color: #888;
}

/* Page Headers (for sub-pages) */
.page-header {
    background-color: var(--color-surface);
    padding: var(--spacing-lg) 0;
    text-align: center;
}

.page-header h1 {
    font-size: 3rem;
    color: var(--color-text-main);
}

/* RSVP Form Styling */
.rsvp-card {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
    padding: 85px 40px;
    background: white;
    /* No shadow on the card itself, maybe just the border decoration illusion */
    /* Check screenshot: seems to be inside a border */
    border: 1px solid transparent;
}

/* Ornamental Corners */
.corner {
    position: absolute;
    width: 100px;
    /* Adjust based on image size */
    height: 100px;
    background-image: url('../assets/images/rsvp-shape2.png');
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.4;
    /* Screenshot shows them light pink/faded */
}

.corner-tl {
    top: 0;
    left: 0;
}

.corner-tr {
    top: 0;
    right: 0;
    transform: scaleX(-1);
}

.corner-bl {
    bottom: 0;
    left: 0;
    transform: scaleY(-1);
}

.corner-br {
    bottom: 0;
    right: 0;
    transform: scale(-1);
}

/* Pink Ornamental Border Asset */
.rsvp-frame {
    position: absolute;
    top: 17px;
    left: 16px;
    width: calc(100% - 32px);
    height: calc(100% - 34px);
    z-index: 0;
    pointer-events: none;
    opacity: 0.6;
}

.rsvp-content {
    position: relative;
    z-index: 2;
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 15px 20px;
    border: 1px solid #e1e1e1;
    border-radius: 4px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: #666;
    background: white;
    outline: none;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #ccc;
}

.form-group textarea {
    resize: vertical;
}

.btn-rsvp {
    display: block;
    background-color: var(--color-primary);
    /* Dark Purple */
    color: white;
    border: none;
    border-radius: 30px;
    /* Rounded pill shape */
    padding: 15px 40px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 0.9rem;
    cursor: pointer;
    margin: 20px auto 0;
}

.btn-rsvp:hover {
    background-color: var(--color-primary-dark);
    box-shadow: 0 5px 15px rgba(93, 46, 140, 0.3);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* Base Styles Update for Menu Toggle */
.menu-toggle {
    display: none;
}

/* Mobile Responsive Adjustments */
@media screen and (max-width: 768px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 1.8rem; }

    .brand {
        white-space: nowrap;
        font-size: 1.5rem;
        display: inline-block;
    }

    .menu-toggle {
        display: block;
        cursor: pointer;
        z-index: 1001;
        width: 30px;
        height: 25px;
        position: relative;
    }

    .menu-toggle .bar {
        display: block;
        width: 100%;
        height: 3px;
        margin: 5px 0;
        transition: all 0.3s ease-in-out;
        background: var(--color-primary);
    }

    .menu-toggle.is-active .bar:nth-child(2) { opacity: 0; }
    .menu-toggle.is-active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .menu-toggle.is-active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

    nav ul {
        position: fixed;
        top: 0;
        right: 0;
        width: 100%;
        height: 100vh;
        background: white;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: transform 0.3s ease, visibility 0.3s;
        transform: translateX(100%);
        visibility: hidden;
        gap: 40px;
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
        z-index: 1000;
    }

    nav ul.active {
        transform: translateX(0);
        visibility: visible;
    }

    .hero {
        height: 80vh;
        width: 100%;
    }

    .hero h1 { font-size: 3rem; }
    .hero h2 { font-size: 1.1rem; letter-spacing: 1px; }

    .countdown-wrapper { gap: 20px; padding: 40px 20px; }
    .countdown-number { font-size: 2rem; }

    .timeline-wrapper {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        overflow: hidden;
        box-sizing: border-box;
    }

    .horizontal-timeline {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0;
        padding: 20px 0 !important;
        box-sizing: border-box;
    }

    #rsvp {
        overflow: hidden;
        width: 100%;
        padding-left: 0;
        padding-right: 0;
    }

    .rsvp-wrapper,
    .rsvp-card,
    .rsvp-card-inner {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box;
        overflow: hidden;
    }

    footer { width: 100%; box-sizing: border-box; }

    section, main {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
        box-sizing: border-box;
    }

    .container { padding: 0 16px; box-sizing: border-box; }

    .section-padding { padding: 40px 0; }
}