/* main.css - Global Design System for The Wed 24 */

/* Critical Utils */
.w-3 {
    width: 0.75rem !important;
}

.h-3 {
    height: 0.75rem !important;
}

.w-4 {
    width: 1rem !important;
}

.h-4 {
    height: 1rem !important;
}

.w-5 {
    width: 1.25rem !important;
}

.h-5 {
    height: 1.25rem !important;
}

.w-6 {
    width: 1.5rem !important;
}

.h-6 {
    height: 1.5rem !important;
}

.w-8 {
    width: 2rem !important;
}

.w-10 {
    width: 2.5rem !important;
    /* Lightly increased width as requested */
}

.h-px {
    height: 1px !important;
}

.mb-6 {
    margin-bottom: 1.5rem !important;
}

.bg-primary {
    background-color: var(--color-primary) !important;
}

.bg-surface-lowest {
    background-color: var(--color-surface-lowest) !important;
}

.border-outline {
    border-color: var(--color-outline) !important;
}

.text-\[9px\] {
    font-size: 9px !important;
}

.text-\[10px\] {
    font-size: 10px !important;
}

.text-\[11px\] {
    font-size: 11px !important;
}

.tracking-\[0\.1em\] {
    letter-spacing: 0.1em !important;
}

.tracking-\[0\.2em\] {
    letter-spacing: 0.2em !important;
}

.tracking-\[0\.4em\] {
    letter-spacing: 0.4em !important;
}

.tracking-\[0\.7em\] {
    letter-spacing: 0.7em !important;
}

.tracking-widest {
    letter-spacing: 0.2em !important;
}

.opacity-30 {
    opacity: 0.3 !important;
}

.opacity-40 {
    opacity: 0.4 !important;
}

.opacity-50 {
    opacity: 0.5 !important;
}

.opacity-60 {
    opacity: 0.6 !important;
}

.opacity-80 {
    opacity: 0.8 !important;
}

.leading-relaxed {
    line-height: 1.8 !important;
}

.max-w-sm {
    max-width: 24rem !important;
}

.pt-36 {
    padding-top: 9rem !important;
}

.mb-3 {
    margin-bottom: 0.75rem !important;
}

.gap-20 {
    gap: 5rem !important;
}

@media (min-width: 1024px) {
    .lg\:gap-32 {
        gap: 8rem !important;
    }

    .lg\:pl-16 {
        padding-left: 4rem !important;
    }

    .lg\:pl-20 {
        padding-left: 5rem !important;
    }
}

:root {
    /* Color Palette (Based on Lightbucket Productions) */
    --color-bg: #F6F3EC;
    --color-surface: #EFEBE1;
    --color-surface-container: #E8E2D2;
    --color-surface-high: #E0DACA;
    --color-surface-lowest: #FFFFFF;
    --color-on-surface: #36302A;
    --color-on-surface-variant: #6D645E;
    --color-primary: #D4AF37;
    /* Metallic Gold */
    --color-on-primary: #FFFFFF;
    --color-outline: rgba(54, 48, 42, 0.1);
    --text-primary: var(--color-on-surface);
    --text-secondary: var(--color-on-surface-variant);

    /* Typography Tokens */
    --font-headline: 'Cormorant Garamond', serif;
    --font-subheading: 'Cormorant Garamond', serif;
    --font-body: 'Cormorant Garamond', serif;
    --font-brand-headline: 'Cormorant Garamond', serif;
    --font-brand-tagline: 'Poppins', sans-serif;

    /* Spacing & Transitions */
    --transition-slow: 0.7s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-medium: 0.4s ease;
}

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

body {
    background-color: var(--color-bg);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.section-light {
    background-color: var(--color-bg);
    --text-primary: var(--color-on-surface);
    --text-secondary: var(--color-on-surface-variant);
    color: var(--text-primary);
}

.section-dark {
    background-color: var(--color-on-surface);
    --text-primary: var(--color-surface-lowest);
    --text-secondary: rgba(255, 255, 255, 0.6);
    color: var(--text-primary);
}

/* Ensure headings and common elements follow the section theme */
.section-dark h1, .section-dark h2, .section-dark h3, .section-dark h4, .section-dark h5, .section-dark h6 {
    color: var(--text-primary);
}

.section-dark .opacity-40, .section-dark .opacity-60 {
    color: var(--text-secondary);
}

.section-light h1, .section-light h2, .section-light h3, .section-light h4, .section-light h5, .section-light h6 {
    color: var(--text-primary);
}

h1,
h2,
h3,
h4,
.font-serif {
    font-family: var(--font-headline);
}

.brand-headline {
    font-family: var(--font-brand-headline) !important;
    font-weight: 500;
    color: var(--text-primary);
}

.brand-tagline {
    font-family: var(--font-brand-tagline) !important;
    font-weight: 300;
    color: var(--text-secondary);
}

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

.footer-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem;
    margin: -0.6rem;
    border-radius: 50%;
}

