/*
 * FILE: assets/css/components.css
 * PURPOSE: Page-specific and reusable components.
 */

/* ── HERO (full homepage version) ─────────────────────── */
.hero {
    background: var(--navy); min-height: 92vh;
    display: flex; align-items: center;
    position: relative; overflow: hidden; padding: 80px 0;
}
.hero-bg {
    position: absolute; inset: 0;
    background: radial-gradient(ellipse 80% 80% at 60% 50%,rgba(27,89,232,.18) 0%,transparent 70%),
                radial-gradient(ellipse 50% 50% at 10% 90%,rgba(14,165,176,.1) 0%,transparent 60%);
}
.hero-grid {
    position: absolute; inset: 0;
    background-image: linear-gradient(rgba(255,255,255,.03) 1px,transparent 1px),
                      linear-gradient(90deg,rgba(255,255,255,.03) 1px,transparent 1px);
    background-size: 60px 60px;
}
.hero-inner {
    display: grid; grid-template-columns: 1fr 440px; gap: 64px;
    align-items: center; position: relative; z-index: 1;
}
.hero-eyebrow { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; }
.hero-live {
    display: flex; align-items: center; gap: 6px;
    background: rgba(16,185,129,.15); border: 1px solid rgba(16,185,129,.3);
    padding: 5px 12px; border-radius: var(--radius-full);
    font-size: 12px; font-weight: 700; color: #34d399; letter-spacing: .06em;
}
.hero-live-dot {
    width: 7px; height: 7px; background: #34d399; border-radius: 50%;
    animation: pulse-dot 2s infinite;
}
.hero-star-text { font-size: 12px; color: rgba(255,255,255,.5); }
.hero h1 {
    font-family: var(--serif); font-size: clamp(38px,4.5vw,64px);
    line-height: 1.08; color: #fff; margin-bottom: 24px;
}
.hero h1 em { color: var(--teal); font-style: normal; }
.hero-sub { font-size: 18px; color: rgba(255,255,255,.65); line-height: 1.7; margin-bottom: 32px; max-width: 540px; }
.hero-bullets { display: flex; flex-direction: column; gap: 10px; margin-bottom: 36px; }
.hero-bullet { display: flex; align-items: center; gap: 10px; color: rgba(255,255,255,.8); font-size: 14px; font-weight: 500; }
.hero-bullet-icon {
    width: 20px; height: 20px; background: rgba(16,185,129,.2); border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0; color: #34d399; font-size: 11px;
}
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-trust { display: flex; gap: 32px; margin-top: 48px; padding-top: 32px; border-top: 1px solid rgba(255,255,255,.1); }
.hero-trust-item { text-align: center; }
.hero-trust-num { font-family: var(--serif); font-size: 32px; color: #fff; line-height: 1; }
.hero-trust-label { font-size: 12px; color: rgba(255,255,255,.5); margin-top: 4px; font-weight: 500; }

/* Hero lead-capture form */
.hero-form-card {
    background: #fff; border-radius: 20px; padding: 36px;
    box-shadow: 0 32px 80px rgba(0,0,0,.35);
}
.form-title { font-family: var(--font); font-size: 20px; font-weight: 800; color: var(--navy); margin-bottom: 4px; }
.form-sub { font-size: 13px; color: var(--muted); margin-bottom: 24px; }
.form-group { margin-bottom: 16px; }
.form-group label {
    display: block; font-size: 12px; font-weight: 700;
    color: var(--text); letter-spacing: .04em; margin-bottom: 6px; text-transform: uppercase;
}
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%; padding: 13px 16px;
    border: 1.5px solid #dde3ee; border-radius: 8px;
    font-size: 14px; font-family: var(--font); color: var(--text);
    outline: none; transition: border-color .2s; background: #fff;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--blue); }
.form-group input.error { border-color: var(--red); }
.form-group input.success { border-color: var(--green); }
.form-group select {
    appearance: none;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M0 0l6 8 6-8z' fill='%235a6b82'/%3E%3C/svg%3E") no-repeat right 14px center #fff;
}
.form-submit {
    width: 100%; background: var(--amber); color: var(--navy);
    font-family: var(--font); font-weight: 800; font-size: 16px;
    padding: 16px; border-radius: 10px; border: none; cursor: pointer;
    transition: all .2s; margin-top: 4px;
}
.form-submit:hover { background: #fbbf24; transform: translateY(-2px); box-shadow: var(--shadow-amber); }
.form-submit:disabled { opacity: .7; transform: none; cursor: not-allowed; }
.form-guarantee {
    display: flex; align-items: center; justify-content: center;
    gap: 6px; margin-top: 12px; font-size: 12px; color: var(--muted);
}
.form-trust-row {
    display: grid; grid-template-columns: repeat(3,1fr); gap: 4px;
    text-align: center; margin-top: 14px;
}
.form-trust-item { font-size: 11px; color: var(--muted); }

/* ── SERVICE CARDS ──────────────────────────────────── */
.services-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; margin-top: 56px; }
.service-card {
    background: #fff; border: 1.5px solid #e8edf5; border-radius: var(--radius-lg);
    padding: 28px; transition: all .25s; cursor: pointer; position: relative; overflow: hidden;
}
.service-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: linear-gradient(90deg, var(--blue), var(--teal));
    opacity: 0; transition: opacity .25s;
}
.service-card:hover { border-color: transparent; box-shadow: 0 12px 40px rgba(27,89,232,.12); transform: translateY(-4px); }
.service-card:hover::before { opacity: 1; }
.service-icon {
    width: 52px; height: 52px;
    background: linear-gradient(135deg,rgba(27,89,232,.1),rgba(14,165,176,.1));
    border-radius: 14px; display: flex; align-items: center; justify-content: center;
    margin-bottom: 18px; font-size: 22px;
}
.service-card h3 { font-family: var(--font); font-size: 16px; font-weight: 800; color: var(--navy); margin-bottom: 8px; }
.service-card p { font-size: 13px; color: var(--muted); line-height: 1.6; }
.service-link { display: inline-flex; align-items: center; gap: 4px; color: var(--blue); font-size: 13px; font-weight: 700; margin-top: 14px; }
.service-link:hover { gap: 8px; color: var(--blue-lt); }
/* kept for compatibility */
.service-card-icon { width: 56px; height: 56px; background: var(--teal-light); border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center; margin-bottom: var(--space-5); }
.service-card-link { font-size: var(--text-sm); font-weight: 600; color: var(--blue); display: inline-flex; align-items: center; gap: var(--space-1); }

