/*
   BASE STYLES - Nu-i Trimite Mesajul
   (Execution upgrade: refined tokens, type scale & vertical rhythm.
    Same palette, same architecture.)
*/

:root {
    /* Color Palette */
    --bg-primary: #0a0a14;
    --bg-secondary: #100f1b;   /* lifted just enough for visible section bands */
    --bg-card: #14131f;        /* card surface, one step above bands */
    --text-primary: #f2e5d3;
    --text-secondary: #d9c8b1;
    --text-muted: #9a8f7f;

    /* Brand Accents */
    --purple-light: #ce9ad9;
    --purple-main: #b082b9;
    --purple-glow: rgba(184, 134, 184, 0.4);
    --burgundy: #4e2d30;
    --burgundy-light: #a06a63;

    /* Functional Colors */
    --success: #7c8a74;
    --border: rgba(242, 229, 211, 0.08);
    --border-strong: rgba(242, 229, 211, 0.14);
    --glass: rgba(12, 14, 19, 0.85);

    /* Typography */
    --font-serif: 'Playfair Display', Georgia, serif;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Type scale — mobile first, scales fluidly to desktop */
    --fs-h1: clamp(1.875rem, 1.45rem + 2vw, 2.75rem);      /* 30 -> 44 */
    --fs-h2: clamp(1.5rem, 1.3rem + 1vw, 2rem);            /* 24 -> 32 */
    --fs-h3: clamp(1.125rem, 1.05rem + 0.4vw, 1.25rem);    /* 18 -> 20 */
    --fs-lead: clamp(1rem, 0.96rem + 0.25vw, 1.125rem);    /* 16 -> 18 */
    --fs-body: clamp(0.9375rem, 0.92rem + 0.15vw, 1rem);   /* 15 -> 16 */
    --fs-sm: 0.8125rem;                                    /* 13 */
    --fs-xs: 0.75rem;                                      /* 12 */
    --fs-price: clamp(1.75rem, 1.5rem + 1.2vw, 2.25rem);   /* 28 -> 36 */

    /* Global Premium Spacing */
    --container-width: 1140px;
    --container-narrow: 720px;

    /* Generous scaling padding applied natively to all sections */
    --section-padding: clamp(64px, 5vw + 40px, 104px);

    /* Spacing scale (4px base) */
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 20px;
    --space-6: 24px;
    --space-8: 32px;
    --space-10: 40px;
    --space-12: 48px;

    /* Radii & elevation */
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.22);
    --shadow-lift: 0 2px 4px rgba(0, 0, 0, 0.3), 0 16px 40px rgba(0, 0, 0, 0.35);

    /* Animations */
    --ease-premium: cubic-bezier(0.165, 0.84, 0.44, 1);
    --transition-base: all 0.4s var(--ease-premium);
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    -webkit-text-size-adjust: 100%;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: var(--fs-body);
    line-height: 1.65;
    letter-spacing: -0.01em;
    overflow-x: hidden;
    /* Reserve room for the sticky CTA so content is never covered */
    padding-bottom: calc(70px + env(safe-area-inset-bottom, 0px));
}

img,
svg {
    max-width: 100%;
    display: block;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 clamp(20px, 5vw, 24px);
}

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

/* Global Section Rhythm */
.section {
    padding: var(--section-padding) 0;
}

h1, h2, h3, h4, .section-title {
    font-family: var(--font-serif);
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.25;
    letter-spacing: -0.01em;
}

.section-title {
    font-size: var(--fs-h2);
    line-height: 1.25;
    text-align: center;
    margin-bottom: var(--space-10);
}

.section-tag {
    display: block;
    text-align: center;
    color: var(--purple-light);
    font-size: var(--fs-xs);
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    margin-bottom: var(--space-3);
}

/* Tag + title + subtitle rhythm: the tag owns the top,
   the subtitle pulls up against its title */
.section-tag + .section-title {
    margin-bottom: var(--space-10);
}

.section-subtitle {
    font-size: var(--fs-lead);
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 620px;
    margin: calc(-1 * var(--space-6)) auto var(--space-10);
}

p {
    margin-bottom: var(--space-4);
}

p:last-child {
    margin-bottom: 0;
}

.accent-text {
    color: var(--purple-light);
}

.italic {
    font-style: italic;
}

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

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--burgundy);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--purple-main);
}

.reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.7s var(--ease-premium), transform 0.7s var(--ease-premium);
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Hero entrance (class already present in markup) */
.animate-up {
    animation: animate-up 0.9s var(--ease-premium) both;
}

@keyframes animate-up {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

:focus-visible {
    outline: 2px solid var(--purple-light);
    outline-offset: 3px;
    border-radius: 4px;
}

/* Respect users who prefer less motion */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }
}
