/* ==========================================================================
   FOUNDATION 22 - CORE DESIGN SYSTEM & STYLESHEET
   ========================================================================== */

/* --- CSS VARIABLES & TOKENS --- */
:root {
    /* Color Palette */
    --color-primary: #1f1c19;
    /* Rich warm charcoal/black */
    --color-gold: #a8814d;
    /* Brand Luxury Gold */
    --color-gold-hover: #8f6a3a;
    /* Muted Darker Gold */
    --color-gold-light: #f5eedf;
    /* Light Gold Tint */
    --color-bg-main: #fbf9f4;
    /* Warm Luxury Cream/Beige */
    --color-bg-alt: #f5f1e8;
    /* Contrast Cream/Beige */
    --color-border: #e2dcd0;
    /* Subtle divider/border color */
    --color-text-body: #544d46;
    /* Muted body text grey-brown */
    --color-text-muted: #877f75;
    /* Subtitle and helper text */
    --color-white: #ffffff;
    --color-danger: #a94442;
    --color-success: #3c763d;

    /* Typography */
    --font-heading-main: 'Cinzel', serif;
    --font-heading-sub: 'Cormorant Garamond', serif;
    --font-body: 'Montserrat', sans-serif;

    /* Spacing & Layout */
    --container-max-width: 1280px;
    --transition-smooth: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    --transition-fast: all 0.2s ease-in-out;
    --shadow-premium: 0 15px 35px rgba(31, 28, 25, 0.06), 0 5px 15px rgba(31, 28, 25, 0.04);
    --shadow-soft: 0 4px 12px rgba(31, 28, 25, 0.03);
}

/* --- RESET & GENERAL STYLES --- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    background-color: var(--color-bg-main);
    color: var(--color-primary);
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: var(--font-body);
    font-weight: 300;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography Defaults */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading-main);
    font-weight: 500;
    letter-spacing: 0.1em;
    line-height: 1.3;
}

p {
    color: var(--color-text-body);
    font-weight: 300;
    letter-spacing: 0.02em;
}

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

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button,
input,
select,
textarea {
    font-family: inherit;
    font-size: inherit;
    color: inherit;
}

/* --- REUSABLE UTILITIES --- */
.section-container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 100px 24px;
    width: 100%;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 80px;
    align-items: center;
}

.grid-2-equal {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.grid-2-equal-gap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.grid-2-gap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.grid-3 {
    display: grid;
    grid-template-columns: 1fr 1.2fr 1fr;
    gap: 50px;
    align-items: center;
}

.mt-4 {
    margin-top: 1.5rem;
}

.mb-4 {
    margin-bottom: 1.5rem;
}

/* Section taglines and titles */
.section-tagline {
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    color: var(--color-gold);
    display: block;
    margin-bottom: 12px;
}

.section-title {
    font-family: var(--font-heading-sub);
    font-size: 3rem;
    font-style: italic;
    font-weight: 400;
    letter-spacing: 0;
    margin-bottom: 24px;
    line-height: 1.2;
}

.section-header-centered {
    text-align: center;
    padding: 80px 24px 20px 24px;
}

.section-header-centered .section-tagline {
    margin-bottom: 0;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 28px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    border: 1px solid transparent;
    cursor: pointer;
    transition: var(--transition-smooth);
    background: none;
    text-align: center;
}

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

.btn-gold:hover {
    background-color: var(--color-gold-hover);
    border-color: var(--color-gold-hover);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(168, 129, 77, 0.3);
}

.btn-outline-gold {
    border-color: var(--color-gold);
    color: var(--color-gold);
}

.btn-outline-gold:hover {
    background-color: var(--color-gold);
    color: var(--color-white);
    transform: translateY(-2px);
}

.btn-outline-white {
    border-color: var(--color-white);
    color: var(--color-white);
}

.btn-outline-white:hover {
    background-color: var(--color-white);
    color: var(--color-primary);
    transform: translateY(-2px);
}

.btn-card {
    border-color: var(--color-gold);
    color: var(--color-gold);
    width: 100%;
    padding: 12px 18px;
    font-size: 0.7rem;
}

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

.btn-block {
    display: block;
    width: 100%;
}

/* Media wrappers for smooth image scales */
.image-wrapper {
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow-premium);
    background-color: var(--color-bg-alt);
}

.image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.2s cubic-bezier(0.15, 0.85, 0.45, 1);
}

