/*
Theme Name: Medialemon
Theme URI: https://www.medialemon.com
Author: Medialemon GmbH
Author URI: https://www.medialemon.com
Description: Massgeschneiderte WordPress-Theme für die Medialemon GmbH – IT-Dienstleistungen seit 2009. GDPR-konform, SEO-optimiert, WCAG 2.1 AA konform, vollständig responsiv.
Version: 1.0.0
Tested up to: 6.7
Requires at least: 6.4
Requires PHP: 8.1
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: medialemon
Tags: one-column, custom-menu, custom-logo, editor-style, featured-images, footer-widgets, full-width-template, theme-options, translation-ready, accessibility-ready

Medialemon GmbH – Massgeschneiderte IT-Dienstleistungen seit über 15 Jahren.
*/

/* ═══════════════════════════════════════════════════
   TOKENS / CSS CUSTOM PROPERTIES
   ═══════════════════════════════════════════════════ */
:root {
    --lime: #a4c639;
    --lime-dim: #84a036;
    --lime-bright: #c5e84b;
    --lime-glow: rgba(164, 198, 57, .25);
    --navy: #0d1117;
    --navy-up: #151b25;
    --navy-card: #161d28;
    --surface: #111820;
    --border: rgba(255,255,255,.06);
    --border-hover: rgba(164,198,57,.3);
    --text: rgba(255,255,255,.88);
    --text-dim: rgba(255,255,255,.5);
    --text-muted: rgba(255,255,255,.3);
    --white: #fff;

    --font-display: 'Syne', sans-serif;
    --font-body: 'Outfit', sans-serif;

    --ease-out: cubic-bezier(.16,1,.3,1);
    --ease-spring: cubic-bezier(.34,1.56,.64,1);

    --radius: 20px;
    --radius-sm: 12px;
    --radius-pill: 100px;

    --gutter: clamp(16px, 3vw, 40px);
    --section-y: clamp(80px, 12vh, 160px);
    --max-w: 1280px;
}

/* ═══════════════════════════════════════════════════
   RESET
   ═══════════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    font-family: var(--font-body);
    font-weight: 400;
    color: var(--text);
    background: var(--navy);
    line-height: 1.65;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul, ol { list-style: none; }
::selection { background: var(--lime); color: var(--navy); }

.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;
}

/* ═══════════════════════════════════════════════════
   GRAIN OVERLAY
   ═══════════════════════════════════════════════════ */
body::after {
    content: '';
    position: fixed; inset: 0; z-index: 9990;
    pointer-events: none; opacity: .035;
    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.9' 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: 180px;
}

.wrap {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

/* ═══════════════════════════════════════════════════
   SKIP LINK (Accessibility)
   ═══════════════════════════════════════════════════ */
.skip-link {
    position: absolute; top: -60px; left: 0;
    background: var(--lime); color: var(--navy);
    padding: 10px 20px; z-index: 99999;
    border-radius: 0 0 8px 0; font-weight: 600;
    transition: top .25s;
}
.skip-link:focus { top: 0; }

/* ═══════════════════════════════════════════════════
   ANNOUNCEMENT BAR
   ═══════════════════════════════════════════════════ */
.announcement-bar {
    background: linear-gradient(90deg, var(--lime), var(--lime-dim));
    color: var(--navy);
    text-align: center;
    padding: 10px var(--gutter);
    font-size: .85rem;
    font-weight: 600;
    position: relative;
    z-index: 9001;
}
.announcement-bar a {
    color: var(--navy);
    text-decoration: underline;
    font-weight: 700;
}
.announcement-bar .close-announcement {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,.15);
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--navy);
    font-size: 14px;
    line-height: 1;
}

