/* Corporate Interface – site styles (mobile first) */

@font-face {
    font-family: "Plus Jakarta Sans";
    src: url("../fonts/plus-jakarta-sans-latin-wght.woff2") format("woff2");
    font-weight: 200 800;
    font-style: normal;
    font-display: swap;
}

:root {
    --navy-900: #081a3a;
    --navy-800: #0c2350;
    --blue: #18468c;
    --blue-600: #1f56a8;
    --blue-50: #eaf1fb;
    --teal: #11b899;
    --teal-600: #0b8a72;
    --teal-300: #4fd6bb;
    --teal-50: #e6f7f3;
    --ink: #0f1b33;
    --text: #33405a;
    --muted: #5d6a82;
    --line: #e2e8f0;
    --soft: #f4f7fb;
    --white: #fff;
    --danger: #c62828;
    --wa: #25d366;
    --wa-ink: #05301a;

    --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    --radius: 18px;
    --radius-sm: 12px;
    --shadow-sm: 0 1px 2px rgba(15, 27, 51, .06), 0 2px 8px rgba(15, 27, 51, .05);
    --shadow: 0 10px 30px rgba(15, 27, 51, .08), 0 2px 6px rgba(15, 27, 51, .05);
    --shadow-lg: 0 24px 60px rgba(8, 26, 58, .16);
    --header-h: 76px;
    --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ------------------------------------------------------------ base */

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

html {
    overflow-x: clip; /* the closed off-canvas menu waits off-screen to the right */
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
    margin: 0;
    font-family: var(--font);
    font-size: 1rem;
    line-height: 1.65;
    color: var(--text);
    background: var(--white);
    overflow-x: clip;
    animation: page-in .5s var(--ease) both;
}

html.is-leaving body { opacity: 0; transform: translateY(-4px); transition: opacity .22s ease, transform .22s ease; }

@keyframes page-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

img { max-width: 100%; height: auto; display: block; }
[hidden] { display: none !important; }

h1, h2, h3, h4 { color: var(--ink); line-height: 1.2; letter-spacing: -.02em; margin: 0 0 .6em; font-weight: 800; }
h1 { font-size: clamp(2rem, 1.35rem + 2.8vw, 3.4rem); }
h2 { font-size: clamp(1.65rem, 1.2rem + 1.9vw, 2.6rem); }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }
a { color: var(--blue-600); text-underline-offset: .2em; }
button { font: inherit; }

:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; border-radius: 4px; }

.container { width: min(1200px, 100% - 32px); margin-inline: auto; }

.sr-only {
    position: absolute !important; 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: 300;
    background: var(--navy-800); color: var(--white); padding: 10px 16px; border-radius: 10px; font-weight: 700;
}
.skip-link:focus { top: 12px; }

.icon { width: 1.25em; height: 1.25em; flex-shrink: 0; }

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

.eyebrow {
    display: inline-flex; align-items: center; gap: 10px;
    font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
    color: var(--teal-600); margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; border-radius: 2px; }
.eyebrow-light { color: var(--teal-300); }

/* ------------------------------------------------------------ buttons */

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .55em;
    padding: .8em 1.35em; border-radius: 12px; border: 2px solid transparent;
    font-weight: 700; font-size: .975rem; line-height: 1.2; text-decoration: none; cursor: pointer;
    transition: background-color .2s, color .2s, border-color .2s, transform .2s var(--ease), box-shadow .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: none; }
.btn .icon { width: 1.1em; height: 1.1em; transition: transform .2s var(--ease); }
.btn:hover .icon:last-child { transform: translateX(2px); }
.btn-lg { padding: .95em 1.6em; font-size: 1.02rem; }
.btn-block { width: 100%; }

