/* ==========================================================================
   Azio — Company Profile Website
   Main stylesheet. Mobile-first, no framework dependencies.
   ========================================================================== */

/* ---------- Design tokens ---------- */
:root {
    --primary: #4f46e5;
    --primary-600: #4338ca;
    --primary-50: #eef2ff;
    --accent: #06b6d4;
    --gradient: linear-gradient(135deg, #4f46e5 0%, #7c3aed 50%, #06b6d4 100%);
    --dark: #0b1020;
    --dark-2: #121935;
    --text: #1e2335;
    --muted: #5b6478;
    --border: #e5e7f0;
    --bg: #ffffff;
    --bg-soft: #f6f7fc;
    --success: #059669;
    --danger: #dc2626;

    --radius-sm: 10px;
    --radius: 16px;
    --radius-lg: 24px;
    --shadow-sm: 0 1px 2px rgba(16, 24, 40, .06), 0 1px 3px rgba(16, 24, 40, .08);
    --shadow: 0 10px 30px -12px rgba(30, 35, 80, .18);
    --shadow-lg: 0 24px 60px -20px rgba(30, 35, 80, .35);

    --container: 1200px;
    --header-h: 76px;
    --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- Base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }

body {
    margin: 0;
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.65;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

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

a { color: var(--primary); text-decoration: none; transition: color .2s; }
a:hover { color: var(--primary-600); }

h1, h2, h3, h4 { margin: 0 0 .6em; line-height: 1.2; font-weight: 800; letter-spacing: -.02em; color: var(--dark); }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.2rem; font-weight: 700; letter-spacing: -.01em; }
h4 { font-size: 1.15rem; font-weight: 700; }
p  { margin: 0 0 1em; }

ul, ol { margin: 0; padding: 0; list-style: none; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }

.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

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

.text-gradient {
    background: linear-gradient(90deg, #a5b4fc, #67e8f9);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}

.lead { font-size: 1.125rem; color: var(--muted); }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5em;
    padding: .8em 1.4em; border-radius: 999px; border: 2px solid transparent;
    font: inherit; font-weight: 600; line-height: 1.2; cursor: pointer; white-space: nowrap;
    transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s, color .2s, border-color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-sm { padding: .55em 1.1em; font-size: .9rem; }
.btn-lg { padding: 1em 1.7em; font-size: 1.05rem; }
.btn-block { width: 100%; }

.btn-primary { background: var(--gradient); background-size: 150% 150%; color: #fff; box-shadow: 0 10px 24px -10px rgba(79, 70, 229, .7); }
.btn-primary:hover { color: #fff; background-position: 100% 0; box-shadow: 0 14px 30px -10px rgba(79, 70, 229, .8); }

.btn-outline { border-color: var(--border); color: var(--text); background: #fff; }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }

.btn-light { background: #fff; color: var(--primary); }
.btn-light:hover { color: var(--primary-600); box-shadow: var(--shadow); }

.btn-ghost-light { border-color: rgba(255, 255, 255, .5); color: #fff; background: rgba(255, 255, 255, .08); backdrop-filter: blur(6px); }
.btn-ghost-light:hover { color: #fff; border-color: #fff; background: rgba(255, 255, 255, .16); }

.btn[disabled] { opacity: .7; cursor: progress; transform: none; }

.link-arrow { display: inline-flex; align-items: center; gap: .4em; font-weight: 600; }
.link-arrow .bi { transition: transform .2s var(--ease); }
.link-arrow:hover .bi { transform: translateX(4px); }

/* ---------- Icon badge ---------- */
.icon-badge {
    display: inline-grid; place-items: center; flex-shrink: 0;
    width: 52px; height: 52px; border-radius: 14px;
    background: var(--primary-50); color: var(--primary); font-size: 1.45rem;
}
.icon-badge--sm { width: 40px; height: 40px; border-radius: 11px; font-size: 1.15rem; }
.icon-badge--light { background: rgba(255, 255, 255, .18); color: #fff; }

/* ---------- Eyebrow ---------- */
.eyebrow {
    display: inline-flex; align-items: center; gap: .45em;
    font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
    color: var(--primary); background: var(--primary-50);
    padding: .45em .9em; border-radius: 999px; margin-bottom: 1rem;
}
.eyebrow--light { color: #e0e7ff; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .18); }

/* ---------- Glass ---------- */
.glass {
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .22);
    backdrop-filter: blur(16px) saturate(140%);
    -webkit-backdrop-filter: blur(16px) saturate(140%);
}

/* ---------- Header ---------- */
.site-header {
    position: sticky; top: 0; z-index: 100; height: var(--header-h);
    background: rgba(255, 255, 255, .92);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    transition: background .3s, border-color .3s, box-shadow .3s;
}
.site-header.is-transparent { position: fixed; left: 0; right: 0; background: transparent; border-color: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
.site-header.is-scrolled,
.site-header.is-menu-open { background: rgba(255, 255, 255, .96); border-color: var(--border); box-shadow: var(--shadow-sm); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }

.site-header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--dark); }
.brand:hover { color: var(--dark); }
.brand__name { font-size: 1.6rem; font-weight: 800; letter-spacing: -.04em; }
.site-header.is-transparent:not(.is-scrolled):not(.is-menu-open) .brand,
.brand--light { color: #fff; }
.brand--light:hover { color: #fff; }

.nav-toggle {
    display: inline-grid; place-items: center; width: 44px; height: 44px;
    border: 1px solid var(--border); border-radius: 12px; background: #fff;
    font-size: 1.4rem; color: var(--dark); cursor: pointer; position: relative; z-index: 2;
}
.nav-toggle__close { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__open { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__close { display: inline; }

.site-nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    background: #fff; border-bottom: 1px solid var(--border); box-shadow: var(--shadow);
    padding: 16px 20px 24px;
    display: flex; flex-direction: column; gap: 16px;
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .25s, transform .25s var(--ease), visibility .25s;
}
.site-nav.is-open { opacity: 1; visibility: visible; transform: none; }
.site-nav__list { display: flex; flex-direction: column; }
.nav-link { display: block; padding: 12px 4px; font-weight: 600; color: var(--text); border-bottom: 1px solid var(--border); }
.nav-link:hover, .nav-link.is-active { color: var(--primary); }

@media (min-width: 960px) {
    .nav-toggle { display: none; }
    .site-nav {
        position: static; flex-direction: row; align-items: center; gap: 28px;
        padding: 0; background: none; border: 0; box-shadow: none;
        opacity: 1; visibility: visible; transform: none;
    }
    .site-nav__list { flex-direction: row; gap: 6px; }
    .nav-link { position: relative; padding: 8px 14px; border: 0; border-radius: 999px; }
    .nav-link.is-active { background: var(--primary-50); }
    .site-header.is-transparent:not(.is-scrolled) .nav-link { color: rgba(255, 255, 255, .88); }
    .site-header.is-transparent:not(.is-scrolled) .nav-link:hover,
    .site-header.is-transparent:not(.is-scrolled) .nav-link.is-active { color: #fff; background: rgba(255, 255, 255, .14); }
}

/* ---------- Hero (home) ---------- */
.hero {
    position: relative; isolation: isolate; color: #fff;
    min-height: 100vh; min-height: 100svh;
    display: flex; align-items: center;
    padding: calc(var(--header-h) + 48px) 0 72px;
    background: var(--dark) center / cover no-repeat;
}
.hero::before {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background:
        radial-gradient(60% 60% at 85% 20%, rgba(6, 182, 212, .35), transparent 60%),
        radial-gradient(50% 60% at 10% 90%, rgba(124, 58, 237, .45), transparent 60%),
        linear-gradient(100deg, rgba(11, 16, 32, .93) 0%, rgba(11, 16, 32, .78) 50%, rgba(11, 16, 32, .5) 100%);
}
.hero__inner { display: grid; gap: 48px; align-items: center; }
.hero__title { color: #fff; max-width: 14em; }
.hero__lead { font-size: 1.15rem; color: rgba(255, 255, 255, .82); max-width: 36em; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 28px 0; }
.hero__badges { display: flex; flex-wrap: wrap; gap: 10px 24px; color: rgba(255, 255, 255, .85); font-size: .95rem; }
.hero__badges .bi { color: #67e8f9; margin-right: 6px; }

.hero__card { border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--shadow-lg); }
.hero__card-title { font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: rgba(255, 255, 255, .7); margin-bottom: 12px; }
.hero__card-list a {
    display: flex; align-items: center; gap: 14px; padding: 12px; border-radius: 14px;
    color: #fff; font-weight: 600; transition: background .2s;
}
.hero__card-list a:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.hero__card-list .icon-badge { background: rgba(255, 255, 255, .15); color: #fff; }
.hero__card-arrow { margin-left: auto; font-size: 1.4rem; opacity: .6; transition: transform .2s, opacity .2s; }
.hero__card-list a:hover .hero__card-arrow { transform: translateX(4px); opacity: 1; }

@media (min-width: 960px) {
    .hero__inner { grid-template-columns: 1.35fr 1fr; gap: 64px; }
}

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
    position: relative; isolation: isolate; color: #fff;
    padding: calc(var(--header-h) + 72px) 0 80px;
    background: var(--dark) center / cover no-repeat;
}
.page-hero::before {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background:
        radial-gradient(50% 80% at 90% 10%, rgba(6, 182, 212, .3), transparent 60%),
        linear-gradient(100deg, rgba(11, 16, 32, .9), rgba(49, 46, 129, .6));
}
.page-hero__title { color: #fff; margin-bottom: .35em; }
.page-hero__subtitle { font-size: 1.15rem; color: rgba(255, 255, 255, .82); max-width: 40em; margin: 0; }

.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: .9rem; color: rgba(255, 255, 255, .7); margin-bottom: 18px; }
.breadcrumb a { color: rgba(255, 255, 255, .85); }
.breadcrumb a:hover { color: #fff; }
.breadcrumb .bi-chevron-right { font-size: .7rem; }

/* ---------- Sections ---------- */
.section { padding: 80px 0; }
.section--tight { padding: 56px 0; }
.section--soft { background: var(--bg-soft); }
.section--dark { background: var(--dark); color: rgba(255, 255, 255, .8); position: relative; overflow: hidden; }
.section--dark::before {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background: radial-gradient(40% 80% at 0% 0%, rgba(79, 70, 229, .35), transparent 70%), radial-gradient(40% 80% at 100% 100%, rgba(6, 182, 212, .25), transparent 70%);
}
.section--dark > .container { position: relative; }
.section--dark h2, .section--dark h3 { color: #fff; }

@media (min-width: 960px) {
    .section { padding: 112px 0; }
    .section--tight { padding: 72px 0; }
}

.section-head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.section-head p { color: var(--muted); font-size: 1.1rem; margin: 0; }
.section-head--left { text-align: left; margin-left: 0; }
.section-head--light p { color: rgba(255, 255, 255, .72); }
.section-head--sub { margin-top: 72px; margin-bottom: 36px; }
.section-head--sub h3 { font-size: 1.6rem; }

/* ---------- Tech strip / marquee ---------- */
.tech-strip { padding: 28px 0; border-bottom: 1px solid var(--border); background: #fff; }
.tech-strip__label { text-align: center; font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee__track { display: flex; gap: 40px; width: max-content; animation: marquee 40s linear infinite; }
.marquee__track li { font-size: 1.15rem; font-weight: 700; color: #9aa1b5; white-space: nowrap; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(calc(-50% - 20px)); } }

/* ---------- Service cards ---------- */
.service-grid { display: grid; gap: 20px; }
@media (min-width: 640px) { .service-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .service-grid { grid-template-columns: repeat(3, 1fr); gap: 24px; } }

.service-card {
    position: relative; display: flex; flex-direction: column; gap: 4px;
    padding: 32px; border-radius: var(--radius-lg); background: #fff;
    border: 1px solid var(--border); box-shadow: var(--shadow-sm);
    transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: #c7d2fe; }
.service-card .icon-badge { margin-bottom: 16px; transition: background .3s, color .3s; }
.service-card:hover .icon-badge { background: var(--primary); color: #fff; }
.service-card p { color: var(--muted); flex-grow: 1; }
.service-card--cta { background: var(--gradient); border: 0; color: rgba(255, 255, 255, .88); }
.service-card--cta h3, .service-card--cta .link-arrow, .service-card--cta .link-arrow:hover { color: #fff; }
.service-card--cta p { color: rgba(255, 255, 255, .85); }
.service-card--cta:hover .icon-badge { background: #fff; color: var(--primary); }

/* ---------- Split layout ---------- */
.split { display: grid; gap: 48px; align-items: center; }
.split__media { position: relative; }
.split__media img { width: 100%; aspect-ratio: 11 / 8; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.split__content h2 { margin-bottom: .5em; }

@media (min-width: 960px) {
    .split { grid-template-columns: 1fr 1fr; gap: 72px; }
    .split--reverse .split__media { order: 2; }
}

.floating-card {
    position: absolute; left: 20px; bottom: 20px; right: 20px; max-width: 320px;
    display: flex; align-items: center; gap: 14px; padding: 14px 18px;
    border-radius: var(--radius); color: #fff; background: rgba(11, 16, 32, .55);
}
.floating-card strong { display: block; font-size: 1rem; }
.floating-card span:not(.icon-badge) { font-size: .85rem; opacity: .85; }
.floating-card .icon-badge { background: var(--gradient); color: #fff; }

/* ---------- Features ---------- */
.feature-grid { display: grid; gap: 24px; margin-top: 32px; }
@media (min-width: 640px) { .feature-grid { grid-template-columns: 1fr 1fr; } }
.feature { display: flex; gap: 14px; }
.feature h3 { font-size: 1.05rem; margin-bottom: .3em; }
.feature p { color: var(--muted); font-size: .95rem; margin: 0; }

.check-list { display: grid; gap: 12px; margin: 24px 0 28px; }
.check-list li { display: flex; gap: 10px; align-items: flex-start; }
.check-list .bi { color: var(--primary); font-size: 1.2rem; line-height: 1.4; flex-shrink: 0; }
@media (min-width: 640px) { .check-list--grid { grid-template-columns: 1fr 1fr; gap: 12px 24px; } }

.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.tags li { padding: .35em .85em; border-radius: 999px; background: #fff; border: 1px solid var(--border); font-size: .85rem; font-weight: 600; color: var(--muted); }
.section--soft .tags li { background: #fff; }
.section:not(.section--soft) .tags li { background: var(--bg-soft); }

/* ---------- Commitments ---------- */
.commitments { display: grid; gap: 24px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 960px) { .commitments { grid-template-columns: repeat(4, 1fr); } }
.commitment { text-align: center; padding: 24px 12px; border-radius: var(--radius); border: 1px solid rgba(255, 255, 255, .1); background: rgba(255, 255, 255, .03); }
.commitment strong { display: block; font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 800; line-height: 1.1; background: linear-gradient(90deg, #a5b4fc, #67e8f9); -webkit-background-clip: text; background-clip: text; color: transparent; margin-bottom: 6px; }
.commitment span { font-size: .95rem; }

/* ---------- Steps ---------- */
.steps { display: grid; gap: 20px; counter-reset: step; }
@media (min-width: 640px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.step { position: relative; padding: 32px 28px; border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--border); overflow: hidden; }
.step__number { position: absolute; top: 14px; right: 20px; font-size: 3rem; font-weight: 800; line-height: 1; color: var(--primary-50); }
.step .icon-badge { margin-bottom: 18px; position: relative; }
.step p { color: var(--muted); margin: 0; font-size: .95rem; }
.steps--dark .step { background: rgba(255, 255, 255, .04); border-color: rgba(255, 255, 255, .1); }
.steps--dark .step p { color: rgba(255, 255, 255, .7); }
.steps--dark .step__number { color: rgba(255, 255, 255, .08); }
.steps--dark .icon-badge { background: rgba(255, 255, 255, .1); color: #a5b4fc; }

/* ---------- CTA band ---------- */
.cta-band {
    position: relative; overflow: hidden; display: grid; gap: 28px; align-items: center;
    padding: 48px 32px; border-radius: var(--radius-lg); background: var(--gradient); color: rgba(255, 255, 255, .88);
    box-shadow: var(--shadow-lg);
}
.cta-band::after { content: ""; position: absolute; width: 380px; height: 380px; right: -120px; top: -160px; border-radius: 50%; background: rgba(255, 255, 255, .12); }
.cta-band h2 { color: #fff; font-size: clamp(1.5rem, 3vw, 2.1rem); }
.cta-band p { margin: 0; max-width: 40em; }
.cta-band__content, .cta-band__actions { position: relative; z-index: 1; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (min-width: 960px) {
    .cta-band { grid-template-columns: 1.5fr auto; padding: 64px; }
}

/* ---------- About ---------- */
.mv-grid { display: grid; gap: 24px; }
@media (min-width: 768px) { .mv-grid { grid-template-columns: 1fr 1fr; } }
.mv-card { padding: 40px; border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--border); box-shadow: var(--shadow-sm); }
.mv-card .icon-badge { margin-bottom: 20px; }
.mv-card h2 { font-size: 1.6rem; }
.mv-card p { color: var(--muted); font-size: 1.05rem; margin: 0; }
.mv-card--accent { background: var(--gradient); border: 0; }
.mv-card--accent h2 { color: #fff; }
.mv-card--accent p { color: rgba(255, 255, 255, .88); }

.value-grid { display: grid; gap: 20px; }
@media (min-width: 640px) { .value-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .value-grid { grid-template-columns: repeat(4, 1fr); } }
.value-card { padding: 32px 28px; border-radius: var(--radius-lg); border: 1px solid var(--border); text-align: center; transition: transform .3s var(--ease), box-shadow .3s; }
.value-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.value-card .icon-badge { margin-bottom: 16px; }
.value-card p { color: var(--muted); margin: 0; font-size: .95rem; }

.about-info { display: grid; gap: 24px; }
@media (min-width: 960px) { .about-info { grid-template-columns: 1fr 1fr; } }
.person-card, .info-card { padding: 36px; border-radius: var(--radius-lg); border: 1px solid var(--border); background: #fff; box-shadow: var(--shadow-sm); }
.person-card { display: flex; flex-direction: column; gap: 24px; }
@media (min-width: 560px) { .person-card { flex-direction: row; align-items: flex-start; } }
.person-card__avatar { flex-shrink: 0; width: 96px; height: 96px; border-radius: 50%; display: grid; place-items: center; background: var(--gradient); color: #fff; font-size: 2.6rem; box-shadow: var(--shadow); }
.person-card__role { margin: 0 0 4px; font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--primary); }
.person-card__name { font-size: 1.7rem; margin-bottom: .4em; }
.person-card p { color: var(--muted); }
.person-card__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.person-card__actions .btn { white-space: normal; word-break: break-all; }

.info-card__title { display: flex; align-items: center; gap: 10px; font-size: 1.3rem; }
.info-card__title .bi { color: var(--primary); }
.info-list { margin: 0; display: grid; }
.info-list > div { display: grid; grid-template-columns: 140px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px dashed var(--border); }
.info-list > div:last-child { border-bottom: 0; }
.info-list dt { color: var(--muted); font-size: .92rem; }
.info-list dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }

/* ---------- Services page ---------- */
.service-tabs { position: sticky; top: var(--header-h); z-index: 50; background: rgba(255, 255, 255, .95); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
.service-tabs__list { position: relative; display: flex; gap: 8px; overflow-x: auto; padding: 12px 0; scrollbar-width: none; }
.service-tabs__list::-webkit-scrollbar { display: none; }
.service-tabs__list a { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 999px; white-space: nowrap; font-weight: 600; font-size: .92rem; color: var(--muted); border: 1px solid var(--border); background: #fff; }
.service-tabs__list a:hover, .service-tabs__list a.is-active { color: #fff; background: var(--primary); border-color: var(--primary); }
html:has(.page-services) { scroll-padding-top: calc(var(--header-h) + 80px); }

.model-grid { display: grid; gap: 24px; }
@media (min-width: 900px) { .model-grid { grid-template-columns: repeat(3, 1fr); align-items: stretch; } }
.model-card { position: relative; padding: 36px 30px; border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--border); box-shadow: var(--shadow-sm); }
.model-card .icon-badge { margin-bottom: 16px; }
.model-card h4 { margin-bottom: 2px; font-size: 1.35rem; }
.model-card__subtitle { font-size: .85rem; font-weight: 700; color: var(--primary); text-transform: uppercase; letter-spacing: .06em; }
.model-card p { color: var(--muted); }
.model-card ul { display: grid; gap: 8px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border); }
.model-card li { display: flex; gap: 8px; font-weight: 500; }
.model-card li .bi { color: var(--success); }
.model-card--highlight { background: var(--gradient); border: 0; color: #fff; box-shadow: var(--shadow-lg); }
.model-card--highlight h4, .model-card--highlight .model-card__subtitle, .model-card--highlight li .bi { color: #fff; }
.model-card--highlight p { color: rgba(255, 255, 255, .85); }
.model-card--highlight ul { border-color: rgba(255, 255, 255, .25); }
.model-card__badge { position: absolute; top: 20px; right: 20px; padding: 4px 12px; border-radius: 999px; background: #fff; color: var(--primary); font-size: .75rem; font-weight: 700; }
@media (min-width: 900px) { .model-card--highlight { transform: scale(1.04); } }

.faq-layout { display: grid; gap: 40px; }
@media (min-width: 960px) { .faq-layout { grid-template-columns: 1fr 1.6fr; gap: 72px; align-items: start; } }
.faq { display: grid; gap: 12px; }
.faq__item { border: 1px solid var(--border); border-radius: var(--radius); background: #fff; transition: box-shadow .2s, border-color .2s; }
.faq__item[open] { border-color: #c7d2fe; box-shadow: var(--shadow); }
.faq__item summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 24px; cursor: pointer; font-weight: 700; list-style: none; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__icon { flex-shrink: 0; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--primary-50); color: var(--primary); transition: transform .3s var(--ease), background .2s, color .2s; }
.faq__item[open] .faq__icon { transform: rotate(45deg); background: var(--primary); color: #fff; }
.faq__item p { padding: 0 24px 22px; margin: 0; color: var(--muted); }

/* ---------- Contact ---------- */
.contact-layout { display: grid; gap: 48px; }
@media (min-width: 1024px) { .contact-layout { grid-template-columns: 1fr 1.25fr; gap: 64px; align-items: start; } }

.contact-cards { display: grid; gap: 12px; margin: 28px 0; }
.contact-card { display: flex; align-items: center; gap: 16px; padding: 16px 18px; border-radius: var(--radius); border: 1px solid var(--border); background: #fff; transition: border-color .2s, box-shadow .2s; }
.contact-card:hover { border-color: #c7d2fe; box-shadow: var(--shadow-sm); }
.contact-card > div { display: flex; flex-direction: column; min-width: 0; }
.contact-card__label { font-size: .8rem; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.contact-card strong, .contact-card a, .contact-card span:not(.contact-card__label):not(.icon-badge) { font-weight: 700; color: var(--dark); overflow-wrap: anywhere; }
.contact-card a:hover { color: var(--primary); }
.contact-quick { display: flex; flex-wrap: wrap; gap: 12px; }

.form-card { padding: 32px 24px; border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--border); box-shadow: var(--shadow-lg); }
@media (min-width: 640px) { .form-card { padding: 44px; } }
.form-card__title { font-size: 1.6rem; margin-bottom: .2em; }
.form-card__text { color: var(--muted); }

.form { display: grid; gap: 18px; }
.form__row { display: grid; gap: 18px; }
@media (min-width: 640px) { .form__row { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; font-size: .92rem; }
.req { color: var(--danger); }
.field input, .field select, .field textarea {
    width: 100%; padding: 13px 16px; font: inherit; color: var(--text);
    border: 1.5px solid var(--border); border-radius: 12px; background: var(--bg-soft);
    transition: border-color .2s, box-shadow .2s, background .2s;
}
.field textarea { resize: vertical; min-height: 140px; }
.field select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%235b6478' viewBox='0 0 16 16'%3E%3Cpath d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 44px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--primary); background: #fff; box-shadow: 0 0 0 4px rgba(79, 70, 229, .12); }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--danger); background: #fff; }
.field__error { margin: 0; font-size: .85rem; color: var(--danger); display: flex; gap: 6px; align-items: center; }
.form__note { margin: 0; font-size: .85rem; color: var(--muted); display: flex; gap: 8px; align-items: center; justify-content: center; text-align: center; }

.hp-field { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.alert { display: flex; gap: 12px; align-items: flex-start; padding: 16px 18px; border-radius: 12px; margin-bottom: 20px; font-weight: 500; }
.alert .bi { font-size: 1.25rem; line-height: 1.3; }
.alert p { margin: 0; }
.alert--success { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.alert--error { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }

/* ---------- Footer ---------- */
.site-footer { background: var(--dark); color: rgba(255, 255, 255, .7); padding-top: 72px; font-size: .95rem; }
.site-footer a { color: rgba(255, 255, 255, .78); }
.site-footer a:hover { color: #fff; }
.site-footer__grid { display: grid; gap: 40px; padding-bottom: 48px; }
@media (min-width: 640px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .site-footer__grid { grid-template-columns: 1.6fr 1fr 1.3fr 1.5fr; gap: 48px; } }
.site-footer__brand p { margin: 16px 0 20px; max-width: 26em; }
.site-footer__title { color: #fff; font-size: 1rem; margin-bottom: 18px; }
.site-footer__links { display: grid; gap: 10px; }
.site-footer__contact { display: grid; gap: 12px; }
.site-footer__contact li { display: flex; gap: 10px; align-items: flex-start; }
.site-footer__contact .bi { color: #a5b4fc; line-height: 1.6; }
.site-footer__contact a, .site-footer__contact span { overflow-wrap: anywhere; }
.social { display: flex; gap: 10px; }
.social a { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: rgba(255, 255, 255, .08); font-size: 1.1rem; transition: background .2s, transform .2s; }
.social a:hover { background: var(--primary); transform: translateY(-2px); }
.site-footer__bottom { border-top: 1px solid rgba(255, 255, 255, .08); padding: 20px 0; font-size: .85rem; }
.site-footer__bottom-inner { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }
.site-footer__bottom p { margin: 0; }

/* ---------- Floating action buttons ---------- */
.fab {
    position: fixed; right: 20px; z-index: 90; display: grid; place-items: center;
    width: 50px; height: 50px; border-radius: 50%; border: 0; cursor: pointer;
    font-size: 1.25rem; color: #fff; box-shadow: var(--shadow-lg);
    transition: transform .25s var(--ease), opacity .25s, visibility .25s;
}
.fab:hover { color: #fff; transform: translateY(-3px); }
.fab--call { bottom: 20px; background: var(--success); animation: pulse 2.4s infinite; }
.fab--top { bottom: 82px; background: var(--dark-2); opacity: 0; visibility: hidden; }
.fab--top.is-visible { opacity: 1; visibility: visible; }
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(5, 150, 105, .5); }
    70% { box-shadow: 0 0 0 16px rgba(5, 150, 105, 0); }
    100% { box-shadow: 0 0 0 0 rgba(5, 150, 105, 0); }
}
@media (min-width: 960px) { .fab--call { display: none; } .fab--top { bottom: 24px; } }

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: var(--delay, 0ms); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
    .js .reveal { opacity: 1; transform: none; }
    .marquee__track { animation: none; flex-wrap: wrap; justify-content: center; gap: 12px 32px; width: auto; }
    .marquee__track li[aria-hidden="true"] { display: none; }
}