/* ── SPECIALTY GRID ─────────────────────────────────── */
.specialty-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(160px,1fr)); gap: var(--space-4); }
.specialty-card {
    background: #fff; border: 1.5px solid #e8edf5; border-radius: var(--radius-md);
    padding: var(--space-5) var(--space-4); text-align: center;
    transition: var(--transition); text-decoration: none;
    color: var(--text); display: flex; flex-direction: column; align-items: center; gap: var(--space-2);
}
.specialty-card:hover { border-color: var(--blue); background: #f0f5ff; color: var(--blue); transform: translateY(-2px); }
.specialty-card-icon { font-size: 2rem; line-height: 1; }
.specialty-card span { font-size: var(--text-sm); font-weight: 500; }

/* ── SERVICE IMAGE SECTION ──────────────────────────── */
.service-img-section {
    display: grid; grid-template-columns: 1fr 1fr; gap: 64px;
    align-items: center; margin-top: 80px; padding-top: 80px;
    border-top: 1px solid #e8edf5;
}
.service-img-wrap { border-radius: 20px; overflow: hidden; box-shadow: 0 20px 60px rgba(7,17,31,.1); height: 380px; }
.service-img-wrap img { width: 100%; height: 100%; object-fit: cover; }
.service-img-points { display: flex; flex-direction: column; gap: 20px; margin-top: 28px; }
.service-img-point { display: flex; gap: 16px; align-items: flex-start; }
.service-img-point-icon {
    width: 44px; height: 44px; border-radius: 12px;
    background: linear-gradient(135deg,var(--blue),var(--teal));
    display: flex; align-items: center; justify-content: center;
    font-size: 18px; flex-shrink: 0;
}
.service-img-point-text strong { display: block; font-weight: 700; color: var(--navy); margin-bottom: 2px; }
.service-img-point-text span { font-size: 13px; color: var(--muted); }

/* ── MAP STATS ROW ──────────────────────────────────── */
.map-stats-row {
    display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; margin-top: 32px;
}
.map-stat-tile {
    background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1);
    border-radius: 12px; padding: 20px; text-align: center;
}
.map-stat-tile .stat-num { font-family: var(--serif); font-size: 32px; color: #fff; }
.map-stat-tile .stat-label { font-size: 12px; color: rgba(255,255,255,.6); margin-top: 4px; }

/* ── PAGE HERO CARD ─────────────────────────────────── */
.hero-stat-card {
    display: grid; grid-template-columns: repeat(auto-fit,minmax(120px,1fr));
    gap: 1px; background: rgba(255,255,255,.1); border-radius: var(--radius-lg);
    overflow: hidden; margin-top: 48px;
}
.hero-stat-card-item { background: rgba(255,255,255,.06); padding: 24px; text-align: center; }
.hero-stat-card-item strong { display: block; font-family: var(--serif); font-size: 28px; color: #fff; }
.hero-stat-card-item span { font-size: 12px; color: rgba(255,255,255,.55); margin-top: 4px; }

/* ── STATES HUB ─────────────────────────────────────── */
.states-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(180px,1fr)); gap: 16px; margin-top: 48px; }
.state-card {
    background: #fff; border: 1.5px solid #e8edf5; border-radius: var(--radius-md);
    padding: 20px; text-align: center; transition: all .2s; text-decoration: none; color: var(--text);
}
.state-card:hover { border-color: var(--blue); color: var(--blue); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(27,89,232,.1); }
.state-card-abbr { font-family: var(--serif); font-size: 2rem; color: var(--navy); line-height: 1; }
.state-card-name { font-size: 14px; font-weight: 600; margin-top: 4px; }

