:root {
    --bg: #081421;
    --bg-soft: #f4f8fc;
    --surface: #ffffff;
    --surface-alt: rgba(255, 255, 255, 0.08);
    --text: #102338;
    --text-soft: #5b6d82;
    --heading: #07182c;
    --primary: #0f3d73;
    --primary-strong: #0a2f59;
    --secondary: #1f8ef1;
    --accent: #2dcf89;
    --border: rgba(15, 61, 115, 0.12);
    --shadow: 0 20px 60px rgba(7, 24, 44, 0.12);
    --radius-lg: 28px;
    --radius-md: 20px;
    --radius-sm: 14px;
    --container: 1200px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Inter", Arial, sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(31, 142, 241, 0.16), transparent 24%),
        radial-gradient(circle at top right, rgba(45, 207, 137, 0.14), transparent 18%),
        linear-gradient(180deg, #f9fbfe 0%, #eef4fa 100%);
}

a {
    color: inherit;
    text-decoration: none;
}

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

iframe {
    border: 0;
}

.container {
    width: min(var(--container), calc(100% - 2rem));
    margin: 0 auto;
}

.topbar {
    background: #05111d;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.92rem;
}

.topbar a {
    color: rgba(255, 255, 255, 0.9);
}

.topbar-link {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.whatsapp-link {
    color: #ffffff;
    font-weight: 700;
}

.whatsapp-link:hover {
    color: #7dffb2;
}

.whatsapp-icon {
    width: 1.15rem;
    height: 1.15rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #25d366;
}

.whatsapp-icon svg {
    width: 100%;
    height: 100%;
}

.topbar-inner,
.footer-bottom {
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 0;
    flex-wrap: wrap;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    backdrop-filter: blur(18px);
    background: rgba(248, 251, 254, 0.78);
    border-bottom: 1px solid transparent;
    transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.site-header.scrolled {
    background: rgba(248, 251, 254, 0.96);
    border-color: rgba(15, 61, 115, 0.08);
    box-shadow: 0 8px 24px rgba(7, 24, 44, 0.06);
}

.nav-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1rem 0;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.85rem;
}

.brand strong,
.footer-brand strong {
    display: block;
    font-size: 1rem;
    color: var(--heading);
}

.brand small,
.footer-brand small {
    color: var(--text-soft);
}

.brand-mark {
    width: 2.8rem;
    height: 2.8rem;
    display: grid;
    place-items: center;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
    font-weight: 800;
    font-size: 1.15rem;
    box-shadow: 0 16px 24px rgba(15, 61, 115, 0.24);
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 1.15rem;
}

.site-nav a {
    font-weight: 500;
    color: var(--text-soft);
}

.site-nav a.active,
.site-nav a:hover {
    color: var(--heading);
}

.nav-toggle {
    display: none;
    background: none;
    border: 0;
    padding: 0;
    flex-direction: column;
    gap: 0.28rem;
}

.nav-toggle span {
    width: 1.7rem;
    height: 2px;
    background: var(--heading);
    border-radius: 999px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border-radius: 999px;
    padding: 0.92rem 1.35rem;
    font-weight: 700;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    border: 1px solid transparent;
    cursor: pointer;
}

.button:hover {
    transform: translateY(-1px);
}

.button-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
    box-shadow: 0 14px 28px rgba(15, 61, 115, 0.24);
}

.site-nav .button.button-primary,
.site-nav .button.button-primary:hover,
.site-nav .button.button-primary.active {
    color: #ffffff;
}

.nav-cta-button {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    box-shadow:
        0 16px 32px rgba(15, 61, 115, 0.24),
        0 0 0 1px rgba(255, 255, 255, 0.08) inset;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.12);
}

.nav-cta-button::before {
    content: "";
    position: absolute;
    inset: -2px;
    border-radius: inherit;
    background: linear-gradient(120deg, rgba(255, 255, 255, 0) 24%, rgba(255, 255, 255, 0.38) 50%, rgba(255, 255, 255, 0) 76%);
    transform: translateX(-140%);
    animation: ctaShimmer 3.2s ease-in-out infinite;
    z-index: -1;
}

.nav-cta-button::after {
    content: "";
    position: absolute;
    inset: auto 14% -30%;
    height: 65%;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(143, 211, 255, 0.44), rgba(143, 211, 255, 0));
    filter: blur(12px);
    animation: ctaPulse 2.6s ease-in-out infinite;
    z-index: -1;
}

.nav-cta-button:hover {
    box-shadow:
        0 20px 38px rgba(15, 61, 115, 0.28),
        0 0 22px rgba(31, 142, 241, 0.22);
}

.button-secondary {
    background: rgba(255, 255, 255, 0.78);
    color: var(--heading);
    border-color: rgba(15, 61, 115, 0.12);
}

