/*
Theme Name: Saviour Kicks
Theme URI: https://www.saviourkicks.com
Description: Premium sneaker care and restoration business website. Custom WordPress theme with GSAP animations.
Version: 1.0.0
Author: Saviour Kicks
Author URI: https://www.saviourkicks.com
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: saviour-kicks
Requires at least: 6.0
Requires PHP: 7.4
*/

@import url('https://fonts.googleapis.com/css2?family=Permanent+Marker&display=swap');

/* ============================================
    CSS VARIABLES & RESET
============================================ */
:root {
    --color-black: #000000;
    --color-white: #ffffff;
    --color-cream: #f8f6f3;
    --color-grey: #8a8a8a;
    --color-varsityred: #CE1141;

    --font-display: 'Bebas Neue', sans-serif;
    --font-body: 'Outfit', sans-serif;

    --vh: 1vh;
}

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

html {
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-white);
    color: var(--color-black);
    height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* ============================================
    PRELOADER
============================================ */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: calc(var(--vh, 1vh) * 100);
    z-index: 9999;
    pointer-events: none;
}

.preloader__panel {
    position: absolute;
    left: 0;
    width: 100%;
    height: calc(50% + 1px);
    background-color: var(--color-black);
    will-change: transform;
    overflow: hidden;
}

.preloader__panel--top {
    top: 0;
    transform-origin: center bottom;
}

.preloader__panel--bottom {
    bottom: 0;
    transform-origin: center top;
}

.preloader__progress-container {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 2px;
    transform: translateY(-50%);
    z-index: 10;
    overflow: hidden;
}

.preloader__progress-bar {
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background-color: var(--color-white);
    will-change: width;
}

.preloader__counter {
    position: absolute;
    left: 50%;
    display: flex;
    align-items: baseline;
    gap: 2px;
    white-space: nowrap;
}

.preloader__counter--top {
    bottom: 0;
    transform: translateX(-50%) translateY(50%);
    clip-path: inset(0 0 50% 0);
}

.preloader__counter--bottom {
    top: 0;
    transform: translateX(-50%) translateY(-50%);
    clip-path: inset(50% 0 0 0);
}

.preloader__number {
    font-family: var(--font-display);
    font-size: clamp(4rem, 15vw, 12rem);
    color: var(--color-white);
    line-height: 1;
}

.preloader__percent {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 4vw, 3rem);
    color: var(--color-white);
    opacity: 0.7;
}

/* ============================================
    UI LAYERS
============================================ */
.global-progress-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 5px;
    background-color: var(--color-varsityred);
    z-index: 99999;
    will-change: width;
}

.footer-sticker {
    position: fixed;
    bottom: 5px;
    left: 0;
    height: 30px;
    width: auto;
    z-index: 9000;
    pointer-events: none;
    display: block;
    opacity: 0;
    will-change: opacity, filter, transform;
    transform-origin: bottom center;
}

.logo-reveal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: calc(var(--vh, 1vh) * 100);
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-white);
    z-index: 9998;
    will-change: transform;
}

.header-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 32px 0 0 0;
    pointer-events: none;
    opacity: 1;
    z-index: 10000;
}

.header-nav.is-active {
    pointer-events: auto;
}

.header-nav__container {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    position: relative;
    width: 100%;
    padding: 0 40px;
}

.header-nav__logo {
    height: 5vh;
    min-height: 35px;
    width: auto;
    flex-shrink: 0;
    position: relative;
    z-index: 2;
    will-change: transform;
    opacity: 0;
    cursor: pointer;
}

/* Container must be relative for the pill to position itself inside */
.header-nav__links {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    position: absolute;
    left: 40px;
    top: 50%;
    transform: translateY(-50%);
    transition: margin-left 0.3s ease;
    /* Ensure links sit ON TOP of the pill */
    z-index: 10;
}

/* THE PILL */
.header-nav__pill {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 100%;
    /* Or fixed height like 2.5rem */
    width: 0;
    /* Starts hidden */
    background-color: var(--color-varsityred);
    border-radius: 999px;
    /* Pill shape */
    z-index: -1;
    /* Behind text */
    opacity: 0;
    pointer-events: none;
    /* Optional: Add padding visual adjustment if you want the pill larger than text 
    height: 2.5rem; */
    transition: none !important;
}

/* LINK UPDATES */
.header-nav__link {
    font-family: var(--font-body);
    font-size: clamp(0.75rem, 1.5vw, 0.9rem);
    font-weight: 500;
    text-decoration: none;
    color: var(--color-black);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    will-change: transform, opacity, filter;
    position: relative;
    z-index: 2;
    padding: 0 1rem;
    /* Give text some breathing room for the pill */
    line-height: 2.5rem;
    /* Center vertically in the pill */
    transition: color 0.3s ease;
    /* Smooth color swap */
}

/* --- DYNAMIC COLOR CHANGE --- */
.header-nav__link.is-under-pill {
    color: #ffffff !important;
    transition: color 0.1s linear;
    /* Fast transition for snapping */
}

/* Active State (Text turns white) */
.header-nav__link.is-active-pill {
    color: #ffffff !important;
}

@media (hover: hover) {
    .header-nav__link:hover {
        opacity: 0.6 !important;
    }
}

.logo-reveal__image {
    height: calc(var(--vh, 1vh) * 33.33);
    width: auto;
    will-change: transform, height;
}

/* ============================================
    MAIN LAYOUT
============================================ */

#smooth-wrapper {
    position: fixed;
    height: 100%;
    width: 100%;
    top: 0;
    left: 0;
    overflow: hidden;
    z-index: 20;
}

#smooth-content {
    width: 100%;
    overflow: visible;
}

.section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    position: relative;
}

/* Hero */
.hero {
    background-color: transparent;
    flex-direction: column;
    gap: 2rem;
    z-index: 2;
    min-height: calc(var(--vh, 1vh) * 100 + 4000px);
}

.hero__logo-spacer {
    height: calc(var(--vh, 1vh) * 33.33);
    width: 100%;
}

.hero__tagline {
    font-family: var(--font-body);
    font-size: clamp(1rem, 2vw, 1.5rem);
    font-weight: 300;
    color: var(--color-black);
    letter-spacing: 0.3em;
    text-transform: uppercase;
    text-align: center;
    padding-left: 0.3em;
}

/* FIXED ELEMENTS */
.scroll-text-container {
    position: fixed;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 11;
    opacity: 0;
}

