/* public.css */
@font-face {
    src: url('../fonts/bpg_nino_mtavruli_normal.otf') format('opentype');
    font-family: 'BPG Nino Mtavruli';
    font-weight: normal;
    font-style: normal;
}

*,
body,
a,
p,
h1,
h2,
h3,
h4,
h5,
h6,
li,
span,
button,
div {
    font-family: 'BPG Nino Mtavruli', sans-serif;
}

:root {
    --primary-color: #87CEEB;
    --primary-dark: #5DADE2;
    --primary-light: #B0E0F6;
    --bg-color: #F8F9FA;
    --text-dark: #2C3E50;
    --border-color: #DEE2E6;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.15);

    --accent-gold: #D4AF37;

    --radius-10: 10px;
    --radius-14: 14px;
    --radius-18: 18px;
    --radius-22: 22px;

    --container-pad: 1rem;

    --nav-h: 76px;
}

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

html {
    scroll-behavior: smooth
}

body {
    background: linear-gradient(135deg, #E3F2FD 0%, #F8F9FA 100%);
    color: var(--text-dark);
    min-height: 100vh;
}

/* bootstrap overrides (light) */
.btn {
    border-radius: 12px
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border: none;
    font-weight: 700;
}

.btn-primary:hover {
    filter: saturate(1.05);
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm)
}

.btn-primary-big {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    border: none;
    color: white;
    font-weight: 700;
    padding: 1rem 2.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, #4A9FCC 100%);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-outline-primary {
    border: 2px solid var(--primary-color);
    color: var(--primary-dark);
    background: #fff;
    font-weight: 700;
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm)
}

/* Utilities */
.container {
    padding-left: var(--container-pad);
    padding-right: var(--container-pad)
}

.section-pad {
    padding: 80px 0
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--primary-dark);
    margin-bottom: .75rem;
    letter-spacing: .2px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: #6c757d;
    max-width: 780px;
    margin: 0 auto;
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .35rem .8rem;
    border-radius: 999px;
    background: rgba(135, 206, 235, .14);
    border: 1px solid rgba(135, 206, 235, .35);
    color: #0f2e3a;
    font-weight: 700;
    font-size: .9rem;
}

.pill i {
    color: var(--primary-dark)
}

.soft-card {
    background: #fff;
    border: 1px solid rgba(135, 206, 235, .25);
    border-radius: var(--radius-18);
    box-shadow: var(--shadow-sm);
}


/* AUTH PAGE */

