/*
Theme Name: ReAdvance
Theme URI: https://readvance.de
Author: Patrick Penndorf
Author URI: https://readvance.de
Description: Custom WordPress theme for ReAdvance - Sustainable Laboratory Consulting
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: readvance
*/

/* ============================================================
   RESET
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }

:root {
    --cream: #FAF7F2;
    --cream-dark: #F0EBE3;
    --forest: #1A3C2A;
    --forest-light: #2D5F3F;
    --leaf: #3ECF8E;
    --leaf-muted: #B8E5D0;
    --leaf-pale: #E8F5EE;
    --bark: #0F1F17;
    --charcoal: #1C1C1C;
    --warm-gray: #6B6560;
    --mid-gray: #9A948D;
    --light-line: rgba(26,60,42,0.08);
    --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
    --sans: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --max-w: 1280px;
    --header-h: 96px;
}

body {
    font-family: var(--sans);
    color: var(--charcoal);
    line-height: 1.65;
    background: var(--cream);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

body::after {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.028;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 200px;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3 {
    font-family: var(--serif);
    font-weight: 500;
    color: var(--bark);
}

.container {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 clamp(1.5rem, 4vw, 3rem);
}

/* ============================================================
   SCROLL ANIMATIONS
   ============================================================ */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ============================================================
   HEADER
   ============================================================ */
.header {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: var(--header-h);
    z-index: 100;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.header .logo { color: var(--cream); }
.header .nav a { color: rgba(250,247,242,0.8); }
.header .nav a:hover { color: var(--cream); }
.header .menu-toggle span { background: var(--cream); }

.header.scrolled {
    background: rgba(250,247,242,0.95);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--light-line);
}

.header.scrolled .logo { color: var(--bark); }
.header.scrolled .nav a { color: var(--warm-gray); }
.header.scrolled .nav a:hover { color: var(--bark); }
.header.scrolled .menu-toggle span { background: var(--bark); }
.header.scrolled .nav-cta {
    background: var(--forest) !important;
    color: var(--cream) !important;
}

.header-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 clamp(1.5rem, 4vw, 3rem);
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 56px;
    width: auto;
}

.header.scrolled .logo img { filter: none; }
.header:not(.scrolled) .logo img { filter: brightness(0) invert(1); }

/* Sub-page header (solid) */
.header-solid {
    background: var(--bark);
    position: sticky;
    top: 0;
    height: auto;
    padding: 1.25rem 0;
}
.header-solid .logo img { filter: brightness(0) invert(1); }
.back-link {
    color: rgba(250,247,242,0.7);
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.3s;
}
.back-link:hover { color: var(--cream); }

.nav ul {
    list-style: none;
    display: flex;
    gap: 2.25rem;
    align-items: center;
}

.nav a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--warm-gray);
    transition: color 0.25s;
    letter-spacing: 0.01em;
}

.nav a:hover { color: var(--bark); }

.nav-cta {
    background: var(--leaf) !important;
    color: var(--bark) !important;
    padding: 0.65rem 1.6rem;
    border-radius: 100px;
    font-weight: 600 !important;
    transition: all 0.3s !important;
}

.nav-cta:hover {
    background: #34b87d !important;
    color: var(--bark) !important;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(62,207,142,0.3);
}

.menu-toggle {
    display: none; background: none; border: none;
    cursor: pointer; padding: 0.5rem;
    flex-direction: column; gap: 5px;
}
.menu-toggle span {
    display: block; width: 22px; height: 1.5px;
    background: var(--bark); border-radius: 2px;
    transition: all 0.3s;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
}

.hero-bg img {
    width: 100%; height: 100%;
    object-fit: cover;
}

.hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
        rgba(0,0,0,0.72) 0%,
        rgba(0,0,0,0.58) 50%,
        rgba(0,0,0,0.48) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
}

.hero-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 6rem clamp(1.5rem, 4vw, 3rem);
}

