:root {
    --bg: #081d33;
    --bg-elev: #0f3357;
    --surface: rgba(255, 255, 255, 0.04);
    --surface-strong: rgba(255, 255, 255, 0.08);
    --text: #eef3f8;
    --muted: #b6c3d3;
    --brand: #0b2c4d;
    --accent: #c8a96a;
    --accent-soft: rgba(200, 169, 106, 0.2);
    --line: rgba(200, 169, 106, 0.25);
    --success: #8fc7b2;
    --radius: 16px;
    --radius-sm: 10px;
    --shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
    --container: min(92%, 1240px);
    --header-top-bg: rgba(11, 44, 77, 0.9);
    --header-top-border: rgba(200, 169, 106, 0.28);
    --header-scrolled-bg: rgba(7, 27, 46, 0.96);
    --header-on-dark: #f2f6fb;
}

html[data-theme="light"] {
    --bg: #f5f6f8;
    --bg-elev: #ffffff;
    --surface: #ffffff;
    --surface-strong: #fcf8f1;
    --text: #162635;
    --muted: #4d6074;
    --brand: #0b2c4d;
    --accent: #b9934e;
    --accent-soft: rgba(185, 147, 78, 0.16);
    --line: rgba(11, 44, 77, 0.15);
    --shadow: 0 24px 60px rgba(8, 29, 51, 0.12);
    --header-top-bg: rgba(214, 222, 230, 0.72);
    --header-top-border: rgba(11, 44, 77, 0.12);
    --header-scrolled-bg: rgba(11, 44, 77, 0.92);
    --header-on-dark: #112a43;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: color-mix(in srgb, var(--accent) 78%, #fff 22%) color-mix(in srgb, var(--brand) 18%, transparent);
}

html::-webkit-scrollbar {
    width: 12px;
}

html::-webkit-scrollbar-track {
    background: color-mix(in srgb, var(--brand) 12%, #fff 88%);
}

html::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 82%, #fff 18%), color-mix(in srgb, var(--brand) 62%, #000 38%));
    border-radius: 999px;
    border: 2px solid color-mix(in srgb, var(--brand) 10%, #fff 90%);
}

html::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 92%, #fff 8%), color-mix(in srgb, var(--brand) 70%, #000 30%));
}

body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    background:
        radial-gradient(circle at 12% 18%, rgba(200, 169, 106, 0.2), transparent 36%),
        radial-gradient(circle at 88% 2%, rgba(15, 51, 87, 0.4), transparent 42%),
        var(--bg);
    color: var(--text);
    line-height: 1.65;
    transition: background-color 0.3s ease, color 0.3s ease;
}

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

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

.skip-link {
    position: absolute;
    left: -999px;
    top: 10px;
    background: var(--brand);
    color: #fff;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    z-index: 2000;
}

.skip-link:focus {
    left: 10px;
}

.container {
    width: var(--container);
    margin: 0 auto;
}

.section {
    padding: 88px 0;
}

.section-alt {
    background: linear-gradient(145deg, var(--surface), transparent);
}

.eyebrow {
    display: inline-block;
    margin: 0 0 14px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
    font-size: 0.78rem;
    font-weight: 600;
}

h1,
h2,
h3,
h4 {
    margin-top: 0;
    line-height: 1.2;
    font-family: 'Playfair Display', serif;
}

h1 {
    font-size: clamp(2.1rem, 5.2vw, 4rem);
    margin-bottom: 18px;
}

h2 {
    font-size: clamp(1.65rem, 3vw, 2.6rem);
    margin-bottom: 12px;
}

h3 {
    font-size: 1.35rem;
    margin-bottom: 12px;
}

p {
    margin: 0 0 14px;
    color: var(--muted);
}

.lead {
    font-size: 1.08rem;
    max-width: 68ch;
}

.partnership-note {
    margin-top: 18px;
}

.partner-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    margin-right: 10px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: color-mix(in srgb, var(--surface-strong) 78%, transparent);
    vertical-align: middle;
}

.tmiq-icon {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: var(--accent);
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(100deg, var(--accent), #dcc08b);
    color: #10253b;
    border: 1px solid transparent;
    border-radius: 999px;
    padding: 0.85rem 1.35rem;
    font-weight: 600;
    font-size: 0.95rem;
    transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
}

.btn:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 10px 30px rgba(200, 169, 106, 0.35);
    filter: brightness(1.05);
}

.btn:focus-visible,
.btn-ghost:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.btn-sm {
    padding: 0.72rem 1rem;
    font-size: 0.88rem;
}

.btn-ghost {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--line);
}

.btn-ghost:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.text-link {
    color: var(--accent);
    font-weight: 600;
}

.site-header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: background-color 0.25s ease, backdrop-filter 0.25s ease, border-color 0.25s ease;
    border-bottom: 1px solid transparent;
    background: transparent;
    backdrop-filter: none;
}

.site-header.scrolled {
    background: var(--header-scrolled-bg);
    border-color: rgba(200, 169, 106, 0.32);
    backdrop-filter: blur(8px);
}

.site-header.scrolled .brand,
.site-header.scrolled .nav a {
    color: var(--header-on-dark);
}

