/* ── Variables ───────────────────────────────────────────────── */
:root {
    --primary:        #3C3F6E;
    --primary-light:  #7478A8;
    --accent:         #F5A020;
    --accent-dark:    #D48B10;
    --accent-light:   #FABB54;
    --text-dark:      #1A1B2E;
    --text-body:      #3A3C56;
    --text-muted:     #7B7D9A;
    --text-light:     #B4B6CC;
    --bg:             #FFFFFF;
    --bg-alt:         #F6F6FB;
    --bg-dark:        #1C1E38;
    --border:         #E2E2F0;
    --shadow-sm:      0 2px 8px rgba(28, 30, 56, 0.08);
    --shadow-md:      0 6px 24px rgba(28, 30, 56, 0.12);
    --shadow-lg:      0 16px 48px rgba(28, 30, 56, 0.16);
    --radius-sm:      6px;
    --radius-md:      12px;
    --radius-lg:      20px;
    --max-w:          1080px;
    --transition:     0.22s ease;
}

/* ── Reset & Base ────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: var(--text-body);
    background: var(--bg);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }

/* ── Container ───────────────────────────────────────────────── */
.container {
    width: 100%;
    max-width: var(--max-w);
    margin-inline: auto;
    padding-inline: 1.25rem;
}

/* ── Sections ────────────────────────────────────────────────── */
.section { padding-block: 5rem; }
.section--light { background: var(--bg-alt); }
.section--white { background: var(--bg); }
.section--dark  { background: var(--bg-dark); }

/* ── Typography helpers ──────────────────────────────────────── */
.section-eyebrow {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 0.75rem;
}
.section-eyebrow--light { color: var(--accent-light); }

.section-title {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 800;
    color: var(--text-dark);
    line-height: 1.2;
    margin-bottom: 1rem;
}
.section-title--light { color: #FFFFFF; }

/* ── Scroll-reveal ───────────────────────────────────────────── */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.55s ease, transform 0.55s ease;
}
.fade-in.visible {
    opacity: 1;
    transform: none;
}

/* ── Buttons ─────────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.6rem;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 600;
    transition: background var(--transition), color var(--transition),
                transform var(--transition), box-shadow var(--transition);
    line-height: 1;
    white-space: nowrap;
}
.btn:hover  { transform: translateY(-2px); }
.btn:active { transform: none; }

.btn--accent {
    background: var(--accent);
    color: #fff;
}
.btn--accent:hover { background: var(--accent-dark); box-shadow: 0 4px 16px rgba(245,160,32,.4); }

.btn--ghost {
    background: transparent;
    color: rgba(255,255,255,0.85);
    border: 1.5px solid rgba(255,255,255,0.3);
}
.btn--ghost:hover { background: rgba(255,255,255,0.1); color: #fff; border-color: rgba(255,255,255,0.6); }

.btn--primary {
    background: var(--primary);
    color: #fff;
}
.btn--primary:hover { background: #2e3158; box-shadow: var(--shadow-md); }

.btn--full { width: 100%; justify-content: center; }

.btn__spinner { display: none; }
.btn[disabled] .btn__text  { opacity: 0.6; }
.btn[disabled] .btn__spinner {
    display: block;
    width: 14px; height: 14px;
    border: 2px solid rgba(255,255,255,0.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Navigation ──────────────────────────────────────────────── */
.nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    background: var(--bg-dark);
    border-bottom: 1px solid rgba(255,255,255,0.07);
    transition: box-shadow var(--transition);
}
.nav--scrolled { box-shadow: 0 4px 24px rgba(0,0,0,0.35); }

.nav__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    height: 62px;
}

.nav__brand {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    flex-shrink: 0;
}
.nav__logo {
    width: 34px; height: 34px;
    object-fit: contain;
}
.nav__wordmark {
    font-size: 1.05rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.01em;
}

.nav__list {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}
.nav__link {
    padding: 0.45rem 0.8rem;
    border-radius: var(--radius-sm);
    font-size: 0.88rem;
    font-weight: 500;
    color: rgba(255,255,255,0.72);
    transition: color var(--transition), background var(--transition);
}
.nav__link:hover,
.nav__link--active { color: #fff; background: rgba(255,255,255,0.08); }

.nav__link--cta {
    margin-left: 0.4rem;
    background: var(--accent);
    color: #fff !important;
    padding: 0.45rem 1rem;
}
.nav__link--cta:hover { background: var(--accent-dark) !important; }

.nav__toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 6px;
}
.nav__toggle span {
    display: block;
    width: 22px; height: 2px;
    background: rgba(255,255,255,0.8);
    border-radius: 2px;
    transition: transform var(--transition), opacity var(--transition);
}

/* ── Hero ────────────────────────────────────────────────────── */
.hero {
    position: relative;
    min-height: 100svh;
    background: var(--bg-dark);
    display: flex;
    align-items: center;
    overflow: hidden;
    padding-top: 62px;
}

.hero__bg-logo {
    position: absolute;
    right: -5%;
    top: 50%;
    transform: translateY(-50%);
    width: min(55vw, 520px);
    opacity: 0.055;
    pointer-events: none;
    filter: blur(1px);
}
.hero__bg-logo img { width: 100%; }

.hero__content {
    position: relative;
    z-index: 1;
    max-width: 640px;
    padding-block: 4rem;
}

.hero__eyebrow {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 1rem;
}

