/* ============================================
   Prospect Site — Professional Corporate Theme
   Navy / Gold Color Scheme
   ============================================ */

/* --- Variables --- */
:root {
    --primary: #1a365d;
    --primary-dark: #0f2942;
    --secondary: #d4a520;
    --secondary-light: #f0d78c;
    --text: #2d3748;
    --text-light: #718096;
    --bg: #f7fafc;
    --bg-dark: #edf2f7;
    --white: #ffffff;
    --border: #e2e8f0;
    --success: #38a169;
    --radius: 8px;
    --shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1);
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--secondary);
}

h1, h2, h3, h4, h5, h6 {
    color: var(--primary);
    line-height: 1.25;
    margin-bottom: 0.5em;
}

h1 { font-size: 2.5rem; font-weight: 800; }
h2 { font-size: 2rem; font-weight: 700; }
h3 { font-size: 1.5rem; font-weight: 600; }
h4 { font-size: 1.25rem; font-weight: 600; }

p {
    margin-bottom: 1rem;
}

/* --- Container --- */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ============================================
   Header / Navigation
   ============================================ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--primary-dark);
    box-shadow: var(--shadow);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
    height: 70px;
}

.logo {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--white);
    letter-spacing: -0.02em;
}

.logo span {
    color: var(--secondary);
}

.nav-links {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 2rem;
}

.nav-links a,
.nav-list a,
.main-nav a {
    color: rgba(255,255,255,0.85);
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

.nav-links a:hover,
.nav-list a:hover,
.main-nav a:hover {
    color: var(--white);
}

.nav-cta {
    background: var(--secondary);
    color: var(--primary-dark) !important;
    padding: 0.55rem 1.25rem;
    border-radius: var(--radius);
    font-weight: 600;
    transition: background 0.2s ease, transform 0.2s ease;
}

.nav-cta:hover {
    background: var(--secondary-light);
    transform: translateY(-1px);
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ============================================
   Hero
   ============================================ */
.hero {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    color: var(--white);
    padding: 5rem 0;
    text-align: center;
}

.hero h1 {
    color: var(--white);
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255,255,255,0.85);
    max-width: 650px;
    margin: 0 auto 2rem;
}

.hero-compact {
    padding: 3.5rem 0;
}

.hero-ctas {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
}

/* ============================================
   Buttons
   ============================================ */
.btn {
    display: inline-block;
    padding: 0.7rem 1.5rem;
    border-radius: var(--radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s ease;
    text-align: center;
}

.btn-primary {
    background: var(--secondary);
    color: var(--primary-dark);
    border-color: var(--secondary);
}

.btn-primary:hover {
    background: var(--secondary-light);
    border-color: var(--secondary-light);
    color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-secondary {
    background: transparent;
    color: var(--primary);
    border-color: var(--primary);
}

.btn-secondary:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
}

.hero .btn-secondary {
    color: var(--white);
    border-color: rgba(255,255,255,0.5);
}

.hero .btn-secondary:hover {
    background: rgba(255,255,255,0.15);
    border-color: var(--white);
    color: var(--white);
}

.btn-lg {
    padding: 0.9rem 2rem;
    font-size: 1.1rem;
}

/* ============================================
   Sections
   ============================================ */
.section {
    padding: 4.5rem 0;
}

.section-light {
    background: var(--bg);
}

.section-dark {
    background: var(--bg-dark);
}

.section-cta {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    text-align: center;
    padding: 4rem 0;
}

.section-cta h2,
.section-cta h3 {
    color: var(--white);
}

.section-cta p {
    color: rgba(255,255,255,0.85);
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3rem;
}

.section-header p {
    color: var(--text-light);
    font-size: 1.1rem;
}

/* ============================================
   Steps (3-column)
   ============================================ */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    margin-top: 2rem;
}

.step {
    text-align: center;
    padding: 1.5rem;
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--secondary);
    color: var(--primary-dark);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
}

.step h3 {
    font-size: 1.15rem;
    margin-bottom: 0.75rem;
}

.step p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* ============================================
   Cards
   ============================================ */
.card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 2rem;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

/* ============================================
   Checklist
   ============================================ */
.checklist {
    list-style: none;
    padding: 0;
}

.checklist li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 0.85rem;
    line-height: 1.5;
}