.hero-text { max-width: 720px; }

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.15);
    padding: 0.45rem 1.1rem;
    border-radius: 100px;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--leaf);
    margin-bottom: 2rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.hero h1 {
    font-size: clamp(2.8rem, 6vw, 4.5rem);
    font-weight: 400;
    color: var(--cream);
    line-height: 1.05;
    margin-bottom: 1.75rem;
    letter-spacing: -0.035em;
}

.hero h1 em {
    font-style: italic;
    color: var(--leaf);
}

.hero-sub {
    font-size: 1.1rem;
    color: rgba(250,247,242,0.78);
    line-height: 1.75;
    margin-bottom: 2.5rem;
    max-width: 540px;
    font-weight: 400;
}

.hero-buttons { display: flex; gap: 1rem; flex-wrap: wrap; }

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 1.75rem;
    border-radius: 100px;
    font-weight: 600;
    font-size: 0.9rem;
    font-family: var(--sans);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    border: none;
    letter-spacing: 0.01em;
}

.btn-leaf { background: var(--leaf); color: var(--bark); }
.btn-leaf:hover { background: #34b87d; transform: translateY(-2px); box-shadow: 0 12px 32px rgba(62,207,142,0.3); }

.btn-ghost { background: transparent; color: var(--cream); border: 1.5px solid rgba(250,247,242,0.3); }
.btn-ghost:hover { border-color: rgba(250,247,242,0.7); background: rgba(250,247,242,0.08); }

.btn-dark { background: var(--forest); color: var(--cream); }
.btn-dark:hover { background: var(--bark); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(15,31,23,0.25); }

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

/* ============================================================
   SECTIONS
   ============================================================ */
.section { padding: clamp(5rem, 10vw, 8rem) 0; }

.section-label {
    font-family: var(--sans);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--leaf);
    margin-bottom: 1rem;
    display: block;
}

.section-dark { background: var(--bark); color: var(--cream); }
.section-forest { background: var(--forest); color: var(--cream); }
.section-alt { background: var(--cream-dark); }

/* ============================================================
   IMPACT AREAS
   ============================================================ */
.impact-header { text-align: center; margin-bottom: 4rem; }
.impact-header .section-label { color: var(--forest-light); font-size: 0.82rem; }
.impact-header h2 { font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -0.03em; max-width: 700px; margin: 0 auto; }

.impact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.impact-card { text-align: center; padding: 2rem 1.75rem; }
.impact-icon { width: 64px; height: 64px; margin: 0 auto 1.5rem; color: var(--forest); }
.impact-icon svg { width: 100%; height: 100%; }
.impact-card h3 { font-size: 1.3rem; font-weight: 500; margin-bottom: 0.85rem; letter-spacing: -0.02em; }
.impact-card p { font-size: 0.9rem; color: var(--warm-gray); line-height: 1.75; }

/* ============================================================
   VALUE PROPS
   ============================================================ */
.value-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.vcard { border-radius: 24px; overflow: hidden; position: relative; aspect-ratio: 3/4; cursor: pointer; }
.vcard img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1); }
.vcard:hover img { transform: scale(1.06); }
.vcard-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(15,31,23,0.92) 0%, rgba(15,31,23,0.4) 45%, rgba(15,31,23,0.05) 100%); display: flex; align-items: flex-end; padding: 2rem; transition: background 0.4s; }
.vcard:hover .vcard-overlay { background: linear-gradient(to top, rgba(15,31,23,0.95) 0%, rgba(15,31,23,0.5) 50%, rgba(15,31,23,0.1) 100%); }
.vcard-overlay p { color: rgba(250,247,242,0.88); font-size: 0.92rem; line-height: 1.7; }

/* ============================================================
   RESOURCES
   ============================================================ */
