﻿/* ═══════════════════════════════════════
   Design System — Modern Light
═══════════════════════════════════════ */
:root {
    color-scheme: light;

    --bg:             #ffffff;
    --bg-soft:        #f8fafc;
    --bg-muted:       #f1f5f9;
    --bg-elevated:    #ffffff;
    --text:           #0f172a;
    --text-soft:      #334155;
    --text-muted:     #64748b;
    --line:           #e2e8f0;
    --line-soft:      #f8fafc;

    --primary:        #6366f1;
    --primary-strong: #4f46e5;
    --primary-soft:   #eef2ff;
    --primary-mid:    #c7d2fe;
    --accent:         #f59e0b;
    --accent-soft:    #fffbeb;
    --success:        #10b981;
    --success-soft:   #d1fae5;
    --danger:         #ef4444;
    --danger-soft:    #fee2e2;

    --r-xs:   .375rem;
    --r-sm:   .625rem;
    --r-md:   .875rem;
    --r-lg:   1.125rem;
    --r-xl:   1.5rem;
    --r-pill: 999px;

    --shadow-xs: 0 1px 2px rgba(15,23,42,.04);
    --shadow-sm: 0 1px 3px rgba(15,23,42,.06), 0 1px 2px rgba(15,23,42,.04);
    --shadow-md: 0 4px 16px rgba(99,102,241,.10), 0 1px 4px rgba(15,23,42,.06);
    --shadow-lg: 0 12px 36px rgba(15,23,42,.10), 0 2px 8px rgba(15,23,42,.06);

    --section-y:     clamp(3rem, 5vw, 5.5rem);
    --container-max: 74rem;
    --ease:          cubic-bezier(.22,.61,.36,1);
    --duration:      .22s;
}

*, *::before, *::after { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    margin: 0;
    font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont,
        "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.65;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color var(--duration) var(--ease);
}
a:hover { color: var(--primary-strong); }

img, svg { max-width: 100%; }

fieldset { border: none; padding: 0; margin: 0; }
legend   { padding: 0; margin-bottom: .85rem; font-weight: 700; color: var(--text); }

.container {
    max-width: min(var(--container-max), 100% - 2rem);
    margin-inline: auto;
}
.section-pad { padding-block: var(--section-y); }

h1, h2, h3, h4, h5, h6 {
    margin-top: 0;
    line-height: 1.2;
    letter-spacing: -.025em;
    color: var(--text);
    font-weight: 700;
}

h1, .display-4     { font-size: clamp(2rem, 2.4vw + 1.2rem, 3.4rem) !important; }
h2, .section-title { font-size: clamp(1.6rem, 1.4vw + 1rem, 2.4rem) !important; }
h3                 { font-size: clamp(1.25rem, .7vw + 1rem, 1.65rem); }
h4                 { font-size: clamp(1.1rem, .3vw + 1rem, 1.3rem); }

.lead { font-size: 1.075rem; line-height: 1.75; }

.text-muted,
.text-white-50,
.text-white-75,
.section-sub   { color: var(--text-muted) !important; }

.text-white    { color: var(--text) !important; }
.text-navy     { color: var(--primary) !important; }
.text-gold     { color: var(--accent) !important; }
.text-danger   { color: var(--danger) !important; }

.bg-white  { background: var(--bg) !important; }
.bg-light  { background: var(--bg-soft) !important; }

.section-header { max-width: 48rem; margin-inline: auto; }

.section-label {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .3rem .8rem;
    border-radius: var(--r-pill);
    background: var(--primary-soft);
    color: var(--primary-strong);
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .07em;
    text-transform: uppercase;
    margin-bottom: .85rem;
}

/* ─── Navbar ─── */
.navbar {
    background: rgba(255,255,255,.92);
    backdrop-filter: saturate(180%) blur(16px);
    -webkit-backdrop-filter: saturate(180%) blur(16px);
    border-bottom: 1px solid var(--line-soft);
    transition:
        box-shadow var(--duration) var(--ease),
        border-color var(--duration) var(--ease),
        background var(--duration) var(--ease);
}
.navbar.sticky-top {
    position: sticky;
    top: 0;
    z-index: 1030;
}
.navbar.scrolled {
    box-shadow: var(--shadow-sm);
    border-bottom-color: var(--line);
    background: rgba(255,255,255,.98);
}
.navbar-brand, .brand {
    color: var(--text);
    font-weight: 700;
    letter-spacing: -.02em;
}
.navbar-brand:hover, .brand:hover { color: var(--primary); }