.site-header.scrolled .menu-toggle span {
    background: var(--header-on-dark);
}

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

html[data-theme="light"] .site-header.scrolled .brand,
html[data-theme="light"] .site-header.scrolled .nav a {
    color: #eef3f8;
}

html[data-theme="light"] .site-header.scrolled .menu-toggle span {
    background: #eef3f8;
}

.nav-wrap {
    min-height: 78px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-family: 'Playfair Display', serif;
    letter-spacing: 0.02em;
    font-size: 1.1rem;
    color: var(--header-on-dark);
}

.brand-icon {
    width: 38px;
    height: 38px;
    object-fit: contain;
}

.nav {
    position: fixed;
    top: 78px;
    right: 4%;
    left: 4%;
    border-radius: var(--radius);
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: flex-end;
    text-align: right;
    padding: 18px;
    background: color-mix(in srgb, var(--brand) 88%, #000 12%);
    border: 1px solid var(--line);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-12px);
    transition: all 0.25s ease;
}

.nav a {
    color: #f3f7fc;
    padding: 6px 0;
    font-weight: 500;
    transition: color 0.25s ease;
}

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

.nav-open .nav {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.menu-toggle {
    display: inline-flex;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: 0;
    padding: 0;
    cursor: pointer;
}

.menu-toggle span {
    width: 24px;
    height: 2px;
    background: var(--header-on-dark);
    transition: all 0.25s ease;
}

.nav-open .menu-toggle span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-open .menu-toggle span:nth-child(2) {
    opacity: 0;
}

.nav-open .menu-toggle span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.theme-toggle {
    width: 56px;
    height: 32px;
    border-radius: 99px;
    border: 1px solid var(--line);
    background: var(--surface-strong);
    padding: 4px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
}

.theme-toggle-dot {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--accent);
    transition: transform 0.25s ease;
}

html[data-theme="light"] .theme-toggle-dot {
    transform: translateX(24px);
}

.hero {
    padding-top: 130px;
    padding-bottom: 70px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../images/background.png') center/cover no-repeat;
    opacity: 0.08;
    z-index: 0;
    will-change: transform;
    transform: translateY(var(--parallax, 0px));
}

.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    background: linear-gradient(
        90deg,
        rgba(247, 244, 237, 0.92) 0%,
        rgba(247, 244, 237, 0.84) 36%,
        rgba(247, 244, 237, 0.42) 58%,
        rgba(247, 244, 237, 0) 78%
    );
    pointer-events: none;
}

