/* ==========================================================
   Objective Medicare Advice — style.css
   Mobile-first, dark design optimized for conversion & SEO
   ========================================================== */

:root {
    --bg: #14142a;
    --bg-alt: #1b1b36;
    --bg-card: #1e2050;
    --bg-form: #1a1a3a;
    --text: #f1f1f1;
    --text-muted: #9ba3b8;
    --green: #22c55e;
    --blue: #4a8ff7;
    --blue-hover: #2d73e8;
    --magenta: #e91e8c;
    --magenta-hover: #c8187a;
    --border: rgba(255, 255, 255, 0.1);
    --radius: 10px;
    --shadow: 0 4px 24px rgba(0, 0, 0, 0.45);
    --max-w: 1100px;
}

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

html {
    scroll-behavior: smooth;
    font-size: 18px;
}

body {
    font-family: 'Nunito', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.65;
    padding-bottom: 68px;
}

@media (min-width: 768px) {
    body { padding-bottom: 0; }
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }

.container {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 1.25rem;
}

/* ----------------------------------------------------------
   CMS Compliance Bar
   ---------------------------------------------------------- */
.cms-bar {
    background: #0d0d1e;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.45);
    font-size: 0.72rem;
    font-weight: 600;
    text-align: center;
    padding: 0.4rem 1rem;
    line-height: 1.4;
}

/* ----------------------------------------------------------
   Sticky Mobile Bar
   ---------------------------------------------------------- */
.sticky-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    height: 64px;
    box-shadow: 0 -2px 12px rgba(0,0,0,0.5);
}

@media (min-width: 768px) {
    .sticky-bar { display: none; }
}

.sticky-call,
.sticky-text {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 1rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: 0.02em;
}

.sticky-call { background: var(--blue); }
.sticky-call:active { background: var(--blue-hover); }
.sticky-text { background: var(--magenta); }
.sticky-text:active { background: var(--magenta-hover); }

/* ----------------------------------------------------------
   Header
   ---------------------------------------------------------- */
