/* =========================================================
   The Sociogenic Foundation — Main Stylesheet
   Palette taken from the logo: red + black on white
   ========================================================= */

:root {
    --red:        #e31e24;   /* logo red */
    --red-dark:   #b3151a;
    --red-soft:   #fdecec;
    --black:      #1a1a1a;   /* logo black */
    --ink:        #222;
    --muted:      #6b6b6b;
    --line:       #ececec;
    --bg:         #ffffff;
    --bg-alt:     #faf7f7;
    --bg-dark:    #161616;

    --radius:     16px;
    --radius-sm:  10px;
    --shadow:     0 10px 30px rgba(0,0,0,.08);
    --shadow-lg:  0 20px 50px rgba(0,0,0,.14);
    --shadow-red: 0 12px 28px rgba(227,30,36,.30);

    --maxw:       1200px;
    --ease:       cubic-bezier(.22,.61,.36,1);

    --ff-head:    'Segoe UI', 'Segoe UI Variable', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    --ff-body:    'Segoe UI', 'Segoe UI Variable', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

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

html { scroll-behavior: smooth; overflow-x: clip; }

body {
    font-family: var(--ff-body);
    color: var(--ink);
    background: var(--bg);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    overflow-wrap: break-word;
}

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

/* Prevent grid/flex children from blowing out the layout width on mobile */
.split > *, .contact-grid > *, .cards > *, .media-grid > *, .vgrid > * { min-width: 0; }

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

h1, h2, h3, h4 { font-family: var(--ff-head); color: var(--black); line-height: 1.18; font-weight: 700; }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 22px; }

