﻿:root {
    --blue: #5bcefa;
    --pink: #f5a9b8;
    --hot: #d436b2;
    --violet: #9d3ff0;
    --ink: #211923;
    --muted: #6d6170;
    --paper: #fff9fb;
    --panel: #ffffff;
    --line: #f1dbe3;
    --lilac: #7353ba;
    --mint: #b8f4dc;
    --shadow: 0 18px 45px rgba(52, 35, 57, 0.12);
    --radius: 18px;
    --container: 1120px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--ink);
    background:
        linear-gradient(180deg, rgba(91, 206, 250, 0.12), transparent 360px),
        var(--paper);
    overflow-x: hidden;
}

.container,
.nav-container,
.footer-container {
    width: min(92%, var(--container));
    margin: 0 auto;
}

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

.main-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid #edf0f5;
}

.nav-container {
    min-height: 92px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    color: var(--ink);
    font-weight: 800;
    letter-spacing: 0;
}

.logo-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background:
        linear-gradient(180deg, var(--blue) 0 20%, var(--pink) 20% 40%, #fff 40% 60%, var(--pink) 60% 80%, var(--blue) 80%);
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.9), 0 8px 24px rgba(91, 206, 250, 0.35);
    flex: 0 0 auto;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.7rem;
}

.nav-item {
    color: var(--ink);
    font-weight: 700;
    font-size: 1.02rem;
}

.nav-item:hover {
    color: var(--hot);
}

.lang-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.35rem;
    border: 1px solid #dde2ec;
    border-radius: 999px;
    background: #f4f6fa;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.8);
}

.lang-toggle a {
    display: grid;
    place-items: center;
    min-width: 40px;
    height: 36px;
    border-radius: 999px;
    color: #697184;
    font-weight: 900;
    font-size: 0.86rem;
}

.lang-toggle a.active {
    background: #fff;
    color: var(--hot);
    box-shadow: 0 8px 22px rgba(20, 22, 36, 0.08);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    border: 0;
    border-radius: 999px;
    padding: 0.8rem 1.35rem;
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.btn-primary {
    background: linear-gradient(135deg, var(--blue) 0%, var(--pink) 55%, var(--violet) 100%);
    color: #fff;
    box-shadow: 0 18px 42px rgba(157, 63, 240, 0.28);
}

.btn-light {
    background: var(--panel);
    color: var(--ink);
}

.sticky-quiz {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 120;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    min-height: 64px;
    width: auto;
    min-width: 238px;
    padding: 1rem 1.7rem;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--blue) 0%, var(--pink) 55%, var(--violet) 100%);
    color: #fff;
    box-shadow: 0 22px 55px rgba(157, 63, 240, 0.34);
    font-weight: 900;
}

.sticky-quiz i {
    width: 20px;
    height: 20px;
    flex: 0 0 auto;
}



.nav-quiz {
    min-height: 64px;
    padding: 0 2.05rem;
    border-radius: 999px;
    font-size: 1.02rem;
    color: #fff;
    white-space: nowrap;
    box-shadow: 0 18px 42px rgba(157, 63, 240, 0.24), 0 0 0 1px rgba(255,255,255,0.3) inset;
}


.btn-lg {
    min-height: 54px;
    padding: 1rem 1.7rem;
    font-size: 1.05rem;
}

section {
    padding: 4.5rem 0;
}

.hero {
    min-height: 775px;
    display: flex;
    align-items: center;
    color: #fff;
    text-align: center;
    background-size: cover;
    background-position: center;
    position: relative;
}

.hero::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 12px;
    background: linear-gradient(90deg, var(--blue), var(--pink), #fff, var(--pink), var(--blue));
}

.hero .container {
    position: relative;
    max-width: 1040px;
}

.hero-kicker,
.page-kicker {
    display: inline-flex;
    width: fit-content;
    margin-bottom: 1rem;
    padding: 0.38rem 0.8rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    color: inherit;
    font-size: 0.82rem;
    font-weight: 800;
    text-transform: uppercase;
}

.hero h1 {
    max-width: 1120px;
    margin-bottom: 1rem;
    font-size: clamp(3.1rem, 7vw, 6.4rem);
    line-height: 0.98;
    font-weight: 800;
    letter-spacing: 0;
}

