/* ==========================================================================
   RISEN CMS — public website styles
   Brand colours come from the admin (Settings → Theme colours) as CSS vars.
   ========================================================================== */
:root {
    --rl-primary: #1F3FA8;
    --rl-accent: #2E9E3E;
    --rl-ink: #0B2C6B;
    --rl-text: #33415C;
    --rl-muted: #5F6B85;
    --rl-mist: #F1F5FB;
    --rl-line: #DCE4F0;
    --rl-white: #fff;
    --rl-radius: 14px;
    --rl-radius-sm: 8px;
    --rl-font-head: "Sora", "Segoe UI", system-ui, sans-serif;
    --rl-font-body: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
    --rl-shadow: 0 18px 40px -24px rgba(11, 44, 107, .35);
    --bs-body-font-family: var(--rl-font-body);
    --bs-body-color: var(--rl-text);
    --bs-link-color: var(--rl-primary);
    --bs-link-color-rgb: 31, 63, 168;
    --bs-link-hover-color: var(--rl-ink);
}

/* ---------- Base ---------- */
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body { font-family: var(--rl-font-body); font-size: 1.0625rem; line-height: 1.65; color: var(--rl-text); background: #fff; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 { font-family: var(--rl-font-head); color: var(--rl-ink); font-weight: 600; letter-spacing: -.015em; line-height: 1.2; }
a { color: var(--rl-primary); text-underline-offset: 3px; }
img { max-width: 100%; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--rl-accent) 70%, transparent); outline-offset: 2px; }
.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 2000; background: var(--rl-ink); color: #fff; padding: .5rem 1rem; border-radius: 6px; }
.skip-link:focus { left: 8px; }
.hp { position: absolute !important; left: -10000px !important; height: 1px; overflow: hidden; }