.button.full-width {
    width: 100%;
}

.hero-section,
.page-hero {
    padding: 5.5rem 0 2rem;
}

.hero-grid,
.page-hero-grid,
.split-section,
.form-layout,
.footer-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem;
    align-items: center;
}

.hero-copy h1,
.page-hero h1,
.section-head h2,
.cta-box h2 {
    margin: 0.2rem 0 1rem;
    color: var(--heading);
    line-height: 1.08;
    letter-spacing: -0.03em;
}

.hero-copy h1 {
    font-size: clamp(2.6rem, 5vw, 5rem);
}

.page-hero h1,
.section-head h2,
.cta-box h2 {
    font-size: clamp(2rem, 3vw, 3.4rem);
}

.hero-copy p,
.page-hero p,
.service-card p,
.article-card p,
.cta-box p,
.process-item p,
.glass-panel p,
.rich-text,
.not-found-box p {
    color: var(--text-soft);
    line-height: 1.75;
}

.hero-actions,
.cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1.8rem;
}

.eyebrow,
.chip {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    border-radius: 999px;
    padding: 0.45rem 0.9rem;
    font-size: 0.86rem;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.eyebrow {
    background: rgba(31, 142, 241, 0.12);
    color: var(--primary);
}

.chip {
    background: rgba(15, 61, 115, 0.08);
    color: var(--primary);
}

.metric-grid,
.card-grid {
    display: grid;
    gap: 1rem;
}

.metric-grid {
    margin-top: 2rem;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.metric-card,
.service-card,
.article-card,
.glass-panel,
.process-panel,
.cta-box,
.form-card,
.map-frame,
.not-found-box {
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.metric-card {
    padding: 1.15rem;
}

.metric-card strong {
    display: block;
    font-size: 1.5rem;
    color: var(--heading);
}

.metric-card span {
    color: var(--text-soft);
    font-size: 0.94rem;
}

.hero-panel {
    position: relative;
    padding: 1rem;
    border-radius: 2rem;
    background: linear-gradient(180deg, rgba(15, 61, 115, 0.16), rgba(255, 255, 255, 0.82));
    box-shadow: 0 24px 80px rgba(7, 24, 44, 0.16);
}

.hero-panel img,
.service-card img,
.article-card img,
.article-cover,
.page-hero-grid img {
    border-radius: calc(var(--radius-lg) - 4px);
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.floating-card {
    position: absolute;
    left: 2rem;
    right: 2rem;
    bottom: 2rem;
    padding: 1rem 1.2rem;
    border-radius: 1.2rem;
    background: rgba(8, 20, 33, 0.82);
    color: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(18px);
}

.floating-card strong {
    display: block;
    color: #fff;
    margin-top: 0.2rem;
}

.trust-strip {
    padding: 1rem 0 0;
}

.trust-strip-inner {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
}

.trust-pill {
    padding: 0.95rem 1.2rem;
    border-radius: 999px;
    background: #fff;
    border: 1px solid var(--border);
    color: var(--heading);
    font-weight: 600;
}

.section {
    padding: 2.5rem 0;
}

.soft-section,
.faq-section,
.cta-section {
    padding-top: 3.5rem;
}

.section-head {
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: end;
}

.section-head.narrow-center {
    justify-content: center;
    text-align: center;
}

.services-grid,
.article-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.service-card,
.article-card {
    overflow: hidden;
}

.service-card-body,
.article-card-body,
.form-card,
.glass-panel,
.process-panel,
.not-found-box {
    padding: 1.5rem;
}

.service-card-body h3,
.service-card-body h2,
.article-card-body h3,
.article-card-body h2,
.glass-panel h2,
.glass-panel h3,
.form-card h2,
.article-cta h3,
.footer-grid h3 {
    margin: 0.75rem 0;
    color: var(--heading);
}

.text-link {
    color: var(--secondary);
    font-weight: 700;
}

.process-panel {
    display: grid;
    gap: 1rem;
}

.process-item {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1rem;
    align-items: start;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(15, 61, 115, 0.08);
}

.process-item:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.process-item span {
    width: 2.4rem;
    height: 2.4rem;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(31, 142, 241, 0.14);
    color: var(--primary);
    font-weight: 800;
}

.faq-list {
    display: grid;
    gap: 1rem;
}

.faq-item {
    padding: 1.2rem 1.3rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.86);
}

.faq-item summary {
    cursor: pointer;
    font-weight: 700;
    color: var(--heading);
}

.faq-item p {
    margin: 1rem 0 0;
}

.cta-box {
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    background:
        linear-gradient(135deg, rgba(15, 61, 115, 0.96), rgba(31, 142, 241, 0.84)),
        var(--bg);
    color: rgba(255, 255, 255, 0.9);
}

.cta-box h2,
.cta-box p,
.cta-box .eyebrow {
    color: #fff;
}

.cta-box .eyebrow {
    background: rgba(255, 255, 255, 0.16);
}

.breadcrumbs {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
    color: var(--text-soft);
    margin-bottom: 1rem;
}

.contact-stack,
.article-layout {
    display: grid;
    gap: 1.4rem;
}

.contact-list,
.footer-list,
.compact-list,
.bullet-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 0.8rem;
}

.compact-list li,
.bullet-list li {
    position: relative;
    padding-left: 1.2rem;
    color: var(--text-soft);
}

.compact-list li::before,
.bullet-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.7rem;
    width: 0.45rem;
    height: 0.45rem;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--secondary), var(--accent));
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.form-grid label {
    display: grid;
    gap: 0.5rem;
    font-weight: 600;
    color: var(--heading);
}

