/* Legal.ag — Antigua & Barbuda Legal Services
   Redesigned March 2026 — Premium legal services aesthetic */

/* ─── Design Tokens ──────────────────────────────────── */
:root {
    --navy:       #0B1D26;
    --navy-mid:   #132F3E;
    --teal:       #1A6B5A;
    --teal-light: #2A8F78;
    --gold:       #C9A84C;
    --gold-light: #E5C96E;
    --coral:      #D4654A;
    --sand:       #F5F0E8;
    --sand-light: #FAF8F4;
    --cream:      #FFFDF9;
    --text-dark:  #1A1A1A;
    --text-body:  #4A4A4A;
    --text-muted: #7A7A7A;
    --border:     #E5E0D8;
    --radius-sm:  6px;
    --radius-md:  12px;
    --radius-lg:  20px;
    --radius-xl:  32px;
    --shadow-sm:  0 1px 3px rgba(11,29,38,0.06);
    --shadow-md:  0 4px 16px rgba(11,29,38,0.08);
    --shadow-lg:  0 8px 32px rgba(11,29,38,0.12);
    --shadow-xl:  0 16px 48px rgba(11,29,38,0.16);
}

/* ─── Typography ─────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=DM+Sans:ital,opsz,wght@0,9..40,300..700;1,9..40,300..700&display=swap');

body {
    font-family: 'DM Sans', -apple-system, sans-serif;
    font-weight: 400;
    color: var(--text-body);
    background: var(--cream);
    font-size: 1rem;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'DM Serif Display', Georgia, serif;
    color: var(--text-dark);
    font-weight: 400;
    line-height: 1.2;
}

.font-sans { font-family: 'DM Sans', sans-serif; }
.font-serif { font-family: 'DM Serif Display', Georgia, serif; }

/* ─── Navbar ─────────────────────────────────────────── */
.navbar-main {
    background: var(--navy);
    padding: 0.9rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.navbar-main .navbar-brand {
    font-family: 'DM Serif Display', Georgia, serif;
    font-size: 1.55rem;
    color: #fff !important;
    letter-spacing: -0.01em;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.navbar-main .navbar-brand .brand-icon {
    width: 34px;
    height: 34px;
    background: var(--gold);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: var(--navy);
}

.navbar-main .nav-link {
    color: rgba(255,255,255,0.72) !important;
    font-size: 0.92rem;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    transition: color 0.2s;
    letter-spacing: 0.01em;
}

.navbar-main .nav-link:hover,
.navbar-main .nav-link.active {
    color: #fff !important;
}

.btn-nav-cta {
    background: var(--gold);
    color: var(--navy) !important;
    font-weight: 600;
    font-size: 0.88rem;
    padding: 0.5rem 1.25rem;
    border-radius: var(--radius-sm);
    border: none;
    transition: all 0.2s;
    letter-spacing: 0.02em;
}

.btn-nav-cta:hover {
    background: var(--gold-light);
    color: var(--navy) !important;
    transform: translateY(-1px);
}

/* ─── Hero ───────────────────────────────────────────── */
.hero {
    background: linear-gradient(165deg, var(--navy) 0%, var(--navy-mid) 50%, #1A4A3A 100%);
    position: relative;
    overflow: hidden;
    padding: 5rem 0 4rem;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 70%;
    height: 200%;
    background: radial-gradient(ellipse, rgba(201,168,76,0.07) 0%, transparent 70%);
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(201,168,76,0.3), transparent);
}

.hero h1 {
    font-size: 3.2rem;
    color: #fff;
    max-width: 680px;
    letter-spacing: -0.02em;
}

.hero .lead {
    color: rgba(255,255,255,0.7);
    font-size: 1.15rem;
    max-width: 520px;
    line-height: 1.7;
}

/* Search bar in hero */
.hero-search {
    max-width: 580px;
    margin-top: 2rem;
}

.hero-search .search-wrap {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: var(--radius-md);
    padding: 5px;
    display: flex;
    transition: all 0.3s;
}

.hero-search .search-wrap:focus-within {
    background: rgba(255,255,255,0.15);
    border-color: rgba(201,168,76,0.4);
    box-shadow: 0 0 0 3px rgba(201,168,76,0.1);
}

.hero-search input {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 1rem;
    padding: 0.75rem 1rem;
    flex: 1;
    outline: none;
}

.hero-search input::placeholder {
    color: rgba(255,255,255,0.45);
}

.hero-search .btn-search {
    background: var(--gold);
    color: var(--navy);
    border: none;
    border-radius: 8px;
    padding: 0.65rem 1.5rem;
    font-weight: 600;
    font-size: 0.9rem;
    white-space: nowrap;
    transition: all 0.2s;
}

.hero-search .btn-search:hover {
    background: var(--gold-light);
    transform: translateY(-1px);
}

.hero-stat {
    display: flex;
    gap: 2.5rem;
    margin-top: 2.5rem;
}

.hero-stat-item {
    text-align: left;
}

.hero-stat-item .num {
    font-family: 'DM Serif Display', serif;
    font-size: 1.6rem;
    color: var(--gold);
    display: block;
    line-height: 1;
}

.hero-stat-item .label {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.5);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-top: 0.3rem;
}

/* ─── Service Category Cards (Hero area) ─────────────── */
.service-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 2rem;
}