.footer-social-link:hover {
    background: rgba(212, 175, 55, 0.1);
}

ul {
    list-style: none;
}

/* Base Utilities */
.tracking-vogue {
    letter-spacing: 0.3em;
}

.tracking-vogue-lg {
    letter-spacing: 0.5em;
}

.tracking-\[0\.3em\] {
    letter-spacing: 0.3em;
}

.tracking-\[0\.4em\] {
    letter-spacing: 0.4em;
}

.tracking-\[0\.5em\] {
    letter-spacing: 0.5em;
}

.tracking-tight {
    letter-spacing: -0.02em;
}

.uppercase {
    text-transform: uppercase;
}

.italic {
    font-style: italic;
}

.font-light {
    font-weight: 300;
}

.font-normal {
    font-weight: 400;
}

.font-medium {
    font-weight: 500;
}

.font-semibold {
    font-weight: 600 !important;
}

.font-bold {
    font-weight: 700 !important;
}

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

.text-xs {
    font-size: 0.7rem;
}

.text-sm {
    font-size: 0.85rem;
}

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

.text-xl {
    font-size: 1.25rem;
}

.text-2xl {
    font-size: 1.5rem;
}

.text-3xl {
    font-size: 2rem;
}

.text-4xl {
    font-size: 2.5rem;
}

.text-5xl {
    font-size: 3.5rem;
}

.text-6xl {
    font-size: 4.5rem;
}

.text-7xl {
    font-size: 6rem;
}

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

.text-right {
    text-align: right;
}

.max-w-7xl {
    max-width: 1280px;
    margin: 0 auto;
}

.max-w-2xl {
    max-width: 42rem;
}

.px-12 {
    padding-left: 3rem;
    padding-right: 3rem;
}

.pl-12 {
    padding-left: 3rem;
}

.py-24 {
    padding-top: 3rem;
    padding-bottom: 3rem;
}

.py-32 {
    padding-top: 4rem;
    padding-bottom: 4rem;
}
.py-16 {
    padding-top: 2rem !important;
    padding-bottom: 2rem !important;
}

.section-divider-gold {
    max-width: 400px;
    width: 80%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-primary), transparent);
    margin: 2rem auto;
    opacity: 0.4;
}

/* Margin & Padding Utilities */
.mt-4 {
    margin-top: 1rem;
}

.mt-8 {
    margin-top: 2rem;
}

.mt-12 {
    margin-top: 3rem;
}

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

.mt-20 {
    margin-top: 5rem;
}

.mt-24 {
    margin-top: 6rem;
}

.mt-28 {
    margin-top: 7rem;
}

.mt-32 {
    margin-top: 8rem;
}

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

.mb-8 {
    margin-bottom: 2rem;
}

.mb-12 {
    margin-bottom: 3rem;
}

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

.mb-20 {
    margin-bottom: 5rem;
}

.mb-24 {
    margin-bottom: 6rem;
}

.mb-28 {
    margin-bottom: 7rem;
}

.mb-32 {
    margin-bottom: 8rem;
}

.pt-12 {
    padding-top: 3rem;
}

.pt-16 {
    padding-top: 4rem;
}

.pt-32 {
    padding-top: 8rem;
}

.pb-12 {
    padding-bottom: 3rem;
}

.pb-32 {
    padding-bottom: 8rem;
}

.px-16 {
    padding-left: 4rem;
    padding-right: 4rem;
}

.py-5 {
    padding-top: 1.25rem;
    padding-bottom: 1.25rem;
}