.checklist li::before {
    content: "\2713";
    position: absolute;
    left: 0;
    color: var(--success);
    font-weight: 700;
    font-size: 1.1rem;
}

/* ============================================
   Testimonials / Quotes
   ============================================ */
.testimonial-card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 2rem;
    border-left: 4px solid var(--secondary);
}

.testimonial-card blockquote {
    font-style: italic;
    font-size: 1.05rem;
    color: var(--text);
    margin-bottom: 1rem;
    line-height: 1.7;
}

.testimonial-card blockquote::before {
    content: "\201C";
    font-size: 2rem;
    color: var(--secondary);
    line-height: 0;
    vertical-align: -0.5rem;
    margin-right: 0.15rem;
}

.testimonial-author {
    font-weight: 600;
    color: var(--primary);
    font-size: 0.95rem;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

/* ============================================
   Calculator Card
   ============================================ */
.calculator-card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 3rem;
    max-width: 700px;
    margin: 0 auto;
}

.calculator-title {
    text-align: center;
    margin-bottom: 0.5rem;
}

.calculator-intro {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 2rem;
}

.calculator-input-group {
    margin-bottom: 2rem;
}

.calculator-input-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--primary);
}

.calculator-input {
    width: 100%;
    padding: 0.85rem 1rem;
    font-size: 1.1rem;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    transition: border-color 0.2s ease;
    outline: none;
}

.calculator-input:focus {
    border-color: var(--secondary);
}

.input-note {
    display: block;
    margin-top: 0.4rem;
    font-size: 0.85rem;
    color: var(--text-light);
}

