/* =========================================================
   EXACTSUB ABOUT PAGE
   Clean responsive stylesheet with mobile overflow protection
========================================================= */

/* ---------- Theme variables ---------- */

:root {
    --primary: #022A7B;
    --primary-dark: #011D57;
    --accent: #29BA22;
    --bg: #F7F9FC;
    --surface: #FFFFFF;
    --soft: #F2F5FA;
    --text: #101828;
    --muted: #53627A;
    --border: #DCE3EE;
    --shadow: 0 24px 70px rgba(2, 42, 123, 0.12);
}

[data-theme="dark"] {
    --bg: #0A1220;
    --surface: #111B2B;
    --soft: #172337;
    --text: #F3F6FB;
    --muted: #B6C2D4;
    --border: #28374E;
    --shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
}

/* ---------- Global reset and overflow protection ---------- */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    width: 100%;
    max-width: 100%;
    scroll-behavior: smooth;
    overflow-x: clip;
}

body {
    width: 100%;
    max-width: 100%;
    min-width: 320px;
    margin: 0;
    overflow-x: clip;
    background: var(--bg);
    color: var(--text);
    font-family: Inter, system-ui, sans-serif;
    line-height: 1.6;
}

body.menu-open {
    overflow: hidden;
}

img,
video,
iframe,
svg {
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
    overflow-wrap: break-word;
}

button {
    font: inherit;
}

h1,
h2,
h3,
p {
    overflow-wrap: break-word;
}

:focus-visible {
    outline: 3px solid rgba(41, 186, 34, 0.55);
    outline-offset: 3px;
}

/* ---------- Shared layout ---------- */

.container {
    width: min(1180px, calc(100% - 40px));
    margin-inline: auto;
}

.section {
    padding: 100px 0;
}

/* ---------- Header and navigation ---------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: color-mix(in srgb, var(--surface) 92%, transparent);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(18px);
}

.nav-container {
    width: min(1420px, calc(100% - 80px));
    min-height: 84px;
    margin-inline: auto;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 48px;
}

.brand {
    min-width: 0;
}

.brand img {
    display: block;
    width: 104px;
    max-width: 100%;
    height: auto;
}

.nav-panel {
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
}

.nav-links {
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 36px;
    margin: 0 auto;
}

.nav-links > a,
.nav-dropdown-toggle {
    padding: 30px 0;
    border: 0;
    background: none;
    color: var(--text);
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
}

.nav-links > a:hover,
.nav-links > a.active,
.nav-dropdown-toggle:hover {
    color: var(--primary);
}

.nav-dropdown {
    position: static;
}

.nav-dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-dropdown-toggle svg {
    width: 14px;
    fill: none;
    stroke: currentColor;
}

.services-menu {
    position: absolute;
    top: 83px;
    left: 50%;
    width: min(980px, calc(100% - 40px));
    max-width: calc(100vw - 40px);
    min-width: 0;
    padding: 30px;
    display: grid;
    grid-template-columns: 1fr 1fr 1.2fr;
    gap: 30px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 0 0 22px 22px;
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translate(-50%, 10px);
}

.nav-dropdown.open .services-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translate(-50%, 0);
}

.services-menu b {
    display: block;
    margin-bottom: 10px;
    color: var(--primary);
    font-size: 12px;
    letter-spacing: 0.08em;
}

.services-menu a {
    display: block;
    padding: 9px 12px;
    border-radius: 10px;
    color: var(--muted);
    font-weight: 600;
    overflow-wrap: anywhere;
}

.services-menu a:hover {
    background: var(--soft);
    color: var(--primary);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* ---------- Buttons ---------- */

.btn {
    min-height: 48px;
    padding: 0 21px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid transparent;
    border-radius: 999px;
    font-weight: 800;
    text-align: center;
}

.btn.primary {
    background: var(--primary);
    color: #FFFFFF;
}

.btn.outline {
    color: var(--primary);
    border-color: #BFCBE0;
}

