html {
    background-color: #fffaf7; /* Matches your --bg-cream */
}

:root {
    --sage: #8A9381;
    --text-dark: #333;
    --bg-cream: #fffaf7;
    --white-block: rgba(255, 255, 255, 0.85);

    /* Site width (white panel) + content width (actual page content) */
    --site-max-width: 1200px;
    --content-max-width: calc(var(--site-max-width) - 80px);
    --content-padding-x: clamp(9px, 2vw, 18px);

    /* Consistent spacing (use everywhere for buffers/padding) */
    --space-xs: 8px;
    --space-sm: 12px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
}

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

body {
    background-color: var(--bg-cream);
    font-family: 'Cormorant Garamond', serif;
    color: var(--text-dark);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    line-height: 1.7;
    font-size: 1.1rem;
    overflow-y: scroll;
    position: relative;
}

/* Header & Navigation */
header {
    position: sticky;
    top: 0;
    z-index: 20;
    background-color: var(--bg-cream);
}

.header-inner {
    max-width: var(--content-max-width);
    margin: 0 auto;
    padding: var(--space-xs) var(--content-padding-x) 0;
}

.wedding-title {
    font-family: 'Great Vibes', cursive;
    font-size: 3.5rem;
    color: var(--sage);
    margin-top: var(--space-xs);
    text-decoration: none;
    font-weight: 400;
}

header .navbar {
    margin-top: var(--space-xs);
    border: none;
}

/* Navbar Items Layout */
header .navbar-nav {
    padding-left: 0;
    padding-right: 0;
    gap: 0 9px;
    width: 100%;
    justify-content: center;
}

/* Toggler Button Styles */
.navbar-toggler {
    border: none !important;
    margin: 0 auto;
}

.navbar-toggler:focus {
    box-shadow: none !important;
}

/* Custom Sage Green Hamburger Icon */
.navbar-toggler-icon {
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba(138, 147, 129, 1)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E") !important;
}

/* Mobile Adjustments */
@media (max-width: 767px) {
    .navbar-collapse {
        background-color: var(--bg-cream);
        padding-bottom: 20px;
    }
    
    header .navbar-nav {
        flex-direction: column;
        align-items: center;
        gap: 10px 0 !important;
    }

    .nav-link {
        font-size: 0.8rem !important;
        padding: 10px !important;
    }
}

.nav-link {
    font-size: 0.85rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-dark) !important;
    padding: 10px 10px !important;
}

.nav-link:hover {
    color: var(--sage) !important;
}


.nav-link {
    font-size: 0.85rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-dark) !important;
    padding: 10px 10px !important;
}

.nav-link:hover {
    color: var(--sage) !important;
}

.active-page {
    font-weight: bold;
    border-bottom: 2px solid var(--sage);
}

/* Typography */
.location-font {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: var(--sage);
}

/* Dividers */
.divider {
    width: 100px;
    height: 1px;
    background: var(--sage);
    margin: var(--space-lg) auto;
    position: relative;
}

.divider::after {
    content: "⚓︎";
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg-cream);
    padding: 0 10px;
    color: var(--sage);
}

/* Buttons */
.btn-custom {
    border: 1.5px solid #000;
    padding: 12px 30px;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 2px;
    text-decoration: none;
    color: #000;
    display: inline-block;
    background: transparent;
    cursor: pointer;
}

.btn-custom:hover {
    background: #000;
    color: #fff;
    transform: translateY(-2px);
}

/* Content Areas - no extra padding; page-section handles vertical spacing */
.content-area {
    flex: 1;
    padding: 0;
}

/* Countdown Timer */
.countdown {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin: 40px 0;
    flex-wrap: wrap;
}

.countdown-item {
    text-align: center;
}

.countdown-number {
    font-size: 3rem;
    font-weight: 300;
    color: var(--sage);
    display: block;
    font-family: 'Playfair Display', serif;
}

.countdown-label {
    font-size: 0.75rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-dark);
    margin-top: 5px;
}