.site-header {
    background: rgba(0, 0, 0, 0.35);
    border-bottom: 1px solid var(--border);
    padding: 0.8rem 0;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.header-phone {
    font-size: clamp(1.3rem, 4vw, 1.7rem);
    font-weight: 900;
    color: var(--green);
    letter-spacing: -0.02em;
    transition: color 0.15s;
}

.header-phone:hover { color: #fff; }

.header-tagline {
    font-size: 0.82rem;
    color: var(--text-muted);
    font-weight: 600;
}

/* ----------------------------------------------------------
   Buttons
   ---------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0.8em 1.6em;
    border-radius: 50px;
    font-family: 'Nunito', sans-serif;
    font-size: 1rem;
    font-weight: 800;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
    border: none;
    white-space: nowrap;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(0,0,0,0.35);
}

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

.btn-call { background: var(--blue); color: #fff; }
.btn-call:hover { background: var(--blue-hover); }

.btn-text-cta { background: var(--magenta); color: #fff; }
.btn-text-cta:hover { background: var(--magenta-hover); }

.btn-submit {
    background: var(--green);
    color: #0a2010;
    width: 100%;
    justify-content: center;
    font-size: 1.1rem;
    padding: 0.9em 1.6em;
    border-radius: var(--radius);
    font-weight: 900;
}

.btn-submit:hover {
    background: #16a34a;
    color: #fff;
}

.btn-large {
    font-size: 1.15rem;
    padding: 1em 2.2em;
}

/* ----------------------------------------------------------
   Hero Section
   ---------------------------------------------------------- */
.hero {
    padding: 3rem 0 3.5rem;
    background: linear-gradient(155deg, #14142a 0%, #1c1c42 100%);
}

.hero-inner {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

@media (min-width: 900px) {
    .hero-inner {
        flex-direction: row;
        align-items: flex-start;
        gap: 3rem;
    }
    .hero-text { flex: 1; }
    .hero-form-wrap { width: 420px; flex-shrink: 0; }
}

.hero-text h1 {
    font-size: clamp(2rem, 5.5vw, 3.2rem);
    font-weight: 900;
    line-height: 1.15;
    margin-bottom: 1rem;
    color: #fff;
}

.hero-subtitle {
    font-size: 1.05rem;
    color: var(--text-muted);
    margin-bottom: 1.75rem;
    max-width: 520px;
    line-height: 1.7;
}

/* Trust Bullets */
.trust-bullets {
    list-style: none;
    margin-bottom: 2rem;
}

.trust-bullets li {
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
    margin-bottom: 0.7rem;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.5;
}

.check {
    color: var(--green);
    font-size: 1.05rem;
    font-weight: 900;
    flex-shrink: 0;
    margin-top: 0.1em;
}

.hero-ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

@media (max-width: 500px) {
    .hero-ctas .btn {
        flex: 1;
        justify-content: center;
        min-width: 140px;
    }
}

/* Form */
.hero-form {
    background: var(--bg-form);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 1.75rem;
    box-shadow: var(--shadow);
}

.hero-form h2 {
    font-size: 1.5rem;
    font-weight: 900;
    margin-bottom: 0.25rem;
    color: #fff;
}

.form-subtext {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-bottom: 1.25rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    font-size: 0.88rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.req { color: #f87171; margin-left: 2px; }
.optional { color: var(--text-muted); font-weight: 400; text-transform: none; letter-spacing: 0; }

.form-group input,
.form-group textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 0.7em 1em;
    color: #fff;
    font-family: 'Nunito', sans-serif;
    font-size: 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
    -webkit-appearance: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255,255,255,0.28);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(74, 143, 247, 0.22);
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.consent-group { margin-bottom: 1.25rem; }

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    cursor: pointer;
    font-size: 0.83rem;
    color: var(--text-muted);
    line-height: 1.45;
    text-transform: none;
    letter-spacing: 0;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    flex-shrink: 0;
    margin-top: 0.2em;
    accent-color: var(--green);
    cursor: pointer;
}

/* ----------------------------------------------------------
   Shared Section Styles
   ---------------------------------------------------------- */
.section-alt {
    background: var(--bg-alt);
    padding: 4.5rem 0;
}

.section-dark {
    background: var(--bg);
    padding: 4.5rem 0;
}

.section-title {
    font-size: clamp(1.5rem, 4vw, 2.1rem);
    font-weight: 900;
    margin-bottom: 0.6rem;
    color: #fff;
    text-align: center;
    line-height: 1.2;
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 1rem;
    max-width: 560px;
    margin: 0 auto 2.5rem;
    line-height: 1.65;
}

/* ----------------------------------------------------------
   Meet Eric
   ---------------------------------------------------------- */
.meet-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2.5rem;
}

@media (min-width: 800px) {
    .meet-inner {
        flex-direction: row;
        align-items: flex-start;
        gap: 3.5rem;
    }
    .meet-photo { flex-shrink: 0; }
    .meet-text { flex: 1; }
}

.meet-photo img {
    width: 100%;
    max-width: 340px;
    height: auto;
    border-radius: 14px;
    display: block;
    box-shadow: 0 8px 32px rgba(0,0,0,0.5);
}

.meet-text h2 {
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 900;
    color: #fff;
    margin-bottom: 1rem;
}

.meet-text p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.75;
    margin-bottom: 1rem;
}

.meet-ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

/* ----------------------------------------------------------
   Why Local Cards
   ---------------------------------------------------------- */
.cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.2rem;
    margin-top: 2.5rem;
}

@media (min-width: 560px) {
    .cards { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 900px) {
    .cards { grid-template-columns: repeat(4, 1fr); }
}

.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
}

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

.card-icon {
    font-size: 2.2rem;
    margin-bottom: 0.75rem;
    display: block;
}

.card h3 {
    font-size: 1.05rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    color: #fff;
}

.card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.55;
}

/* ----------------------------------------------------------
   Topics Grid
   ---------------------------------------------------------- */
.topics-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.7rem;
    max-width: 800px;
    margin: 0 auto;
}

@media (min-width: 580px) {
    .topics-grid { grid-template-columns: repeat(2, 1fr); }
}

.topic {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    font-size: 0.97rem;
    font-weight: 600;
    color: var(--text);
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    transition: background 0.2s;
}

.topic:hover {
    background: rgba(255,255,255,0.07);
}

/* ----------------------------------------------------------
   FAQ
   ---------------------------------------------------------- */