.hero p {
    max-width: 880px;
    margin: 0 auto 2.3rem;
    font-size: clamp(1.05rem, 2vw, 1.35rem);
    color: rgba(255, 255, 255, 0.9);
}

.hero-search {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 0.7rem;
    width: min(92vw, 825px);
    min-height: 84px;
    margin: 0 auto 2rem;
    padding: 0.55rem;
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 24px 70px rgba(157, 63, 240, 0.24);
}

.hero-search input {
    width: 100%;
    min-width: 0;
    height: 64px;
    border: 0;
    outline: 0;
    border-radius: 999px;
    padding: 0 1.6rem;
    color: var(--ink);
    font: inherit;
    font-size: 1.08rem;
}

.hero-search button {
    min-width: 162px;
    height: 62px;
    border: 0;
    border-radius: 999px;
    padding: 0 1.4rem;
    background: linear-gradient(135deg, var(--blue) 0%, var(--pink) 55%, var(--violet) 100%);
    color: #fff;
    font: inherit;
    font-weight: 900;
    cursor: pointer;
}

.trust-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.9rem;
}

.trust-badges span {
    display: inline-flex;
    align-items: center;
    min-height: 58px;
    padding: 0 1.5rem;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 999px;
    background: rgba(255,255,255,0.18);
    color: #fff;
    backdrop-filter: blur(10px);
    font-weight: 900;
    text-shadow: 0 1px 0 rgba(0,0,0,0.25);
}

.section-title {
    max-width: 760px;
    margin: 0 auto 2.2rem;
    text-align: center;
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    line-height: 1.15;
}

.provinces-section,
.features,
.search-intent-section,
.city-list,
.nearby-locations,
.faq,
.local-seo-content,
.seo-content {
    background: var(--paper);
}

.provinces-grid,
.cities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1rem;
}

.province-card,
.city-link {
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.1rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 12px 30px rgba(52, 35, 57, 0.06);
    font-weight: 800;
}

.province-card:hover,
.city-link:hover {
    background: #fff;
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.search-intent-section {
    padding-top: 3rem;
}

.intent-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.8rem;
}

.intent-grid a {
    display: inline-flex;
    align-items: center;
    min-height: 48px;
    padding: 0 1rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff;
    color: var(--ink);
    font-weight: 800;
    box-shadow: 0 10px 24px rgba(52, 35, 57, 0.06);
}

.intent-grid a:hover {
    color: #fff;
    background: linear-gradient(135deg, var(--blue) 0%, var(--pink) 55%, var(--violet) 100%);
}

.city-link {
    align-items: flex-start;
    flex-direction: column;
}

.city-link small {
    color: var(--muted);
    font-weight: 700;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.2rem;
}