.btn.white {
    background: #FFFFFF;
    color: var(--primary);
}

.btn.large {
    min-height: 56px;
}

.theme-toggle,
.mobile-menu-toggle {
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text);
    cursor: pointer;
}

.theme-toggle {
    width: 50px;
    height: 50px;
    flex: 0 0 50px;
    border-radius: 50%;
}

.mobile-menu-toggle {
    display: none;
    width: 48px;
    height: 48px;
    padding: 0;
    border-radius: 14px;
}

.mobile-menu-toggle span {
    display: block;
    width: 21px;
    height: 2px;
    margin: 4px auto;
    background: currentColor;
}

/* ---------- Breadcrumb ---------- */

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    padding-top: 22px;
    color: var(--muted);
    font-size: 14px;
}

.breadcrumb a {
    color: var(--primary);
    font-weight: 700;
}

/* ---------- Hero section ---------- */

.hero {
    padding-top: 48px;
}

.hero-grid {
    min-height: 640px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
    align-items: center;
    gap: 70px;
}

.eyebrow {
    color: var(--primary);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.13em;
}

.hero h1 {
    max-width: 720px;
    margin: 14px 0 22px;
    font-size: clamp(48px, 5.3vw, 76px);
    line-height: 1;
    letter-spacing: -0.055em;
}

.hero h1 span {
    color: var(--primary);
}

.hero-text {
    max-width: 650px;
    color: var(--muted);
    font-size: 19px;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 25px;
    margin-top: 32px;
}

.text-link {
    color: var(--primary);
    font-weight: 800;
}

.trust-row {
    display: flex;
    flex-wrap: wrap;
    gap: 22px;
    margin-top: 40px;
    padding-top: 22px;
    border-top: 1px solid var(--border);
    color: var(--muted);
    font-weight: 700;
}

.hero-visual {
    position: relative;
    min-width: 0;
    min-height: 560px;
    display: grid;
    place-items: center;
}

.about-card {
    width: min(410px, 90%);
    padding: 38px;
    border: 1px solid var(--border);
    border-radius: 30px;
    background: var(--surface);
    box-shadow: var(--shadow);
}

.about-card > small {
    color: #8794A8;
    font-weight: 900;
    letter-spacing: 0.12em;
}

.about-card h2 {
    margin: 12px 0 25px;
    font-size: 38px;
    line-height: 1.05;
}

.about-card h2 span {
    color: var(--primary);
}

.service-stack {
    display: grid;
    gap: 10px;
}

.service-stack div {
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--soft);
}

.service-stack small {
    display: block;
    color: var(--muted);
}

.floating-note {
    position: absolute;
    max-width: calc(100% - 20px);
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    border: 1px solid var(--border);
    border-radius: 17px;
    background: var(--surface);
    box-shadow: 0 15px 40px rgba(16, 24, 40, 0.1);
}

.floating-note > span small,
.floating-note > span b {
    display: block;
}

.floating-note small {
    color: var(--muted);
}

.note-one {
    top: 80px;
    left: 0;
}

.note-two {
    right: 0;
    bottom: 80px;
}

/* ---------- Story section ---------- */

.two-col {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: 90px;
}

.story {
    background: var(--surface);
}