.image-wrapper:hover img {
    transform: scale(1.05);
}

/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 90px;
    z-index: 1000;
    background-color: rgba(251, 249, 244, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(226, 220, 208, 0.5);
    transition: var(--transition-smooth);
}

.header-container {
    max-width: var(--container-max-width);
    height: 100%;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-link {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.header-logo {
    width: 80px;
    /* Same size as the old logo */
    height: auto;
    display: block;
}

.f22-logo-compact .f-letter {
    font-size: 1.8rem;
    font-weight: 400;
    line-height: 1;
    transform: translate(-3px, -2px);
}

.f22-logo-compact .num-letter {
    font-size: 0.95rem;
    font-weight: 400;
    position: absolute;
    bottom: 4px;
    right: 4px;
}

/* Navigation Links */
.nav-menu ul {
    list-style: none;
    display: flex;
    gap: 28px;
}

.nav-menu .nav-link {
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    color: var(--color-text-body);
    padding: 8px 0;
    position: relative;
}

.nav-menu .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--color-gold);
    transition: var(--transition-fast);
}

.nav-menu .nav-link:hover {
    color: var(--color-gold);
}

.nav-menu .nav-link:hover::after {
    width: 100%;
}

.btn-header {
    padding: 10px 20px;
    font-size: 0.7rem;
}

/* Hamburger menu drawer button */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 26px;
    height: 18px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1010;
}

.menu-toggle .hamburger-bar {
    width: 100%;
    height: 1.5px;
    background-color: var(--color-primary);
    transition: var(--transition-fast);
}

/*=========================================
 HERO
=========================================*/

.hero {

    position: relative;

    display: flex;

    align-items: center;

    justify-content: center;

    min-height: 100vh;

    background: url("assets/hero_bg.png") center center/cover no-repeat;

    text-align: center;

    color: #fff;

    padding: 120px 24px 60px;

    overflow: hidden;

}

/* Overlay */

.hero-overlay {

    position: absolute;

    inset: 0;

    background: linear-gradient(180deg,
            rgba(31, 28, 25, .40) 0%,
            rgba(31, 28, 25, .48) 45%,
            rgba(31, 28, 25, .65) 100%);

    z-index: 1;

}

/* Content */

.hero-content {

    position: relative;

    z-index: 2;

    width: 100%;

    max-width: 900px;

    display: flex;

    flex-direction: column;

    align-items: center;

    animation: heroFadeIn 1.2s ease forwards;

}

@keyframes heroFadeIn {

    from {

        opacity: 0;

        transform: translateY(30px);

    }

    to {

        opacity: 1;

        transform: translateY(0);

    }

}

/* Logo */

.hero-logo-container {

    margin-bottom: 20px;

}

.hero-logo {

    width: 180px;

    height: auto;

    display: block;

}

/* Title */

.hero-title {

    font-family: var(--font-heading-main);

    font-size: 3rem;

    font-weight: 600;

    letter-spacing: .18em;

    margin-bottom: 12px;

    color: var(--color-primary);

}

/* Subtitle */

.hero-subtitle {

    font-family: var(--font-heading-sub);

    font-size: 2rem;

    font-style: italic;

    font-weight: 500;

    line-height: 1.3;

    margin-bottom: 36px;

    color: var(--color-primary);

}

/* Details */

.hero-details {

    display: flex;

    flex-direction: column;

    align-items: center;

    gap: 10px;

    margin-bottom: 40px;

}

.hero-detail-item {

    font-size: .85rem;

    font-weight: 500;

    letter-spacing: .18em;

    text-transform: uppercase;

    color: var(--color-primary);

}

/* Buttons */

.hero-cta {

    display: flex;

    justify-content: center;

    gap: 18px;

    flex-wrap: wrap;

}

.hero-cta .btn {

    min-width: 220px;

}

/*=========================================
 TABLET
=========================================*/

@media (max-width:992px) {

    .hero {

        padding: 110px 24px 50px;

    }

    .hero-logo {

        width: 150px;

    }

    .hero-title {

        font-size: 2.4rem;

    }

    .hero-subtitle {

        font-size: 1.6rem;

    }

    .hero-detail-item {

        font-size: .8rem;

    }

}

/* ==========================================================================
   FEATURES BAR
   ========================================================================== */
.features-bar {
    background-color: var(--color-bg-alt);
    border-bottom: 1px solid var(--color-border);
}

.features-container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
}

