:root {
    --brand-navy: #1B1E3F;
    --brand-green: #2E5C32;
    --text-color: #333333;
    --bg-color: #ffffff;
    --gray-text: #666666;
    --light-gray: #f4f4f4;
    --cta-red: #D32F2F;
    --cta-orange: #C2410C;
    --footer-text: #999999;
    --meta-gray: #888888;
}

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

body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.6;
}

.hidden {
    display: none !important;
}

/* Navigation */
nav {
    background-color: var(--bg-color);
    border-bottom: 1px solid var(--light-gray);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand-logo {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    line-height: 1;
}

.logo-top {
    font-size: 0.6rem;
    font-weight: 700;
    color: var(--brand-green);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.logo-bottom {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    font-weight: 900;
    color: var(--brand-navy);
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    color: var(--brand-navy);
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--brand-green);
}


/* Hero Section */
.hero {
    padding: 100px 20px;
    text-align: center;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('hero-bg.jpg');
    background-size: cover;
    background-position: center;
    color: white;
}

.hero-container {
    max-width: 800px;
    margin: 0 auto;
}

h1 {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    color: #ffffff;
    line-height: 1.1;
    margin-bottom: 20px;
}

.hero-sub {
    font-size: 1.2rem;
    color: #f1f5f9;
    margin-bottom: 40px;
}

/* Quiz Placeholder */
.quiz-card {
    background-color: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 3px solid var(--brand-green);
}

.quiz-card p {
    color: var(--gray-text);
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.quiz-title {
    color: var(--brand-navy);
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.start-quiz-btn {
    display: inline-block;
    background-color: var(--brand-green);
    color: white;
    text-decoration: none;
    padding: 18px 40px;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 6px;
    transition: background-color 0.2s;
    margin-top: 10px;
}

.start-quiz-btn:hover {
    background-color: #1e3d21;
}

/* Global Navigation Links */
.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-links a,
.nav-links .dropdown-toggle {
    text-decoration: none;
    color: var(--brand-navy);
    font-weight: 700;
    font-size: 0.9rem;
    transition: color 0.2s;
    cursor: pointer;
}

.nav-links a:hover,
.nav-links .dropdown-toggle:hover {
    color: var(--brand-green);
}

/* Dropdown Menu */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    min-width: 220px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    padding: 10px 0;
    z-index: 1000;
    border: 1px solid #e2e8f0;
    margin-top: 10px;
}

.dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-menu a {
    display: block;
    padding: 12px 20px;
    color: var(--brand-navy) !important;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.2s;
}

.dropdown-menu a:hover {
    background: #f8fafc;
    color: var(--brand-green) !important;
    padding-left: 25px;
}

.ai-consultant-section {
    background-color: #f0f4f8;
    padding: 60px 20px;
    margin: 40px auto;
    max-width: 1100px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 40px;
    border: 1px solid #d1d9e6;
}

.ai-spec-content {
    flex: 1;
}

.ai-spec-content h2 {
    font-family: 'Playfair Display', serif;
    color: var(--brand-navy);
    font-size: 2rem;
    margin-bottom: 15px;
}

.ai-badge {
    display: inline-block;
    background: var(--brand-green);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 4px;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.ai-status {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--brand-green);
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.status-dot {
    width: 10px;
    height: 10px;
    background-color: #4CAF50;
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(76, 175, 80, 0.6);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(0.95);
        opacity: 0.7;
    }

    50% {
        transform: scale(1.05);
        opacity: 1;
    }

    100% {
        transform: scale(0.95);
        opacity: 0.7;
    }
}

.consultation-btn {
    display: inline-block;
    background-color: var(--brand-navy);
    color: white;
    text-decoration: none;
    padding: 15px 30px;
    font-weight: 700;
    border-radius: 6px;
    transition: background-color 0.2s;
}

.consultation-btn:hover {
    background-color: #2a2e5c;
}

.ai-spec-visual {
    flex: 0 0 300px;
    text-align: center;
}

.ai-avatar-circle {
    width: 200px;
    height: 200px;
    background: white;
    border-radius: 50%;
    margin: 0 auto;
    border: 4px solid var(--brand-green);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: var(--brand-navy);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

/* Chat Portal Styles */
.chat-container {
    max-width: 800px;
    margin: 40px auto;
    background: white;
    border: 1px solid #d1d9e6;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.chat-header {
    background: var(--brand-navy);
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-box {
    height: 500px;
    overflow-y: auto;
    padding: 20px;
    background: #fcfcfc;
}

.chat-bubble {
    max-width: 80%;
    margin-bottom: 20px;
    padding: 15px;
    border-radius: 8px;
    font-size: 0.95rem;
}

.chat-bubble.ai {
    background: white;
    border: 1px solid #eee;
    margin-right: auto;
}

.chat-bubble.user {
    background: #e3f2fd;
    margin-left: auto;
    color: var(--brand-navy);
}

.chat-input-area {
    border-top: 1px solid #eee;
    padding: 20px;
    display: flex;
    gap: 10px;
}

.chat-input {
    flex: 1;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    outline: none;
}

.chat-send-btn {
    background: var(--brand-green);
    color: white;
    border: none;
    padding: 0 20px;
    border-radius: 4px;
    font-weight: 700;
    cursor: pointer;
}

/* Analyzer Tool Styles */
.analyzer-container {
    max-width: 800px;
    margin: 40px auto;
    background: white;
    padding: 40px;
    border-radius: 12px;
    border: 1px solid #d1d9e6;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
}

.step-header {
    margin-bottom: 30px;
    border-bottom: 2px solid var(--light-gray);
    padding-bottom: 20px;
}

.step-indicator {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--brand-green);
    text-transform: uppercase;
    display: block;
    margin-bottom: 10px;
}

.option-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 30px;
}

.input-option {
    border: 2px solid #eee;
    padding: 30px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
}

.input-option:hover {
    border-color: var(--brand-green);
    background: #fcfdfc;
}

.input-option i {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 15px;
}

.dropzone {
    border: 2px dashed #d1d9e6;
    padding: 40px;
    text-align: center;
    border-radius: 12px;
    background: #fbfcfe;
    margin-top: 20px;
}

.analysis-ui {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 0;
}

.spinner-circle {
    width: 80px;
    height: 80px;
    border: 6px solid #f3f3f3;
    border-top: 6px solid var(--brand-green);
    border-radius: 50%;
    animation: rotate-spinner 1.5s linear infinite;
    margin-bottom: 30px;
}

@keyframes rotate-spinner {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

#analysis-status-text {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--brand-navy);
    margin-bottom: 15px;
}

#analysis-sub-status {
    font-size: 0.95rem;
    color: var(--gray-text);
}

.results-tag {
    background: #FFE082;
    color: #5D4037;
    padding: 5px 12px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.8rem;
    display: inline-block;
    margin-bottom: 15px;
}

.results-cta {
    background: var(--cta-red);
    color: white;
    padding: 20px 40px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.2rem;
    border-radius: 6px;
    display: inline-block;
    margin-top: 30px;
}

/* Content Sections */
.sections-container {
    max-width: 1100px;
    margin: 60px auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.content-card {
    border-bottom: 1px solid var(--light-gray);
    padding-bottom: 20px;
}

.card-tag {
    color: var(--brand-green);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 10px;
    display: block;
}

.card-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    color: var(--brand-navy);
    text-decoration: none;
    display: block;
    margin-bottom: 10px;
    transition: color 0.2s;
}

.card-title:hover {
    color: var(--brand-green);
}

/* Footer */
footer {
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    padding: 60px 20px;
    margin-top: 100px;
    text-align: center;
}

.footer-logo {
    margin-bottom: 30px;
    display: inline-block;
}

.footer-logo .brand-logo {
    align-items: center;
    transform: scale(1.2);
}

.footer-links {
    margin-bottom: 20px;
}

.footer-links a {
    color: var(--footer-text);
    text-decoration: none;
    font-size: 0.9rem;
    margin: 0 15px;
}

.copyright {
    color: var(--footer-text);
    font-size: 0.8rem;
}


/* Consultation Voice & Choice - Senior Focused */
.choice-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 40px;
}