.main-container {
    min-height: calc(100vh - 90px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 1rem;
}

.auth-card {
    background: white;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    padding: 3rem;
    max-width: 800px;
    width: 100%;
    border: 1px solid rgba(135, 206, 235, 0.2);
}

.auth-card h2 {
    color: var(--primary-dark);
    margin-bottom: 0.5rem;
    text-align: center;
    font-weight: 700;
    font-size: 2rem;
}

.auth-card .subtitle {
    text-align: center;
    color: #6c757d;
    margin-bottom: 2rem;
    font-size: 1rem;
}

.role-selector {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.role-btn {
    padding: 1.5rem;
    border: 2px solid var(--border-color);
    background: white;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.2rem;
    font-weight: 600;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.role-btn i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.role-btn:hover {
    border-color: var(--primary-color);
    background: rgba(135, 206, 235, 0.05);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.role-btn.active {
    border-color: var(--primary-dark);
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    color: white;
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.subtype-toggle {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-bottom: 2.5rem;
    background: var(--bg-color);
    padding: 0.5rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.subtype-btn {
    padding: 1rem;
    border: none;
    background: transparent;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-dark);
}

.subtype-btn:hover {
    background: rgba(255, 255, 255, 0.5);
}

.subtype-btn.active {
    background: white;
    box-shadow: var(--shadow-sm);
    color: var(--primary-dark);
}

.form-section {
    display: none;
    animation: fadeIn 0.5s ease;
}

.form-section.active {
    display: block;
}

.form-section h4 {
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    font-weight: 600;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--primary-color);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.subtype-fields {
    margin-top: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group-full {
    grid-column: 1 / -1;
}

.form-label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    font-size: 0.95rem;
    display: block;
}

.form-control,
.form-select {
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 0.875rem 1rem;
    transition: all 0.3s ease;
    font-size: 1rem;
    width: 100%;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(135, 206, 235, 0.15);
    outline: none;
}

.form-control:hover,
.form-select:hover {
    border-color: var(--primary-light);
}

.password-field {
    position: relative;
}

.password-field input {
    padding-right: 3rem;
}

.password-toggle {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #6c757d;
    transition: color 0.3s ease;
    font-size: 1.1rem;
}

.password-toggle:hover {
    color: var(--primary-dark);
}


.alert {
    border-radius: 8px;
    margin-bottom: 1.5rem;
    border: none;
    padding: 1rem 1.25rem;
}

.alert-success {
    background-color: #D4EDDA;
    color: #155724;
}

.alert-danger {
    background-color: #F8D7DA;
    color: #721C24;
}

.alert-info {
    background-color: #D1ECF1;
    color: #0C5460;
}

.alert-warning {
    background-color: #FFF3CD;
    color: #856404;
}

.invalid-feedback {
    display: block;
    font-size: 0.875rem;
    margin-top: 0.35rem;
    color: #dc3545;
    font-weight: 500;
}

.form-control.is-invalid {
    border-color: #dc3545;
}

.text-link {
    color: var(--primary-dark);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.text-link:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.landing-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-top: 2.5rem;
}

.landing-buttons .btn {
    min-width: 180px;
}

.auth-footer {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.info-box {
    background: linear-gradient(135deg, rgba(135, 206, 235, 0.1) 0%, rgba(176, 224, 246, 0.1) 100%);
    border: 1px solid rgba(135, 206, 235, 0.3);
    border-radius: 8px;
    padding: 1rem;
    margin-top: 1rem;
}

.mb-3 {
    margin-bottom: 1.5rem;
}


/* Loading State */
.btn-loading {
    position: relative;
    pointer-events: none;
}

.btn-loading::after {
    content: "";
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-left: -8px;
    margin-top: -8px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 0.6s linear infinite;
}

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

/* Form transitions */
.subtype-field-group {
    animation: slideIn 0.4s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .auth-card {
        padding: 2rem 1.5rem;
        max-width: 100%;
    }

    .auth-card h2 {
        font-size: 1.6rem;
    }

    .role-selector {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .subtype-toggle {
        grid-template-columns: 1fr;
    }

    .landing-buttons {
        flex-direction: column;
    }

    .landing-buttons .btn {
        width: 100%;
    }

    .role-btn {
        padding: 1.25rem;
        font-size: 1.1rem;
    }

    .role-btn i {
        font-size: 1.75rem;
    }
}

@media (max-width: 576px) {
    .main-container {
        padding: 1.5rem 1rem;
    }

    .auth-card {
        padding: 1.5rem 1rem;
    }

    .navbar-brand {
        font-size: 1.1rem;
    }
}

/* END AUTH */

/* -----------------------------------
   NAVBAR (FIXED)
----------------------------------- */
.navbar-landing {
    height: var(--nav-h);
    background: rgba(255, 255, 255, .92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(135, 206, 235, .28);
    box-shadow: 0 10px 30px rgba(15, 46, 58, .08);
    transition: all .25s ease;
}

.navbar-landing .container {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

/* Brand */
.brand {
    display: flex;
    align-items: center;
    gap: .75rem;
    text-decoration: none;
    min-width: 220px;
}

.brand-mark {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 18px rgba(93, 173, 226, .28);
    flex-shrink: 0;
}

.brand-mark i {
    color: #fff;
    font-size: 1.2rem;
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.05;
}

.brand-title {
    font-size: 1.05rem;
    font-weight: 900;
    color: #0f2e3a;
    letter-spacing: .2px;
}

.brand-subtitle {
    font-size: .82rem;
    color: #6c757d;
    font-weight: 700;
}

/* Desktop nav (RESTORED) */
.navbar-menu {
    display: flex;
    align-items: center;
    gap: .75rem;
    /* tighter so more links fit */
    flex-wrap: nowrap;
    white-space: nowrap;
}

/* Links */
.navbar-menu .nav-link {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 800;
    padding: .55rem .75rem;
    border-radius: 12px;
    transition: background .2s, color .2s, transform .2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.navbar-menu .nav-link:hover {
    color: #0f2e3a;
    background: rgba(135, 206, 235, .16);
    transform: translateY(-1px);
}

.navbar-menu .nav-link.is-active {
    background: rgba(135, 206, 235, .20);
    color: #0f2e3a;
    box-shadow: inset 0 0 0 1px rgba(135, 206, 235, .25);
}

/* Right action buttons */
.nav-actions {
    display: flex;
    align-items: center;
    gap: .65rem;
    margin-left: .25rem;
}

.nav-actions .btn {
    border-radius: 12px;
    font-weight: 800;
    padding: .55rem .9rem;
}

/* Dropdown */
.nav-dd {
    position: relative;
}

.nav-dd-btn {
    border: 1px solid rgba(135, 206, 235, .35);
    background: rgba(255, 255, 255, .65);
    color: #0f2e3a;
    font-weight: 900;
    padding: .55rem .75rem;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    transition: background .2s, transform .2s;
    cursor: pointer;
}

.nav-dd-btn:hover {
    background: rgba(135, 206, 235, .16);
    transform: translateY(-1px);
}

/* menu */
.nav-dd-menu {
    position: absolute;
    top: calc(100% - 10px);
    right: 0;
    min-width: 260px;
    background: #fff;
    border-radius: 16px;
    border: 1px solid rgba(135, 206, 235, .22);
    box-shadow: var(--shadow-lg);
    padding: .5rem;
    display: none;
    z-index: 1050;
}

.nav-dd-menu a {
    display: flex;
    align-items: center;
    gap: .65rem;
    text-decoration: none;
    color: #0f2e3a;
    font-weight: 850;
    padding: .75rem .85rem;
    border-radius: 14px;
    transition: background .18s, transform .18s;
}

.nav-dd-menu a:hover {
    background: rgba(135, 206, 235, .14);
    transform: translateY(-1px);
}

.nav-dd-sep {
    height: 1px;
    background: rgba(135, 206, 235, .22);
    margin: .35rem .35rem;
}

/* show dropdown on hover (desktop) */
@media (min-width: 992px) {
    .nav-dd:hover .nav-dd-menu {
        display: block;
    }
}

/* Mobile toggle button */
.mobile-menu-toggle {
    display: none;
    width: 46px;
    height: 46px;
    border-radius: 14px;
    border: 1px solid rgba(135, 206, 235, .45);
    background: #fff;
    color: #0f2e3a;
    box-shadow: var(--shadow-sm);
}

.mobile-menu-toggle i {
    font-size: 1.2rem;
}

/* Mobile drawer + overlay (unchanged, but keep consistent) */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: min(340px, 92vw);
    height: 100vh;
    background: #fff;
    z-index: 9999;
    transition: right .28s ease;
    box-shadow: -16px 0 40px rgba(15, 46, 58, .18);
    border-left: 1px solid rgba(135, 206, 235, .25);
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu-header {
    padding: 1.25rem 1.25rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(135, 206, 235, .25);
}

.mobile-menu-header .title {
    display: flex;
    align-items: center;
    gap: .75rem;
    font-weight: 900;
    color: #0f2e3a;
}

.mobile-menu-close {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    border: 1px solid rgba(135, 206, 235, .45);
    background: #fff;
}

.mobile-menu-body {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: .6rem;
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-decoration: none;
    color: #0f2e3a;
    font-weight: 800;
    padding: .9rem 1rem;
    border-radius: 14px;
    background: rgba(135, 206, 235, .10);
    border: 1px solid rgba(135, 206, 235, .22);
    transition: background .2s, transform .2s;
}

.mobile-nav-link:hover {
    background: rgba(135, 206, 235, .18);
    transform: translateY(-1px);
}

.mobile-nav-actions {
    display: flex;
    flex-direction: column;
    gap: .65rem;
    margin-top: 1rem;
}

.mobile-sep {
    height: 1px;
    background: rgba(135, 206, 235, .25);
    margin: .75rem 0;
}

.overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .35);
    z-index: 9998;
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease;
}

.overlay.active {
    opacity: 1;
    pointer-events: auto;
}

/* Responsive: hide desktop menu, show burger */
@media (max-width: 992px) {
    .navbar-menu {
        display: none;
    }

    .mobile-menu-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
}


/* -----------------------------------
   HERO
----------------------------------- */
.hero-section {
    position: relative;
    padding: calc(var(--nav-h) + 70px) 0 80px;
    color: #fff;
    overflow: hidden;
    background:
        radial-gradient(900px 500px at 20% 10%, rgba(176, 224, 246, .35), transparent 60%),
        radial-gradient(700px 420px at 80% 40%, rgba(135, 206, 235, .22), transparent 60%),
        linear-gradient(135deg, #143040 0%, #1d4962 45%, #2c5f7e 100%);
}

.hero-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='70' height='70' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.06'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: .55;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    padding: .4rem .9rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, .10);
    border: 1px solid rgba(255, 255, 255, .18);
    color: #fff;
    font-weight: 800;
    font-size: .95rem;
}

.hero-kicker i {
    color: var(--accent-gold)
}

.hero-title {
    font-size: 3.35rem;
    font-weight: 900;
    line-height: 1.15;
    margin: 1.1rem 0 1rem;
    text-shadow: 0 10px 30px rgba(0, 0, 0, .25);
}

.hero-title .highlight {
    color: var(--accent-gold);
    position: relative;
}

.hero-title .highlight::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: .15em;
    height: .15em;
    background: rgba(212, 175, 55, .20);
    z-index: -1;
    border-radius: 10px;
}

.hero-subtitle {
    font-size: 1.2rem;
    opacity: .95;
    line-height: 1.65;
    max-width: 920px;
    margin: 0 auto 1.9rem;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: .9rem;
    flex-wrap: wrap;
    margin-top: 1.25rem;
}

.hero-buttons .btn {
    padding: .95rem 1.5rem;
    font-weight: 900;
    border-radius: 14px;
}

.btn-ghost {
    color: #fff;
    border: 2px solid rgba(255, 255, 255, .28);
    background: rgba(255, 255, 255, .06);
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, .12);
    color: #fff;
    transform: translateY(-1px);
}

.hero-stats {
    margin-top: 3.2rem;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    max-width: 960px;
    margin-left: auto;
    margin-right: auto;
}

.stat-item {
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 18px;
    padding: 1.25rem 1rem;
}

.stat-number {
    font-size: 2.1rem;
    font-weight: 900;
    color: var(--accent-gold);
    line-height: 1;
}

.stat-label {
    margin-top: .5rem;
    opacity: .92;
    font-weight: 700;
    font-size: .95rem;
}

/* -----------------------------------
   FEATURES
----------------------------------- */
.features-section {
    background: var(--bg-color);
}

.feature-card {
    background: #fff;
    border-radius: 20px;
    padding: 2.2rem;
    height: 100%;
    border: 1px solid rgba(135, 206, 235, .20);
    box-shadow: var(--shadow-sm);
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(135, 206, 235, .55);
}

.feature-icon {
    width: 76px;
    height: 76px;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 2rem;
    box-shadow: 0 12px 20px rgba(93, 173, 226, .22);
    margin-bottom: 1.25rem;
}

.feature-title {
    font-size: 1.4rem;
    font-weight: 900;
    color: #0f2e3a;
    margin-bottom: .65rem;
}

.feature-description {
    color: #6c757d;
    line-height: 1.7;
    font-weight: 600;
}

/* ================================
   CAROUSEL (Bootstrap-safe)
   Structure:
   .carousel-shell
     .carousel-track#reviewsTrack|#lawyersTrack
       .c-item
         (your card)
================================ */

.carousel-shell {
    position: relative;
    overflow: hidden;
    padding-bottom: 3.25rem;
    /* space for controls */
}

/* Track */
.carousel-track {
    --gap: 20px;
    /* ✅ controls spacing */
    --card-w: 420px;
    /* default card width */
    display: flex;
    gap: var(--gap);
    padding: 6px 6px 18px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    align-items: stretch;
}

.carousel-track::-webkit-scrollbar {
    display: none;
}

/* Items: constant width => constant spacing */
.c-item {
    flex: 0 0 var(--card-w);
    width: var(--card-w);
    scroll-snap-align: start;
    scroll-snap-stop: always;
    display: flex;
    /* helps equal-height cards */
    align-items: stretch;
}

/* Make the card fill the item */
.c-item>* {
    width: 100%;
}

/* Reviews sizing */
#reviewsTrack {
    --card-w: 420px;
}

/* Lawyers sizing */
#lawyersTrack {
    --card-w: 300px;
}

/* Responsive widths */
@media (max-width: 1200px) {
    #reviewsTrack {
        --card-w: 380px;
    }

    #lawyersTrack {
        --card-w: 280px;
    }
}

@media (max-width: 992px) {
    #reviewsTrack {
        --card-w: 340px;
    }

    #lawyersTrack {
        --card-w: 260px;
    }
}