.faq-list {
    max-width: 760px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.faq-item {
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
    transition: border-color 0.2s;
}

.faq-item[open] {
    border-color: rgba(74, 143, 247, 0.4);
}

.faq-question {
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.1rem 1.25rem;
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    cursor: pointer;
    -webkit-user-select: none;
    user-select: none;
    line-height: 1.4;
}

.faq-question::-webkit-details-marker { display: none; }

.faq-question::after {
    content: '+';
    flex-shrink: 0;
    font-size: 1.4rem;
    font-weight: 400;
    color: var(--blue);
    line-height: 1;
    transition: transform 0.2s;
}

.faq-item[open] .faq-question::after {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 1.25rem 1.25rem;
    color: var(--text-muted);
    font-size: 0.97rem;
    line-height: 1.7;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.faq-answer strong { color: var(--text); }

.faq-answer a {
    color: var(--blue);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.faq-answer a:hover { color: #fff; }

/* ----------------------------------------------------------
   Areas Grid
   ---------------------------------------------------------- */
.areas-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    justify-content: center;
    margin: 2rem auto;
    max-width: 680px;
}

.area-pill {
    background: rgba(74, 143, 247, 0.13);
    border: 1px solid rgba(74, 143, 247, 0.3);
    color: #93c5fd;
    padding: 0.45em 1.1em;
    border-radius: 50px;
    font-size: 0.93rem;
    font-weight: 700;
}

.map-wrap {
    margin-top: 2rem;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* ----------------------------------------------------------
   Final CTA
   ---------------------------------------------------------- */
.final-cta {
    background: linear-gradient(135deg, #18183e 0%, #0e1830 100%);
    padding: 5rem 0;
    text-align: center;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.final-cta h2 {
    font-size: clamp(1.6rem, 4.5vw, 2.5rem);
    font-weight: 900;
    margin-bottom: 0.75rem;
    color: #fff;
    line-height: 1.2;
}

.final-cta .lead {
    color: var(--text-muted);
    margin-bottom: 2.25rem;
    font-size: 1.05rem;
}

.final-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.cta-note {
    color: var(--text-muted);
    font-size: 0.88rem;
    font-weight: 600;
}

/* ----------------------------------------------------------
   Footer
   ---------------------------------------------------------- */
.site-footer {
    background: #0d0d1e;
    padding: 2.5rem 0;
    text-align: center;
    border-top: 1px solid var(--border);
}

.footer-name {
    font-size: 1.05rem;
    font-weight: 900;
    margin-bottom: 0.5rem;
    color: #fff;
}

.site-footer p {
    font-size: 0.87rem;
    color: var(--text-muted);
    margin-bottom: 0.4rem;
    line-height: 1.55;
}

.site-footer a {
    color: var(--blue);
    font-weight: 700;
    transition: color 0.15s;
}

.site-footer a:hover { color: #fff; }

.honeypot {
    display: none;
}

/* ----------------------------------------------------------
   Formspree Form States
   ---------------------------------------------------------- */
.form-success:empty,
.form-error-global:empty,
.field-error:empty {
    display: none;
}

.form-success {
    background: rgba(34, 197, 94, 0.12);
    border: 1px solid var(--green);
    border-radius: var(--radius);
    padding: 1.25rem 1.5rem;
    color: var(--green);
    font-weight: 700;
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 1rem;
    text-align: center;
}

.form-error-global {
    background: rgba(248, 113, 113, 0.1);
    border: 1px solid rgba(248, 113, 113, 0.35);
    border-radius: var(--radius);
    padding: 0.75rem 1rem;
    color: #f87171;
    font-size: 0.88rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.field-error {
    display: block;
    color: #f87171;
    font-size: 0.8rem;
    font-weight: 600;
    margin-top: 0.25rem;
}

.form-group input[aria-invalid="true"],
.form-group textarea[aria-invalid="true"] {
    border-color: #f87171;
    box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.18);
}

[data-fs-submit-btn]:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

.map-embed {
    border: 0;
    width: 100%;
    height: 300px;
    display: block;
}

.footer-disclaimer {
    margin-top: 1.25rem !important;
    font-size: 0.76rem !important;
    color: rgba(255,255,255,0.28) !important;
    max-width: 580px;
    margin-left: auto !important;
    margin-right: auto !important;
    line-height: 1.55;
}