.brand-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: var(--r-md);
    background: var(--primary);
    color: #fff;
    font-weight: 800;
    font-size: .88rem;
    flex-shrink: 0;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: .125rem;
    margin: 0;
    padding: 0;
    list-style: none;
}
.nav-link {
    color: var(--text-soft) !important;
    border-radius: var(--r-sm);
    padding: .45rem .9rem !important;
    font-weight: 500;
    font-size: .9375rem;
    transition: background var(--duration) var(--ease), color var(--duration) var(--ease);
}
.nav-link:hover,
.nav-link:focus-visible {
    color: var(--primary-strong) !important;
    background: var(--primary-soft);
}

/* ─── Focus ring ─── */
.btn:focus-visible,
.form-control:focus,
.form-select:focus,
textarea:focus {
    outline: none;
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 20%, transparent);
}

/* ─── Buttons ─── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    padding: .65rem 1.35rem;
    border: 1.5px solid transparent;
    border-radius: var(--r-pill);
    font-weight: 600;
    font-size: .9375rem;
    cursor: pointer;
    text-decoration: none;
    line-height: 1.4;
    transition:
        transform var(--duration) var(--ease),
        box-shadow var(--duration) var(--ease),
        background var(--duration) var(--ease),
        color var(--duration) var(--ease),
        border-color var(--duration) var(--ease);
}
.btn:hover  { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-lg { padding: .8rem 1.85rem; font-size: 1rem; }
.btn-sm { padding: .38rem 1rem;   font-size: .875rem; }

.btn-primary, .btn-navy {
    background: var(--primary);
    color: #fff !important;
    border-color: var(--primary);
    box-shadow: 0 2px 8px color-mix(in srgb, var(--primary) 28%, transparent);
}
.btn-primary:hover, .btn-navy:hover {
    background: var(--primary-strong);
    border-color: var(--primary-strong);
    color: #fff !important;
    box-shadow: 0 4px 18px color-mix(in srgb, var(--primary) 36%, transparent);
}

.btn-gold, .btn-secondary {
    background: var(--accent);
    color: #1c1400 !important;
    border-color: var(--accent);
    box-shadow: 0 2px 8px color-mix(in srgb, var(--accent) 28%, transparent);
}
.btn-gold:hover, .btn-secondary:hover {
    background: #e08900;
    border-color: #e08900;
    color: #1c1400 !important;
    box-shadow: 0 4px 18px color-mix(in srgb, var(--accent) 36%, transparent);
}

.btn-outline-navy, .btn-outline-primary, .btn-ghost {
    background: transparent;
    border-color: var(--line);
    color: var(--text-soft) !important;
}
.btn-outline-navy:hover, .btn-outline-primary:hover, .btn-ghost:hover {
    background: var(--primary-soft);
    border-color: var(--primary-mid);
    color: var(--primary-strong) !important;
}
.btn-outline-light {
    background: transparent;
    border-color: color-mix(in srgb, var(--text) 22%, transparent);
    color: var(--text-soft) !important;
}
.btn-outline-light:hover {
    background: var(--bg-muted);
    color: var(--text) !important;
}

/* ─── Badges ─── */
.badge {
    display: inline-flex;
    align-items: center;
    border-radius: var(--r-pill);
    padding: .3rem .75rem;
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .02em;
}
.badge-gold {
    background: var(--accent-soft);
    color: #92400e;
    border: 1px solid color-mix(in srgb, var(--accent) 26%, transparent);
}
.bg-white.text-dark {
    background: var(--bg-muted) !important;
    color: var(--text-soft) !important;
    border: 1px solid var(--line);
}