.hero__title {
    font-size: clamp(2.2rem, 5.5vw, 3.8rem);
    font-weight: 800;
    line-height: 1.1;
    color: #fff;
    margin-bottom: 1.25rem;
    letter-spacing: -0.02em;
}
.hero__title em {
    font-style: italic;
    color: var(--accent-light);
}

.hero__sub {
    font-size: clamp(1rem, 2vw, 1.15rem);
    color: rgba(255,255,255,0.65);
    max-width: 500px;
    margin-bottom: 2.25rem;
    line-height: 1.7;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

/* ── Mission ─────────────────────────────────────────────────── */
.mission__statement {
    font-size: clamp(1.4rem, 2.8vw, 2rem);
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.25;
    margin-bottom: 1.5rem;
    max-width: 760px;
}
.mission__body {
    font-size: 1.05rem;
    color: var(--text-body);
    max-width: 640px;
    line-height: 1.8;
}

/* ── Services ────────────────────────────────────────────────── */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    gap: 1.5rem;
    margin-top: 2.5rem;
}

.service-card {
    background: var(--bg);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-md);
    padding: 2rem 1.75rem;
    transition: box-shadow var(--transition), transform var(--transition),
                border-color var(--transition);
    position: relative;
    overflow: hidden;
}
.service-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    opacity: 0;
    transition: opacity var(--transition);
}
.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: transparent;
}
.service-card:hover::before { opacity: 1; }

.service-card__icon {
    width: 48px; height: 48px;
    color: var(--primary);
    margin-bottom: 1.25rem;
}
.service-card:hover .service-card__icon { color: var(--accent); }
.service-card__icon svg { width: 100%; height: 100%; transition: color var(--transition); }

.service-card__title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.6rem;
}
.service-card__desc {
    font-size: 0.92rem;
    color: var(--text-muted);
    line-height: 1.7;
}

/* ── Contact ─────────────────────────────────────────────────── */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 2.5rem;
    align-items: start;
}

.contact-info__body {
    font-size: 1rem;
    color: rgba(255,255,255,0.65);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}
.contact-info__list {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}
.contact-info__list li {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.5);
}
.contact-info__list li::before {
    content: '';
    flex-shrink: 0;
    margin-top: 0.45em;
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--accent);
}

/* ── Form ────────────────────────────────────────────────────── */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
}

.form-group { display: flex; flex-direction: column; gap: 0.4rem; }

.form-label {
    font-size: 0.82rem;
    font-weight: 600;
    color: rgba(255,255,255,0.7);
    letter-spacing: 0.02em;
}

.form-input {
    width: 100%;
    padding: 0.7rem 0.9rem;
    background: rgba(255,255,255,0.07);
    border: 1.5px solid rgba(255,255,255,0.12);
    border-radius: var(--radius-sm);
    color: #fff;
    font-family: inherit;
    font-size: 0.9rem;
    transition: border-color var(--transition), background var(--transition);
    outline: none;
}
.form-input::placeholder { color: rgba(255,255,255,0.28); }
.form-input:focus {
    border-color: var(--accent);
    background: rgba(255,255,255,0.1);
}
.form-textarea { resize: vertical; min-height: 120px; }

.form-result {
    font-size: 0.88rem;
    line-height: 1.5;
    border-radius: var(--radius-sm);
    min-height: 0;
    transition: all 0.3s ease;
}
.form-result:not(:empty) { padding: 0.75rem 1rem; }
.form-result--success {
    background: rgba(80, 200, 120, 0.15);
    border: 1.5px solid rgba(80, 200, 120, 0.35);
    color: #7BEB9A;
}
.form-result--error {
    background: rgba(240, 80, 80, 0.15);
    border: 1.5px solid rgba(240, 80, 80, 0.3);
    color: #F09090;
}

/* ── Footer ──────────────────────────────────────────────────── */
.footer {
    background: #141629;
    border-top: 1px solid rgba(255,255,255,0.06);
    padding-block: 1.75rem;
}
.footer__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
}
.footer__brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.footer__logo { width: 26px; height: 26px; object-fit: contain; opacity: 0.8; }
.footer__name { font-size: 0.88rem; font-weight: 600; color: rgba(255,255,255,0.6); }
.footer__copy { font-size: 0.82rem; color: rgba(255,255,255,0.3); }

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 768px) {
    .section { padding-block: 3.5rem; }

    /* Mobile nav */
    .nav__toggle { display: flex; }
    .nav__list {
        display: none;
        flex-direction: column;
        align-items: stretch;
        position: absolute;
        top: 62px; left: 0; right: 0;
        background: var(--bg-dark);
        border-top: 1px solid rgba(255,255,255,0.08);
        padding: 0.75rem 1rem 1rem;
        gap: 0.25rem;
    }
    .nav__list--open { display: flex; }
    .nav__link { padding: 0.6rem 0.75rem; font-size: 0.95rem; }
    .nav__link--cta { margin-left: 0; margin-top: 0.25rem; }

    /* Hero */
    .hero__title { font-size: 2rem; }
    .hero__bg-logo { opacity: 0.035; right: -10%; width: 70vw; }

    /* Contact grid → single column */
    .contact-grid { grid-template-columns: 1fr; gap: 2rem; }

    /* Footer */
    .footer__inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
    .hero__actions { flex-direction: column; }
    .btn { width: 100%; justify-content: center; }
    .services-grid { grid-template-columns: 1fr; }
}