.res-header { text-align: center; margin-bottom: 4rem; }
.res-header h2 { font-size: clamp(2rem, 3.5vw, 2.75rem); letter-spacing: -0.025em; }
.res-rows { max-width: 960px; margin: 0 auto; }
.res-row { display: grid; grid-template-columns: 72px 1fr 1.2fr; gap: 2rem; align-items: start; padding: 2.5rem 0; border-top: 1px solid var(--light-line); transition: all 0.35s; cursor: default; }
.res-row:last-child { border-bottom: 1px solid var(--light-line); }
.res-row:hover { padding-left: 0.75rem; }
.res-num { font-family: var(--serif); font-size: 2.75rem; font-weight: 300; color: var(--leaf); line-height: 1; letter-spacing: -0.04em; padding-top: 0.1rem; }
.res-title { font-family: var(--serif); font-size: 1.4rem; font-weight: 500; color: var(--bark); letter-spacing: -0.02em; line-height: 1.3; padding-top: 0.3rem; }
.res-desc { font-size: 0.9rem; color: var(--warm-gray); line-height: 1.8; padding-top: 0.3rem; }

/* ============================================================
   SUSTAINABILITY
   ============================================================ */
.sust-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(3rem, 6vw, 6rem); align-items: center; }
.sust-img { position: relative; }
.sust-img img { border-radius: 24px; width: 100%; height: 580px; object-fit: cover; }
.sust-img::after { content: ''; position: absolute; inset: 12px -12px -12px 12px; border: 2px solid var(--leaf-muted); border-radius: 24px; z-index: -1; }
.sust-text h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); letter-spacing: -0.025em; margin-bottom: 2rem; }

.checklist { list-style: none; margin-bottom: 2rem; }
.checklist li { display: flex; gap: 0.85rem; margin-bottom: 1.15rem; font-size: 0.92rem; line-height: 1.65; color: var(--charcoal); }
.check-dot { width: 22px; height: 22px; background: var(--forest); border-radius: 50%; display: grid; place-items: center; flex-shrink: 0; margin-top: 2px; }
.check-dot svg { width: 12px; height: 12px; color: var(--leaf); }

.sust-body { font-size: 0.92rem; color: var(--warm-gray); line-height: 1.85; margin-bottom: 0.75rem; }

/* ============================================================
   PROCESS — HORIZONTAL CARDS
   ============================================================ */
.proc-header { text-align: center; margin-bottom: 4.5rem; }
.proc-header h2 { font-size: clamp(2rem, 3.5vw, 2.75rem); letter-spacing: -0.025em; color: var(--cream); }

.proc-cards { display: flex; flex-direction: column; gap: 2rem; }

.proc-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: rgba(250,247,242,0.04);
    border: 1px solid rgba(250,247,242,0.08);
    border-radius: 24px;
    overflow: hidden;
    transition: border-color 0.4s, box-shadow 0.4s;
}

.proc-card:hover {
    border-color: rgba(62,207,142,0.25);
    box-shadow: 0 16px 48px rgba(0,0,0,0.2);
}

.proc-card:nth-child(even) { direction: rtl; }
.proc-card:nth-child(even) > * { direction: ltr; }

.proc-card-img {
    position: relative;
    overflow: hidden;
    min-height: 320px;
}

.proc-card-img img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.proc-card:hover .proc-card-img img { transform: scale(1.05); }

.proc-card-body {
    padding: clamp(2rem, 4vw, 3.5rem);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.proc-card-num {
    font-family: var(--serif);
    font-size: 4rem;
    font-weight: 300;
    color: var(--leaf);
    line-height: 1;
    letter-spacing: -0.04em;
    margin-bottom: 1rem;
    opacity: 0.6;
}

.proc-card-body h3 {
    font-size: clamp(1.3rem, 2.5vw, 1.6rem);
    color: var(--cream);
    margin-bottom: 0.75rem;
}

.proc-card-body p {
    font-size: 0.92rem;
    color: rgba(250,247,242,0.6);
    line-height: 1.85;
}

.proc-card-body p em {
    font-style: italic;
    color: var(--leaf-muted);
}

/* Steps for "How We Work" section */
.steps { display: flex; flex-direction: column; }
.step { display: flex; gap: 1.5rem; }
.step-rail { display: flex; flex-direction: column; align-items: center; flex-shrink: 0; }
.step-num { width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--leaf); display: grid; place-items: center; font-family: var(--serif); font-size: 1rem; font-weight: 600; color: var(--leaf); background: transparent; position: relative; z-index: 2; }
.step-line { width: 1px; flex-grow: 1; background: rgba(250,247,242,0.15); min-height: 20px; }
.step:last-child .step-line { display: none; }
.step-body { padding-bottom: 2.5rem; }
.step:last-child .step-body { padding-bottom: 0; }
.step-body h3 { font-size: 1.2rem; color: var(--cream); margin-bottom: 0.5rem; }
.step-body p { font-size: 0.88rem; color: rgba(250,247,242,0.6); line-height: 1.75; }
.step-body p em { font-style: italic; color: var(--leaf-muted); }