.feature-card {
    min-height: 250px;
    padding: 2rem;
    border: 1px solid var(--line);
    border-radius: 28px;
    background: linear-gradient(180deg, #fff, rgba(91, 206, 250, 0.08));
    box-shadow: 0 14px 35px rgba(52, 35, 57, 0.07);
}

.feature-card i {
    width: 42px;
    height: 42px;
    margin-bottom: 1rem;
    color: var(--lilac);
}

.feature-card h3 {
    margin-bottom: 0.6rem;
}

.page-header,
.location-hero {
    color: var(--ink);
    background:
        radial-gradient(circle at 14% 20%, rgba(91, 206, 250, 0.34), transparent 28%),
        radial-gradient(circle at 86% 18%, rgba(245, 169, 184, 0.35), transparent 26%),
        linear-gradient(135deg, #fff, #fff3f7 52%, #effaff);
    border-bottom: 1px solid var(--line);
}

.trans-band {
    position: relative;
}

.trans-band::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 8px;
    background: linear-gradient(90deg, var(--blue), var(--pink), #fff, var(--pink), var(--blue));
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 700;
}

.breadcrumb a {
    color: var(--lilac);
}

.page-header .page-kicker,
.location-hero .page-kicker {
    background: rgba(115, 83, 186, 0.1);
    color: var(--lilac);
}

.page-header h1,
.location-hero h1 {
    max-width: 850px;
    margin-bottom: 1rem;
    font-size: clamp(2rem, 5vw, 4.2rem);
    line-height: 1.08;
}

.subtitle,
.page-header p {
    max-width: 720px;
    color: var(--muted);
    font-size: 1.15rem;
}

.profile-preview {
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 2rem;
}

.profile-card {
    min-height: 190px;
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.75);
    border-radius: 26px;
    background: #fff;
    box-shadow: var(--shadow);
}

.profile-avatar {
    width: 60px;
    height: 60px;
    display: grid;
    place-items: center;
    margin-bottom: 1rem;
    border-radius: 22px;
    color: var(--ink);
    font-weight: 800;
    font-size: 1.5rem;
}

.tone-1 .profile-avatar { background: linear-gradient(135deg, var(--pink), #fff); }
.tone-2 .profile-avatar { background: linear-gradient(135deg, var(--blue), #fff); }
.tone-3 .profile-avatar { background: linear-gradient(135deg, var(--mint), #fff); }
.tone-4 .profile-avatar { background: linear-gradient(135deg, #d9ccff, #fff); }
.tone-5 .profile-avatar { background: linear-gradient(135deg, #ffd8e1, #e7f8ff); }
.tone-6 .profile-avatar { background: linear-gradient(135deg, #fff, var(--blue)); }

.profile-copy h3 {
    font-size: 1.05rem;
    margin-bottom: 0.2rem;
}

.profile-copy span {
    display: inline-flex;
    margin-bottom: 0.6rem;
    padding: 0.22rem 0.55rem;
    border-radius: 999px;
    background: rgba(245, 169, 184, 0.22);
    color: #7b3850;
    font-size: 0.78rem;
    font-weight: 800;
}

.profile-copy p {
    color: var(--muted);
    font-size: 0.92rem;
}

.preview-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(7px);
    text-align: center;
}

.preview-overlay p {
    color: var(--muted);
    font-weight: 800;
}

.content-rich {
    max-width: 820px;
}

.content-rich h2,
.content-rich h3 {
    margin: 1.5rem 0 0.8rem;
    line-height: 1.2;
}

.content-rich p {
    margin-bottom: 1rem;
    color: var(--muted);
}

.steps-list {
    margin-left: 1.4rem;
}

.steps-list li {
    margin-bottom: 0.65rem;
}

.cta-section {
    background: #f4f7fb;
    color: #0d0b26;
    text-align: center;
    padding: 6.5rem 0;
}

.cta-section h2 {
    font-size: clamp(2.4rem, 5vw, 4.2rem);
    margin-bottom: 0.6rem;
    line-height: 1.04;
}

.cta-section p {
    max-width: 620px;
    margin: 0 auto 2rem;
    font-weight: 600;
    color: #667085;
    font-size: 1.18rem;
}

.quiz-shell {
    min-height: calc(100vh - 74px);
    display: grid;
    place-items: center;
    padding: 3rem 0;
    background:
        radial-gradient(circle at 20% 0%, rgba(91, 206, 250, 0.28), transparent 28%),
        radial-gradient(circle at 80% 18%, rgba(245, 169, 184, 0.3), transparent 30%),
        var(--paper);
}

.quiz-card {
    width: min(92vw, 560px);
    padding: 2rem;
    border: 1px solid var(--line);
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: var(--shadow);
}

.quiz-progress {
    height: 9px;
    overflow: hidden;
    margin-bottom: 1.5rem;
    border-radius: 999px;
    background: #f2e4e9;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--blue), var(--pink));
    transition: width 0.25s ease;
}

.quiz-step {
    display: none;
}

.quiz-step.active {
    display: block;
}

.quiz-step h1,
.quiz-step h2 {
    margin-bottom: 0.8rem;
    line-height: 1.15;
}

.quiz-options {
    display: grid;
    gap: 0.8rem;
    margin-top: 1.4rem;
}

.quiz-option {
    width: 100%;
    min-height: 56px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #fff;
    color: var(--ink);
    font-weight: 800;
    cursor: pointer;
}

.quiz-option:hover {
    border-color: var(--pink);
    background: #fff6f9;
}

.quiz-input {
    width: 100%;
    min-height: 54px;
    margin: 1rem 0;
    padding: 0 1rem;
    border: 1px solid var(--line);
    border-radius: 18px;
    font: inherit;
}

.main-footer {
    padding: 4rem 0 6rem;
    background: #071820;
    color: #fff;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 3rem 4rem;
    margin-bottom: 2.5rem;
}

.footer-grid-wide {
    align-items: start;
}

.footer-grid h3,
.footer-grid h4 {
    margin-bottom: 1.25rem;
    color: #fff;
    font-size: 1rem;
    font-weight: 900;
}

.footer-grid p,
.footer-grid li,
.footer-bottom {
    color: rgba(255, 255, 255, 0.78);
    font-size: 1.02rem;
}

.footer-info p {
    max-width: 260px;
}

.footer-heart {
    color: #fff;
    margin-right: 0.3rem;
}

.footer-links ul,
.footer-safety ul {
    list-style: none;
}

.footer-links li,
.footer-safety li {
    margin-bottom: 0.85rem;
}

.footer-links a:hover {
    color: var(--blue);
}

.footer-bottom {
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    font-size: 0.9rem;
}

.legal-page {
    min-height: 58vh;
}

.legal-page h1 {
    margin-bottom: 1.5rem;
}

.legal-page h2 {
    margin: 1rem 0 0.5rem;
    font-size: 1.35rem;
}

.legal-page p {
    margin-bottom: 1rem;
    color: var(--muted);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
    margin: 2rem 0;
}

.stat-card {
    padding: 1rem;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #fff;
}

.stat-card strong {
    display: block;
    font-size: 2rem;
}

.stat-card span {
    color: var(--muted);
    font-weight: 800;
}

.tracking-table-wrap {
    overflow-x: auto;
    margin-top: 1rem;
}

.tracking-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    overflow: hidden;
}

.tracking-table th,
.tracking-table td {
    padding: 0.75rem;
    border-bottom: 1px solid var(--line);
    text-align: left;
    font-size: 0.9rem;
}

.tracking-table th {
    background: #fff6f9;
}

.reveal-on-scroll .reveal-section {
    opacity: 0;
    transform: translateY(24px);
    transition: all 0.7s ease-out;
}

.reveal-on-scroll .reveal-section.revealed {
    opacity: 1;
    transform: translateY(0);
}


@media (max-width: 900px) {

    .nav-container {
        display: grid;
        grid-template-columns: 1fr auto;
        gap: 0.75rem;
        padding: 0.75rem 0;
    }

    .nav-links {
        display: contents;
    }

    .lang-toggle {
        grid-column: 2;
        grid-row: 1;
    }

    .nav-quiz {
        grid-column: 1 / -1;
        grid-row: 2;
        width: 100%;
        min-height: 56px;
        padding: 0 1rem;
        font-size: 1rem;
    }


    .nav-item {
        display: none;
    }

    .nav-links {
        gap: 0.65rem;
    }

    .hero {
        min-height: 720px;
        text-align: center;
    }

    .hero .container {
        margin: 0 auto;
    }

    .hero-kicker {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-search {
        grid-template-columns: 1fr;
        border-radius: 28px;
        padding: 0.75rem;
        width: 100%;
        max-width: 100%;
    }

    .hero-search input,
    .hero-search button {
        width: 100%;
        border-radius: 22px;
    }

    .profile-preview {
        grid-template-columns: 1fr 1fr;
    }

    .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 2.4rem 3rem;
    }

    .footer-info p {
        max-width: none;
    }

    .footer-grid h3,
    .footer-grid h4 {
        margin-bottom: 0.75rem;
    }
}

@media (max-width: 640px) {
    .logo-text {
        max-width: 170px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .nav-links {
        gap: 0.55rem;
    }

    .lang-switch {
        font-size: 0.82rem;
    }

    section {
        padding: 3.2rem 0;
    }

    .hero {
        min-height: 640px;
    }

    .provinces-grid,
    .cities-grid,
    .features-grid,
    .profile-preview,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .profile-card {
        min-height: 160px;
    }

    .preview-overlay {
        position: sticky;
        bottom: 1rem;
        margin-top: 1rem;
        padding: 1rem;
    }

    .quiz-card {
        padding: 1.25rem;
        border-radius: 24px;
    }

    .sticky-quiz {
        left: 50%;
        right: auto;
        bottom: 12px;
        min-height: 58px;
        width: calc(100vw - 24px);
        transform: translateX(-50%);
    }
}
