/* ==========================================================================
   Ronotori — public website, "Light" style (on top of Bootstrap 5).

   Brand colours from Admin > Settings > Branding arrive through brand_css()
   and override --rt-primary, --rt-primary-rgb, --rt-primary-dark,
   --rt-primary-border, --rt-light, --rt-secondary(-rgb), --rt-navy and
   --rt-logo-h.
   ========================================================================== */

:root {
    --rt-primary: #2563EB;
    --rt-primary-rgb: 37, 99, 235;
    --rt-primary-dark: #1D4ED8;
    --rt-primary-border: #BFDBFE;
    --rt-light: #EFF6FF;
    --rt-secondary: #3B82F6;
    --rt-secondary-rgb: 59, 130, 246;
    --rt-navy: #0F172A;
    --rt-text: #0F172A;
    --rt-logo-h: 40px;

    --rt-ink: #0B0B1A;
    --rt-ink-2: #3D4255;
    --rt-muted: #6B7185;
    --rt-line: #E8E9EF;
    --rt-alt: #F6F7F9;
    --rt-radius: 18px;
    --rt-lift: 0 1px 2px rgba(0, 0, 0, .03), 0 18px 40px -24px rgba(20, 16, 60, .25);

    --bs-primary: var(--rt-primary);
    --bs-primary-rgb: var(--rt-primary-rgb);
    --bs-body-color: var(--rt-ink);
    --bs-body-font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --bs-link-color-rgb: var(--rt-primary-rgb);
    --bs-border-color: var(--rt-line);
}