.proc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.proc-img img { border-radius: 24px; width: 100%; height: 550px; object-fit: cover; }

/* ============================================================
   TESTIMONIALS SLIDER
   ============================================================ */
.test-header { text-align: center; margin-bottom: 4rem; }
.test-header h2 { font-size: clamp(2rem, 3.5vw, 2.75rem); letter-spacing: -0.025em; }

.test-slider-wrap { position: relative; max-width: 900px; margin: 0 auto; }
.test-slider { overflow: hidden; }
.test-track { display: flex; transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1); }
.test-slide { min-width: 100%; padding: 0 1rem; }

.tcard { background: var(--cream); border: 1px solid var(--light-line); border-radius: 20px; padding: 2.5rem 3rem; text-align: center; }
.tcard-quote { font-family: var(--serif); font-size: 4rem; color: var(--leaf); line-height: 1; margin-bottom: 0.5rem; }
.tcard-title { font-family: var(--serif); font-size: 1.2rem; font-weight: 600; color: var(--bark); margin-bottom: 0.35rem; }
.tcard-stars { color: #E5A100; font-size: 1rem; letter-spacing: 4px; margin-bottom: 1.25rem; }
.tcard-text { font-size: 1rem; color: var(--warm-gray); line-height: 1.85; font-style: italic; margin-bottom: 1.5rem; max-width: 640px; margin-left: auto; margin-right: auto; }
.tcard-date { font-size: 0.75rem; color: var(--mid-gray); margin-bottom: 1.25rem; }
.tcard-author { display: flex; align-items: center; gap: 0.75rem; justify-content: center; padding-top: 1.25rem; border-top: 1px solid var(--light-line); }
.tcard-avatar { width: 48px; height: 48px; border-radius: 50%; background: var(--forest); display: grid; place-items: center; color: var(--leaf); font-family: var(--serif); font-weight: 700; font-size: 1rem; }
.tcard-name { font-weight: 600; font-size: 0.92rem; color: var(--bark); }
.tcard-role { font-size: 0.8rem; color: var(--mid-gray); }

.slider-nav { display: flex; justify-content: center; align-items: center; gap: 1.5rem; margin-top: 2rem; }
.slider-btn { width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--light-line); background: white; display: grid; place-items: center; cursor: pointer; transition: all 0.3s; color: var(--warm-gray); font-size: 1.1rem; }
.slider-btn:hover { background: var(--forest); color: var(--cream); border-color: var(--forest); }
.slider-dots { display: flex; gap: 0.5rem; }
.slider-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--light-line); cursor: pointer; transition: all 0.3s; }
.slider-dot.active { background: var(--forest); transform: scale(1.2); }

/* ============================================================
   AUTHORITY
   ============================================================ */
.auth-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid rgba(250,247,242,0.08); border-bottom: 1px solid rgba(250,247,242,0.08); }
.auth-item { padding: 2.5rem 2rem; border-right: 1px solid rgba(250,247,242,0.08); transition: background 0.3s; }
.auth-item:last-child { border-right: none; }
.auth-item:hover { background: rgba(250,247,242,0.03); }
.auth-num { font-family: var(--serif); font-size: clamp(2.5rem, 4vw, 3.5rem); font-weight: 300; color: var(--leaf); line-height: 1; letter-spacing: -0.04em; margin-bottom: 0.75rem; }
.auth-item h3 { font-size: 0.95rem; font-family: var(--sans); font-weight: 600; color: var(--cream); margin-bottom: 0.5rem; letter-spacing: 0; }
.auth-item p { font-size: 0.82rem; color: rgba(250,247,242,0.4); line-height: 1.65; }