.svc-card {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    cursor: pointer;
    transition: all 0.25s;
    text-decoration: none !important;
    display: block;
}

.svc-card:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(201,168,76,0.3);
    transform: translateY(-2px);
}

.svc-card .svc-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
}

.svc-card .svc-title {
    font-family: 'DM Sans', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    color: #fff;
    margin-bottom: 0.25rem;
}

.svc-card .svc-desc {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.5);
    line-height: 1.4;
}

/* ─── Section Layout ─────────────────────────────────── */
.section {
    padding: 5rem 0;
}

.section-sand { background: var(--sand); }
.section-cream { background: var(--cream); }
.section-navy { background: var(--navy); }

.section-label {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--teal);
    margin-bottom: 0.75rem;
}

.section-title {
    font-size: 2.4rem;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.05rem;
    color: var(--text-muted);
    max-width: 560px;
}

/* ─── How It Works ───────────────────────────────────── */
.steps-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
    position: relative;
}

.steps-row::before {
    content: '';
    position: absolute;
    top: 36px;
    left: 15%;
    right: 15%;
    height: 2px;
    background: linear-gradient(90deg, var(--teal), var(--gold), var(--coral));
    opacity: 0.25;
    z-index: 0;
}

.step-item {
    text-align: center;
    position: relative;
    z-index: 1;
}

.step-num {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: 'DM Serif Display', serif;
    font-size: 1.8rem;
    margin-bottom: 1.25rem;
    position: relative;
}

.step-num-1 { background: rgba(26,107,90,0.1); color: var(--teal); }
.step-num-2 { background: rgba(201,168,76,0.12); color: var(--gold); }
.step-num-3 { background: rgba(212,101,74,0.1); color: var(--coral); }

.step-item h5 {
    font-family: 'DM Sans', sans-serif;
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.step-item p {
    font-size: 0.92rem;
    color: var(--text-muted);
    max-width: 280px;
    margin: 0 auto;
}

/* ─── Feature Cards ──────────────────────────────────── */
.feature-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 2rem;
    height: 100%;
    transition: all 0.25s;
}

.feature-card:hover {
    border-color: var(--teal);
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.feature-card .fc-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 1.25rem;
}

.fc-icon-teal { background: rgba(26,107,90,0.1); color: var(--teal); }
.fc-icon-gold { background: rgba(201,168,76,0.12); color: var(--gold); }
.fc-icon-coral { background: rgba(212,101,74,0.1); color: var(--coral); }
.fc-icon-navy { background: rgba(11,29,38,0.08); color: var(--navy); }

.feature-card h5 {
    font-family: 'DM Sans', sans-serif;
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.feature-card .fc-price {
    font-family: 'DM Sans', sans-serif;
    font-weight: 600;
    color: var(--teal);
    font-size: 0.9rem;
    margin-top: auto;
}

.feature-card .fc-meta {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border);
}

/* ─── Buttons ────────────────────────────────────────── */
.btn-primary-custom {
    background: var(--teal);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    padding: 0.7rem 1.5rem;
    font-weight: 600;
    font-size: 0.92rem;
    transition: all 0.2s;
    letter-spacing: 0.01em;
}

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

.btn-outline-custom {
    background: transparent;
    color: var(--teal);
    border: 2px solid var(--teal);
    border-radius: var(--radius-sm);
    padding: 0.65rem 1.5rem;
    font-weight: 600;
    font-size: 0.92rem;
    transition: all 0.2s;
}