@media (max-width: 576px) {
    .carousel-track {
        --gap: 14px;
        padding-left: 12px;
        padding-right: 12px;
    }

    #reviewsTrack {
        --card-w: 86vw;
    }

    #lawyersTrack {
        --card-w: 78vw;
    }
}

/* Controls */
.carousel-controls {
    position: absolute;
    left: 0;
    right: 0;
    bottom: .5rem;
    display: flex;
    justify-content: center;
    gap: .85rem;
    pointer-events: none;
}

.carousel-btn {
    pointer-events: auto;
    width: 52px;
    height: 52px;
    border-radius: 18px;
    border: 1px solid rgba(135, 206, 235, .55);
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
    color: #0f2e3a;
    transition: transform .18s ease, background .18s ease, opacity .18s ease;
}

.carousel-btn:hover {
    transform: scale(1.06);
    background: rgba(135, 206, 235, .20);
}

.carousel-btn:disabled {
    opacity: .45;
    cursor: not-allowed;
    transform: none;
}


/* reviews cards */
.reviews-section {
    background: #fff
}

.review-card {
    width: min(430px, 86vw);
    background: #fff;
    border-radius: 20px;
    padding: 1.75rem;
    border: 1px solid rgba(135, 206, 235, .18);
    box-shadow: var(--shadow-sm);
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.review-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(135, 206, 235, .55);
}

