/* FindABodyShop.com — Main Stylesheet */
:root {
    --navy:         #1a2744;
    --navy-light:   #253460;
    --navy-mid:     #2e3f78;
    --steel:        #3d5a99;
    --orange:       #e63c2f;
    --orange-dark:  #c4321f;
    --orange-light: #ff6b5b;
    --white:        #ffffff;
    --gray-50:      #f8f9fa;
    --gray-100:     #f1f3f5;
    --gray-200:     #e9ecef;
    --gray-300:     #dee2e6;
    --gray-500:     #adb5bd;
    --gray-700:     #495057;
    --gray-900:     #212529;
    --text:         #212529;
    --text-muted:   #6c757d;
    --radius:       8px;
    --shadow:       0 2px 12px rgba(0,0,0,.1);
    --shadow-lg:    0 8px 32px rgba(0,0,0,.15);
    --transition:   .2s ease;
}

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

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

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: var(--text);
    line-height: 1.6;
    background: var(--white);
}

@font-face {
    font-family: 'Inter';
    src: url('/fonts/inter-variable.woff2') format('woff2');
    font-weight: 100 900;
    font-display: swap;
}

img { max-width: 100%; height: auto; }
a { color: var(--navy-mid); text-decoration: none; }
a:hover { color: var(--orange); }
ul { list-style: none; }

.sr-only {
    position: absolute; width: 1px; height: 1px;
    padding: 0; margin: -1px; overflow: hidden;
    clip: rect(0,0,0,0); border: 0;
}

.container { max-width: 1140px; margin: 0 auto; padding: 0 1.25rem; }

/* ── Header ── */
.site-header {
    background: var(--navy);
    position: sticky; top: 0; z-index: 1000;
    box-shadow: 0 2px 8px rgba(0,0,0,.2);
}
.header-inner {
    display: flex; align-items: center; justify-content: space-between;
    padding-top: .75rem; padding-bottom: .75rem;
}
.logo-img { height: 40px; width: auto; }
.logo-link:hover .logo-img { opacity: .9; }

.main-nav ul { display: flex; gap: 1.5rem; align-items: center; }
.main-nav a { color: rgba(255,255,255,.85); font-size: .95rem; font-weight: 500; transition: color var(--transition); }
.main-nav a:hover, .main-nav a.active { color: var(--white); }
.nav-cta {
    background: var(--orange) !important; color: var(--white) !important;
    padding: .45rem 1rem !important; border-radius: var(--radius);
    font-weight: 600 !important;
}
.nav-cta:hover { background: var(--orange-dark) !important; }

.nav-toggle {
    display: none; background: none; border: none; cursor: pointer;
    flex-direction: column; gap: 5px; padding: .25rem;
}
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--white); border-radius: 2px; transition: var(--transition); }
.nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ── Hero ── */
.hero {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 60%, var(--steel) 100%);
    color: var(--white);
    padding: 4rem 0 3rem;
    text-align: center;
}
.hero-badge {
    display: inline-block; background: var(--orange); color: var(--white);
    font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
    padding: .25rem .75rem; border-radius: 50px; margin-bottom: 1rem;
}
.hero h1 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 800; line-height: 1.15; margin-bottom: 1rem; }
.hero h1 span { color: var(--orange-light); }
.hero p { font-size: 1.15rem; opacity: .9; max-width: 640px; margin: 0 auto 2rem; }

.trust-bar { display: flex; gap: 1.5rem; justify-content: center; flex-wrap: wrap; margin-top: 1.5rem; }
.trust-item { display: flex; align-items: center; gap: .4rem; font-size: .9rem; opacity: .85; }
.trust-item svg { flex-shrink: 0; }

