/* Flexi LMS — public site. Colours, fonts, sizes and alignment come from CSS variables
   printed by includes/theme.php from Admin → Appearance. Fallbacks below match the defaults. */
:root {
    --c-primary: #C4A13F;
    --c-primary-rgb: 196, 161, 63;
    --c-primary-dark: #9C7B26;
    --c-button-text: #111;
    --c-dark: #0E0E0E;
    --c-dark-soft: #1A1A1A;
    --c-text: #1C1C1C;
    --c-muted: #55524B;
    --c-body-bg: #fff;
    --c-surface: #F7F4EC;
    --c-header-bg: #fff;
    --c-header-text: #141414;
    --c-topbar-bg: #0E0E0E;
    --c-topbar-text: #E8DFC7;
    --c-footer-bg: #0E0E0E;
    --c-footer-text: #D8D1BF;
    --c-line: rgba(0, 0, 0, .09);
    --c-line-light: rgba(255, 255, 255, .12);
    --overlay: rgba(11, 11, 11, .72);
    --overlay-strong: rgba(11, 11, 11, .92);
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --fs-base: 16px;
    --fs-h1: 58px;
    --fs-h2: 40px;
    --fs-h3: 21px;
    --fs-nav: 15px;
    --lh: 1.75;
    --fw-heading: 700;
    --logo-h: 58px;
    --align-body: justify;
    --radius: 14px;
    --radius-sm: 8px;
    --shadow-sm: 0 4px 18px rgba(0, 0, 0, .06);
    --shadow: 0 18px 50px rgba(0, 0, 0, .12);
    --shadow-lg: 0 30px 80px rgba(0, 0, 0, .28);
    --gutter: 24px;
    --header-h: 86px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--c-body-bg); color: var(--c-text); font-family: var(--font-body); font-size: var(--fs-base); line-height: var(--lh); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
h1, h2, h3, h4 { margin: 0 0 .5em; font-family: var(--font-heading); font-weight: var(--fw-heading); line-height: 1.15; letter-spacing: -.02em; color: inherit; }
h3 { font-size: var(--fs-h3); line-height: 1.3; letter-spacing: -.01em; }
p { margin: 0 0 1.1em; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--c-primary-dark); text-decoration: none; transition: color .2s; }
a:hover { color: var(--c-primary); }
ul, ol { margin: 0; padding: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--c-primary); color: var(--c-dark); }
:focus-visible { outline: 3px solid rgba(var(--c-primary-rgb), .7); outline-offset: 3px; }
.container { width: 100%; max-width: 1220px; margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 860px; margin-left: auto; margin-right: auto; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; padding: 10px 16px; background: var(--c-primary); color: var(--c-dark); font-weight: 700; border-radius: 6px; }
.skip-link:focus { top: 12px; }

/* Body copy: justified by default (Admin → Appearance → Alignment); centred blocks stay centred.
   Very narrow card captions (audiences, steps) stay left-aligned to avoid wide gaps between words. */
.prose p, .prose li { text-align: var(--align-body); hyphens: auto; -webkit-hyphens: auto; color: var(--c-muted); }
.prose-lead p { font-size: 1.1em; }
.align-left p, .align-left .eyebrow, .align-left h2, .align-left h1 { text-align: left; }
.align-center, .align-center p, .align-center h1, .align-center h2 { text-align: center; }
.align-right, .align-right p, .align-right h1, .align-right h2 { text-align: right; }
.align-justify p { text-align: justify; }

.eyebrow { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 14px; color: var(--c-primary-dark); font-size: 12px; font-weight: 700; letter-spacing: .18em; line-height: 1.4; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--c-primary); flex: none; }
.eyebrow-light { color: var(--c-primary); }