.scroll-text {
    font-family: var(--font-body);
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-grey);
    padding-left: 0.2em;
}

.scroll-indicator {
    position: fixed;
    bottom: 4rem;
    left: 50%;
    transform: translateX(-50%);

    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0;

    /* x-2=16: shoe layer (below wrapper z:20, above bg z:15) */
    z-index: 16;
    pointer-events: none;
    /* Never blocks clicks */

    will-change: transform, opacity;
}

.scroll-indicator__image {
    width: clamp(80px, 15vw, 120px);
    height: auto;
    animation: bounce 0.5s ease-in-out infinite;
    will-change: transform, width;
    transform-origin: center center;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}

/* ============================================
    ABOUT CONTENT (The Glass Card)
============================================ */
.about__content {
    position: fixed;
    top: 50%;
    left: 50%;

    /* --- CARD DIMENSIONS --- */
    width: 90%;
    /* Responsive width */
    max-width: 1200px;
    /* Cap the width so it doesn't get too wide */
    height: 70vh;
    /* 70% of viewport height */

    /* --- GLASSMORPHISM STYLE (Matches Service Cards) --- */
    background: rgba(255, 255, 255, 0.4);
    /* Slightly more opaque than services for readability */
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 30px;
    /* x-1=17: foreground layer (below wrapper z:20) */
    z-index: 17;
    pointer-events: none;
    /* Let clicks pass to shoe/gallery */
    box-shadow:
        0 0 1px rgba(0, 0, 0, 1),
        inset 0 0 0 1px rgba(255, 255, 255, 0.5);
    /* Inner border shine */

    /* --- LAYOUT --- */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 3rem;
    /* Internal spacing */

    pointer-events: none;
    opacity: 0;
    visibility: hidden;

    /* Safety scroll for small screens/huge text */
    overflow-y: auto;
    -ms-overflow-style: none;
    /* IE and Edge */
    scrollbar-width: none;
    /* Firefox */
}

/* Hide scrollbar within the card for Chrome/Safari */
.about__content::-webkit-scrollbar {
    display: none;
}

.about__content.is-active {
    pointer-events: none;
    /* Keep pass-through even when active */
}

/* BLACK HEADLINE CONTAINER */
/* --- LAYOUT ZONES (Inside Glass Card) --- */
.about__half--top {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    z-index: 2;
}

.about__half--bottom {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 50%;
    display: grid;
    place-items: center;
    padding: 1rem 1.5rem;
    pointer-events: none;
    z-index: 2;
    overflow: hidden;
}

.about__header-line {
    font-family: var(--font-display);
    color: var(--color-black);
    white-space: nowrap;
    text-align: center;
    will-change: transform, opacity;
}

/* "SAVE YOUR KICKS" & "SAVIOUR KICKS" */
.about__line--left,
.about__line--right {
    font-size: clamp(3rem, 14vw, 12rem);
    line-height: 0.8;
}

/* "WITH" */
.about__line--center {
    font-size: clamp(1.5rem, 4vw, 3rem);
    color: var(--color-varsityred);
    margin: 0.5rem 0;
    letter-spacing: 0.2em;
}

.about__link {
    color: var(--color-black);
    text-decoration: none;
    font-weight: 500;
    pointer-events: auto;
}

.about__text--5 .about__link {
    color: inherit !important;
    text-decoration: none;
    border: none;
    cursor: pointer;
}

.about__text--5 .about__link:hover {
    opacity: 0.7;
}

/* Unused Gallery Prototype Removed */

/* --- ABOUT EXIT TEXT (Shoe-Hero-Sequence Pattern) --- */
.about-exit__text {
    position: fixed;
    top: 45%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: var(--font-display);
    font-size: clamp(4rem, 12vw, 12rem);
    color: var(--color-varsityred);
    line-height: 0.85;
    text-align: center;
    width: 100%;
    pointer-events: none;
    will-change: opacity, transform;
    visibility: hidden;
    opacity: 0;
}

.about-exit__text--back {
    z-index: 15;
    /* x-3: background layer (below wrapper z:20) */
}

.about-exit__text--back span {
    display: inline-block;
    opacity: 0;
    will-change: opacity, filter, transform;
}

.about-exit__text--front {
    z-index: 17;
    /* x-1: foreground layer (below wrapper z:20) */
    opacity: 0;
    color: var(--color-varsityred);
}

/* ============================================
    LIGHTBOX
============================================ */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 10005;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lightbox.is-open {
    opacity: 1;
    visibility: visible;
}

.lightbox__content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
}

.lightbox__image {
    max-width: 100%;
    max-height: 90vh;
    display: block;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    border-radius: 4px;
}

.lightbox__close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: none;
    border: none;
    font-size: 3rem;
    color: #fff;
    cursor: pointer;
    line-height: 1;
    transition: transform 0.2s;
    z-index: 10006;
}

.lightbox__close:hover {
    transform: scale(1.1);
    color: var(--color-varsityred);
}

.lightbox__controls {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 2rem;
    align-items: center;
    z-index: 10006;
}

.lightbox__prev,
.lightbox__next {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    font-size: 2rem;
    color: #fff;
    cursor: pointer;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.lightbox__prev:hover,
.lightbox__next:hover {
    background: var(--color-varsityred);
    border-color: var(--color-varsityred);
    transform: scale(1.1);
}

/* Make gallery images clickable */
.about__gallery-img {
    cursor: pointer;
    transition: transform 0.2s;
}

.about__gallery-img:hover {
    transform: scale(1.02);
}

/* ============================================
   NEW: RED BACKGROUND HEADLINE
============================================ */
/* --- RED HEADLINE (Background Layer) --- */
.about__header-bg {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 15;
    /* x-3: background layer (below wrapper z:20) */
    pointer-events: none;
    line-height: 0.85;
    will-change: transform;
}

/* Red Text Styles - UPDATED */
.about__line--left-bg,
.about__line--right-bg {
    font-family: var(--font-display);
    font-size: clamp(3rem, 14vw, 12rem);
    line-height: 0.8;
    color: var(--color-varsityred);
    white-space: nowrap;
    will-change: transform;

    /* ADD THIS LINE to prevent the flash */
    visibility: hidden;
}

.about__line--center-bg {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 4vw, 3rem);
    color: var(--color-varsityred);
    margin: 0.5rem 0;
    letter-spacing: 0.2em;
    will-change: transform;

    /* ADD THIS LINE to prevent the flash */
    visibility: hidden;
}