.feature-item {
    padding: 40px 16px;
    text-align: center;
    border-right: 1px solid var(--color-border);
    transition: var(--transition-smooth);
}

.feature-item:last-child {
    border-right: none;
}

.feature-item:hover {
    background-color: var(--color-bg-main);
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(31, 28, 25, 0.02);
}

.feature-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 16px auto;
    color: var(--color-gold);
}



.feature-item h3 {
    font-family: var(--font-body);
    font-size: 0.66rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    line-height: 1.5;
    color: var(--color-primary);
}

/* ==========================================================================
   ABOUT SECTION
   ========================================================================== */
.about-section {
    background-color: var(--color-bg-main);
}

.about-content {
    padding-right: 40px;
}

.about-text {
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 24px;
}

.about-media {
    position: relative;
}

.about-media .image-wrapper {
    height: 480px;
}

/* ==========================================================================
   ATTEND & MAKE AN IMPACT (CARDS)
   ========================================================================== */
.attend-section {
    background-color: var(--color-bg-alt);
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

.card-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    padding-top: 40px;
    padding-bottom: 100px;
}

.attend-card {
    background-color: var(--color-bg-main);
    border: 1px solid var(--color-border);
    display: flex;
    flex-direction: column;
    transition: var(--transition-smooth);
}

.attend-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-premium);
    border-color: var(--color-gold);
}

.card-image-wrapper {
    position: relative;
    height: 200px;
    overflow: hidden;
    background-color: var(--color-bg-alt);
}

.card-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1s ease;
}

.attend-card:hover .card-image-wrapper img {
    transform: scale(1.06);
}

.card-body {
    padding: 30px 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    text-align: center;
}

.card-body h3 {
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    margin-bottom: 16px;
    color: var(--color-primary);
}

.card-body p {
    font-size: 0.8rem;
    line-height: 1.6;
    margin-bottom: 24px;
    color: var(--color-text-body);
    flex-grow: 1;
}

/* ==========================================================================
   GALA PROGRAMME SECTION
   ========================================================================== */
.programme-section {
    width: 100%;
    overflow: hidden;
}

.programme-inner {
    max-width: 100%;
    margin: 0;
    width: 100%;
    padding: 20px 0 20px max(24px, calc((100vw - var(--container-max-width)) / 2 + 24px));
    display: grid;
    /* grid-template-columns: 1.1fr 1fr; */
    grid-template-columns: 45% 60%;
    align-items: stretch;
}

.programme-media,
.programme-image-wrapper {
    width: 100%;
    height: 100%;
}

.programme-image-wrapper img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

/* Left: timeline column — content sits at the top, does not stretch */
.programme-content {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.programme-content .section-tagline {
    margin-bottom: 28px;
}

/* Vertical timeline */
.timeline {
    position: relative;
    padding-left: 0;
    margin-top: 0;
}

/* Solid connecting vertical line */
.timeline::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 5px;
    width: 1px;
    bottom: 8px;
    background-color: var(--color-gold);
    opacity: 0.35;
}

.timeline-item {
    position: relative;
    margin-bottom: 32px;
    display: flex;
    align-items: center;
    gap: 16px;
    padding-left: 26px;
}

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

/* Gold filled circle bullet */
.timeline-bullet {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background-color: var(--color-gold);
    flex-shrink: 0;
    z-index: 1;
}

.timeline-time {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.78rem;
    color: var(--color-gold);
    width: 52px;
    flex-shrink: 0;
    letter-spacing: 0.05em;
}

.timeline-event {
    font-family: var(--font-body);
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    color: var(--color-text-body);
    text-transform: uppercase;
    line-height: 1.4;
}

/* Right-side static image — fills the grid row height set by the left column */
.programme-media {
    display: flex;
    flex-direction: column;
    margin-right: 0;
}

.programme-image-wrapper {
    width: 100%;
    height: 100%;
    min-height: 250px;
    overflow: hidden;
    box-shadow: var(--shadow-premium);
    border: 1px solid var(--color-border);
    height: 450px;
}

.programme-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ==========================================================================
   VENUE & AUCTION DETAILS
   ========================================================================== */