.two-col h2,
.heading h2 {
    margin: 10px 0;
    font-size: clamp(35px, 4vw, 54px);
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.copy p {
    color: var(--muted);
    font-size: 18px;
}

/* ---------- Values and cards ---------- */

.heading {
    max-width: 700px;
    margin-inline: auto;
    text-align: center;
}

.heading p {
    color: var(--muted);
}

.values {
    background: var(--soft);
}

.cards {
    display: grid;
    gap: 17px;
    margin-top: 50px;
}

.cards.four {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.cards article {
    min-width: 0;
    padding: 30px;
    border: 1px solid var(--border);
    border-radius: 22px;
    background: var(--surface);
    box-shadow: 0 12px 35px rgba(16, 24, 40, 0.07);
}

.icon {
    width: 50px;
    height: 50px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: #EAF0FF;
    color: var(--primary);
    font-size: 20px;
}

.cards h3 {
    margin: 20px 0 7px;
}

.cards p {
    color: var(--muted);
}

/* ---------- Services section ---------- */

.services-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.services-grid a {
    position: relative;
    min-width: 0;
    min-height: 215px;
    padding: 28px;
    border: 1px solid var(--border);
    border-radius: 22px;
    background: var(--surface);
    box-shadow: 0 12px 35px rgba(16, 24, 40, 0.07);
    transition: transform 0.2s ease;
}

.services-grid a:hover {
    transform: translateY(-5px);
}

.services-grid a > h3 {
    margin: 20px 0 7px;
}

.services-grid a > p {
    color: var(--muted);
    font-size: 14px;
}

/* ---------- Experience section ---------- */

.experience {
    background: var(--soft);
}

.experience-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: 25px;
}

.experience-card,
.quote {
    min-width: 0;
    padding: 50px;
    border: 1px solid var(--border);
    border-radius: 28px;
    background: var(--surface);
}

.experience-card h2 {
    font-size: clamp(34px, 4vw, 52px);
    line-height: 1.05;
}

.steps p {
    padding: 14px 0;
    border-top: 1px solid var(--border);
    color: var(--muted);
}

.steps b {
    margin-right: 15px;
    color: var(--primary);
}

.quote {
    background: var(--primary);
    color: #FFFFFF;
}

.quote strong {
    color: #8AA5E2;
    font-size: 80px;
}

.quote p {
    font-size: 27px;
    line-height: 1.25;
}

.quote small {
    color: #C7D6F8;
}

/* ---------- Call-to-action section ---------- */

.cta {
    padding-top: 35px;
}

.cta-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    padding: 55px;
    border-radius: 30px;
    background: var(--primary);
    color: #FFFFFF;
}

.cta-card h2 {
    margin: 10px 0;
    font-size: clamp(34px, 4vw, 55px);
    line-height: 1.05;
}

.cta-card p {
    color: #D6E1FF;
}

/* ---------- Footer ---------- */

.site-footer {
    margin-top: 100px;
    background: #07152E;
    color: #FFFFFF;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr repeat(3, minmax(0, 1fr));
    gap: 45px;
    padding: 70px 0;
}

.footer-logo {
    width: 104px;
    max-width: 100%;
}

.site-footer p,
.site-footer a {
    color: #A9B8D0;
}

.site-footer h3 {
    font-size: 14px;
}

.site-footer a {
    display: block;
    margin: 9px 0;
    overflow-wrap: anywhere;
}