/* Savings Results */
.savings-results {
    margin: 2rem 0;
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.savings-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.savings-item {
    text-align: center;
    padding: 1.5rem 1rem;
    background: var(--bg);
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.savings-item-primary {
    background: var(--primary);
    border-color: var(--primary);
}

.savings-item-primary .savings-label {
    color: rgba(255,255,255,0.85);
}

.savings-item-primary .savings-value {
    color: var(--secondary-light);
}

.savings-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.savings-value {
    display: block;
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--primary);
}

.minimum-message {
    background: var(--bg-dark);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem;
    text-align: center;
    margin: 1.5rem 0;
}

.minimum-message p {
    margin: 0;
    color: var(--text-light);
}

.calculator-disclaimer {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

.calculator-disclaimer p {
    font-size: 0.8rem;
    color: var(--text-light);
    line-height: 1.6;
    margin: 0;
}

/* Calculator CTA */
.calculator-cta {
    text-align: center;
    margin-top: 3rem;
}

.calculator-cta h3 {
    margin-bottom: 1.5rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ============================================
   Calendar Embed
   ============================================ */
.calendar-section {
    text-align: center;
    padding: 4rem 0;
}

.calendar-embed {
    max-width: 700px;
    margin: 2rem auto 0;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px dashed var(--border);
}

.calendar-placeholder {
    color: var(--text-light);
    font-size: 1rem;
    padding: 2rem;
}

/* ============================================
   FAQ Accordion
   ============================================ */
.faq-list {
    max-width: 750px;
    margin: 0 auto;
}

.faq-item {
    background: var(--white);
    border-radius: var(--radius);
    margin-bottom: 0.75rem;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 1.25rem 1.5rem;
    background: none;
    border: none;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--primary);
    cursor: pointer;
    text-align: left;
    transition: background 0.2s ease;
}

.faq-question:hover {
    background: var(--bg);
}

.faq-question::after {
    content: "+";
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--secondary);
    transition: transform 0.3s ease;
    flex-shrink: 0;
    margin-left: 1rem;
}

.faq-item.active .faq-question::after {
    content: "\2212";
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.35s ease;
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

.faq-answer-inner {
    padding: 0 1.5rem 1.25rem;
    color: var(--text);
    line-height: 1.7;
}

/* ============================================
   Footer
   ============================================ */
.site-footer {
    background: var(--primary-dark);
    color: rgba(255,255,255,0.7);
    padding: 3rem 0 1.5rem;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 2rem;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.footer-brand {
    max-width: 350px;
}

.footer-brand .logo {
    margin-bottom: 0.75rem;
    display: inline-block;
}

.footer-brand p {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.55);
    line-height: 1.6;
}

.footer-links {
    display: flex;
    gap: 3rem;
}

.footer-col h4 {
    color: var(--white);
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    margin-bottom: 0.4rem;
}

.footer-col a, .footer-nav a {
    color: #ffffff;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}
.footer-col a:hover, .footer-nav a:hover { color: var(--secondary); }
.footer-col li, .footer-nav li { list-style: none; }
.footer-nav { text-align: center; }
.footer-nav ul { padding: 0; margin: 0; display: flex; gap: 1.5rem; justify-content: center; flex-wrap: wrap; list-style: none; }

.footer-col a:hover {
    color: var(--secondary-light);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-top: 2rem;
    padding-top: 1.5rem;
    text-align: center;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.footer-disclaimer {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.4);
    line-height: 1.6;
    max-width: 700px;
    margin: 0 auto 0.75rem;
}

.footer-copyright {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.4);
}

/* --- Content Protection --- */
.hero, .prose, .case-study-content, .q-headline, .q-sub, .q-pain-card, .q-results-preview,
.testimonial-card blockquote, h1, h2, h3 {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}
/* Allow selection in form inputs */
input, textarea, select { -webkit-user-select: text; user-select: text; }

/* ============================================
   Responsive — 768px Breakpoint
   ============================================ */
@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.25rem; }

    .hero {
        padding: 3rem 0;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .hero-subtitle {
        font-size: 1.05rem;
    }

    /* Mobile nav */
    .hamburger {
        display: flex;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        flex-direction: column;
        background: var(--primary-dark);
        padding: 1.5rem;
        gap: 0;
        box-shadow: var(--shadow-lg);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        width: 100%;
    }

    .nav-links a {
        display: block;
        padding: 0.85rem 0;
        border-bottom: 1px solid rgba(255,255,255,0.08);
    }

    .nav-cta {
        display: block;
        text-align: center;
        margin-top: 0.5rem;
    }

    /* Stacked layouts */
    .steps-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .cards-grid {
        grid-template-columns: 1fr;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .savings-grid {
        grid-template-columns: 1fr;
    }

    .calculator-card {
        padding: 2rem 1.5rem;
    }

    .savings-value {
        font-size: 1.5rem;
    }

    .hero-ctas,
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .hero-ctas .btn,
    .cta-buttons .btn {
        width: 100%;
        max-width: 320px;
    }

    /* Footer */
    .footer-inner {
        flex-direction: column;
    }

    .footer-links {
        flex-direction: column;
        gap: 1.5rem;
    }

    .section {
        padding: 3rem 0;
    }
}

/* ============================================
   THEME TOGGLE BUTTON
   Floating bottom-right, always visible on every page that loads main.js.
   Injected via JS (initThemeToggle in main.js), no markup needed in pages.
   ============================================ */
.theme-toggle {
    position: fixed;
    bottom: 1.25rem;
    right: 1.25rem;
    z-index: 9999;
    background: var(--white);
    color: var(--primary-dark);
    border: 1px solid var(--border);
    box-shadow: 0 4px 14px rgba(0,0,0,0.18);
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease;
}
.theme-toggle:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.25);
}
.theme-toggle svg {
    width: 20px;
    height: 20px;
    pointer-events: none;
}
.theme-toggle .icon-sun  { display: block; }   /* default (dark theme) shows sun = "click to go light" */
.theme-toggle .icon-moon { display: none; }
@media (max-width: 480px) {
    .theme-toggle { bottom: 0.85rem; right: 0.85rem; width: 42px; height: 42px; }
}

/* Calc picker — moved out of inline styles so theme can flip it */
.calc-picker-row {
    text-align: center;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}
.calc-picker-row label {
    color: rgba(255,255,255,0.5);
    font-size: 0.8rem;
    margin-right: 0.5rem;
}
.calc-picker-row select {
    background: var(--primary-dark);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 6px;
    padding: 0.4rem 0.75rem;
    font-size: 0.85rem;
    font-family: inherit;
    cursor: pointer;
}

/* ============================================
   LIGHT THEME OVERRIDES
   Activated by <html data-theme="light">.
   Default (no attribute) = dark navy theme = unchanged from before.
   ============================================ */