.vacation-bar {
    background: linear-gradient(90deg, #e74c3c, #c0392b);
    color: var(--white);
}
.vacation-bar a { color: var(--white); }
.vacation-bar .close-announcement {
    color: var(--white);
    background: rgba(255,255,255,.2);
}

/* ═══════════════════════════════════════════════════
   NAVIGATION
   ═══════════════════════════════════════════════════ */
.nav {
    position: fixed;
    top: 16px; left: 50%;
    transform: translateX(-50%);
    z-index: 9000;
    width: min(94vw, 1200px);
    padding: 12px 24px;
    border-radius: var(--radius-pill);
    background: rgba(13,17,23,.55);
    backdrop-filter: blur(24px) saturate(1.4);
    -webkit-backdrop-filter: blur(24px) saturate(1.4);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all .4s var(--ease-out);
}
.has-announcement .nav { top: 56px; }
.nav.scrolled {
    background: rgba(13,17,23,.85);
    border-color: rgba(164,198,57,.12);
    box-shadow: 0 8px 40px rgba(0,0,0,.35);
}
.nav-logo img { height: 36px; width: auto; }
.nav-center { display: flex; align-items: center; gap: 4px; }
.nav-center a, .nav-center > .dropdown > a {
    color: var(--text-dim); font-size: .875rem; font-weight: 500;
    padding: 8px 16px; border-radius: var(--radius-pill);
    transition: all .25s var(--ease-out);
}
.nav-center a:hover, .nav-center > .dropdown:hover > a,
.nav-center > .dropdown.open > a {
    color: var(--white); background: rgba(255,255,255,.06);
}
.dropdown { position: relative; }
.dropdown-toggle { display: flex; align-items: center; gap: 5px; }
.dropdown-toggle svg {
    width: 12px; height: 12px; stroke: currentColor; fill: none;
    transition: transform .25s var(--ease-out);
}
.dropdown:hover .dropdown-toggle svg,
.dropdown.open .dropdown-toggle svg { transform: rotate(180deg); }
.dropdown-menu {
    position: absolute; top: calc(100% + 10px); left: 50%;
    transform: translateX(-50%) translateY(6px);
    min-width: 220px; padding: 8px;
    background: var(--navy-card); border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    box-shadow: 0 24px 60px rgba(0,0,0,.5);
    opacity: 0; visibility: hidden;
    transition: all .3s var(--ease-out);
    z-index: 9100;
}
/* Invisible bridge that covers the gap between toggle and menu */
.dropdown-menu::before {
    content: ''; position: absolute;
    top: -16px; left: 0; right: 0; height: 16px;
}
.dropdown:hover .dropdown-menu,
.dropdown.open .dropdown-menu {
    opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0);
}
.dropdown-menu a {
    display: block; padding: 10px 14px; border-radius: 8px;
    font-size: .88rem; color: var(--text-dim);
    cursor: pointer; position: relative; z-index: 1;
}
.dropdown-menu a:hover { background: rgba(164,198,57,.1); color: var(--lime); }
.nav-right { display: flex; align-items: center; gap: 8px; }
.lang-pills {
    display: flex; background: rgba(255,255,255,.06);
    border-radius: var(--radius-pill); padding: 3px;
}
.lang-pills a {
    font-size: .72rem; font-weight: 600; text-transform: uppercase;
    letter-spacing: .08em; padding: 4px 10px;
    border-radius: var(--radius-pill); color: var(--text-muted); transition: all .2s;
}
.lang-pills a.active { background: rgba(255,255,255,.12); color: var(--white); }
.lang-pills a:hover { color: var(--white); }
.nav-cta-btn {
    background: var(--lime); color: var(--navy); font-weight: 600;
    font-size: .85rem; padding: 9px 22px; border-radius: var(--radius-pill);
    transition: all .3s var(--ease-out);
}
.nav-cta-btn:hover {
    background: var(--lime-bright);
    box-shadow: 0 4px 20px var(--lime-glow); transform: translateY(-1px);
}
.nav-burger {
    display: none; flex-direction: column; gap: 5px; padding: 8px; z-index: 9001;
}
.nav-burger span {
    display: block; width: 22px; height: 2px; background: var(--white);
    border-radius: 2px; transition: all .3s var(--ease-out); transform-origin: center;
}
.nav-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mobile-menu {
    position: fixed; inset: 0; z-index: 8999;
    background: rgba(10,15,10,.97); backdrop-filter: blur(40px);
    display: flex; flex-direction: column; align-items: center;
    justify-content: center; gap: 12px;
    opacity: 0; visibility: hidden; transition: all .4s var(--ease-out);
}
.mobile-menu.open { opacity: 1; visibility: visible; }
.mobile-menu a {
    font-family: var(--font-display); font-size: 1.8rem; font-weight: 700;
    color: var(--text-dim); transition: color .2s;
}
.mobile-menu a:hover { color: var(--lime); }