/* MOBILE ADJUSTMENT FOR THE CARD */
@media (max-width: 768px) {
    .about__content {
        width: 90%;
        height: auto;
        /* Let it grow naturally on mobile */
        min-height: 60vh;
        /* But keep it substantial */
        max-height: 80vh;
        /* Don't let it cover the nav */
        padding: 2rem;
    }

    .about__line--left,
    .about__line--right {
        font-size: 15vw;
        /* Ensure text fits width */
    }

    .about__line--left-bg,
    .about__line--right-bg {
        font-size: 14vw;
    }

    .about__header-bg {
        margin-top: -40px;
    }

    .about__header-container,
    .about__header-bg {
        margin-top: -40px;
    }
}


/* --- BLACK HEADLINE (Inside Card) --- */
.about__header-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 17;
    /* x-1: foreground layer (below wrapper z:20) */
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    line-height: 0.85;
}

/* --- TEXT LOOP (Bottom Half) --- */
.about__text {
    grid-area: 1 / 1 / 2 / 2;
    width: auto;
    max-width: 75vw;
    margin: 0;
    padding: 0.6rem 1.8rem;
    box-sizing: border-box;
    font-family: var(--font-body);
    font-size: clamp(1.5rem, 4vw, 3rem);
    color: var(--color-varsityred);
    text-transform: uppercase;
    font-weight: 600;
    line-height: 1.4;
    text-align: center;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.06);
    opacity: 0;
    visibility: hidden;
    pointer-events: auto;
    will-change: transform, opacity;
}

@media (max-width: 768px) {
    .about__half--bottom {
        padding: 0.5rem 1rem;
    }
    .about__text {
        font-size: clamp(1.1rem, 3vw, 1.8rem);
        padding: 0.5rem 1.2rem;
        max-width: 95%;
    }
}


.services__scroll-indicator {
    position: absolute;
    bottom: 5vh;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    opacity: 0;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    will-change: opacity, transform;
}

.services__scroll-text {
    font-family: var(--font-display);
    font-size: clamp(1rem, 2vw, 1.5rem);
    color: var(--color-varsityred);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    animation: basketball-bounce 0.5s infinite alternate cubic-bezier(0.45, 0.05, 0.55, 0.95);
    white-space: nowrap;
}

@keyframes basketball-bounce {
    0% {
        transform: translateY(0) scaleX(1.1) scaleY(0.85);
    }

    15% {
        transform: translateY(-5px) scaleX(1) scaleY(1);
    }

    100% {
        transform: translateY(-30px) scaleX(0.9) scaleY(1.1);
    }
}

@media (max-width: 768px) {
    .services__scroll-indicator {
        bottom: 8vh;
    }

    @keyframes basketball-bounce {
        0% {
            transform: translateY(0) scaleX(1.1) scaleY(0.85);
        }

        15% {
            transform: translateY(-3px) scaleX(1) scaleY(1);
        }

        100% {
            transform: translateY(-15px) scaleX(0.9) scaleY(1.1);
        }
    }
}

/* ============================================
    SERVICES SECTION (UPDATED)
============================================ */

.services-section {
    position: relative;
    width: 100%;
    background: var(--color-cream);
    z-index: 50;
    will-change: clip-path;
}

.services__title {
    position: absolute;
    top: 8rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    pointer-events: none;
    font-family: var(--font-display);
    font-size: clamp(3rem, 8vw, 6rem);
    color: var(--color-black);
    line-height: 0.9;
    text-align: center;
    white-space: nowrap;
    letter-spacing: normal;
}

.services__parallax {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
}

.services__parallax-img {
    position: absolute;
    width: auto;
    will-change: transform;
    opacity: 1;
}

.services__parallax-img--1 {
    z-index: 1;
    top: 0;
    height: 100%;
    width: 150%;
    left: -25%;
    background-image: url('assets/Jordan_Collage_1.webp');
    background-repeat: no-repeat;
    background-size: auto 90%;
    background-position: center center;
    opacity: 0.6;
    filter: blur(4px);
}

.services__parallax-img--2 {
    z-index: 2;
    height: 200%;
    top: 50%;
    transform: translateY(-50%);
    object-fit: contain;
    width: auto;
    left: -400px;
    filter: blur(2px);
}

.services__container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    overflow: hidden;
    position: relative;
    padding-top: 4rem;
    z-index: 5;
}

.services__track {
    display: flex;
    align-items: center;
    gap: 8vw;
    will-change: transform;
}

.service-card {
    flex-shrink: 0;
    width: 55vw;
    height: 55vh;
    background: rgba(255, 255, 255, 0.10);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 20px;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    will-change: transform, opacity;
    position: relative;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15), 0 12px 24px -8px rgba(0, 0, 0, 0.1);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    z-index: 0;
    pointer-events: none;
}

.service-card[data-service="deep-cleaning"]::before {
    background-image: url('assets/Deep_Clean_Back-scaled.webp');
}

.service-card[data-service="repaints"]::before {
    background-image: url('assets/Repaint_Back-scaled.webp');
}

.service-card[data-service="deoxidation"]::before {
    background-image: url('assets/Deoxidation-scaled.webp');
}

.service-card[data-service="reglue"]::before {
    background-image: url('assets/Reglue_Back-scaled.webp');
}

.service-card[data-service="more-info"]::before {
    background-image: url('assets/Deep_Clean_Back-scaled.webp');
}

.service-card>* {
    position: relative;
    z-index: 1;
}

.service-card__num {
    font-family: var(--font-display);
    /* REDUCED SIZE: To fit text instead of just numbers */
    font-size: clamp(2.5rem, 4vw, 3.5rem);

    /* UPDATED COLOR: Black (was rgba(0,0,0,0.1)) */
    color: var(--color-black);

    line-height: 0.9;
    margin-bottom: 0.5rem;

    /* Ensure long words wrap if necessary */
    word-wrap: break-word;
    max-width: 100%;
}

.service-card__title {
    font-family: var(--font-display);
    /* ADJUSTED SIZE: Slightly smaller for price/status */
    font-size: clamp(1.5rem, 2.5vw, 2.5rem);
    color: var(--color-varsityred);
    /* Optional: Made price pop with Red, or keep Black if preferred */
    text-transform: uppercase;
    letter-spacing: 0.02em;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
    margin-bottom: 0.5rem;
}