.btn-outline-custom:hover {
    background: var(--teal);
    color: #fff;
}

.btn-gold {
    background: var(--gold);
    color: var(--navy);
    border: none;
    border-radius: var(--radius-sm);
    padding: 0.7rem 1.5rem;
    font-weight: 600;
    font-size: 0.92rem;
    transition: all 0.2s;
}

.btn-gold:hover {
    background: var(--gold-light);
    color: var(--navy);
    transform: translateY(-1px);
}

/* Keep Bootstrap btn-primary/accent working */
.btn-accent {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--navy);
    font-weight: 600;
}
.btn-accent:hover {
    background: var(--gold-light);
    border-color: var(--gold-light);
    color: var(--navy);
}

/* ─── Trust Bar ──────────────────────────────────────── */
.trust-bar {
    background: var(--sand);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 2rem 0;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.trust-item .ti-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: var(--teal);
    flex-shrink: 0;
}

.trust-item .ti-text {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1.3;
}

.trust-item .ti-sub {
    font-size: 0.78rem;
    color: var(--text-muted);
    font-weight: 400;
}

/* ─── CTA Banner ─────────────────────────────────────── */
.cta-banner-section {
    background: linear-gradient(135deg, var(--navy) 0%, #1A4A3A 100%);
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

.cta-banner-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 50%;
    height: 200%;
    background: radial-gradient(ellipse, rgba(201,168,76,0.08) 0%, transparent 70%);
    pointer-events: none;
}

.cta-banner-section h2 {
    color: #fff;
    font-size: 2.2rem;
}

.cta-banner-section p {
    color: rgba(255,255,255,0.65);
    font-size: 1.05rem;
}

/* ─── Footer ─────────────────────────────────────────── */
.footer-main {
    background: var(--navy);
    color: rgba(255,255,255,0.6);
    padding: 4rem 0 2rem;
    font-size: 0.9rem;
}

.footer-main h6 {
    font-family: 'DM Sans', sans-serif;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255,255,255,0.4);
    margin-bottom: 1rem;
}