/* ═══════════════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════════════ */
.hero {
    position: relative; min-height: 100vh;
    display: flex; align-items: flex-end;
    padding: 0 0 clamp(60px, 10vh, 120px); overflow: hidden;
}
.hero-media { position: absolute; inset: 0; }
.hero-media video, .hero-media img {
    width: 100%; height: 100%; object-fit: cover;
}
.hero-overlay {
    position: absolute; inset: 0; z-index: 1;
    background:
        linear-gradient(180deg, rgba(13,17,23,.3) 0%, rgba(13,17,23,.1) 40%, rgba(13,17,23,.85) 100%),
        radial-gradient(ellipse at 80% 20%, rgba(164,198,57,.12) 0%, transparent 60%);
}
.hero-content { position: relative; z-index: 2; width: 100%; }
.hero-inner { max-width: var(--max-w); margin: 0 auto; padding: 0 var(--gutter); }
.hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(164,198,57,.1); border: 1px solid rgba(164,198,57,.25);
    border-radius: var(--radius-pill); padding: 8px 18px;
    font-size: .78rem; font-weight: 600; color: var(--lime);
    letter-spacing: .06em; text-transform: uppercase; margin-bottom: 28px;
    opacity: 0; animation: heroFade .8s .2s var(--ease-out) forwards;
}
.hero-badge .dot {
    width: 7px; height: 7px; background: var(--lime);
    border-radius: 50%; animation: pulse 2s infinite;
}
.hero h1 {
    font-family: var(--font-display);
    font-size: clamp(3rem, 7.5vw, 6.5rem); font-weight: 800;
    line-height: .95; color: var(--white); letter-spacing: -.03em;
    max-width: 14ch; margin-bottom: 28px;
    opacity: 0; animation: heroFade .8s .35s var(--ease-out) forwards;
}
.hero h1 .em-green {
    background: linear-gradient(135deg, var(--lime), var(--lime-bright));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.hero-desc {
    font-size: clamp(1rem, 1.3vw, 1.15rem); color: var(--text-dim);
    max-width: 48ch; line-height: 1.75; margin-bottom: 40px;
    opacity: 0; animation: heroFade .8s .5s var(--ease-out) forwards;
}
.hero-actions {
    display: flex; gap: 14px; flex-wrap: wrap;
    opacity: 0; animation: heroFade .8s .65s var(--ease-out) forwards;
}
.hero-float {
    position: absolute; right: var(--gutter);
    bottom: clamp(80px, 14vh, 160px); z-index: 2;
    display: flex; flex-direction: column; gap: 12px;
    opacity: 0; animation: heroFade .8s .9s var(--ease-out) forwards;
}
.hero-stat {
    background: rgba(255,255,255,.04); backdrop-filter: blur(20px);
    border: 1px solid var(--border); border-radius: var(--radius-sm);
    padding: 18px 24px; text-align: right; transition: all .3s var(--ease-out);
}
.hero-stat:hover { border-color: var(--border-hover); background: rgba(164,198,57,.06); }
.hero-stat-num {
    font-family: var(--font-display); font-size: 1.8rem; font-weight: 800;
    color: var(--lime); line-height: 1;
}
.hero-stat-label { font-size: .78rem; color: var(--text-muted); margin-top: 2px; }

/* ═══════════════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════════════ */
.btn {
    display: inline-flex; align-items: center; gap: 10px;
    font-family: var(--font-body); font-size: .9rem; font-weight: 600;
    padding: 14px 30px; border-radius: var(--radius-pill);
    transition: all .3s var(--ease-out); position: relative; overflow: hidden;
}
.btn-lime { background: var(--lime); color: var(--navy); }
.btn-lime:hover {
    background: var(--lime-bright);
    box-shadow: 0 6px 30px var(--lime-glow); transform: translateY(-2px);
}
.btn-glass {
    background: rgba(255,255,255,.06); border: 1px solid var(--border); color: var(--white);
}
.btn-glass:hover {
    background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.15);
    transform: translateY(-2px);
}
.btn .arrow { display: inline-flex; transition: transform .3s var(--ease-out); }
.btn:hover .arrow { transform: translateX(4px); }

/* ═══════════════════════════════════════════════════
   SECTION HELPERS
   ═══════════════════════════════════════════════════ */
