/* ========================================
   FORT WAYNE NEUROFEEDBACK — MOBILE DESIGN SYSTEM
   Mobile-first Bootstrap 5.3 Enhancement
   ======================================== */

/* ---------- Google Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Playfair+Display:wght@500;600;700;800&display=swap');

/* ---------- Design Tokens ---------- */
:root {
    /* Core palette - Serene Slate Blue (Pleasing, warm wellness theme) */
    --navy-900: #234a75;
    --navy-800: #325d8c;
    --navy-700: #4271a3;
    --navy-600: #5284ba;
    --navy-500: #6b9cd1;

    --teal-500: #00b4d8;
    --teal-400: #48cae4;
    --teal-300: #90e0ef;
    --teal-200: #caf0f8;
    --teal-100: #e8f8fd;

    --gold-500: #f4a261;
    --gold-400: #f7bc84;
    --gold-300: #fadcb8;

    --green-accent: #06d6a0;
    --red-accent: #ef476f;

    /* Neutrals */
    --white: #ffffff;
    --gray-50: #f8f9fa;
    --gray-100: #f0f2f5;
    --gray-200: #e2e6ea;
    --gray-300: #ced4da;
    --gray-400: #adb5bd;
    --gray-500: #6c757d;
    --gray-600: #495057;
    --gray-700: #343a40;
    --gray-800: #212529;

    /* Semantic */
    --text-primary: #1e293b; /* High contrast soothing slate for legibility */
    --text-secondary: #475569;
    --text-light: var(--gray-500);
    --bg-body: var(--white);
    --bg-section: var(--gray-50);

    /* Spacing */
    --section-py: 60px;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(13, 27, 42, .06);
    --shadow-md: 0 4px 16px rgba(13, 27, 42, .1);
    --shadow-lg: 0 8px 32px rgba(13, 27, 42, .12);
    --shadow-glow: 0 0 24px rgba(0, 180, 216, .2);

    /* Transition */
    --ease: cubic-bezier(.4, 0, .2, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text-primary);
    background: var(--bg-body);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 700;
    line-height: 1.25;
    color: var(--navy-900);
}

h1 { font-size: clamp(1.75rem, 5vw, 2.75rem); }
h2 { font-size: clamp(1.5rem, 4vw, 2.25rem); }
h3 { font-size: clamp(1.2rem, 3vw, 1.6rem); }

a { color: var(--teal-500); text-decoration: none; transition: color .25s var(--ease); }
a:hover { color: var(--teal-400); }

img { max-width: 100%; height: auto; }

/* ---------- Section Utilities ---------- */
.section-padding { padding: var(--section-py) 0; }
.bg-navy { background: var(--navy-900); color: var(--white); }
.bg-navy h1, .bg-navy h2, .bg-navy h3, .bg-navy h4,
.bg-navy p, .bg-navy li { color: var(--white); }
.bg-navy .text-muted { color: var(--gray-300) !important; }
.bg-section { background: var(--bg-section); }
.bg-teal-gradient {
    background: linear-gradient(135deg, var(--teal-500), var(--navy-700));
    color: var(--white);
}

.section-label {
    display: inline-block;
    font-family: 'Inter', sans-serif;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--teal-500);
    margin-bottom: 8px;
}

.section-divider {
    width: 60px;
    height: 3px;
    border: none;
    background: var(--teal-500);
    margin: 16px auto 0;
    border-radius: 2px;
}

/* ---------- Navbar ---------- */
.navbar-fw {
    background: rgba(35, 74, 117, .97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 10px 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1050;
    box-shadow: 0 2px 16px rgba(0,0,0,.15);
}

.navbar-fw .navbar-brand {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--white);
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.navbar-fw .navbar-brand .brand-sub {
    font-family: 'Inter', sans-serif;
    font-size: .6rem;
    font-weight: 400;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--teal-400);
    margin-top: 2px;
}

.navbar-fw .nav-link {
    color: var(--gray-300);
    font-family: 'Inter', sans-serif;
    font-size: .85rem;
    font-weight: 500;
    padding: 8px 14px;
    transition: color .25s var(--ease);
}

.navbar-fw .nav-link:hover,
.navbar-fw .nav-link.active {
    color: var(--teal-400);
}

.navbar-fw .navbar-toggler {
    border: 1px solid rgba(255,255,255,.2);
    padding: 6px 10px;
}

.navbar-fw .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255,255,255,0.8%29' stroke-linecap='round' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.navbar-fw .dropdown-menu {
    background: var(--navy-800);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: var(--radius-md);
}