.footer-main a {
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-main a:hover { color: var(--gold); }

.footer-main .footer-brand {
    font-family: 'DM Serif Display', Georgia, serif;
    font-size: 1.3rem;
    color: #fff;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-main .footer-brand .brand-icon {
    width: 28px;
    height: 28px;
    background: var(--gold);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    color: var(--navy);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: 1.5rem;
    margin-top: 3rem;
    font-size: 0.82rem;
    color: rgba(255,255,255,0.35);
}

/* ─── Search Page ────────────────────────────────────── */
.search-hero {
    background: linear-gradient(165deg, var(--navy) 0%, var(--navy-mid) 50%, #1A4A3A 100%);
    padding: 3.5rem 0;
    color: white;
    position: relative;
    overflow: hidden;
}

.search-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 60%;
    height: 200%;
    background: radial-gradient(ellipse, rgba(201,168,76,0.06) 0%, transparent 70%);
    pointer-events: none;
}

.search-box { max-width: 640px; margin: 0 auto; position: relative; }

.search-input-group {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: var(--radius-md);
    padding: 5px;
    display: flex;
    transition: all 0.3s;
}

.search-input-group:focus-within {
    background: rgba(255,255,255,0.15);
    border-color: rgba(201,168,76,0.4);
}

.search-input-group input {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 1.05rem;
    padding: 0.75rem 1rem;
    flex: 1;
    outline: none;
}

.search-input-group input::placeholder {
    color: rgba(255,255,255,0.4);
}

.search-btn {
    background: var(--gold);
    color: var(--navy);
    border: none;
    border-radius: 8px;
    padding: 0.65rem 1.3rem;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.search-btn:hover {
    background: var(--gold-light);
}

.filter-btn {
    border: 1px solid rgba(255,255,255,0.2);
    color: rgba(255,255,255,0.6);
    background: transparent;
    border-radius: 20px;
    padding: 0.3rem 1rem;
    font-size: 0.82rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.filter-btn:hover, .filter-btn.active {
    background: rgba(255,255,255,0.15);
    color: white;
    border-color: rgba(255,255,255,0.4);
}

/* Results */
.results-container { max-width: 640px; margin: 0 auto; }
.result-status {
    padding: 1.25rem;
    border-radius: var(--radius-md);
    margin-bottom: 1.5rem;
}

.status-available {
    background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
    border-left: 4px solid #2e7d32;
}
.status-unavailable {
    background: linear-gradient(135deg, #fce4ec, #f8bbd0);
    border-left: 4px solid #c62828;
}
.status-caution {
    background: linear-gradient(135deg, #fff8e1, #ffecb3);
    border-left: 4px solid var(--gold);
}

.match-card {
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 0.5rem;
    background: #fff;
    transition: all 0.2s;
}
.match-card:hover { border-color: var(--teal); }

.match-name { font-weight: 600; color: var(--text-dark); }
.match-meta { font-size: 0.82rem; color: var(--text-muted); }

.spinner-search { display: none; width: 1.5rem; height: 1.5rem; }

.cta-banner {
    background: rgba(26,107,90,0.06);
    border: 2px solid var(--teal);
    border-radius: var(--radius-md);
    padding: 1.5rem;
}

/* ─── Wizard Step Page ───────────────────────────────── */
.wizard-container { max-width: 780px; margin: 0 auto; }

.guidance-panel {
    background: rgba(26,107,90,0.05);
    border-left: 4px solid var(--teal);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
}

.guidance-panel .legal-ref {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-style: italic;
}

.step-question {
    font-family: 'DM Serif Display', Georgia, serif;
    font-size: 1.6rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.step-subtext {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.option-card {
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1rem 1.25rem;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: 0.75rem;
    background: #fff;
}

.option-card:hover { border-color: var(--teal); background: rgba(26,107,90,0.02); }
.option-card.selected { border-color: var(--teal); background: rgba(26,107,90,0.06); }
.option-card input[type="radio"],
.option-card input[type="checkbox"] { display: none; }
.option-label { font-weight: 600; color: var(--text-dark); }
.option-description { font-size: 0.9rem; color: var(--text-muted); margin-top: 0.25rem; }
.progress-bar-wizard { height: 4px; border-radius: 2px; }

/* ─── Service Cards ──────────────────────────────────── */
.service-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    transition: all 0.25s;
}

.service-card:hover {
    border-color: var(--teal);
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

/* ─── Form Inputs ────────────────────────────────────── */
.form-control, .form-select {
    border-radius: var(--radius-sm);
    border: 1.5px solid var(--border);
    font-size: 0.95rem;
    transition: all 0.2s;
}

.form-control:focus, .form-select:focus {
    border-color: var(--teal);
    box-shadow: 0 0 0 3px rgba(26,107,90,0.1);
}

.form-control-lg, .form-select-lg {
    border-radius: 8px;
    padding: 0.8rem 1rem;
    font-size: 1.02rem;
}

/* ─── Cards ──────────────────────────────────────────── */
.card {
    border-radius: var(--radius-md);
    border-color: var(--border);
}

/* ─── Progress bar ───────────────────────────────────── */
.progress {
    border-radius: 10px;
    background: var(--sand);
}

.progress-bar {
    background: var(--teal) !important;
}

/* ─── Tables ─────────────────────────────────────────── */
.table th {
    font-family: 'DM Sans', sans-serif;
    font-weight: 600;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
}

/* ─── Badge ──────────────────────────────────────────── */
.badge {
    font-weight: 500;
    padding: 0.4em 0.8em;
    border-radius: var(--radius-sm);
}

/* ─── Antigua Flag Colors Accent ─────────────────────── */
.flag-stripe {
    height: 4px;
    background: linear-gradient(90deg, #000 0%, #000 15%, #0072C6 15%, #0072C6 35%, #FCD116 35%, #FCD116 50%, #CE1126 50%, #CE1126 65%, #FCD116 65%, #FCD116 80%, #0072C6 80%, #0072C6 100%);
}

/* ─── Responsive ─────────────────────────────────────── */
@media (max-width: 992px) {
    .hero h1 { font-size: 2.4rem; }
    .service-grid { grid-template-columns: repeat(2, 1fr); }
    .steps-row { grid-template-columns: 1fr; gap: 1.5rem; }
    .steps-row::before { display: none; }
    .section { padding: 3.5rem 0; }
    .section-title { font-size: 2rem; }
}

@media (max-width: 576px) {
    .hero { padding: 3rem 0 2.5rem; }
    .hero h1 { font-size: 2rem; }
    .service-grid { grid-template-columns: 1fr; }
    .hero-stat { gap: 1.5rem; flex-wrap: wrap; }
}
