/* ==========================================================
   Careosoft Jhalawar – Main Stylesheet (mobile-first)
   ========================================================== */

:root {
    --navy-900: #071630;
    --navy-800: #0b1f3a;
    --navy-700: #12305a;
    --blue-600: #1e6fd9;
    --blue-500: #2f86f6;
    --blue-400: #5aa6ff;
    --sky-100:  #e8f2ff;
    --sky-50:   #f4f8ff;
    --white:    #ffffff;
    --ink:      #0f1b2d;
    --text:     #4a5872;
    --muted:    #7a879c;
    --line:     #e3e9f3;
    --success:  #16a34a;
    --error:    #dc2626;
    --whatsapp: #25d366;

    --grad: linear-gradient(135deg, #1e6fd9 0%, #2f86f6 50%, #37c2f5 100%);
    --grad-dark: linear-gradient(135deg, #071630 0%, #0b1f3a 55%, #12305a 100%);

    --font-head: 'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;

    --radius-sm: 10px;
    --radius:    16px;
    --radius-lg: 24px;
    --shadow-sm: 0 2px 10px rgba(11, 31, 58, .06);
    --shadow:    0 10px 30px rgba(11, 31, 58, .08);
    --shadow-lg: 0 24px 60px rgba(11, 31, 58, .16);
    --ease:      cubic-bezier(.22, .61, .36, 1);
    --header-h:  70px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 10px); -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text);
    background: var(--white);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-600); text-decoration: none; transition: color .2s; }
a:hover { color: var(--navy-800); }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--ink); line-height: 1.25; margin: 0 0 .6em; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; cursor: pointer; }
address { font-style: normal; }
:focus-visible { outline: 3px solid var(--blue-400); outline-offset: 3px; border-radius: 4px; }