.venue-auction-section {
    background-color: var(--color-bg-alt);
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

.venue-auction-grid {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 20px 24px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

/* Cards split horizontally: Text (left) and Image (right) */
.va-card {
    background-color: var(--color-bg-main);
    border: 1px solid var(--color-border);
    overflow: hidden;
    display: flex;
    flex-direction: row;
    min-height: 300px;
}

.va-card-text {
    padding: 28px 36px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1.1;
}

.va-card-title {
    font-family: var(--font-heading-sub);
    font-size: 1.8rem;
    font-style: italic;
    font-weight: 400;
    letter-spacing: 0;
    line-height: 1.25;
    margin-bottom: 16px;
    color: var(--color-primary);
    text-transform: none;
}

.va-card-desc {
    font-family: var(--font-body);
    font-size: 0.82rem;
    line-height: 1.7;
    color: var(--color-text-body);
    margin-bottom: 28px;
    font-weight: 300;
}

.va-card-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

/* Image block on the right of the card */
.va-card-image {
    position: relative;
    flex: 0.9;
    overflow: hidden;
    height: auto;
    min-height: 100%;
}

.va-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.9s ease;
}

.va-card:hover .va-card-image img {
    transform: scale(1.04);
}

/* Collecting Cars badge on auction image */
.va-auction-image {
    background-color: #f7f3ed;
}

.va-brand-badge {
    position: absolute;
    bottom: 18px;
    right: 18px;
    background-color: rgba(251, 249, 244, 0.92);
    padding: 6px 14px;
    border: 1px solid var(--color-border);
    z-index: 2;
}

.va-brand-label {
    font-family: var(--font-body);
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: var(--color-primary);
    white-space: nowrap;
}

/*======================================================
 OUR PURPOSE
======================================================*/

.purpose-section {

    max-width: 1600px;
    margin: 20px auto;

    background: #fbf9f4;

    /* border: 1px solid #e6ddd1; */

    display: grid;
    grid-template-columns: 320px 400px 1fr;

    align-items: center;

}

/*-------------------------
LEFT IMAGE
--------------------------*/

.purpose-image {

    height: 180px;

    overflow: hidden;

    position: relative;
}



.purpose-image img {

    width: 100%;
    height: 100%;

    object-fit: cover;

    display: block;

}

/*-------------------------
CONTENT
--------------------------*/

.purpose-content {

    padding: 28px 38px;

    position: relative;

}


.purpose-tag {

    display: block;

    font-size: .82rem;

    font-weight: 700;

    letter-spacing: .30em;

    color: #b88648;

    margin-bottom: 16px;

}

.purpose-content p {

    font-size: .9rem;

    line-height: 1.8;

    color: #6a6a6a;

    margin-bottom: 22px;

    max-width: 320px;

}

/*-------------------------
ICONS
--------------------------*/

.purpose-icons {

    display: grid;

    grid-template-columns: repeat(4, 1fr);

    height: 100%;

}

.purpose-item {

    position: relative;

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    text-align: center;

    padding: 24px 18px;

}

.purpose-item::after {

    content: "";

    position: absolute;

    right: 0;
    top: 50%;

    transform: translateY(-50%);

    width: 1px;
    height: 120px;

    background: #e2d8ca;

}

.purpose-item:last-child::after {

    display: none;

}

.purpose-item img {

    width: 58px;
    height: 58px;

    margin-bottom: 18px;

    opacity: .85;

}

.purpose-item h4 {

    font-size: .72rem;

    font-weight: 600;

    line-height: 1.6;

    letter-spacing: .08em;

    color: #333;

    margin: 0;

}

/*-------------------------
BUTTON
--------------------------*/

.purpose-content .btn {

    min-width: 200px;

}

/*-------------------------
RESPONSIVE
--------------------------*/

@media (max-width:1200px) {

    .purpose-section {

        grid-template-columns: 1fr;

    }

    .purpose-image {

        height: 260px;

    }

    .purpose-image::after,
    .purpose-content::after,
    .purpose-item::after {

        display: none;

    }

    .purpose-content {

        border-top: 1px solid #e6ddd1;
        border-bottom: 1px solid #e6ddd1;

    }

    .purpose-icons {

        grid-template-columns: repeat(2, 1fr);

    }

}

@media (max-width:768px) {

    .purpose-icons {

        grid-template-columns: 1fr;

    }

    .purpose-item {

        padding: 35px 20px;

        border-bottom: 1px solid #ece3d7;

    }

    .purpose-item:last-child {

        border-bottom: none;

    }

}

/* ==========================================================================
   PARTNERS ROW
   ========================================================================== */
.partners-section {
    background-color: var(--color-bg-alt);
    padding: 30px 24px;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

/* "IN PARTNERSHIP WITH" heading with flanking lines */
.partners-eyebrow-wrap {
    display: flex;
    align-items: center;
    gap: 20px;
    max-width: var(--container-max-width);
    /* margin: 0 auto 36px; */
}

.partners-eyebrow-wrap::before,
.partners-eyebrow-wrap::after {
    content: '';
    flex: 1;
    height: 1px;
    background-color: var(--color-gold);
}

.partners-eyebrow {
    text-align: center;
    font-family: var(--font-body);
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.28em;
    color: var(--color-text-muted);
    margin: 0;
    white-space: nowrap;
    text-transform: uppercase;
}

.partners-row {
    max-width: var(--container-max-width);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    padding: 10px 0;
    /* border-top: 1px solid var(--color-border); */
    /* border-bottom: 1px solid var(--color-border); */
}

/*=========================================
PARTNERS SECTION
=========================================*/

.partners-section {
    background: var(--color-bg-main);
    padding: 32px 20px;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

.partners-grid {
    max-width: 1500px;
    margin: 0 auto;

    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 70px;
}

/* Individual Logo */

.partner-logo-item {
    display: flex;
    justify-content: center;
    align-items: center;

    opacity: 0.8;
    transition: all .3s ease;
}

.partner-logo-item:hover {
    opacity: 1;
    transform: translateY(-2px);
}

/* Logo Image */

.partner-logo-img {
    display: block;

    width: 200px;
    /* Default width */
    height: auto;
    /* Uniform height */

    object-fit: contain;
    object-position: center;

    filter: grayscale(100%);
    transition: all .3s ease;
}

.partner-logo-item:hover .partner-logo-img {
    filter: grayscale(0%);
}

/* Individual logo sizing (optional) */

.partner-logo-item.collecting-cars .partner-logo-img {
    width: 170px;
}

.partner-logo-item.portrait .partner-logo-img {
    width: 150px;
}

.partner-logo-item.foundation22 .partner-logo-img {
    width: 70px;
    height: 70px;
}

.partner-logo-item.sabelt .partner-logo-img {
    width: 140px;
}

.partner-logo-item.pommery .partner-logo-img {
    width: 145px;
}

.partner-logo-item.bell .partner-logo-img {
    width: 120px;
}

/* Responsive */

@media (max-width: 992px) {

    .partners-grid {
        gap: 45px;
    }

    .partner-logo-img {
        width: 120px;
        height: 55px;
    }

}

@media (max-width: 768px) {

    .partners-grid {
        gap: 35px;
    }

    .partner-logo-img {
        width: 100px;
        height: 50px;
    }

}

/* ==========================================================================
   FOOTER — LIGHT VERSION
   ========================================================================== */
.main-footer-light {
    background-color: var(--color-bg-main);
    color: var(--color-primary);
}

.footer-top-light {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr 1.3fr auto 1fr;
    align-items: stretch;
    min-height: 300px;
    position: relative;
    background-image:
        linear-gradient(90deg,
            rgba(251, 249, 244, 0.97) 0%,
            rgba(251, 249, 244, 0.75) 30%,
            rgba(251, 249, 244, 0.35) 55%,
            rgba(251, 249, 244, 0.9) 100%),
        url('assets/duomo-footer.png');
    background-size: cover;
    /* background-position: left center; */
    background-repeat: no-repeat;
}

/* --- Left: Duomo background image (building anchored left, no <img>) --- */
.footer-info-light {
    position: relative;
    overflow: hidden;
}

.footer-logo-overlay {
    position: relative;
    z-index: 1;
    height: 100%;
    padding: 20px 0 20px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.footer-logo-overlay .footer-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 120px;
    height: auto;
    position: relative;
    font-family: var(--font-heading-main);
    color: var(--color-gold);
    margin-bottom: 16px;
}


.footer-logo-overlay .f-letter {
    font-size: 2.2rem;
    transform: translate(-4px, -2px);
    line-height: 1;
}

.footer-logo-overlay .num-letter {
    font-size: 1.1rem;
    position: absolute;
    bottom: 5px;
    right: 5px;
    line-height: 1;
}

.footer-logo-title {
    font-family: var(--font-heading-main);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    color: var(--color-primary);
    margin-bottom: 12px;
    text-transform: uppercase;
}

.footer-tagline-light {
    font-family: var(--font-heading-sub);
    font-style: italic;
    font-size: 1.1rem;
    color: var(--color-text-body);
    line-height: 1.5;
}

/* --- Center: Newsletter --- */
.footer-newsletter-light {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 10px 50px;
}

.footer-newsletter-light h3 {
    font-family: var(--font-heading-main);
    font-size: 1.3rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    color: var(--color-primary);
    margin-bottom: 12px;
}

.footer-newsletter-light p {
    color: var(--color-text-body);
    font-size: 0.9rem;
    margin-bottom: 24px;
}

.subscribe-form-light {
    display: flex;
    border: 1px solid var(--color-border);
    background-color: var(--color-white);
    margin-bottom: 28px;
    overflow: hidden;
}

.subscribe-form-light input {
    background: none;
    border: none;
    padding: 16px 18px;
    color: var(--color-primary);
    font-family: var(--font-body);
    font-size: 0.85rem;
    flex-grow: 1;
    outline: none;
}

.subscribe-form-light input::placeholder {
    color: var(--color-text-muted);
}

.social-links-light {
    display: flex;
    gap: 14px;
}

.social-links-light a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1.5px solid var(--color-gold);
    color: var(--color-gold);
    transition: var(--transition-fast);
}

.social-links-light a:hover {
    background-color: var(--color-gold);
    color: var(--color-white);
}

.social-links-light svg {
    width: 18px;
    height: 18px;
}

/* --- Vertical divider --- */
.footer-divider-vertical {
    width: 1px;
    background-color: var(--color-gold);
    opacity: 0.4;
    margin: 40px 0;
}

/* --- Right: Contacts --- */
.footer-contacts-light {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 28px;
    padding: 10px 40px 10px 50px;
}

.contact-block-light {
    display: flex;
    flex-direction: column;
    /* gap: 6px; */
}

.contact-label-light {
    font-family: var(--font-heading-main);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    color: var(--color-primary);
    text-transform: uppercase;
}

.contact-email-light {
    font-family: var(--font-body);
    font-size: 0.85rem;
    color: var(--color-text-body);
    transition: var(--transition-fast);
}

.contact-email-light:hover {
    color: var(--color-gold);
}

/* --- Bottom bar (stays dark) --- */
.footer-bottom-light {
    background-color: #1c1208;
}

.footer-bottom-inner-light {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 20px 40px;
    display: flex;
    justify-content: center;
}

.footer-bottom-inner-light p {
    font-family: var(--font-body);
    font-size: 0.6rem;
    font-weight: 500;
    letter-spacing: 0.28em;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .footer-top-light {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .footer-info-light {
        height: 280px;
        background-position: center;
    }

    .footer-logo-overlay {
        padding: 40px;
        align-items: center;
        text-align: center;
    }

    .footer-divider-vertical {
        display: none;
    }

    .footer-newsletter-light,
    .footer-contacts-light {
        padding: 40px;
        border-top: 1px solid var(--color-border);
    }
}

@media (max-width: 480px) {
    .footer-info-light {
        height: 220px;
    }

    .footer-newsletter-light,
    .footer-contacts-light {
        padding: 30px 24px;
    }
}

/* ==========================================================================
   MODALS SYSTEM
   ========================================================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(31, 28, 25, 0.7);
    backdrop-filter: blur(8px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
    padding: 20px;
}

.modal-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

.modal-card {
    background-color: var(--color-bg-main);
    border: 1px solid var(--color-border);
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    padding: 50px 40px;
    box-shadow: 0 25px 55px rgba(0, 0, 0, 0.2);
    transform: scale(0.95) translateY(15px);
    transition: transform 0.4s cubic-bezier(0.15, 0.85, 0.45, 1);
}

.modal-overlay.open .modal-card {
    transform: scale(1) translateY(0);
}

.modal-card.modal-wide {
    max-width: 900px;
}

.modal-close {
    position: absolute;
    top: 24px;
    right: 24px;
    background: none;
    border: none;
    font-size: 2.2rem;
    line-height: 1;
    color: var(--color-text-muted);
    cursor: pointer;
    transition: var(--transition-fast);
}

.modal-close:hover {
    color: var(--color-gold);
}

.modal-header {
    text-align: center;
    margin-bottom: 40px;
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 24px;
}

.modal-header h2 {
    font-size: 1.5rem;
    color: var(--color-primary);
    margin-bottom: 8px;
    letter-spacing: 0.15em;
}

.modal-header p {
    font-family: var(--font-heading-sub);
    font-style: italic;
    font-size: 1rem;
    color: var(--color-gold);
}

/* Modal form controls */
.modal-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    color: var(--color-primary);
}

.form-group input,
.form-group select,
.form-group textarea {
    background-color: var(--color-bg-alt);
    border: 1px solid var(--color-border);
    padding: 14px 16px;
    font-size: 0.82rem;
    outline: none;
    transition: var(--transition-fast);
    width: 100%;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--color-gold);
    background-color: var(--color-white);
    box-shadow: 0 0 0 3px rgba(168, 129, 77, 0.08);
}

.form-group select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='%23a8814d' stroke-width='1.5' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6 9l6 6 6-6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 16px;
}