/* ============================================================
   CASE STUDIES
   ============================================================ */
.cases-header { text-align: center; margin-bottom: 4rem; }
.cases-header h2 { font-size: clamp(2rem, 3.5vw, 2.75rem); letter-spacing: -0.025em; }
.cases-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }

.case-card { border-radius: 20px; overflow: hidden; border: 1px solid var(--light-line); background: var(--cream); transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1); }
.case-card:hover { transform: translateY(-6px); box-shadow: 0 24px 48px rgba(26,60,42,0.1); border-color: var(--leaf-muted); }
.case-card-img { height: 240px; overflow: hidden; }
.case-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1); }
.case-card:hover .case-card-img img { transform: scale(1.05); }
.case-card-body { padding: 2rem; }
.case-tag { display: inline-block; font-family: var(--sans); font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--forest); background: var(--leaf-pale); padding: 0.3rem 0.75rem; border-radius: 100px; margin-bottom: 1rem; }
.case-card-body h3 { font-size: 1.15rem; letter-spacing: -0.015em; margin-bottom: 0.75rem; line-height: 1.3; }
.case-card-body p { font-size: 0.85rem; color: var(--warm-gray); line-height: 1.7; margin-bottom: 1.25rem; }
.case-result { display: flex; align-items: center; gap: 0.75rem; padding-top: 1rem; border-top: 1px solid var(--light-line); }
.case-result-num { font-family: var(--serif); font-size: 2rem; font-weight: 400; color: var(--forest); line-height: 1; letter-spacing: -0.03em; }
.case-result-label { font-size: 0.75rem; color: var(--mid-gray); line-height: 1.4; }

/* ============================================================
   ABOUT
   ============================================================ */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(3rem, 6vw, 6rem); align-items: center; }
.about-text h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); letter-spacing: -0.025em; margin-bottom: 2rem; }
.about-text .body { font-size: 0.92rem; color: var(--warm-gray); line-height: 1.85; margin-bottom: 1.75rem; }
.about-img { position: relative; }
.about-img img { border-radius: 24px; width: 100%; height: 540px; object-fit: cover; }
.about-img::before { content: ''; position: absolute; inset: -12px 12px 12px -12px; border: 2px solid var(--leaf-muted); border-radius: 24px; z-index: -1; }

/* ============================================================
   DIFFERENTIATOR
   ============================================================ */
.diff-header { text-align: center; margin-bottom: 3.5rem; }
.diff-header p { font-size: 0.95rem; color: rgba(250,247,242,0.55); max-width: 620px; margin: 0 auto; line-height: 1.7; }
.diff-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; max-width: 960px; margin: 0 auto; }
.dcard { border-radius: 20px; padding: 2.5rem; }
.dcard-left { background: rgba(250,247,242,0.04); border: 1px solid rgba(250,247,242,0.08); }
.dcard-right { background: var(--forest); border: 1px solid rgba(62,207,142,0.15); }
.dcard h3 { font-size: 1.3rem; color: var(--cream); margin-bottom: 1.75rem; }
.dlist { list-style: none; }
.dlist li { display: flex; gap: 0.75rem; margin-bottom: 1.1rem; font-size: 0.88rem; color: rgba(250,247,242,0.75); line-height: 1.6; }
.dlist .check-dot { background: rgba(62,207,142,0.15); border: 1px solid rgba(62,207,142,0.3); }
.dcard-right .dlist li + li { padding-top: 1.1rem; border-top: 1px solid rgba(250,247,242,0.08); }

/* ============================================================
   HOW WE WORK (light)
   ============================================================ */
.steps-light .step-num { border-color: var(--forest); color: var(--forest); }
.steps-light .step-line { background: var(--light-line); }
.steps-light .step-body h3 { color: var(--bark); }
.steps-light .step-body p { color: var(--warm-gray); }

/* ============================================================
   FAQ
   ============================================================ */