/* ─── Hero ─── */
.hero-section {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    background:
        radial-gradient(ellipse 90% 60% at 65% 110%,
            color-mix(in srgb, var(--primary) 6%, transparent), transparent),
        radial-gradient(ellipse 65% 75% at -5% 55%,
            color-mix(in srgb, var(--accent) 5%, transparent), transparent),
        linear-gradient(155deg, #fafbff 0%, #ffffff 50%, #f5f3ff 100%);
    border-bottom: 1px solid var(--line);
}
.hero-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, #cbd5e1 1px, transparent 1px);
    background-size: 26px 26px;
    opacity: .5;
    pointer-events: none;
    z-index: 0;
}
.hero-section::after {
    content: "";
    position: absolute;
    top: -16rem;
    right: -10rem;
    width: 50rem;
    height: 50rem;
    border-radius: 50%;
    background: radial-gradient(circle,
        color-mix(in srgb, var(--primary) 7%, transparent),
        transparent 65%);
    pointer-events: none;
    z-index: 0;
}
.hero-overlay  { display: none; }
.hero-content,
.hero-wave     { position: relative; z-index: 1; }
.min-vh-hero {
    min-height: clamp(32rem, 74vh, 44rem);
    padding-block: clamp(3.5rem, 7vw, 6.5rem);
}
.hero-stats > div {
    min-width: 8.5rem;
    padding: .85rem 1rem;
    border-radius: var(--r-lg);
    background: var(--bg-elevated);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
}

/* ─── Cards ─── */
.card {
    background: var(--bg-elevated);
    border: 1px solid var(--line);
    border-radius: var(--r-xl);
    box-shadow: var(--shadow-xs);
}

.service-card,
.review-card,
.step-card {
    height: 100%;
    padding: 1rem;
    background: var(--bg-elevated);
    border: 1.5px solid var(--line);
    border-radius: var(--r-xl);
    box-shadow: var(--shadow-xs);
    transition:
        transform var(--duration) var(--ease),
        box-shadow var(--duration) var(--ease),
        border-color var(--duration) var(--ease);
}
.service-card:hover,
.review-card:hover,
.step-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-mid);
}

.service-icon,
.step-icon,
.contact-info-icon {
    width: 2.5rem;
    height: 2.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--r-lg);
    background: var(--primary-soft);
    font-size: 1.25rem;
    flex-shrink: 0;
}

.step-number {
    width: 2.4rem;
    height: 2.4rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--r-pill);
    background: var(--primary);
    color: #fff;
    font-weight: 800;
    font-size: .95rem;
    box-shadow: 0 2px 8px color-mix(in srgb, var(--primary) 30%, transparent);
}

/* ─── Forms ─── */
.form-label {
    display: block;
    margin-bottom: .4rem;
    font-size: .875rem;
    font-weight: 500;
    color: var(--text-soft);
}

.form-control,
.form-select,
textarea {
    display: block;
    width: 100%;
    padding: .65rem .9rem;
    font-size: .9375rem;
    font-family: inherit;
    color: var(--text);
    background: var(--bg-elevated);
    border: 1.5px solid var(--line);
    border-radius: var(--r-md);
    line-height: 1.5;
    transition:
        border-color var(--duration) var(--ease),
        box-shadow var(--duration) var(--ease);
}
.form-control:hover,
.form-select:hover,
textarea:hover {
    border-color: color-mix(in srgb, var(--primary) 40%, var(--line));
}
.form-control:focus,
.form-select:focus,
textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 16%, transparent);
    outline: none;
}
.form-control::placeholder,
textarea::placeholder { color: var(--text-muted); }
textarea { resize: vertical; }

/* ─── Alerts ─── */
.alert {
    border-radius: var(--r-md);
    padding: .85rem 1.1rem;
    font-size: .9rem;
    border: 1.5px solid transparent;
}
.alert-success {
    background: var(--success-soft);
    border-color: color-mix(in srgb, var(--success) 30%, transparent);
    color: #065f46;
}
.alert-danger {
    background: var(--danger-soft);
    border-color: color-mix(in srgb, var(--danger) 28%, transparent);
    color: #991b1b;
}

/* ─── Stars ─── */
.stars { color: var(--accent); letter-spacing: .04em; }

/* ─── FAQ Accordion ─── */
.accordion { display: grid; gap: .75rem; }

