/*// ====================================
// 🌱 Root Variables
// ====================================*/

:root {
    --brand-blue: #1a56a8;
    --brand-dark: #0d3b66;
    --brand-yellow: #fbbf24;
    --brand-light: #f8fafc;

    --text: #0f172a;
    --muted: #64748b;

    --bg-dark: #0b1220;
    --card: #ffffff;

    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.10);
    --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.16);

    --radius-lg: 16px;
    --radius-md: 12px;

    --transition: 200ms cubic-bezier(0.4, 0, 0.2, 1);

    --header-height: 80px;
}

/*// ====================================
// 🧼 Base Reset
// ====================================*/

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-height) + 10px);
}

body {
    margin: 0;
    color: var(--text);
    background: var(--brand-light);
    font-family: "Open Sans", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    line-height: 1.5;
    overflow-x: hidden;
}

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

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

button {
    font: inherit;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/*// ====================================
// 🧱 Layout Utilities
// ====================================*/

.container {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
}

.section {
    padding: 72px 0;
}

.section--light {
    background: #ffffff;
}

.section--dark {
    background: var(--bg-dark);
}

.section-header {
    text-align: center;
    margin-bottom: 44px;
}

.section-title {
    font-family: "Montserrat", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    font-weight: 800;
    letter-spacing: -0.02em;
    font-size: clamp(28px, 3.2vw, 44px);
    margin: 0 0 12px;
}

.section-title--light {
    color: #ffffff;
}

.section-subtitle {
    margin: 0 auto;
    color: var(--muted);
    max-width: 820px;
    font-size: 18px;
}

.section-subtitle--light {
    color: rgba(255, 255, 255, 0.78);
}

.text-gradient {
    background: linear-gradient(135deg, var(--brand-blue), var(--brand-dark));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.text-accent {
    color: var(--brand-yellow);
}

/*// ====================================
// 🔘 Buttons
// ====================================*/

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border-radius: 12px;
    padding: 14px 18px;
    font-weight: 700;
    border: 1px solid transparent;
    transition: transform var(--transition), box-shadow var(--transition), background var(--transition), border-color var(--transition), color var(--transition);
    user-select: none;
}

.btn:focus-visible,
.icon-button:focus-visible,
.nav-link:focus-visible,
.mobile-link:focus-visible,
.footer-link:focus-visible {
    outline: 3px solid rgba(251, 191, 36, 0.55);
    outline-offset: 3px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--brand-blue), var(--brand-dark));
    color: #ffffff;
    box-shadow: var(--shadow-lg);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-xl);
}

.btn-accent {
    background: linear-gradient(135deg, var(--brand-yellow), #f59e0b);
    color: #0b1220;
    box-shadow: 0 12px 26px rgba(245, 158, 11, 0.28);
}

.btn-accent:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 36px rgba(245, 158, 11, 0.35);
}

.btn-ghost {
    background: rgba(255, 255, 255, 0.10);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(8px);
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.14);
}

.btn-light {
    background: rgba(255, 255, 255, 0.92);
    color: #0b1220;
}

.btn-light:hover {
    background: #ffffff;
    transform: translateY(-1px);
}

.btn-block {
    width: 100%;
}

/*// ====================================
// 🧭 Header
// ====================================*/

.main-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    z-index: 1000;
    background: transparent;
    transition: background var(--transition), box-shadow var(--transition), backdrop-filter var(--transition), border-color var(--transition);
}

.main-header.scrolled {
    background: rgb(91 99 120 / 66%);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-lg);
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.header-inner {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.brand-logo {
    width: auto;
    height: 52px;
}

.brand-text {
    display: none;
}

.brand-name {
    font-family: "Montserrat", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    font-weight: 800;
    font-size: 18px;
    line-height: 1.1;
    color: #ffffff;
}

.brand-subtitle {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.78);
}

.main-header.scrolled .brand-name {
    color: var(--text);
}

.main-header.scrolled .brand-subtitle {
    color: rgba(15, 23, 42, 0.60);
}

.nav-desktop {
    display: none;
    align-items: center;
    gap: 28px;
}

.nav-link {
    font-weight: 700;
    color: #ffffff;
    opacity: 0.95;
    transition: color var(--transition), opacity var(--transition);
}