/* ── Quote Form ── */
.quote-form-section { background: rgba(255,255,255,.06); backdrop-filter: blur(4px); border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius); padding: 1.75rem; max-width: 680px; margin: 0 auto; }
.quote-form { display: grid; gap: 1rem; }
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { display: flex; flex-direction: column; gap: .3rem; }
.form-group label { font-size: .85rem; font-weight: 600; color: rgba(255,255,255,.85); }
.form-group input, .form-group select, .form-group textarea {
    width: 100%; padding: .7rem 1rem; border: 1px solid rgba(255,255,255,.2);
    border-radius: var(--radius); background: rgba(255,255,255,.1);
    color: var(--white); font-size: 1rem; font-family: inherit;
    transition: border-color var(--transition), background var(--transition);
}
.form-group input::placeholder { color: rgba(255,255,255,.5); }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    outline: none; border-color: var(--orange-light); background: rgba(255,255,255,.15);
}
.form-group select option { background: var(--navy); color: var(--white); }
.form-privacy { font-size: .8rem; opacity: .7; text-align: center; margin-top: .5rem; }
.form-privacy a { color: rgba(255,255,255,.8); text-decoration: underline; }

/* Page-level form (white background) */
.page-quote-form .form-group label { color: var(--gray-700); }
.page-quote-form .form-group input,
.page-quote-form .form-group select,
.page-quote-form .form-group textarea {
    background: var(--white); border-color: var(--gray-300);
    color: var(--text);
}
.page-quote-form .form-group input::placeholder { color: var(--gray-500); }
.page-quote-form .form-group input:focus,
.page-quote-form .form-group select:focus,
.page-quote-form .form-group textarea:focus { border-color: var(--navy-mid); }

/* ── Buttons ── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; padding: .75rem 1.5rem; border-radius: var(--radius); font-weight: 600; font-size: 1rem; border: none; cursor: pointer; transition: background var(--transition), transform var(--transition); font-family: inherit; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--orange); color: var(--white); }
.btn-primary:hover { background: var(--orange-dark); color: var(--white); }
.btn-secondary { background: var(--navy); color: var(--white); }
.btn-secondary:hover { background: var(--navy-light); color: var(--white); }
.btn-outline { background: transparent; color: var(--navy); border: 2px solid var(--navy); }
.btn-outline:hover { background: var(--navy); color: var(--white); }
.btn-full { width: 100%; }
.btn-lg { padding: .9rem 2rem; font-size: 1.1rem; }

/* ── Sections ── */
.section { padding: 4rem 0; }
.section-alt { background: var(--gray-50); }
.section-title { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; color: var(--navy); margin-bottom: .5rem; }
.section-subtitle { color: var(--text-muted); font-size: 1.05rem; margin-bottom: 2.5rem; }
.section-header { text-align: center; margin-bottom: 2.5rem; }

/* ── Cards ── */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.5rem; }
.card {
    background: var(--white); border: 1px solid var(--gray-200);
    border-radius: var(--radius); padding: 1.5rem;
    transition: box-shadow var(--transition), transform var(--transition);
}
.card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.card-icon { font-size: 2.2rem; margin-bottom: .75rem; }
.card h3 { font-size: 1.1rem; font-weight: 700; color: var(--navy); margin-bottom: .4rem; }
.card p { font-size: .95rem; color: var(--text-muted); }
.card-cost { font-size: .85rem; font-weight: 600; color: var(--orange); margin-top: .5rem; }
.card-link { display: inline-flex; align-items: center; gap: .25rem; margin-top: .75rem; font-size: .9rem; font-weight: 600; color: var(--navy-mid); }
.card-link:hover { color: var(--orange); }

/* ── How It Works ── */
.steps { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 2rem; }
.step { text-align: center; }
.step-number { width: 52px; height: 52px; border-radius: 50%; background: var(--orange); color: var(--white); font-size: 1.4rem; font-weight: 800; display: flex; align-items: center; justify-content: center; margin: 0 auto 1rem; }
.step h3 { font-weight: 700; color: var(--navy); margin-bottom: .4rem; }
.step p { font-size: .95rem; color: var(--text-muted); }

/* ── Content + Sidebar ── */
.content-with-sidebar {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 3rem;
    align-items: start;
}
.content-sidebar { position: sticky; top: 90px; }
.sidebar-card { background: var(--navy); color: var(--white); border-radius: var(--radius); padding: 1.5rem; }
.sidebar-card h3 { font-size: 1.1rem; margin-bottom: 1rem; }
.sidebar-card .form-group label { color: rgba(255,255,255,.85); }