.form-actions {
    margin-top: 15px;
}

/* Venue specifics inside modal */
.venue-info-text h3 {
    font-family: var(--font-heading-sub);
    font-style: italic;
    font-size: 1.4rem;
    letter-spacing: 0;
    margin-bottom: 12px;
}

.venue-info-text p {
    font-size: 0.85rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.venue-info-text ul {
    list-style: none;
}

.venue-info-text li {
    font-size: 0.8rem;
    margin-bottom: 10px;
}

.venue-info-text li strong {
    font-weight: 500;
}

.venue-info-text li a {
    color: var(--color-gold);
    border-bottom: 1px solid transparent;
}

.venue-info-text li a:hover {
    border-color: var(--color-gold);
}

.map-placeholder {
    height: 100%;
    min-height: 250px;
    background-color: var(--color-bg-alt);
    border: 1px solid var(--color-border);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 24px;
    text-align: center;
}

.map-title {
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    color: var(--color-text-muted);
}

.map-coord {
    font-size: 0.85rem;
    font-family: var(--font-heading-main);
    color: var(--color-gold);
    margin-top: 4px;
}

.map-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 1.5px dashed var(--color-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 20px;
    animation: mapPulse 4s infinite linear;
}

.map-circle::after {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--color-gold);
}

@keyframes mapPulse {
    100% {
        transform: rotate(360deg);
    }
}