.footer-bottom {
    min-height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.back-to-top {
    position: fixed;
    right: 25px;
    bottom: 25px;
    width: 52px;
    height: 52px;
    border: 0;
    border-radius: 50%;
    background: var(--primary);
    color: #FFFFFF;
    opacity: 0;
    visibility: hidden;
    cursor: pointer;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

/* =========================================================
   TABLET AND MOBILE NAVIGATION
========================================================= */

@media (max-width: 1120px) {
    .nav-container {
        width: calc(100% - 40px);
        gap: 28px;
    }

    .nav-links {
        gap: 22px;
    }

    .cards.four,
    .services-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .nav-container {
        width: calc(100% - 28px);
        min-height: 74px;
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 12px;
    }

    .brand {
        min-width: 0;
        display: flex;
        align-items: center;
    }

    .brand img {
        width: 96px;
        height: auto;
    }

    .mobile-menu-toggle {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
        position: relative;
        z-index: 1002;
        width: 46px;
        height: 46px;
        padding: 0;
        border-radius: 12px;
    }

    .mobile-menu-toggle span {
        width: 21px;
        height: 2px;
        margin: 3px auto;
        flex-shrink: 0;
        border-radius: 2px;
        background: currentColor;
    }

    .nav-panel {
        position: fixed;
        top: 74px;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 1001;
        width: 100%;
        max-width: 100%;
        height: calc(100vh - 74px);
        height: calc(100dvh - 74px);
        min-width: 0;
        padding: 18px 20px 32px;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        gap: 18px;
        overflow-x: hidden;
        overflow-y: auto;
        overscroll-behavior: contain;
        background: var(--surface);
        border-top: 1px solid var(--border);
        transform: translateX(100%);
        visibility: hidden;
        pointer-events: none;
        transition: transform 0.25s ease, visibility 0.25s ease;
    }

    .nav-panel.open {
        transform: translateX(0);
        visibility: visible;
        pointer-events: auto;
    }

    .nav-links {
        width: 100%;
        min-width: 0;
        margin: 0;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        gap: 0;
    }

    .nav-links > a,
    .nav-dropdown-toggle {
        width: 100%;
        min-width: 0;
        min-height: 52px;
        padding: 14px 5px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        text-align: left;
        border-bottom: 1px solid var(--border);
        font-size: 16px;
    }

    .nav-dropdown {
        position: relative;
        width: 100%;
        min-width: 0;
    }

    .services-menu {
        position: static;
        left: auto;
        right: auto;
        top: auto;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        margin: 0;
        padding: 12px;
        display: none;
        grid-template-columns: minmax(0, 1fr);
        gap: 12px;
        transform: none;
        background: var(--soft);
        border: 1px solid var(--border);
        border-radius: 14px;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .nav-dropdown.open .services-menu {
        display: grid;
        transform: none;
    }

    .services-menu > div {
        min-width: 0;
        padding: 0;
    }

    .services-menu a {
        display: block;
        width: 100%;
        min-width: 0;
        padding: 10px;
        overflow-wrap: anywhere;
    }

    .nav-actions {
        width: 100%;
        min-width: 0;
        margin-top: auto;
        padding-top: 18px;
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 10px;
        border-top: 1px solid var(--border);
    }

    .nav-actions .btn {
        flex: 1 1 120px;
        min-width: 0;
    }

    .nav-actions .theme-toggle {
        flex: 0 0 46px;
        width: 46px;
        height: 46px;
    }

    .hero-grid,
    .two-col,
    .experience-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .hero-grid {
        min-height: auto;
    }

    .hero-copy {
        padding-top: 25px;
    }

    .hero-visual {
        min-height: 530px;
    }

    .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* ---------- Small mobile screens ---------- */

@media (max-width: 620px) {
    .container {
        width: calc(100% - 28px);
    }

    .section {
        padding: 78px 0;
    }

    .hero {
        padding-top: 36px;
    }

    .hero h1 {
        font-size: clamp(42px, 13vw, 58px);
    }

    .hero-text {
        font-size: 17px;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .trust-row {
        display: grid;
        gap: 10px;
    }

    .about-card {
        width: min(410px, 94%);
        padding: 30px 24px;
    }

    .floating-note {
        max-width: calc(100% - 16px);
        transform: scale(0.84);
        transform-origin: center;
    }

    .note-one {
        left: 0;
    }

    .note-two {
        right: 0;
    }

    .cards.four,
    .services-grid,
    .footer-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .experience-card,
    .quote {
        padding: 32px 25px;
    }

    .cta-card {
        padding: 35px 25px;
        flex-direction: column;
        align-items: flex-start;
    }

    .cta-card .btn {
        width: 100%;
    }

    .footer-bottom {
        min-height: auto;
        padding: 20px 0;
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ---------- Very small mobile screens ---------- */

@media (max-width: 380px) {
    .nav-container {
        width: calc(100% - 24px);
    }

    .nav-panel {
        padding-right: 14px;
        padding-left: 14px;
    }

    .brand img {
        width: 88px;
    }

    .nav-actions .btn {
        flex-basis: 100%;
    }

    .hero h1 {
        font-size: clamp(38px, 12vw, 48px);
    }
}

/* ---------- Reduced motion accessibility ---------- */

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}