html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { font-family: var(--bs-body-font-family); color: var(--rt-ink); background: #fff; font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
h1, h2, h3, h4 { font-family: "Manrope", "Inter", system-ui, sans-serif; font-weight: 800; letter-spacing: -0.035em; color: var(--rt-ink); text-wrap: balance; }
p { text-wrap: pretty; }
a { text-decoration: none; color: var(--rt-primary); }
img { max-width: 100%; height: auto; }
.wrap { width: min(1200px, 100% - 40px); margin-inline: auto; }

.skip-link { position: absolute; left: 16px; top: -60px; z-index: 2000; background: var(--rt-ink); color: #fff; padding: 10px 16px; border-radius: 8px; transition: top .15s ease; }
.skip-link:focus { top: 12px; color: #fff; }
:focus-visible { outline: 3px solid rgba(var(--rt-primary-rgb), .4); outline-offset: 2px; }

/* --- Buttons ------------------------------------------------------------ */

.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; font-weight: 600; font-size: 15px; padding: 12px 22px; border-radius: 999px; border: 1px solid transparent; transition: transform .15s ease, background-color .15s ease, border-color .15s ease, color .15s ease; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); }
.btn-lg { padding: 15px 28px; font-size: 16px; }
.btn-sm { padding: 8px 16px; font-size: 14px; }
.btn-primary { background: var(--rt-primary); border-color: var(--rt-primary); color: #fff; }
.btn-primary:hover, .btn-primary:focus, .btn-primary:active { background: var(--rt-primary-dark) !important; border-color: var(--rt-primary-dark) !important; color: #fff !important; }
.btn-ghost, .btn-outline-dark { background: #fff; border-color: var(--rt-line); color: var(--rt-ink); }
.btn-ghost:hover, .btn-outline-dark:hover { background: #fff; border-color: #CFD1DB; color: var(--rt-ink); }
.btn-white { background: #fff; color: var(--rt-ink); }
.btn-white:hover { background: #fff; color: var(--rt-ink); }
.btn-line { border-color: rgba(255, 255, 255, .35); color: #fff; }
.btn-line:hover { border-color: #fff; color: #fff; }

.link-more { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--rt-ink); white-space: nowrap; }
.link-more i { transition: transform .15s ease; }
.link-more:hover { color: var(--rt-primary); }
.link-more:hover i { transform: translateX(3px); }

/* --- Header ------------------------------------------------------------- */

.site-header { position: sticky; top: 0; z-index: 1030; background: rgba(255, 255, 255, .9); backdrop-filter: saturate(180%) blur(14px); -webkit-backdrop-filter: saturate(180%) blur(14px); border-bottom: 1px solid transparent; transition: border-color .2s ease; }
.site-header.is-scrolled { border-bottom-color: var(--rt-line); }
.site-header .navbar { min-height: 76px; padding: 0; }
.site-header .container { max-width: 1240px; }
.brand { display: inline-flex; align-items: center; gap: .6rem; color: var(--rt-ink); }
.brand:hover { color: var(--rt-ink); }
.brand img.brand-mark { width: 34px; height: 34px; }
.brand img.brand-logo { height: var(--rt-logo-h); max-height: none; width: auto; max-width: 240px; object-fit: contain; }
.brand-name { font-family: "Manrope", sans-serif; font-weight: 800; font-size: 1.35rem; letter-spacing: -0.03em; }
.site-header .nav-link { font-size: 15px; font-weight: 500; color: var(--rt-ink-2); padding: 8px 15px !important; border-radius: 999px; transition: background-color .15s ease, color .15s ease; }
.site-header .nav-link:hover { color: var(--rt-ink); background: rgba(0, 0, 0, .04); }
.site-header .nav-link.active { color: var(--rt-ink); font-weight: 600; background: rgba(var(--rt-primary-rgb), .07); }
.navbar-toggler { border: 1px solid var(--rt-line); padding: .45rem .6rem; border-radius: 12px; }
.navbar-toggler:focus { box-shadow: 0 0 0 3px rgba(var(--rt-primary-rgb), .2); }
@media (max-width: 991.98px) {
    .site-header .navbar-collapse { padding: .75rem 0 1rem; }
    .site-header .nav-link { padding: .7rem 1rem !important; }
    .site-header .nav-cta { margin-top: .5rem; }
    .site-header .nav-cta .btn { width: 100%; }
}

/* Submenus (Admin > Menu): a dropdown on wide screens, an indented list in the mobile menu. */
.nav-caret { font-size: .65em; margin-left: 3px; opacity: .55; vertical-align: 1px; transition: transform .15s ease; }
.nav-sub { list-style: none; margin: 0; padding: 0; }
.nav-sub a { display: block; padding: .55rem .9rem; border-radius: 10px; font-size: 14.5px; font-weight: 500; color: var(--rt-ink-2); text-decoration: none; white-space: nowrap; transition: background-color .15s ease, color .15s ease; }
.nav-sub a:hover, .nav-sub a:focus-visible { color: var(--rt-ink); background: rgba(0, 0, 0, .04); }
.nav-sub a.active { color: var(--rt-ink); font-weight: 600; background: rgba(var(--rt-primary-rgb), .07); }
@media (min-width: 992px) {
    .site-header .has-sub { position: relative; }
    .site-header .nav-sub {
        position: absolute; top: 100%; left: 50%; z-index: 20; min-width: 220px; margin-top: 10px; padding: 6px;
        background: #fff; border: 1px solid var(--rt-line); border-radius: 16px; box-shadow: 0 18px 40px -14px rgba(15, 23, 42, .22);
        opacity: 0; visibility: hidden; transform: translate(-50%, 6px); transition: opacity .15s ease, transform .15s ease, visibility .15s;
    }
    /* Keeps the submenu open while the pointer crosses the gap above it. */
    .site-header .nav-sub::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
    .site-header .has-sub:hover > .nav-sub, .site-header .has-sub:focus-within > .nav-sub { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
    .site-header .has-sub:hover .nav-caret, .site-header .has-sub:focus-within .nav-caret { transform: rotate(180deg); }
}
@media (max-width: 991.98px) {
    .site-header .nav-sub { padding: 0 0 .35rem 1rem; }
    .site-header .nav-caret { display: none; }
}

/* --- Sections ----------------------------------------------------------- */

.sec { padding: 110px 0; }
.sec-alt { background: var(--rt-alt); }
.sec-tight { padding: 80px 0; }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 44px; }
.eyebrow { display: block; font-size: 14px; font-weight: 600; color: var(--rt-primary); margin-bottom: 12px; }
.sec-title { font-size: clamp(32px, 3.6vw, 48px); line-height: 1.08; margin: 0; max-width: 640px; }
.sec-lead { font-size: 18px; color: var(--rt-muted); margin: 14px 0 0; max-width: 560px; }
@media (max-width: 767.98px) {
    .sec { padding: 72px 0; }
    .sec-tight { padding: 56px 0; }
    .sec-head { flex-direction: column; align-items: flex-start; margin-bottom: 32px; }
}

/* --- Home hero ---------------------------------------------------------- */

.hero { padding: 88px 0 84px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.pill { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; color: var(--rt-ink-2); padding: 6px 14px 6px 6px; border: 1px solid var(--rt-line); border-radius: 999px; background: #fff; margin-bottom: 26px; }
.pill b { font-size: 12px; font-weight: 700; color: #fff; background: var(--rt-primary); padding: 2px 10px; border-radius: 999px; white-space: nowrap; }
.hero h1 { font-size: clamp(42px, 5.6vw, 76px); line-height: 1.02; margin: 0; }
.hero h1 .hl { color: var(--rt-primary); }
.hero-sub { font-size: 20px; color: var(--rt-muted); margin: 24px 0 36px; max-width: 470px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; }

.collage { display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-rows: 92px; gap: 14px; }
.tile { position: relative; overflow: hidden; background: #fff; border: 1px solid var(--rt-line); border-radius: 18px; padding: 16px; box-shadow: var(--rt-lift); }
.t-site { grid-column: 1 / 5; grid-row: 1 / 4; padding: 0; }
.t-phone { grid-column: 5 / 7; grid-row: 1 / 4; display: grid; place-items: center; background: linear-gradient(160deg, rgba(var(--rt-primary-rgb), .08), rgba(var(--rt-secondary-rgb), .1)); }
.t-growth { grid-column: 1 / 4; grid-row: 4 / 6; }
.t-ai { grid-column: 4 / 7; grid-row: 4 / 6; }
.browser-bar { display: flex; gap: 6px; padding: 12px 14px; border-bottom: 1px solid var(--rt-line); }
.browser-bar i { width: 9px; height: 9px; border-radius: 50%; background: #E3E4EA; }
.site-body { padding: 18px; display: grid; gap: 12px; }
.sk { height: 9px; border-radius: 6px; background: #ECEDF2; }
.sk.dark { background: #C9CBD6; }
.sk.pill-sk { background: var(--rt-primary); width: 90px; height: 24px; border-radius: 999px; }
.site-hero { height: 96px; border-radius: 12px; background: linear-gradient(120deg, var(--rt-primary), color-mix(in srgb, var(--rt-primary) 55%, #A855F7) 60%, var(--rt-secondary)); }
.site-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.site-cards div { height: 46px; border-radius: 10px; background: #F4F4F8; }
.phone { width: 96px; height: 190px; border-radius: 22px; background: #0B0B1A; padding: 7px; box-shadow: 0 16px 30px -14px rgba(0, 0, 0, .5); }
.phone > div { height: 100%; border-radius: 16px; background: #fff; padding: 10px 8px; display: grid; gap: 6px; align-content: start; }
.phone .ph-top { height: 44px; border-radius: 10px; background: linear-gradient(140deg, var(--rt-primary), var(--rt-secondary)); }
.tile-label { font-size: 13px; font-weight: 600; color: var(--rt-muted); display: flex; align-items: center; gap: 6px; }
.tile-big { font-family: "Manrope", sans-serif; font-weight: 800; font-size: 26px; letter-spacing: -0.03em; }
.tile svg { position: absolute; right: 14px; bottom: 14px; width: 55%; height: 60px; }
.tile svg path { stroke: var(--rt-secondary); }
.bubble { font-size: 13px; padding: 8px 12px; border-radius: 14px; margin-top: 8px; width: fit-content; max-width: 90%; line-height: 1.4; }
.bubble.me { background: #F1F1F6; color: var(--rt-ink-2); }
.bubble.bot { background: var(--rt-primary); color: #fff; margin-left: auto; }
@media (max-width: 991.98px) {
    .hero { padding: 56px 0 64px; }
    .hero-grid { grid-template-columns: 1fr; gap: 44px; }
}
@media (max-width: 575.98px) {
    .collage { grid-auto-rows: 70px; gap: 10px; }
    .phone { width: 72px; height: 140px; }
    .hero-sub { font-size: 18px; }
    .tile { padding: 12px; }
    .tile-big { font-size: 18px; }
    .tile svg { width: 45%; height: 34px; right: 10px; bottom: 10px; }
    .t-ai .bubble { font-size: 11px; padding: 5px 9px; margin-top: 5px; }
    .pill { font-size: 13px; }
}

/* --- Technology strip --------------------------------------------------- */

.tech { padding: 30px 0; border-top: 1px solid var(--rt-line); border-bottom: 1px solid var(--rt-line); overflow: hidden; }
.tech .wrap { display: flex; align-items: center; gap: 36px; }
.tech-cap { flex: 0 0 auto; font-size: 14px; font-weight: 600; color: var(--rt-muted); }
.marquee { flex: 1; min-width: 0; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.track { display: flex; gap: 46px; width: max-content; animation: slide 45s linear infinite; }
.marquee:hover .track { animation-play-state: paused; }
.track span { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 15px; color: var(--rt-ink-2); white-space: nowrap; }
.track img { width: 28px; height: 28px; }
@keyframes slide { to { transform: translateX(-50%); } }
@media (max-width: 575.98px) { .tech-cap { display: none; } }

/* --- Services bento ----------------------------------------------------- */

.bento { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.svc { position: relative; display: flex; flex-direction: column; justify-content: space-between; min-height: 230px; padding: 26px; background: #fff; border: 1px solid var(--rt-line); border-radius: var(--rt-radius); overflow: hidden; color: var(--rt-ink); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.svc:hover { transform: translateY(-3px); box-shadow: 0 24px 50px -30px rgba(20, 16, 60, .35); border-color: #D7D5EA; color: var(--rt-ink); }
.svc.wide { grid-column: span 2; }
.svc-text { position: relative; z-index: 1; max-width: 260px; }
.svc-ico { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; font-size: 22px; background: rgba(var(--rt-primary-rgb), .08); color: var(--rt-primary); }
.svc h3 { font-size: 22px; margin: 22px 0 0; }
.svc p { color: var(--rt-muted); margin: 6px 0 0; }
.svc .go { position: absolute; top: 22px; right: 22px; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--rt-line); color: var(--rt-ink-2); transition: all .2s ease; }
.svc:hover .go { background: var(--rt-primary); color: #fff; border-color: var(--rt-primary); transform: rotate(-45deg); }
.svc .art { position: absolute; right: -10px; bottom: -10px; width: 50%; height: 64%; border-radius: 16px 0 0 0; background: #F6F6FA; border: 1px solid var(--rt-line); padding: 16px; display: grid; gap: 8px; align-content: start; }
.code { font: 500 12px/1.75 ui-monospace, Consolas, monospace; color: var(--rt-muted); }
.code b { color: var(--rt-primary); font-weight: 600; }
.code em { color: #EA580C; font-style: normal; }
@media (max-width: 991.98px) { .bento { grid-template-columns: 1fr 1fr; } }
@media (max-width: 575.98px) {
    .bento { grid-template-columns: 1fr; }
    .svc.wide { grid-column: auto; }
    .svc .art { display: none; }
    .svc { min-height: 0; }
}

/* --- Work --------------------------------------------------------------- */

.work-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.case { display: block; color: var(--rt-ink); }
.case:hover { color: var(--rt-ink); }
.cover { position: relative; aspect-ratio: 4 / 3; border-radius: var(--rt-radius); overflow: hidden; display: grid; place-items: center; padding: 28px; background-color: var(--rt-alt); }
.cover > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.case:hover .cover > img { transform: scale(1.04); }
.cover .screen { width: 86%; background: #fff; border-radius: 12px; box-shadow: 0 30px 60px -24px rgba(0, 0, 0, .45); overflow: hidden; transition: transform .35s ease; }
.case:hover .screen { transform: translateY(-6px) scale(1.02); }
.cover .screen .browser-bar { padding: 9px 12px; }
.cover .screen .site-body { padding: 14px; gap: 9px; }
.cv0 { background: linear-gradient(140deg, var(--rt-primary), color-mix(in srgb, var(--rt-primary) 50%, #A855F7)); }
.cv1 { background: linear-gradient(140deg, #FF7A3C, #FDB14A); }
.cv2 { background: linear-gradient(140deg, #0F766E, #34D399); }
.cover-mark { font-family: "Manrope", sans-serif; font-weight: 800; font-size: 34px; color: rgba(255, 255, 255, .95); position: relative; }
.tag { position: absolute; top: 16px; left: 16px; z-index: 1; font-size: 12px; font-weight: 600; color: #fff; background: rgba(0, 0, 0, .4); backdrop-filter: blur(6px); padding: 4px 11px; border-radius: 999px; }
.tag.sample { left: auto; right: 16px; background: rgba(255, 255, 255, .9); color: var(--rt-ink-2); }
.case-meta { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-top: 16px; }
.case-meta h3 { font-size: 20px; font-weight: 700; margin: 0; }
.case-meta span { font-size: 14px; color: var(--rt-muted); white-space: nowrap; }
@media (max-width: 991.98px) { .work-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 575.98px) { .work-grid { grid-template-columns: 1fr; } }

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 36px; }
.filters a { font-size: 14px; font-weight: 600; color: var(--rt-ink-2); padding: 8px 16px; border-radius: 999px; border: 1px solid var(--rt-line); background: #fff; transition: all .15s ease; }
.filters a:hover { border-color: #CFD1DB; color: var(--rt-ink); }
.filters a.active { background: var(--rt-ink); border-color: var(--rt-ink); color: #fff; }

/* --- Why, steps, chips -------------------------------------------------- */

.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.why-card { padding: 30px; border-radius: var(--rt-radius); background: #fff; border: 1px solid var(--rt-line); }
.why-card i { font-size: 26px; color: var(--rt-primary); }
.why-card h3 { font-size: 20px; font-weight: 700; margin: 18px 0 6px; }
.why-card p { color: var(--rt-muted); margin: 0; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 16px; }
.step { padding: 24px; border-radius: var(--rt-radius); border: 1px dashed #CFCDE0; }
.step b { font-family: "Manrope", sans-serif; font-size: 14px; color: var(--rt-primary); }
.step h3 { font-size: 18px; font-weight: 700; margin: 10px 0 4px; }
.step p { font-size: 14.5px; color: var(--rt-muted); margin: 0; }
@media (max-width: 991.98px) { .why-grid { grid-template-columns: 1fr; } .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 575.98px) { .steps { grid-template-columns: 1fr; } }

.chips { display: flex; flex-wrap: wrap; gap: 12px; }
.chips > * { display: inline-flex; align-items: center; gap: 10px; padding: 14px 20px; border-radius: 999px; background: #fff; border: 1px solid var(--rt-line); font-weight: 600; color: var(--rt-ink); }
.chips i { color: var(--rt-primary); font-size: 18px; }
.chips a:hover { border-color: #CFD1DB; color: var(--rt-ink); }

/* --- CTA ---------------------------------------------------------------- */

.cta-wrap { padding: 40px 0 110px; }
.cta-box { position: relative; overflow: hidden; border-radius: 32px; padding: 80px 40px; text-align: center; background: var(--rt-primary); color: #fff; }
.cta-box::before { content: ""; position: absolute; width: 520px; height: 520px; border-radius: 50%; right: -160px; top: -260px; background: radial-gradient(circle, rgba(var(--rt-secondary-rgb), .55), transparent 65%); }
.cta-box::after { content: ""; position: absolute; width: 460px; height: 460px; border-radius: 50%; left: -160px; bottom: -280px; background: radial-gradient(circle, rgba(124, 92, 255, .6), transparent 65%); }
.cta-box > * { position: relative; z-index: 1; }
.cta-box h2 { font-size: clamp(32px, 4vw, 54px); color: #fff; margin: 0; }
.cta-box p { font-size: 19px; color: rgba(255, 255, 255, .8); margin: 14px auto 32px; }
.cta-box .btns { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
@media (max-width: 575.98px) { .cta-box { padding: 56px 22px; border-radius: 24px; } .cta-wrap { padding: 24px 0 72px; } }

/* --- Inner page hero ---------------------------------------------------- */

.page-hero { padding: 72px 0 56px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0 0 22px; font-size: 14px; color: var(--rt-muted); }
.crumbs a { color: var(--rt-muted); }
.crumbs a:hover { color: var(--rt-ink); }
.crumbs li + li::before { content: "/"; margin-right: 8px; color: #C9CBD6; }
.page-hero h1 { font-size: clamp(38px, 5vw, 64px); line-height: 1.04; margin: 0; max-width: 860px; }
.page-hero .lead { font-size: 20px; color: var(--rt-muted); margin: 18px 0 0; max-width: 640px; }
.page-hero .page-ico { width: 60px; height: 60px; border-radius: 18px; display: grid; place-items: center; font-size: 28px; background: rgba(var(--rt-primary-rgb), .08); color: var(--rt-primary); margin-bottom: 22px; }
.page-hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
@media (max-width: 767.98px) { .page-hero { padding: 48px 0 36px; } .page-hero .lead { font-size: 18px; } }

/* --- Cards on inner pages ----------------------------------------------- */

.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.info-card { padding: 28px; border-radius: var(--rt-radius); background: #fff; border: 1px solid var(--rt-line); }
.info-card .ico { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; font-size: 22px; background: rgba(var(--rt-primary-rgb), .08); color: var(--rt-primary); }
.info-card h3 { font-size: 20px; font-weight: 700; margin: 18px 0 6px; }
.info-card p { color: var(--rt-muted); margin: 0; }
@media (max-width: 991.98px) { .card-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 575.98px) { .card-grid { grid-template-columns: 1fr; } }

.split { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 48px; align-items: start; }
@media (max-width: 991.98px) { .split { grid-template-columns: 1fr; } }
.side-card { padding: 26px; border-radius: var(--rt-radius); background: var(--rt-alt); }
.side-card h2 { font-size: 18px; font-weight: 700; margin: 0 0 14px; }
.side-card p { color: var(--rt-muted); font-size: 15px; margin: 0 0 18px; }
.side-stack { position: sticky; top: 100px; display: grid; gap: 16px; }
@media (max-width: 991.98px) { .side-stack { position: static; } }
.side-nav { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; }
.side-nav a { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 10px; color: var(--rt-ink-2); font-weight: 500; font-size: 15px; }
.side-nav a:hover { background: #fff; color: var(--rt-ink); }
.side-nav i { color: var(--rt-primary); }
.facts { margin: 0; display: grid; gap: 14px; font-size: 15px; }
.facts dt { font-size: 13px; font-weight: 500; color: var(--rt-muted); }
.facts dd { margin: 2px 0 0; font-weight: 600; }

.feature-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.feature-grid div { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-radius: 14px; border: 1px solid var(--rt-line); font-weight: 600; }
.feature-grid i { width: 30px; height: 30px; flex: 0 0 30px; border-radius: 9px; display: grid; place-items: center; background: rgba(var(--rt-primary-rgb), .08); color: var(--rt-primary); font-size: 15px; }
@media (max-width: 575.98px) { .feature-grid { grid-template-columns: 1fr; } }

.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font-size: 13px; font-weight: 600; color: var(--rt-ink-2); background: #fff; border: 1px solid var(--rt-line); border-radius: 999px; padding: 5px 12px; }

.note { display: flex; gap: 10px; align-items: flex-start; padding: 14px 18px; border-radius: 14px; background: rgba(var(--rt-primary-rgb), .06); color: var(--rt-ink-2); font-size: 15px; margin-bottom: 28px; }
.note i { color: var(--rt-primary); }

/* --- Long-form content -------------------------------------------------- */

.prose { font-size: 17px; line-height: 1.75; color: var(--rt-ink-2); }
.prose > *:first-child { margin-top: 0; }
.prose h2 { font-size: 28px; margin: 2.2rem 0 .8rem; }
.prose h3 { font-size: 22px; margin: 2rem 0 .7rem; }
.prose p { margin-bottom: 1.15rem; }
.prose ul, .prose ol { margin-bottom: 1.25rem; padding-left: 1.3rem; }
.prose li { margin-bottom: .45rem; }
.prose li::marker { color: var(--rt-primary); }
.prose blockquote { border-left: 3px solid var(--rt-primary); padding: .25rem 0 .25rem 1.25rem; color: var(--rt-ink); font-size: 19px; margin: 1.5rem 0; }
.prose img { border-radius: 14px; }
.prose a { text-decoration: underline; text-underline-offset: 3px; }

/* --- Blog --------------------------------------------------------------- */

.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.post-card { display: flex; flex-direction: column; color: var(--rt-ink); }
.post-card:hover { color: var(--rt-ink); }
.post-cover { aspect-ratio: 16 / 10; border-radius: var(--rt-radius); overflow: hidden; display: grid; place-items: center; background-color: var(--rt-alt); position: relative; }
.post-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.post-card:hover .post-cover img { transform: scale(1.04); }
.post-cover i { font-size: 34px; color: rgba(255, 255, 255, .9); }
.post-meta { display: flex; gap: 10px; align-items: center; font-size: 13px; color: var(--rt-muted); margin-top: 16px; }
.post-meta .cat { color: var(--rt-primary); font-weight: 600; }
.post-card h3 { font-size: 20px; font-weight: 700; line-height: 1.3; margin: 8px 0 0; transition: color .15s ease; }
.post-card:hover h3 { color: var(--rt-primary); }
@media (max-width: 991.98px) { .post-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 575.98px) { .post-grid { grid-template-columns: 1fr; } }
.article { width: min(760px, 100% - 40px); margin-inline: auto; }
.article-cover { border-radius: 22px; overflow: hidden; margin-bottom: 40px; }
.article-cover img { width: 100%; display: block; }

/* --- Contact ------------------------------------------------------------ */

.contact-grid { display: grid; grid-template-columns: 360px minmax(0, 1fr); gap: 40px; align-items: start; }
@media (max-width: 991.98px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-list { display: grid; gap: 12px; }
.contact-item { display: flex; align-items: center; gap: 14px; padding: 18px; border-radius: 16px; border: 1px solid var(--rt-line); color: var(--rt-ink); background: #fff; transition: border-color .15s ease; }
a.contact-item:hover { border-color: #CFD1DB; color: var(--rt-ink); }
.contact-item i { width: 44px; height: 44px; flex: 0 0 44px; border-radius: 12px; display: grid; place-items: center; font-size: 19px; background: rgba(var(--rt-primary-rgb), .08); color: var(--rt-primary); }
.contact-item i.bi-whatsapp { background: #E9FBEF; color: #128C4A; }
.contact-item small { display: block; font-size: 13px; color: var(--rt-muted); }
.contact-item b { display: block; font-weight: 600; word-break: break-word; }

.form-card { padding: 36px; border-radius: 24px; border: 1px solid var(--rt-line); background: #fff; }
@media (max-width: 575.98px) { .form-card { padding: 22px; } }
.form-label { font-weight: 600; font-size: 14px; color: var(--rt-ink-2); margin-bottom: 6px; }
.form-control, .form-select { border: 1px solid #DCDEE6; border-radius: 12px; padding: 12px 14px; font-size: 15.5px; color: var(--rt-ink); }
.form-control:focus, .form-select:focus { border-color: var(--rt-primary); box-shadow: 0 0 0 4px rgba(var(--rt-primary-rgb), .12); }
.form-control::placeholder { color: #A2A6B5; }
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.service-picks { display: flex; flex-wrap: wrap; gap: 8px; }
.service-picks input { position: absolute; opacity: 0; pointer-events: none; }
.service-picks label { cursor: pointer; font-size: 14px; font-weight: 600; color: var(--rt-ink-2); padding: 9px 15px; border-radius: 999px; border: 1px solid var(--rt-line); transition: all .15s ease; }
.service-picks label:hover { border-color: #CFD1DB; }
.service-picks input:checked + label { background: var(--rt-ink); border-color: var(--rt-ink); color: #fff; }
.service-picks input:focus-visible + label { outline: 3px solid rgba(var(--rt-primary-rgb), .4); outline-offset: 2px; }
.sent { text-align: center; padding: 48px 12px; }
.sent .ico { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 22px; font-size: 32px; background: #E9FBEF; color: #128C4A; }
.map-frame { border-radius: 22px; overflow: hidden; line-height: 0; border: 1px solid var(--rt-line); margin-top: 48px; }
.map-frame iframe { width: 100%; height: 380px; border: 0; }

/* --- Pagination --------------------------------------------------------- */

.pagination { --bs-pagination-color: var(--rt-ink-2); --bs-pagination-border-color: var(--rt-line); --bs-pagination-hover-color: var(--rt-ink); --bs-pagination-hover-bg: var(--rt-alt); --bs-pagination-active-bg: var(--rt-ink); --bs-pagination-active-border-color: var(--rt-ink); gap: 6px; flex-wrap: wrap; justify-content: center; margin-top: 48px; }
.pagination .page-link { border-radius: 999px !important; font-weight: 600; font-size: 14px; min-width: 40px; text-align: center; }

.empty { text-align: center; color: var(--rt-muted); padding: 64px 0; }

/* --- Footer (unchanged) ------------------------------------------------- */

.site-footer { background: var(--rt-navy); color: #94A3B8; padding: 80px 0 0; margin-top: 0; font-size: .95rem; }
.site-footer .brand, .site-footer .brand:hover { color: #fff; }
.site-footer .brand img.brand-logo { height: 44px; }
.site-footer h2 { color: #fff; font-size: .82rem; font-family: "Inter", sans-serif; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; margin-bottom: 1.25rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .7rem; }
.site-footer a { color: #94A3B8; transition: color .2s ease; }
.site-footer a:hover { color: #fff; }
.footer-contact li { display: flex; gap: .7rem; align-items: flex-start; }
.footer-contact i { color: color-mix(in srgb, var(--rt-primary) 55%, #fff); margin-top: .15rem; }
.socials { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.5rem; }
.socials a { width: 40px; height: 40px; border-radius: 10px; border: 1px solid rgba(148, 163, 184, .25); display: grid; place-items: center; color: #CBD5E1; transition: all .2s ease; }
.socials a:hover { background: var(--rt-primary); border-color: var(--rt-primary); color: #fff; transform: translateY(-2px); }
.footer-bottom { border-top: 1px solid rgba(148, 163, 184, .16); margin-top: 64px; padding: 1.5rem 0; font-size: .88rem; }
.cta-wrap + .site-footer, .no-footer-gap + .site-footer { margin-top: 0; }

.wa-float { position: fixed; right: 20px; bottom: 20px; z-index: 1040; width: 54px; height: 54px; border-radius: 50%; background: #25D366; color: #fff; display: grid; place-items: center; font-size: 1.6rem; box-shadow: 0 10px 26px rgba(15, 23, 42, .22); transition: transform .2s ease; }
.wa-float:hover { color: #fff; transform: scale(1.06); }

/* --- Motion ------------------------------------------------------------- */

.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; transition-delay: var(--d, 0s); }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .js .reveal { opacity: 1; transform: none; transition: none; }
    .track { animation: none; }
    .btn, .svc, .case .screen, .cover > img, .post-cover img { transition: none; }
}

/* --- Error page --------------------------------------------------------- */

.error-code { font-family: "Manrope", sans-serif; font-weight: 800; font-size: clamp(5rem, 3rem + 10vw, 9rem); line-height: 1; letter-spacing: -0.05em; color: var(--rt-primary); }

/* Project page: the card's cover, shown wide, without its caption. */
.case-hero .case { pointer-events: none; }
.case-hero .cover { aspect-ratio: 16 / 9; }
.case-hero .cover .screen { width: min(620px, 72%); }
.case-hero .case-meta { display: none; }
@media (max-width: 575.98px) { .case-hero .cover { aspect-ratio: 4 / 3; } }