.faq-header { text-align: center; margin-bottom: 3.5rem; }
.faq-header h2 { font-size: clamp(2rem, 3.5vw, 2.75rem); letter-spacing: -0.025em; }
.faq-list { max-width: 780px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--light-line); }
.faq-q { width: 100%; background: none; border: none; text-align: left; padding: 1.35rem 0; font-family: var(--sans); font-size: 0.95rem; font-weight: 600; color: var(--bark); cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; transition: color 0.2s; }
.faq-q:hover { color: var(--forest-light); }
.faq-chevron { width: 28px; height: 28px; border-radius: 50%; border: 1.5px solid var(--light-line); display: grid; place-items: center; flex-shrink: 0; transition: all 0.35s; font-size: 0.65rem; color: var(--warm-gray); }
.faq-item.open .faq-chevron { background: var(--forest); border-color: var(--forest); color: var(--cream); transform: rotate(180deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1); }
.faq-item.open .faq-a { max-height: 300px; }
.faq-a p { padding-bottom: 1.35rem; font-size: 0.88rem; color: var(--warm-gray); line-height: 1.75; }

/* ============================================================
   CONTACT / CTA
   ============================================================ */
.cta-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.cta-text h2 { font-size: clamp(2rem, 3.5vw, 2.75rem); color: var(--cream); margin-bottom: 1.25rem; letter-spacing: -0.025em; }
.cta-text p { color: rgba(250,247,242,0.65); font-size: 0.95rem; line-height: 1.75; margin-bottom: 1.5rem; }

.socials { display: flex; gap: 0.65rem; }
.social-btn { width: 40px; height: 40px; border-radius: 12px; border: 1px solid rgba(250,247,242,0.1); background: rgba(250,247,242,0.04); display: grid; place-items: center; color: var(--cream); font-size: 0.85rem; font-weight: 600; transition: all 0.25s; }
.social-btn:hover { background: rgba(250,247,242,0.1); border-color: rgba(250,247,242,0.2); transform: translateY(-2px); }

.cta-form-card { background: var(--cream); border-radius: 24px; padding: 2.5rem; }
.cta-form-card h3 { font-size: 1.25rem; margin-bottom: 1.5rem; letter-spacing: -0.02em; }
.fg { margin-bottom: 0.85rem; }
.fg label { display: block; font-weight: 600; font-size: 0.78rem; margin-bottom: 0.35rem; color: var(--warm-gray); letter-spacing: 0.03em; text-transform: uppercase; }
.fg input, .fg textarea { width: 100%; padding: 0.7rem 0.85rem; border: 1.5px solid rgba(26,60,42,0.1); border-radius: 12px; font-family: var(--sans); font-size: 0.88rem; background: var(--cream-dark); transition: all 0.25s; color: var(--bark); }
.fg input:focus, .fg textarea:focus { outline: none; border-color: var(--forest); background: var(--cream); box-shadow: 0 0 0 3px rgba(26,60,42,0.06); }
.fg textarea { resize: vertical; min-height: 90px; }
.fg-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.85rem; }
.btn-submit { width: 100%; padding: 0.85rem; background: var(--forest); color: var(--cream); border: none; border-radius: 100px; font-family: var(--sans); font-size: 0.9rem; font-weight: 600; cursor: pointer; transition: all 0.3s; margin-top: 0.5rem; letter-spacing: 0.01em; }
.btn-submit:hover { background: var(--bark); transform: translateY(-1px); box-shadow: 0 8px 20px rgba(15,31,23,0.2); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--bark); color: var(--cream); padding: 4rem 0 2rem; }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; margin-bottom: 3rem; }
.fcol h4 { font-family: var(--sans); font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; color: rgba(250,247,242,0.4); margin-bottom: 1.25rem; }
.fcol p { font-size: 0.88rem; color: rgba(250,247,242,0.45); line-height: 1.75; }
.fcol ul { list-style: none; }
.fcol ul li { margin-bottom: 0.55rem; }
.fcol ul a { font-size: 0.88rem; color: rgba(250,247,242,0.45); transition: color 0.2s; }
.fcol ul a:hover { color: var(--leaf); }
.footer-bar { border-top: 1px solid rgba(250,247,242,0.06); padding-top: 1.5rem; display: flex; justify-content: space-between; align-items: center; }
.footer-bar p, .footer-bar a { font-size: 0.78rem; color: rgba(250,247,242,0.3); }
.footer-bar a:hover { color: var(--leaf); }