.btn-primary { background: var(--blue); color: var(--white); box-shadow: 0 6px 18px rgba(24, 70, 140, .25); }
.btn-primary:hover { background: var(--navy-800); color: var(--white); }
.btn-accent { background: var(--teal); color: var(--navy-900); box-shadow: 0 6px 18px rgba(17, 184, 153, .3); }
.btn-accent:hover { background: var(--teal-300); color: var(--navy-900); }
.btn-ghost { background: rgba(255, 255, 255, .08); color: var(--white); border-color: rgba(255, 255, 255, .55); }
.btn-ghost:hover { background: var(--white); color: var(--navy-900); border-color: var(--white); }
.btn-outline { background: transparent; color: var(--blue); border-color: var(--blue); }
.btn-outline:hover { background: var(--blue); color: var(--white); }
.btn-whatsapp { background: var(--wa); color: var(--wa-ink); }
.btn-whatsapp:hover { background: #1fbd5a; color: var(--wa-ink); }

.icon-btn {
    display: inline-grid; place-items: center; width: 44px; height: 44px; flex-shrink: 0;
    border: 0; border-radius: 50%; background: var(--soft); color: var(--ink); cursor: pointer;
    transition: background-color .2s;
}
.icon-btn:hover { background: var(--line); }

.link-btn { background: none; border: 0; padding: 0; color: inherit; cursor: pointer; text-align: left; }

/* ------------------------------------------------------------ preloader */

.preloader { display: none; }
html.is-preloading .preloader {
    position: fixed; inset: 0; z-index: 400; display: grid; place-content: center; justify-items: center; gap: 22px;
    background: var(--white); transition: opacity .45s ease, visibility .45s;
}
html.is-preloading.preload-done .preloader { opacity: 0; visibility: hidden; }
.preloader img { width: 72px; animation: logo-pulse 1.6s ease-in-out infinite; }
.preloader-bar { width: 120px; height: 3px; border-radius: 3px; background: var(--line); overflow: hidden; position: relative; }
.preloader-bar::after {
    content: ""; position: absolute; inset: 0; width: 40%; border-radius: 3px;
    background: linear-gradient(90deg, var(--blue), var(--teal)); animation: bar 1.1s ease-in-out infinite;
}
@keyframes bar { from { transform: translateX(-100%); } to { transform: translateX(260%); } }
@keyframes logo-pulse { 50% { transform: scale(.94); opacity: .8; } }

/* ------------------------------------------------------------ top bar + header */

.topbar { display: none; background: var(--navy-900); color: rgba(255, 255, 255, .78); font-size: .84rem; }
.topbar-inner { display: flex; justify-content: flex-end; gap: 28px; padding: 8px 0; }
.topbar-item { display: inline-flex; align-items: center; gap: 8px; color: inherit; text-decoration: none; }
.topbar-item:first-child { margin-right: auto; }
a.topbar-item:hover { color: var(--white); }
.topbar .icon { color: var(--teal); width: 16px; height: 16px; }

.site-header {
    position: sticky; top: 0; z-index: 60;
    background: rgba(255, 255, 255, .94);
    -webkit-backdrop-filter: saturate(160%) blur(12px);
    backdrop-filter: saturate(160%) blur(12px);
    border-bottom: 1px solid transparent;
    transition: box-shadow .3s, border-color .3s;
}
.site-header.is-scrolled { box-shadow: 0 6px 24px rgba(15, 27, 51, .08); border-color: var(--line); }
.header-inner { display: flex; align-items: center; gap: 24px; height: var(--header-h); transition: height .3s var(--ease); }
.site-header.is-scrolled .header-inner { height: 64px; }
.brand { display: flex; align-items: center; flex-shrink: 0; }
.brand img { height: 56px; width: auto; transition: height .3s var(--ease); }
.site-header.is-scrolled .brand img { height: 46px; }

.main-nav { display: none; margin-left: auto; }
.main-nav > ul { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; }
.main-nav li { position: relative; }
.main-nav > ul > li > a {
    display: block; padding: 10px 14px; border-radius: 10px;
    color: var(--ink); font-weight: 600; text-decoration: none; position: relative;
}
.main-nav > ul > li > a::after {
    content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px; border-radius: 2px;
    background: var(--teal); transform: scaleX(0); transition: transform .25s var(--ease);
}
.main-nav > ul > li > a:hover::after,
.main-nav > ul > li > a[aria-current="page"]::after { transform: scaleX(1); }
.main-nav a[aria-current="page"] { color: var(--blue); }

.dropdown {
    position: absolute; top: calc(100% + 8px); left: -12px; width: 290px; list-style: none; margin: 0; padding: 10px;
    background: var(--white); border-radius: 16px; box-shadow: var(--shadow-lg); border: 1px solid var(--line);
    opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .2s, transform .2s var(--ease), visibility .2s;
}
.dropdown::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown { opacity: 1; visibility: visible; transform: none; }
.dropdown a {
    display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px;
    color: var(--ink); text-decoration: none; font-weight: 600; font-size: .94rem;
}
.dropdown a:hover { background: var(--soft); color: var(--blue); }
.dropdown .icon { color: var(--teal-600); width: 20px; height: 20px; }

.header-actions { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.header-cta { display: none; }
.menu-toggle {
    display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 12px;
    border: 1.5px solid var(--line); background: var(--white); color: var(--ink); cursor: pointer;
}
.menu-toggle .icon { width: 24px; height: 24px; }

/* off-canvas mobile menu */
.offcanvas {
    position: fixed; top: 0; right: 0; z-index: 120; width: min(360px, 88vw); height: 100vh; height: 100dvh;
    display: flex; flex-direction: column; gap: 20px; padding: 20px; overflow-y: auto;
    background: var(--white); box-shadow: var(--shadow-lg);
    transform: translateX(105%); transition: transform .35s var(--ease); visibility: hidden;
}
html.menu-open .offcanvas { transform: none; visibility: visible; }
.offcanvas-backdrop {
    position: fixed; inset: 0; z-index: 110; background: rgba(8, 26, 58, .5);
    opacity: 0; pointer-events: none; transition: opacity .3s;
}
html.menu-open .offcanvas-backdrop { opacity: 1; pointer-events: auto; }
html.menu-open { overflow: hidden; }
.offcanvas-head { display: flex; align-items: center; justify-content: space-between; }
.offcanvas-head img { height: 52px; width: auto; }
.offcanvas ul { list-style: none; margin: 0; padding: 0; }
.offcanvas-nav a {
    display: block; padding: 12px 4px; border-bottom: 1px solid var(--line);
    font-size: 1.15rem; font-weight: 700; color: var(--ink); text-decoration: none;
}
.offcanvas-nav a[aria-current="page"] { color: var(--blue); }
.offcanvas-label { margin: 8px 0 4px; font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.offcanvas-services a { display: block; padding: 7px 4px; color: var(--text); text-decoration: none; font-weight: 500; }
.offcanvas-services a:hover { color: var(--blue); }
.offcanvas-contact { margin-top: auto; display: grid; gap: 10px; }

/* ------------------------------------------------------------ hero slider */

.hero { position: relative; color: var(--white); background: var(--navy-900); min-height: 620px; height: 88vh; max-height: 780px; overflow: hidden; touch-action: pan-y; }
.hero-slides { position: absolute; inset: 0; }
.hero-slide {
    position: absolute; inset: 0; display: flex; align-items: center;
    opacity: 0; visibility: hidden; transition: opacity 1s ease, visibility 1s;
}
.hero-slide.is-active { opacity: 1; visibility: visible; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-slide.is-active .hero-img { animation: zoom 9s ease-out both; }
@keyframes zoom { from { transform: scale(1.08); } to { transform: scale(1); } }
.hero-slide::after {
    content: ""; position: absolute; inset: 0;
    background:
        linear-gradient(90deg, rgba(8, 26, 58, .92) 0%, rgba(8, 26, 58, .72) 50%, rgba(8, 26, 58, .35) 100%),
        linear-gradient(0deg, rgba(8, 26, 58, .7) 0%, rgba(8, 26, 58, 0) 40%);
}
.hero-content { position: relative; z-index: 2; padding: 40px 0 150px; }
.hero-slide:not(.is-active) .hero-content { opacity: 0; transition: opacity .25s ease; }
.hero-content > * { max-width: 680px; }
.hero-title { color: var(--white); font-size: clamp(2rem, 1.3rem + 3vw, 3.6rem); margin-bottom: .4em; }
.hero-text { font-size: clamp(1.02rem, .95rem + .4vw, 1.2rem); color: rgba(255, 255, 255, .86); margin-bottom: 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-slide.is-active .hero-content > * { animation: rise .9s var(--ease) both; }
.hero-slide.is-active .hero-content > :nth-child(2) { animation-delay: .1s; }
.hero-slide.is-active .hero-content > :nth-child(3) { animation-delay: .2s; }
.hero-slide.is-active .hero-content > :nth-child(4) { animation-delay: .3s; }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

.hero-controls {
    position: absolute; left: 0; right: 0; bottom: 92px; z-index: 3;
    display: flex; align-items: center; gap: 14px;
}
.slider-arrow {
    display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; cursor: pointer;
    background: rgba(255, 255, 255, .1); color: var(--white); border: 1.5px solid rgba(255, 255, 255, .5);
    transition: background-color .2s, color .2s;
}
.slider-arrow:hover { background: var(--white); color: var(--navy-900); }
.slider-dots { display: flex; gap: 4px; }
.slider-dot { width: 32px; height: 32px; padding: 0; border: 0; background: none; cursor: pointer; display: grid; place-items: center; }
.slider-dot::before {
    content: ""; width: 10px; height: 10px; border-radius: 10px; background: rgba(255, 255, 255, .5);
    transition: width .3s var(--ease), background-color .3s;
}
.slider-dot[aria-current="true"]::before { width: 28px; background: var(--teal); }

/* quick contact cards over the hero */
.quick-contact { position: relative; z-index: 5; margin-top: -64px; }
.quick-grid { display: grid; gap: 12px; }
.quick-card {
    display: flex; align-items: center; gap: 14px; padding: 18px 20px; min-width: 0;
    background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow);
    color: var(--ink); font-weight: 700; text-decoration: none; border: 1px solid var(--line);
    transition: transform .25s var(--ease), box-shadow .25s;
}
.quick-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.quick-card > span:last-child { min-width: 0; overflow-wrap: anywhere; }
.quick-card small, .contact-list small { display: block; font-size: .78rem; font-weight: 600; color: var(--muted); }

.contact-icon {
    display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; flex-shrink: 0;
    background: var(--teal-50); color: var(--teal-600);
}
.contact-icon-wa { background: #e3f9ec; color: #11803e; }

/* ------------------------------------------------------------ sections */

.section { padding: clamp(64px, 8vw, 112px) 0; }
.section-soft { background: var(--soft); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto clamp(32px, 5vw, 56px); }
.section-head p:last-child { color: var(--muted); font-size: 1.08rem; margin: 0; }

.split { display: grid; gap: 56px; align-items: center; }
.split-media { position: relative; }
.rounded-img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 22px; box-shadow: var(--shadow); }
.stat-badge {
    position: absolute; right: 16px; bottom: -24px; display: flex; align-items: center; gap: 12px;
    padding: 16px 22px; border-radius: 18px; background: var(--teal); color: var(--navy-900); box-shadow: var(--shadow-lg);
}
.stat-badge strong { font-size: 2.3rem; line-height: 1; letter-spacing: -.03em; }
.stat-badge span { font-weight: 700; font-size: .9rem; line-height: 1.25; max-width: 90px; }

.check-list { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 10px; }
.check-list li { display: flex; align-items: center; gap: 12px; font-weight: 600; color: var(--ink); }
.check-list .icon {
    width: 26px; height: 26px; padding: 5px; border-radius: 50%;
    background: var(--teal-50); color: var(--teal-600); stroke-width: 2.6;
}

/* service cards */
.card-grid { display: grid; gap: 20px; }
.service-card {
    display: flex; flex-direction: column; align-items: flex-start; gap: 4px; width: 100%;
    padding: 28px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--white);
    color: var(--text); text-decoration: none; text-align: left; cursor: pointer;
    transition: transform .3s var(--ease), box-shadow .3s, border-color .3s;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: rgba(17, 184, 153, .5); }
.service-card h3 { margin: 14px 0 6px; }
.service-card p { color: var(--muted); font-size: .95rem; margin-bottom: 18px; }
.service-icon {
    display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px;
    background: var(--teal-50); color: var(--teal-600); transition: background-color .3s, color .3s;
}
.service-icon .icon { width: 28px; height: 28px; }
.service-card:hover .service-icon { background: var(--teal); color: var(--white); }
.card-link { margin-top: auto; display: inline-flex; align-items: center; gap: 6px; color: var(--blue); font-weight: 700; font-size: .95rem; }
.card-link .icon { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.service-card:hover .card-link .icon { transform: translateX(4px); }
.service-card-feature { background: linear-gradient(140deg, var(--navy-800), var(--blue)); border-color: transparent; color: rgba(255, 255, 255, .85); }
.service-card-feature h3 { color: var(--white); }
.service-card-feature p { color: rgba(255, 255, 255, .8); }
.service-card-feature .service-icon { background: rgba(255, 255, 255, .12); color: var(--teal-300); }
.service-card-feature .card-link { color: var(--teal-300); }

/* features */
.feature-grid { display: grid; gap: 20px; }
.feature { padding: 28px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); }
.section-soft .feature { border-color: transparent; box-shadow: var(--shadow-sm); }
.feature p { color: var(--muted); margin: 0; font-size: .95rem; }
.feature-icon {
    display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; margin-bottom: 18px; flex-shrink: 0;
    background: var(--blue-50); color: var(--blue);
}
.feature-icon .icon { width: 26px; height: 26px; }

/* call-to-action band */
.cta-band { position: relative; overflow: hidden; color: rgba(255, 255, 255, .86); padding: clamp(72px, 9vw, 120px) 0; background: var(--navy-900); }
.cta-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cta-band::before {
    content: ""; position: absolute; inset: 0; z-index: 1;
    background: linear-gradient(100deg, rgba(8, 26, 58, .95) 10%, rgba(12, 35, 80, .8) 60%, rgba(24, 70, 140, .55));
}
.cta-inner { position: relative; z-index: 2; display: grid; gap: 28px; align-items: center; }
.cta-inner h2 { color: var(--white); }
.cta-inner p { max-width: 560px; margin: 0; font-size: 1.08rem; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ------------------------------------------------------------ inner page banner */

.page-hero {
    position: relative; display: flex; align-items: flex-end; overflow: hidden;
    min-height: 340px; padding: 72px 0 56px; color: rgba(255, 255, 255, .86); background: var(--navy-900);
}
.page-hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; animation: zoom 9s ease-out both; }
.page-hero::before {
    content: ""; position: absolute; inset: 0; z-index: 1;
    background: linear-gradient(90deg, rgba(8, 26, 58, .94) 0%, rgba(8, 26, 58, .75) 55%, rgba(8, 26, 58, .45));
}
.page-hero-inner { position: relative; z-index: 2; }
.page-hero h1 { color: var(--white); margin-bottom: .3em; max-width: 800px; }
.page-hero-lead { font-size: 1.12rem; max-width: 640px; margin: 0; }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0 0 18px; padding: 0; font-size: .9rem; }
.breadcrumb li + li::before { content: "/"; margin-right: 6px; opacity: .5; }
.breadcrumb a { color: rgba(255, 255, 255, .8); text-decoration: none; }
.breadcrumb a:hover { color: var(--white); text-decoration: underline; }
.breadcrumb [aria-current] { color: var(--teal-300); font-weight: 600; }

/* ------------------------------------------------------------ service page */

.service-layout { display: grid; gap: 48px; }
.prose { max-width: 72ch; font-size: 1.05rem; }
.prose h2 { font-size: clamp(1.35rem, 1.15rem + .8vw, 1.7rem); margin-top: 1.6em; }
.prose p { color: var(--text); }
.prose strong { color: var(--ink); }
.prose > :first-child { margin-top: 0; }
.prose > p:first-child { font-size: 1.15rem; color: var(--ink); }

.service-aside { display: grid; gap: 20px; align-content: start; }
.aside-card { padding: 26px; border-radius: var(--radius); background: var(--soft); }
.aside-card h2 { font-size: 1.15rem; margin-bottom: .5em; }
.aside-card p { color: var(--muted); font-size: .95rem; }
.aside-card .btn + .btn { margin-top: 10px; }
.aside-cta { background: linear-gradient(150deg, var(--navy-800), var(--blue)); color: rgba(255, 255, 255, .85); }
.aside-cta h2 { color: var(--white); }
.aside-cta p { color: rgba(255, 255, 255, .8); }
.aside-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.aside-links a {
    display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px;
    color: var(--ink); text-decoration: none; font-weight: 600; font-size: .95rem; border-left: 3px solid transparent;
}
.aside-links a:hover { background: var(--white); color: var(--blue); }
.aside-links a[aria-current="page"] { background: var(--white); color: var(--blue); border-left-color: var(--teal); }
.aside-links .icon { width: 20px; height: 20px; color: var(--teal-600); }

/* ------------------------------------------------------------ contact section + forms */

.contact-grid { display: grid; gap: 48px; align-items: start; }
.contact-list { list-style: none; padding: 0; margin: 28px 0 0; }
.contact-list li { display: flex; align-items: center; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.contact-list li > span:last-child { min-width: 0; overflow-wrap: anywhere; }
.contact-list a { color: var(--ink); font-weight: 700; text-decoration: none; }
.contact-list a:hover { color: var(--blue); }

.form-card { padding: clamp(22px, 4vw, 40px); border-radius: 24px; background: var(--white); box-shadow: var(--shadow-lg); border: 1px solid var(--line); }
.form-title { font-size: 1.35rem; margin-bottom: 20px; }

.form-grid { display: grid; gap: 18px; }
.field { min-width: 0; }
.field label { display: block; margin-bottom: 7px; font-weight: 600; font-size: .92rem; color: var(--ink); }
.req { color: var(--danger); }
.optional { color: var(--muted); font-weight: 400; }

.field input, .field select, .field textarea {
    width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
    padding: 13px 16px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: #f8fafc;
    transition: border-color .2s, background-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 140px; }
.field select {
    -webkit-appearance: none; appearance: none; padding-right: 42px; cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235d6a82' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 14px center; background-size: 18px;
}
.field input::placeholder, .field textarea::placeholder { color: #95a1b5; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: #c9d3e1; }
.field input:focus, .field select:focus, .field textarea:focus {
    outline: none; border-color: var(--teal); background-color: var(--white); box-shadow: 0 0 0 4px rgba(17, 184, 153, .18);
}
.field [aria-invalid="true"] { border-color: var(--danger); background-color: #fff8f8; }
.field [aria-invalid="true"]:focus { box-shadow: 0 0 0 4px rgba(198, 40, 40, .14); }
.field-error { margin: 6px 0 0; color: var(--danger); font-size: .86rem; font-weight: 600; }
.field-error:empty { display: none; }

.input-group { display: flex; }
.input-group select { width: auto; max-width: 48%; flex-shrink: 0; border-radius: var(--radius-sm) 0 0 var(--radius-sm); border-right-width: 0; }
.input-group input { border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }

.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.form-alert { margin: 18px 0 0; padding: 12px 16px; border-radius: 10px; background: #fdecea; color: #8a1c1c; font-weight: 600; font-size: .94rem; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; margin-top: 22px; }
.form-note { margin: 0; color: var(--muted); font-size: .85rem; flex: 1 1 220px; }

[data-submit][aria-busy="true"] { pointer-events: none; opacity: .85; }
[data-submit][aria-busy="true"] .icon { display: none; }
[data-submit][aria-busy="true"]::after {
    content: ""; width: 18px; height: 18px; border-radius: 50%;
    border: 2.5px solid rgba(255, 255, 255, .4); border-top-color: var(--white); animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.form-success { text-align: center; padding: 36px 8px; }
.form-success:focus { outline: none; }
.form-success-icon {
    display: inline-grid; place-items: center; width: 72px; height: 72px; border-radius: 50%; margin-bottom: 18px;
    background: var(--teal); color: var(--white); animation: pop .5s var(--ease) both;
}
.form-success-icon .icon { width: 36px; height: 36px; stroke-width: 2.6; }
.form-success p { color: var(--muted); max-width: 420px; margin: 0 auto 22px; }
@keyframes pop { from { transform: scale(.4); opacity: 0; } to { transform: none; opacity: 1; } }

/* ------------------------------------------------------------ name check dialog */

.modal {
    width: min(580px, calc(100% - 24px)); max-height: calc(100vh - 24px); max-height: calc(100dvh - 24px);
    padding: 0; border: 0; border-radius: 24px; box-shadow: var(--shadow-lg); color: var(--text); overflow: auto;
}
.modal[open] { animation: modal-in .35s var(--ease) both; }
.modal::backdrop { background: rgba(8, 26, 58, .6); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
@keyframes modal-in { from { opacity: 0; transform: translateY(24px) scale(.98); } to { opacity: 1; transform: none; } }
.modal-card { padding: clamp(20px, 4vw, 32px); }
.modal-head { display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: start; margin-bottom: 22px; }
.modal-head h2 { font-size: 1.35rem; margin: 4px 0 4px; }
.modal-head p { margin: 0; color: var(--muted); font-size: .95rem; }
.modal-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--teal-50); color: var(--teal-600); }
html.dialog-open { overflow: hidden; }
@media (max-width: 479px) {
    .modal-head { grid-template-columns: 1fr auto; }
    .modal-icon { display: none; }
}

/* ------------------------------------------------------------ contact page */

.visit-card {
    display: flex; flex-wrap: wrap; align-items: center; gap: 20px; padding: 28px;
    border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow-sm);
}
.visit-card .feature-icon { margin: 0; }
.visit-card > div { flex: 1 1 260px; }
.visit-card h2 { font-size: 1.3rem; margin-bottom: 4px; }
.visit-card p { margin: 0; color: var(--muted); }

/* ------------------------------------------------------------ footer */

.site-footer { background: var(--navy-900); color: rgba(255, 255, 255, .72); padding-top: 72px; font-size: .95rem; }
.footer-grid { display: grid; gap: 40px; }
.footer-brand img { height: 84px; width: auto; margin-bottom: 18px; }
.footer-brand p { max-width: 380px; }
.footer-title { color: var(--white); font-size: 1rem; letter-spacing: 0; margin-bottom: 16px; }
.footer-links, .footer-contact { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.site-footer a, .site-footer .link-btn { color: rgba(255, 255, 255, .78); text-decoration: none; }
.site-footer a:hover, .site-footer .link-btn:hover { color: var(--teal-300); }
.footer-contact li { display: flex; gap: 12px; align-items: flex-start; }
.footer-contact li > :last-child { min-width: 0; overflow-wrap: anywhere; }
.footer-contact .icon { color: var(--teal); width: 20px; height: 20px; margin-top: 3px; }
.footer-bottom {
    display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px;
    margin-top: 56px; padding: 22px 0 96px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .86rem;
}
.footer-bottom p { margin: 0; }

/* WhatsApp button */
.wa-float {
    position: fixed; right: 16px; bottom: 16px; z-index: 90;
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    width: 58px; height: 58px; border-radius: 999px;
    background: var(--wa); color: var(--wa-ink); font-weight: 800; text-decoration: none;
    box-shadow: 0 10px 28px rgba(37, 211, 102, .4); transition: transform .25s var(--ease);
}
.wa-float:hover { transform: translateY(-3px); }
.wa-float .icon { width: 28px; height: 28px; }
.wa-float span { display: none; }
.wa-float::before {
    content: ""; position: absolute; inset: 0; border-radius: inherit; border: 2px solid var(--wa);
    animation: ring 2.4s ease-out infinite;
}
@keyframes ring { from { transform: scale(1); opacity: .7; } to { transform: scale(1.45); opacity: 0; } }
html.menu-open .wa-float, html.dialog-open .wa-float { display: none; }

/* ------------------------------------------------------------ scroll reveal (never hides content without JS) */

html.reveal-ready [data-reveal] { transition: opacity .8s var(--ease), transform .8s var(--ease); }
html.reveal-ready [data-reveal]:not(.is-visible) { opacity: 0; transform: translateY(26px); }

/* ------------------------------------------------------------ larger screens */

@media (min-width: 560px) {
    .form-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
    .field { grid-column: span 3; }
    .field-title { grid-column: span 2; }
    .field-name { grid-column: span 4; }
    .field-full { grid-column: 1 / -1; }
    .header-cta { display: inline-flex; }
}

@media (min-width: 640px) {
    .quick-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .card-grid, .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 768px) {
    .wa-float { width: auto; padding: 0 22px 0 18px; }
    .wa-float span { display: inline; }
}

@media (min-width: 900px) {
    .topbar { display: block; }
    .split { grid-template-columns: 1fr 1fr; gap: 72px; }
    .cta-inner { grid-template-columns: 1.4fr 1fr; }
    .cta-actions { justify-content: flex-end; }
    .page-hero { min-height: 400px; padding-bottom: 72px; }
}

@media (min-width: 1000px) {
    .main-nav { display: block; }
    .menu-toggle { display: none; }
    .header-actions { margin-left: 8px; }
    .quick-grid { grid-template-columns: minmax(0, .85fr) minmax(0, .85fr) minmax(0, 1.2fr) minmax(0, 1.1fr); }
    .quick-card { padding: 18px 16px; font-size: .95rem; }
    .card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .feature-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .footer-grid { grid-template-columns: 1.5fr 1fr 1.1fr 1.3fr; }
    .contact-grid { grid-template-columns: 5fr 7fr; gap: 64px; }
    .service-layout { grid-template-columns: minmax(0, 1fr) 340px; gap: 64px; }
    .service-aside { position: sticky; top: 96px; }
}

@media (max-width: 420px) {
    .hero { min-height: 640px; }
    .hero-actions .btn { width: 100%; }
    .hero-controls { bottom: 84px; }
    .stat-badge { right: 10px; padding: 12px 16px; }
    .stat-badge strong { font-size: 1.9rem; }
}

/* ------------------------------------------------------------ motion + print */

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
    html.reveal-ready [data-reveal]:not(.is-visible) { opacity: 1; transform: none; }
}

@media print {
    .topbar, .site-header, .offcanvas, .offcanvas-backdrop, .wa-float, .hero-controls, .preloader, .form-card { display: none !important; }
    html.reveal-ready [data-reveal] { opacity: 1 !important; transform: none !important; }
}