.service-card__desc {
    font-family: var(--font-body);
    font-size: clamp(1.2rem, 1.5vw, 2rem);
    color: var(--color-grey);
    line-height: 1.6;

    /* CHANGED: Allow text to fill the container width */
    max-width: 100%;

    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

.service-card__note {
    font-family: var(--font-body);
    font-size: clamp(0.75rem, 1.5vw, 0.9rem);
    color: var(--color-grey);
    font-style: italic;
    opacity: 0.7;
}

.service-card__gallery-btn {
    margin-top: auto;
    padding: 0.875rem 2rem;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-white);
    background: var(--color-varsityred);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    align-self: flex-start;
    flex-shrink: 0;
    pointer-events: auto;
}

.service-card__gallery-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(206, 17, 65, 0.3);
}

/* Phase 3: Button Enhancement - Ripple & Focus States */
.service-card__gallery-btn,
.contact__submit,
.shop__coming-soon {
    position: relative;
    overflow: hidden;
}

.service-card__gallery-btn::after,
.contact__submit::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.5s ease, height 0.5s ease;
    pointer-events: none;
}

.service-card__gallery-btn:hover::after,
.contact__submit:hover::after {
    width: 300px;
    height: 300px;
}

.service-card__gallery-btn:active,
.contact__submit:active,
.shop__coming-soon:active {
    transform: scale(0.98);
}

.service-card__gallery-btn:focus-visible,
.shop__coming-soon:focus-visible {
    outline: 2px solid var(--color-varsityred);
    outline-offset: 3px;
}

/* Gallery Morph Effect */
.services-morph {
    position: fixed;
    border-radius: 50%;
    background: var(--color-varsityred);
    pointer-events: none;
    z-index: 9999;
    opacity: 0;
    transform: scale(0);
}

.service-card.is-morphing {
    background: rgba(255, 255, 255, 0.10);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    z-index: 99999;
}

.service-card.is-morphing>* {
    opacity: 0;
    transition: opacity 0.2s ease;
}

.service-card.is-morphed {
    pointer-events: auto;
}

.service-card.is-morphed::before {
    opacity: 0 !important;
}

/* Gallery Modal */
.gallery-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10001;
    background: var(--color-varsityred);
    opacity: 0;
    visibility: hidden;
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}

.gallery-modal.is-open {
    opacity: 1;
    visibility: visible;
}

.gallery-modal__close {
    position: fixed;
    top: 2rem;
    right: 2rem;
    font-size: 2.5rem;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--color-white);
    z-index: 10002;
    transition: transform 0.3s ease;
    line-height: 1;
}

.gallery-modal__close:hover {
    transform: rotate(90deg);
}

.gallery-modal__content {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
}

.gallery-modal__title {
    font-family: var(--font-display);
    font-size: clamp(3rem, 10vw, 8rem);
    color: var(--color-white);
    margin-bottom: 2rem;
}

.gallery-modal__text {
    font-family: var(--font-body);
    font-size: 1.25rem;
    color: var(--color-white);
    opacity: 0.8;
}

/* Gallery Grid & Items */
.gallery-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 6rem;
    width: 100%;
    max-width: 800px;
    margin-top: 2rem;
    padding-bottom: 4rem;
}

.gallery-item {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
    text-align: center;
    opacity: 0;
    transform: translateY(30px);
}

.gallery-item__header {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3rem);
    color: var(--color-white);
    letter-spacing: 0.05em;
}

.gallery-item__img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}



.gallery-item__desc {
    font-family: var(--font-body);
    font-size: 1.2rem;
    color: var(--color-white);
    line-height: 1.5;
    max-width: 600px;
    opacity: 0.9;
}

/* Redundant Services Modal Removed */

/* ============================================
   Shop Page Modal (Cart / Checkout)
============================================ */
.shop-page-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 80vh;
    z-index: 10001;
    background: rgba(248, 246, 243, 0.9);
    border-radius: 20px;
    box-shadow: 0 8px 60px rgba(0, 0, 0, 0.25);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
    overflow: hidden;
}

.shop-page-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.shop-page-modal-backdrop.is-open {
    opacity: 1;
    visibility: visible;
}

.shop-page-modal.is-open {
    opacity: 1;
    visibility: visible;
}

.shop-page-modal__close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 2.5rem;
    background: rgba(248, 246, 243, 0.9);
    border: none;
    cursor: pointer;
    color: var(--color-black);
    z-index: 10002;
    transition: transform 0.3s ease;
    line-height: 1;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.shop-page-modal__close:hover {
    transform: rotate(90deg);
}

.shop-page-modal__content {
    width: 100%;
    height: 100%;
    position: relative;
}

.shop-page-modal__loader {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--color-grey);
}

.shop-page-modal__iframe {
    width: 100%;
    height: 100%;
    border: none;
    position: relative;
    z-index: 1;
}

/* Yeezy Hero */
.yeezy-hero {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--color-white);
    z-index: 3;
    overflow: hidden;
    visibility: hidden;
}

.yeezy-hero.is-active {
    visibility: visible;
}

.yeezy-hero__container {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.yeezy-hero__image {
    /* Updated to match Tiffany Interlude */
    width: auto;
    height: 80vh;
    /* Matches Tiffany's 80vh */
    max-width: 90%;
    /* Matches Tiffany's max-width */
    object-fit: contain;
    object-position: center;
    display: block;
    /* Ensures consistent rendering */
}

/* Base styles for both Yeezy texts (Exact copy of Tiffany) */
.yeezy-hero__text {
    position: absolute;
    top: 45%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: var(--font-display);
    font-size: clamp(4rem, 12vw, 12rem);
    color: var(--color-varsityred);
    line-height: 0.85;
    text-align: center;
    width: 100%;
    pointer-events: none;
    mix-blend-mode: normal;
    will-change: opacity, transform;
}

/* Specifics for the Back Text (Behind Shoe) */
.yeezy-hero__text--back {
    z-index: -1;
}

.yeezy-hero__text--back span {
    display: inline-block;
    opacity: 0;
    will-change: opacity, filter, transform;
}

/* Specifics for the Front Text (In Front of Shoe) */
.yeezy-hero__text--front {
    z-index: 2;
    opacity: 0;
    color: var(--color-varsityred);
    mix-blend-mode: normal;
}

/* Mobile: Right-align Yeezy image so it's revealed immediately
   by the right-to-left clip-path on the services section */
@media (max-width: 768px) {
    .yeezy-hero__container {
        justify-content: flex-end;
        padding-right: 5%;
    }
}

.yeezy-hero-spacer {
    width: 100%;
    height: 500vh;
    /* Matches Tiffany Spacer */
    position: relative;
    z-index: 10;
    pointer-events: none;
}

/* FAQ */
#faq {
    min-height: 100vh;
    background: var(--color-cream);
    z-index: 50;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 8rem;
    padding-bottom: 8rem;
    will-change: clip-path;
}