/* Form Styles */
.form-group {
    margin-bottom: 25px;
    text-align: left;
}

.form-label {
    font-size: 0.85rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text-dark);
    margin-bottom: 8px;
    display: block;
}

.form-control,
.form-select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    background: var(--white-block);
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.1rem;
}

.form-control:focus,
.form-select:focus {
    outline: none;
    border-color: var(--sage);
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

/* Gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1;
    background: #f0f0f0;
    border-radius: 4px;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* Hotel/Accommodation Blocks */
.hotel-block {
    margin-bottom: var(--space-xl);
    text-align: left;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.hotel-block:last-child {
    margin-bottom: 0;
}

/* Accommodations page: scale hotel images by width. */
.accommodations-photo {
    width: 100%;
    max-width: 84.375%;
    height: auto;
    display: block;
    margin-left: 0;
    margin-right: auto;
}

@media (max-width: 768px) {
    .accommodations-photo {
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }
}

.hotel-name {
    font-weight: bold;
    font-size: 1.2rem;
    color: var(--sage);
    margin-bottom: 4px;
}

.alert-custom {
    border: 1px solid var(--sage);
    background: var(--white-block);
    padding: var(--space-md);
    font-size: 1rem;
    margin-bottom: var(--space-md);
}

.btn-link-custom {
    color: var(--sage);
    font-weight: bold;
    text-decoration: underline;
}

.btn-link-custom:hover {
    opacity: 0.7;
}

/* Adds horizontal space between buttons in the hotel blocks */
.hotel-block .btn-custom {
    margin-right: 15px;
    margin-bottom: 10px; /* Optional: adds space if they wrap on mobile */
}

.hotel-block .btn-custom:last-child {
    margin-right: 0;
}

/* --- Hero Section & Global Page Spacing --- */

.hero-section { 
    margin-top: 10px; /* Reduced from var(--space-lg) */
}

.hero-image-wrapper {
    max-width: var(--site-max-width);
    margin: 0 auto 10px; /* Reduced the bottom margin to 10px */
}

.hero-image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
}

.page-section { 
    padding: var(--space-lg) 0; 
}

.page-section .divider { 
    margin-top: var(--space-lg); 
    margin-bottom: var(--space-lg); 
}

/* Accessibility: Visible focus */
a:focus-visible,
button:focus-visible,
.btn-custom:focus-visible,
.btn-link-custom:focus-visible,
.form-control:focus-visible,
.form-select:focus-visible {
    outline: 2px solid var(--sage);
    outline-offset: 3px;
}

/* Programme Timeline */
.timeline-item {
    margin-bottom: var(--space-xl);
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

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

/* Home page schedule should fill its column (not a narrow centered block) */
.home-schedule .timeline-item {
    max-width: none;
    margin-left: 0;
    margin-right: 0;
}

#home .mt-3 {
    font-size: 1.4rem; /* Increase this number to make it larger */
    font-weight: 500;   /* Optional: makes the text slightly thicker */
}

.timeline-time {
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--sage);
    margin-bottom: var(--space-xs);
    font-family: 'Playfair Display', serif;
}

.timeline-description {
    font-size: 1.2rem;
    line-height: 1.8;
}

/* FAQ */
.faq-item {
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
}

.faq-question {
    font-weight: bold;
    font-size: 1.1rem;
    color: var(--sage);
    margin-bottom: 10px;
}

.faq-answer {
    line-height: 1.8;
}

/* Footer */
footer {
    text-align: center;
    padding: var(--space-lg) 0;
    margin-top: auto;
}

footer p {
    font-size: 0.75rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #999;
}


/* Responsive */
@media (max-width: 768px) {
    .wedding-title {
        font-size: 2.5rem;
    }

header .navbar-nav {
        padding-left: 14px;
        padding-right: 14px;
        gap: 0 4.5px;
    }

    .location-font {
        font-size: 2rem;
    }

    .countdown-number {
        font-size: 2rem;
    }

    .nav-link {
        font-size: 0.7rem;
        padding: 8px 8px !important;
    }
}

