/* ============================================================
   FoRest – Ritual Skin Therapy
   main.css – CSS változók, reset, tipográfia, alap layout
   ============================================================ */

/* ─── CSS Változók ─────────────────────────────────────────── */

:root {
    /* Színek */
    --color-primary:       #8FB08A;
    --color-primary-dark:  #556B5A;
    --color-primary-light: #C9D8C4;
    --color-cream:         #EBDFCE;
    --color-cream-dark:    #F4E5D9;
    --color-accent:        #8B3A3A;
    --color-accent-dark:   #6e2d2d;
    --color-text:          #2c2c2c;
    --color-text-light:    #f5f0e8;
    --color-text-muted:    #666;
    --color-white:         #ffffff;

    /* Betűkészletek */
    --font-serif:    'Playfair Display', Georgia, serif;
    --font-script:   'Great Vibes', cursive;
    --font-body:     'Inter', 'Helvetica Neue', sans-serif;

    /* Méretek */
    --container-max: 1200px;
    --container-wide: 1400px;
    --section-padding: 5rem 1.5rem;
    --border-radius:  16px;
    --border-radius-sm: 8px;

    /* Árnyékok */
    --shadow-sm:  0 2px  8px rgba(0,0,0,.08);
    --shadow-md:  0 4px 20px rgba(0,0,0,.12);
    --shadow-lg:  0 8px 40px rgba(0,0,0,.18);

    /* Animáció */
    --transition: 0.3s ease;
    --transition-slow: 0.5s ease;
}


/* ─── Reset & Box Model ────────────────────────────────────── */

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

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

body {
    font-family: var(--font-body);
    font-weight: 400;
    color: var(--color-text);
    background-color: var(--color-white);
    line-height: 1.7;
    overflow-x: hidden;
}

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

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

ul, ol {
    list-style: none;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

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


/* ─── Tipográfia ───────────────────────────────────────────── */

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-serif);
    font-weight: 600;
    line-height: 1.25;
    color: inherit;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h3 { font-size: clamp(1.3rem, 3vw, 1.8rem); }
h4 { font-size: clamp(1.1rem, 2.5vw, 1.4rem); }

p {
    margin-bottom: 1rem;
    font-size: 1rem;
    color: inherit;
}
p:last-child { margin-bottom: 0; }

strong { font-weight: 700; }
em     { font-style: italic; }

.text-script {
    font-family: var(--font-script);
    font-weight: 400;
    font-size: 1.5em;
    line-height: 1.3;
}

.text-center { text-align: center; }
.text-light  { color: var(--color-text-light); }
.text-muted  { color: var(--color-text-muted); }
.text-accent { color: var(--color-accent); }
.text-primary{ color: var(--color-primary); }


/* ─── Alap layout ──────────────────────────────────────────── */

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.container--wide {
    max-width: var(--container-wide);
    margin: 0 auto;
    padding: 0 1.5rem;
}

section {
    position: relative;
    overflow: hidden;
}

/* Dekoratív vonal fejlécek alatt */
.section-title {
    position: relative;
    margin-bottom: 1rem;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 2px;
    background: var(--color-primary-light);
    margin: 0.75rem auto 0;
}

.section-title--left::after {
    margin: 0.75rem 0 0;
}

.section-subtitle {
    font-family: var(--font-script);
    font-size: 1.4rem;
    color: var(--color-primary-dark);
    display: block;
    margin-bottom: 0.5rem;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header .section-desc {
    max-width: 600px;
    margin: 1rem auto 0;
    color: var(--color-text-muted);
    font-weight: 300;
}


/* ─── Segédosztályok ───────────────────────────────────────── */

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

.leaf-decoration {
    position: absolute;
    opacity: 0.08;
    pointer-events: none;
    user-select: none;
}

/* Animációk */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}
.fade-in-delay-1 { transition-delay: 0.1s; }
.fade-in-delay-2 { transition-delay: 0.2s; }
.fade-in-delay-3 { transition-delay: 0.3s; }
.fade-in-delay-4 { transition-delay: 0.4s; }