.divider { width: 60px; height: 1px; background: var(--leaf-muted); margin: 0 auto; }

/* ============================================================
   LEGAL PAGES
   ============================================================ */
.page-hero { background: var(--forest); padding: 4rem 0 3rem; text-align: center; }
.page-hero h1 { font-family: var(--serif); font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; color: var(--cream); margin-bottom: 0.5rem; }
.page-hero p { color: rgba(250,247,242,0.6); font-size: 0.95rem; }
.lang-tabs { display: flex; justify-content: center; gap: 0.5rem; padding: 2rem 0 0; }
.lang-tab { padding: 0.6rem 1.6rem; border: 1px solid var(--light-line); border-radius: 999px; background: white; font-family: var(--sans); font-size: 0.9rem; font-weight: 500; color: var(--warm-gray); cursor: pointer; transition: all 0.3s ease; }
.lang-tab.active, .lang-tab:hover { background: var(--forest); color: var(--cream); border-color: var(--forest); }
.legal-wrap { padding: 2rem 0 5rem; }
.legal-panel { display: none; }
.legal-panel.active { display: block; }
.legal-body { background: white; border-radius: 16px; padding: clamp(2rem, 5vw, 3.5rem); border: 1px solid var(--light-line); box-shadow: 0 2px 20px rgba(0,0,0,0.03); }
.legal-body h2 { font-family: var(--serif); font-size: 1.4rem; font-weight: 700; color: var(--bark); margin: 2.5rem 0 0.75rem; }
.legal-body h2:first-child { margin-top: 0; }
.legal-body h3 { font-family: var(--sans); font-size: 1.05rem; font-weight: 600; color: var(--forest); margin: 1.8rem 0 0.5rem; }
.legal-body p { font-size: 0.93rem; line-height: 1.85; color: var(--warm-gray); margin-bottom: 1rem; }
.legal-body a { color: var(--forest); text-decoration: underline; }
.legal-body ul, .legal-body ol { padding-left: 1.5rem; margin-bottom: 1rem; }
.legal-body li { font-size: 0.93rem; line-height: 1.85; color: var(--warm-gray); margin-bottom: 0.35rem; }
.legal-body strong { color: var(--charcoal); }
.contact-card { background: var(--leaf-pale); border-radius: 12px; padding: 2rem; margin: 1.5rem 0; }
.contact-card p { color: var(--bark); font-size: 1rem; line-height: 2; }
.contact-card strong { font-size: 1.15rem; }

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* --- TABLET (max 1024px) --- */
@media (max-width: 1024px) {
    :root { --header-h: 80px; }

    .logo img { height: 48px; }
    .nav ul { gap: 1.5rem; }
    .nav a { font-size: 0.88rem; }
    .nav-cta { padding: 0.5rem 1.2rem; }

    .impact-grid, .value-grid, .cases-grid { grid-template-columns: 1fr 1fr; }
    .res-row { grid-template-columns: 60px 1fr; gap: 1.25rem; }
    .res-desc { grid-column: 1 / -1; }
    .sust-grid, .about-grid, .proc-grid, .cta-grid, .diff-grid { grid-template-columns: 1fr; gap: 2.5rem; }
    .sust-img img, .about-img img, .proc-img img { height: 400px; }

    .proc-card { grid-template-columns: 1fr; }
    .proc-card:nth-child(even) { direction: ltr; }
    .proc-card-img { min-height: 280px; }

    .auth-strip { grid-template-columns: 1fr 1fr; }
    .auth-item:nth-child(2), .auth-item:nth-child(4) { border-right: none; }
    .auth-item:nth-child(1), .auth-item:nth-child(2) { border-bottom: 1px solid rgba(250,247,242,0.08); }

    .footer-inner { grid-template-columns: 1fr 1fr; }
}