/* Header */
html[data-theme="light"] .site-header {
    background: var(--white);
    border-bottom: 1px solid var(--border);
}
html[data-theme="light"] .logo,
html[data-theme="light"] .logo .logo-text {
    color: var(--primary);
}
html[data-theme="light"] .logo span {
    color: var(--secondary);
}
html[data-theme="light"] .nav-links a,
html[data-theme="light"] .main-nav a {
    color: var(--text);
}
html[data-theme="light"] .nav-links a:hover,
html[data-theme="light"] .main-nav a:hover {
    color: var(--primary);
}
html[data-theme="light"] .hamburger span,
html[data-theme="light"] .hamburger-bar {
    background: var(--primary);
}
html[data-theme="light"] .nav-cta {
    color: var(--primary-dark) !important;
}

/* Hero */
html[data-theme="light"] .hero {
    background: linear-gradient(135deg, var(--white) 0%, var(--bg-dark) 100%);
    color: var(--primary);
}
html[data-theme="light"] .hero h1 {
    color: var(--primary);
}
html[data-theme="light"] .hero-subtitle {
    color: var(--text);
}
html[data-theme="light"] .hero .btn-secondary {
    color: var(--primary);
    border-color: var(--primary);
}
html[data-theme="light"] .hero .btn-secondary:hover {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

/* CTA section (line ~289 — second navy gradient) */
html[data-theme="light"] .section-cta,
html[data-theme="light"] .cta-section,
html[data-theme="light"] section[style*="primary-dark"] {
    background: linear-gradient(135deg, var(--bg) 0%, var(--bg-dark) 100%) !important;
    color: var(--primary) !important;
}

/* Footer */
html[data-theme="light"] .site-footer {
    background: var(--bg-dark);
    color: var(--text);
}
html[data-theme="light"] .footer-col h4 {
    color: var(--primary);
}
html[data-theme="light"] .footer-col a,
html[data-theme="light"] .footer-nav a {
    color: var(--primary);
}
html[data-theme="light"] .footer-col a:hover,
html[data-theme="light"] .footer-nav a:hover {
    color: var(--secondary);
}
html[data-theme="light"] .footer-brand p {
    color: var(--text-light);
}
html[data-theme="light"] .footer-bottom {
    border-top-color: var(--border);
}
html[data-theme="light"] .footer-disclaimer,
html[data-theme="light"] .footer-copyright {
    color: var(--text-light);
}
html[data-theme="light"] .footer-copyright p {
    color: var(--text-light) !important;
}

/* Calc picker */
html[data-theme="light"] .calc-picker-row {
    border-top-color: var(--border);
}
html[data-theme="light"] .calc-picker-row label {
    color: var(--text-light);
}
html[data-theme="light"] .calc-picker-row select {
    background: var(--white);
    color: var(--text);
    border-color: var(--border);
}

/* index.php inline-style overrides for light theme
   (these elements use hardcoded white text in index.php's <style> block) */
html[data-theme="light"] .hero-qualify {
    background: rgba(15, 23, 42, 0.03);
    border-color: rgba(15, 23, 42, 0.1);
}
html[data-theme="light"] .hero-qualify-prompt {
    color: var(--primary-dark);
}
html[data-theme="light"] .hero-pain-card {
    background: var(--white);
    border-color: rgba(212, 165, 32, 0.5);
    color: var(--text);
}
html[data-theme="light"] .hero-pain-card:hover {
    background: rgba(212, 165, 32, 0.08);
    border-color: rgba(212, 165, 32, 0.9);
    color: var(--text);
}
html[data-theme="light"] .hero-pain-card strong {
    color: var(--primary-dark);
}
html[data-theme="light"] .hero-pain-card > span:nth-child(3) {
    color: var(--text-light);
}
html[data-theme="light"] .hero-pain-card:hover > span:nth-child(3) {
    color: var(--text);
}
html[data-theme="light"] .hero-qualify-note {
    color: var(--text-light);
}
html[data-theme="light"] .hero .subtitle {
    color: var(--text);
}

/* Theme toggle button — flips look in light theme */
html[data-theme="light"] .theme-toggle {
    background: var(--primary-dark);
    color: var(--white);
    border-color: var(--primary-dark);
}
html[data-theme="light"] .theme-toggle .icon-sun  { display: none; }
html[data-theme="light"] .theme-toggle .icon-moon { display: block; }