/* Purpose Impact progress panel inside modal */
.donation-progress-panel {
    background-color: var(--color-bg-alt);
    padding: 24px;
    border: 1px solid var(--color-border);
}

.progress-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    margin-bottom: 12px;
}

.progress-bar-container {
    width: 100%;
    height: 6px;
    background-color: var(--color-border);
    border-radius: 3px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background-color: var(--color-gold);
}

/* ==========================================================================
   DYNAMIC TOAST NOTIFICATIONS
   ========================================================================== */
.toast-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 3000;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.toast {
    background-color: var(--color-primary);
    color: var(--color-white);
    border-left: 3px solid var(--color-gold);
    padding: 16px 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 15px;
    transform: translateY(30px);
    opacity: 0;
    animation: toastSlideIn 0.4s cubic-bezier(0.15, 0.85, 0.45, 1) forwards;
    max-width: 380px;
}

.toast.success {
    border-left-color: var(--color-success);
}

.toast-message {
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    line-height: 1.4;
}

@keyframes toastSlideIn {
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.toast.fade-out {
    animation: toastFadeOut 0.4s cubic-bezier(0.15, 0.85, 0.45, 1) forwards;
}

@keyframes toastFadeOut {
    to {
        transform: translateY(15px);
        opacity: 0;
    }
}

/* ==========================================================================
   RESPONSIVE DESIGN (MEDIA QUERIES)
   ========================================================================== */

/* Tablet Landscape (1024px) */
@media (max-width: 1024px) {
    .purpose-top {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .purpose-media {
        height: 300px;
    }

    .purpose-statement {
        text-align: center;
    }

    .purpose-pillars {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    .programme-inner {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .programme-image-wrapper {
        height: 380px;
    }

    .venue-auction-grid {
        grid-template-columns: 1fr;
    }

    .card-grid-4 {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    .features-container {
        grid-template-columns: repeat(3, 1fr);
    }

    .feature-item {
        border-bottom: 1px solid var(--color-border);
    }

    .feature-item:nth-child(3),
    .feature-item:nth-child(6) {
        border-right: none;
    }


    .footer-top {
        grid-template-columns: 1fr 1fr;
        padding: 60px 24px;
    }

    .footer-newsletter {
        grid-column: span 2;
        order: 3;
        margin-top: 40px;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
        padding-top: 40px;
    }

    .footer-bg-duomo {
        width: 60%;
        height: 50%;
    }
}

/* Tablet Portrait (768px) */
@media (max-width: 768px) {
    .section-title {
        font-size: 2.3rem;
    }

    .subscribe-form-light {
        display: flex;
        flex-direction: column;
        gap: 12px;
        border: none;
        background: transparent;
    }

    .subscribe-form-light input {
        width: 100%;
        border: 1px solid var(--color-border);
        padding: 16px 18px;
        box-sizing: border-box;
    }

    .subscribe-form-light .btn-subscribe {
        width: 100%;
        justify-content: center;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .hero-subtitle {
        font-size: 1.6rem;
    }

    .hero-details {
        gap: 20px;
        font-size: 0.75rem;
    }

    .grid-2,
    .grid-2-equal,
    .grid-2-gap {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    /* ---- Mobile Navigation ----
       Hide REQUEST INVITATION button, show hamburger at far right. */
    .header-actions {
        display: none;
    }

    .menu-toggle {
        display: flex;
        order: 10;
        margin-left: auto;
    }

    .nav-menu {
        position: fixed;
        top: 90px;
        left: 0;
        width: 100%;
        height: calc(100vh - 90px);
        background-color: var(--color-bg-main);
        z-index: 1005;
        padding: 50px 40px;
        transform: translateX(-100%);
        transition: transform 0.5s cubic-bezier(0.15, 0.85, 0.45, 1);
        border-top: 1px solid var(--color-border);
    }

    .nav-menu.open {
        transform: translateX(0);
    }

    .nav-menu ul {
        flex-direction: column;
        gap: 35px;
    }

    .nav-menu .nav-link {
        font-size: 1.1rem;
    }

    /* Active hamburger animation */
    .menu-toggle.active .hamburger-bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .menu-toggle.active .hamburger-bar:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active .hamburger-bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .about-media .image-wrapper {
        height: 380px;
    }

    /* Programme: stack image above timeline */
    .programme-inner {
        grid-template-columns: 1fr;
        padding: 60px 24px;
        gap: 40px;
    }

    .programme-media {
        order: 1;
    }

    .programme-content {
        order: 2;
    }

    .programme-image-wrapper {
        height: 300px;
    }

    /* Venue & Auction */
    .venue-auction-grid {
        grid-template-columns: 1fr;
        padding: 50px 24px;
    }

    .va-card {
        flex-direction: column;
    }

    .va-card-image {
        height: 240px;
        flex: none;
        width: 100%;
    }

    /* Purpose section */
    .purpose-top {
        grid-template-columns: 1fr;
        padding: 0;
        gap: 30px;
    }

    .purpose-media {
        height: 250px;
        order: 1;
    }

    .purpose-statement {
        order: 2;
        text-align: center;
    }

    .purpose-pillars {
        grid-template-columns: 1fr 1fr;
        gap: 24px;
    }

    /* Partners */
    .partners-row {
        justify-content: center;
        gap: 28px 20px;
    }
}

/* Mobile Devices (480px) */
@media (max-width: 480px) {
    .section-title {
        font-size: 1.8rem;
    }

    .hero-title {
        font-size: 1.8rem;
    }

    .hero-subtitle {
        font-size: 1.3rem;
    }

    .hero-details {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }

    .hero-detail-item:not(:last-child)::after {
        display: none;
    }

    .hero-cta {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
        padding: 0 20px;
    }

    .features-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .feature-item:nth-child(even) {
        border-right: none;
    }

    .card-grid-4 {
        grid-template-columns: 1fr;
    }

    /* Purpose pillars single column */
    .purpose-pillars {
        grid-template-columns: 1fr;
    }

    .grid-3-unequal {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-newsletter {
        grid-column: span 1;
        margin-top: 0;
    }

    .va-card-text {
        padding: 28px 20px 24px;
    }

    .va-card-actions {
        flex-direction: column;
    }

    .va-card-actions .btn {
        width: 100%;
        text-align: center;
    }

    .modal-card {
        padding: 35px 20px;
    }

    .grid-2-equal-gap {
        grid-template-columns: 1fr;
    }

    .toast-container {
        left: 20px;
        right: 20px;
        bottom: 20px;
    }

    .toast {
        max-width: 100%;
    }

    .partners-row {
        gap: 20px;
    }

    .programme-inner {
        padding: 50px 20px;
    }
}