/* ---------- Buttons ---------- */
.btn { --bs-btn-font-weight: 600; --bs-btn-padding-x: 1.25rem; --bs-btn-padding-y: .62rem; --bs-btn-border-radius: 999px; font-family: var(--rl-font-body); letter-spacing: .01em; }
.btn-lg { --bs-btn-padding-x: 1.7rem; --bs-btn-padding-y: .8rem; --bs-btn-font-size: 1.05rem; }
.btn-primary { --bs-btn-bg: var(--rl-primary); --bs-btn-border-color: var(--rl-primary); --bs-btn-hover-bg: var(--rl-ink); --bs-btn-hover-border-color: var(--rl-ink); --bs-btn-active-bg: var(--rl-ink); --bs-btn-active-border-color: var(--rl-ink); --bs-btn-disabled-bg: var(--rl-primary); --bs-btn-disabled-border-color: var(--rl-primary); }
.btn-outline-primary { --bs-btn-color: var(--rl-primary); --bs-btn-border-color: color-mix(in srgb, var(--rl-primary) 45%, #fff); --bs-btn-hover-bg: var(--rl-primary); --bs-btn-hover-border-color: var(--rl-primary); --bs-btn-active-bg: var(--rl-primary); --bs-btn-active-border-color: var(--rl-primary); }
.btn-accent { --bs-btn-color: #fff; --bs-btn-bg: var(--rl-accent); --bs-btn-border-color: var(--rl-accent); --bs-btn-hover-color: #fff; --bs-btn-hover-bg: color-mix(in srgb, var(--rl-accent) 82%, #000); --bs-btn-hover-border-color: color-mix(in srgb, var(--rl-accent) 82%, #000); --bs-btn-active-bg: color-mix(in srgb, var(--rl-accent) 75%, #000); --bs-btn-active-color: #fff; }
.btn-outline-light { --bs-btn-border-color: rgba(255,255,255,.45); }

/* ---------- Kicker + section heads ---------- */
.kicker { display: inline-flex; align-items: center; gap: .55rem; font-weight: 700; font-size: .95rem; color: var(--rl-accent); margin-bottom: .6rem; }
.kicker::before { content: ""; width: 12px; height: 12px; flex: none;
    background: linear-gradient(currentColor, currentColor) center/100% 4px no-repeat, linear-gradient(currentColor, currentColor) center/4px 100% no-repeat; }
.kicker-light { color: #8fe39b; }
.section { padding: 96px 0; }
.section-mist { background: var(--rl-mist); }
.section-ink { background: var(--rl-ink); color: rgba(255,255,255,.78); }
.section-ink h2, .section-ink h3 { color: #fff; }
.section-head { max-width: 680px; margin-bottom: 2.75rem; }
.section-title { font-size: clamp(1.75rem, 1.2rem + 1.8vw, 2.6rem); margin-bottom: .9rem; }
.section-text { font-size: 1.1rem; color: var(--rl-muted); margin: 0; }
.section-ink .section-text { color: rgba(255,255,255,.72); }
.body-lg { font-size: 1.125rem; color: var(--rl-muted); }
.body-lg p { margin-bottom: 1rem; }
.tagline { font-family: var(--rl-font-head); font-weight: 600; color: var(--rl-primary); font-size: 1.1rem; margin: 1.25rem 0 1.5rem; }

/* ---------- Top bar & header ---------- */
.topbar { background: var(--rl-ink); color: rgba(255,255,255,.8); font-size: .9rem; padding: .45rem 0; }
.topbar a { color: rgba(255,255,255,.85); text-decoration: none; }
.topbar a:hover { color: #fff; }
.topbar-list { display: flex; gap: 1.75rem; margin: 0; padding: 0; list-style: none; }
.topbar-list li { display: flex; align-items: center; }
.topbar-list i { margin-right: .45rem; color: #8fe39b; }
.social { display: flex; gap: .5rem; list-style: none; padding: 0; margin: 0; }
.social a { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(255,255,255,.22); color: #fff; text-decoration: none; transition: background .2s; }
.social a:hover { background: var(--rl-accent); border-color: var(--rl-accent); }
.social-sm a { width: 28px; height: 28px; font-size: .8rem; border: 0; }

.site-header { position: sticky; top: 0; z-index: 1030; background: rgba(255,255,255,.96); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s; }
.site-header.scrolled { border-color: var(--rl-line); box-shadow: 0 10px 30px -22px rgba(11,44,107,.45); }
.site-header .navbar { padding: .55rem 0; }
.navbar-brand img { width: auto; display: block; }
.navbar-nav .nav-link { font-weight: 600; color: var(--rl-ink); padding: .5rem .9rem !important; position: relative; }
.navbar-nav .nav-link::after { content: ""; position: absolute; left: .9rem; right: .9rem; bottom: .2rem; height: 2px; background: var(--rl-accent); transform: scaleX(0); transform-origin: left; transition: transform .25s; }
.navbar-nav .nav-link:hover::after, .navbar-nav .nav-link.active::after { transform: scaleX(1); }
.navbar-nav .nav-link.active { color: var(--rl-primary); }
.navbar-toggler { border: 0; padding: .5rem; box-shadow: none !important; }
.burger { display: grid; gap: 5px; width: 26px; }
.burger span { height: 2px; background: var(--rl-ink); border-radius: 2px; }
.burger span:nth-child(2) { width: 70%; justify-self: end; background: var(--rl-accent); }
.mobile-nav { max-width: 320px; }
.mobile-links li { border-bottom: 1px solid var(--rl-line); }
.mobile-links a { display: block; padding: .85rem 0; font-family: var(--rl-font-head); font-weight: 600; color: var(--rl-ink); text-decoration: none; }
.mobile-links a.active { color: var(--rl-accent); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 72px 0 120px; background:
    radial-gradient(circle at 92% 10%, color-mix(in srgb, var(--rl-accent) 10%, transparent) 0 220px, transparent 221px),
    linear-gradient(180deg, #fff 0%, var(--rl-mist) 100%); overflow: hidden; }
.hero-badge { display: inline-flex; align-items: center; gap: .6rem; background: #fff; border: 1px solid var(--rl-line); border-radius: 999px; padding: .4rem 1rem .4rem .5rem; font-weight: 600; color: var(--rl-ink); font-size: .95rem; margin-bottom: 1.5rem; }
.plus-dot { width: 26px; height: 26px; border-radius: 50%; background: var(--rl-accent); position: relative; }
.plus-dot::before, .plus-dot::after { content: ""; position: absolute; background: #fff; border-radius: 1px; left: 50%; top: 50%; transform: translate(-50%, -50%); }
.plus-dot::before { width: 12px; height: 3px; }
.plus-dot::after { width: 3px; height: 12px; }
.hero-title { font-size: clamp(2.4rem, 1.4rem + 3.6vw, 4.1rem); line-height: 1.06; letter-spacing: -.03em; margin-bottom: 1.4rem; font-weight: 700; }
.hero-title-2 { display: block; color: var(--rl-accent); }
.hero-text { font-size: 1.2rem; color: var(--rl-muted); max-width: 34em; margin-bottom: 2rem; }
.hero-actions { display: flex; gap: .75rem; flex-wrap: wrap; }

/* the signature element: photo clipped into the medical cross from the logo */
.hero-visual { position: relative; max-width: 560px; margin-left: auto; aspect-ratio: 1 / 1; }
.hero-cross { position: absolute; inset: 0; background: var(--rl-primary);
    clip-path: polygon(30% 0, 70% 0, 70% 30%, 100% 30%, 100% 70%, 70% 70%, 70% 100%, 30% 100%, 30% 70%, 0 70%, 0 30%, 30% 30%); }
.hero-cross img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-leaf { position: absolute; right: 2%; top: 4%; width: 22%; aspect-ratio: 1; background: var(--rl-accent); border-radius: 0 60% 0 60%; box-shadow: var(--rl-shadow); }
.hero-visual::after { content: ""; position: absolute; left: 4%; bottom: 4%; width: 18%; aspect-ratio: 1; border: 3px solid var(--rl-primary); border-radius: 50%; opacity: .35; }
.hero .carousel-item { transition-duration: .9s; }
.hero-controls { position: absolute; left: 0; right: 0; bottom: 56px; }
.hero .carousel-indicators { position: static; justify-content: flex-start; margin: 0; }
.hero .carousel-indicators [data-bs-target] { width: 28px; height: 6px; border-radius: 3px; background: var(--rl-primary); border: 0; opacity: .25; margin: 0 6px 0 0; }
.hero .carousel-indicators .active { opacity: 1; width: 44px; }
@media (prefers-reduced-motion: no-preference) {
    .hero .carousel-item.active .hero-copy > * { animation: rise .8s cubic-bezier(.2,.7,.2,1) both; }
    .hero .carousel-item.active .hero-copy > *:nth-child(2) { animation-delay: .08s; }
    .hero .carousel-item.active .hero-copy > *:nth-child(3) { animation-delay: .16s; }
    .hero .carousel-item.active .hero-copy > *:nth-child(4) { animation-delay: .24s; }
    .hero .carousel-item.active .hero-cross { animation: crossIn 1s cubic-bezier(.2,.7,.2,1) both; }
}
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes crossIn { from { clip-path: polygon(50% 50%, 50% 50%, 50% 50%, 50% 50%, 50% 50%, 50% 50%, 50% 50%, 50% 50%, 50% 50%, 50% 50%, 50% 50%, 50% 50%); } }

/* ---------- Stats ---------- */
.stats-strip { margin-top: -64px; position: relative; z-index: 2; }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); background: var(--rl-ink); border-radius: var(--rl-radius); padding: 2rem 1rem; box-shadow: var(--rl-shadow); }
.stat { text-align: center; padding: .5rem 1rem; color: #fff; }
.stat + .stat { border-left: 1px solid rgba(255,255,255,.14); }
.stat-num { display: block; font-family: var(--rl-font-head); font-weight: 700; font-size: clamp(2rem, 1.5rem + 1.5vw, 2.8rem); line-height: 1.1; color: #fff; }
.stat-label { color: rgba(255,255,255,.72); font-weight: 600; }

/* ---------- Framed images ---------- */
.framed-img { position: relative; margin: 0; padding: 0 0 24px 24px; }
.framed-img::before { content: ""; position: absolute; left: 0; bottom: 0; width: 62%; height: 62%; background: var(--rl-accent); border-radius: var(--rl-radius); }
.framed-img img { position: relative; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--rl-radius); display: block; }
.framed-right { padding: 0 24px 24px 0; }
.framed-right::before { left: auto; right: 0; background: var(--rl-primary); }

.plus-list { list-style: none; padding: 0; margin: 1.5rem 0; }
.plus-list li { position: relative; padding-left: 1.75rem; margin-bottom: .5rem; font-weight: 600; color: var(--rl-ink); }
.plus-list li::before { content: ""; position: absolute; left: 0; top: .45em; width: 14px; height: 14px;
    background: linear-gradient(var(--rl-accent), var(--rl-accent)) center/100% 4px no-repeat, linear-gradient(var(--rl-accent), var(--rl-accent)) center/4px 100% no-repeat; }
.plus-list-inline { display: flex; flex-wrap: wrap; gap: .25rem 1.75rem; }

/* ---------- Feature rows ---------- */
.feature-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); background: #fff; border: 1px solid var(--rl-line); border-radius: var(--rl-radius); }
.feature { padding: 2rem 1.75rem; }
.feature + .feature { border-left: 1px solid var(--rl-line); }
.feature h3 { font-size: 1.15rem; margin: 1.1rem 0 .5rem; }
.feature p { color: var(--rl-muted); margin: 0; }
.feature-icon { display: inline-grid; place-items: center; width: 52px; height: 52px; flex: none; border-radius: 12px; background: color-mix(in srgb, var(--rl-primary) 10%, #fff); color: var(--rl-primary); font-size: 1.45rem; }

/* ---------- Categories ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); border: 1px solid var(--rl-line); border-radius: var(--rl-radius); overflow: hidden; background: #fff; }
.cat-tile { display: flex; flex-direction: column; gap: .35rem; padding: 1.75rem; background: #fff; text-decoration: none; color: var(--rl-text); transition: background .2s; box-shadow: 1px 0 0 var(--rl-line), 0 1px 0 var(--rl-line); }
.cat-tile:hover { background: var(--rl-mist); }
.cat-icon { font-size: 1.7rem; color: var(--rl-accent); line-height: 1; margin-bottom: .6rem; }
.cat-name { font-family: var(--rl-font-head); font-weight: 600; font-size: 1.15rem; color: var(--rl-ink); }
.cat-desc { color: var(--rl-muted); font-size: .97rem; }
.cat-count { margin-top: auto; padding-top: .75rem; font-weight: 700; font-size: .9rem; color: var(--rl-primary); }

/* ---------- Product card ---------- */
.product-card { height: 100%; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--rl-line); border-radius: var(--rl-radius); overflow: hidden; transition: border-color .2s, box-shadow .2s; }
.product-card:hover { border-color: color-mix(in srgb, var(--rl-primary) 40%, #fff); box-shadow: var(--rl-shadow); }
.product-media { display: block; aspect-ratio: 4 / 3; background: linear-gradient(160deg, #fff, var(--rl-mist)); padding: 1rem; }
.product-media img { width: 100%; height: 100%; object-fit: contain; transition: transform .4s; }
.product-card:hover .product-media img { transform: scale(1.04); }
.product-placeholder { display: grid; place-items: center; width: 100%; height: 100%; font-size: 3rem; color: color-mix(in srgb, var(--rl-primary) 35%, #fff); }
.product-placeholder.big { font-size: 6rem; min-height: 320px; }
.product-body { padding: 1.25rem 1.35rem 1.4rem; display: flex; flex-direction: column; flex: 1; }
.product-cat { display: inline-block; align-self: flex-start; font-size: .82rem; font-weight: 700; color: var(--rl-accent); background: color-mix(in srgb, var(--rl-accent) 10%, #fff); padding: .2rem .65rem; border-radius: 999px; text-decoration: none; margin-bottom: .6rem; }
.product-name { font-size: 1.12rem; margin-bottom: .75rem; }
.product-name a { color: var(--rl-ink); text-decoration: none; }
.product-name a:hover { color: var(--rl-primary); }
.product-meta { margin: 0 0 1rem; font-size: .95rem; }
.product-meta div { display: flex; justify-content: space-between; gap: 1rem; padding: .35rem 0; border-top: 1px dashed var(--rl-line); }
.product-meta dt { font-weight: 500; color: var(--rl-muted); }
.product-meta dd { margin: 0; text-align: right; color: var(--rl-ink); font-weight: 600; }
.link-arrow { margin-top: auto; font-weight: 700; text-decoration: none; }
.link-arrow:hover { text-decoration: underline; }

/* ---------- Process ---------- */
.process { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 1.5rem; counter-reset: s; position: relative; }
.process-step { position: relative; padding-top: 1rem; }
.process-step::before { content: ""; position: absolute; top: 2.15rem; left: 3.2rem; right: -1.5rem; height: 2px; background: repeating-linear-gradient(90deg, var(--rl-line) 0 8px, transparent 8px 14px); }
.process-step:last-child::before { display: none; }
.process-num { font-family: var(--rl-font-head); font-weight: 700; font-size: .9rem; color: var(--rl-accent); display: block; margin-bottom: .4rem; }
.process-icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--rl-primary); color: #fff; font-size: 1.3rem; position: relative; z-index: 1; box-shadow: 0 0 0 6px #fff; }
.process-step h3 { font-size: 1.08rem; margin: 1.1rem 0 .4rem; }
.process-step p { color: var(--rl-muted); font-size: .97rem; margin: 0; }

/* ---------- Quality ---------- */
.quality-img { margin: 1.5rem 0 0; }
.quality-img img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--rl-radius); }
.quality-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; background: rgba(255,255,255,.12); border-radius: var(--rl-radius); overflow: hidden; }
.quality-list li { display: flex; gap: 1.25rem; padding: 1.6rem 1.75rem; background: var(--rl-ink); }
.quality-list h3 { font-size: 1.1rem; margin-bottom: .35rem; }
.quality-list p { margin: 0; }
.q-icon { display: grid; place-items: center; width: 48px; height: 48px; flex: none; border-radius: 12px; background: color-mix(in srgb, var(--rl-accent) 22%, transparent); color: #8fe39b; font-size: 1.3rem; }

/* ---------- Testimonials ---------- */
.quote { height: 100%; margin: 0; padding: 2rem; border: 1px solid var(--rl-line); border-radius: var(--rl-radius); background: #fff; display: flex; flex-direction: column; position: relative; }
.quote::before { content: "\201C"; position: absolute; right: 1.5rem; top: .25rem; font-family: Georgia, serif; font-size: 5rem; line-height: 1; color: color-mix(in srgb, var(--rl-primary) 12%, #fff); }
.quote-stars { color: #F4B400; margin-bottom: 1rem; letter-spacing: 2px; }
.quote blockquote { font-size: 1.08rem; color: var(--rl-text); flex: 1; }
.quote figcaption { display: flex; align-items: center; gap: .9rem; margin-top: 1rem; }
.quote figcaption strong { display: block; color: var(--rl-ink); font-family: var(--rl-font-head); font-weight: 600; }
.quote figcaption span { color: var(--rl-muted); font-size: .95rem; }
.avatar { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; flex: none; }
.avatar-initials { display: grid; place-items: center; background: var(--rl-primary); color: #fff !important; font-weight: 700; font-family: var(--rl-font-head); font-size: 1rem !important; }

/* ---------- CTA band ---------- */
.cta-band { padding: 0 0 96px; }
.section + .cta-band, .section-mist + .cta-band { padding-top: 0; }
.cta-inner { position: relative; overflow: hidden; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 2rem; padding: 3.5rem; border-radius: calc(var(--rl-radius) + 6px); background: var(--rl-primary); color: rgba(255,255,255,.85); }
.cta-inner::after { content: ""; position: absolute; right: -40px; top: -40px; width: 220px; height: 220px; opacity: .14;
    background: linear-gradient(#fff, #fff) center/100% 34% no-repeat, linear-gradient(#fff, #fff) center/34% 100% no-repeat; }
.cta-inner > * { position: relative; z-index: 1; }
.cta-inner h2 { color: #fff; font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.3rem); margin-bottom: .6rem; }
.cta-inner p { margin: 0; max-width: 40em; font-size: 1.08rem; }
.cta-actions { display: flex; gap: .75rem; flex-wrap: wrap; }
.section-mist + .cta-band { background: var(--rl-mist); }
.section-ink + .cta-band { padding-top: 96px; }
.section-title.h3 { font-size: clamp(1.4rem, 1.2rem + .6vw, 1.75rem); }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { position: relative; overflow: hidden; background: var(--rl-ink); color: rgba(255,255,255,.8); padding: 72px 0 80px; }
.page-hero h1 { color: #fff; font-size: clamp(2rem, 1.4rem + 2.2vw, 3.2rem); max-width: 18em; margin-bottom: .8rem; }
.page-hero .lead { max-width: 40em; font-size: 1.15rem; margin: 0; }
.hero-plus { position: absolute; right: 6%; top: 50%; width: 220px; height: 220px; transform: translateY(-50%); opacity: .1; pointer-events: none;
    background: linear-gradient(#fff, #fff) center/100% 34% no-repeat, linear-gradient(#fff, #fff) center/34% 100% no-repeat; }
.page-hero .hero-plus::after { content: ""; position: absolute; right: -36px; top: -36px; width: 70px; height: 70px; background: var(--rl-accent); border-radius: 0 60% 0 60%; opacity: 1; }
.crumbs { display: flex; flex-wrap: wrap; list-style: none; padding: 0; margin: 0 0 1.25rem; font-size: .92rem; }
.crumbs li + li::before { content: "/"; margin: 0 .55rem; opacity: .5; }
.crumbs a { color: rgba(255,255,255,.8); text-decoration: none; }
.crumbs a:hover { color: #fff; text-decoration: underline; }
.crumbs span { color: #8fe39b; }
.crumbs-dark a { color: var(--rl-muted); }
.crumbs-dark a:hover { color: var(--rl-primary); }
.crumbs-dark span { color: var(--rl-accent); }

.split-hero { padding: 64px 0 80px; background: linear-gradient(180deg, #fff, var(--rl-mist)); }
.display-title { font-size: clamp(2.2rem, 1.4rem + 3vw, 3.6rem); letter-spacing: -.03em; line-height: 1.08; margin-bottom: 1.2rem; font-weight: 700; }
.highlight-row { list-style: none; padding: 0; margin: 4rem 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.5rem; }
.highlight-row li { display: flex; gap: 1rem; align-items: flex-start; }
.highlight-row h2 { margin: .2rem 0 .25rem; font-size: 1.05rem; }
.highlight-row p { margin: 0; color: var(--rl-muted); font-size: .97rem; }

/* ---------- About ---------- */
.values-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.5rem; }
.value { padding: 2.25rem; background: #fff; border-radius: var(--rl-radius); border-top: 4px solid var(--rl-accent); }
.value:nth-child(2) { border-top-color: var(--rl-primary); }
.value h2 { margin: 1.1rem 0 .5rem; }
.value p { margin: 0; color: var(--rl-muted); font-size: 1.08rem; }

.timeline { list-style: none; padding: 0; margin: 0 auto; max-width: 820px; position: relative; }
.timeline::before { content: ""; position: absolute; left: 110px; top: 6px; bottom: 6px; width: 2px; background: var(--rl-line); }
.timeline li { display: grid; grid-template-columns: 110px 1fr; gap: 2.5rem; padding-bottom: 2.25rem; position: relative; }
.timeline li::after { content: ""; position: absolute; left: 104px; top: 8px; width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 3px solid var(--rl-accent); }
.tl-year { font-family: var(--rl-font-head); font-weight: 700; font-size: 1.5rem; color: var(--rl-primary); line-height: 1.2; }
.tl-body h3 { font-size: 1.2rem; margin-bottom: .3rem; }
.tl-body p { margin: 0; color: var(--rl-muted); }

.member { text-align: center; background: #fff; border-radius: var(--rl-radius); padding: 2.25rem 1.5rem; height: 100%; }
.member-photo { width: 128px; height: 128px; border-radius: 50%; object-fit: cover; display: block; margin: 0 auto 1.25rem; box-shadow: 0 0 0 6px var(--rl-mist), 0 0 0 8px color-mix(in srgb, var(--rl-accent) 50%, #fff); }
.member-initials { display: grid; place-items: center; background: var(--rl-primary); color: #fff; font-family: var(--rl-font-head); font-weight: 700; font-size: 2.2rem; }
.member h3 { font-size: 1.2rem; margin-bottom: .2rem; }
.member-role { color: var(--rl-accent); font-weight: 700; margin-bottom: .6rem; }
.member-bio { color: var(--rl-muted); font-size: .98rem; }
.member-link { font-size: 1.25rem; }

/* ---------- Products listing ---------- */
.filter-panel { position: sticky; top: 110px; }
.search-box { position: relative; margin-bottom: 1.75rem; }
.search-box i { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); color: var(--rl-muted); }
.search-box .form-control { padding: .75rem 1rem .75rem 2.6rem; border-radius: 999px; border-color: var(--rl-line); }
.filter-title { font-size: 1rem; margin-bottom: .75rem; }
.filter-list { list-style: none; padding: 0; margin: 0; border: 1px solid var(--rl-line); border-radius: var(--rl-radius); overflow: hidden; }
.filter-list li + li { border-top: 1px solid var(--rl-line); }
.filter-list a { display: flex; justify-content: space-between; align-items: center; padding: .8rem 1.1rem; color: var(--rl-text); text-decoration: none; font-weight: 600; transition: background .15s; }
.filter-list a:hover { background: var(--rl-mist); }
.filter-list a.active { background: var(--rl-primary); color: #fff; }
.filter-list .count { font-size: .85rem; min-width: 28px; text-align: center; border-radius: 999px; padding: .05rem .5rem; background: var(--rl-mist); color: var(--rl-muted); }
.filter-list a.active .count { background: rgba(255,255,255,.2); color: #fff; }
.result-count { color: var(--rl-muted); font-weight: 600; margin-bottom: 1rem; }
#productGrid.loading { opacity: .45; pointer-events: none; transition: opacity .2s; }
.empty-state { text-align: center; padding: 3.5rem 1.5rem; border: 2px dashed var(--rl-line); border-radius: var(--rl-radius); background: #fff; }
.empty-state > i { font-size: 2.6rem; color: var(--rl-primary); display: block; margin-bottom: .75rem; }
.empty-state p { color: var(--rl-muted); max-width: 32em; margin: 0 auto 1rem; }

/* ---------- Product detail ---------- */
.product-hero { padding: 48px 0 72px; background: linear-gradient(180deg, #fff, var(--rl-mist)); }
.product-stage { background: #fff; border: 1px solid var(--rl-line); border-radius: calc(var(--rl-radius) + 6px); padding: 2rem; aspect-ratio: 4 / 3; display: grid; place-items: center; }
.product-stage img { max-height: 100%; width: 100%; object-fit: contain; }
.product-title { font-size: clamp(2rem, 1.4rem + 2vw, 3rem); margin: .25rem 0 1rem; }
.spec-table { margin: 1.5rem 0 2rem; border: 1px solid var(--rl-line); border-radius: var(--rl-radius); background: #fff; }
.spec-table div { display: grid; grid-template-columns: 150px 1fr; padding: .85rem 1.25rem; }
.spec-table div + div { border-top: 1px solid var(--rl-line); }
.spec-table dt { color: var(--rl-muted); font-weight: 600; }
.spec-table dd { margin: 0; color: var(--rl-ink); font-weight: 600; }
.rich-text { font-size: 1.08rem; }
.rich-text h2, .rich-text h3, .rich-text h4 { margin: 1.75rem 0 .6rem; font-size: 1.3rem; }
.rich-text ul, .rich-text ol { padding-left: 1.25rem; }
.rich-text img { border-radius: var(--rl-radius-sm); height: auto; }
.rich-text table { width: 100%; border-collapse: collapse; margin: 1rem 0; }
.rich-text td, .rich-text th { border: 1px solid var(--rl-line); padding: .5rem .75rem; }
.disclaimer { margin-top: 2rem; padding: 1rem 1.25rem; background: var(--rl-mist); border-radius: var(--rl-radius-sm); color: var(--rl-muted); font-size: .95rem; }

/* ---------- Services ---------- */
.service-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 1.5rem; }
.service { background: #fff; border-radius: var(--rl-radius); padding: 2rem; border: 1px solid var(--rl-line); }
.service h3 { font-size: 1.15rem; margin: 1.1rem 0 .45rem; }
.service p { color: var(--rl-muted); margin: 0; }
.service-compact { padding: 1.6rem; }
.approach-intro { position: sticky; top: 120px; }
.approach { list-style: none; margin: 0; padding: 0; }
.approach li { display: grid; grid-template-columns: 64px 1fr; gap: 1rem; padding: 1.6rem 0; border-top: 1px solid var(--rl-line); }
.approach li:last-child { border-bottom: 1px solid var(--rl-line); }
.approach .process-num { font-size: 1.8rem; color: color-mix(in srgb, var(--rl-primary) 30%, #fff); }
.approach h3 { font-size: 1.2rem; margin-bottom: .35rem; }
.approach h3 i { color: var(--rl-accent); }
.approach p { margin: 0; color: var(--rl-muted); }
.why-dark { height: 100%; padding: 2rem; border: 1px solid rgba(255,255,255,.14); border-radius: var(--rl-radius); }
.why-dark h3 { font-size: 1.15rem; margin: 1.1rem 0 .4rem; }
.why-dark p { margin: 0; }

/* ---------- Gallery ---------- */
.chip-row { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2rem; }
.chip { border: 1px solid var(--rl-line); background: #fff; border-radius: 999px; padding: .45rem 1.1rem; font-weight: 600; color: var(--rl-text); }
.chip:hover { border-color: var(--rl-primary); color: var(--rl-primary); }
.chip.active { background: var(--rl-primary); border-color: var(--rl-primary); color: #fff; }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); grid-auto-rows: 240px; gap: 1rem; }
.gallery-item { position: relative; overflow: hidden; border-radius: var(--rl-radius); background: var(--rl-mist); display: block; }
.gallery-item:nth-child(6n + 1) { grid-row: span 2; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.gallery-item:hover img { transform: scale(1.05); }
.gallery-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 2.5rem 1.1rem 1rem; color: #fff; background: linear-gradient(transparent, rgba(11,44,107,.85)); display: flex; flex-direction: column; }
.gallery-cap small { color: #8fe39b; font-weight: 600; }
.gallery-item.is-hidden { display: none; }
.lightbox .modal-content { background: transparent; border: 0; position: relative; }
.lightbox figure img { width: 100%; max-height: 80vh; object-fit: contain; border-radius: var(--rl-radius-sm); }
.lightbox figcaption { color: #fff; text-align: center; padding-top: .75rem; }
.lightbox .btn-close { position: absolute; right: 0; top: -2.5rem; z-index: 2; }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255,255,255,.9); color: var(--rl-ink); font-size: 1.3rem; }
.lb-prev { left: -8px; } .lb-next { right: -8px; }
.modal-backdrop.show { opacity: .8; }

/* ---------- Career ---------- */
.job-list { display: grid; gap: 1rem; }
.job { background: #fff; border: 1px solid var(--rl-line); border-radius: var(--rl-radius); }
.job summary { list-style: none; cursor: pointer; display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1.5rem; padding: 1.35rem 1.6rem; }
.job summary::-webkit-details-marker { display: none; }
.job-title { font-family: var(--rl-font-head); font-weight: 600; color: var(--rl-ink); font-size: 1.15rem; }
.job-tags { display: flex; flex-wrap: wrap; gap: .4rem 1.1rem; color: var(--rl-muted); font-size: .95rem; flex: 1; }
.job-tags i { margin-right: .35rem; color: var(--rl-accent); }
.job-chevron { transition: transform .2s; color: var(--rl-primary); }
.job[open] .job-chevron { transform: rotate(180deg); }
.job-body { padding: 0 1.6rem 1.6rem; border-top: 1px solid var(--rl-line); padding-top: 1.25rem; }

/* ---------- Contact ---------- */
.contact-cards { list-style: none; padding: 0; margin: 0; display: grid; gap: 1px; background: var(--rl-line); border: 1px solid var(--rl-line); border-radius: var(--rl-radius); overflow: hidden; }
.contact-cards li { display: flex; gap: 1.1rem; padding: 1.4rem 1.5rem; background: #fff; }
.contact-cards h2 { margin: .15rem 0 .25rem; }
.contact-cards p { margin: 0; color: var(--rl-muted); }
.contact-cards a { text-decoration: none; font-weight: 600; }
.form-card { background: #fff; border: 1px solid var(--rl-line); border-radius: calc(var(--rl-radius) + 6px); padding: 2.5rem; box-shadow: var(--rl-shadow); }
.form-card .section-head { margin-bottom: 1.75rem; }
.form-card .section-title { font-size: 1.9rem; }
.form-label { font-weight: 600; color: var(--rl-ink); font-size: .97rem; }
.form-control, .form-select { border-color: var(--rl-line); padding: .7rem .95rem; border-radius: 10px; }
.form-control:focus, .form-select:focus { border-color: var(--rl-primary); box-shadow: 0 0 0 .2rem color-mix(in srgb, var(--rl-primary) 18%, transparent); }
.form-status:empty { display: none; }
.form-status { padding: .85rem 1rem; border-radius: 10px; font-weight: 600; }
.form-status.ok { background: color-mix(in srgb, var(--rl-accent) 12%, #fff); color: color-mix(in srgb, var(--rl-accent) 80%, #000); }
.form-status.err { background: #fdecec; color: #a12828; }
.map-frame { border-radius: var(--rl-radius); overflow: hidden; border: 1px solid var(--rl-line); }
.map-frame iframe { width: 100%; height: 440px; border: 0; display: block; }
.btn .spinner-border { width: 1rem; height: 1rem; border-width: .15em; margin-right: .5rem; }
.modal-content { border: 0; border-radius: calc(var(--rl-radius) + 4px); }
.modal-header { padding: 1.5rem 1.75rem 1rem; border: 0; align-items: flex-start; }
.modal-body { padding: .5rem 1.75rem 1.75rem; }

/* ---------- 404 ---------- */
.notfound { padding: 120px 0; }
.nf-mark { display: block; font-family: var(--rl-font-head); font-weight: 700; font-size: clamp(5rem, 3rem + 8vw, 9rem); line-height: 1; color: color-mix(in srgb, var(--rl-primary) 14%, #fff); margin-bottom: 1rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--rl-ink); color: rgba(255,255,255,.72); padding: 80px 0 0; font-size: 1rem; }
.footer-logo { height: 84px; width: auto; margin-bottom: 1rem; }
.footer-tagline { font-family: var(--rl-font-head); color: #fff; font-weight: 600; margin-bottom: .6rem; }
.footer-about { margin-bottom: 1.5rem; max-width: 30em; }
.footer-title { color: #fff; font-size: 1.05rem; margin-bottom: 1.25rem; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: .6rem; }
.footer-links a, .footer-contact a, .footer-legal a { color: rgba(255,255,255,.75); text-decoration: none; }
.footer-links a:hover, .footer-contact a:hover, .footer-legal a:hover { color: #fff; text-decoration: underline; }
.footer-contact { list-style: none; padding: 0; margin: 0; }
.footer-contact li { display: flex; gap: .85rem; margin-bottom: 1.1rem; }
.footer-contact i { color: #8fe39b; margin-top: .2rem; }
.footer-contact strong { display: block; color: #fff; font-weight: 600; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; padding: 1.5rem 0; margin-top: 3.5rem; border-top: 1px solid rgba(255,255,255,.12); font-size: .93rem; }
.footer-cin { margin-left: 1rem; opacity: .7; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 1.25rem; list-style: none; margin: 0; padding: 0; }

/* ---------- Floating buttons ---------- */
.float-whatsapp { position: fixed; right: 20px; bottom: 20px; z-index: 1040; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: #25D366; color: #fff; font-size: 1.7rem; box-shadow: 0 10px 25px -8px rgba(0,0,0,.4); text-decoration: none; }
.float-whatsapp:hover { color: #fff; transform: translateY(-2px); }
.to-top { position: fixed; right: 26px; bottom: 88px; z-index: 1040; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--rl-primary); color: #fff; opacity: 0; visibility: hidden; transition: opacity .2s, visibility .2s; }
.to-top.show { opacity: 1; visibility: visible; }

/* ---------- Responsive ---------- */
@media (max-width: 991.98px) {
    .section { padding: 72px 0; }
    .hero { padding: 40px 0 110px; }
    .hero-visual { max-width: 420px; margin: 0 auto; }
    .stat + .stat { border-left: 0; }
    .stats-grid { gap: 1rem 0; }
    .feature + .feature { border-left: 0; border-top: 1px solid var(--rl-line); }
    .filter-panel, .approach-intro { position: static; }
    .process-step::before { display: none; }
    .cta-inner { padding: 2.5rem 1.75rem; }
    .footer-cin { display: block; margin: .25rem 0 0; }
    .hero-visual::after { display: none; }
    .filter-title { display: none; }
    .filter-list { display: flex; gap: .5rem; overflow-x: auto; border: 0; border-radius: 0; padding-bottom: .25rem; scrollbar-width: none; }
    .filter-list li + li { border: 0; }
    .filter-list a { border: 1px solid var(--rl-line); border-radius: 999px; white-space: nowrap; gap: .5rem; padding: .5rem 1rem; }
    .search-box { margin-bottom: 1rem; }
}
@media (max-width: 575.98px) {
    body { font-size: 1rem; }
    .timeline::before { left: 7px; }
    .timeline li { grid-template-columns: 1fr; gap: .25rem; padding-left: 2rem; }
    .timeline li::after { left: 1px; }
    .gallery-grid { grid-auto-rows: 200px; }
    .gallery-item:nth-child(6n + 1) { grid-row: span 1; }
    .form-card { padding: 1.5rem; }
    .spec-table div { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: 1fr 1fr; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