.review-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.reviewer-info {
    display: flex;
    align-items: center;
    gap: .85rem
}

.reviewer-avatar {
    width: 52px;
    height: 52px;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 900;
    font-size: 1.1rem;
}

.reviewer-name {
    font-weight: 900;
    color: #0f2e3a
}

.review-date {
    font-size: .9rem;
    color: #6c757d;
    font-weight: 700
}

.review-rating i {
    color: var(--accent-gold);
    font-size: 1.1rem
}

.lawyer-name {
    font-size: 1.15rem;
    font-weight: 900;
    color: var(--primary-dark);
    margin: .25rem 0 .75rem;
}

.review-text {
    color: #6c757d;
    line-height: 1.65;
    font-weight: 600;
}

.review-meta {
    display: flex;
    gap: .5rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.meta-badge {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .4rem .8rem;
    border-radius: 999px;
    background: rgba(135, 206, 235, .12);
    border: 1px solid rgba(135, 206, 235, .22);
    font-size: .85rem;
    font-weight: 800;
    color: #0f2e3a;
}

.meta-badge.success {
    background: #d4edda;
    border-color: #c6e7ce;
    color: #155724;
}

.meta-badge.warning {
    background: #fff3cd;
    border-color: #ffe7a6;
    color: #856404;
}

/* lawyer cards */
.lawyers-section {
    background: var(--bg-color)
}

.lawyer-card {
    width: 300px;
    background: #fff;
    border-radius: 22px;
    padding: 2rem 1.6rem;
    border: 1px solid rgba(135, 206, 235, .18);
    box-shadow: var(--shadow-sm);
    text-align: center;
    position: relative;
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.lawyer-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(135, 206, 235, .55);
}

.lawyer-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 38px;
    height: 38px;
    border-radius: 14px;
    background: rgba(135, 206, 235, .20);
    border: 1px solid rgba(135, 206, 235, .35);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-dark);
}

