/* =========================================================
   SafeHer360 - Main Stylesheet
   Matched to the current index.html
========================================================= */

:root {
    --bg: #f6f7fb;
    --surface: #ffffff;
    --surface-soft: #f8f9fc;

    --text: #111827;
    --muted: #667085;

    --border: #e5e7eb;

    --primary: #7c3aed;
    --primary-dark: #5b21b6;
    --primary-soft: #f3e8ff;

    --danger: #dc2626;
    --danger-dark: #b91c1c;
    --danger-soft: #fef2f2;

    --success: #16a34a;

    --shadow-sm:
        0 6px 18px rgba(17, 24, 39, 0.06);

    --shadow-md:
        0 14px 35px rgba(17, 24, 39, 0.09);

    --shadow-lg:
        0 24px 60px rgba(17, 24, 39, 0.13);

    --radius-sm: 12px;
    --radius-md: 18px;
    --radius-lg: 26px;

    --max-width: 1180px;
}


/* =========================================================
   RESET
========================================================= */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body {
    font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
}

button,
input,
select {
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

button {
    cursor: pointer;
    border: 0;
}

a {
    color: inherit;
    text-decoration: none;
}


/* =========================================================
   HEADER
========================================================= */

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;

    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid rgba(229, 231, 235, 0.9);

    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.navbar {
    width: min(var(--max-width), calc(100% - 40px));
    min-height: 76px;

    margin: auto;

    display: flex;
    align-items: center;

    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;

    flex-shrink: 0;
}

.brand-icon {
    width: 42px;
    height: 42px;

    display: grid;
    place-items: center;

    border-radius: 13px;

    background: var(--primary-soft);

    font-size: 22px;
}

.brand-text {
    display: flex;
    flex-direction: column;

    line-height: 1.15;
}

.brand-text strong {
    font-size: 16px;
    font-weight: 800;
}

.brand-text small {
    margin-top: 4px;

    color: var(--muted);

    font-size: 10px;
    font-weight: 600;
}

.main-nav {
    margin-left: auto;

    display: flex;
    align-items: center;

    gap: 4px;
}

.main-nav a {
    padding: 9px 10px;

    border-radius: 10px;

    color: #475467;

    font-size: 13px;
    font-weight: 600;

    transition: 0.2s ease;
}

.main-nav a:hover {
    color: var(--primary);
    background: var(--primary-soft);
}

.profile-button {
    padding: 11px 17px;

    border-radius: 11px;

    color: #ffffff;
    background: var(--text);

    font-size: 13px;
    font-weight: 700;

    transition: 0.2s ease;
}

.profile-button:hover {
    background: #273043;
    transform: translateY(-1px);
}

.menu-toggle {
    display: none;

    width: 42px;
    height: 42px;

    place-items: center;

    border-radius: 11px;

    background: var(--surface-soft);
    color: var(--text);

    font-size: 21px;
}


/* =========================================================
   HERO
========================================================= */

.hero {
    overflow: hidden;

    background:
        linear-gradient(
            135deg,
            #ffffff 0%,
            #faf7ff 55%,
            #f5f3ff 100%
        );

    border-bottom: 1px solid var(--border);
}

.hero-grid {
    width: min(var(--max-width), calc(100% - 40px));
    min-height: 570px;

    margin: auto;

    display: grid;
    grid-template-columns: 1.05fr 0.95fr;

    align-items: center;

    gap: 50px;

    padding: 70px 0;
}

.hero-content h1 {
    max-width: 680px;

    margin: 12px 0 20px;

    font-size: clamp(42px, 5vw, 68px);
    line-height: 1.05;

    letter-spacing: -0.045em;
}

.hero-content h1 span {
    display: block;

    color: var(--primary);
}

.eyebrow {
    color: var(--primary);

    font-size: 11px;
    font-weight: 800;

    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.hero-description {
    max-width: 640px;

    color: var(--muted);

    font-size: 16px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;

    gap: 12px;

    margin-top: 30px;
}

.sos-button,
.secondary-hero-button {
    min-height: 50px;

    padding: 0 20px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 9px;

    border-radius: 12px;

    font-weight: 700;

    transition: 0.2s ease;
}

.sos-button {
    color: #ffffff;
    background: var(--danger);

    box-shadow:
        0 10px 24px rgba(220, 38, 38, 0.18);
}

.sos-button:hover {
    background: var(--danger-dark);
    transform: translateY(-2px);
}

.secondary-hero-button {
    color: var(--text);
    background: #ffffff;

    border: 1px solid var(--border);

    box-shadow: var(--shadow-sm);
}

.secondary-hero-button:hover {
    border-color: #c4b5fd;

    color: var(--primary);

    transform: translateY(-2px);
}

.trust-points {
    display: flex;
    flex-wrap: wrap;

    gap: 16px;

    margin-top: 24px;

    color: #475467;

    font-size: 12px;
    font-weight: 600;
}


/* =========================================================
   HERO VISUAL
========================================================= */

.hero-visual {
    min-height: 430px;

    position: relative;

    display: grid;
    place-items: center;
}

.hero-circle {
    width: min(330px, 72vw);
    aspect-ratio: 1;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    border: 1px solid #ddd6fe;
    border-radius: 50%;

    background:
        radial-gradient(
            circle at 50% 45%,
            #ffffff 0%,
            #f5f3ff 65%,
            #ede9fe 100%
        );

    box-shadow:
        0 30px 80px rgba(124, 58, 237, 0.14);

    text-align: center;
}

.hero-shield {
    width: 100px;
    height: 100px;

    display: grid;
    place-items: center;

    margin-bottom: 12px;

    border-radius: 28px;

    background: #ffffff;

    box-shadow: var(--shadow-md);

    font-size: 52px;
}

.hero-circle p {
    font-size: 21px;
    font-weight: 800;
}

.hero-circle small {
    margin-top: 4px;

    color: var(--muted);

    font-size: 11px;
}

.floating-card {
    position: absolute;

    min-width: 145px;

    padding: 14px 16px;

    display: flex;
    flex-direction: column;

    border: 1px solid var(--border);
    border-radius: 15px;

    background: rgba(255, 255, 255, 0.96);

    box-shadow: var(--shadow-md);
}

.floating-card strong {
    font-size: 20px;
}

.floating-card span {
    color: var(--muted);

    font-size: 11px;
}

.floating-card-one {
    top: 52px;
    left: 2%;
}

.floating-card-two {
    right: 0;
    bottom: 58px;
}


/* =========================================================
   GENERAL SECTIONS
========================================================= */

.section {
    width: min(var(--max-width), calc(100% - 40px));

    margin: auto;

    padding: 90px 0;
}

.section-heading {
    max-width: 720px;

    margin: 0 auto 42px;

    text-align: center;
}

.section-heading h2 {
    margin: 8px 0 10px;

    font-size: clamp(28px, 4vw, 40px);
    line-height: 1.15;

    letter-spacing: -0.025em;
}

.section-heading > p:last-child {
    color: var(--muted);

    font-size: 14px;
}


/* =========================================================
   EMERGENCY CARDS
========================================================= */

.tool-grid {
    display: grid;

    grid-template-columns: repeat(4, 1fr);

    gap: 18px;
}

.tool-card {
    min-height: 270px;

    padding: 24px;

    display: flex;
    flex-direction: column;

    border: 1px solid var(--border);
    border-radius: var(--radius-md);

    background: var(--surface);

    box-shadow: var(--shadow-sm);

    transition: 0.25s ease;
}

.tool-card:hover {
    transform: translateY(-5px);

    box-shadow: var(--shadow-md);

    border-color: #d8b4fe;
}

.tool-icon {
    width: 50px;
    height: 50px;

    display: grid;
    place-items: center;

    margin-bottom: 18px;

    border-radius: 15px;

    background: var(--primary-soft);

    font-size: 25px;
}

.card-label {
    display: inline-block;

    margin-bottom: 7px;

    color: var(--primary);

    font-size: 10px;
    font-weight: 800;

    letter-spacing: 0.1em;
}

.tool-card h3 {
    font-size: 18px;
}

.tool-card p {
    margin: 8px 0 20px;

    color: var(--muted);

    font-size: 13px;
}

.card-action {
    margin-top: auto;
}

.emergency-action-button {
    min-height: 42px;

    padding: 0 14px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border-radius: 10px;

    color: #ffffff;
    background: var(--danger);

    font-size: 12px;
    font-weight: 700;

    transition: 0.2s ease;
}

.emergency-action-button:hover {
    background: var(--danger-dark);
}


/* =========================================================
   GUIDANCE
========================================================= */

.guidance-section {
    max-width: none;
    width: 100%;

    padding-left: max(
        20px,
        calc((100% - var(--max-width)) / 2)
    );

    padding-right: max(
        20px,
        calc((100% - var(--max-width)) / 2)
    );

    background: #ffffff;
}

.guidance-grid {
    display: grid;

    grid-template-columns: repeat(2, 1fr);

    gap: 16px;
}

.guidance-card {
    padding: 22px;

    display: flex;

    gap: 18px;

    border: 1px solid var(--border);
    border-radius: var(--radius-md);

    background: var(--surface-soft);

    transition: 0.2s ease;
}

.guidance-card:hover {
    background: #ffffff;

    box-shadow: var(--shadow-sm);

    transform: translateY(-2px);
}

.guidance-number {
    flex: 0 0 44px;

    height: 44px;

    display: grid;
    place-items: center;

    border-radius: 12px;

    background: var(--primary-soft);
    color: var(--primary);

    font-size: 12px;
    font-weight: 800;
}

.guidance-card h3 {
    margin-bottom: 5px;

    font-size: 16px;
}

.guidance-card p {
    color: var(--muted);

    font-size: 13px;
}


/* =========================================================
   TRUSTED CIRCLE
========================================================= */

.contacts-layout {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 22px;
}

.contact-form-card,
.saved-contacts-card {
    padding: 28px;

    border: 1px solid var(--border);
    border-radius: var(--radius-lg);

    background: var(--surface);

    box-shadow: var(--shadow-sm);
}

.contact-form-card h3,
.saved-contacts-card h3 {
    font-size: 20px;
}

.form-help {
    margin-top: 5px;

    color: var(--muted);

    font-size: 12px;
}

.form-group {
    margin-top: 18px;
}

.form-group label {
    display: block;

    margin-bottom: 7px;

    font-size: 12px;
    font-weight: 700;
}

.form-group input,
.form-group select {
    width: 100%;
    height: 46px;

    padding: 0 13px;

    border: 1px solid var(--border);
    border-radius: 11px;

    outline: none;

    background: #ffffff;
    color: var(--text);

    transition: 0.2s ease;
}

.form-group input:focus,
.form-group select:focus,
.chat-form input:focus {
    border-color: #a78bfa;

    box-shadow:
        0 0 0 4px rgba(124, 58, 237, 0.08);
}

.primary-button {
    width: 100%;
    min-height: 46px;

    margin-top: 20px;

    border-radius: 11px;

    color: #ffffff;
    background: var(--primary);

    font-size: 13px;
    font-weight: 700;

    transition: 0.2s ease;
}

.primary-button:hover {
    background: var(--primary-dark);

    transform: translateY(-1px);
}

.contacts-card-header {
    display: flex;

    align-items: flex-start;
    justify-content: space-between;

    gap: 15px;
}

.contact-count {
    min-width: 34px;
    height: 34px;

    padding: 0 9px;

    display: grid;
    place-items: center;

    border-radius: 10px;

    background: var(--primary-soft);
    color: var(--primary);

    font-size: 12px;
    font-weight: 800;
}

.contact-list {
    margin-top: 22px;

    display: flex;
    flex-direction: column;

    gap: 10px;
}

.empty-contacts {
    min-height: 210px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    text-align: center;

    color: var(--muted);
}

.empty-contacts > span {
    margin-bottom: 8px;

    font-size: 34px;
}

.empty-contacts p {
    color: var(--text);

    font-size: 14px;
    font-weight: 700;
}

.empty-contacts small {
    margin-top: 3px;

    font-size: 11px;
}


/* =========================================================
   CONTACTS GENERATED BY JAVASCRIPT
========================================================= */

.contact-item {
    padding: 14px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 12px;

    border: 1px solid var(--border);
    border-radius: 13px;

    background: var(--surface-soft);
}

.contact-info {
    min-width: 0;
}

.contact-info strong {
    display: block;

    font-size: 13px;
}

.contact-info small {
    color: var(--muted);

    font-size: 11px;
}

.contact-actions {
    display: flex;

    gap: 7px;

    flex-shrink: 0;
}

.contact-call-button,
.contact-delete-button {
    min-height: 34px;

    padding: 0 10px;

    border-radius: 8px;

    font-size: 11px;
    font-weight: 700;
}

.contact-call-button {
    color: #ffffff;

    background: var(--success);
}

.contact-delete-button {
    color: var(--danger);

    background: var(--danger-soft);
}


/* =========================================================
   LOCATION
========================================================= */

.location-layout {
    display: grid;

    grid-template-columns: 1.35fr 0.65fr;

    gap: 22px;
}

.map-panel,
.nearby-panel {
    padding: 28px;

    border: 1px solid var(--border);
    border-radius: var(--radius-lg);

    background: var(--surface);

    box-shadow: var(--shadow-sm);
}

.map-panel-header {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 20px;
}

.map-panel-header h3,
.nearby-panel h3 {
    font-size: 20px;
}

.location-button {
    min-height: 42px;

    padding: 0 14px;

    border: 1px solid #ddd6fe;
    border-radius: 10px;

    color: var(--primary-dark);
    background: var(--primary-soft);

    font-size: 12px;
    font-weight: 700;

    transition: 0.2s ease;
}

.location-button:hover {
    background: #ede9fe;

    transform: translateY(-1px);
}

.map-placeholder {
    min-height: 330px;

    margin-top: 20px;

    display: grid;
    place-items: center;

    overflow: hidden;

    position: relative;

    border: 1px dashed #cbd5e1;
    border-radius: 18px;

    background:
        linear-gradient(
            135deg,
            #f8fafc,
            #eef2ff
        );
}

.map-placeholder::before,
.map-placeholder::after {
    content: "";

    position: absolute;

    border: 1px solid rgba(124, 58, 237, 0.1);

    border-radius: 50%;
}

.map-placeholder::before {
    width: 270px;
    height: 270px;
}

.map-placeholder::after {
    width: 170px;
    height: 170px;
}

.map-center {
    position: relative;

    z-index: 1;

    max-width: 280px;

    text-align: center;
}

.map-center span {
    font-size: 38px;
}

.map-center h3 {
    margin-top: 6px;

    font-size: 17px;
}

.map-center p {
    margin-top: 5px;

    color: var(--muted);

    font-size: 12px;
}

.location-result {
    margin-top: 14px;

    padding: 12px 14px;

    border-radius: 11px;

    background: var(--surface-soft);

    color: var(--muted);

    font-size: 12px;
}


/* =========================================================
   NEARBY SERVICES
========================================================= */

.nearby-panel > p {
    margin-top: 5px;

    color: var(--muted);

    font-size: 12px;
}

.service-list {
    margin-top: 20px;

    display: flex;
    flex-direction: column;

    gap: 10px;
}

.service-item {
    width: 100%;

    padding: 14px;

    display: flex;
    align-items: center;

    gap: 12px;

    text-align: left;

    border: 1px solid var(--border);
    border-radius: 13px;

    background: var(--surface-soft);

    transition: 0.2s ease;
}

.service-item:hover {
    border-color: #c4b5fd;

    background: #faf5ff;

    transform: translateX(3px);
}

.service-item > span:first-child {
    width: 40px;
    height: 40px;

    display: grid;
    place-items: center;

    flex-shrink: 0;

    border-radius: 11px;

    background: #ffffff;

    font-size: 20px;
}

.service-item strong,
.service-item small {
    display: block;
}

.service-item strong {
    font-size: 12px;
}

.service-item small {
    margin-top: 2px;

    color: var(--muted);

    font-size: 10px;
}


/* =========================================================
   GAMYAM
   IMPORTANT:
   Previous visual style preserved.
========================================================= */

.gamyam-section {
    padding-top: 80px;
}

.gamyam-card {
    position: relative;

    overflow: hidden;

    display: grid;

    grid-template-columns: 150px 1fr;

    gap: 30px;

    align-items: center;

    padding: 38px;

    border: 1px solid #ddd6fe;
    border-radius: 28px;

    background:
        linear-gradient(
            135deg,
            #ffffff 0%,
            #faf5ff 100%
        );

    box-shadow: var(--shadow-md);
}


/* Decorative circle */

.gamyam-card::after {
    content: "";

    width: 220px;
    height: 220px;

    position: absolute;

    right: -80px;
    top: -90px;

    border-radius: 50%;

    background: rgba(124, 58, 237, 0.07);

    pointer-events: none;
}

.gamyam-icon {
    width: 125px;
    height: 125px;

    position: relative;

    z-index: 1;

    display: grid;
    place-items: center;

    border: 1px solid #ddd6fe;
    border-radius: 32px;

    background: #ffffff;

    box-shadow: var(--shadow-sm);

    font-size: 58px;
}

.gamyam-content {
    position: relative;

    z-index: 1;
}

.gamyam-content h3 {
    margin: 4px 0 8px;

    font-size: clamp(23px, 3vw, 31px);

    letter-spacing: -0.02em;
}

.gamyam-content > p {
    max-width: 750px;

    color: var(--muted);

    font-size: 13px;
}

.gamyam-features {
    display: flex;
    flex-wrap: wrap;

    gap: 9px;

    margin-top: 18px;
}

.gamyam-features span {
    padding: 8px 11px;

    border: 1px solid #e9d5ff;
    border-radius: 9px;

    background: #ffffff;

    color: #475467;

    font-size: 11px;
    font-weight: 600;
}

.gamyam-button {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    min-height: 45px;

    margin-top: 20px;

    padding: 0 16px;

    border-radius: 11px;

    color: #ffffff;
    background: var(--primary);

    font-size: 12px;
    font-weight: 700;

    box-shadow:
        0 8px 20px rgba(124, 58, 237, 0.16);

    transition: 0.2s ease;
}

.gamyam-button:hover {
    background: var(--primary-dark);

    transform: translateY(-2px);
}


/* =========================================================
   ACADEMY
========================================================= */

.academy-grid {
    display: grid;

    grid-template-columns: repeat(2, 1fr);

    gap: 22px;
}

.academy-card {
    overflow: hidden;

    display: flex;
    flex-direction: column;

    border: 1px solid var(--border);
    border-radius: var(--radius-lg);

    background: var(--surface);

    box-shadow: var(--shadow-sm);

    transition: 0.25s ease;
}

.academy-card:hover {
    transform: translateY(-4px);

    box-shadow: var(--shadow-md);
}

.academy-card-top {
    min-height: 52px;

    padding: 0 20px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    border-bottom: 1px solid var(--border);
}

.academy-category,
.academy-status {
    font-size: 10px;
    font-weight: 800;

    letter-spacing: 0.08em;
}

.academy-category {
    color: var(--primary);
}

.academy-status {
    padding: 5px 8px;

    border-radius: 7px;

    color: #475467;
    background: var(--surface-soft);
}


/* =========================================================
   ACADEMY VIDEOS
========================================================= */

.video-container {
    aspect-ratio: 16 / 9;

    overflow: hidden;

    background: #111827;
}

.video-container iframe {
    width: 100%;
    height: 100%;

    display: block;

    border: 0;
}

.video-placeholder {
    height: 100%;
    min-height: 220px;

    padding: 25px;

    display: flex;
    flex-direction: column;

    align-items: center;
    justify-content: center;

    text-align: center;

    background:
        linear-gradient(
            135deg,
            #f5f3ff,
            #eef2ff
        );
}

.video-placeholder > span {
    font-size: 42px;
}

.video-placeholder h3 {
    margin-top: 7px;

    font-size: 18px;
}

.video-placeholder p {
    max-width: 300px;

    margin-top: 4px;

    color: var(--muted);

    font-size: 12px;
}


/* =========================================================
   ACADEMY CONTENT
========================================================= */

.academy-content {
    padding: 22px;
}

.academy-content h3 {
    font-size: 17px;
}

.academy-content > p {
    margin-top: 6px;

    color: var(--muted);

    font-size: 12px;
}

.academy-progress {
    display: flex;
    flex-wrap: wrap;

    gap: 7px;

    margin-top: 16px;
}

.academy-progress span {
    padding: 6px 9px;

    border-radius: 8px;

    color: #475467;
    background: var(--surface-soft);

    font-size: 10px;
    font-weight: 600;
}


/* =========================================================
   SAFETY EDUCATION CARD
========================================================= */

.academy-visual {
    min-height: 280px;

    padding: 35px 25px;

    display: flex;
    flex-direction: column;

    align-items: center;
    justify-content: center;

    text-align: center;

    background:
        linear-gradient(
            135deg,
            #faf5ff,
            #f8fafc
        );
}

.academy-visual > span {
    font-size: 52px;
}

.academy-visual h3 {
    margin-top: 10px;

    font-size: 20px;
}

.academy-visual p {
    margin-top: 5px;

    color: var(--muted);

    font-size: 12px;
}

.academy-button {
    margin-top: 17px;

    padding: 10px 14px;

    border-radius: 10px;

    color: var(--primary-dark);
    background: var(--primary-soft);

    font-size: 11px;
    font-weight: 700;
}


/* =========================================================
   ASSISTANT
========================================================= */

.assistant-section {
    max-width: none;
    width: 100%;

    padding-left: max(
        20px,
        calc((100% - var(--max-width)) / 2)
    );

    padding-right: max(
        20px,
        calc((100% - var(--max-width)) / 2)
    );

    background: #ffffff;
}

.assistant-layout {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 22px;

    align-items: center;
}

.assistant-intro {
    padding-right: 20px;
}

.assistant-intro h2 {
    margin: 9px 0 13px;

    font-size: clamp(29px, 4vw, 43px);

    line-height: 1.1;

    letter-spacing: -0.03em;
}

.assistant-intro > p:not(.eyebrow) {
    max-width: 540px;

    color: var(--muted);

    font-size: 14px;
}


/* =========================================================
   ASSISTANT FEATURES
========================================================= */

.assistant-features {
    margin-top: 28px;

    display: flex;
    flex-direction: column;

    gap: 15px;
}

.assistant-features > div {
    display: flex;

    gap: 12px;

    align-items: center;
}

.assistant-features > div > span {
    width: 42px;
    height: 42px;

    display: grid;
    place-items: center;

    flex-shrink: 0;

    border-radius: 12px;

    background: var(--primary-soft);

    font-size: 19px;
}

.assistant-features strong,
.assistant-features small {
    display: block;
}

.assistant-features strong {
    font-size: 12px;
}

.assistant-features small {
    margin-top: 2px;

    color: var(--muted);

    font-size: 10px;
}


/* =========================================================
   ASSISTANT PANEL
========================================================= */

.assistant-panel {
    overflow: hidden;

    border: 1px solid var(--border);
    border-radius: 22px;

    background: #ffffff;

    box-shadow: var(--shadow-lg);
}

.assistant-header {
    min-height: 70px;

    padding: 13px 18px;

    display: flex;
    align-items: center;

    gap: 11px;

    border-bottom: 1px solid var(--border);
}

.assistant-avatar {
    width: 43px;
    height: 43px;

    display: grid;
    place-items: center;

    border-radius: 13px;

    background: var(--primary-soft);

    font-size: 22px;
}

.assistant-header strong,
.online-status {
    display: block;
}

.assistant-header strong {
    font-size: 13px;
}

.online-status {
    margin-top: 2px;

    color: var(--success);

    font-size: 10px;
    font-weight: 600;
}


/* =========================================================
   CHAT
========================================================= */

.chat-area {
    height: 340px;

    padding: 18px;

    overflow-y: auto;

    background: #fafbff;
}

.chat-message {
    max-width: 88%;

    margin-bottom: 13px;

    display: flex;

    align-items: flex-start;

    gap: 8px;
}

.chat-message p {
    padding: 11px 13px;

    border-radius: 13px;

    background: #ffffff;

    border: 1px solid var(--border);

    color: #344054;

    font-size: 12px;

    line-height: 1.55;

    box-shadow:
        0 3px 10px rgba(17, 24, 39, 0.03);
}

.chat-message.user {
    margin-left: auto;

    justify-content: flex-end;
}

.chat-message.user p {
    color: #ffffff;

    background: var(--primary);

    border-color: var(--primary);
}

.message-avatar {
    width: 30px;
    height: 30px;

    display: grid;
    place-items: center;

    flex-shrink: 0;

    border-radius: 9px;

    background: var(--primary-soft);

    font-size: 15px;
}


/* =========================================================
   QUICK QUESTIONS
========================================================= */

.quick-question-list {
    padding: 12px 14px;

    display: flex;
    flex-wrap: wrap;

    gap: 7px;

    border-top: 1px solid var(--border);
}

.quick-question {
    padding: 7px 9px;

    border: 1px solid var(--border);
    border-radius: 8px;

    background: #ffffff;

    color: #475467;

    font-size: 10px;
    font-weight: 600;

    transition: 0.2s ease;
}

.quick-question:hover {
    color: var(--primary);

    border-color: #c4b5fd;

    background: var(--primary-soft);
}


/* =========================================================
   CHAT FORM
========================================================= */

.chat-form {
    padding: 12px 14px 14px;

    display: grid;

    grid-template-columns: 1fr 42px 42px;

    gap: 7px;

    border-top: 1px solid var(--border);
}

.chat-form input {
    min-width: 0;

    height: 42px;

    padding: 0 12px;

    border: 1px solid var(--border);
    border-radius: 10px;

    outline: none;

    font-size: 12px;
}

.voice-button,
.send-button {
    height: 42px;

    display: grid;
    place-items: center;

    border-radius: 10px;

    font-size: 16px;

    transition: 0.2s ease;
}

.voice-button {
    background: var(--surface-soft);

    border: 1px solid var(--border);
}

.send-button {
    color: #ffffff;

    background: var(--primary);
}

.voice-button:hover {
    border-color: #c4b5fd;

    background: var(--primary-soft);
}

.send-button:hover {
    background: var(--primary-dark);
}


/* =========================================================
   CTA
========================================================= */

.cta-section {
    padding: 55px 20px;

    background: #111827;
}

.cta-content {
    width: min(var(--max-width), 100%);

    margin: auto;

    display: grid;

    grid-template-columns: auto 1fr auto;

    align-items: center;

    gap: 22px;
}

.cta-icon {
    width: 62px;
    height: 62px;

    display: grid;
    place-items: center;

    border-radius: 17px;

    background: #273043;

    font-size: 29px;
}

.cta-content .eyebrow {
    color: #c4b5fd;
}

.cta-content h2 {
    margin: 4px 0 3px;

    color: #ffffff;

    font-size: 28px;
}

.cta-content p:not(.eyebrow) {
    color: #cbd5e1;

    font-size: 12px;
}

.cta-button {
    min-height: 45px;

    padding: 0 17px;

    border-radius: 10px;

    color: #ffffff;
    background: var(--danger);

    font-size: 12px;
    font-weight: 700;

    transition: 0.2s ease;
}

.cta-button:hover {
    background: var(--danger-dark);

    transform: translateY(-2px);
}


/* =========================================================
   SOS MODAL
========================================================= */

.modal[hidden] {
    display: none !important;
}

.modal {
    position: fixed;

    inset: 0;

    z-index: 2000;

    padding: 20px;

    display: flex;

    align-items: center;
    justify-content: center;

    background: rgba(15, 23, 42, 0.68);

    backdrop-filter: blur(7px);
    -webkit-backdrop-filter: blur(7px);
}

.modal-content {
    width: min(500px, 100%);

    max-height: calc(100vh - 40px);

    overflow-y: auto;

    position: relative;

    padding: 32px;

    border-radius: 24px;

    background: #ffffff;

    box-shadow:
        0 30px 90px rgba(0, 0, 0, 0.22);
}

.modal-close {
    position: absolute;

    top: 14px;
    right: 14px;

    width: 36px;
    height: 36px;

    display: grid;
    place-items: center;

    border-radius: 10px;

    background: var(--surface-soft);

    color: #475467;

    font-size: 25px;

    line-height: 1;
}

.modal-icon {
    width: 58px;
    height: 58px;

    display: grid;
    place-items: center;

    margin-bottom: 14px;

    border-radius: 17px;

    background: var(--danger-soft);

    font-size: 28px;
}

.modal-content h2 {
    font-size: 26px;
}

.modal-content > p {
    margin-top: 7px;

    color: var(--muted);

    font-size: 13px;
}

.emergency-actions {
    margin-top: 20px;

    display: flex;
    flex-direction: column;

    gap: 9px;
}

.emergency-action {
    min-height: 45px;

    padding: 0 14px;

    display: flex;

    align-items: center;

    border-radius: 10px;

    color: #ffffff;

    background: var(--danger);

    font-size: 12px;
    font-weight: 700;
}

.emergency-action:hover {
    background: var(--danger-dark);
}

.modal-content > .location-button {
    width: 100%;

    margin-top: 12px;
}

.modal-note {
    font-size: 10px !important;
}


/* =========================================================
   FOOTER
========================================================= */

.site-footer {
    background: #0b1120;

    color: #ffffff;

    padding: 58px 20px 20px;
}

.footer-grid {
    width: min(var(--max-width), 100%);

    margin: auto;

    display: grid;

    grid-template-columns: 1.4fr 0.8fr;

    gap: 70px;

    padding-bottom: 40px;
}

.footer-brand .brand-icon {
    background: #1e293b;
}

.footer-brand .brand-text strong {
    color: #ffffff;
}

.footer-brand .brand-text small {
    color: #94a3b8;
}

.footer-brand > p {
    max-width: 500px;

    margin-top: 18px;

    color: #94a3b8;

    font-size: 12px;
}

.footer-links {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 35px;
}

.footer-links h4 {
    margin-bottom: 12px;

    color: #ffffff;

    font-size: 12px;
}

.footer-links a {
    display: block;

    width: fit-content;

    margin: 8px 0;

    color: #94a3b8;

    font-size: 11px;

    transition: 0.2s ease;
}

.footer-links a:hover {
    color: #ffffff;

    transform: translateX(2px);
}

.footer-bottom {
    width: min(var(--max-width), 100%);

    margin: auto;

    padding-top: 18px;

    display: flex;

    justify-content: space-between;

    gap: 15px;

    border-top: 1px solid #1e293b;

    color: #64748b;

    font-size: 10px;
}


/* =========================================================
   ACCESSIBILITY
========================================================= */

:focus-visible {
    outline: 3px solid rgba(124, 58, 237, 0.3);

    outline-offset: 2px;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1050px) {

    .main-nav a {
        padding-left: 7px;
        padding-right: 7px;

        font-size: 12px;
    }

    .navbar {
        gap: 13px;
    }

    .tool-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-grid {
        gap: 25px;
    }
}


/* =========================================================
   MOBILE NAV + TABLET
========================================================= */

@media (max-width: 820px) {

    .navbar {
        min-height: 68px;

        position: relative;
    }

    .menu-toggle {
        display: grid;

        place-items: center;

        margin-left: auto;
    }

    .main-nav {
        position: absolute;

        top: calc(100% + 8px);

        left: 0;
        right: 0;

        padding: 10px;

        display: none;

        flex-direction: column;

        align-items: stretch;

        border: 1px solid var(--border);

        border-radius: 15px;

        background: #ffffff;

        box-shadow: var(--shadow-md);
    }

    .main-nav.active {
        display: flex;
    }

    .main-nav a {
        padding: 11px 12px;
    }

    .profile-button {
        display: none;
    }

    .hero-grid,
    .contacts-layout,
    .location-layout,
    .assistant-layout {
        grid-template-columns: 1fr;
    }

    .hero-grid {
        padding: 55px 0;
    }

    .hero-visual {
        min-height: 360px;
    }

    .assistant-intro {
        padding-right: 0;
    }


    /* Gamyam tablet */

    .gamyam-card {
        grid-template-columns: 110px 1fr;

        gap: 22px;

        padding: 28px;
    }

    .gamyam-icon {
        width: 100px;
        height: 100px;

        font-size: 45px;
    }


    .academy-grid {
        grid-template-columns: 1fr;
    }

    .cta-content {
        grid-template-columns: auto 1fr;
    }

    .cta-button {
        grid-column: 2;

        justify-self: start;
    }
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 600px) {

    .navbar,
    .hero-grid,
    .section {
        width: min(
            100% - 28px,
            var(--max-width)
        );
    }

    .section {
        padding: 65px 0;
    }

    .hero-content h1 {
        font-size: 42px;
    }

    .hero-description {
        font-size: 14px;
    }

    .hero-actions {
        flex-direction: column;

        align-items: stretch;
    }

    .sos-button,
    .secondary-hero-button {
        width: 100%;
    }

    .hero-visual {
        min-height: 320px;
    }

    .hero-circle {
        width: 250px;
    }

    .hero-shield {
        width: 76px;
        height: 76px;

        font-size: 40px;
    }

    .floating-card {
        min-width: 115px;

        padding: 10px;
    }

    .floating-card-one {
        top: 25px;
        left: 0;
    }

    .floating-card-two {
        right: 0;
        bottom: 25px;
    }

    .tool-grid,
    .guidance-grid {
        grid-template-columns: 1fr;
    }

    .guidance-section,
    .assistant-section {
        padding-left: 14px;
        padding-right: 14px;
    }

    .map-panel,
    .nearby-panel,
    .contact-form-card,
    .saved-contacts-card {
        padding: 20px;
    }

    .map-panel-header {
        align-items: flex-start;

        flex-direction: column;
    }

    .location-button {
        width: 100%;
    }


    /* Gamyam mobile */

    .gamyam-card {
        grid-template-columns: 1fr;

        text-align: center;
    }

    .gamyam-icon {
        margin: 0 auto;
    }

    .gamyam-features {
        justify-content: center;
    }

    .gamyam-button {
        width: 100%;
    }


    .chat-area {
        height: 300px;
    }

    .cta-content {
        grid-template-columns: 1fr;
    }

    .cta-button {
        grid-column: auto;

        width: 100%;
    }

    .footer-grid {
        grid-template-columns: 1fr;

        gap: 35px;
    }

    .footer-bottom {
        flex-direction: column;
    }
}


/* =========================================================
   SMALL PHONES
========================================================= */

@media (max-width: 380px) {

    .brand-text small {
        display: none;
    }

    .hero-content h1 {
        font-size: 36px;
    }

    .floating-card {
        display: none;
    }

    .chat-form {
        grid-template-columns: 1fr 40px 40px;
    }
}