.section { padding: var(--section-y) 0; }
.section-label {
    font-family: var(--font-body); font-size: .75rem; font-weight: 600;
    text-transform: uppercase; letter-spacing: .18em; color: var(--lime);
    margin-bottom: 16px; display: flex; align-items: center; gap: 12px;
}
.section-label::before { content: ''; width: 28px; height: 1px; background: var(--lime); }
.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4.5vw, 3.6rem); font-weight: 800;
    letter-spacing: -.02em; line-height: 1.05; color: var(--white); margin-bottom: 20px;
}
.section-desc { font-size: 1.05rem; color: var(--text-dim); max-width: 55ch; line-height: 1.8; }

/* ═══════════════════════════════════════════════════
   MARQUEE
   ═══════════════════════════════════════════════════ */
.marquee-section {
    padding: 32px 0; border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border); overflow: hidden; position: relative;
}
.marquee-section::before, .marquee-section::after {
    content: ''; position: absolute; top: 0; bottom: 0; width: 120px;
    z-index: 2; pointer-events: none;
}
.marquee-section::before { left: 0; background: linear-gradient(90deg, var(--navy), transparent); }
.marquee-section::after { right: 0; background: linear-gradient(-90deg, var(--navy), transparent); }
.marquee-track {
    display: flex; gap: 24px; animation: marquee 40s linear infinite; width: max-content;
}
.marquee-track:hover { animation-play-state: paused; }
.marquee-item {
    flex-shrink: 0; font-size: .88rem; font-weight: 500; color: var(--text-muted);
    white-space: nowrap; padding: 10px 22px; border: 1px solid var(--border);
    border-radius: var(--radius-pill); transition: all .3s var(--ease-out);
}
.marquee-item:hover {
    color: var(--lime); border-color: var(--border-hover);
    background: rgba(164,198,57,.06);
}

/* ═══════════════════════════════════════════════════
   ABOUT
   ═══════════════════════════════════════════════════ */
.about-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center;
}
.about-text p { color: var(--text-dim); margin-bottom: 18px; font-size: 1.02rem; }
.about-visual { position: relative; }
.about-img-wrap {
    border-radius: var(--radius); overflow: hidden; position: relative; aspect-ratio: 4/3.2;
}
.about-img-wrap img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 6s var(--ease-out);
}
.about-img-wrap:hover img { transform: scale(1.05); }
.about-float-badge {
    position: absolute; bottom: -24px; left: -24px;
    background: rgba(13,17,23,.7); backdrop-filter: blur(20px);
    border: 1px solid var(--border); border-radius: var(--radius-sm);
    padding: 22px 28px; z-index: 2;
}
.about-float-badge .stat-num {
    font-family: var(--font-display); font-size: 2.4rem; font-weight: 800;
    color: var(--lime); line-height: 1;
}
.about-float-badge .stat-txt { font-size: .82rem; color: var(--text-dim); margin-top: 4px; }
.about-orb {
    position: absolute; width: 300px; height: 300px; border-radius: 50%;
    background: radial-gradient(circle, var(--lime-glow), transparent 70%);
    top: -60px; right: -80px; filter: blur(60px); z-index: 0; pointer-events: none;
}

/* ═══════════════════════════════════════════════════
   BENTO SERVICES
   ═══════════════════════════════════════════════════ */