.faq__title {
    font-family: var(--font-display);
    /* Updated to match Contact & Services Titles */
    font-size: clamp(3rem, 8vw, 6rem);
    color: var(--color-black);
    line-height: 0.9;
    text-align: center;
    margin-bottom: 4rem;

    /* Removed letter-spacing to match the tighter look */
    letter-spacing: normal;
    padding-left: 0;
}

.faq__container {
    width: 80%;
    max-width: 1200px;
    margin: 0 auto;
}

.faq__item {
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.faq__question {
    width: 100%;
    background: none;
    border: none;
    padding: 2rem 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-align: left;
    cursor: pointer;
    gap: 2rem;
}

.faq__question-num {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--color-varsityred);
    flex-shrink: 0;
}

.faq__question-text {
    font-family: var(--font-display);
    font-size: clamp(1.25rem, 3vw, 2.5rem);
    color: var(--color-black);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    flex-grow: 1;
    transition: color 0.3s ease;
}

.faq__question:hover .faq__question-text {
    color: var(--color-grey);
}

.faq__icon {
    font-family: var(--font-body);
    font-size: 2rem;
    font-weight: 300;
    transition: transform 0.3s ease;
}

.faq__answer {
    height: 0;
    overflow: hidden;
}

.faq__answer-content {
    padding-bottom: 2rem;
    padding-left: calc(1.5rem + 2rem);
    font-family: var(--font-body);
    font-size: clamp(1rem, 1.5vw, 1.1rem);
    color: var(--color-grey);
    line-height: 1.6;
}

.faq__item.active .faq__icon {
    transform: rotate(45deg);
}

/* Contact Section */
.contact-section {
    min-height: 100vh;
    background: var(--color-cream);
    z-index: 5;
    position: sticky;
    top: 0;
    padding-top: 8rem;
    padding-bottom: 8rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
}

.contact__content {
    width: 90%;
    max-width: 1400px;
    margin: 0 auto;
    flex-grow: 1;
    display: flex;
    align-items: center;
}

.contact__grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 6rem;
    width: 100%;
}

.contact__left {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact__title {
    font-family: var(--font-display);
    font-size: clamp(3rem, 8vw, 6rem);
    color: var(--color-black);
    line-height: 0.9;
    margin-bottom: 4rem;
}

.contact__info {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.contact__info-item {
    font-family: var(--font-body);
}

.contact__label {
    display: block;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-varsityred);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.contact__info-item p {
    font-size: 1.5rem;
    color: var(--color-black);
    line-height: 1.3;
}

.contact__link {
    font-size: 1.5rem;
    color: var(--color-black);
    text-decoration: none;
    position: relative;
    display: inline-block;
}

.contact__link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--color-black);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s ease;
}

.contact__link:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* Phase 3: Social Links with Icons */
.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: transparent;
    border: 1px solid rgba(0, 0, 0, 0.2);
    color: var(--color-black);
    font-size: 1.25rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.social-link:hover {
    background: var(--color-varsityred);
    border-color: var(--color-varsityred);
    color: var(--color-white);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(206, 17, 65, 0.3);
}

.social-link:active {
    transform: translateY(-1px);
}

.social-link:focus-visible {
    outline: 2px solid var(--color-varsityred);
    outline-offset: 3px;
}

/* Light variant for dark backgrounds */
.social-link--light {
    border-color: rgba(255, 255, 255, 0.3);
    color: var(--color-white);
}

.social-link--light:hover {
    background: var(--color-varsityred);
    border-color: var(--color-varsityred);
}

/* Contact Form */
.contact__form {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.form-group {
    position: relative;
}

.form-group label {
    display: block;
    font-family: var(--font-display);
    font-size: 1.2rem;
    color: var(--color-grey);
    margin-bottom: 0.5rem;
    letter-spacing: 0.05em;
}

.contact__form input,
.contact__form textarea,
.contact__form select {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.2);
    padding: 1rem 0;
    font-family: var(--font-body);
    font-size: 1.25rem;
    color: var(--color-black);
    border-radius: 0;
    transition: border-color 0.3s ease;
}

.contact__form input:focus,
.contact__form textarea:focus,
.contact__form select:focus {
    outline: none;
    border-bottom-color: var(--color-black);
}

.contact__form input::placeholder,
.contact__form textarea::placeholder {
    color: var(--color-grey);
    opacity: 0.6;
}

/* Select wrapper */
.select-wrapper {
    position: relative;
}

.select-wrapper select {
    appearance: none;
    -webkit-appearance: none;
    padding-right: 2rem;
    cursor: pointer;
}

.select-arrow {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-grey);
    pointer-events: none;
    transition: transform 0.3s ease, color 0.3s ease;
}

.select-wrapper select:focus+.select-arrow {
    transform: translateY(-50%) rotate(180deg);
    color: var(--color-black);
}

/* File Upload Area */
.file-upload-area {
    position: relative;
    border: 2px dashed rgba(0, 0, 0, 0.15);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.3s ease, background 0.3s ease;
}

.file-upload-area:hover,
.file-upload-area.dragover {
    border-color: var(--color-varsityred);
    background: rgba(206, 17, 65, 0.03);
}

.file-input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.file-upload-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    pointer-events: none;
}

.file-upload-label i {
    font-size: 2rem;
    color: var(--color-grey);
    transition: color 0.3s ease;
}

.file-upload-area:hover .file-upload-label i {
    color: var(--color-varsityred);
}

.file-upload-label span {
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--color-grey);
}

/* File Preview Thumbnails */
.file-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1rem;
}

.file-preview:empty {
    display: none;
}