.lawyer-avatar {
    width: 96px;
    height: 96px;
    margin: 0 auto 1.1rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 2.2rem;
    box-shadow: 0 18px 28px rgba(93, 173, 226, .22);
}

.lawyer-name {
    color: #0f2e3a;
    font-weight: 900;
    font-size: 1.25rem;
    margin-bottom: .25rem;
}

.lawyer-sub {
    color: #6c757d;
    font-weight: 700;
    margin-bottom: .75rem;
}

.rating-stars i {
    color: var(--accent-gold);
    font-size: 1rem
}

.rating-text {
    display: block;
    color: #6c757d;
    font-weight: 700;
    font-size: .9rem;
    margin-top: .25rem
}

.lawyer-stats {
    display: flex;
    justify-content: center;
    gap: 1.25rem;
    margin-top: 1.1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(135, 206, 235, .18);
    color: #6c757d;
    font-weight: 700;
    font-size: .95rem;
}

.lawyer-stats i {
    color: var(--primary-dark)
}

.lawyer-card .btn {
    border-radius: 14px
}

/* =========================
   Cards / Panels
========================= */

.ui-card {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-18);
    box-shadow: var(--shadow-sm);
}

.ui-card+.ui-card {
    margin-top: var(--space-14);
}

.ui-card-head {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-12);
}