.consult-card {
    background: white;
    border: 3px solid #e2e8f0;
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background-color: #ffffff;
}

.consult-card:hover {
    border-color: var(--brand-green);
    background-color: #f0fdf4;
    box-shadow: 0 0 25px rgba(46, 92, 50, 0.2);
    transform: translateY(-8px);
}

.consult-icon {
    font-size: 5rem;
    margin-bottom: 25px;
    display: block;
}

.consult-card h3 {
    font-family: 'Playfair Display', serif;
    color: var(--brand-navy);
    font-size: 2rem;
    margin: 15px 0;
}

.consult-card p {
    font-size: 1.1rem;
    color: var(--gray-text);
    margin-bottom: 25px;
}

.choice-btn {
    display: inline-block;
    width: 80%;
    margin: 25px auto 0;
    padding: 18px;
    background: var(--brand-navy);
    color: white;
    border-radius: 8px;
    font-weight: 800;
    font-size: 1.1rem;
    text-transform: uppercase;
    transition: all 0.2s;
    border: 2px solid transparent;
}

.email-input-field {
    width: 100%;
    padding: 15px;
    font-size: 1.1rem;
    border: 2px solid #cbd5e1;
    border-radius: 8px;
    margin: 20px 0;
    outline: none;
    transition: border-color 0.2s;
}

