/* -------------------------------------------------------------
   AFTERGLO by Ama Impossibile — Stylesheet (Gucci-Inspired Layout)
   Theme: Dark canvas with Pistachio accents (#BCD8A7)
   Design System: Luxury Symmetrical Grid, Cinematic, Restrained
   ------------------------------------------------------------- */

/* Reset & Base Setup */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    /* Color Palette */
    --bg-dark: #000000;
    --card-dark: #121210;
    --text-primary: #E5E2DA;
    --text-muted: #8C8A82;
    --pistachio: #BCD8A7;
    --border-soft: rgba(188, 216, 167, 0.12);
    --border-white-soft: rgba(229, 226, 218, 0.08);
    --border-light: rgba(229, 226, 218, 0.04);
    
    /* Fonts */
    --font-serif: 'Cormorant Garamond', Georgia, serif;
    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;

    /* Spacing System */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 2rem;
    --space-lg: 4rem;
    --space-xl: clamp(4rem, 8vw, 10rem);
    --space-xxl: clamp(6rem, 12vw, 15rem);
    
    /* Layout */
    --max-width: 1440px;
    --header-height: 80px;
}

html {
    scroll-behavior: smooth;
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-sans);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    overflow-x: hidden;
    position: relative;
}


/* Typography Utilities */
.uppercase-label {
    font-family: var(--font-sans);
    font-size: 0.72rem;
    font-weight: 550;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    color: var(--pistachio);
}

/* Buttons & Links */
a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease, border-color 0.3s ease;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1.1rem 2.8rem;
    font-family: var(--font-sans);
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    border: 1px solid var(--text-primary);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    background: transparent;
    transition: color 0.4s cubic-bezier(0.25, 1, 0.5, 1), background-color 0.4s cubic-bezier(0.25, 1, 0.5, 1), border-color 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

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

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

.btn-dark {
    background-color: transparent;
    color: var(--text-primary);
    border-color: var(--border-white-soft);
}

.btn-dark:hover {
    background-color: var(--pistachio);
    border-color: var(--pistachio);
    color: var(--bg-dark);
}

/* Scroll Animations */
.fade-in-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1.2s cubic-bezier(0.215, 0.61, 0.355, 1), transform 1.2s cubic-bezier(0.215, 0.61, 0.355, 1);
}

.fade-in-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* On-load Animations */
.fade-in-on-load {
    opacity: 0;
    transform: translateY(-10px);
    animation: fadeInHeader 1s cubic-bezier(0.215, 0.61, 0.355, 1) forwards;
}

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

/* -------------------------------------------------------------
   Symmetrical Header (Gucci-Style)
   ------------------------------------------------------------- */
.main-header {
    height: var(--header-height);
    width: 100%;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 0 var(--space-lg);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100;
    border-bottom: 1px solid var(--border-white-soft);
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.nav-left {
    display: flex;
    justify-content: flex-start;
}

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

.brand-title {
    font-family: var(--font-serif);
    font-size: 1.55rem;
    font-weight: 400;
    letter-spacing: 0.35em;
    text-indent: 0.35em; /* Shift spacing offset to keep text truly centered */
    color: var(--text-primary);
}

.nav-right {
    display: flex;
    justify-content: flex-end;
}

.nav-link {
    font-family: var(--font-sans);
    font-size: 0.72rem;
    font-weight: 550;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--text-muted);
    position: relative;
    padding: 0.4rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--pistachio);
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: var(--text-primary);
}

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

.cta-nav-link {
    font-family: var(--font-sans);
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    padding: 0.6rem 1.4rem;
    border: 1px solid var(--pistachio);
    color: var(--pistachio);
    transition: all 0.3s ease;
}

.cta-nav-link:hover {
    background-color: var(--pistachio);
    color: var(--bg-dark);
}

/* -------------------------------------------------------------
   Full-Screen Background Image Hero (Gucci-Style)
   ------------------------------------------------------------- */
.hero-section {
    height: 100vh;
    width: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg-image-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transform: scale(1.02);
    animation: scaleBgImage 10s ease-out forwards;
}

@keyframes scaleBgImage {
    to {
        transform: scale(1);
    }
}

.hero-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.6) 0%,
        rgba(0, 0, 0, 0.4) 50%,
        rgba(0, 0, 0, 0.75) 100%
    );
}

.hero-overlay-content {
    position: relative;
    z-index: 2;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 800px;
    padding: 0 var(--space-md);
    margin-top: 5vh; /* Push down slightly for center balanced gravity */
}