/* Icon Alignment */
.material-icons {
    vertical-align: middle;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.border-t {
    border-top-width: 1px;
    border-top-style: solid;
}

.border-white\/5 {
    border-color: rgba(255, 255, 255, 0.05);
}

.fill-current {
    fill: currentColor !important;
}

.fill-primary {
    fill: var(--color-primary) !important;
}

/* Layout Utilities */
.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

.items-center {
    align-items: center;
}

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

.justify-between {
    justify-content: space-between;
}

.gap-4 {
    gap: 1rem;
}

.gap-6 {
    gap: 1.5rem;
}

.gap-8 {
    gap: 2rem;
}

.gap-12 {
    gap: 3rem;
}

.gap-x-12 {
    column-gap: 3rem;
}

.gap-y-6 {
    row-gap: 1.5rem;
}

.w-full {
    width: 100%;
}

.h-full {
    height: 100%;
}

.min-h-full {
    min-height: 100%;
}

.absolute {
    position: absolute;
}

.relative {
    position: relative;
}

.inset-0 {
    inset: 0;
}

.z-0 {
    z-index: 0;
}

.z-10 {
    z-index: 10;
}

.hidden-mobile {
    display: block;
}

/* Flex & Text Utilities */
.whitespace-nowrap {
    white-space: nowrap !important;
}

.overflow-hidden {
    overflow: hidden !important;
}

.text-ellipsis {
    text-overflow: ellipsis !important;
}

.truncate {
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

.flex-1 {
    flex: 1 1 0% !important;
}

.shrink-0 {
    flex-shrink: 0 !important;
}

/* Grid Utilities */
.grid {
    display: grid;
}

.grid-cols-1 {
    grid-template-columns: repeat(1, minmax(0, 1fr));
}

.grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-cols-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.gap-x-12 {
    column-gap: 3rem;
}

.gap-y-24 {
    row-gap: 6rem;
}

.gap-y-32 {
    row-gap: 8rem;
}

@media (min-width: 768px) {
    .md\:grid-cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .md\:grid-cols-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .md\:grid-cols-4 {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .md\:grid-cols-12 {
        grid-template-columns: repeat(12, minmax(0, 1fr));
    }
}

/* Responsive Overrides to Fix Horizontal Overflow */
@media (max-width: 768px) {
    .px-16 {
        padding-left: 1.5rem !important;
        padding-right: 1.5rem !important;
    }

    .section-divider-gold {
        max-width: 90% !important;
        width: 90% !important;
    }

    .brand-headline {
        font-size: 2.2rem !important;
        letter-spacing: 0.1em !important;
        white-space: normal !important;
    }

    .brand-tagline {
        font-size: 0.6rem !important;
        letter-spacing: 0.3em !important;
    }
}

@media (min-width: 768px) {
    .md\:col-span-2 {
        grid-column: span 2 / span 2;
    }

    .md\:col-span-5 {
        grid-column: span 5 / span 5;
    }

    .md\:col-span-7 {
        grid-column: span 7 / span 7;
    }

    .md\:col-span-12 {
        grid-column: span 12 / span 12;
    }
}

/* Aspect Ratios */
.aspect-video,
.aspect-\[16\/9\] {
    aspect-ratio: 16 / 9;
}

.aspect-square {
    aspect-ratio: 1 / 1;
}

.aspect-portrait {
    aspect-ratio: 4 / 5;
}

/* Responsive adjustments */
/* Responsive Column Utilities for Masonry */
.columns-1 {
    column-count: 1 !important;
}

@media (min-width: 768px) {
    .md\:columns-2 {
        column-count: 2 !important;
    }
    
    .md\:columns-3 {
        column-count: 3 !important;
    }
    
    .md\:columns-4 {
        column-count: 4 !important;
    }
}

.break-inside-avoid {
    break-inside: avoid !important;
    -webkit-column-break-inside: avoid;
}

@media (max-width: 1024px) {
    :root {
        --font-size-hero: 4rem;
    }

    .hidden-mobile {
        display: none !important;
    }
}

@media (max-width: 768px) {
    .px-12 {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }

    .py-24 {
        padding-top: 4rem;
        padding-bottom: 4rem;
    }

    h1 {
        font-size: 3rem !important;
        line-height: 1.1 !important;
    }

    .text-6xl {
        font-size: 2.8rem !important;
    }

    .hero-content h1 {
        font-size: 3.5rem !important;
    }

    .logo {
        font-size: 1rem !important;
        width: auto !important;
        white-space: nowrap !important;
    }
}

::selection {
    background-color: var(--color-primary);
    color: var(--color-on-primary);
}

/* Animations */
.fade-in {
    animation: fadeIn 1.2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.stagger-in {
    opacity: 0;
    transform: translateY(30px);
    animation: staggerIn 1s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

.delay-3 {
    animation-delay: 0.6s;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

@keyframes staggerIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

.hero-zoom {
    animation: slowZoom 20s linear infinite alternate;
}

@keyframes slowZoom {
    from {
        transform: scale(1);
    }

    to {
        transform: scale(1.1);
    }
}
