/* =========================================================
   Sri Dhanam Crackers — Base: reset, tokens, typography
   ========================================================= */

:root {
    /* Colors — premium corporate palette */
    --color-primary: #0F172A;
    --color-primary-light: #1E293B;
    --color-slate: #334155;
    --color-gold: #EAB308;
    --color-gold-light: #FDE68A;
    --color-orange: #F97316;
    --color-orange-dark: #EA580C;
    --color-bg: #FFFFFF;
    --color-section: #F8FAFC;
    --color-text: #334155;
    --color-text-muted: #64748B;
    --color-border: #E2E8F0;
    --color-success: #178A4C;
    --color-danger: #D93025;
    --color-white: #FFFFFF;

    /* Glass surfaces — used sparingly (header on scroll, search bar) */
    --glass-bg: rgba(255, 255, 255, 0.72);
    --glass-bg-dark: rgba(15, 23, 42, 0.82);
    --glass-border: rgba(255, 255, 255, 0.5);
    --blur-sm: 10px;

    /* Typography */
    --font-base: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    /* Spacing */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.5rem;
    --space-6: 2rem;
    --space-7: 2.5rem;
    --space-8: 3rem;
    --space-9: 4rem;
    --space-10: 5rem;

    /* Radius — generous, premium */
    --radius-sm: 10px;
    --radius-md: 18px;
    --radius-lg: 28px;
    --radius-full: 999px;

    /* Shadows — soft, premium, never harsh */
    --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.05), 0 1px 2px rgba(15, 23, 42, 0.04);
    --shadow-md: 0 12px 28px rgba(15, 23, 42, 0.08);
    --shadow-lg: 0 24px 56px rgba(15, 23, 42, 0.14);
    --shadow-gold: 0 10px 24px rgba(234, 179, 8, 0.22);

    /* Layout */
    --container-width: 1280px;
    --header-height: 84px;

    /* Motion */
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: 0.18s var(--ease);
    --transition-base: 0.35s var(--ease);
    --transition-slow: 0.7s var(--ease);
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    font-family: var(--font-base);
    color: var(--color-text);
    background: var(--color-bg);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    /* no overflow-x here, it breaks the sticky header */
}

img, picture, video, canvas, svg {
    display: block;
    max-width: 100%;
    height: auto;
}

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

ul, ol {
    margin: 0;
    padding: 0;
    list-style: none;
}

h1, h2, h3, h4, h5, h6 {
    margin: 0 0 var(--space-4);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--color-primary);
}

h1 { font-size: clamp(2.1rem, 1.6rem + 2.2vw, 3.4rem); letter-spacing: -0.03em; }
h2 { font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.4rem); }
h3 { font-size: clamp(1.15rem, 1.05rem + 0.5vw, 1.5rem); letter-spacing: -0.01em; }

p { margin: 0 0 var(--space-4); color: var(--color-text); line-height: 1.7; }

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

button {
    cursor: pointer;
    border: none;
    background: none;
}

/* Layout helpers */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin-inline: auto;
    padding-inline: var(--space-5);
}

.section {
    padding-block: var(--space-9);
}

.section--tight {
    padding-block: var(--space-7);
}

.section--alt {
    background: var(--color-section);
}

.section-head {
    text-align: center;
    max-width: 680px;
    margin-inline: auto;
    margin-bottom: var(--space-8);
}

.section-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--color-orange);
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-size: 0.76rem;
    margin-bottom: var(--space-3);
}
.section-eyebrow::before {
    content: '';
    width: 22px;
    height: 2px;
    background: var(--color-gold);
    border-radius: var(--radius-full);
    display: inline-block;
}

.section-head p {
    color: var(--color-text-muted);
}

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

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

.sr-only {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    background: var(--color-primary);
    color: var(--color-white);
    padding: var(--space-3) var(--space-5);
    z-index: 1000;
    border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus {
    left: 0;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: 0.85rem 1.75rem;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 0.95rem;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast), color var(--transition-fast);
    white-space: nowrap;
}

.btn--primary {
    background: var(--color-orange);
    color: var(--color-white);
    box-shadow: var(--shadow-sm);
}
.btn--primary:hover {
    background: var(--color-orange-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md), 0 0 0 4px rgba(249, 115, 22, 0.1);
}
.btn--primary:active {
    transform: translateY(0);
}
.btn--primary:disabled {
    background: #d7d9de;
    color: #8b8f98;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn--outline {
    background: transparent;
    color: var(--color-primary);
    border: 1.5px solid var(--color-primary);
}
.btn--outline:hover {
    background: var(--color-primary);
    color: var(--color-white);
}

.btn--ghost {
    background: rgba(255,255,255,0.12);
    color: var(--color-white);
    border: 1px solid rgba(255,255,255,0.4);
}

.btn--sm {
    padding: 0.55rem 1.1rem;
    font-size: 0.85rem;
}

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