.navbar-fw .dropdown-item {
    color: var(--gray-300);
    font-size: .85rem;
}

.navbar-fw .dropdown-item:hover {
    background: var(--navy-600);
    color: var(--teal-400);
}

body { padding-top: 70px; }

/* ---------- Hero ---------- */
.hero-section {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    background: var(--navy-900);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: .3;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(13,27,42,.7) 0%,
        rgba(13,27,42,.85) 60%,
        rgba(13,27,42,.95) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 40px 20px;
}

.hero-content h1 {
    color: var(--white);
    font-size: clamp(1.8rem, 6vw, 3.2rem);
    margin-bottom: 16px;
}

.hero-content h1 span.teal { color: var(--teal-400); }

.hero-content .lead {
    color: var(--gray-300);
    font-size: clamp(.95rem, 2.5vw, 1.15rem);
    max-width: 600px;
    margin: 0 auto 28px;
    line-height: 1.7;
}

/* ---------- Buttons ---------- */
.btn-teal {
    background: var(--teal-500);
    color: var(--white);
    border: none;
    padding: 14px 32px;
    border-radius: 50px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: .9rem;
    letter-spacing: .5px;
    transition: all .3s var(--ease);
    box-shadow: 0 4px 16px rgba(0, 180, 216, .25);
}

.btn-teal:hover {
    background: var(--teal-400);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(0, 180, 216, .35);
}

.btn-outline-teal {
    background: transparent;
    color: var(--teal-400);
    border: 2px solid var(--teal-400);
    padding: 12px 28px;
    border-radius: 50px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: .9rem;
    transition: all .3s var(--ease);
}

.btn-outline-teal:hover {
    background: var(--teal-500);
    color: var(--white);
    border-color: var(--teal-500);
}

.btn-gold {
    background: var(--gold-500);
    color: var(--navy-900);
    border: none;
    padding: 14px 32px;
    border-radius: 50px;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: .9rem;
    transition: all .3s var(--ease);
}

.btn-gold:hover {
    background: var(--gold-400);
    transform: translateY(-2px);
}

/* ---------- Feature Cards ---------- */
.feature-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 28px 24px;
    box-shadow: var(--shadow-sm);
    transition: all .35s var(--ease);
    border: 1px solid var(--gray-200);
    height: 100%;
}

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

.feature-card .icon-circle {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--teal-100);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    font-size: 1.5rem;
    color: var(--teal-500);
}

.feature-card h4 {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 1.05rem;
    margin-bottom: 10px;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: .9rem;
    margin: 0;
}

/* ---------- Condition Cards ---------- */
.condition-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all .35s var(--ease);
    border: 1px solid var(--gray-200);
    text-align: center;
    height: 100%;
}

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

.condition-card .condition-img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    background: var(--navy-800);
}

.condition-card .condition-body {
    padding: 20px 16px;
}

.condition-card h5 {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: .95rem;
    color: var(--navy-900);
    margin-bottom: 6px;
}

.condition-card p {
    color: var(--text-secondary);
    font-size: .82rem;
    margin: 0;
}

/* ---------- Step Cards ---------- */
.step-card {
    text-align: center;
    padding: 24px 16px;
}

.step-number {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--teal-500);
    color: var(--white);
    font-family: 'Inter', sans-serif;
    font-weight: 800;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.step-card h4 {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 1rem;
}

/* ---------- Brainwave Cards ---------- */
.brainwave-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    border-left: 4px solid var(--teal-500);
    margin-bottom: 20px;
}

.brainwave-card h4 {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 1.05rem;
    margin-bottom: 12px;
}

.brainwave-card .bw-tag {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: .72rem;
    font-weight: 600;
    margin-right: 4px;
    margin-bottom: 4px;
}