.accordion-item {
    border: 1.5px solid var(--line);
    border-radius: var(--r-lg) !important;
    overflow: hidden;
    background: var(--bg-elevated);
    transition:
        border-color var(--duration) var(--ease),
        box-shadow var(--duration) var(--ease);
}
.accordion-item[open] {
    border-color: var(--primary-mid);
    box-shadow: var(--shadow-sm);
}
.accordion-button {
    display: block;
    width: 100%;
    padding: 1rem 1.15rem;
    background: transparent;
    border: none;
    text-align: left;
    font-weight: 600;
    font-size: .9375rem;
    color: var(--text);
    cursor: pointer;
    list-style: none;
    user-select: none;
    transition: background var(--duration) var(--ease), color var(--duration) var(--ease);
}
.accordion-button::-webkit-details-marker { display: none; }
.accordion-item[open] .accordion-button {
    color: var(--primary-strong);
    background: var(--primary-soft);
}
.accordion-body {
    padding: 0 1.15rem 1rem;
    font-size: .9375rem;
    color: var(--text-soft);
    line-height: 1.7;
}

/* ─── Contact info ─── */
.contact-info-list { display: grid; gap: .85rem; }
.contact-info-item {
    display: flex;
    gap: .9rem;
    align-items: flex-start;
    padding: .9rem 1rem;
    border: 1.5px solid var(--line);
    border-radius: var(--r-lg);
    background: var(--bg-soft);
    transition:
        border-color var(--duration) var(--ease),
        background var(--duration) var(--ease);
}
.contact-info-item:hover {
    border-color: var(--primary-mid);
    background: var(--primary-soft);
}