.ui-card-title {
    display: flex;
    align-items: center;
    gap: var(--space-10);
    font-weight: 900;
    margin: 0;
    font-size: 1rem;
}

.ui-card-title i {
    color: rgba(44, 62, 80, 0.75);
}

.ui-card-body {
    padding: 16px;
}

/* -----------------------------------
   HOW IT WORKS
----------------------------------- */
.how-works-section {
    background: #fff;
}

.steps-container {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.25rem;
    margin-top: 2.2rem;
}

.step-card {
    background: #fff;
    border-radius: 22px;
    padding: 2.2rem 1.6rem;
    border: 1px solid rgba(135, 206, 235, .18);
    box-shadow: var(--shadow-sm);
    text-align: center;
    position: relative;
    transition: transform .22s ease, box-shadow .22s ease;
}

.step-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.step-number {
    width: 60px;
    height: 60px;
    border-radius: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.1rem;
    background: linear-gradient(135deg, var(--accent-gold), #e6c84e);
    color: #fff;
    font-weight: 900;
    font-size: 1.6rem;
    box-shadow: 0 16px 24px rgba(212, 175, 55, .22);
}

.step-icon {
    font-size: 2.6rem;
    color: var(--primary-color);
    margin-bottom: .7rem;
}

.step-title {
    font-size: 1.25rem;
    font-weight: 900;
    color: #0f2e3a;
    margin-bottom: .7rem;
}

.step-description {
    color: #6c757d;
    line-height: 1.65;
    font-weight: 600;
}

/* -----------------------------------
   FOR USERS
----------------------------------- */
.for-users-section {
    background:
        radial-gradient(700px 420px at 20% 10%, rgba(135, 206, 235, .18), transparent 55%),
        radial-gradient(800px 480px at 80% 60%, rgba(176, 224, 246, .22), transparent 55%),
        linear-gradient(135deg, #f8f9fa 0, #e9ecef 100%);
}

.user-type-card {
    background: #fff;
    border-radius: 26px;
    padding: 2.4rem 2rem;
    height: 100%;
    border: 1px solid rgba(135, 206, 235, .18);
    box-shadow: var(--shadow-md);
    transition: transform .22s ease, box-shadow .22s ease;
}

.user-type-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.user-type-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.35rem;
}

.user-type-icon {
    width: 70px;
    height: 70px;
    border-radius: 22px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.9rem;
    box-shadow: 0 16px 24px rgba(93, 173, 226, .20);
}

.user-type-title {
    font-size: 1.5rem;
    font-weight: 900;
    color: #0f2e3a;
    margin: 0;
}

.user-features-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.user-features-list li {
    display: flex;
    align-items: flex-start;
    gap: .85rem;
    padding: .85rem 0;
    border-bottom: 1px solid rgba(135, 206, 235, .16);
    font-weight: 700;
    color: #344b57;
}

.user-features-list li:last-child {
    border-bottom: none
}

.user-features-list i {
    color: var(--accent-gold);
    margin-top: .2rem;
    flex-shrink: 0;
}

/* -----------------------------------
   CTA
----------------------------------- */
.cta-section {
    position: relative;
    overflow: hidden;
    padding: 70px 0;
    background:
        radial-gradient(700px 420px at 20% 0%, rgba(255, 255, 255, .16), transparent 60%),
        linear-gradient(135deg, var(--primary-dark) 0, var(--primary-color) 100%);
    color: #fff;
}

.cta-section::after {
    content: "";
    position: absolute;
    top: -140px;
    right: -120px;
    width: 420px;
    height: 420px;
    border-radius: 140px;
    background: rgba(255, 255, 255, .12);
    transform: rotate(12deg);
}

.cta-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 920px;
    margin: 0 auto;
}