.bw-tag.too-much { background: #fbe9eb; color: var(--red-accent); }
.bw-tag.too-little { background: #fff3cd; color: #856404; }
.bw-tag.optimal { background: #d1ecf1; color: #0c5460; }

/* ---------- Blog Cards ---------- */
.blog-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all .35s var(--ease);
    border: 1px solid var(--gray-200);
    height: 100%;
}

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

.blog-card .blog-img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    background: var(--navy-700);
}

.blog-card .blog-body {
    padding: 20px;
}

.blog-card h5 {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: .95rem;
    color: var(--navy-900);
    margin-bottom: 8px;
    line-height: 1.4;
}

.blog-card p {
    color: var(--text-secondary);
    font-size: .82rem;
    line-height: 1.6;
}

.blog-card .read-more {
    font-size: .82rem;
    font-weight: 600;
    color: var(--teal-500);
}

/* ---------- CTA Strip ---------- */
.cta-strip {
    background: linear-gradient(135deg, var(--teal-500), var(--navy-700));
    padding: 48px 20px;
    text-align: center;
}

.cta-strip h2 { color: var(--white); margin-bottom: 12px; }
.cta-strip p { color: var(--teal-200); margin-bottom: 24px; }

/* ---------- Sticky Phone Bar ---------- */
.sticky-phone {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--teal-500);
    color: var(--white);
    text-align: center;
    padding: 12px;
    z-index: 1040;
    box-shadow: 0 -4px 16px rgba(0,0,0,.15);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 1rem;
}

.sticky-phone a {
    color: var(--white);
    text-decoration: none;
}

.sticky-phone i { font-size: 1.1rem; }

body { padding-bottom: 52px; }

@media (min-width: 768px) {
    .sticky-phone { display: none; }
    body { padding-bottom: 0; }
}

/* ---------- Footer ---------- */
.footer-fw {
    background: var(--navy-900);
    color: var(--gray-400);
    padding: 48px 0 24px;
}

.footer-fw h5 {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: .9rem;
    color: var(--white);
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-fw a { color: var(--gray-400); }
.footer-fw a:hover { color: var(--teal-400); }

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

.footer-fw .footer-links li { margin-bottom: 8px; }
.footer-fw .footer-links a { font-size: .85rem; }

.footer-brand {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--white);
    margin-bottom: 12px;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.1);
    margin-top: 32px;
    padding-top: 20px;
    text-align: center;
    font-size: .78rem;
}

.footer-disclaimer {
    font-size: .72rem;
    color: var(--gray-500);
    line-height: 1.6;
    margin-top: 16px;
}

/* ---------- Animations ---------- */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity .6s var(--ease), transform .6s var(--ease);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ---------- Form Styling ---------- */
.form-control, .form-select {
    border-radius: var(--radius-md);
    padding: 12px 16px;
    border: 1px solid var(--gray-200);
    font-size: .9rem;
    transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}

.form-control:focus, .form-select:focus {
    border-color: var(--teal-500);
    box-shadow: 0 0 0 3px rgba(0, 180, 216, .15);
}

.form-label {
    font-weight: 600;
    font-size: .82rem;
    color: var(--navy-700);
}

/* ---------- Accordion (FAQ / Conditions) ---------- */
.accordion-fw .accordion-item {
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md) !important;
    margin-bottom: 10px;
    overflow: hidden;
}

.accordion-fw .accordion-button {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: .95rem;
    color: var(--navy-900);
    background: var(--white);
    padding: 16px 20px;
}

.accordion-fw .accordion-button:not(.collapsed) {
    background: var(--teal-100);
    color: var(--navy-900);
    box-shadow: none;
}

.accordion-fw .accordion-button::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%2300b4d8'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

.accordion-fw .accordion-body {
    font-size: .9rem;
    color: var(--text-secondary);
    padding: 16px 20px;
    line-height: 1.8;
}

/* ---------- Page Header (Hero-style) ---------- */
.page-header {
    position: relative;
    background: linear-gradient(135deg, #2d4a6f, #3a7ca5);
    padding: 72px 0 60px;
    text-align: center;
    overflow: hidden;
    min-height: 260px;
    display: flex;
    align-items: center;
}

.page-header .page-hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: .6;
}

.page-header .page-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(13,27,42,.45) 0%, rgba(13,27,42,.65) 100%);
}

.page-header .container { position: relative; z-index: 2; }

.page-header .section-label { color: var(--teal-300); }
.page-header h1 { color: var(--white); margin-bottom: 10px; }
.page-header p { color: var(--gray-200); max-width: 600px; margin: 0 auto; }

/* ---------- Office Hours Table ---------- */
.hours-table td {
    padding: 8px 16px;
    font-size: .9rem;
    border-bottom: 1px solid var(--gray-100);
}

.hours-table td:first-child { font-weight: 600; }

/* ---------- Responsive Tweaks ---------- */
@media (max-width: 575.98px) {
    .hero-section { min-height: 70vh; }
    .section-padding { padding: 40px 0; }
    .feature-card { padding: 22px 18px; }
}

@media (min-width: 992px) {
    :root { --section-py: 80px; }
}