/* Keep page content comfortably inside the white bounds */
.container {
    max-width: var(--content-max-width) !important;
    padding-left: var(--content-padding-x) !important;
    padding-right: var(--content-padding-x) !important;
}

/* Ensure Photos page elements stay above the white panel */
.photos-container .fixed-photo-container {
    z-index: 10;
}

.photos-container .content-sections {
    position: relative;
    z-index: 10;
}

.photos-container .photos-footer-note {
    position: relative;
    z-index: 10;
}

/* Section divider: length matches header ribbon (content-max-width) */
.section-divider {
    height: 1px;
    background-color: transparent;
    width: 100%;
}

.section-divider-inner {
    max-width: var(--content-max-width);
    margin: 0 auto;
    height: 1px;
    background-color: var(--sage);
}

/* Header lines above and below the nav ribbon */
.header-divider {
    height: 1px;
    background-color: var(--sage);
    width: 100%;
}

.header-divider-inner {
    max-width: var(--content-max-width);
    margin: 0 auto;
    height: 1px;
    background-color: var(--sage);
}

/* Scroll lands so divider above section title is visible */
.page-section {
    scroll-margin-top: 175px;
}

/* Consistent spacing for section content (title → date/intro → divider → body) */
.section-date,
.section-intro {
    margin-top: var(--space-md);
    margin-bottom: 0;
}

.section-intro {
    margin-bottom: var(--space-lg);
}

.travel-help {
    margin-top: var(--space-lg);
}

/* Wedding Party (from wedding-party page) */
.party-section {
    margin-bottom: var(--space-xl);
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.party-section:last-child {
    margin-bottom: 0;
}

.party-section h3 {
    font-family: 'Playfair Display', serif;
    color: var(--sage);
    font-size: 2rem;
    margin-bottom: var(--space-md);
    text-align: center;
}

.party-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

/* One row of six: full-size layout */
.party-row-6 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
    margin-top: var(--space-md);
}
@media (min-width: 576px) {
    .party-row-6 {
        grid-template-columns: repeat(3, 1fr);
    }
}
@media (min-width: 992px) {
    .party-row-6 {
        grid-template-columns: repeat(6, 1fr);
    }
}

.party-row-6 .party-member-photo {
    width: 80px;
    height: 80px;
    font-size: 0.7rem;
}

.party-row-6 .party-member-name {
    font-size: 0.95rem;
}

.party-row-6 .party-member-role {
    font-size: 0.8rem;
}

.party-member {
    text-align: center;
}

.party-member-photo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    margin: 0 auto var(--space-md);
    background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 0.9rem;
    border: 3px solid var(--sage);
}

.party-member-name {
    font-weight: bold;
    font-size: 1.1rem;
    color: var(--text-dark);
    margin-bottom: 5px;
}

.party-member-role {
    color: var(--sage);
    font-size: 0.9rem;
    font-style: italic;
}

/* Travel / Getting There (from travel page) */
.travel-section {
    margin-bottom: var(--space-xl);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
}

.travel-section:last-child {
    margin-bottom: 0;
}

.travel-section h3 {
    font-family: 'Playfair Display', serif;
    color: var(--sage);
    font-size: 1.8rem;
    margin-bottom: var(--space-md);
    text-align: center;
}

.travel-info {
    background: rgba(255, 255, 255, 0.85);
    padding: var(--space-lg);
    border: 1px solid #e8e8e8;
    margin-bottom: var(--space-md);
}

.travel-info:last-child {
    margin-bottom: 0;
}

.travel-info h4 {
    color: var(--sage);
    margin-bottom: var(--space-sm);
    font-size: 1.2rem;
}

.travel-info p {
    margin-bottom: var(--space-xs);
    line-height: 1.8;
}

.travel-info p:last-child {
    margin-bottom: 0;
}