.cta-title {
    font-size: 2.4rem;
    font-weight: 900;
    margin-bottom: .9rem;
}

.cta-description {
    font-size: 1.15rem;
    opacity: .95;
    line-height: 1.65;
    margin-bottom: 1.4rem;
    font-weight: 700;
}

.cta-actions {
    display: flex;
    justify-content: center;
    gap: .85rem;
    flex-wrap: wrap;
}

.cta-actions .btn {
    border-radius: 14px;
    font-weight: 900
}

/* -----------------------------------
   FOOTER
----------------------------------- */
.footer {
    background: #1a2332;
    color: #fff;
    padding: 70px 0 30px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: .8rem;
    font-size: 1.25rem;
    font-weight: 900;
    margin-bottom: 1rem;
}

.footer-brand i {
    color: var(--accent-gold)
}

.footer-description {
    color: rgba(255, 255, 255, .72);
    line-height: 1.7;
    font-weight: 600;
    margin-bottom: 1.25rem;
}

.footer-heading {
    font-weight: 900;
    color: var(--accent-gold);
    margin-bottom: 1.1rem;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: .7rem
}

.footer-links a {
    color: rgba(255, 255, 255, .75);
    text-decoration: none;
    font-weight: 700;
    transition: color .2s, transform .2s;
    display: inline-block;
}

.footer-links a:hover {
    color: #fff;
    transform: translateX(2px);
}

.footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-contact li {
    color: rgba(255, 255, 255, .75);
    display: flex;
    align-items: center;
    gap: .6rem;
    margin-bottom: .9rem;
    font-weight: 700;
}

.social-links {
    display: flex;
    gap: .8rem;
}

.social-link {
    width: 46px;
    height: 46px;
    border-radius: 16px;
    background: rgba(255, 255, 255, .10);
    border: 1px solid rgba(255, 255, 255, .14);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    transition: transform .2s, background .2s, color .2s;
}

.social-link:hover {
    transform: translateY(-3px);
    background: var(--accent-gold);
    color: #1a2332;
}

.footer-bottom {
    margin-top: 2.4rem;
    padding-top: 1.4rem;
    border-top: 1px solid rgba(255, 255, 255, .12);
    text-align: center;
    color: rgba(255, 255, 255, .55);
    font-weight: 700;
}

/* -----------------------------------
   Responsive
----------------------------------- */
@media (max-width: 992px) {
    .navbar-menu {
        display: none
    }

    .mobile-menu-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center
    }

    .hero-title {
        font-size: 2.6rem
    }

    .hero-stats {
        grid-template-columns: 1fr;
        gap: .85rem
    }

    .steps-container {
        grid-template-columns: 1fr 1fr
    }
}

@media (max-width: 576px) {
    .hero-section {
        padding: calc(var(--nav-h) + 56px) 0 70px
    }

    .hero-title {
        font-size: 2.2rem
    }

    .hero-subtitle {
        font-size: 1.05rem
    }

    .steps-container {
        grid-template-columns: 1fr
    }

    .review-card {
        padding: 1.35rem
    }

    .lawyer-card {
        width: 100%;
    }
}

/* ================================
   PUBLIC PAGES (About / Contact / Legal)
================================= */

.page-hero {
    padding: calc(var(--nav-h) + 48px) 0 38px;
}