/* ─── Footer ─── */
.footer-main {
    background: #0f172a;
    color: #94a3b8;
    margin-top: 0;
}
.footer-main .footer-links a,
.footer-main .footer-bottom a {
    color: #94a3b8;
    transition: color var(--duration) var(--ease);
}
.footer-main .footer-links a:hover,
.footer-main .footer-bottom a:hover { color: #e2e8f0; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.07); }

@media (max-width: 767.98px) {
    html { font-size: 15px; }
    .container { max-width: calc(100% - 1.5rem); }
    .section-pad { padding-block: clamp(2.2rem, 8vw, 3.5rem); }
    .min-vh-hero {
        min-height: auto;
        padding-top: 3.5rem;
        padding-bottom: 3rem;
    }
    .hero-stats  { gap: .5rem !important; }
    .hero-stats > div {
        flex: 1 1 calc(50% - .5rem);
        min-width: 7rem;
    }
    .tw-p-4 { padding: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ═══ Utility layer — tw-* ═══ */
.nav-shell {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.tw-row {
    display: flex;
    flex-wrap: wrap;
    margin-inline: -.75rem;
}
.tw-row > [class*="tw-col-"] {
    width: 100%;
    padding-inline: .75rem;
}

.tw-g-2 { row-gap: .5rem; }
.tw-g-3 { row-gap: 1rem; }
.tw-g-4 { row-gap: 1.5rem; }

/* legacy gap aliases */
.gap-2 { gap: .5rem; }
.gap-3 { gap: .75rem; }
.gap-4 { gap: 1rem; }

.tw-col-12 { width: 100%; }

@media (min-width: 768px) {
    .tw-row > .tw-col-md-6 { width: 50%; }
    .tw-p-md-5      { padding: 2rem; }
    .tw-flex-md-row { flex-direction: row; }
}

@media (min-width: 992px) {
    .tw-row > .tw-col-lg-3 { width: 25%; }
    .tw-row > .tw-col-lg-4 { width: 33.333333%; }
    .tw-row > .tw-col-lg-5 { width: 41.666667%; }
    .tw-row > .tw-col-lg-6 { width: 50%; }
    .tw-row > .tw-col-lg-7 { width: 58.333333%; }
    .tw-row > .tw-col-lg-8 { width: 66.666667%; }
}

.tw-flex           { display: flex; }
.tw-d-grid         { display: grid; }
.tw-hidden         { display: none !important; }
.tw-flex-wrap      { flex-wrap: wrap; }
.tw-flex-column    { flex-direction: column; }
.tw-items-center   { align-items: center; }
.tw-items-start    { align-items: flex-start; }
.tw-justify-between  { justify-content: space-between; }
.tw-justify-end    { justify-content: flex-end; }
.tw-justify-center { justify-content: center; }
.tw-text-center    { text-align: center; }

.tw-gap-1 { gap: .25rem; }
.tw-gap-2 { gap: .5rem; }
.tw-gap-3 { gap: .75rem; }
.tw-gap-4 { gap: 1rem; }

.tw-fw-semibold { font-weight: 600; }
.tw-fw-bold     { font-weight: 700; }
.tw-small       { font-size: .875rem; }
.tw-h5          { font-size: 1.25rem; font-weight: 700; line-height: 1.3; }
.tw-h6          { font-size: 1rem;    font-weight: 700; line-height: 1.4; }
.tw-fs-4        { font-size: 1.5rem; }
.fs-4           { font-size: 1.5rem; }

.tw-mb-0 { margin-bottom: 0; }
.tw-mb-2 { margin-bottom: .5rem; }
.tw-mb-3 { margin-bottom: .75rem; }
.tw-mb-4 { margin-bottom: 1rem; }
.tw-mb-5 { margin-bottom: 1.5rem; }
.tw-mt-1 { margin-top: .25rem; }
.tw-mt-2 { margin-top: .5rem; }
.tw-mt-3 { margin-top: .75rem; }
.tw-mt-4 { margin-top: 1rem; }
.tw-mt-5 { margin-top: 1.5rem; }
.tw-mx-auto { margin-inline: auto; }

.tw-px-3 { padding-inline: .75rem; }
.tw-px-4 { padding-inline: 1rem; }
.tw-py-2 { padding-block: .5rem; }
.tw-py-3 { padding-block: .75rem; }
.tw-py-5 { padding-block: 1.5rem; }
.tw-p-4  { padding: 1.25rem; }
.tw-p-5  { padding: 2rem; }

.tw-h-100   { height: 100%; }
.tw-w-100   { width: 100%; }
.tw-d-block { display: block; }

.tw-list-none { list-style: none; padding-left: 0; margin: 0; }

.tw-form-check {
    display: flex;
    gap: .5rem;
    align-items: flex-start;
}
.tw-form-check-input {
    margin-top: .2rem;
    accent-color: var(--primary);
    width: 1rem;
    height: 1rem;
}

.text-dark     { color: var(--text) !important; }
.text-white-50 { color: var(--text-muted) !important; }

@media (max-width: 991.98px) {
    .nav-shell {
        flex-direction: column;
        align-items: stretch;
    }
    .nav-links {
        overflow-x: auto;
        white-space: nowrap;
        padding-bottom: .25rem;
        scrollbar-width: thin;
    }
}

/* ═══ Interactive Quiz ═══ */
.quiz-progress-wrap {
    height: 6px;
    background: var(--bg-muted);
    border-radius: var(--r-pill);
    overflow: hidden;
    position: relative;
}
.quiz-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--primary-strong));
    border-radius: var(--r-pill);
    width: 20%;
    transition: width .4s var(--ease);
}

.quiz-options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1rem;
}

.quiz-option-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .75rem;
    padding: 1.5rem 1rem;
    background: var(--bg-elevated);
    border: 2px solid var(--line);
    border-radius: var(--r-xl);
    cursor: pointer;
    transition:
        transform var(--duration) var(--ease),
        border-color var(--duration) var(--ease),
        background var(--duration) var(--ease),
        box-shadow var(--duration) var(--ease);
    text-align: center;
    font-weight: 600;
    color: var(--text);
}
.quiz-option-card:hover {
    transform: translateY(-4px) scale(1.02);
    border-color: var(--primary-mid);
    background: var(--primary-soft);
    box-shadow: var(--shadow-md);
}
.quiz-option-card.selected {
    border-color: var(--primary);
    background: var(--primary-soft);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 20%, transparent);
}
.quiz-option-card:active {
    transform: translateY(-2px) scale(1);
}

.quiz-option-icon {
    font-size: 2.5rem;
    line-height: 1;
}
.quiz-option-label {
    font-size: .9375rem;
    font-weight: 600;
}

.quiz-step-block {
    animation: slideIn .4s var(--ease);
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@media (max-width: 767.98px) {
    .quiz-options-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: .75rem;
    }
    .quiz-option-card {
        padding: 1.25rem .75rem;
    }
    .quiz-option-icon {
        font-size: 2rem;
    }
}