/* ── States Grid ── */
.states-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1rem; }
.state-card { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius); padding: 1rem 1.25rem; display: flex; align-items: center; gap: .75rem; transition: box-shadow var(--transition); }
.state-card:hover { box-shadow: var(--shadow); border-color: var(--navy-mid); }
.state-abbr { font-size: 1.1rem; font-weight: 800; color: var(--orange); min-width: 32px; }
.state-name { font-weight: 600; color: var(--navy); font-size: .95rem; }

/* ── Cities ── */
.cities-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: .75rem; margin-top: 1.5rem; }
.city-link { background: var(--gray-50); border: 1px solid var(--gray-200); border-radius: var(--radius); padding: .6rem 1rem; font-size: .9rem; font-weight: 600; color: var(--navy); text-align: center; transition: var(--transition); }
.city-link:hover { background: var(--navy); color: var(--white); border-color: var(--navy); }

/* ── Page Hero (non-homepage) ── */
.page-hero { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%); color: var(--white); padding: 3rem 0 2.5rem; }
.page-hero h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800; margin-bottom: .5rem; }
.page-hero p { opacity: .85; font-size: 1.05rem; max-width: 640px; }
.breadcrumb { font-size: .85rem; opacity: .7; margin-bottom: .75rem; }
.breadcrumb a { color: rgba(255,255,255,.75); }
.breadcrumb a:hover { color: var(--white); }
.breadcrumb span { margin: 0 .4rem; }

/* ── FAQ Accordion ── */
.faq-list { display: flex; flex-direction: column; gap: .5rem; }
.faq-item { border: 1px solid var(--gray-200); border-radius: var(--radius); overflow: hidden; }
.faq-question {
    display: flex; justify-content: space-between; align-items: center;
    width: 100%; padding: 1rem 1.25rem; background: var(--white);
    border: none; cursor: pointer; font-size: 1rem; font-weight: 600;
    color: var(--navy); text-align: left; font-family: inherit;
    transition: background var(--transition);
}
.faq-question:hover { background: var(--gray-50); }
.faq-question[aria-expanded="true"] { background: var(--gray-50); }
.faq-icon { font-size: 1.2rem; transition: transform var(--transition); flex-shrink: 0; }
.faq-question[aria-expanded="true"] .faq-icon { transform: rotate(45deg); }
.faq-answer { padding: 0 1.25rem 1rem; display: none; color: var(--text-muted); }
.faq-answer.open { display: block; }

/* ── Pricing Tables ── */
.pricing-table { width: 100%; border-collapse: collapse; margin-top: 1.5rem; }
.pricing-table th { background: var(--navy); color: var(--white); padding: .75rem 1rem; text-align: left; font-size: .9rem; }
.pricing-table td { padding: .75rem 1rem; border-bottom: 1px solid var(--gray-200); font-size: .95rem; }
.pricing-table tr:nth-child(even) td { background: var(--gray-50); }
.pricing-table .cost { font-weight: 700; color: var(--orange); }

/* ── Stat boxes ── */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 1.5rem; }
.stat-box { text-align: center; }
.stat-number { font-size: 2.4rem; font-weight: 800; color: var(--orange); line-height: 1; }
.stat-label { font-size: .9rem; color: var(--text-muted); margin-top: .25rem; }

/* ── Alert / Notice ── */
.notice { background: var(--gray-50); border-left: 4px solid var(--orange); padding: 1rem 1.25rem; border-radius: 0 var(--radius) var(--radius) 0; margin: 1.5rem 0; }
.notice p { margin: 0; font-size: .95rem; }