/* ---------- Buttons ---------- */
.button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 26px; border: 2px solid transparent; border-radius: var(--radius-sm); font-family: var(--font-body); font-size: 15px; font-weight: 600; line-height: 1.2; text-align: center; cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s; }
.button:hover { transform: translateY(-2px); }
.button i { font-size: 1.05em; transition: transform .2s; }
.button:hover .fa-arrow-right { transform: translateX(3px); }
.button-primary { background: var(--c-primary); border-color: var(--c-primary); color: var(--c-button-text); box-shadow: 0 10px 24px rgba(var(--c-primary-rgb), .3); }
.button-primary:hover { background: var(--c-primary-dark); border-color: var(--c-primary-dark); color: #fff; }
.button-ghost { border-color: rgba(255, 255, 255, .55); color: #fff; background: rgba(255, 255, 255, .06); backdrop-filter: blur(4px); }
.button-ghost:hover { border-color: var(--c-primary); color: var(--c-primary); }
.button-outline { border-color: var(--c-primary); color: var(--c-text); background: transparent; }
.button-outline:hover { background: var(--c-primary); color: var(--c-button-text); }
.button-whatsapp { background: #25D366; border-color: #25D366; color: #fff; }
.button-whatsapp:hover { background: #1DA851; border-color: #1DA851; color: #fff; }
.button-icon { width: 52px; padding: 0; flex: none; }
.button-icon i { font-size: 22px; }
.button-row { display: flex; flex-wrap: wrap; gap: 14px; }
.text-link { display: inline-flex; align-items: center; gap: 8px; color: var(--c-primary-dark); font-weight: 700; font-size: 15px; }
.text-link i { transition: transform .2s; }
.text-link:hover i { transform: translateX(4px); }
.center-action { margin-top: 48px; text-align: center; }

.icon-badge { display: inline-grid; width: 54px; height: 54px; flex: none; place-items: center; border-radius: 14px; background: rgba(var(--c-primary-rgb), .14); color: var(--c-primary-dark); font-size: 22px; }
.icon-badge-whatsapp { background: rgba(37, 211, 102, .14); color: #1DA851; }

/* ---------- Top bar & header ---------- */
.topbar { background: var(--c-topbar-bg); color: var(--c-topbar-text); font-size: 13px; }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 42px; }
.topbar-text { margin: 0; opacity: .85; }
.topbar-links { display: flex; flex-wrap: wrap; gap: 22px; list-style: none; }
.topbar-links a { display: inline-flex; align-items: center; gap: 7px; color: var(--c-topbar-text); }
.topbar-links a:hover { color: var(--c-primary); }
.topbar-links i { color: var(--c-primary); }

.site-header { position: relative; z-index: 50; background: var(--c-header-bg); color: var(--c-header-text); border-bottom: 1px solid var(--c-line); transition: box-shadow .25s; }
.has-sticky-header .site-header { position: sticky; top: 0; }
.site-header.is-scrolled { box-shadow: 0 8px 30px rgba(0, 0, 0, .08); }
.site-nav { display: flex; align-items: center; gap: 28px; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 12px; color: inherit; flex: none; }
.brand:hover { color: inherit; }
.brand-logo { width: auto; height: var(--logo-h); object-fit: contain; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-family: var(--font-heading); font-size: 21px; font-weight: 800; letter-spacing: -.01em; }
.brand-tagline { max-width: 190px; color: var(--c-primary-dark); font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.nav-panel { display: flex; flex: 1; align-items: center; justify-content: flex-end; gap: 26px; }
.nav-align-center .nav-panel { justify-content: space-between; }
.nav-align-center .nav-list { flex: 1; justify-content: center; }
.nav-align-left .nav-panel { justify-content: space-between; }
.nav-list { display: flex; align-items: center; gap: 4px; list-style: none; }
.nav-item { position: relative; }
.nav-link { position: relative; display: inline-flex; align-items: center; gap: 6px; padding: 10px 14px; color: var(--c-header-text); font-size: var(--fs-nav); font-weight: 500; border-radius: 6px; }
.nav-link::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px; background: var(--c-primary); transform: scaleX(0); transform-origin: left; transition: transform .25s; }
.nav-link:hover, .nav-link.is-active { color: var(--c-primary-dark); }
.nav-link:hover::after, .nav-link.is-active::after { transform: scaleX(1); }
.submenu-toggle { display: none; }
.submenu { position: absolute; top: 100%; left: 0; min-width: 230px; padding: 10px; list-style: none; background: var(--c-header-bg); border: 1px solid var(--c-line); border-radius: 12px; box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(8px); transition: .2s; }
.has-children:hover .submenu, .has-children:focus-within .submenu { opacity: 1; visibility: visible; transform: none; }
.submenu a { display: block; padding: 9px 12px; color: var(--c-header-text); font-size: calc(var(--fs-nav) - 1px); border-radius: 8px; }
.submenu a:hover, .submenu a.is-active { background: rgba(var(--c-primary-rgb), .12); color: var(--c-primary-dark); }
.nav-cta { min-height: 46px; padding: 0 20px; font-size: 14px; }
.nav-toggle { display: none; margin-left: auto; width: 46px; height: 46px; padding: 12px 10px; border: 1px solid var(--c-line); border-radius: 10px; background: transparent; cursor: pointer; }
.nav-toggle span { display: block; height: 2px; margin: 4px 0; background: var(--c-header-text); border-radius: 2px; transition: .25s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Home slider ---------- */
.hero-slider { position: relative; overflow: hidden; background: var(--c-dark); color: #fff; }
.hero-slides { position: relative; min-height: clamp(600px, 86vh, 780px); }
.hero-slide { position: absolute; inset: 0; display: flex; align-items: center; opacity: 0; visibility: hidden; transition: opacity .9s ease, visibility .9s; }
.hero-slide.is-active { opacity: 1; visibility: visible; z-index: 1; }
.hero-slide-media { position: absolute; inset: 0; }
.hero-slide-media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: transform 7s ease-out; }
.hero-slide.is-active .hero-slide-media img { transform: scale(1); }
.hero-slide-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(95deg, var(--overlay-strong) 0%, var(--overlay) 52%, rgba(0, 0, 0, .35) 100%); }
.hero-slide-inner { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr); align-items: center; gap: 56px; padding-top: 70px; padding-bottom: 130px; }
.hero-slide-inner.has-screen { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); }
.hero-copy { max-width: 680px; }
.hero-title { margin: 0 0 22px; color: #fff; font-size: clamp(36px, 5.2vw, var(--fs-h1)); line-height: 1.06; letter-spacing: -.03em; }
.hero-lead { max-width: 600px; margin: 0 0 34px; color: rgba(255, 255, 255, .85); font-size: clamp(16px, 1.5vw, 19px); line-height: 1.7; }
.hero-slide .eyebrow, .hero-slide .hero-title, .hero-slide .hero-lead, .hero-slide .button-row { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.hero-slide.is-active .eyebrow, .hero-slide.is-active .hero-title, .hero-slide.is-active .hero-lead, .hero-slide.is-active .button-row { opacity: 1; transform: none; }
.hero-slide.is-active .hero-title { transition-delay: .15s; }
.hero-slide.is-active .hero-lead { transition-delay: .3s; }
.hero-slide.is-active .button-row { transition-delay: .45s; }
.hero-screen { margin: 0; transform: perspective(1600px) rotateY(-9deg) rotateX(3deg) translateX(30px); opacity: 0; transition: transform 1s ease .3s, opacity 1s ease .3s; }
.hero-slide.is-active .hero-screen { opacity: 1; transform: perspective(1600px) rotateY(-9deg) rotateX(3deg); }
.hero-align-center .hero-slide-inner, .hero-slide.align-center .hero-slide-inner { grid-template-columns: minmax(0, 1fr); text-align: center; }
.hero-align-center .hero-copy, .hero-slide.align-center .hero-copy { margin: 0 auto; }
.hero-align-center .hero-lead, .hero-slide.align-center .hero-lead { margin-left: auto; margin-right: auto; }
.hero-align-center .button-row, .hero-slide.align-center .button-row { justify-content: center; }
.hero-align-center .hero-screen, .hero-slide.align-center .hero-screen { display: none; }
.hero-align-right .hero-copy, .hero-slide.align-right .hero-copy { margin-left: auto; text-align: right; }
.hero-align-right .button-row, .hero-slide.align-right .button-row { justify-content: flex-end; }
.slider-controls { position: absolute; left: 50%; bottom: 96px; z-index: 3; display: flex; align-items: center; gap: 18px; width: 100%; max-width: 1220px; padding: 0 var(--gutter); transform: translateX(-50%); }
.hero-align-center .slider-controls { justify-content: center; }
.slider-arrow { display: grid; width: 46px; height: 46px; place-items: center; border: 1px solid rgba(255, 255, 255, .35); border-radius: 50%; background: rgba(0, 0, 0, .25); color: #fff; font-size: 22px; cursor: pointer; transition: .2s; }
.slider-arrow:hover { border-color: var(--c-primary); background: var(--c-primary); color: var(--c-dark); }
.slider-dots { display: flex; gap: 10px; }
.slider-dot { width: 12px; height: 12px; padding: 0; border: 2px solid rgba(255, 255, 255, .7); border-radius: 20px; background: transparent; cursor: pointer; transition: width .3s, background .3s, border-color .3s; }
.slider-dot.is-active { width: 38px; border-color: var(--c-primary); background: var(--c-primary); }
.slider-progress { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; height: 4px; background: rgba(255, 255, 255, .12); }
.slider-progress span { display: block; width: 0; height: 100%; background: var(--c-primary); }

/* Product screenshots in a browser frame */
.device-frame { overflow: hidden; border: 1px solid rgba(255, 255, 255, .14); border-radius: 14px; background: #121212; box-shadow: var(--shadow-lg); }
.device-bar { display: flex; align-items: center; gap: 7px; height: 34px; padding: 0 14px; background: #1d1d1d; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.device-bar i { width: 10px; height: 10px; border-radius: 50%; background: #ff5f57; }
.device-bar i:nth-child(2) { background: #febc2e; }
.device-bar i:nth-child(3) { background: #28c840; }
.device-bar em { margin-left: 12px; color: rgba(255, 255, 255, .55); font-size: 12px; font-style: normal; }
.device-frame img { width: 100%; }

/* ---------- Highlights strip ---------- */
.highlights { position: relative; z-index: 5; margin-top: -72px; }
.highlight-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.highlight-card { display: flex; gap: 16px; padding: 24px 22px; background: #fff; border: 1px solid var(--c-line); border-bottom: 3px solid var(--c-primary); border-radius: var(--radius); box-shadow: var(--shadow); color: var(--c-text); transition: transform .25s, box-shadow .25s; }
.highlight-card:hover { color: var(--c-text); transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.highlight-card .icon-badge { width: 48px; height: 48px; font-size: 20px; }
.highlight-text { display: flex; flex-direction: column; gap: 4px; }
.highlight-text strong { font-family: var(--font-heading); font-size: 17px; line-height: 1.3; }
.highlight-text span { color: var(--c-muted); font-size: 14px; line-height: 1.55; text-align: left; }

/* ---------- Sections ---------- */
.section { padding: 100px 0; }
.section-intro { padding-top: 96px; }
.page-home .section-intro { padding-top: 90px; }
.section-tight-top { padding-top: 20px; }
.section-surface { background: var(--c-surface); }
.section-dark { background: var(--c-dark); color: #f3efe4; }
.section-dark .section-title, .section-dark h3 { color: #fff; }
.section-dark .section-lead, .section-dark p { color: rgba(255, 255, 255, .72); }
.section-dark .eyebrow { color: var(--c-primary); }
.section-heading { max-width: 780px; margin: 0 auto 56px; text-align: center; }
.section-heading .eyebrow { justify-content: center; }
.section-title { font-size: clamp(30px, 3.6vw, var(--fs-h2)); color: var(--c-text); }
.section-lead { margin: 0; color: var(--c-muted); font-size: 1.08em; }
.heading-align-left .section-heading { margin-left: 0; text-align: left; }
.heading-align-left .section-heading .eyebrow { justify-content: flex-start; }
.heading-align-right .section-heading { margin-right: 0; text-align: right; }
.heading-align-right .section-heading .eyebrow { justify-content: flex-end; }
.heading-align-justify .section-heading .section-lead { text-align: justify; }

.intro-block { max-width: 860px; margin: 0 auto 64px; text-align: center; }
.intro-block .eyebrow { justify-content: center; }
.intro-block .prose p { text-align: center; hyphens: manual; -webkit-hyphens: manual; }
.section-intro + .section-stories { padding-top: 40px; }
.empty-state { color: var(--c-muted); text-align: center; }

.stats-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 10px; border: 1px solid var(--c-line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-sm); }
.stat { padding: 30px 24px; text-align: center; }
.stat + .stat { border-left: 1px solid var(--c-line); }
.stat strong { display: block; margin-bottom: 4px; color: var(--c-primary-dark); font-family: var(--font-heading); font-size: clamp(28px, 3vw, 40px); line-height: 1.1; }
.stat span { color: var(--c-muted); font-size: 14px; }

/* Image + text rows */
.story-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: clamp(40px, 7vw, 96px); margin-bottom: 110px; }
.story-row:last-child { margin-bottom: 0; }
.story-row-reverse .story-media { order: 2; }
.story-row-text { grid-template-columns: minmax(0, 1fr); max-width: 860px; margin-left: auto; margin-right: auto; }
.story-media { position: relative; margin: 0; }
.story-media img { position: relative; z-index: 1; width: 100%; aspect-ratio: 5 / 4; object-fit: cover; border-radius: 20px; box-shadow: var(--shadow); }
.story-media img[src$=".svg"] { object-fit: contain; background: var(--c-surface); padding: 24px; }
.story-media-accent { position: absolute; z-index: 0; right: -18px; bottom: -18px; width: 62%; height: 62%; border-radius: 20px; background: linear-gradient(135deg, var(--c-primary), var(--c-primary-dark)); opacity: .9; }
.story-row-reverse .story-media-accent { right: auto; left: -18px; }
.story-copy h2 { font-size: clamp(28px, 3.2vw, calc(var(--fs-h2) - 2px)); }
.story-copy .text-link { margin-top: 6px; }

/* Showcase tabs */
.showcase { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); align-items: start; gap: 40px; }
.showcase-tabs { display: flex; flex-direction: column; gap: 12px; }
.showcase-tab { display: flex; flex-direction: column; gap: 4px; padding: 18px 20px; border: 1px solid var(--c-line-light); border-left: 3px solid transparent; border-radius: 12px; background: var(--c-dark-soft); color: #fff; text-align: left; cursor: pointer; transition: .2s; }
.showcase-tab strong { font-family: var(--font-heading); font-size: 17px; }
.showcase-tab span { color: rgba(255, 255, 255, .62); font-size: 14px; line-height: 1.55; }
.showcase-tab:hover { border-color: rgba(var(--c-primary-rgb), .5); }
.showcase-tab.is-active { border-color: rgba(var(--c-primary-rgb), .5); border-left-color: var(--c-primary); background: linear-gradient(90deg, rgba(var(--c-primary-rgb), .16), var(--c-dark-soft)); }
.section-surface .showcase-tab { background: #fff; color: var(--c-text); border-color: var(--c-line); }
.section-surface .showcase-tab span { color: var(--c-muted); }
.section-surface .showcase-tab.is-active { background: #fff; border-left-color: var(--c-primary); box-shadow: var(--shadow-sm); }
.showcase-panel { margin: 0; }
.showcase-panel[hidden] { display: none; }

/* Cards */
.card-grid { display: grid; gap: 24px; }
.feature-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.feature-card { position: relative; padding: 34px 30px; background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius); transition: transform .25s, box-shadow .25s, border-color .25s; }
.feature-card::before { content: ""; position: absolute; top: -1px; left: 30px; right: 30px; height: 3px; background: var(--c-primary); border-radius: 0 0 4px 4px; transform: scaleX(0); transition: transform .3s; }
.feature-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.feature-card:hover::before { transform: scaleX(1); }
.feature-card .icon-badge { margin-bottom: 22px; }
.feature-card h3 { margin-bottom: 10px; }
.feature-card p, .value-card p { margin: 0; color: var(--c-muted); font-size: 15px; text-align: var(--align-body); hyphens: auto; }
.feature-grid-dark .feature-card { background: var(--c-dark-soft); border-color: var(--c-line-light); }
.feature-grid-dark .feature-card p { color: rgba(255, 255, 255, .7); }
.feature-grid-dark .icon-badge { background: rgba(var(--c-primary-rgb), .18); color: var(--c-primary); }

.audience-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.audience-card { display: flex; flex-direction: column; overflow: hidden; background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius); transition: transform .25s, box-shadow .25s; }
.audience-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.audience-media { aspect-ratio: 4 / 3; overflow: hidden; }
.audience-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.audience-card:hover .audience-media img { transform: scale(1.06); }
.audience-body { position: relative; padding: 26px 24px 28px; }
.audience-number { display: block; margin-bottom: 10px; color: var(--c-primary-dark); font-family: var(--font-heading); font-size: 13px; font-weight: 800; letter-spacing: .14em; }
.audience-card h3 { margin-bottom: 8px; font-size: 19px; }
.audience-card p { margin: 0; color: var(--c-muted); font-size: 14.5px; text-align: left; }
.audience-card-plain { border-top: 3px solid var(--c-primary); }

.values-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.value-card { padding: 34px 30px; border: 1px solid var(--c-line); border-radius: var(--radius); background: #fff; }
.value-card .icon-badge { margin-bottom: 20px; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; list-style: none; counter-reset: step; }
.step { position: relative; padding-top: 6px; }
.step:not(:last-child)::after { content: ""; position: absolute; top: 33px; left: 74px; right: -14px; height: 2px; background: repeating-linear-gradient(90deg, var(--c-primary) 0 8px, transparent 8px 14px); opacity: .6; }
.step-number { display: grid; width: 56px; height: 56px; margin-bottom: 22px; place-items: center; border-radius: 50%; background: var(--c-dark); color: var(--c-primary); font-family: var(--font-heading); font-size: 22px; font-weight: 800; box-shadow: 0 0 0 6px rgba(var(--c-primary-rgb), .18); }
.step h3 { margin-bottom: 8px; font-size: 19px; }
.step p { margin: 0; color: var(--c-muted); font-size: 15px; text-align: left; }

/* Demo request */
.section-demo { position: relative; overflow: hidden; background: radial-gradient(circle at 12% 20%, rgba(var(--c-primary-rgb), .22), transparent 42%), var(--c-dark); color: #fff; }
.demo-layout { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); align-items: center; gap: 64px; }
.demo-copy h2 { font-size: clamp(30px, 3.6vw, var(--fs-h2)); color: #fff; }
.demo-copy .prose p { color: rgba(255, 255, 255, .78); }
.check-list { display: grid; gap: 12px; margin-top: 26px; list-style: none; }
.check-list li { position: relative; padding-left: 34px; color: rgba(255, 255, 255, .9); }
.check-list li::before { content: "\f00c"; position: absolute; left: 0; top: 2px; display: grid; width: 22px; height: 22px; place-items: center; border-radius: 50%; background: var(--c-primary); color: var(--c-dark); font-family: FontAwesome; font-size: 11px; }

/* Forms */
.form-card { padding: 38px; background: #fff; border: 1px solid var(--c-line); border-radius: 18px; box-shadow: var(--shadow); color: var(--c-text); }
.section-demo .form-card { box-shadow: var(--shadow-lg); }
.form-card-title { margin-bottom: 22px; font-size: 24px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.form-field-wide { grid-column: 1 / -1; }
.form-field label { display: block; margin-bottom: 7px; color: var(--c-text); font-size: 14px; font-weight: 600; }
.required { color: #c0392b; }
.site-form input, .site-form select, .site-form textarea { display: block; width: 100%; min-height: 50px; padding: 12px 14px; border: 1px solid #d9d4c6; border-radius: var(--radius-sm); background: #fff; color: var(--c-text); font-size: 15px; transition: border-color .2s, box-shadow .2s; }
.site-form textarea { min-height: 120px; resize: vertical; }
.site-form select { appearance: none; padding-right: 40px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%23555' stroke-width='2' d='M1 1l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 15px center; }
.site-form input:focus, .site-form select:focus, .site-form textarea:focus { border-color: var(--c-primary); outline: none; box-shadow: 0 0 0 4px rgba(var(--c-primary-rgb), .18); }
.form-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.form-help { margin: 14px 0 0; color: var(--c-muted); font-size: 13px; }
.captcha-row { margin-top: 18px; }
.form-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-notice { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 20px; padding: 14px 16px; border-radius: var(--radius-sm); font-size: 14.5px; line-height: 1.55; }
.form-notice i { margin-top: 3px; }
.form-notice-success { background: #edf8f0; border: 1px solid #b7e1c3; color: #1f6b35; }
.form-notice-error { background: #fdf0ee; border: 1px solid #f1c2ba; color: #9b2c1f; }
.site-form-compact .form-grid { grid-template-columns: 1fr; }
.site-form-compact { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0 10px; align-items: start; }
.site-form-compact .form-notice, .site-form-compact .captcha-row, .site-form-compact .recaptcha-note { grid-column: 1 / -1; }
.site-form-compact .form-actions { margin: 0; flex-wrap: nowrap; gap: 8px; }
.site-form-compact .button-primary { padding: 0 18px; }
.site-form-compact .captcha-row { margin-top: 12px; transform: scale(.88); transform-origin: left top; }
.site-footer .site-form-compact input { border-color: rgba(255, 255, 255, .18); background: rgba(255, 255, 255, .06); color: #fff; }
.site-footer .site-form-compact input::placeholder { color: rgba(255, 255, 255, .5); }
.site-footer .form-help { color: rgba(255, 255, 255, .55); }

/* Photo galleries */
.photo-gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 210px; grid-auto-flow: dense; gap: 16px; }
.gallery-item { position: relative; margin: 0; overflow: hidden; border-radius: var(--radius); background: var(--c-dark); }
.gallery-item:first-child { grid-column: span 2; grid-row: span 2; }
.gallery-item.is-wide { grid-column: span 2; }
.gallery-item a { display: block; height: 100%; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease, opacity .3s; }
.gallery-item:hover img { transform: scale(1.06); opacity: .9; }
.gallery-item figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 16px 14px; background: linear-gradient(180deg, transparent, rgba(0, 0, 0, .78)); color: #fff; font-family: var(--font-heading); font-size: 15px; font-weight: 600; pointer-events: none; }
.lightbox { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 60px 70px; background: rgba(8, 8, 8, .92); }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 100%; max-height: 100%; border-radius: 10px; box-shadow: var(--shadow-lg); }
.lightbox p { position: absolute; left: 0; right: 0; bottom: 18px; margin: 0; color: rgba(255, 255, 255, .85); text-align: center; }
.lightbox button { position: absolute; display: grid; width: 48px; height: 48px; place-items: center; border: 1px solid rgba(255, 255, 255, .3); border-radius: 50%; background: rgba(0, 0, 0, .4); color: #fff; font-size: 24px; cursor: pointer; }
.lightbox button:hover { border-color: var(--c-primary); background: var(--c-primary); color: var(--c-dark); }
.lightbox-close { top: 16px; right: 16px; }
.lightbox-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 12px; top: 50%; transform: translateY(-50%); }

/* FAQ */
.faq-list { display: grid; gap: 14px; }
.faq-item { border: 1px solid var(--c-line); border-radius: 12px; background: #fff; transition: box-shadow .2s, border-color .2s; }
.faq-item[open] { border-color: rgba(var(--c-primary-rgb), .55); box-shadow: var(--shadow-sm); }
.faq-item summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px 24px; font-family: var(--font-heading); font-size: 17.5px; font-weight: 600; cursor: pointer; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary i { display: grid; width: 32px; height: 32px; flex: none; place-items: center; border-radius: 50%; background: rgba(var(--c-primary-rgb), .14); color: var(--c-primary-dark); transition: transform .25s; }
.faq-item[open] summary i { transform: rotate(45deg); background: var(--c-primary); color: var(--c-dark); }
.faq-answer { padding: 0 24px 8px; }

/* Articles */
.article-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.article-card { display: flex; flex-direction: column; overflow: hidden; background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius); transition: transform .25s, box-shadow .25s; }
.article-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.article-media { display: block; aspect-ratio: 16 / 10; overflow: hidden; }
.article-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.article-card:hover .article-media img { transform: scale(1.05); }
.article-card-body { display: flex; flex: 1; flex-direction: column; padding: 26px; }
.article-date { margin-bottom: 8px; color: var(--c-primary-dark); font-size: 13px; font-weight: 600; }
.article-card h3 { font-size: 20px; }
.article-card h3 a { color: var(--c-text); }
.article-card h3 a:hover { color: var(--c-primary-dark); }
.article-card p { flex: 1; color: var(--c-muted); font-size: 15px; text-align: var(--align-body); hyphens: auto; }
.article-body p { font-size: 1.08em; }
.article-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; margin-top: 40px; padding-top: 30px; border-top: 1px solid var(--c-line); }
.rich-text { margin-bottom: 60px; }
.rich-text h2, .rich-text h3 { margin-top: 1.4em; }
.rich-text ul, .rich-text ol { margin: 0 0 1.2em 1.4em; }
.rich-text img { border-radius: 12px; margin: 1.5em 0; }

/* Closing call to action */
.closing-cta { position: relative; overflow: hidden; padding: 84px 0; background: linear-gradient(120deg, var(--c-dark) 0%, var(--c-dark-soft) 60%, #2a2212 100%); color: #fff; }
.closing-cta::after { content: ""; position: absolute; right: -120px; top: -140px; width: 420px; height: 420px; border-radius: 50%; border: 60px solid rgba(var(--c-primary-rgb), .12); }
.closing-cta-inner { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.closing-cta h2 { max-width: 720px; margin-bottom: 10px; font-size: clamp(28px, 3.4vw, 42px); }
.closing-cta p:not(.eyebrow) { max-width: 640px; margin: 0; color: rgba(255, 255, 255, .75); }
.closing-cta .eyebrow { color: var(--c-primary); }
.closing-cta .button-row { flex: none; }

/* ---------- Inner page header (dark overlay image) ---------- */
.page-header { position: relative; display: flex; align-items: center; min-height: 440px; overflow: hidden; background: var(--c-dark); color: #fff; }
.page-header-media { position: absolute; inset: 0; }
.page-header-media img { width: 100%; height: 100%; object-fit: cover; }
.page-header::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, var(--overlay) 0%, var(--overlay-strong) 100%); }
.page-header::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; height: 4px; background: linear-gradient(90deg, var(--c-primary), var(--c-primary-dark)); }
.page-header-content { position: relative; z-index: 1; padding-top: 90px; padding-bottom: 90px; text-align: center; }
.page-header h1 { max-width: 900px; margin: 0 auto 18px; color: #fff; font-size: clamp(34px, 4.6vw, calc(var(--fs-h1) - 6px)); line-height: 1.1; }
.page-header-lead { max-width: 720px; margin: 0 auto; color: rgba(255, 255, 255, .82); font-size: clamp(16px, 1.5vw, 18.5px); }
.page-header .eyebrow { justify-content: center; }
.page-header .button-row { justify-content: center; margin-top: 30px; }
.header-align-left .page-header-content { text-align: left; }
.header-align-left .page-header h1, .header-align-left .page-header-lead { margin-left: 0; }
.header-align-left .page-header .eyebrow, .header-align-left .page-header .button-row, .header-align-left .breadcrumbs ol { justify-content: flex-start; }
.header-align-right .page-header-content { text-align: right; }
.header-align-right .page-header h1, .header-align-right .page-header-lead { margin-right: 0; }
.header-align-right .page-header .eyebrow, .header-align-right .page-header .button-row, .header-align-right .breadcrumbs ol { justify-content: flex-end; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-bottom: 22px; list-style: none; font-size: 14px; }
.breadcrumbs li { display: inline-flex; align-items: center; gap: 6px; color: rgba(255, 255, 255, .7); }
.breadcrumbs li + li::before { content: "/"; color: var(--c-primary); }
.breadcrumbs a { color: rgba(255, 255, 255, .85); }
.breadcrumbs a:hover { color: var(--c-primary); }
.breadcrumbs [aria-current] { max-width: 420px; overflow: hidden; color: var(--c-primary); text-overflow: ellipsis; white-space: nowrap; }

/* ---------- Contact & partners ---------- */
.contact-layout { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); align-items: start; gap: 64px; }
.contact-cards { display: grid; gap: 14px; margin-top: 30px; list-style: none; }
.contact-card { display: flex; align-items: center; gap: 16px; padding: 18px 20px; background: #fff; border: 1px solid var(--c-line); border-radius: 12px; }
.contact-card strong { display: block; font-family: var(--font-heading); font-size: 16px; }
.contact-card a, .contact-card span { color: var(--c-muted); overflow-wrap: anywhere; }
.contact-card a:hover { color: var(--c-primary-dark); }
.partner-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }
.partner-card { padding: 34px; background: #fff; border: 1px solid var(--c-line); border-top: 4px solid var(--c-primary); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.partner-logo img { max-height: 60px; width: auto; margin-bottom: 18px; }
.partner-card h3 { font-size: 24px; }
.partner-details { display: grid; gap: 10px; margin-top: 18px; list-style: none; }
.partner-details li { display: flex; align-items: baseline; gap: 12px; padding-top: 10px; border-top: 1px solid var(--c-line); font-size: 15px; overflow-wrap: anywhere; }
.partner-details i { width: 18px; flex: none; color: var(--c-primary-dark); }
.partner-details a { color: var(--c-text); font-weight: 500; }
.partner-details a:hover { color: var(--c-primary-dark); }

/* ---------- Footer ---------- */
.site-footer { padding: 84px 0 0; background: var(--c-footer-bg); color: var(--c-footer-text); font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 1.35fr .8fr 1fr 1.35fr; gap: 48px; padding-bottom: 60px; }
.brand-footer { margin-bottom: 20px; color: #fff; }
.brand-footer:hover { color: #fff; }
.brand-footer .brand-tagline { color: var(--c-primary); }
.footer-description { max-width: 380px; color: var(--c-footer-text); opacity: .85; text-align: var(--align-body); hyphens: auto; }
.footer-title { margin: 6px 0 20px; color: #fff; font-size: 16px; font-weight: 600; letter-spacing: .02em; }
.footer-title::after { content: ""; display: block; width: 32px; height: 2px; margin-top: 10px; background: var(--c-primary); }
.footer-title-spaced { margin-top: 30px; }
.footer-links, .footer-contact { display: grid; gap: 10px; list-style: none; }
.footer-links a, .footer-contact a { color: var(--c-footer-text); opacity: .85; }
.footer-links a:hover, .footer-contact a:hover { color: var(--c-primary); opacity: 1; }
.footer-contact li { display: flex; align-items: baseline; gap: 12px; overflow-wrap: anywhere; }
.footer-contact i { width: 16px; flex: none; color: var(--c-primary); }
.social-links { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; }
.social-links a { display: grid; width: 40px; height: 40px; place-items: center; border: 1px solid rgba(255, 255, 255, .16); border-radius: 50%; color: var(--c-footer-text); transition: .2s; }
.social-links a:hover { border-color: var(--c-primary); background: var(--c-primary); color: var(--c-dark); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 30px; padding: 24px var(--gutter); border-top: 1px solid rgba(255, 255, 255, .1); font-size: 13.5px; opacity: .8; }
.footer-align-center .footer-grid > div, .footer-align-center .footer-bottom { text-align: center; justify-content: center; }
.footer-align-center .footer-title::after, .footer-align-center .footer-description { margin-left: auto; margin-right: auto; }
.footer-align-center .social-links, .footer-align-center .footer-contact li { justify-content: center; }
.footer-align-right .footer-grid > div { text-align: right; }
.footer-align-right .footer-title::after { margin-left: auto; }
.footer-align-right .social-links, .footer-align-right .footer-contact li { justify-content: flex-end; }

.whatsapp-float { position: fixed; right: 22px; bottom: 22px; z-index: 60; display: grid; width: 60px; height: 60px; place-items: center; border-radius: 50%; background: #25D366; color: #fff; font-size: 32px; box-shadow: 0 10px 30px rgba(37, 211, 102, .45); animation: wa-pulse 2.6s infinite; }
.whatsapp-float:hover { color: #fff; transform: scale(1.06); }
@keyframes wa-pulse { 0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, .5); } 70% { box-shadow: 0 0 0 16px rgba(37, 211, 102, 0); } 100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); } }
.back-to-top { position: fixed; right: 30px; bottom: 96px; z-index: 59; display: grid; width: 44px; height: 44px; place-items: center; border: 0; border-radius: 50%; background: var(--c-dark); color: var(--c-primary); font-size: 22px; cursor: pointer; opacity: 0; visibility: hidden; transform: translateY(10px); transition: .25s; box-shadow: var(--shadow); }
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: none; }

/* Fade-in on scroll (only when JavaScript is running) */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
    .brand-tagline { display: none; }
    .nav-link { padding: 10px 10px; }
    .nav-link::after { left: 10px; right: 10px; }
}

@media (max-width: 1080px) {
    :root { --header-h: 74px; }
    .nav-toggle { display: block; }
    .nav-panel { position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 16px; max-height: calc(100vh - var(--header-h)); padding: 14px var(--gutter) 26px; overflow-y: auto; background: var(--c-header-bg); border-bottom: 1px solid var(--c-line); box-shadow: 0 20px 40px rgba(0, 0, 0, .12); opacity: 0; visibility: hidden; transform: translateY(-8px); transition: .25s; }
    .nav-panel.is-open { opacity: 1; visibility: visible; transform: none; }
    .nav-align-center .nav-list, .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
    .nav-item { display: flex; flex-wrap: wrap; align-items: center; border-bottom: 1px solid var(--c-line); }
    .nav-link { flex: 1; padding: 14px 4px; font-size: 16px; }
    .nav-link::after { display: none; }
    .nav-link .fa-angle-down { display: none; }
    .submenu-toggle { display: grid; width: 44px; height: 44px; place-items: center; border: 0; background: transparent; font-size: 20px; cursor: pointer; }
    .submenu-toggle[aria-expanded="true"] i { transform: rotate(180deg); }
    .submenu { position: static; display: none; width: 100%; min-width: 0; margin-bottom: 10px; padding: 4px 0 4px 14px; border: 0; border-left: 2px solid var(--c-primary); border-radius: 0; box-shadow: none; opacity: 1; visibility: visible; transform: none; }
    .submenu.is-open { display: block; }
    .nav-cta { width: 100%; }
    .highlight-grid, .audience-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .feature-grid, .article-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hero-slide-inner.has-screen { grid-template-columns: minmax(0, 1fr); }
    .hero-screen { display: none; }
    .showcase { grid-template-columns: minmax(0, 1fr); }
    .showcase-tabs { flex-direction: row; overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x mandatory; }
    .showcase-tab { min-width: 240px; scroll-snap-align: start; }
    .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; }
    .photo-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 200px; }
    .gallery-item:first-child { grid-row: span 1; }
    .gallery-item.is-wide { grid-column: span 1; }
    .gallery-item:last-child:nth-child(even) { grid-column: span 2; }
    .step::after { display: none; }
    .demo-layout, .contact-layout { grid-template-columns: minmax(0, 1fr); gap: 44px; }
    .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
    :root { --gutter: 16px; }
    .topbar-text { display: none; }
    .topbar-inner { justify-content: center; }
    .topbar-links { gap: 16px; font-size: 12.5px; }
    .brand-name { font-size: 18px; }
    .brand-logo { height: calc(var(--logo-h) * .8); }
    .section { padding: 72px 0; }
    .section-heading { margin-bottom: 40px; }
    .hero-slides { min-height: 640px; }
    .hero-slide-inner { padding-top: 56px; padding-bottom: 150px; }
    .slider-controls { bottom: 92px; }
    .highlights { margin-top: -60px; }
    .highlight-grid, .audience-grid, .feature-grid, .article-grid, .values-grid { grid-template-columns: minmax(0, 1fr); }
    .stats-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .stat:nth-child(3) { border-left: 0; }
    .stat:nth-child(n + 3) { border-top: 1px solid var(--c-line); }
    .story-row { grid-template-columns: minmax(0, 1fr); gap: 34px; margin-bottom: 72px; }
    .story-row-reverse .story-media { order: 0; }
    .story-media-accent { right: -8px; bottom: -8px; }
    .story-row-reverse .story-media-accent { left: -8px; }
    .steps { grid-template-columns: minmax(0, 1fr); }
    .photo-gallery { grid-auto-rows: 140px; gap: 10px; }
    .lightbox { padding: 60px 12px; }
    .form-card { padding: 26px 20px; }
    .form-grid { grid-template-columns: minmax(0, 1fr); }
    .form-actions .button { flex: 1 1 100%; }
    .site-form-compact .form-actions .button { flex: none; }
    .closing-cta-inner { flex-direction: column; align-items: flex-start; }
    .page-header { min-height: 360px; }
    .page-header-content { padding-top: 64px; padding-bottom: 64px; }
    .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 36px; }
    .footer-bottom { flex-direction: column; text-align: center; }
    .whatsapp-float { width: 54px; height: 54px; font-size: 28px; right: 16px; bottom: 16px; }
    .back-to-top { right: 21px; bottom: 82px; }
}

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