.nav-link:hover {
    opacity: 1;
    color: var(--brand-yellow);
}

.main-header.scrolled .nav-link {
    color: var(--text);
}

.main-header.scrolled .nav-link:hover {
    color: var(--brand-blue);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-cta {
    display: none;
}

.header-cta-text {
    white-space: nowrap;
}

.icon-button {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.20);
    background: rgba(255, 255, 255, 0.10);
    color: #ffffff;
    backdrop-filter: blur(8px);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background var(--transition), border-color var(--transition), transform var(--transition);
}

.main-header.scrolled .icon-button {
    background: rgba(15, 23, 42, 0.05);
    border-color: rgba(15, 23, 42, 0.08);
    color: var(--text);
}

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

/*// ====================================
// 📱 Mobile Menu
// ====================================*/

.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 1200;
    pointer-events: none;
    opacity: 0;
    transition: opacity var(--transition);
}

.mobile-menu.is-open {
    opacity: 1;
    pointer-events: auto;
}

.mobile-menu__backdrop {
    position: absolute;
    inset: 0;
    border: 0;
    background: rgba(0, 0, 0, 0.45);
    cursor: pointer;
    z-index: -1;
}

.mobile-menu__panel {
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    width: min(420px, 92vw);
    background: #ffffff;
    transform: translateX(102%);
    transition: transform 280ms cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.mobile-menu.is-open .mobile-menu__panel {
    transform: translateX(0);
}

.mobile-menu__top {
    background: linear-gradient(135deg, var(--brand-blue), var(--brand-dark));
    color: #ffffff;
    padding: calc(env(safe-area-inset-top) + 16px) 18px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.mobile-menu__logo {
    height: 46px;
    width: auto;
}

.mobile-menu__close {
    border-color: rgba(255, 255, 255, 0.30);
}

.mobile-menu__nav {
    padding: 18px;
    display: grid;
    gap: 4px;
}

.mobile-link {
    padding: 14px 12px;
    border-radius: 12px;
    font-weight: 800;
    color: var(--text);
    background: rgba(15, 23, 42, 0.03);
    transition: background var(--transition), transform var(--transition);
}

.mobile-link:hover {
    background: rgba(26, 86, 168, 0.08);
    transform: translateY(-1px);
}

.mobile-menu__cta {
    margin-top: auto;
    padding: 18px;
    display: grid;
    gap: 10px;
}

.btn-ghost.btn-block {
    background: rgba(26, 86, 168, 0.06);
    border-color: rgba(26, 86, 168, 0.14);
    color: var(--brand-blue);
    backdrop-filter: none;
}

/*// ====================================
// 🎬 Video Hero Section
// ====================================*/

.video-hero {
    position: relative;
    min-height: 680px;
    height: 100vh;
    overflow: hidden;
}

.video-background {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-overlay {
    position: absolute;
    inset: 0;
    background: rgb(0 70 142 / 40%); /* requested: keep original video clean */
}

.hero-content {
    position: relative;
    height: 100%;
    display: grid;
    align-items: center;
    padding-top: var(--header-height);
    padding-bottom: 40px;
}

.hero-copy {
    max-width: 820px;
    color: #ffffff;
    text-shadow: 0 8px 28px rgba(0, 0, 0, 0.45);
}

.typewriter-container {
    min-height: 84px;
    margin-bottom: 18px;
}

.typewriter-text {
    font-family: "Montserrat", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    font-weight: 900;
    letter-spacing: -0.02em;
    font-size: clamp(28px, 4.2vw, 56px);
    line-height: 1.05;

    /* Fix: ensure full phrase can render on desktop and mobile */
    white-space: normal;
    overflow: visible;
    word-break: break-word;
}

/* caret */
.typewriter-text.is-typing::after {
    content: "";
    display: inline-block;
    width: 0.12em;
    height: 1em;
    margin-left: 0.08em;
    vertical-align: -0.12em;
    background: var(--brand-yellow);
    animation: caret-blink 900ms steps(1, end) infinite;
}

@keyframes caret-blink {
    0% { opacity: 0; }
    50% { opacity: 1; }
    100% { opacity: 0; }
}

.hero-tagline {
    margin: 18px 0 22px;
}

.hero-line {
    margin: 0;
    font-family: "Open Sans", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    font-weight: 700;
    font-size: clamp(18px, 2vw, 26px);
}

.hero-line--white {
    color: rgba(255, 255, 255, 0.95);
}

.hero-line--accent {
    color: var(--brand-yellow);
    font-family: "Montserrat", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    font-weight: 900;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 14px;
}

.hero-note {
    margin: 0;
    color: rgba(255, 255, 255, 0.82);
    font-weight: 600;
}

.scroll-indicator {
    position: absolute;
    bottom: 18px;
    left: 50%;
    transform: translateX(-50%);
}

.scroll-indicator__btn {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.20);
    border-radius: 999px;
    backdrop-filter: blur(8px);
    animation: bounce 1.6s infinite;
}

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

/*// ====================================
// 🧩 Cards & Grids
// ====================================*/

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

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

.card {
    background: var(--card);
    border-radius: var(--radius-lg);
    padding: 22px;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(15, 23, 42, 0.06);
    transition: transform var(--transition), box-shadow var(--transition);
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
}

.card-icon {
    width: 50px;
    height: 50px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: rgba(26, 86, 168, 0.08);
    color: var(--brand-blue);
    margin-bottom: 12px;
}

.card-title {
    margin: 0 0 10px;
    font-family: "Montserrat", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    font-size: 18px;
    font-weight: 900;
}

.card-text {
    margin: 0;
    color: var(--muted);
}

.card--form {
    padding: 26px;
}

/*// ====================================
// ⭐ Reviews
// ====================================*/

.reviews-cta {
    display: flex;
    flex-direction: column;
    gap: 14px;
    align-items: stretch;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: var(--radius-lg);
    padding: 18px;
    backdrop-filter: blur(10px);
    margin-bottom: 18px;
}

.reviews-cta__left {
    display: flex;
    gap: 14px;
    align-items: center;
}

.reviews-title {
    color: #ffffff;
    margin: 0 0 4px;
    font-family: "Montserrat", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    font-weight: 900;
    font-size: 18px;
}

.reviews-text {
    margin: 0;
    color: rgba(255, 255, 255, 0.78);
}

.reviews-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(1, minmax(0, 1fr));
}

.review {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: var(--radius-lg);
    padding: 18px;
}

.review-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.review-name {
    color: #ffffff;
    font-weight: 800;
}

.review-date {
    color: rgba(255, 255, 255, 0.65);
    font-size: 13px;
    white-space: nowrap;
}

.review-stars {
    color: var(--brand-yellow);
    letter-spacing: 1px;
    font-size: 14px;
}

.review-text {
    margin: 10px 0 0;
    color: rgba(255, 255, 255, 0.85);
}

.reviews-loading {
    grid-column: 1 / -1;
    text-align: center;
    padding: 22px 0;
    color: rgba(255, 255, 255, 0.78);
}

.spinner {
    width: 38px;
    height: 38px;
    border-radius: 999px;
    border: 3px solid rgba(255, 255, 255, 0.25);
    border-top-color: #ffffff;
    margin: 0 auto 10px;
    animation: spin 900ms linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.reviews-note {
    margin: 16px 0 0;
    color: rgba(255, 255, 255, 0.60);
    font-size: 13px;
}

/*// ====================================
// 📞 Contact
// ====================================*/

.contact-grid {
    display: grid;
    gap: 18px;
    grid-template-columns: 1fr;
    align-items: start;
}

.contact-cards {
    display: grid;
    gap: 12px;
    margin-top: 18px;
}

.contact-card {
    display: flex;
    gap: 12px;
    align-items: center;
    background: rgba(15, 23, 42, 0.03);
    border: 1px solid rgba(15, 23, 42, 0.05);
    border-radius: var(--radius-lg);
    padding: 16px;
}

.contact-icon {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    color: #ffffff;
    background: linear-gradient(135deg, var(--brand-blue), var(--brand-dark));
}

.contact-label {
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.contact-value {
    font-weight: 900;
    font-size: 18px;
}

.contact-value--email {
    word-break: break-word;
}

/*// ====================================
// 🧾 Form
// ====================================*/

.form {
    margin-top: 12px;
}

.field {
    display: grid;
    gap: 6px;
    margin-bottom: 12px;
}

.label {
    font-weight: 800;
    font-size: 13px;
    color: rgba(15, 23, 42, 0.78);
}

.input {
    width: 100%;
    border-radius: 12px;
    padding: 12px 12px;
    border: 1px solid rgba(15, 23, 42, 0.14);
    background: #ffffff;
    transition: border-color var(--transition), box-shadow var(--transition);
}

.input:focus {
    outline: none;
    border-color: rgba(26, 86, 168, 0.55);
    box-shadow: 0 0 0 4px rgba(26, 86, 168, 0.12);
}

.form-hint {
    margin: 10px 0 0;
    color: var(--muted);
    font-size: 13px;
}

.form-status {
    margin-top: 12px;
    font-size: 14px;
    font-weight: 700;
}

/*// ====================================
// 🧾 Footer
// ====================================*/

.footer {
    background: #0a1020;
    color: rgba(255, 255, 255, 0.86);
    padding: 54px 0 26px;
}

.footer-grid {
    display: grid;
    gap: 18px;
    grid-template-columns: 1fr;
    margin-bottom: 18px;
}

.footer-logo {
    height: 52px;
    width: auto;
    margin-bottom: 10px;
}

.footer-title {
    margin: 0 0 10px;
    font-family: "Montserrat", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    font-weight: 900;
    color: #ffffff;
}

.footer-link {
    display: block;
    padding: 6px 0;
    color: rgba(255, 255, 255, 0.78);
}

.footer-link:hover {
    color: var(--brand-yellow);
}

.footer-link--email {
    word-break: break-word;
}

.footer-text {
    margin: 0;
    color: rgba(255, 255, 255, 0.68);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.10);
    padding-top: 16px;
    text-align: center;
    font-size: 13px;
}

/*// ====================================
// 🧷 Floating Actions
// ====================================*/

.fab {
    position: fixed;
    right: 18px;
    bottom: 18px;
    width: 62px;
    height: 62px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: #22c55e;
    color: #ffffff;
    box-shadow: var(--shadow-xl);
    z-index: 900;
    transition: transform var(--transition), filter var(--transition);
}

.fab:hover {
    transform: translateY(-2px);
    filter: brightness(1.03);
}

.back-to-top {
    position: fixed;
    right: 18px;
    bottom: 92px;
    width: 52px;
    height: 52px;
    border-radius: 999px;
    border: 0;
    background: linear-gradient(135deg, var(--brand-blue), var(--brand-dark));
    color: #ffffff;
    box-shadow: var(--shadow-xl);
    z-index: 900;
    opacity: 0;
    pointer-events: none;
    transform: translateY(6px);
    transition: opacity var(--transition), transform var(--transition);
    cursor: pointer;
}

.back-to-top.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

/*// ====================================
// 📐 Responsive
// ====================================*/

@media (min-width: 900px) {
    .brand-text {
        display: block;
        min-width: 0;
    }

    .nav-desktop {
        display: flex;
    }

    .header-cta {
        display: inline-flex;
    }

    .nav-toggle {
        display: none;
    }

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

    .reviews-cta {
        flex-direction: row;
        align-items: center;
    }

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

    .contact-grid {
        grid-template-columns: 1.05fr 0.95fr;
        gap: 22px;
    }

    .footer-grid {
        grid-template-columns: 1.2fr 0.8fr 0.9fr 1.1fr;
        gap: 26px;
    }
}

@media (max-width: 480px) {
    .video-hero {
        min-height: 640px;
    }

    .typewriter-container {
        min-height: 96px;
    }

    .btn {
        padding: 13px 16px;
    }

    .mobile-menu__top {
        padding: calc(env(safe-area-inset-top) + 14px) 16px 14px;
    }
}

/*// ====================================
// 🖨️ Print
// ====================================*/

@media print {
    .main-header,
    .fab,
    .back-to-top,
    .video-hero {
        display: none !important;
    }

    body {
        background: #ffffff !important;
        color: #000000 !important;
    }
}