.email-input-field:focus {
    border-color: var(--brand-green);
}

.portal-header {
    text-align: center;
    margin-bottom: 40px;
}

.portal-brand-logo {
    display: inline-flex;
    flex-direction: column;
    text-decoration: none;
    line-height: 1;
    margin-bottom: 20px;
    transform: scale(1.5);
}

.email-capture-card {
    background: white;
    border: 3px solid #e2e8f0;
    border-radius: 20px;
    padding: 60px 40px;
    max-width: 500px;
    margin: 0 auto;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.05);
}

.confirm-btn {
    background: var(--brand-green) !important;
    width: 100%;
    padding: 20px;
    font-size: 1.2rem;
    font-weight: 900;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    text-transform: uppercase;
    transition: background 0.2s;
}

.confirm-btn:hover {
    background: #1e3d21 !important;
}

.consult-card:hover .choice-btn {
    background: var(--brand-green);
    box-shadow: 0 4px 15px rgba(46, 92, 50, 0.3);
}

/* Calendar Appointment Interface */
.calendar-widget {
    background: white;
    border: 2px solid #cbd5e1;
    border-radius: 12px;
    margin-top: 30px;
    padding-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.calendar-month {
    background: var(--brand-navy);
    color: white;
    padding: 20px;
    font-size: 1.3rem;
    font-weight: 800;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    padding: 15px;
    gap: 8px;
}

.cal-day {
    padding: 15px 0;
    text-align: center;
    font-size: 1.1rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
}

.cal-day.header {
    font-weight: 800;
    color: #475569;
    cursor: default;
    background: #f1f5f9;
}

.cal-day.active {
    background: #e2e8f0;
    color: var(--brand-navy);
}

.cal-day.active:hover {
    background: var(--brand-green);
}

/* MOBILE OPTIMIZATIONS */
@media (max-width: 768px) {

    /* 1. Navigation Stack */
    .nav-container {
        flex-direction: column;
        padding: 15px 20px;
    }

    .brand-logo {
        margin-bottom: 20px;
    }

    .nav-links {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        /* Allow wrapping if needed */
        gap: 15px;
    }

    .nav-links a {
        font-size: 0.9rem;
    }

    /* 2. Research Specialist Section */
    .ai-consultant-section {
        flex-direction: column;
        padding: 40px 20px;
        gap: 30px;
        text-align: center;
        margin: 20px;
    }

    .ai-spec-visual {
        flex: auto;
        /* Reset flex sizing */
    }

    .ai-spec-content h2 {
        font-size: 1.8rem;
    }

    /* 3. Consultation Choice Cards */
    .choice-container {
        grid-template-columns: 1fr;
        /* Stack vertically */
        gap: 30px;
    }

    .consult-card {
        width: 100%;
        max-width: 100%;
        /* Use full width available */
        margin: 0 auto;
    }

    #choice-screen {
        padding: 40px 20px !important;
    }

    #choice-screen h1 {
        font-size: 2.2rem !important;
    }

    /* 4. Article Page Adjustments */
    .shop-header {
        text-align: center !important;
        padding: 0 20px;
    }

    .shop-header h1 {
        font-size: 2.5rem;
    }

    .shop-header p {
        font-size: 1rem;
        max-width: 100%;
        margin: 0 auto;
    }

    .content-card {
        text-align: center;
    }

    .shop-container {
        padding: 0 20px;
    }
}

/* Email Capture Micro-interactions */
.email-capture-box {
    display: flex;
    gap: 15px;
    max-width: 700px;
    margin: 0 auto;
}

.capture-input {
    flex: 1;
    padding: 20px;
    border: 2px solid #cbd5e1;
    border-radius: 8px;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.capture-input:focus {
    border-color: var(--brand-green);
    box-shadow: 0 0 0 4px rgba(46, 92, 50, 0.1);
    outline: none;
}

.capture-btn {
    background: var(--brand-green);
    color: white;
    border: none;
    padding: 0 40px;
    border-radius: 8px;
    font-weight: 800;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.capture-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(46, 92, 50, 0.25);
    background-color: #244928;
}

.capture-btn:active {
    transform: translateY(-1px);
    box-shadow: 0 5px 10px rgba(46, 92, 50, 0.2);
}

/* Article Card Bleed Style */
.bleed-card {
    text-align: left;
    padding: 0;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: white;
    overflow: hidden;
}

.bleed-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    margin-bottom: 0;
    display: block;
}

.bleed-card-content {
    padding: 30px;
}