/* ── Thank You ── */
.thankyou-box { text-align: center; max-width: 560px; margin: 4rem auto; padding: 2.5rem; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.thankyou-icon { font-size: 3.5rem; margin-bottom: 1rem; }

/* ── Form success/error ── */
.form-msg { padding: .75rem 1rem; border-radius: var(--radius); font-weight: 600; margin-top: .5rem; display: none; }
.form-msg.success { background: #d4edda; color: #155724; display: block; }
.form-msg.error   { background: #f8d7da; color: #721c24; display: block; }

/* ── Chat Widget ── */
.chat-widget { position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 9999; display: flex; flex-direction: column-reverse; align-items: flex-end; gap: .5rem; }
.chat-toggle { background: var(--navy); color: var(--white); border: none; border-radius: 50px; padding: .7rem 1.2rem; cursor: pointer; display: flex; align-items: center; gap: .5rem; font-size: .9rem; font-weight: 600; box-shadow: var(--shadow-lg); font-family: inherit; }
.chat-toggle:hover { background: var(--navy-light); }
.chat-box { display: none; background: var(--white); border: 1px solid var(--gray-300); border-radius: var(--radius); box-shadow: var(--shadow-lg); width: 320px; flex-direction: column; overflow: hidden; max-height: 420px; }
.chat-box.is-open { display: flex; }
.chat-header { background: var(--navy); color: var(--white); padding: .75rem 1rem; display: flex; justify-content: space-between; align-items: center; font-weight: 600; font-size: .9rem; }
.chat-header button { background: none; border: none; color: var(--white); font-size: 1.2rem; cursor: pointer; line-height: 1; }
.chat-messages { flex: 1; overflow-y: auto; padding: 1rem; display: flex; flex-direction: column; gap: .5rem; }
.chat-msg { padding: .6rem .9rem; border-radius: var(--radius); font-size: .9rem; max-width: 85%; }
.chat-msg--bot { background: var(--gray-100); color: var(--text); align-self: flex-start; }
.chat-msg--user { background: var(--navy); color: var(--white); align-self: flex-end; }
.chat-input-row { display: flex; border-top: 1px solid var(--gray-200); }
.chat-input-row input { flex: 1; border: none; padding: .7rem; font-size: .9rem; font-family: inherit; outline: none; }
.chat-input-row button { background: var(--orange); color: var(--white); border: none; padding: .7rem 1rem; cursor: pointer; font-weight: 600; font-family: inherit; }
.chat-input-row button:hover { background: var(--orange-dark); }

/* ── Footer ── */
.site-footer { background: var(--navy); color: rgba(255,255,255,.8); padding: 3rem 0 1.5rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2rem; margin-bottom: 2rem; }
.footer-col h3 { color: var(--white); font-size: .9rem; text-transform: uppercase; letter-spacing: .06em; margin-bottom: .75rem; }
.footer-col ul { display: flex; flex-direction: column; gap: .4rem; }
.footer-col a { color: rgba(255,255,255,.7); font-size: .9rem; }
.footer-col a:hover { color: var(--white); }
.footer-tagline { font-size: .9rem; margin-top: .5rem; opacity: .7; }
.footer-logo-link img { filter: brightness(0) invert(1); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-top: 1.25rem; font-size: .82rem; opacity: .6; }
.footer-bottom a { color: rgba(255,255,255,.7); }
.footer-disclaimer { margin-top: .25rem; font-size: .78rem; }

/* ── Responsive ── */
@media (max-width: 900px) {
    .content-with-sidebar { grid-template-columns: 1fr; }
    .content-sidebar { display: none; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .nav-toggle { display: flex; }
    .main-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--navy-light); padding: 1rem; }
    .main-nav.open { display: block; }
    .main-nav ul { flex-direction: column; gap: 0; }
    .main-nav li a { display: block; padding: .75rem 1rem; border-bottom: 1px solid rgba(255,255,255,.08); }
    .form-row-2 { grid-template-columns: 1fr; }
    .hero { padding: 2.5rem 0 2rem; }
}

@media (max-width: 540px) {
    .footer-grid { grid-template-columns: 1fr; }
    .chat-box { width: calc(100vw - 3rem); }
    .card-grid { grid-template-columns: 1fr; }
    .states-grid { grid-template-columns: repeat(2, 1fr); }
}