.hero-overlay-content .eyebrow {
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.hero-title {
    font-family: var(--font-serif);
    font-size: clamp(3.8rem, 9vw, 7.5rem);
    font-weight: 300;
    line-height: 0.95;
    letter-spacing: 0.15em;
    text-indent: 0.15em;
    margin-bottom: 2rem;
    color: var(--text-primary);
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.hero-main-line {
    font-family: var(--font-serif);
    font-size: clamp(1.4rem, 3.2vw, 2.2rem);
    font-style: italic;
    font-weight: 300;
    color: var(--text-primary);
    margin-bottom: 3.5rem;
    opacity: 0.95;
}

.hero-actions {
    margin-bottom: 1.8rem;
    width: 100%;
    display: flex;
    justify-content: center;
}

.hero-actions .btn {
    min-width: 250px;
}

.hero-overlay-content .trust-note {
    font-family: var(--font-serif);
    font-size: 0.85rem;
    font-style: italic;
    color: var(--text-muted);
}

/* Pulsing Scroll-down Indicator */
.scroll-indicator {
    position: absolute;
    bottom: var(--space-md);
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.scroll-line {
    width: 1px;
    height: 60px;
    background-color: var(--border-white-soft);
    position: relative;
    overflow: hidden;
}

.scroll-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 25px;
    background-color: var(--pistachio);
    animation: scrollSlideDown 2s ease-in-out infinite;
}

@keyframes scrollSlideDown {
    0% {
        top: -30px;
    }
    100% {
        top: 60px;
    }
}

/* -------------------------------------------------------------
   Details Gallery Carousel Section (Gucci-Style)
   ------------------------------------------------------------- */
.carousel-section {
    padding: var(--space-xxl) 0;
    border-top: 1px solid var(--border-white-soft);
    position: relative;
}

.section-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--space-md);
}

.carousel-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto var(--space-xl) auto;
}

.carousel-header .eyebrow-accent {
    margin-bottom: 1.2rem;
}

.section-title {
    font-family: var(--font-serif);
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    font-weight: 350;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: 0.05em;
}

.section-desc {
    font-family: var(--font-sans);
    font-size: clamp(0.95rem, 1.5vw, 1.15rem);
    line-height: 1.6;
    color: var(--text-muted);
    font-weight: 300;
}

.carousel-wrapper {
    width: 100%;
    margin-top: 2rem;
}

.carousel-track-container {
    width: 100%;
    overflow: hidden;
    position: relative;
    cursor: grab;
}

.carousel-track-container:active {
    cursor: grabbing;
}

.carousel-track {
    display: flex;
    gap: var(--space-md);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
    padding-bottom: 1.5rem;
}

.carousel-track::-webkit-scrollbar {
    display: none;
}

/* 3:4 Vertical Symmetrical Slide Card */
.carousel-slide {
    flex: 0 0 calc(33.333% - 1.333rem);
    min-width: 290px;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.slide-image-wrap {
    position: relative;
    aspect-ratio: 3/4;
    overflow: hidden;
    background-color: var(--card-dark);
    border: 1px solid var(--border-white-soft);
}

.slide-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.2s cubic-bezier(0.25, 1, 0.5, 1);
}

.carousel-slide:hover .slide-img {
    transform: scale(1.025);
}

.centered-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0 1rem;
}

.centered-info .slide-label {
    margin-bottom: 0.4rem;
}

.centered-info .slide-title {
    font-family: var(--font-serif);
    font-size: 1.3rem;
    font-weight: 400;
    color: var(--text-primary);
    margin-bottom: 0.3rem;
    letter-spacing: 0.05em;
}

.slide-desc {
    font-family: var(--font-sans);
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 300;
}

/* Symmetrical Controls */
.carousel-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 3.5rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 1rem;
}