.page-hero .wrap {
    background: rgba(255, 255, 255, .75);
    border: 1px solid rgba(135, 206, 235, .22);
    border-radius: 26px;
    box-shadow: var(--shadow-sm);
    padding: 2.25rem 2rem;
    backdrop-filter: blur(10px);
}

.page-title {
    font-size: 2.4rem;
    font-weight: 900;
    color: #0f2e3a;
    margin: 0 0 .65rem;
}

.page-lead {
    color: #6c757d;
    font-weight: 700;
    line-height: 1.7;
    margin: 0;
    max-width: 900px;
}

.page-body {
    padding: 34px 0 80px;
}

.page-grid {
    display: grid;
    grid-template-columns: 1.35fr .65fr;
    gap: 1.25rem;
    align-items: start;
}

.page-card {
    background: #fff;
    border-radius: 22px;
    border: 1px solid rgba(135, 206, 235, .18);
    box-shadow: var(--shadow-sm);
    padding: 1.75rem;
}

.page-card h2 {
    font-size: 1.25rem;
    font-weight: 900;
    color: #0f2e3a;
    margin: 0 0 .75rem;
}

.page-card h3 {
    font-size: 1.05rem;
    font-weight: 900;
    color: #0f2e3a;
    margin: 1.25rem 0 .55rem;
}

.page-card p,
.page-card li {
    color: #51636d;
    font-weight: 650;
    line-height: 1.75;
}

.page-card ul {
    margin: .5rem 0 0 1.1rem;
}

.info-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.info-list li {
    display: flex;
    gap: .8rem;
    align-items: flex-start;
    padding: .85rem 0;
    border-bottom: 1px solid rgba(135, 206, 235, .16);
}

.info-list li:last-child {
    border-bottom: none;
}

.info-list i {
    margin-top: .15rem;
    color: var(--primary-dark);
}

.kpi-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .9rem;
    margin-top: 1rem;
}

.kpi {
    border-radius: 18px;
    padding: 1.05rem 1rem;
    border: 1px solid rgba(135, 206, 235, .20);
    background: rgba(135, 206, 235, .08);
}

.kpi .num {
    font-size: 1.55rem;
    font-weight: 950;
    color: #0f2e3a;
    line-height: 1;
}

.kpi .lbl {
    margin-top: .45rem;
    color: #6c757d;
    font-weight: 800;
    font-size: .92rem;
}

.form-card .form-label {
    margin-top: .35rem;
}

.form-actions {
    display: flex;
    gap: .75rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.legal-toc a {
    text-decoration: none;
    font-weight: 850;
    color: #0f2e3a;
    display: block;
    padding: .65rem .8rem;
    border-radius: 14px;
    background: rgba(135, 206, 235, .08);
    border: 1px solid rgba(135, 206, 235, .16);
    margin-bottom: .6rem;
    transition: .2s;
}

.legal-toc a:hover {
    transform: translateY(-1px);
    background: rgba(135, 206, 235, .14);
}

.muted {
    color: #6c757d;
    font-weight: 700;
    font-size: .95rem;
}

@media (max-width: 992px) {
    .page-grid {
        grid-template-columns: 1fr;
    }

    .kpi-row {
        grid-template-columns: 1fr;
    }
}

/* Overlay with fade */
.p-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Show overlay */
.p-overlay.show {
    display: flex;
    opacity: 1;
}

/* Popup box */
.p-popup {
    width: 100%;
    max-width: 460px;
    aspect-ratio: 9 / 16;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.overlay.show .popup {
    transform: scale(1);
}

.p-popup iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.p-close-btn {
    position: absolute;
    top: 0;
    right: 0;
    background: #fff;
    border: none;
    font-size: 18px;
    padding: 6px 10px;
    cursor: pointer;
    border-radius: 6px;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3);
}

.p-play-btn {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background: #ff0000;
    color: #fff;
    border: none;
    padding: 12px 18px;
    border-radius: 50px;
    font-weight: bold;
    cursor: pointer;
    display: none;
    z-index: 10000;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s ease;
}

.p-play-btn:hover {
    transform: scale(1.1);
}

@media(max-width: 600px) {
    .p-popup {
        width: 95%;
    }
}