.services-section {
    background: var(--surface);
    border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.bento-card {
    background: var(--navy-card); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 44px 36px;
    position: relative; overflow: hidden; transition: all .4s var(--ease-out);
}
.bento-card::before {
    content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1px;
    background: linear-gradient(135deg, rgba(164,198,57,.15), transparent 50%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor; mask-composite: exclude;
    opacity: 0; transition: opacity .4s var(--ease-out);
}
.bento-card:hover::before { opacity: 1; }
.bento-card:hover {
    transform: translateY(-6px); border-color: rgba(164,198,57,.2);
    box-shadow: 0 20px 60px rgba(0,0,0,.3), 0 0 80px rgba(164,198,57,.06);
}
.bento-card::after {
    content: ''; position: absolute; top: 24px; right: 24px;
    width: 8px; height: 8px; border-radius: 50%; background: var(--lime);
    opacity: 0; transition: opacity .4s;
}
.bento-card:hover::after { opacity: 1; }
.bento-icon {
    width: 90px; height: 90px; margin-bottom: 28px; position: relative;
}
.bento-icon img {
    width: 100%; height: 100%; object-fit: contain;
    transition: transform .5s var(--ease-spring);
}
.bento-card:hover .bento-icon img { transform: scale(1.1) rotate(-3deg); }
.bento-card h3 {
    font-family: var(--font-display); font-size: 1.5rem; font-weight: 700;
    color: var(--white); margin-bottom: 14px;
}
.bento-card p { font-size: .94rem; color: var(--text-dim); line-height: 1.75; }
.bento-number {
    position: absolute; bottom: 20px; right: 28px;
    font-family: var(--font-display); font-size: 5rem; font-weight: 800;
    color: rgba(255,255,255,.02); line-height: 1; pointer-events: none;
}

/* ═══════════════════════════════════════════════════
   BENEFITS
   ═══════════════════════════════════════════════════ */
.benefits-track {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.benefit-card {
    background: var(--navy-card); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 36px 32px;
    display: flex; gap: 20px; align-items: flex-start;
    transition: all .35s var(--ease-out);
}
.benefit-card:hover {
    border-color: var(--border-hover); background: rgba(164,198,57,.04);
    transform: translateY(-4px);
}
.benefit-icon-wrap {
    flex-shrink: 0; width: 44px; height: 44px; border-radius: 12px;
    background: rgba(164,198,57,.1);
    display: flex; align-items: center; justify-content: center;
}
.benefit-icon-wrap svg { width: 20px; height: 20px; stroke: var(--lime); }
.benefit-card p { font-size: .95rem; color: var(--text-dim); line-height: 1.65; }

/* ═══════════════════════════════════════════════════
   CTA
   ═══════════════════════════════════════════════════ */
.cta-section {
    position: relative; padding: var(--section-y) 0;
    overflow: hidden; text-align: center;
}
.cta-bg {
    position: absolute; inset: 0;
    background:
        radial-gradient(ellipse at 50% 0%, rgba(164,198,57,.18) 0%, transparent 55%),
        radial-gradient(ellipse at 80% 100%, rgba(164,198,57,.08) 0%, transparent 40%),
        var(--navy);
}
.cta-section .wrap { position: relative; z-index: 1; }
.cta-title {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 5vw, 4rem); font-weight: 800;
    color: var(--white); letter-spacing: -.02em; line-height: 1.05; margin-bottom: 16px;
}
.cta-desc {
    font-size: 1.1rem; color: var(--text-dim); max-width: 50ch;
    margin: 0 auto 40px; line-height: 1.75;
}
.cta-ring {
    position: absolute; width: 500px; height: 500px; border-radius: 50%;
    border: 1px solid rgba(164,198,57,.08);
    top: 50%; left: 50%; transform: translate(-50%, -50%);
    pointer-events: none; animation: ringPulse 6s ease-in-out infinite;
}
.cta-ring:nth-child(2) { width: 700px; height: 700px; animation-delay: 2s; }
.cta-ring:nth-child(3) { width: 900px; height: 900px; animation-delay: 4s; }

/* ═══════════════════════════════════════════════════
   CONTACT / MAP
   ═══════════════════════════════════════════════════ */
.contact-section { padding: var(--section-y) 0; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.contact-info h3 {
    font-family: var(--font-display); font-size: 1.2rem; font-weight: 700;
    color: var(--white); margin-bottom: 12px;
}
.contact-info p, .contact-info a {
    font-size: .95rem; color: var(--text-dim); line-height: 1.8;
}
.contact-info a:hover { color: var(--lime); }
.contact-map {
    border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border);
    aspect-ratio: 16/10;
}
.contact-map iframe { width: 100%; height: 100%; border: 0; }
.osm-consent {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    background: var(--navy-card); padding: 40px; text-align: center;
    height: 100%; min-height: 300px;
}
.osm-consent p { color: var(--text-dim); margin-bottom: 16px; font-size: .9rem; max-width: 36ch; }
.osm-consent .btn { font-size: .85rem; padding: 10px 24px; }

/* ═══════════════════════════════════════════════════
   LEGAL PAGES (Impressum, Datenschutz)
   ═══════════════════════════════════════════════════ */
.legal-page {
    padding: calc(var(--section-y) + 80px) 0 var(--section-y);
}
.legal-page .wrap { max-width: 800px; }
.legal-page h1 {
    font-family: var(--font-display); font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800; color: var(--white); margin-bottom: 40px;
}
.legal-page h2 {
    font-family: var(--font-display); font-size: 1.3rem; font-weight: 700;
    color: var(--white); margin: 36px 0 12px; padding-top: 20px;
    border-top: 1px solid var(--border);
}
.legal-page h3 {
    font-family: var(--font-display); font-size: 1.1rem; font-weight: 600;
    color: var(--white); margin: 24px 0 8px;
}
.legal-page p, .legal-page li {
    font-size: .95rem; color: var(--text-dim); line-height: 1.8; margin-bottom: 12px;
}
.legal-page ul { list-style: disc; padding-left: 24px; }
.legal-page a { color: var(--lime); text-decoration: underline; }
.legal-page a:hover { color: var(--lime-bright); }

/* ═══════════════════════════════════════════════════
   SUB PAGES
   ═══════════════════════════════════════════════════ */
.page-hero {
    position: relative;
    padding: calc(var(--section-y) + 100px) 0 var(--section-y);
    text-align: center;
    overflow: hidden;
}
.page-hero::before {
    content: ''; position: absolute; inset: 0;
    background:
        radial-gradient(ellipse at 50% 0%, rgba(164,198,57,.12) 0%, transparent 55%),
        var(--navy);
}
.page-hero .wrap { position: relative; z-index: 1; }
.page-hero h1 {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 4rem); font-weight: 800;
    color: var(--white); margin-bottom: 16px;
}
.page-hero p { font-size: 1.1rem; color: var(--text-dim); max-width: 55ch; margin: 0 auto; }

.page-content { padding: var(--section-y) 0; }
.page-content .wrap { max-width: 900px; }
.page-content p { color: var(--text-dim); font-size: 1rem; line-height: 1.8; margin-bottom: 16px; }

/* WP Editor Content */
.entry-content h2 {
    font-family: var(--font-display); font-size: 1.6rem; font-weight: 700;
    color: var(--white); margin: 32px 0 12px;
}
.entry-content h3 {
    font-family: var(--font-display); font-size: 1.3rem; font-weight: 600;
    color: var(--white); margin: 24px 0 8px;
}
.entry-content p { color: var(--text-dim); line-height: 1.8; margin-bottom: 16px; }
.entry-content a { color: var(--lime); text-decoration: underline; }
.entry-content ul, .entry-content ol { list-style: disc; padding-left: 24px; margin-bottom: 16px; }
.entry-content li { color: var(--text-dim); margin-bottom: 6px; }
.entry-content img { border-radius: var(--radius-sm); margin: 24px 0; }

/* ═══════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════ */
.site-footer { border-top: 1px solid var(--border); padding: 60px 0 0; }
.footer-grid {
    display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 60px;
    padding-bottom: 48px;
}
.footer-brand img { height: 36px; width: auto; margin-bottom: 16px; }
.footer-brand p { font-size: .9rem; color: var(--text-muted); max-width: 30ch; line-height: 1.7; }
.footer-col h4 {
    font-family: var(--font-display); font-size: .82rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: .12em;
    color: var(--text-dim); margin-bottom: 18px;
}
.footer-col li { margin-bottom: 10px; }
.footer-col a { font-size: .9rem; color: var(--text-muted); transition: color .2s; }
.footer-col a:hover { color: var(--lime); }
.footer-bottom {
    display: flex; justify-content: space-between; align-items: center;
    flex-wrap: wrap; gap: 16px; padding: 24px 0;
    border-top: 1px solid var(--border); font-size: .8rem; color: var(--text-muted);
}
.footer-legal { display: flex; gap: 20px; }
.footer-legal a { color: var(--text-muted); }
.footer-legal a:hover { color: var(--lime); }
.footer-legal button {
    color: var(--text-muted); font-size: .8rem; font-family: inherit; transition: color .2s;
}
.footer-legal button:hover { color: var(--lime); }

/* ═══════════════════════════════════════════════════
   COOKIE BANNER
   ═══════════════════════════════════════════════════ */
.cookie-bar {
    position: fixed; bottom: 20px; left: 50%;
    transform: translateX(-50%) translateY(calc(100% + 40px));
    z-index: 9998; width: min(92vw, 760px); padding: 20px 28px;
    background: var(--navy-card); backdrop-filter: blur(24px);
    border: 1px solid var(--border); border-radius: var(--radius);
    box-shadow: 0 24px 60px rgba(0,0,0,.5);
    display: flex; align-items: center; gap: 20px;
    transition: transform .5s var(--ease-out);
}
.cookie-bar.visible { transform: translateX(-50%) translateY(0); }
.cookie-bar-text { flex: 1; }
.cookie-bar-text h4 {
    font-family: var(--font-display); font-size: .95rem; font-weight: 700;
    color: var(--white); margin-bottom: 2px;
}
.cookie-bar-text p { font-size: .82rem; color: var(--text-muted); line-height: 1.5; }
.cookie-bar-text a { color: var(--lime); text-decoration: underline; }
.cookie-btns { display: flex; gap: 8px; flex-shrink: 0; }
.ck-btn {
    font-size: .82rem; font-weight: 600; padding: 9px 18px;
    border-radius: var(--radius-pill); transition: all .2s; cursor: pointer;
    border: none; font-family: inherit;
}
.ck-accept { background: var(--lime); color: var(--navy); }
.ck-accept:hover { background: var(--lime-bright); }
.ck-settings {
    background: rgba(255,255,255,.06); color: var(--text-dim);
    border: 1px solid var(--border);
}
.ck-settings:hover { border-color: rgba(255,255,255,.15); color: var(--white); }
.ck-decline { color: var(--text-muted); padding: 9px 12px; background: none; }
.ck-decline:hover { color: var(--white); }

/* Cookie Modal */
.ck-modal-bg {
    position: fixed; inset: 0; z-index: 10000;
    background: rgba(0,0,0,.6); backdrop-filter: blur(8px);
    display: none; align-items: center; justify-content: center; padding: 20px;
}
.ck-modal-bg.visible { display: flex; }
.ck-modal {
    background: var(--navy-card); border: 1px solid var(--border);
    border-radius: var(--radius); max-width: 520px; width: 100%;
    max-height: 80vh; overflow-y: auto; padding: 36px;
}
.ck-modal h3 {
    font-family: var(--font-display); font-size: 1.15rem; font-weight: 700;
    color: var(--white); margin-bottom: 8px;
}
.ck-modal > p { font-size: .88rem; color: var(--text-muted); margin-bottom: 24px; }
.ck-cat { padding: 18px 0; border-top: 1px solid var(--border); }
.ck-cat-row { display: flex; justify-content: space-between; align-items: center; }
.ck-cat-row h4 { font-size: .92rem; font-weight: 600; color: var(--text); }
.ck-cat-row p { font-size: .8rem; color: var(--text-muted); margin-top: 3px; }
.toggle { position: relative; width: 42px; height: 22px; flex-shrink: 0; }
.toggle input { opacity: 0; width: 0; height: 0; }
.toggle-track {
    position: absolute; inset: 0; background: rgba(255,255,255,.1);
    border-radius: 22px; cursor: pointer; transition: background .2s;
}
.toggle-track::before {
    content: ''; position: absolute; width: 16px; height: 16px;
    left: 3px; bottom: 3px; background: var(--white);
    border-radius: 50%; transition: transform .2s;
}
.toggle input:checked + .toggle-track { background: var(--lime); }
.toggle input:checked + .toggle-track::before { transform: translateX(20px); }
.toggle input:disabled + .toggle-track { opacity: .5; cursor: not-allowed; }
.ck-modal-btns { display: flex; gap: 10px; margin-top: 28px; justify-content: flex-end; }

/* ═══════════════════════════════════════════════════
   BACK TO TOP
   ═══════════════════════════════════════════════════ */
.to-top {
    position: fixed; bottom: 28px; right: 28px; z-index: 900;
    width: 44px; height: 44px; border-radius: 50%;
    background: var(--navy-card); border: 1px solid var(--border);
    color: var(--white); display: flex; align-items: center; justify-content: center;
    opacity: 0; visibility: hidden; transform: translateY(10px);
    transition: all .3s var(--ease-out); cursor: pointer;
}
.to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { background: var(--lime); color: var(--navy); border-color: var(--lime); }
.to-top svg { width: 18px; height: 18px; }

/* ═══════════════════════════════════════════════════
   SCROLL REVEAL
   ═══════════════════════════════════════════════════ */
.reveal {
    opacity: 0; transform: translateY(40px);
    transition: opacity .7s var(--ease-out), transform .7s var(--ease-out);
}
.reveal.vis { opacity: 1; transform: translateY(0); }
.reveal-d1 { transition-delay: .08s; }
.reveal-d2 { transition-delay: .16s; }
.reveal-d3 { transition-delay: .24s; }

/* ═══════════════════════════════════════════════════
   KEYFRAMES
   ═══════════════════════════════════════════════════ */
@keyframes heroFade {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes pulse {
    0%, 100% { opacity: 1; } 50% { opacity: .4; }
}
@keyframes marquee {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
@keyframes ringPulse {
    0%, 100% { opacity: .6; transform: translate(-50%,-50%) scale(1); }
    50%      { opacity: .15; transform: translate(-50%,-50%) scale(1.08); }
}

/* ═══════════════════════════════════════════════════
   SUB-PAGE HERO (shorter)
   ═══════════════════════════════════════════════════ */
.hero--subpage {
    min-height: 65vh;
    padding-bottom: clamp(40px, 8vh, 80px);
}
.hero--subpage h1 {
    font-size: clamp(2.5rem, 6vw, 5rem);
    max-width: 16ch;
}

/* ═══════════════════════════════════════════════════
   REFERENCES GRID
   ═══════════════════════════════════════════════════ */
.references-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}
.reference-card {
    display: flex;
    flex-direction: column;
    background: var(--navy-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all .4s var(--ease-out);
    text-decoration: none;
}
.reference-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(0,0,0,.3);
}
.reference-img {
    aspect-ratio: 16/10;
    overflow: hidden;
    background: var(--surface);
}
.reference-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .6s var(--ease-out);
}
.reference-card:hover .reference-img img {
    transform: scale(1.05);
}
.reference-name {
    padding: 16px 20px;
    font-family: var(--font-display);
    font-size: .95rem;
    font-weight: 600;
    color: var(--white);
}

/* ═══════════════════════════════════════════════════
   SERVICE DETAIL PAGE
   ═══════════════════════════════════════════════════ */
.service-detail .section-title {
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
}

/* ═══════════════════════════════════════════════════
   WORDPRESS ADMIN BAR
   ═══════════════════════════════════════════════════ */
.admin-bar .nav { top: 48px; }
.admin-bar .has-announcement .nav { top: 88px; }
.admin-bar .announcement-bar { margin-top: 32px; }

/* Selective Refresh highlight */
.customize-partial-edit-shortcut { z-index: 9999; }

/* ═══════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════ */
@media (max-width: 1024px) {
    .about-grid { grid-template-columns: 1fr; gap: 48px; }
    .about-visual { order: -1; }
    .hero-float { display: none; }
    .benefits-track { grid-template-columns: 1fr 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
    .nav-center, .nav-right .lang-pills { display: none; }
    .nav-burger { display: flex; }
    .bento { grid-template-columns: 1fr; }
    .benefits-track { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 36px; }
    .footer-bottom { flex-direction: column; text-align: center; }
    .footer-legal { justify-content: center; }
    .cookie-bar { flex-direction: column; align-items: stretch; }
    .cookie-btns { justify-content: center; }
    .about-float-badge { bottom: -16px; left: auto; right: 16px; }
}
@media (max-width: 480px) {
    .hero-actions { flex-direction: column; }
    .hero-actions .btn { width: 100%; justify-content: center; }
}
@media print {
    .nav, .cookie-bar, .to-top, .mobile-menu, .announcement-bar { display: none !important; }
    body { background: #fff; color: #111; }
    body::after { display: none; }
    .hero { min-height: auto; padding: 40px 0; }
}

/* ═══════════════════════════════════════════════════
   WP BLOCK EDITOR (Gutenberg) Support
   ═══════════════════════════════════════════════════ */
.wp-block-image { margin: 24px 0; }
.wp-block-image img { border-radius: var(--radius-sm); }
.has-text-align-center { text-align: center; }
.has-text-align-right { text-align: right; }
.alignwide { max-width: var(--max-w); margin-left: auto; margin-right: auto; }
.alignfull { width: 100vw; margin-left: calc(-50vw + 50%); }