.file-preview__item {
    position: relative;
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.file-preview__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.file-preview__remove {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 20px;
    height: 20px;
    background: var(--color-varsityred);
    color: var(--color-white);
    border: none;
    border-radius: 50%;
    font-size: 0.6rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    padding: 0;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.file-preview__item:hover .file-preview__remove {
    opacity: 1;
}

/* Submit Button */
.contact__submit {
    align-self: flex-start;
    margin-top: 2rem;
    padding: 1.25rem 3.5rem;
    background: var(--color-varsityred);
    color: var(--color-white);
    border: none;
    border-radius: 50px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    cursor: pointer;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-width: 180px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact__submit:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(206, 17, 65, 0.3);
}

.contact__submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none !important;
}

.contact__submit .btn-loader {
    position: absolute;
}

.contact__submit:focus-visible {
    outline: 2px solid var(--color-varsityred);
    outline-offset: 3px;
}

/* Validation */
.form-error {
    display: block;
    color: var(--color-varsityred);
    font-family: var(--font-body);
    font-size: 0.8rem;
    margin-top: 0.35rem;
    min-height: 1.2em;
}

.contact__form input.error,
.contact__form textarea.error,
.contact__form select.error {
    border-bottom-color: var(--color-varsityred);
}

.contact__form input.valid,
.contact__form textarea.valid {
    border-bottom-color: #28a745;
}

.contact__form select.valid {
    border-bottom-color: var(--color-varsityred);
}

/* Form Messages */
.form-message {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 4px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    display: none;
}

.form-message.success {
    display: block;
    background: rgba(40, 167, 69, 0.1);
    border: 1px solid #28a745;
    color: #28a745;
}

.form-message.error {
    display: block;
    background: rgba(206, 17, 65, 0.1);
    border: 1px solid var(--color-varsityred);
    color: var(--color-varsityred);
}

/* Instagram Feed Section */
.instagram-section {
    background: #ffffff;
    padding: 6rem 10%;
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.instagram-section>* {
    width: 100% !important;
    max-width: 100% !important;
}

/* Shop Section */
.shop-section {
    min-height: 100vh;
    background: var(--color-cream);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 5% 6rem;
    position: relative;
    z-index: 20;
}

.shop__header {
    text-align: center;
    padding: 6rem 0 3rem;
    width: 100%;
    max-width: 1400px;
    background: var(--color-cream);
    z-index: 3;
}

.shop__content {
    text-align: center;
    max-width: 1400px;
    width: 100%;
}

.shop__title {
    font-family: var(--font-display);
    font-size: clamp(3rem, 8vw, 6rem);
    color: var(--color-black);
    line-height: 0.9;
    text-align: center;
    margin-bottom: 1.5rem;
    letter-spacing: normal;
}

.shop__actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.shop__btn {
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    pointer-events: auto;
}

.shop__btn--cart {
    background: var(--color-varsityred);
    color: var(--color-white);
}

.shop__btn--checkout {
    background: var(--color-black);
    color: var(--color-white);
}

.shop__btn:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.shop__subtitle {
    font-family: var(--font-body);
    font-size: clamp(1rem, 2vw, 1.5rem);
    color: var(--color-grey);
    margin-bottom: 3rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
}

.shop__coming-soon {
    display: inline-block;
    padding: 1rem 3rem;
    border: 2px solid var(--color-black);
    font-family: var(--font-body);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    transition: all 0.3s ease;
}

.shop__coming-soon:hover {
    background: var(--color-black);
    color: var(--color-white);
}

/* WooCommerce Product Grid */
.shop-section .woocommerce ul.products {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.shop-section .woocommerce ul.products::before,
.shop-section .woocommerce ul.products::after {
    display: none;
    content: none;
}

.shop-section .woocommerce ul.products li.product {
    margin: 0;
    padding: 0;
    text-align: center;
    float: none;
    width: 100%;
    cursor: pointer;
}

/* Disable product links — modal handles all clicks */
.shop-section .woocommerce ul.products li.product a {
    pointer-events: none;
}

.shop-section .woocommerce ul.products li.product a img,
.shop-section .woocommerce ul.products li.product img {
    border-radius: 20px;
    width: 100%;
    height: auto;
    display: block;
    margin: 0 0 1rem;
}

.shop-section .woocommerce ul.products li.product .woocommerce-loop-product__title,
.shop-section .woocommerce ul.products li.product h2 {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 500;
    color: var(--color-grey);
    text-transform: none;
    padding: 0;
    margin: 0 0 0.5rem;
}

.shop-section .woocommerce ul.products li.product .price {
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--color-grey);
    margin-bottom: 1rem;
    display: block;
}

.shop-section .woocommerce ul.products li.product .price del {
    color: var(--color-grey);
    opacity: 0.5;
}

.shop-section .woocommerce ul.products li.product .price ins {
    text-decoration: none;
    font-weight: 600;
}

.shop-section .woocommerce ul.products li.product .button,
.shop-section .woocommerce ul.products li.product .add_to_cart_button,
.shop-section .woocommerce ul.products li.product a.added_to_cart {
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    background: var(--color-varsityred);
    color: var(--color-white);
    border: none;
    border-radius: 50px;
    padding: 0.75rem 2rem;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: inline-block;
    text-decoration: none;
    line-height: 1;
}

.shop-section .woocommerce ul.products li.product .button:hover,
.shop-section .woocommerce ul.products li.product .add_to_cart_button:hover,
.shop-section .woocommerce ul.products li.product a.added_to_cart:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(206, 17, 65, 0.3);
}

.shop-section .woocommerce ul.products li.product .onsale {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: var(--color-varsityred);
    color: var(--color-white);
    border-radius: 50px;
    padding: 0.4rem 1rem;
    top: 0.75rem;
    right: 0.75rem;
    left: auto;
    min-height: auto;
    min-width: auto;
    line-height: 1.4;
}

.shop-section .woocommerce ul.products li.product .star-rating {
    color: var(--color-varsityred);
    margin: 0 auto 0.5rem;
}

/* Shop grid responsive */
@media (max-width: 1024px) {
    .shop-section .woocommerce ul.products {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .shop-section .woocommerce ul.products {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .shop__content {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .shop-section .woocommerce ul.products {
        grid-template-columns: 1fr;
    }
}

.main-footer {
    background: var(--color-black);
    color: var(--color-white);
    padding: 6rem 5% 4rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
}

.footer__content {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

.footer__text {
    font-family: var(--font-display);
    font-size: 18vw;
    line-height: 0.8;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    white-space: nowrap;
    margin-bottom: 3rem;
    opacity: 0.15;
    width: 100%;
}

.footer__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer__section {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer__heading {
    font-family: var(--font-display);
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--color-white);
}

.footer__contact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--color-grey);
    font-family: var(--font-body);
    font-size: 0.9rem;
}

.footer__contact-item i {
    width: 18px;
    color: var(--color-varsityred);
}

.footer__contact-item a,
.footer__contact-item span {
    color: var(--color-grey);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer__contact-item a:hover {
    color: var(--color-white);
}

.footer__link {
    color: var(--color-grey);
    font-family: var(--font-body);
    font-size: 0.9rem;
    text-decoration: none;
    transition: color 0.3s ease, transform 0.3s ease;
    display: inline-block;
}

.footer__link:hover {
    color: var(--color-white);
    transform: translateX(5px);
}

.footer__social {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.footer__newsletter-label {
    font-family: var(--font-body);
    font-size: 0.85rem;
    color: var(--color-grey);
    margin-bottom: 0.25rem;
}

.footer__newsletter {
    display: flex;
    gap: 0;
}

.footer__newsletter-input {
    flex: 1;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-right: none;
    border-radius: 4px 0 0 4px;
    color: var(--color-white);
    font-family: var(--font-body);
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.footer__newsletter-input::placeholder {
    color: var(--color-grey);
}

.footer__newsletter-input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--color-varsityred);
}

.footer__newsletter-btn {
    padding: 0.75rem 1.25rem;
    background: var(--color-varsityred);
    border: 1px solid var(--color-varsityred);
    border-radius: 0 4px 4px 0;
    color: var(--color-white);
    cursor: pointer;
    transition: all 0.3s ease;
}

.footer__newsletter-btn:hover {
    background: #a00d33;
}

.footer__newsletter-btn:focus-visible {
    outline: 2px solid var(--color-white);
    outline-offset: 2px;
}

.footer__bottom {
    width: 100%;
    max-width: 1400px;
    display: flex;
    justify-content: space-between;
    padding-top: 2rem;
    margin-top: 2rem;
    font-family: var(--font-body);
    font-size: 0.85rem;
    color: var(--color-grey);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Footer Mobile Responsive */
@media (max-width: 900px) {
    .footer__grid {
        grid-template-columns: 1fr 1fr;
        gap: 2.5rem;
    }

    .footer__section:last-child {
        grid-column: span 2;
    }
}

@media (max-width: 600px) {
    .footer__text {
        font-size: 22vw;
    }

    .footer__grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .footer__section:last-child {
        grid-column: span 1;
    }

    .footer__contact-item {
        justify-content: center;
    }

    .footer__social {
        justify-content: center;
    }

    .footer__newsletter {
        max-width: 280px;
        margin: 0 auto;
    }

    .footer__link:hover {
        transform: none;
    }

    .footer__bottom {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
}

/* ============================================
    TIFFANY INTERLUDE
============================================ */
.tiffany-hero {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 10;
    background-color: var(--color-white);
    visibility: hidden;
    /* This hides it by default */
    will-change: visibility;
}

.tiffany-hero.is-active {
    visibility: visible;
    /* This shows it only when JS says so */
}

.tiffany-hero__container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tiffany-hero__image {
    width: auto;
    height: 80vh;
    max-width: 90%;
    object-fit: contain;
    will-change: transform;
    /* Removed visibility: visible !important */
    display: block;
}

/* Base styles for both texts */
.tiffany-hero__text {
    position: absolute;
    top: 45%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: var(--font-display);
    font-size: clamp(4rem, 12vw, 12rem);
    color: var(--color-varsityred);
    line-height: 0.85;
    text-align: center;
    width: 100%;
    pointer-events: none;
    mix-blend-mode: normal;
    will-change: opacity, transform;
}

/* Specifics for the Back Text (Behind Shoe) */
.tiffany-hero__text--back {
    z-index: -1;
}

.tiffany-hero__text--back span {
    display: inline-block;
    opacity: 0;
    will-change: opacity, filter, transform;
}

/* Specifics for the Front Text (In Front of Shoe) */
.tiffany-hero__text--front {
    z-index: 2;
    /* Sits on top of image */
    opacity: 0;
    /* Hidden initially */
    color: var(--color-varsityred);
}

.tiffany-spacer {
    position: relative;
    width: 100%;
    height: 500vh;
    /* 100vh for reveal, 100vh for sitting */
    z-index: 10;
    pointer-events: none;
}

/* ============================================
   MOBILE ADJUSTMENTS (Max-Width: 768px)
============================================ */
@media (max-width: 768px) {

    /* --- 1. NAVIGATION FIXES --- */
    .header-nav__container {
        flex-direction: row;
        align-items: center;
        justify-content: flex-start;
        padding: 0 15px;
        width: 100%;
    }

    .header-nav__logo {
        height: 30px;
        width: auto;
        flex-shrink: 0;
        margin-right: 35px;
        /* Preserved 35px gap */
    }

    .header-nav__links {
        margin: 0 !important;
        position: relative;
        left: auto;
        top: auto;
        transform: none;

        display: flex;
        align-items: center;
        flex: 1;
        min-width: 0;
        width: auto;

        /* SCROLL SETUP */
        overflow-x: auto;
        white-space: nowrap;

        padding-left: 0;
        gap: 0;

        /* Hide Scrollbar */
        -ms-overflow-style: none;
        scrollbar-width: none;
        pointer-events: auto;
    }

    .header-nav__links::-webkit-scrollbar {
        display: none;
    }

    .header-nav__link {
        font-size: 0.7rem;
        padding: 0 0.5rem;
        height: 30px;
        line-height: 30px;
        display: flex;
        align-items: center;
        flex-shrink: 0;
    }

    .header-nav__pill {
        height: 30px;
        top: 50%;
        transform: translateY(-50%);
    }

    /* --- 2. HERO / ABOUT CARD --- */
    .about__content {
        width: 90%;
        height: auto;
        min-height: 60vh;
        max-height: 80vh;
        padding: 2rem 1.5rem;
    }

    .about__line--left,
    .about__line--right {
        font-size: 14vw;
    }

    /* --- 3. TITLE CONSISTENCY --- */
    .services__title {
        top: 6rem;
        font-size: 3.5rem;
    }

    #faq {
        padding-top: 6rem;
        padding-bottom: 6rem;
        justify-content: flex-start;
    }

    .faq__title {
        margin-top: 0;
        font-size: 3.5rem;
        margin-bottom: 3rem;
    }

    .contact-section {
        padding-top: 6rem;
        padding-bottom: 6rem;
        height: auto;
        min-height: auto;
        justify-content: flex-start;
        align-items: flex-start;
        position: relative;
        /* Reset sticky on mobile if desired, or keep sticky */
        z-index: 5;
    }

    .contact__title {
        margin-top: 0;
        font-size: 3.5rem;
        margin-bottom: 2rem;
    }

    .instagram-section {
        padding: 2rem 10%;
        min-height: 100vh;
        display: flex;
        justify-content: center;
        align-items: center;
        /* Safari iOS: pre-promote to compositor layer so pin transform
           transition doesn't cause a blank repaint gap */
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
    }

    .shop-section {
        padding-top: 0;
        align-items: flex-start;
    }

    .shop__content {
        margin-top: 0;
        width: 100%;
    }

    .shop__title {
        margin-top: 0;
        font-size: 3.5rem;
        margin-bottom: 1rem;
    }

    .shop__btn {
        font-size: 0.75rem;
        padding: 0.6rem 1.5rem;
    }

    /* --- 4. SERVICES CARDS (UPDATED WIDTH) --- */
    .service-card {
        /* CHANGED: Now 80% Width */
        width: 80vw;
        height: 55vh;
        padding: 1.75rem;
        gap: 1rem;
    }

    /* --- 5. CONTACT LAYOUT FIX --- */
    .contact__content {
        flex-direction: column;
    }

    .contact__grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .contact__info {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 2rem;
        margin-bottom: 2rem;
    }

    .contact__right {
        width: 100%;
    }

    /* --- 6. FAQ TWEAKS --- */
    .faq__container {
        width: 90%;
    }

    .faq__question-text {
        font-size: 1.1rem;
    }
}



/* ============================================
    NEW: INFINITE GALLERY SLIDER
============================================ */

/* The container that holds the Polaroid Pile */
.gallery-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60vw;
    height: 70vh;
    display: grid;
    place-items: center;
    pointer-events: none;
    z-index: 20;
    visibility: hidden;
    opacity: 0;
}

.polaroid {
    grid-area: 1/1/2/2;
    position: relative;
    /* Responsive sizing based on viewport — 10% larger than original 38×45vmin */
    width: 42vmin;
    height: 49.5vmin;
    opacity: 0;
    pointer-events: auto;
    cursor: pointer;
    /* NOTE: No will-change here — GSAP manages GPU promotion dynamically during animation.
       Static will-change on every card promoted all layers simultaneously, causing
       severe memory pressure on mobile Safari. */
}

.polaroid-inner {
    width: 100%;
    height: 100%;
    background: #fdfdfd;
    padding: 1.5vmin 1.5vmin 6vmin 1.5vmin;
    box-shadow:
        0 4vmin 10vmin rgba(0, 0, 0, 0.1),
        0 1vmin 3vmin rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 4px;
    display: flex;
    flex-direction: column;
}

.polaroid__photo {
    width: 100%;
    height: 100%;
    background: #111;
    overflow: hidden;
    border-radius: 2px;
}

.polaroid__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(1.1);
}

.polaroid__caption {
    color: #1a1a1a;
    text-align: center;
    padding-top: 1.5vmin;
    font-family: "Courier New", Courier, monospace;
    font-weight: 700;
    font-size: 1.6vmin;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

@media (max-width: 768px) {
    .polaroid {
        width: 65vmin;
        height: 78vmin;
    }

    .polaroid__caption {
        font-size: 2.5vmin;
        padding-top: 2vmin;
    }
}


@media (max-width: 768px) {
    .about__gallery-planet {
        width: 10vh;
        height: 14vh;
    }
}

/* --- Instagram Polaroid Stacking --- */
.instagram-section .FeedGridLayout__grid {
    display: block !important;
    position: relative !important;
    width: 100%;
    height: 60vh;
    /* Base height for stacking area */
    margin: 0 auto;
}

.instagram-section .FeedGridLayout__cell {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    width: 42vmin !important;
    height: 48vmin !important;
    padding: 1.5vmin 1.5vmin 6vmin 1.5vmin !important;
    /* Matches About gallery top/sides */
    background: #ffffff !important;
    box-sizing: border-box !important;
    box-shadow:
        0 4px 6px rgba(0, 0, 0, 0.05),
        0 10px 30px rgba(0, 0, 0, 0.15) !important;
    border-radius: 2px !important;
    z-index: calc(var(--index, 1));
    margin: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
}

/* Hide Shop Menu Item */
.header-nav__link[href*="shop"],
.menu-item-shop {
    display: none !important;
}

.instagram-section .FeedGridLayout__cell-content {
    position: relative !important;
    width: 100% !important;
    height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
}

.instagram-section .FeedGridLayout__media-container {
    width: 100% !important;
    height: 85% !important;
    /* Forced aspect ratio */
    overflow: hidden !important;
    margin-bottom: 1.5vmin !important;
    flex-shrink: 0 !important;
}

.instagram-section .MediaThumbnail__image {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
}

/* Custom Styled Caption */
.instagram-section .polaroid-custom-caption {
    width: 100% !important;
    height: 15% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    font-family: 'Permanent Marker', cursive !important;
    font-size: 1.5vmin !important;
    line-height: 1.2 !important;
    color: #222 !important;
    padding: 0 1vmin 1.5vmin !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: none !important;
}

/* Defensively hide plugin's default elements */
.instagram-section .FeedGridLayout__media-meta {
    display: none !important;
}

@media (max-width: 768px) {
    .instagram-section .FeedGridLayout__cell {
        width: 70vmin !important;
        height: 85vmin !important;
        padding: 3vmin !important;
    }

    .instagram-section .polaroid-custom-caption {
        font-size: 3vmin !important;
    }
}

/* --- Safari iOS: Remove hidden fixed elements from compositing tree ---
   Safari creates GPU layers for every position:fixed element even with
   visibility:hidden. display:none removes them entirely. .is-open restores. */
@media (max-width: 768px) {
    .lightbox:not(.is-open),
    .gallery-modal:not(.is-open),
    .shop-page-modal:not(.is-open),
    .shop-page-modal-backdrop:not(.is-open),
    .services-morph {
        display: none;
    }
}

/* --- Hide Shop Section (Per User Request) --- */
.shop-section {
    display: none !important;
}