.travel-section + .text-center {
    margin-top: var(--space-lg);
}

.map-link {
    color: var(--sage);
    text-decoration: underline;
    font-weight: bold;
}

/* Registry (from registry page) */
.registry-section {
    margin-bottom: 0;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.registry-item {
    background: rgba(255, 255, 255, 0.85);
    padding: var(--space-lg);
    border: 1px solid #e8e8e8;
    margin-bottom: var(--space-lg);
}

.registry-item:last-child {
    margin-bottom: 0;
}

.registry-item h3 {
    color: var(--sage);
    font-size: 1.5rem;
    margin-bottom: var(--space-sm);
    font-family: 'Playfair Display', serif;
    font-style: normal;
}

.registry-item p {
    margin-bottom: var(--space-md);
    line-height: 1.8;
}

.registry-item p:last-child {
    margin-bottom: 0;
}

.registry-link {
    display: inline-block;
    margin-top: var(--space-xs);
}



/* --- Vertical Image Scroller Styles --- */

.timeline-scroller {
    position: relative;
    padding: var(--space-lg) 0;
    max-width: 900px;
    margin: 0 auto;
}

/* The vertical dotted line */
.timeline-scroller::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 1px;
    border-left: 1px dotted var(--sage);
    transform: translateX(-50%);
}

.scroller-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 60px;
    position: relative;
    min-height: 300px;
}

.scroller-item:last-child {
    margin-bottom: 0;
}

.scroller-left, .scroller-right {
    width: 45%;
}

/* Photo on the Left */
.scroller-left {
    text-align: right;
}

.scroller-left img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

/* Text on the Right */
.scroller-right {
    padding-left: 30px;
    text-align: left;
}

.scroller-date {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: var(--sage);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 8px;
}

.scroller-desc {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.2rem;
    line-height: 1.4;
}

/* The anchor dot on the line */
.scroller-marker {
    position: absolute;
    left: 50%;
    width: 12px;
    height: 12px;
    background-color: var(--sage);
    border-radius: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

/* Responsive adjustment for Mobile */
@media (max-width: 768px) {
    .timeline-scroller::before {
        left: 20px;
        transform: none;
    }
    
    .scroller-marker {
        left: 20px;
        transform: translateX(-50%);
    }

    .scroller-item {
        flex-direction: column;
        align-items: flex-start;
        padding-left: 45px;
    }

    .scroller-left, .scroller-right {
        width: 100%;
        text-align: left;
        padding-left: 0;
    }

    .scroller-left img {
        margin-bottom: 15px;
    }
}


/* --- Attire Section Styles --- */

.attire-img {
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    width: 100%;
    height: auto;
    display: block;
}

/* Matching the spacing between blocks to your hotel section */
#attire .travel-info {
    margin-bottom: var(--space-md);
}

#attire .travel-info:last-child {
    margin-bottom: 0;
}

/* Ensure the headings match your sage color theme */
#attire h4 {
    color: var(--sage);
    font-family: 'Playfair Display', serif;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 1.2rem;
    margin-bottom: var(--space-sm);
}


/* --- Tighter Mobile Header (Add to bottom of file) --- */
@media (max-width: 768px) {
    /* Reduce padding at the very top of the page */
    .header-inner {
        padding-top: 8px !important;
        padding-bottom: 0px !important;
    }

    /* Shrink the "Kyle & Taylor" font and remove its margins */
    .wedding-title {
        font-size: 2.2rem !important; 
        margin-top: 0 !important;
        margin-bottom: 5px !important;
        line-height: 1.1 !important;
    }

    /* Pull the hamburger button closer to the title */
    header .navbar {
        margin-top: 0 !important; 
        padding-top: 0 !important;
        padding-bottom: 0 !important;
    }
	
/* 4. Shrink hamburger button and tighten its bottom margin */
    .navbar-toggler {
        padding: 2px 6px !important;
        margin-bottom: 5px !important; /* Reduced to bring divider closer */
    }

}