.skip-link {
    position: absolute; left: 1rem; top: -100px; z-index: 1000;
    background: var(--navy-800); color: #fff; padding: .6rem 1rem; border-radius: 8px;
}
.skip-link:focus { top: 1rem; color: #fff; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.container--narrow { max-width: 860px; }
.text-gradient { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
    padding: .8rem 1.5rem; border-radius: 50px; border: 2px solid transparent;
    font-family: var(--font-head); font-weight: 600; font-size: .95rem; line-height: 1.2;
    text-align: center; white-space: nowrap; position: relative; overflow: hidden;
    transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s, color .25s, border-color .25s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--sm { padding: .55rem 1.1rem; font-size: .88rem; }
.btn--lg { padding: .95rem 1.8rem; font-size: 1rem; }
.btn--block { width: 100%; }
.btn--primary { background: var(--grad); color: #fff; box-shadow: 0 8px 20px rgba(30, 111, 217, .3); }
.btn--primary:hover { color: #fff; box-shadow: 0 12px 28px rgba(30, 111, 217, .42); }
.btn--white { background: #fff; color: var(--navy-800); box-shadow: 0 8px 20px rgba(0, 0, 0, .12); }
.btn--white:hover { color: var(--blue-600); }
.btn--outline-light { border-color: rgba(255, 255, 255, .55); color: #fff; background: rgba(255, 255, 255, .06); }
.btn--outline-light:hover { background: #fff; color: var(--navy-800); border-color: #fff; }
.btn--whatsapp { background: var(--whatsapp); color: #fff; }
.btn--whatsapp:hover { background: #1ebe5b; color: #fff; box-shadow: 0 10px 24px rgba(37, 211, 102, .35); }

.link-arrow { display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; font-family: var(--font-head); font-size: .92rem; }
.link-arrow i { transition: transform .25s var(--ease); }
.link-arrow:hover i { transform: translateX(4px); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 100; }
.topbar { display: none; background: var(--navy-900); color: #c6d3e8; font-size: .85rem; }
.topbar__inner { display: flex; justify-content: space-between; align-items: center; padding-top: .45rem; padding-bottom: .45rem; }
.topbar__info { display: flex; gap: 1.5rem; }
.topbar a, .topbar span { color: #c6d3e8; display: inline-flex; align-items: center; gap: .45rem; }
.topbar a:hover { color: #fff; }
.topbar__social { display: flex; gap: 1rem; }

.navbar {
    background: rgba(255, 255, 255, .92);
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid transparent;
    transition: box-shadow .3s, border-color .3s;
}
.site-header.is-scrolled .navbar { box-shadow: var(--shadow); border-color: var(--line); }
.navbar__inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }

.brand { display: inline-flex; align-items: center; gap: .6rem; color: var(--navy-800); }
.brand img { width: 44px; height: 44px; }
.brand__text { font-family: var(--font-head); font-weight: 800; font-size: 1.45rem; line-height: 1; color: var(--navy-800); display: flex; flex-wrap: wrap; align-items: baseline; }
.brand__text span { color: var(--blue-600); }
.brand__text small { display: block; width: 100%; font-size: .62rem; font-weight: 600; letter-spacing: .32em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }
.brand--light .brand__text { color: #fff; }
.brand--light .brand__text span { color: var(--blue-400); }
.brand--light .brand__text small { color: #9fb3d1; }

.nav-toggle {
    display: flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 44px; height: 44px; padding: 10px; border: 0; border-radius: 10px; background: var(--sky-100);
}
.nav-toggle span { display: block; height: 2px; background: var(--navy-800); border-radius: 2px; transition: transform .3s, opacity .3s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-menu {
    position: fixed; inset: var(--header-h) 0 auto 0;
    background: #fff; padding: 1rem 16px 1.5rem;
    display: flex; flex-direction: column; gap: .25rem;
    box-shadow: var(--shadow-lg);
    max-height: calc(100vh - var(--header-h)); overflow-y: auto;
    transform: translateY(-12px); opacity: 0; visibility: hidden;
    transition: transform .3s var(--ease), opacity .3s, visibility .3s;
}
.nav-menu.is-open { transform: none; opacity: 1; visibility: visible; }
.nav-link {
    display: block; padding: .75rem .9rem; border-radius: 10px;
    font-family: var(--font-head); font-weight: 500; color: var(--ink);
}
.nav-link:hover, .nav-link.is-active { background: var(--sky-100); color: var(--blue-600); }
.nav-menu__cta { margin-top: .5rem; }
.nav-menu__cta .btn { width: 100%; }

/* ---------- Hero ---------- */
.hero {
    position: relative; overflow: hidden; color: #d6e2f5;
    background: var(--grad-dark);
    padding: 3.5rem 0 4.5rem;
}
.hero__bg { position: absolute; inset: 0; pointer-events: none; }
.blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .5; }
.blob--1 { width: 380px; height: 380px; background: #1e6fd9; top: -120px; right: -80px; animation: float 12s ease-in-out infinite; }
.blob--2 { width: 300px; height: 300px; background: #37c2f5; bottom: -140px; left: -100px; opacity: .3; animation: float 14s ease-in-out infinite reverse; }
.hero__grid {
    position: absolute; inset: 0; opacity: .08;
    background-image: linear-gradient(#fff 1px, transparent 1px), linear-gradient(90deg, #fff 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
}
.hero__inner { position: relative; display: grid; gap: 2.5rem; align-items: center; }
.eyebrow {
    display: inline-flex; align-items: center; gap: .5rem;
    padding: .45rem 1rem; border-radius: 50px; font-size: .82rem; font-weight: 500;
    background: rgba(90, 166, 255, .14); border: 1px solid rgba(90, 166, 255, .3); color: #a9cdff;
    margin-bottom: 1.2rem;
}
.hero h1 { color: #fff; font-size: clamp(2rem, 7vw, 3.6rem); font-weight: 800; letter-spacing: -.02em; margin-bottom: 1rem; }
.hero__lead { font-size: 1.05rem; max-width: 560px; color: #c0cee6; margin-bottom: 2rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .9rem; }
.hero__actions--center { justify-content: center; }
.hero__actions .btn { flex: 1 1 auto; }
.hero__trust { display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; margin-top: 2rem; font-size: .9rem; }
.hero__trust li { display: inline-flex; align-items: center; gap: .45rem; }
.hero__trust i { color: #4ade80; }
.hero__visual { position: relative; max-width: 560px; margin: 0 auto; width: 100%; }
.hero__visual img { width: 100%; filter: drop-shadow(0 30px 50px rgba(0, 0, 0, .35)); animation: float 7s ease-in-out infinite; }
.float-card {
    position: absolute; display: none; align-items: center; gap: .7rem;
    background: #fff; color: var(--ink); padding: .75rem 1rem; border-radius: 14px; box-shadow: var(--shadow-lg);
    font-size: .85rem; line-height: 1.3;
}
.float-card i { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: var(--sky-100); color: var(--blue-600); font-size: 1.1rem; }
.float-card strong { display: block; font-family: var(--font-head); }
.float-card small { color: var(--muted); }
.float-card--1 { top: 12%; left: -4%; animation: float 6s ease-in-out infinite; }
.float-card--2 { bottom: 10%; right: -2%; animation: float 8s ease-in-out infinite reverse; }

@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }

/* ---------- Sections ---------- */
.section { padding: 4.5rem 0; position: relative; }
.section--alt { background: var(--sky-50); }
.section--dark { background: var(--grad-dark); color: #c0cee6; }
.section--slider { padding: 0; margin-top: -2.5rem; z-index: 2; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 2.8rem; }
.section-head p { font-size: 1.05rem; margin: 0; }
.section-head--light .section-title { color: #fff; }
.section-tag {
    display: inline-block; padding: .35rem 1rem; border-radius: 50px; margin-bottom: .9rem;
    background: var(--sky-100); color: var(--blue-600);
    font-family: var(--font-head); font-weight: 600; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase;
}
.section--dark .section-tag { background: rgba(90, 166, 255, .15); color: var(--blue-400); }
.section-title { font-size: clamp(1.65rem, 4.5vw, 2.5rem); font-weight: 700; letter-spacing: -.01em; }

.grid { display: grid; gap: 1.4rem; grid-template-columns: 1fr; }

/* ---------- Slider (shared) ---------- */
.slider { position: relative; }
.slider__track { position: relative; display: grid; }
.slide {
    grid-area: 1 / 1; opacity: 0; visibility: hidden;
    transform: translateX(30px); transition: opacity .7s var(--ease), transform .7s var(--ease), visibility .7s;
}
.slide.is-active { opacity: 1; visibility: visible; transform: none; }
.slider__arrow {
    position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
    width: 44px; height: 44px; border-radius: 50%; border: 0;
    background: #fff; color: var(--navy-800); box-shadow: var(--shadow);
    display: grid; place-items: center; transition: background .25s, color .25s, transform .25s;
}
.slider__arrow:hover { background: var(--blue-600); color: #fff; }
.slider__arrow--prev { left: 10px; }
.slider__arrow--next { right: 10px; }
.slider__dots { display: flex; justify-content: center; gap: .5rem; margin-top: 1.2rem; }
.slider__dot { width: 10px; height: 10px; padding: 0; border: 0; border-radius: 10px; background: #c3d3ea; transition: width .3s var(--ease), background .3s; }
.slider__dot.is-active { width: 30px; background: var(--blue-600); }

/* Featured slider */
.section--slider .slider__track { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.section--slider .slide {
    display: grid; gap: 1.5rem; align-items: center;
    padding: 2.2rem 1.4rem 2.6rem; color: #e1ebfa;
    background: linear-gradient(120deg, #1e6fd9, #2563eb 50%, #0ea5e9);
}
.section--slider .slide:nth-child(2) { background: linear-gradient(120deg, #0b1f3a, #1e3a8a 60%, #2563eb); }
.section--slider .slide:nth-child(3) { background: linear-gradient(120deg, #312e81, #4f46e5 55%, #2f86f6); }
.section--slider .slide:nth-child(4) { background: linear-gradient(120deg, #0e7490, #0284c7 55%, #1e6fd9); }
.slide__tag { display: inline-block; padding: .3rem .9rem; border-radius: 50px; background: rgba(255, 255, 255, .16); font-size: .78rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; margin-bottom: .9rem; }
.slide__title { color: #fff; font-size: clamp(1.45rem, 4.5vw, 2.3rem); }
.slide__content p { font-size: 1.02rem; max-width: 480px; margin-bottom: 1.5rem; }
.slide__media img { width: 100%; max-width: 460px; margin: 0 auto; }
.section--slider .slider__arrow { top: auto; bottom: 14px; transform: none; width: 38px; height: 38px; }
.section--slider .slider__arrow--prev { left: auto; right: 60px; }
.section--slider .slider__arrow--next { right: 14px; }
.section--slider .slider__dots { position: absolute; bottom: 26px; left: 1.4rem; margin: 0; z-index: 3; }
.section--slider .slider__dot { background: rgba(255, 255, 255, .45); }
.section--slider .slider__dot.is-active { background: #fff; }

/* ---------- About ---------- */
.about { display: grid; gap: 2.5rem; align-items: center; }
.about__card--main {
    background: var(--grad); color: #e6f0ff; border-radius: var(--radius-lg); padding: 2rem;
    box-shadow: var(--shadow-lg); position: relative; overflow: hidden;
}
.about__card--main::after { content: ''; position: absolute; width: 220px; height: 220px; border-radius: 50%; background: rgba(255, 255, 255, .1); right: -70px; top: -70px; }
.about__card--main i { font-size: 2rem; margin-bottom: 1rem; }
.about__card--main h3 { color: #fff; font-size: 1.35rem; }
.about__card--main p { margin: 0; }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; margin-top: 1rem; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem; text-align: center; box-shadow: var(--shadow-sm); }
.stat strong { display: block; font-family: var(--font-head); font-size: 1.9rem; font-weight: 800; color: var(--navy-800); line-height: 1.1; }
.stat > span { font-size: .85rem; color: var(--muted); }
.about__content p a { font-weight: 600; }
.check-list { display: grid; gap: .9rem; margin-top: 1.5rem; }
.check-list li { display: flex; gap: .9rem; align-items: flex-start; }
.check-list i { flex: 0 0 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--sky-100); color: var(--blue-600); }
.check-list strong { display: block; color: var(--ink); font-family: var(--font-head); font-weight: 600; }
.check-list span { font-size: .92rem; }

/* ---------- Services ---------- */
.service-card {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.8rem 1.5rem;
    display: flex; flex-direction: column; position: relative; overflow: hidden;
    transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
}
.service-card::before {
    content: ''; position: absolute; left: 0; top: 0; height: 4px; width: 100%;
    background: var(--grad); transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease);
}
.service-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: transparent; }
.service-card:hover::before { transform: scaleX(1); }
.service-card__icon {
    width: 60px; height: 60px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 1.2rem;
    background: var(--sky-100); color: var(--blue-600); font-size: 1.5rem;
    transition: background .35s, color .35s, transform .35s var(--ease);
}
.service-card:hover .service-card__icon { background: var(--grad); color: #fff; transform: rotate(-6deg) scale(1.05); }
.service-card h3 { font-size: 1.12rem; }
.service-card p { font-size: .93rem; flex: 1; }

/* ---------- Why choose ---------- */
.feature {
    padding: 1.8rem 1.5rem; border-radius: var(--radius);
    background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .09);
    transition: transform .35s var(--ease), background .35s, border-color .35s;
}
.feature:hover { transform: translateY(-6px); background: rgba(255, 255, 255, .08); border-color: rgba(90, 166, 255, .45); }
.feature__icon {
    width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 1.1rem;
    background: var(--grad); color: #fff; font-size: 1.3rem; box-shadow: 0 10px 24px rgba(47, 134, 246, .35);
}
.feature h3 { color: #fff; font-size: 1.08rem; }
.feature p { margin: 0; font-size: .92rem; }

/* ---------- Portfolio ---------- */
.filters { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; margin-bottom: 2rem; }
.filter {
    padding: .5rem 1.1rem; border-radius: 50px; border: 1px solid var(--line); background: #fff;
    color: var(--text); font-family: var(--font-head); font-weight: 500; font-size: .88rem; transition: all .25s;
}
.filter:hover { border-color: var(--blue-500); color: var(--blue-600); }
.filter.is-active { background: var(--grad); color: #fff; border-color: transparent; }
.project {
    background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line);
    display: flex; flex-direction: column; transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.project.is-hidden { display: none; }
.project:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.project__media { position: relative; overflow: hidden; aspect-ratio: 400 / 260; background: var(--sky-50); }
.project__media svg, .project__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.project:hover .project__media svg, .project:hover .project__media img { transform: scale(1.06); }
.project__cat {
    position: absolute; top: 12px; left: 12px; padding: .3rem .8rem; border-radius: 50px;
    background: rgba(11, 31, 58, .85); color: #fff; font-size: .75rem; font-weight: 600;
}
.project__cat--static { position: static; display: inline-block; margin-bottom: .8rem; }
.project__body { padding: 1.4rem; display: flex; flex-direction: column; flex: 1; }
.project__body h3 { font-size: 1.12rem; }
.project__body p { font-size: .92rem; flex: 1; }
.project__body .btn { align-self: flex-start; }
.tags { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1.2rem; }
.tags li { padding: .2rem .7rem; border-radius: 6px; background: var(--sky-100); color: var(--blue-600); font-size: .78rem; font-weight: 600; }

.modal {
    width: min(720px, calc(100% - 32px)); max-height: calc(100vh - 32px); padding: 0;
    border: 0; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); overflow: auto;
}
.modal::backdrop { background: rgba(7, 22, 48, .7); backdrop-filter: blur(4px); }
.modal[open] { animation: modal-in .35s var(--ease); }
@keyframes modal-in { from { opacity: 0; transform: translateY(20px) scale(.97); } to { opacity: 1; transform: none; } }
.modal__media { background: var(--sky-50); }
.modal__media svg, .modal__media img { width: 100%; }
.modal__body { padding: 1.6rem; }
.modal__close {
    position: absolute; top: 12px; right: 12px; z-index: 2; width: 40px; height: 40px; border-radius: 50%; border: 0;
    background: #fff; color: var(--ink); box-shadow: var(--shadow); font-size: 1.1rem;
}
.modal__close:hover { background: var(--error); color: #fff; }

/* ---------- Technology ---------- */
.tech-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.tech {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem .6rem;
    display: flex; flex-direction: column; align-items: center; gap: .7rem; text-align: center;
    transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
}
.tech img { width: 46px; height: 46px; object-fit: contain; filter: grayscale(.25); transition: transform .35s var(--ease), filter .35s; }
.tech span { font-family: var(--font-head); font-weight: 600; font-size: .85rem; color: var(--ink); }
.tech:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--blue-400); }
.tech:hover img { transform: scale(1.12); filter: none; }

/* ---------- Process ---------- */
.process { display: grid; gap: 1.4rem; counter-reset: step; }
.step {
    position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    padding: 2rem 1.5rem 1.6rem; text-align: center; transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.step:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.step__num {
    position: absolute; top: 14px; right: 18px; font-family: var(--font-head); font-weight: 800; font-size: 2.2rem;
    color: var(--sky-100); line-height: 1;
}
.step__icon {
    width: 70px; height: 70px; margin: 0 auto 1.2rem; border-radius: 50%; display: grid; place-items: center;
    background: var(--grad); color: #fff; font-size: 1.5rem; box-shadow: 0 0 0 8px var(--sky-100);
}
.step h3 { font-size: 1.08rem; }
.step p { margin: 0; font-size: .92rem; }

/* ---------- Testimonials ---------- */
.slider--testimonials { max-width: 820px; margin: 0 auto; }
.testimonial {
    margin: 0; background: #fff; border-radius: var(--radius-lg); padding: 2.4rem 1.5rem 2rem;
    box-shadow: var(--shadow); text-align: center; position: relative;
}
.testimonial__quote { font-size: 2.4rem; color: var(--sky-100); position: absolute; top: 20px; left: 24px; }
.testimonial__rating { color: #f59e0b; margin-bottom: 1rem; display: flex; gap: .2rem; justify-content: center; }
.testimonial blockquote { margin: 0 0 1.5rem; }
.testimonial blockquote p { font-size: 1.05rem; color: var(--ink); font-style: italic; margin: 0; }
.testimonial figcaption { display: flex; align-items: center; justify-content: center; gap: .9rem; text-align: left; }
.testimonial figcaption strong { display: block; color: var(--ink); font-family: var(--font-head); }
.testimonial figcaption span { font-size: .87rem; color: var(--muted); }
.avatar {
    width: 56px; height: 56px; border-radius: 50%; flex: 0 0 56px; object-fit: cover;
    display: grid; place-items: center; background: var(--grad); color: #fff;
    font-family: var(--font-head); font-weight: 700; box-shadow: 0 0 0 4px var(--sky-100);
}
.slider--testimonials .slider__arrow { display: none; }

/* ---------- CTA ---------- */
.cta { background: var(--grad); padding: 4rem 0; position: relative; overflow: hidden; color: #e6f0ff; }
.cta::before, .cta::after { content: ''; position: absolute; border-radius: 50%; background: rgba(255, 255, 255, .08); }
.cta::before { width: 360px; height: 360px; top: -180px; right: -80px; }
.cta::after { width: 260px; height: 260px; bottom: -140px; left: -60px; }
.cta__inner { position: relative; z-index: 1; display: grid; gap: 1.8rem; text-align: center; }
.cta h2 { color: #fff; font-size: clamp(1.6rem, 4.5vw, 2.4rem); }
.cta p { font-size: 1.08rem; margin: 0; }
.cta__actions { display: flex; flex-wrap: wrap; gap: .9rem; justify-content: center; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: .9rem; }
.faq__item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); transition: box-shadow .3s, border-color .3s; }
.faq__item[open] { box-shadow: var(--shadow); border-color: var(--blue-400); }
.faq__item summary {
    list-style: none; cursor: pointer; padding: 1.1rem 1.3rem; display: flex; justify-content: space-between; gap: 1rem; align-items: center;
    font-family: var(--font-head); font-weight: 600; color: var(--ink);
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary i { color: var(--blue-600); transition: transform .3s var(--ease); flex-shrink: 0; }
.faq__item[open] summary i { transform: rotate(45deg); }
.faq__item p { padding: 0 1.3rem 1.2rem; margin: 0; }

/* ---------- Contact ---------- */
.contact { display: grid; gap: 1.5rem; }
.contact__info {
    background: var(--grad-dark); color: #c0cee6; border-radius: var(--radius-lg); padding: 2rem 1.5rem;
    position: relative; overflow: hidden;
}
.contact__info::after { content: ''; position: absolute; width: 240px; height: 240px; border-radius: 50%; background: rgba(47, 134, 246, .18); right: -90px; bottom: -90px; }
.contact__info h3 { color: #fff; font-size: 1.35rem; }
.contact__info ul { display: grid; gap: 1.2rem; margin: 1.5rem 0 1.8rem; position: relative; z-index: 1; }
.contact__info li { display: flex; gap: .9rem; align-items: flex-start; }
.contact__info small { display: block; color: #8ea3c4; font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; }
.contact__info a, .contact__info address, .contact__info li span { color: #fff; word-break: break-word; }
.contact__info a:hover { color: var(--blue-400); }
.contact__icon { flex: 0 0 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: rgba(255, 255, 255, .1); color: var(--blue-400); }
.contact__info .btn { position: relative; z-index: 1; }

.contact__form { background: #fff; border-radius: var(--radius-lg); padding: 2rem 1.5rem; box-shadow: var(--shadow); border: 1px solid var(--line); }
.contact__form h3 { font-size: 1.35rem; margin-bottom: 1.2rem; }
.form-row { display: grid; gap: 0 1rem; }
.form-group { margin-bottom: 1rem; }
.form-group label { display: block; font-weight: 600; font-size: .9rem; color: var(--ink); margin-bottom: .35rem; }
.form-group label span { color: var(--error); }
.form-group input, .form-group textarea, .form-group select {
    width: 100%; padding: .8rem 1rem; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
    font: inherit; font-size: 16px; color: var(--ink); background: var(--sky-50);
    transition: border-color .25s, box-shadow .25s, background .25s;
}
.form-group textarea { resize: vertical; min-height: 130px; }
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
    outline: none; border-color: var(--blue-500); background: #fff; box-shadow: 0 0 0 4px rgba(47, 134, 246, .14);
}
.form-group .error { display: none; color: var(--error); font-size: .82rem; margin-top: .3rem; }
.form-group.has-error input, .form-group.has-error textarea { border-color: var(--error); background: #fff7f7; }
.form-group.has-error .error { display: block; }
.form-group.is-valid input, .form-group.is-valid textarea { border-color: var(--success); }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-alert { display: none; padding: .9rem 1rem; border-radius: var(--radius-sm); margin-bottom: 1rem; font-size: .93rem; font-weight: 500; }
.form-alert.is-visible { display: block; }
.form-alert--success { background: #ecfdf3; color: #166534; border: 1px solid #bbf7d0; }
.form-alert--error { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.form-note { font-size: .82rem; color: var(--muted); text-align: center; margin: .9rem 0 0; }
.spinner { display: none; width: 20px; height: 20px; border: 3px solid rgba(255, 255, 255, .4); border-top-color: #fff; border-radius: 50%; animation: spin .8s linear infinite; }
.btn.is-loading .btn__label { display: none; }
.btn.is-loading .spinner { display: inline-block; }
.btn.is-loading { pointer-events: none; opacity: .85; }
@keyframes spin { to { transform: rotate(360deg); } }

.map { margin-top: 1.5rem; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); line-height: 0; }
.map iframe { width: 100%; height: 340px; border: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: #9fb3d1; padding-top: 4rem; font-size: .93rem; }
.footer__grid { display: grid; gap: 2.2rem; padding-bottom: 3rem; }
.footer__about p { margin: 1.2rem 0; }
.site-footer h3 { color: #fff; font-size: 1.08rem; margin-bottom: 1.2rem; position: relative; padding-bottom: .7rem; }
.site-footer h3::after { content: ''; position: absolute; left: 0; bottom: 0; width: 36px; height: 3px; border-radius: 3px; background: var(--grad); }
.footer__col ul { display: grid; gap: .6rem; }
.footer__col a { color: #9fb3d1; }
.footer__col a:hover { color: #fff; padding-left: 4px; }
.footer__col li a { transition: color .25s, padding .25s; }
.footer__contact li { display: flex; gap: .7rem; align-items: flex-start; }
.footer__contact i { color: var(--blue-400); margin-top: .35rem; width: 16px; }
.social { display: flex; gap: .6rem; flex-wrap: wrap; }
.social a {
    width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
    background: rgba(255, 255, 255, .07); color: #fff; transition: background .3s, transform .3s var(--ease);
}
.social a:hover { background: var(--blue-600); transform: translateY(-4px); padding-left: 0; }
.footer__bottom { border-top: 1px solid rgba(255, 255, 255, .08); padding: 1.3rem 0; font-size: .87rem; }
.footer__bottom-inner { display: flex; flex-direction: column; gap: .7rem; align-items: center; text-align: center; }
.footer__bottom p { margin: 0; }
.footer__bottom ul { display: flex; flex-wrap: wrap; gap: .4rem 1.3rem; justify-content: center; }
.footer__bottom a { color: #9fb3d1; }
.footer__bottom a:hover { color: #fff; }

/* ---------- Floating buttons ---------- */
.whatsapp-float {
    position: fixed; right: 16px; bottom: 16px; z-index: 90; width: 56px; height: 56px; border-radius: 50%;
    display: grid; place-items: center; background: var(--whatsapp); color: #fff; font-size: 1.8rem;
    box-shadow: 0 10px 25px rgba(37, 211, 102, .45); transition: transform .3s var(--ease);
}
.whatsapp-float::before { content: ''; position: absolute; inset: 0; border-radius: 50%; background: var(--whatsapp); animation: pulse 2.2s infinite; z-index: -1; }
.whatsapp-float:hover { color: #fff; transform: scale(1.1); }
@keyframes pulse { 0% { transform: scale(1); opacity: .6; } 100% { transform: scale(1.7); opacity: 0; } }
.back-to-top {
    position: fixed; right: 22px; bottom: 84px; z-index: 90; width: 44px; height: 44px; border-radius: 50%; border: 0;
    background: var(--navy-800); color: #fff; box-shadow: var(--shadow);
    opacity: 0; visibility: hidden; transform: translateY(10px); transition: all .3s var(--ease);
}
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.back-to-top:hover { background: var(--blue-600); }

/* ---------- Inner pages ---------- */
.page-hero { background: var(--grad-dark); color: #c0cee6; padding: 3.5rem 0; position: relative; overflow: hidden; }
.page-hero::after { content: ''; position: absolute; width: 400px; height: 400px; border-radius: 50%; background: rgba(47, 134, 246, .2); filter: blur(60px); right: -120px; top: -160px; }
.page-hero .container { position: relative; z-index: 1; }
.page-hero--center { text-align: center; padding: 5rem 0; }
.page-hero h1 { color: #fff; font-size: clamp(1.8rem, 5vw, 2.8rem); }
.page-hero p { max-width: 680px; font-size: 1.05rem; margin: 0; }
.page-hero--center p { margin: 0 auto 2rem; }
.page-hero__icon { width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center; background: var(--grad); color: #fff; font-size: 1.6rem; margin-bottom: 1.2rem; }
.page-hero--center .page-hero__icon { margin: 0 auto 1.2rem; }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: .4rem; font-size: .88rem; margin-bottom: 1.4rem; }
.breadcrumb li:not(:last-child)::after { content: '/'; margin-left: .4rem; color: #6b80a3; }
.breadcrumb a { color: #a9cdff; }
.breadcrumb a:hover { color: #fff; }
.breadcrumb [aria-current] { color: #fff; }

.service-detail { display: grid; gap: 2.5rem; }
.service-detail__main h2 { font-size: 1.5rem; margin-top: 2rem; }
.service-detail__main h2:first-child { margin-top: 0; }
.feature-list { display: grid; gap: .7rem; }
.feature-list li { display: flex; gap: .7rem; align-items: flex-start; padding: .8rem 1rem; background: var(--sky-50); border-radius: var(--radius-sm); color: var(--ink); }
.feature-list i { color: var(--blue-600); margin-top: .3rem; }
.mini-feature { display: flex; gap: 1rem; padding: 1.2rem; border: 1px solid var(--line); border-radius: var(--radius); }
.mini-feature > i { flex: 0 0 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--sky-100); color: var(--blue-600); font-size: 1.15rem; }
.mini-feature h3 { font-size: 1rem; margin-bottom: .2rem; }
.mini-feature p { margin: 0; font-size: .9rem; }
.process--compact .step { padding: 1.6rem 1.2rem 1.3rem; }
.service-detail__aside { display: grid; gap: 1.4rem; align-content: start; }
.aside-card { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.6rem; background: #fff; }
.aside-card h3 { font-size: 1.15rem; }
.aside-card--cta { background: var(--grad); color: #e6f0ff; border: 0; display: grid; gap: .8rem; }
.aside-card--cta h3 { color: #fff; margin: 0; }
.aside-card--cta p { margin: 0 0 .4rem; }
.aside-card__phone { color: #fff; text-align: center; font-weight: 600; }
.aside-card__phone:hover { color: var(--navy-800); }
.aside-links { display: grid; gap: .3rem; }
.aside-links a { display: flex; gap: .7rem; align-items: center; padding: .6rem .7rem; border-radius: 10px; color: var(--ink); font-size: .93rem; transition: background .25s, color .25s; }
.aside-links a:hover { background: var(--sky-100); color: var(--blue-600); }
.aside-links i { width: 20px; color: var(--blue-600); text-align: center; }

.legal h2 { font-size: 1.3rem; margin-top: 2rem; }
.legal ul { list-style: disc; padding-left: 1.4rem; margin-bottom: 1em; }
.legal li { margin-bottom: .4rem; }

/* ---------- Scroll reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ==========================================================
   Responsive – tablet (≥ 640px)
   ========================================================== */
@media (min-width: 640px) {
    .container { padding: 0 24px; }
    .grid--2, .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
    .tech-grid { grid-template-columns: repeat(4, 1fr); }
    .stats { grid-template-columns: repeat(4, 1fr); }
    .form-row { grid-template-columns: 1fr 1fr; }
    .process { grid-template-columns: repeat(2, 1fr); }
    .hero__actions .btn { flex: 0 0 auto; }
    .float-card { display: flex; }
    .testimonial { padding: 3rem 3rem 2.4rem; }
    .contact__info, .contact__form { padding: 2.4rem; }
    .footer__grid { grid-template-columns: repeat(2, 1fr); }
    .footer__bottom-inner { flex-direction: row; justify-content: space-between; text-align: left; }
}

/* ==========================================================
   Responsive – laptop (≥ 992px)
   ========================================================== */
@media (min-width: 992px) {
    :root { --header-h: 78px; }
    .topbar { display: block; }
    .site-header { top: -38px; } /* topbar scrolls away, navbar sticks */

    .nav-toggle { display: none; }
    .nav-menu {
        position: static; flex-direction: row; align-items: center; gap: .15rem;
        padding: 0; background: none; box-shadow: none; max-height: none; overflow: visible;
        transform: none; opacity: 1; visibility: visible;
    }
    .nav-link { padding: .5rem .8rem; font-size: .95rem; position: relative; background: none !important; }
    .nav-link::after {
        content: ''; position: absolute; left: .8rem; right: .8rem; bottom: 2px; height: 2px; border-radius: 2px;
        background: var(--grad); transform: scaleX(0); transition: transform .3s var(--ease);
    }
    .nav-link:hover::after, .nav-link.is-active::after { transform: scaleX(1); }
    .nav-menu__cta { margin: 0 0 0 .8rem; }
    .nav-menu__cta .btn { width: auto; }

    .hero { padding: 5rem 0 7rem; }
    .hero__inner { grid-template-columns: 1.05fr 1fr; gap: 3rem; }

    .section { padding: 6rem 0; }
    .section--slider { padding: 0; margin-top: -4rem; }
    .section--slider .slide { grid-template-columns: 1fr 1fr; padding: 3.5rem 4rem 4rem; }
    .section--slider .slider__dots { left: 4rem; bottom: 30px; }

    .grid--3 { grid-template-columns: repeat(3, 1fr); }
    .grid--4 { grid-template-columns: repeat(4, 1fr); }
    .tech-grid { grid-template-columns: repeat(6, 1fr); }
    .about { grid-template-columns: 1fr 1.1fr; gap: 4rem; }
    .check-list { grid-template-columns: 1fr 1fr; gap: 1.1rem 1.4rem; }
    .process { grid-template-columns: repeat(4, 1fr); position: relative; }
    .process:not(.process--compact)::before {
        content: ''; position: absolute; top: 67px; left: 12%; right: 12%; height: 2px;
        background: repeating-linear-gradient(90deg, var(--blue-400) 0 8px, transparent 8px 16px); z-index: 0;
    }
    .process--compact { grid-template-columns: repeat(2, 1fr); }
    .step { z-index: 1; }

    .slider--testimonials { padding: 0 70px; }
    .slider--testimonials .slider__arrow { display: grid; }
    .slider--testimonials .slider__arrow--prev { left: 0; }
    .slider--testimonials .slider__arrow--next { right: 0; }

    .cta__inner { grid-template-columns: 1.3fr 1fr; text-align: left; align-items: center; }
    .cta__actions { justify-content: flex-end; }

    .contact { grid-template-columns: 1fr 1.6fr; gap: 2rem; }
    .map iframe { height: 400px; }

    .service-detail { grid-template-columns: 1fr 340px; gap: 3rem; }
    .service-detail__aside { position: sticky; top: calc(var(--header-h) + 20px); align-self: start; }

    .footer__grid { grid-template-columns: 1.4fr 1fr 1.2fr 1.3fr; gap: 3rem; }
}

@media (min-width: 1200px) {
    .hero h1 { font-size: 3.7rem; }
}

/* ---------- Accessibility: 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; }
}
