/* ============================================================
   DB Films Pvt Ltd — Design System
   Premium luxury wedding photography aesthetic
   ============================================================ */

/* ─── CSS Custom Properties (Design Tokens) ─────────────────── */
:root {
    /* Colors */
    --color-black: #0f0f0f;
    --color-dark: #1a1a1a;
    --color-charcoal: #2a2a2a;
    --color-gray: #888888;
    --color-gray-light: #b5b5b5;
    --color-cream: #f3efe8;
    --color-cream-light: #f8f5f0;
    --color-taupe: #d8c9b8;
    --color-white: #ffffff;
    --color-overlay: rgba(15, 15, 15, 0.55);
    --color-overlay-dark: rgba(15, 15, 15, 0.75);
    --color-gold: #c9a96e;
    
    /* Typography — Luxury Editorial Wedding Aesthetic */
    --font-display: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
    --font-serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
    --font-body-serif: 'Cormorant Garamond', Georgia, serif;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    --font-accent: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-fashion: 'Cormorant Garamond', Georgia, serif;
    
    /* Font sizes — fluid scale */
    --text-xs: clamp(0.625rem, 0.6rem + 0.15vw, 0.75rem);
    --text-sm: clamp(0.75rem, 0.7rem + 0.2vw, 0.875rem);
    --text-base: clamp(0.875rem, 0.8rem + 0.3vw, 1rem);
    --text-lg: clamp(1rem, 0.9rem + 0.4vw, 1.125rem);
    --text-xl: clamp(1.125rem, 1rem + 0.5vw, 1.375rem);
    --text-2xl: clamp(1.5rem, 1.2rem + 1vw, 2rem);
    --text-3xl: clamp(2rem, 1.5rem + 2vw, 3rem);
    --text-4xl: clamp(2.5rem, 1.8rem + 3vw, 4rem);
    --text-5xl: clamp(3rem, 2rem + 4vw, 5.5rem);
    --text-hero: clamp(3.5rem, 2.5rem + 5vw, 7rem);
    
    /* Spacing scale */
    --space-2xs: clamp(0.25rem, 0.2rem + 0.2vw, 0.5rem);
    --space-xs: clamp(0.5rem, 0.4rem + 0.4vw, 0.75rem);
    --space-sm: clamp(0.75rem, 0.6rem + 0.6vw, 1.25rem);
    --space-md: clamp(1rem, 0.8rem + 0.8vw, 1.5rem);
    --space-lg: clamp(1.5rem, 1.2rem + 1.2vw, 2.5rem);
    --space-xl: clamp(2rem, 1.5rem + 2vw, 4rem);
    --space-2xl: clamp(3rem, 2rem + 3vw, 6rem);
    --space-3xl: clamp(4rem, 3rem + 4vw, 8rem);
    --space-4xl: clamp(6rem, 4rem + 6vw, 12rem);
    
    /* Layout */
    --container-max: 1400px;
    --container-narrow: 900px;
    --container-padding: clamp(1.25rem, 3vw, 4rem);
    --nav-height: 80px;
    
    /* Transitions */
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
    --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
    --ease-cinematic: cubic-bezier(0.76, 0, 0.24, 1);
    --duration-fast: 0.3s;
    --duration-normal: 0.6s;
    --duration-slow: 1s;
    --duration-slower: 1.4s;
    
    /* Borders */
    --border-thin: 1px solid rgba(255, 255, 255, 0.1);
    --border-thin-dark: 1px solid rgba(15, 15, 15, 0.1);
    
    /* Z-index layers */
    --z-base: 1;
    --z-nav: 100;
    --z-overlay: 200;
    --z-modal: 300;
    --z-cursor: 9999;
}

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

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    scroll-behavior: auto; /* Lenis handles smooth scroll */
}

html.lenis, html.lenis body {
    height: auto;
}

.lenis.lenis-smooth {
    scroll-behavior: auto !important;
}

body {
    font-family: var(--font-sans);
    font-size: var(--text-base);
    font-weight: 400;
    line-height: 1.7;
    color: var(--color-black);
    background-color: var(--color-cream);
    overflow-x: hidden;
}

/* Selection */
::selection {
    background: var(--color-taupe);
    color: var(--color-black);
}

/* ─── Typography ────────────────────────────────────────────── */
h1, h2 {
    font-family: var(--font-display);
    font-weight: 450;
    line-height: 1.15;
    letter-spacing: -0.01em;
}

h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 450;
    line-height: 1.25;
    letter-spacing: -0.005em;
}

h1 { font-size: var(--text-hero); }
h2 { font-size: var(--text-4xl); }
h3 { font-size: var(--text-3xl); }
h4 { font-size: var(--text-2xl); }

h1 em, h2 em, h3 em, h4 em, .section__title em, .hero__title em, em {
    font-family: var(--font-serif);
    font-style: italic;
    font-weight: 400;
}

p {
    font-family: var(--font-sans);
    font-size: var(--text-base);
    font-weight: 400;
    line-height: 1.75;
    letter-spacing: 0;
    color: var(--color-charcoal);
}

blockquote {
    font-family: var(--font-sans);
    font-style: normal;
    font-weight: 500;
    font-size: var(--text-xl);
    line-height: 1.6;
    color: var(--color-black);
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: high-quality;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
}

video {
    display: block;
}

/* ─── Utility Classes ───────────────────────────────────────── */
.container {
    max-width: var(--container-max);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--container-padding);
    padding-right: var(--container-padding);
}

.container--narrow {
    max-width: var(--container-narrow);
}

/* Eyebrow text — uppercase tracked-out labels */
.eyebrow {
    font-family: var(--font-accent);
    font-size: var(--text-xs);
    font-weight: 500;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--color-gray);
    margin-bottom: var(--space-md);
    display: block;
}

/* Section spacing */
.section {
    padding: var(--space-4xl) 0;
    position: relative;
}

.section__title {
    font-family: var(--font-display);
    font-size: var(--text-4xl);
    margin-bottom: var(--space-lg);
    max-width: 20ch;
    letter-spacing: 0.02em;
    line-height: 1.12;
}

.section__title--large {
    font-size: var(--text-5xl);
}

.section__body {
    font-family: var(--font-sans);
    font-size: var(--text-lg);
    font-weight: 350;
    line-height: 1.85;
    letter-spacing: 0.01em;
    color: var(--color-charcoal);
    max-width: 60ch;
}

.section__body--lead {
    font-family: var(--font-serif);
    font-size: clamp(1.2rem, 2.4vw, 1.45rem);
    font-style: italic;
    font-weight: 400;
    text-align: center;
    max-width: 50ch;
    margin: 0 auto;
}

.section__action {
    text-align: center;
    margin-top: var(--space-2xl);
}

/* Thin divider */
.divider {
    width: 60px;
    height: 1px;
    background: var(--color-taupe);
    margin: var(--space-lg) 0;
}

/* Screen reader only */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    border: 0;
}