.carousel-nav-btn {
    background: transparent;
    border: 1px solid var(--border-white-soft);
    color: var(--text-primary);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-nav-btn:hover {
    border-color: var(--pistachio);
    color: var(--pistachio);
}

.carousel-progress-bar {
    flex-grow: 1;
    height: 1px; /* Extra thin line for luxury feel */
    background-color: var(--border-light);
    margin: 0 1.8rem;
    position: relative;
    overflow: hidden;
}

.carousel-progress-indicator {
    height: 100%;
    background-color: var(--pistachio);
    width: 25%;
    position: absolute;
    left: 0;
    top: 0;
    transition: left 0.35s cubic-bezier(0.25, 1, 0.5, 1);
}

/* -------------------------------------------------------------
   Symmetrical Line Input waitlist Form (Gucci-Style)
   ------------------------------------------------------------- */
.early-access-section {
    padding: var(--space-xxl) 0;
    border-top: 1px solid var(--border-white-soft);
    border-bottom: 1px solid var(--border-white-soft);
    display: flex;
    justify-content: center;
    position: relative;
}

.form-card-wrapper {
    max-width: 650px;
    width: 100%;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 2;
}

.form-header {
    margin-bottom: 3.5rem;
}

.form-header .eyebrow-accent {
    margin-bottom: 1.2rem;
}

.form-title {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 350;
    margin-bottom: 1rem;
    letter-spacing: 0.05em;
}

.form-desc {
    font-family: var(--font-sans);
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
    max-width: 480px;
    margin: 0 auto;
    font-weight: 300;
}

.email-form-container {
    position: relative;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    min-height: 140px;
}

/* Luxury Line Input Form Layout */
.waitlist-form-line {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    opacity: 1;
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.waitlist-form-line.fade-out {
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
}

.input-line-group {
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--border-white-soft);
    position: relative;
    transition: border-bottom-color 0.4s ease;
    padding-bottom: 0.3rem;
}

.input-line-group:focus-within {
    border-bottom-color: var(--pistachio);
}

.email-input-line {
    flex-grow: 1;
    padding: 1.2rem 1rem 0.6rem 0;
    font-family: var(--font-sans);
    font-size: 1rem;
    color: var(--text-primary);
    background: transparent;
    border: none;
    outline: none;
}

/* Floating Label on line input */
.input-line-group .floating-label {
    position: absolute;
    left: 0;
    top: 1.2rem;
    font-family: var(--font-sans);
    font-size: 0.85rem;
    color: var(--text-muted);
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.email-input-line:focus ~ .floating-label,
.email-input-line:not(:placeholder-shown) ~ .floating-label {
    top: -0.2rem;
    font-size: 0.6rem;
    letter-spacing: 0.12em;
    color: var(--pistachio);
}

.email-input-line::placeholder {
    color: transparent;
}

.btn-submit-link {
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    cursor: pointer;
    padding: 1rem 0.5rem 0.5rem 1rem;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 80px;
    height: 40px;
}

.btn-submit-link:hover {
    color: var(--pistachio);
}

.btn-submit-link.loading .btn-text {
    visibility: hidden;
    opacity: 0;
}

.btn-submit-link.loading .btn-spinner {
    display: block;
}

.btn-submit-link .btn-spinner {
    display: none;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(229, 226, 218, 0.15);
    border-top-color: var(--pistachio);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    position: absolute;
}

.centered-error {
    text-align: center;
    padding-left: 0;
}

.error-msg {
    display: block;
    font-family: var(--font-sans);
    font-size: 0.72rem;
    color: #e57373;
    margin-top: 0.5rem;
    opacity: 0;
    transform: translateY(-5px);
    transition: all 0.3s ease;
}

.error-msg.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Success Message styling */
.form-success-message {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    opacity: 0;
    transform: translateY(15px);
    transition: all 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    pointer-events: none;
}

.form-success-message.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.form-success-message.hidden {
    display: none;
}

.success-icon-wrap {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: rgba(188, 216, 167, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    border: 1px solid var(--border-soft);
}

.success-title {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    font-weight: 400;
    margin-bottom: 0.5rem;
    color: var(--pistachio);
}

.success-desc {
    font-family: var(--font-sans);
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
    max-width: 360px;
}

/* -------------------------------------------------------------
   10-Second Waitlist Popup Drawer
   ------------------------------------------------------------- */
.popup-modal-wrap {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 999;
    max-width: 380px;
    width: calc(100vw - 4rem);
    pointer-events: none;
}

.popup-modal-box {
    background-color: var(--card-dark);
    border: 1px solid var(--border-soft);
    padding: 2.2rem;
    position: relative;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
    transform: translateY(120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.8s ease;
}

.popup-modal-wrap.show {
    pointer-events: auto;
}

.popup-modal-wrap.show .popup-modal-box {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.popup-close-btn {
    position: absolute;
    top: 1.2rem;
    right: 1.2rem;
    font-size: 1.8rem;
    color: var(--text-muted);
    background: transparent;
    border: none;
    cursor: pointer;
    line-height: 0.5;
    transition: color 0.3s ease;
}

.popup-close-btn:hover {
    color: var(--pistachio);
}

.popup-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.popup-eyebrow {
    margin-bottom: 0.8rem;
}

.popup-title {
    font-family: var(--font-serif);
    font-size: 1.6rem;
    font-weight: 350;
    line-height: 1.2;
    margin-bottom: 0.8rem;
}

.popup-desc {
    font-family: var(--font-sans);
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 1.8rem;
    font-weight: 300;
}

/* Symmetrical popup form line */
.popup-form-line {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    transition: opacity 0.4s ease;
}

.popup-form-line.fade-out {
    opacity: 0;
    pointer-events: none;
}

.popup-success-message {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem 0;
    text-align: center;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.5s ease;
}

.popup-success-message.visible {
    opacity: 1;
    transform: translateY(0);
}

.popup-success-message.hidden {
    display: none;
}

.popup-success-title {
    font-family: var(--font-serif);
    font-size: 1.3rem;
    font-weight: 400;
    margin-top: 1rem;
    color: var(--pistachio);
}

/* -------------------------------------------------------------
   Hidden Admin Diagnostic Modal
   ------------------------------------------------------------- */
.admin-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1001;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

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

.admin-modal-box {
    background-color: var(--card-dark);
    border: 1px solid var(--border-soft);
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    padding: 2.5rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
    transform: scale(0.95);
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.admin-modal-overlay.visible .admin-modal-box {
    transform: scale(1);
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-white-soft);
    padding-bottom: 0.8rem;
}

.admin-title {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    color: var(--pistachio);
    font-weight: 400;
}

.admin-close-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 2rem;
    cursor: pointer;
    line-height: 0.5;
    transition: color 0.3s ease;
}

.admin-close-btn:hover {
    color: var(--text-primary);
}

.admin-note {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.database-list-wrap {
    flex-grow: 1;
    overflow-y: auto;
    border: 1px solid var(--border-white-soft);
    background-color: var(--bg-dark);
    margin-bottom: 1.5rem;
    max-height: 350px;
}

.database-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
    text-align: left;
}

.database-table th, .database-table td {
    padding: 0.8rem 1rem;
    border-bottom: 1px solid var(--border-white-soft);
}

.database-table th {
    background-color: var(--card-dark);
    color: var(--pistachio);
    font-family: var(--font-sans);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.database-table tbody tr:hover {
    background-color: rgba(188, 216, 167, 0.03);
}

.database-actions {
    display: flex;
    justify-content: flex-end;
}

.database-actions .btn {
    padding: 0.8rem 1.5rem;
    font-size: 0.75rem;
}

/* -------------------------------------------------------------
   Symmetrical Footer (Gucci-Style)
   ------------------------------------------------------------- */
.main-footer {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    padding: var(--space-xl) 0 var(--space-md) 0;
    border-top: 1px solid var(--border-white-soft);
}

.footer-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--space-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3.5rem;
}

.centered-brand {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
}

.footer-logo {
    font-family: var(--font-serif);
    font-size: 2.2rem; /* Make it massive like header centered branding */
    font-weight: 400;
    letter-spacing: 0.4em;
    text-indent: 0.4em;
    cursor: pointer;
    transition: color 0.3s ease;
}

.footer-logo:hover {
    color: var(--pistachio);
}

.footer-tagline {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 1rem;
    color: var(--text-muted);
}

/* Gucci footer link columns are spread horizontally, centered */
.footer-nav-groups {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
    border-top: 1px solid var(--border-white-soft);
    border-bottom: 1px solid var(--border-white-soft);
    padding: var(--space-md) 0;
    text-align: center;
}

.footer-nav-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.group-title {
    font-size: 0.65rem;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
}

.footer-link {
    font-family: var(--font-sans);
    font-size: 0.8rem;
    color: var(--text-primary);
    opacity: 0.65;
    transition: opacity 0.3s ease, color 0.3s ease;
}

.footer-link:hover {
    opacity: 1;
    color: var(--pistachio);
}

.centered-bottom {
    text-align: center;
    margin-top: 2rem;
}

.copyright {
    font-family: var(--font-sans);
    font-size: 0.72rem;
    color: var(--text-muted);
    letter-spacing: 0.05em;
}

/* -------------------------------------------------------------
   Responsive Queries (Mobile-first adjustments)
   ------------------------------------------------------------- */

@media (max-width: 1024px) {
    :root {
        --space-lg: 3rem;
        --space-xl: 5rem;
    }
    
    .main-header {
        padding: 0 var(--space-md);
    }
    
    .hero-title {
        letter-spacing: 0.1em;
        text-indent: 0.1em;
    }
    
    .carousel-slide {
        flex: 0 0 calc(50% - 1rem); /* 2 slides on tablet */
    }
}

@media (max-width: 768px) {
    :root {
        --space-xl: 4rem;
        --space-xxl: 5rem;
    }
    
    .main-header {
        padding: 0 var(--space-sm);
    }
    
    .brand-title {
        font-size: 1.25rem;
        letter-spacing: 0.25em;
        text-indent: 0.25em;
    }

    .header-nav {
        gap: 1.2rem;
    }
    
    .hero-title {
        letter-spacing: 0.05em;
        text-indent: 0.05em;
    }
    
    .carousel-slide {
        flex: 0 0 85vw; /* Snap full slide on mobile */
    }
    
    .footer-nav-groups {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        padding: var(--space-md) 0;
    }
    
    .popup-modal-wrap {
        bottom: 0;
        right: 0;
        width: 100%;
        max-width: 100%;
    }
    
    .popup-modal-box {
        border-bottom: none;
        border-left: none;
        border-right: none;
        padding: 2rem 1.5rem;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .nav-left .nav-link {
        display: none; /* Hide Gallery link on small screens to prevent overlay clutter */
    }
}