/* --- TABLET SMALL / LARGE PHONE (max 768px) --- */
@media (max-width: 768px) {
    :root { --header-h: 72px; }

    .menu-toggle { display: flex; }
    .logo img { height: 42px; }

    /* Mobile menu overlay */
    .nav {
        display: none;
        position: fixed;
        top: var(--header-h);
        left: 0; right: 0; bottom: 0;
        background: var(--cream);
        z-index: 99;
        padding: 0;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .nav.is-open {
        display: flex;
        flex-direction: column;
        animation: slideDown 0.3s ease;
    }

    @keyframes slideDown {
        from { opacity: 0; transform: translateY(-10px); }
        to { opacity: 1; transform: translateY(0); }
    }

    .nav ul {
        flex-direction: column;
        gap: 0;
        padding: 1rem 1.5rem 2rem;
        width: 100%;
    }

    .nav li {
        border-bottom: 1px solid var(--light-line);
    }

    .nav li:last-child { border-bottom: none; }

    .nav a {
        display: block;
        padding: 1.1rem 0;
        font-size: 1.1rem;
        font-weight: 500;
        color: var(--bark) !important;
        letter-spacing: 0;
    }

    .nav a:active { color: var(--forest) !important; }

    .nav-cta {
        margin-top: 0.5rem;
        text-align: center;
        display: block !important;
        padding: 1rem 1.5rem !important;
        border-radius: 14px !important;
        font-size: 1rem !important;
    }

    /* Hamburger active state (X shape) */
    .nav.is-open ~ .menu-toggle span:nth-child(1),
    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(4px, 4px);
    }
    .nav.is-open ~ .menu-toggle span:nth-child(2),
    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    .nav.is-open ~ .menu-toggle span:nth-child(3),
    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(4px, -4px);
    }

    .impact-grid, .cases-grid { grid-template-columns: 1fr 1fr; }
    .value-grid { grid-template-columns: 1fr; }
    .vcard { aspect-ratio: 16/10; }

    .test-slide { padding: 0 0.5rem; }
    .tcard { padding: 2rem 1.5rem; }
    .tcard-text { font-size: 0.92rem; }

    .footer-inner { grid-template-columns: 1fr 1fr; }
    .fg-row { grid-template-columns: 1fr; }

    /* Sub-page header */
    .header-solid { padding: 1rem 0; }
    .header-solid .logo img { height: 38px; }
    .back-link { font-size: 0.85rem; }
}

/* --- PHONE (max 480px) --- */
@media (max-width: 480px) {
    :root { --header-h: 64px; }

    .logo img { height: 36px; }

    .menu-toggle {
        padding: 0.6rem;
        gap: 5px;
    }
    .menu-toggle span { width: 24px; height: 2px; }

    .hero h1 { font-size: 2rem; }
    .hero-sub { font-size: 0.95rem; }
    .hero-badge { font-size: 0.7rem; padding: 0.35rem 0.85rem; }
    .hero-buttons { flex-direction: column; }
    .hero-buttons .btn { width: 100%; justify-content: center; }

    .section { padding: clamp(3rem, 8vw, 5rem) 0; }

    .impact-grid, .value-grid, .cases-grid { grid-template-columns: 1fr; }
    .vcard { aspect-ratio: 4/3; }

    .proc-card-img { min-height: 200px; }
    .proc-card-body { padding: 1.5rem; }
    .proc-card-num { font-size: 3rem; }

    .auth-strip { grid-template-columns: 1fr; }
    .auth-item { border-right: none !important; border-bottom: 1px solid rgba(250,247,242,0.08); }
    .auth-item:last-child { border-bottom: none; }

    .diff-grid { grid-template-columns: 1fr; }
    .dcard { padding: 1.75rem; }

    .slider-btn { width: 38px; height: 38px; }

    .cta-form-card { padding: 1.5rem; }
    .cta-text h2 { font-size: 1.6rem; }

    .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
    .footer-bar { flex-direction: column; gap: 0.5rem; text-align: center; }

    .legal-body { padding: 1.25rem; }
    .contact-card { padding: 1rem; }

    .header-solid .logo img { height: 32px; }
    .back-link { font-size: 0.8rem; }
}