.skip-link {
    position: absolute; left: -999px; top: 0; z-index: 1000;
    background: var(--red); color: #fff; padding: 10px 16px; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

section { position: relative; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; gap: .5em;
    font-family: var(--ff-head); font-weight: 600; font-size: .95rem;
    padding: 13px 28px; border-radius: 50px; border: 2px solid transparent;
    cursor: pointer; transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s;
    white-space: nowrap;
}
.btn--primary { background: var(--red); color: #fff; box-shadow: var(--shadow-red); }
.btn--primary:hover { background: var(--red-dark); transform: translateY(-3px); }
.btn--ghost { background: transparent; color: var(--black); border-color: var(--black); }
.btn--ghost:hover { background: var(--black); color: #fff; transform: translateY(-3px); }
.btn--light { background: #fff; color: var(--red); }
.btn--light:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.btn--outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.7); }
.btn--outline-light:hover { background: #fff; color: var(--red); }
.btn--wa { background: #25d366; color: #fff; box-shadow: 0 12px 28px rgba(37,211,102,.30); }
.btn--wa:hover { background: #1da851; transform: translateY(-3px); box-shadow: 0 16px 32px rgba(37,211,102,.40); }

/* ---------- Tiny inline icons (CSS masks not needed; use simple shapes) ---------- */
.ico { display: inline-block; width: 1em; height: 1em; vertical-align: -.12em; margin-right: .4em;
       background: currentColor; -webkit-mask-size: contain; mask-size: contain;
       -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; -webkit-mask-position: center; mask-position: center; }
.ico-phone { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.6 10.8a15.5 15.5 0 0 0 6.6 6.6l2.2-2.2c.3-.3.7-.4 1-.2 1.1.4 2.3.6 3.6.6.6 0 1 .4 1 1V20c0 .6-.4 1-1 1A17 17 0 0 1 3 4c0-.6.4-1 1-1h3.5c.6 0 1 .4 1 1 0 1.3.2 2.5.6 3.6.1.4 0 .8-.3 1z'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.6 10.8a15.5 15.5 0 0 0 6.6 6.6l2.2-2.2c.3-.3.7-.4 1-.2 1.1.4 2.3.6 3.6.6.6 0 1 .4 1 1V20c0 .6-.4 1-1 1A17 17 0 0 1 3 4c0-.6.4-1 1-1h3.5c.6 0 1 .4 1 1 0 1.3.2 2.5.6 3.6.1.4 0 .8-.3 1z'/%3E%3C/svg%3E"); }
.ico-mail { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 5h18a1 1 0 0 1 1 1v12a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1V6a1 1 0 0 1 1-1zm9 7L4 6.5V18h16V6.5L12 12z'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 5h18a1 1 0 0 1 1 1v12a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1V6a1 1 0 0 1 1-1zm9 7L4 6.5V18h16V6.5L12 12z'/%3E%3C/svg%3E"); }
.ico-pin { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a7 7 0 0 0-7 7c0 5 7 13 7 13s7-8 7-13a7 7 0 0 0-7-7zm0 9.5A2.5 2.5 0 1 1 12 6a2.5 2.5 0 0 1 0 5.5z'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a7 7 0 0 0-7 7c0 5 7 13 7 13s7-8 7-13a7 7 0 0 0-7-7zm0 9.5A2.5 2.5 0 1 1 12 6a2.5 2.5 0 0 1 0 5.5z'/%3E%3C/svg%3E"); }

/* ---------- Top bar ---------- */
.topbar { background: var(--black); color: #f3f3f3; font-size: .82rem; }
.topbar__inner { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 40px; flex-wrap: wrap; }
.topbar__contacts { display: flex; gap: 22px; flex-wrap: wrap; }
.topbar a { transition: color .2s; }
.topbar a:hover { color: var(--red); }
.topbar .ico { opacity: .85; }

/* ---------- Header / nav ---------- */
.site-header {
    position: sticky; top: 0; z-index: 100;
    background: #fff;
    border-bottom: 1px solid var(--line);
    transition: box-shadow .3s, padding .3s;
    /* NOTE: do not add transform/filter/backdrop-filter here — it would become the
       containing block for the position:fixed mobile nav drawer and break it. */
}
.site-header.scrolled { box-shadow: 0 6px 24px rgba(0,0,0,.08); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 78px; }
.brand img { height: 46px; width: auto; transition: height .3s; }
.site-header.scrolled .brand img { height: 40px; }

.main-nav { display: flex; align-items: center; gap: 30px; }
.main-nav ul { display: flex; gap: 6px; list-style: none; align-items: center; }
.main-nav a {
    font-family: var(--ff-head); font-weight: 500; font-size: .96rem; color: var(--ink);
    padding: 8px 14px; border-radius: 8px; position: relative; transition: color .2s;
}
.main-nav ul a::after {
    content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px;
    background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .28s var(--ease);
}
.main-nav ul a:hover { color: var(--red); }
.main-nav ul a:hover::after, .main-nav ul a.active::after { transform: scaleX(1); }
.main-nav ul a.active { color: var(--red); }

.nav-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; position: relative; }
.nav-toggle span { position: absolute; left: 9px; right: 9px; height: 2.5px; background: var(--black); border-radius: 3px; transition: .3s var(--ease); }
.nav-toggle span:nth-child(1) { top: 14px; }
.nav-toggle span:nth-child(2) { top: 21px; }
.nav-toggle span:nth-child(3) { top: 28px; }
.nav-toggle.open span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { top: 21px; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { color: #fff; overflow: hidden; }
.hero__slides { position: absolute; inset: 0; z-index: 0; }
.hero__slide { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; transition: opacity 1.4s var(--ease), transform 6s linear; transform: scale(1.05); }
.hero__slide.active { opacity: 1; transform: scale(1.12); }
/* Dark on the left for text legibility, fading clear on the right so the slide image shows through */
.hero::after { content: ""; position: absolute; inset: 0; z-index: 1;
    background: linear-gradient(100deg, rgba(18,18,18,.92) 0%, rgba(18,18,18,.6) 38%, rgba(18,18,18,.14) 66%, rgba(18,18,18,0) 100%); }

/* ---------- Hero arrows ---------- */
.hero__arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
    width: 52px; height: 52px; display: flex; align-items: center; justify-content: center;
    border: 1px solid rgba(255,255,255,.45); border-radius: 50%; background: rgba(20,20,20,.32);
    color: #fff; font-size: 1.9rem; line-height: 1; cursor: pointer;
    -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); transition: background .25s, border-color .25s, transform .25s; }
.hero__arrow:hover { background: var(--red); border-color: var(--red); }
.hero__arrow--prev { left: 22px; }
.hero__arrow--next { right: 22px; }
.hero__inner { position: relative; z-index: 2; padding: 120px 0 130px; max-width: 720px; }
.hero .eyebrow { display: inline-flex; align-items: center; gap: 10px; background: rgba(255,255,255,.14);
    border: 1px solid rgba(255,255,255,.25); padding: 7px 18px; border-radius: 50px; font-family: var(--ff-head);
    font-weight: 600; font-size: .8rem; letter-spacing: .5px; text-transform: uppercase; margin-bottom: 22px; }
.hero .eyebrow::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 4px rgba(227,30,36,.35); }
.hero h1 { color: #fff; font-size: clamp(2.2rem, 5.2vw, 3.9rem); font-weight: 800; letter-spacing: -.5px; margin-bottom: 18px; }
.hero h1 .accent { color: #ffd2d3; }
.hero p { font-size: 1.12rem; color: #f0eaea; max-width: 560px; margin-bottom: 32px; }
.hero__btns { display: flex; gap: 16px; flex-wrap: wrap; }
.hero__dots { position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%); z-index: 3; display: flex; gap: 10px; }
.hero__dots button { width: 11px; height: 11px; border-radius: 50%; border: 0; background: rgba(255,255,255,.45); cursor: pointer; transition: .3s; }
.hero__dots button.active { background: #fff; width: 30px; border-radius: 6px; }

/* ---------- Section heading ---------- */
.sec { padding: 86px 0; }
.sec--alt { background: var(--bg-alt); }
.sec-head { max-width: 680px; margin: 0 auto 54px; text-align: center; }
.sec-head.left { margin-inline: 0; text-align: left; }
.sec-head .kicker { font-family: var(--ff-head); font-weight: 700; color: var(--red); text-transform: uppercase; letter-spacing: 2px; font-size: .82rem; display: inline-block; margin-bottom: 12px; }
.sec-head h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); font-weight: 700; margin-bottom: 14px; }
.sec-head p { color: var(--muted); font-size: 1.04rem; }
.sec-head h2 .u { position: relative; color: var(--red); }

/* ---------- Intro / about split ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split__media { position: relative; }
.split__media img { border-radius: var(--radius); box-shadow: var(--shadow-lg); width: 100%; height: 460px; object-fit: cover; }
.split__media .badge { position: absolute; right: -18px; bottom: -22px; background: var(--red); color: #fff; padding: 22px 26px; border-radius: var(--radius); box-shadow: var(--shadow-red); }
.split__media .badge b { font-family: var(--ff-head); font-size: 2rem; display: block; line-height: 1; }
.split__media .badge span { font-size: .82rem; opacity: .9; }
.split__media .stack-img { position: absolute; width: 180px; height: 180px; right: -26px; top: -26px; border: 8px solid #fff; border-radius: var(--radius); object-fit: cover; box-shadow: var(--shadow); }
.split__body h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); margin-bottom: 18px; }
.split__body p { color: var(--muted); margin-bottom: 16px; }
.feature-list { list-style: none; margin: 22px 0 30px; display: grid; gap: 14px; }
.feature-list li { display: flex; gap: 12px; align-items: flex-start; font-weight: 500; color: var(--ink); }
.feature-list li::before { content: "✓"; flex: 0 0 26px; height: 26px; width: 26px; display: grid; place-items: center; background: var(--red-soft); color: var(--red); border-radius: 50%; font-weight: 700; font-size: .85rem; margin-top: 2px; }

/* ---------- Program cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.pcard { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line);
    transition: transform .35s var(--ease), box-shadow .35s var(--ease); display: flex; flex-direction: column; }
.pcard:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.pcard__img { position: relative; aspect-ratio: 16/10; overflow: hidden; }
.pcard__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.pcard:hover .pcard__img img { transform: scale(1.08); }
.pcard__ico { position: absolute; left: 16px; bottom: -22px; width: 52px; height: 52px; border-radius: 14px; background: var(--red);
    display: grid; place-items: center; box-shadow: var(--shadow-red); color: #fff; }
.pcard__ico svg { width: 26px; height: 26px; }
.pcard__body { padding: 34px 24px 26px; flex: 1; display: flex; flex-direction: column; }
.pcard__body h3 { font-size: 1.2rem; margin-bottom: 10px; }
.pcard__body p { color: var(--muted); font-size: .96rem; flex: 1; }
.pcard__link { margin-top: 16px; font-family: var(--ff-head); font-weight: 600; color: var(--red); font-size: .92rem; display: inline-flex; align-items: center; gap: 6px; }
.pcard__link span { transition: transform .25s; }
.pcard:hover .pcard__link span { transform: translateX(5px); }

/* ---------- Stats ---------- */
.stats { background: var(--bg-dark); color: #fff; }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding: 64px 0; }
.stat { text-align: center; padding: 10px; }
.stat b { font-family: var(--ff-head); font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; color: #fff; display: block; }
.stat b .plus { color: var(--red); }
.stat span { color: #b9b9b9; font-weight: 500; letter-spacing: .5px; }
.stat + .stat { position: relative; }
.stats__grid .stat:not(:last-child)::after { content: ""; position: absolute; right: -12px; top: 20%; height: 60%; width: 1px; background: rgba(255,255,255,.12); }

/* ---------- Steps / approach ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.step { text-align: center; padding: 36px 26px; background: #fff; border-radius: var(--radius); border: 1px solid var(--line); transition: .3s var(--ease); }
.step:hover { border-color: var(--red); transform: translateY(-6px); box-shadow: var(--shadow); }
.step .num { width: 58px; height: 58px; margin: 0 auto 18px; border-radius: 50%; background: var(--red-soft); color: var(--red); font-family: var(--ff-head); font-weight: 800; font-size: 1.4rem; display: grid; place-items: center; }
.step h3 { font-size: 1.15rem; margin-bottom: 10px; }
.step p { color: var(--muted); font-size: .95rem; }

/* ---------- Gallery ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.gitem { position: relative; overflow: hidden; border-radius: var(--radius-sm); cursor: pointer; aspect-ratio: 4/3; background: var(--bg-alt); }
.gitem img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.gitem::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 45%, rgba(227,30,36,.55)); opacity: 0; transition: opacity .35s; }
.gitem:hover img { transform: scale(1.1); }
.gitem:hover::after { opacity: 1; }
.gitem .zoom { position: absolute; inset: 0; margin: auto; width: 48px; height: 48px; border-radius: 50%; background: #fff; color: var(--red);
    display: grid; place-items: center; font-size: 1.3rem; opacity: 0; transform: scale(.6); transition: .35s var(--ease); z-index: 2; }
.gitem:hover .zoom { opacity: 1; transform: scale(1); }

/* Filter chips */
.filters { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-bottom: 36px; }
.chip { font-family: var(--ff-head); font-weight: 500; font-size: .9rem; padding: 9px 20px; border-radius: 50px; border: 1.5px solid var(--line); background: #fff; cursor: pointer; transition: .25s; }
.chip:hover { border-color: var(--red); color: var(--red); }
.chip.active { background: var(--red); border-color: var(--red); color: #fff; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 2000; background: rgba(10,10,10,.92); display: none; align-items: center; justify-content: center; padding: 30px; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 90vw; max-height: 84vh; border-radius: 10px; box-shadow: var(--shadow-lg); }
.lightbox__close, .lightbox__nav { position: absolute; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.3); color: #fff;
    width: 52px; height: 52px; border-radius: 50%; font-size: 1.5rem; cursor: pointer; display: grid; place-items: center; transition: .25s; }
.lightbox__close:hover, .lightbox__nav:hover { background: var(--red); border-color: var(--red); }
.lightbox__close { top: 24px; right: 24px; }
.lightbox__nav.prev { left: 24px; top: 50%; transform: translateY(-50%); }
.lightbox__nav.next { right: 24px; top: 50%; transform: translateY(-50%); }

/* ---------- Media / press ---------- */
.media-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.mcard { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); transition: .3s var(--ease); }
.mcard:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.mcard__img { aspect-ratio: 4/3; overflow: hidden; background: var(--bg-alt); cursor: pointer; }
.mcard__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.mcard:hover .mcard__img img { transform: scale(1.05); }
.mcard__body { padding: 20px 22px 24px; }
.mcard__date { font-family: var(--ff-head); font-weight: 600; font-size: .76rem; color: var(--red); text-transform: uppercase; letter-spacing: 1px; }
.mcard__body h3 { font-size: 1.05rem; margin-top: 8px; line-height: 1.4; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { background: var(--bg-dark); color: #fff; position: relative; overflow: hidden; }
/* image layer — its url is set inline on the element so the path resolves relative to the page */
.page-hero__bg { position: absolute; inset: 0; z-index: 0; background-size: cover; background-position: center; }
/* dark gradient overlay keeps the centered white title readable while the photo stays visible */
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: 1;
    background: linear-gradient(rgba(18,18,18,.5) 0%, rgba(18,18,18,.66) 55%, rgba(18,18,18,.8) 100%); }
.page-hero::after { content: ""; position: absolute; right: -80px; top: -80px; width: 300px; height: 300px; border-radius: 50%; background: radial-gradient(circle, rgba(227,30,36,.5), transparent 70%); z-index: 1; }
.page-hero__inner { position: relative; z-index: 2; padding: 86px 0 70px; text-align: center; }
.page-hero h1 { color: #fff; font-size: clamp(2rem, 4.4vw, 3rem); margin-bottom: 12px; }
.page-hero .crumbs { color: #cfcfcf; font-size: .92rem; }
.page-hero .crumbs a:hover { color: var(--red); }
.page-hero .crumbs .sep { margin: 0 8px; opacity: .5; }

/* ---------- Values / mission cards ---------- */
.vgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.vcard { padding: 34px 28px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); transition: .3s var(--ease); }
.vcard:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.vcard .vico { width: 56px; height: 56px; border-radius: 14px; background: var(--red-soft); color: var(--red); display: grid; place-items: center; margin-bottom: 18px; }
.vcard .vico svg { width: 28px; height: 28px; }
.vcard h3 { font-size: 1.2rem; margin-bottom: 10px; }
.vcard p { color: var(--muted); font-size: .96rem; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 44px; align-items: start; }
.contact-info { display: grid; gap: 18px; }
.cinfo { display: flex; gap: 16px; padding: 22px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); transition: .3s; }
.cinfo:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.cinfo .cico { flex: 0 0 50px; height: 50px; border-radius: 12px; background: var(--red); color: #fff; display: grid; place-items: center; }
.cinfo .cico svg { width: 24px; height: 24px; }
.cinfo h4 { font-size: 1rem; margin-bottom: 3px; }
.cinfo p, .cinfo a { color: var(--muted); font-size: .95rem; word-break: break-word; }
.cinfo a:hover { color: var(--red); }

.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 36px; box-shadow: var(--shadow); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-family: var(--ff-head); font-weight: 500; font-size: .9rem; margin-bottom: 7px; }
.field input, .field textarea, .field select {
    width: 100%; padding: 13px 16px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); font-family: var(--ff-body); font-size: .96rem; transition: .25s; background: #fff; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 4px var(--red-soft); }
.field textarea { resize: vertical; min-height: 130px; }
.form-note { font-size: .85rem; color: var(--muted); margin-top: 8px; }
.form-alert { padding: 14px 18px; border-radius: var(--radius-sm); font-size: .94rem; margin-bottom: 20px; }
.form-alert.ok { background: #e8f7ec; color: #1f7a3d; border: 1px solid #bce5c7; }
.form-alert.err { background: var(--red-soft); color: var(--red-dark); border: 1px solid #f3c4c5; }

.map-wrap { margin-top: 56px; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); }
.map-wrap iframe { width: 100%; height: 380px; border: 0; display: block; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--red); color: #fff; }
.cta-band__inner { display: flex; align-items: center; justify-content: space-between; gap: 28px; padding: 52px 0; flex-wrap: wrap; }
.cta-band h2 { color: #fff; font-size: clamp(1.5rem, 3vw, 2.1rem); margin-bottom: 6px; }
.cta-band p { color: #ffe2e2; }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg-dark); color: #c9c9c9; }
.site-footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.4fr; gap: 40px; padding: 70px 0 50px; }
.foot-logo { background: #fff; padding: 10px 14px; border-radius: 10px; height: 56px; width: auto; margin-bottom: 18px; }
.foot-col--about p { font-size: .95rem; max-width: 320px; }
.foot-col h4 { color: #fff; font-size: 1.05rem; margin-bottom: 18px; position: relative; padding-bottom: 10px; }
.foot-col h4::after { content: ""; position: absolute; left: 0; bottom: 0; width: 34px; height: 3px; background: var(--red); border-radius: 3px; }
.foot-col ul { list-style: none; display: grid; gap: 11px; }
.foot-col ul a { font-size: .94rem; transition: .2s; }
.foot-col ul a:hover { color: #fff; }
/* chevron icons on the link lists */
.foot-links a { display: inline-flex; align-items: center; gap: 9px; }
.foot-links a::before {
    content: ""; flex: 0 0 auto; width: 6px; height: 6px;
    border-right: 2px solid var(--red); border-top: 2px solid var(--red);
    transform: rotate(45deg); transition: transform .25s var(--ease), border-color .25s;
}
.foot-links a:hover::before { transform: rotate(45deg) translate(2px, -2px); border-color: #fff; }
.foot-contact li { display: flex; gap: 10px; font-size: .92rem; align-items: flex-start; }
.foot-contact .ico { margin-top: 3px; color: var(--red); }
.socials { display: flex; gap: 10px; margin-top: 22px; }
.soc { width: 40px; height: 40px; border-radius: 10px; background: rgba(255,255,255,.08); display: grid; place-items: center; font-size: 1rem; color: rgba(255,255,255,.75); transition: background .25s, color .25s, transform .25s; }
.soc:hover { color: #fff; transform: translateY(-3px); }
.soc--fb:hover { background: #1877f2; }
.soc--ig:hover { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285aeb 90%); }
.soc--wa:hover { background: #25d366; }
.soc--em:hover { background: var(--red); }
.site-footer__bottom { border-top: 1px solid rgba(255,255,255,.08); }
.site-footer__bottom .container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding-block: 22px; font-size: .86rem; }
.heart-red { color: var(--red); }
.dev-credit a { color: #e9e9e9; font-weight: 600; transition: color .2s; }
.dev-credit a:hover { color: var(--red); }

/* ---------- Floating WhatsApp ---------- */
.wa-float { position: fixed; right: 22px; bottom: 22px; width: 58px; height: 58px; border-radius: 50%;
    display: grid; place-items: center; box-shadow: 0 10px 24px rgba(37,211,102,.45); z-index: 95;
    transition: transform .3s var(--ease); }
.wa-float svg { width: 58px; height: 58px; position: relative; z-index: 2; }
.wa-float:hover { transform: scale(1.08); }
.wa-float__ring { position: absolute; inset: 0; border-radius: 50%; background: #25D366; opacity: .55;
    z-index: 1; animation: wa-pulse 2.2s ease-out infinite; }
@keyframes wa-pulse { 0% { transform: scale(1); opacity: .5; } 70%, 100% { transform: scale(1.7); opacity: 0; } }

/* ---------- Back to top ---------- */
.to-top { position: fixed; right: 26px; bottom: 92px; width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--red);
    color: #fff; font-size: 1.3rem; cursor: pointer; box-shadow: var(--shadow-red); opacity: 0; pointer-events: none; transform: translateY(15px);
    transition: .35s var(--ease); z-index: 94; }
.to-top.show { opacity: 1; pointer-events: auto; transform: translateY(0); }
.to-top:hover { background: var(--red-dark); }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }
.reveal.d4 { transition-delay: .32s; }

/* ---------- Press & Coverage Carousel ---------- */
.press-sec { overflow: hidden; }
.pc-wrap { position: relative; padding: 0 54px; }
.pc-viewport { overflow: hidden; border-radius: var(--radius); }
.pc-track {
    display: flex;
    gap: 20px;
    transition: transform .52s cubic-bezier(.22,.61,.36,1);
    will-change: transform;
}
.pc-slide { flex: 0 0 calc((100% - 40px) / 3); }  /* 3 per view, 2 gaps of 20px */
.pc-card {
    position: relative; overflow: hidden; border-radius: var(--radius);
    cursor: pointer; aspect-ratio: 4/3;
    box-shadow: var(--shadow);
    border: 3px solid transparent;
    transition: border-color .25s, box-shadow .25s, transform .3s;
}
.pc-card:hover { border-color: var(--red); box-shadow: var(--shadow-red); transform: translateY(-4px); }
.pc-card__img { width: 100%; height: 100%; }
.pc-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .55s; }
.pc-card:hover .pc-card__img img { transform: scale(1.06); }
.pc-card::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(transparent 50%, rgba(0,0,0,.52));
    opacity: 0; transition: opacity .3s;
}
.pc-card:hover::after { opacity: 1; }
.pc-zoom {
    position: absolute; bottom: 14px; right: 14px; z-index: 2;
    width: 36px; height: 36px; border-radius: 50%; background: #fff;
    display: grid; place-items: center; color: var(--red); font-size: .85rem;
    opacity: 0; transform: scale(.7); transition: .3s var(--ease);
    box-shadow: var(--shadow);
}
.pc-card:hover .pc-zoom { opacity: 1; transform: scale(1); }
.pc-arrow {
    position: absolute; top: 50%; transform: translateY(-50%); z-index: 4;
    width: 44px; height: 44px; border-radius: 50%;
    background: #fff; border: 2px solid var(--line); color: var(--black);
    font-size: 1.6rem; line-height: 1; display: grid; place-items: center;
    cursor: pointer; transition: .25s; box-shadow: var(--shadow);
}
.pc-arrow:hover { background: var(--red); color: #fff; border-color: var(--red); transform: translateY(-50%) scale(1.08); }
.pc-arrow--prev { left: 0; }
.pc-arrow--next { right: 0; }
.pc-arrow:disabled { opacity: .3; cursor: default; pointer-events: none; }
.pc-dots {
    display: flex; gap: 8px; justify-content: center; margin-top: 28px; flex-wrap: wrap;
}
.pc-dots button {
    width: 10px; height: 10px; border-radius: 50%; border: 0;
    background: var(--line); cursor: pointer; transition: .3s;
}
.pc-dots button.active { background: var(--red); width: 28px; border-radius: 5px; }

@media (max-width: 992px) {
    .pc-slide { flex: 0 0 calc((100% - 20px) / 2); }  /* 2 per view */
    .pc-wrap { padding: 0 48px; }
}
@media (max-width: 560px) {
    .pc-slide { flex: 0 0 100%; }  /* 1 per view */
    .pc-wrap { padding: 0 42px; }
    .pc-arrow { width: 36px; height: 36px; font-size: 1.3rem; }
}

/* ---------- Responsive ---------- */
@media (max-width: 992px) {
    .split { grid-template-columns: 1fr; gap: 40px; }
    .split__media .stack-img { display: none; }
    .split__media .badge { right: 14px; }
    .cards, .media-grid, .vgrid, .steps { grid-template-columns: repeat(2, 1fr); }
    .stats__grid { grid-template-columns: repeat(2, 1fr); }
    .stats__grid .stat::after { display: none; }
    .contact-grid { grid-template-columns: 1fr; }
    .site-footer__grid { grid-template-columns: 1fr 1fr; }
    .site-header__inner { min-height: 68px; }
    .brand img { height: 40px; }
    .sec { padding: 72px 0; }
}

@media (max-width: 768px) {
    .nav-toggle { display: block; z-index: 120; }
    .main-nav { position: fixed; inset: 0 0 0 auto; width: min(82%, 340px); background: #fff; flex-direction: column;
        align-items: stretch; padding: 100px 26px 40px; gap: 8px; transform: translateX(105%); transition: transform .4s var(--ease);
        box-shadow: var(--shadow-lg); z-index: 110; }
    .main-nav.open { transform: translateX(0); }
    .main-nav ul { flex-direction: column; gap: 4px; }
    .main-nav ul a { padding: 12px 14px; border-radius: 10px; display: block; }
    .main-nav ul a::after { display: none; }
    .main-nav ul a.active, .main-nav ul a:hover { background: var(--red-soft); }
    .nav-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,.4); opacity: 0; pointer-events: none; transition: .3s; z-index: 99; }
    .nav-backdrop.show { opacity: 1; pointer-events: auto; }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .form-row { grid-template-columns: 1fr; }
    .form-card { padding: 24px 20px; }
    .sec { padding: 56px 0; }
    .hero__inner { padding: 80px 0 90px; max-width: 100%; }
    .hero p { font-size: 1rem; }
    .topbar__loc { display: none; }
    .topbar__contacts a:last-child { display: none; }
    .page-hero__inner { padding: 60px 0 48px; }
    .page-hero h1 { font-size: clamp(1.7rem, 5vw, 2.4rem); }
    .sec-head { margin-bottom: 40px; }
    .cta-band__inner { padding: 40px 0; }
    .cta-band h2 { font-size: 1.5rem; }
    .split__media img { height: 320px; }
    .contact-info { gap: 14px; }
    .cinfo { padding: 16px; }
    .map-wrap iframe { height: 280px; }
}

@media (max-width: 560px) {
    .cards, .media-grid, .vgrid, .steps, .site-footer__grid { grid-template-columns: 1fr; }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .stats__grid { grid-template-columns: 1fr 1fr; }
    .split__media img { height: 240px; }
    .split__media .badge { right: 10px; bottom: -14px; padding: 14px 16px; }
    .split__media .badge b { font-size: 1.4rem; }
    .topbar__contacts { gap: 14px; font-size: .74rem; }
    .cta-band__inner { flex-direction: column; text-align: center; align-items: center; }
    .hero__arrow { width: 38px; height: 38px; font-size: 1.4rem; }
    .hero__arrow--prev { left: 8px; }
    .hero__arrow--next { right: 8px; }
    .hero__inner { padding: 60px 0 72px; }
    .hero__btns { flex-direction: column; align-items: stretch; gap: 12px; }
    .hero__btns .btn { width: 100%; justify-content: center; }
    .sec { padding: 46px 0; }
    .sec-head { margin-bottom: 30px; }
    .sec-head h2 { font-size: 1.6rem; }
    .page-hero__inner { padding: 46px 0 36px; }
    .page-hero h1 { font-size: 1.55rem; }
    .btn { padding: 11px 22px; font-size: .9rem; }
    .stats__grid { padding: 44px 0; }
    .step { padding: 26px 18px; }
    .foot-col--about p { max-width: 100%; }
    .form-card { padding: 20px 16px; }
    .filters { gap: 8px; }
    .chip { font-size: .82rem; padding: 7px 14px; }
    .pc-wrap { padding: 0 36px; }
    .pc-arrow { width: 32px; height: 32px; font-size: 1.2rem; }
    .to-top { bottom: 88px; right: 16px; width: 42px; height: 42px; font-size: 1.1rem; }
    .wa-float { right: 14px; bottom: 18px; width: 52px; height: 52px; }
    .wa-float svg { width: 52px; height: 52px; }
    .lightbox img { max-width: 95vw; max-height: 80vh; }
    .lightbox__nav { width: 40px; height: 40px; font-size: 1.2rem; }
    .lightbox__nav.prev { left: 8px; }
    .lightbox__nav.next { right: 8px; }
}

@media (max-width: 400px) {
    .topbar { display: none; }   /* hide entire topbar on very small phones */
    .container { padding-inline: 14px; }
    .hero__inner { padding: 50px 0 60px; }
    .cards, .vgrid { gap: 16px; }
    .site-footer__grid { gap: 28px; }
    .socials { flex-wrap: wrap; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
    .reveal { opacity: 1; transform: none; }
}