.form-grid label.full {
    grid-column: 1 / -1;
}

input,
select,
textarea {
    width: 100%;
    border-radius: 16px;
    border: 1px solid rgba(15, 61, 115, 0.14);
    background: #fff;
    padding: 0.95rem 1rem;
    font: inherit;
    color: var(--text);
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input:focus,
select:focus,
textarea:focus {
    border-color: rgba(31, 142, 241, 0.66);
    box-shadow: 0 0 0 4px rgba(31, 142, 241, 0.12);
}

.flash {
    margin-bottom: 1rem;
    padding: 1rem 1.1rem;
    border-radius: 16px;
    font-weight: 600;
}

.flash.success {
    background: rgba(45, 207, 137, 0.14);
    color: #0f7d50;
}

.flash.error {
    background: rgba(255, 102, 102, 0.12);
    color: #b13a3a;
}

.hidden-field {
    position: absolute;
    left: -9999px;
    opacity: 0;
    pointer-events: none;
}

.map-frame {
    overflow: hidden;
    min-height: 340px;
}

.map-frame iframe {
    width: 100%;
    min-height: 340px;
}

.article-layout {
    max-width: 900px;
}

.article-cover {
    width: 100%;
}

.article-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    color: var(--text-soft);
    font-size: 0.95rem;
}

.article-meta.large {
    justify-content: flex-start;
}

.article-cta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 1.4rem 1.5rem;
    border-radius: var(--radius-md);
    background: rgba(15, 61, 115, 0.06);
}

.rich-text p {
    margin: 0 0 1rem;
}

.legacy-content img,
.rich-text img {
    border-radius: var(--radius-sm);
    max-width: 100%;
    height: auto;
}

.site-footer {
    padding: 3rem 0 1rem;
    background: #07131f;
    color: rgba(255, 255, 255, 0.78);
    margin-top: 2rem;
}

.site-footer .brand strong,
.site-footer h3,
.site-footer a:hover {
    color: #fff;
}

.footer-grid {
    align-items: start;
}

.footer-bottom {
    margin-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.56);
}

.not-found-box {
    text-align: center;
}

@keyframes ctaShimmer {
    0%,
    18% {
        transform: translateX(-140%);
    }
    42% {
        transform: translateX(140%);
    }
    100% {
        transform: translateX(140%);
    }
}

@keyframes ctaPulse {
    0%,
    100% {
        opacity: 0.55;
        transform: scale(0.96);
    }
    50% {
        opacity: 1;
        transform: scale(1.06);
    }
}

@media (max-width: 1100px) {
    .metric-grid,
    .services-grid,
    .article-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hero-grid,
    .page-hero-grid,
    .split-section,
    .form-layout,
    .footer-grid,
    .cta-box {
        grid-template-columns: 1fr;
    }

    .cta-box {
        display: grid;
    }
}

@media (max-width: 860px) {
    .nav-toggle {
        display: inline-flex;
    }

    .site-nav {
        position: absolute;
        top: calc(100% + 0.4rem);
        left: 1rem;
        right: 1rem;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 1rem;
        background: rgba(255, 255, 255, 0.96);
        border: 1px solid var(--border);
        border-radius: 1.25rem;
        box-shadow: var(--shadow);
    }

    .site-nav.open {
        display: flex;
    }

    .form-grid,
    .metric-grid,
    .services-grid,
    .article-grid {
        grid-template-columns: 1fr;
    }

    .topbar-inner,
    .article-cta,
    .article-meta,
    .section-head,
    .cta-actions {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 580px) {
    .hero-section,
    .page-hero {
        padding-top: 4.4rem;
    }

    .container {
        width: min(var(--container), calc(100% - 1.2rem));
    }

    .service-card-body,
    .article-card-body,
    .form-card,
    .glass-panel,
    .process-panel,
    .cta-box,
    .not-found-box {
        padding: 1.2rem;
    }

    .button,
    .small-only-full {
        width: 100%;
    }

    .floating-card {
        position: static;
        margin-top: 1rem;
    }
}