/* ── WHY US ──────────────────────────────────────────── */
.why-card {
    background: #fff; border: 1.5px solid #e8edf5; border-radius: var(--radius-lg);
    padding: 32px; transition: all .25s;
}
.why-card:hover { box-shadow: 0 12px 40px rgba(27,89,232,.1); transform: translateY(-2px); border-color: var(--blue); }
.why-icon { font-size: 2.5rem; margin-bottom: 16px; }
.why-card h3 { font-family: var(--font); font-size: 18px; font-weight: 800; color: var(--navy); margin-bottom: 10px; }

/* ── BREADCRUMBS ─────────────────────────────────────── */
.breadcrumbs { background: var(--offwhite); border-bottom: 1px solid #e8edf5; padding: 12px 0; }
.breadcrumb-list { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.breadcrumb-list li:not(:last-child)::after { content: '/'; margin-left: 8px; color: var(--gray-300); }
.breadcrumb-list a { color: var(--muted); }
.breadcrumb-list a:hover { color: var(--blue); }

/* ── LANDING PAGE HERO ───────────────────────────────── */
.lp-hero { background: var(--navy); padding: 80px 0; position: relative; overflow: hidden; }
.lp-hero::before {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(ellipse 60% 60% at 30% 50%,rgba(27,89,232,.2) 0%,transparent 70%);
}
.lp-hero .container { position: relative; z-index: 1; }
.lp-grid { display: grid; grid-template-columns: 1fr 420px; gap: 56px; align-items: center; }

/* ── NOTICE BOXES ────────────────────────────────────── */
.notice-box {
    border-radius: var(--radius-md); padding: 20px 24px;
    border: 1px solid; margin-bottom: 24px;
}
.notice-box.teal { background: var(--teal-light); border-color: var(--teal); }
.notice-box.teal h3 { color: var(--teal-dark); font-family: var(--font); font-size: 16px; font-weight: 700; }
.notice-box.blue { background: #eff3ff; border-color: var(--blue); }
.notice-box.amber { background: var(--amber-light); border-color: var(--amber); }

/* ── ADMIN INDICATOR ─────────────────────────────────── */
.admin-edit-btn {
    display: none; position: absolute; top: 8px; right: 8px;
    background: var(--blue); color: #fff; font-size: 11px; font-weight: 700;
    padding: 4px 10px; border-radius: 4px; z-index: 100;
    text-decoration: none;
}
body.admin-logged-in .admin-edit-btn { display: block; }

@media (max-width: 768px) {
    .services-grid { grid-template-columns: 1fr 1fr; }
    .lp-grid { grid-template-columns: 1fr; }
    .service-img-section { grid-template-columns: 1fr; }
    .map-stats-row { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 480px) {
    .services-grid { grid-template-columns: 1fr; }
    .hero-form-card { padding: 24px; }
    .team-strip { grid-template-columns: 1fr 1fr; }
}