.hero-grid {
    display: grid;
    gap: 32px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content p {
    max-width: 62ch;
}

.hero-content h1 {
    color: #0d2741;
}

.hero-content .lead,
.hero-content p:not(.eyebrow) {
    color: #314d68;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.hero-brand {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-brand img {
    width: min(84%, 360px);
    max-width: 360px;
    filter: drop-shadow(0 24px 45px rgba(0, 0, 0, 0.32));
}

.hero-logo-dark {
    display: none;
}

html[data-theme="dark"] .hero-logo-light {
    display: none;
}

html[data-theme="dark"] .hero-logo-dark {
    display: block;
}

html[data-theme="dark"] .hero::after {
    background: linear-gradient(
        90deg,
        rgba(8, 20, 36, 0.9) 0%,
        rgba(8, 20, 36, 0.76) 38%,
        rgba(8, 20, 36, 0.32) 60%,
        rgba(8, 20, 36, 0) 80%
    );
}

html[data-theme="dark"] .hero-content h1 {
    color: #eef4fb;
}

html[data-theme="dark"] .hero-content .lead,
html[data-theme="dark"] .hero-content p:not(.eyebrow) {
    color: #c4d1e0;
}

html[data-theme="dark"] .hero-brand {
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}

html[data-theme="dark"] .hero-brand img {
    filter:
        drop-shadow(0 18px 40px rgba(0, 0, 0, 0.42))
        contrast(1.06)
        saturate(1.05);
}

.trust-band {
    padding: 16px 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: var(--surface);
}

.trust-grid {
    display: grid;
    gap: 18px;
    text-align: center;
}

.trust-grid strong {
    display: block;
    font-size: 1.1rem;
    color: var(--text);
}

.trust-grid span {
    color: var(--muted);
    font-size: 0.92rem;
}

.section-head {
    margin-bottom: 32px;
}

.cards-grid {
    display: grid;
    gap: 18px;
}

.regional-section {
    padding-top: 24px;
}

.regional-grid {
    display: grid;
    gap: 22px;
    align-items: center;
}

.regional-copy h2 {
    max-width: 16ch;
}

.regional-figure {
    margin: 0;
}

.regional-figure img {
    width: 100%;
    max-width: 460px;
    border-radius: 20px;
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    margin-left: auto;
}

.card {
    background: linear-gradient(145deg, var(--surface), transparent 80%);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
    transform: translateY(-6px) scale(1.01);
    border-color: color-mix(in srgb, var(--accent) 65%, transparent);
    box-shadow: 0 28px 60px rgba(0, 0, 0, 0.22);
}

.why-grid {
    display: grid;
    gap: 18px;
}

.why-item {
    border-left: 2px solid var(--accent);
    padding: 8px 0 8px 18px;
}

.testimonials-grid blockquote {
    margin: 0;
}

.testimonials-grid cite {
    color: var(--accent);
    font-style: normal;
    font-size: 0.9rem;
}

.cta-section {
    padding-top: 24px;
}

.cta-box {
    background: linear-gradient(120deg, color-mix(in srgb, var(--brand) 80%, #000 20%), #0f3357);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: clamp(24px, 5vw, 52px);
    text-align: center;
    box-shadow: var(--shadow);
}

.cta-box h2 {
    margin: 0 0 20px;
    color: #f3ecdf;
}

.cta-box p {
    margin: 0 auto 20px;
    color: #d6dde7;
    max-width: 62ch;
}

.page-hero {
    padding-top: 130px;
    padding-bottom: 22px;
}

.narrow {
    max-width: 860px;
}

.two-col {
    display: grid;
    gap: 24px;
    align-items: center;
}

.image-block img {
    border-radius: var(--radius);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}

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

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

.team-card .role {
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 10px;
}

.photo-placeholder {
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: 12px;
    border: 1px dashed color-mix(in srgb, var(--accent) 70%, transparent);
    background: linear-gradient(135deg, color-mix(in srgb, var(--surface-strong) 70%, transparent), transparent);
    display: grid;
    place-items: center;
    margin-bottom: 16px;
}

.photo-placeholder span {
    color: var(--accent);
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-size: 0.74rem;
}

.service-stack {
    display: grid;
    gap: 18px;
}

.service-block {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 24px;
    background: linear-gradient(145deg, var(--surface), transparent);
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.contact-grid {
    display: grid;
    gap: 18px;
}

.contact-form {
    display: grid;
    gap: 12px;
}

.contact-form label {
    font-weight: 600;
    color: var(--text);
}

input,
textarea {
    width: 100%;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid var(--line);
    background: color-mix(in srgb, var(--bg-elev) 65%, transparent);
    color: var(--text);
    font: inherit;
}

textarea {
    resize: vertical;
}

.contact-side {
    display: grid;
    gap: 18px;
}

.contact-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 8px;
}

.map-embed {
    min-height: 280px;
    padding: 0;
    overflow: hidden;
}

.map-embed iframe {
    width: 100%;
    height: 100%;
    min-height: 280px;
    border: 0;
    display: block;
}

.site-footer {
    margin-top: 80px;
    padding: 60px 0 24px;
    background: #051425;
    border-top: 1px solid rgba(200, 169, 106, 0.25);
}

.site-footer h3,
.site-footer h4 {
    color: #f4efe5;
}

.site-footer p,
.site-footer li,
.footer-bottom small {
    color: #c6d1dc;
}

.footer-grid {
    display: grid;
    gap: 24px;
}

.site-footer ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 8px;
}

.footer-bottom {
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid rgba(200, 169, 106, 0.2);
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
    justify-content: space-between;
}

.social-inline {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.social-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(200, 169, 106, 0.34);
    display: grid;
    place-items: center;
    color: #d6dfeb;
    background: rgba(255, 255, 255, 0.02);
    transition: transform 0.2s ease, color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.social-icon svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.social-icon:hover {
    transform: translateY(-2px);
    color: var(--accent);
    border-color: rgba(200, 169, 106, 0.6);
    background: rgba(200, 169, 106, 0.08);
}

.wa-float {
    position: fixed;
    right: 16px;
    bottom: 16px;
    z-index: 1200;
    background: #22c55e;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    box-shadow: 0 10px 24px rgba(18, 95, 51, 0.34);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    opacity: 0.96;
}

.wa-float:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(18, 95, 51, 0.42);
}

.wa-float svg {
    width: 25px;
    height: 25px;
    fill: currentColor;
}

.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;
}

.reveal {
    opacity: 0;
    transform: translateY(28px) scale(0.985);
    filter: blur(3px);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1), filter 0.7s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
}

.delay-1 {
    transition-delay: 0.08s;
}

.delay-2 {
    transition-delay: 0.16s;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .reveal,
    .reveal.visible {
        opacity: 1;
        transform: none;
        filter: none;
        transition: none;
    }
}

@media (min-width: 768px) {
    .nav {
        position: static;
        opacity: 1;
        pointer-events: auto;
        transform: none;
        flex-direction: row;
        align-items: center;
        text-align: left;
        background: transparent;
        border: 0;
        padding: 0;
        gap: 20px;
        width: auto;
    }

    .nav a {
        color: var(--header-on-dark);
    }

    .menu-toggle {
        display: none;
    }

    .hero-grid,
    .two-col,
    .contact-grid,
    .regional-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .trust-grid,
    .cards-grid,
    .why-grid,
    .footer-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .service-block {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
    }

    .service-block .btn {
        min-width: 210px;
    }

    .team-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hero-brand img {
        width: min(100%, 480px);
        max-width: 480px;
    }

    .wa-float {
        right: 20px;
        bottom: 22px;
    }
}

@media (min-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

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

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