/* ==========================================================================
   FIGroots Clinical Theme & Design System
   ========================================================================== */

/* Design Tokens & Theme Variables */
:root {
    /* Color Palette - Accessible Medical Teal + Health Organic Green */
    --color-primary: #0891b2;       /* Slate Teal-600 */
    --color-primary-dark: #0e7490;  /* Slate Teal-700 */
    --color-primary-light: #22d3ee; /* Slate Teal-400 */
    --color-primary-muted: rgba(8, 145, 178, 0.08);
    --color-accent: #22c55e;        /* Health Green-500 */
    --color-accent-hover: #16a34a;  /* Health Green-600 */
    --color-bg-base: #f0fdfa;       /* Light Sage Cream - Teal-50 */
    --color-bg-card: #ffffff;
    --color-text-main: #1e293b;     /* Dark Slate Gray */
    --color-text-contrast: #134e4a; /* High-contrast Deep Teal-900 (WCAG AAA compliant) */
    --color-text-muted: #475569;    /* Muted Slate Gray */
    --color-border: #ccfbf1;        /* Light Teal-100 */
    --color-error: #b91c1c;         /* High-contrast Red-700 */
    --color-error-bg: #fef2f2;
    --color-success-bg: #f0fdf4;
    
    /* Typography */
    --font-heading: 'Lora', Georgia, serif;
    --font-body: 'Raleway', system-ui, -apple-system, sans-serif;
    
    /* Layout & Spacing */
    --container-max-width: 1200px;
    --section-padding-y: 5.5rem;
    --header-height: 80px;
    
    /* Decorative & Effects */
    --radius-full: 9999px;
    --radius-lg: 24px;              /* Organic biophilic curves */
    --radius-md: 16px;
    --radius-sm: 8px;
    --shadow-soft: 0 10px 30px rgba(19, 78, 74, 0.05);
    --shadow-hover: 0 20px 40px rgba(19, 78, 74, 0.09);
    --shadow-focus: 0 0 0 3px rgba(34, 197, 94, 0.4);
    
    /* Transitions */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    background-color: var(--color-bg-base);
    color: var(--color-text-main);
    font-family: var(--font-body);
    font-weight: 400;
    line-height: 1.6;
    letter-spacing: -0.01em;
    overflow-x: hidden;
}

/* Typography Hierarchy */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    color: var(--color-text-contrast);
    line-height: 1.25;
    font-weight: 700;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    letter-spacing: -0.02em;
}

h2 {
    font-size: clamp(2rem, 4vw, 2.75rem);
    letter-spacing: -0.01em;
}

h3 {
    font-size: clamp(1.35rem, 3vw, 1.75rem);
}

h4 {
    font-size: 1.15rem;
}

p {
    margin-bottom: 1rem;
    max-width: 75ch; /* Limit character width for readability */
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: var(--transition-fast);
}

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

/* Accessibility: Skip Link & Focus Rings */
.skip-link {
    position: absolute;
    top: -100px;
    left: 1rem;
    background: var(--color-accent);
    color: var(--color-white);
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    z-index: 99999;
    transition: top 0.2s ease;
}

.skip-link:focus {
    top: 1rem;
    outline: none;
    box-shadow: var(--shadow-focus);
}

/* Global Focus States for Keyboard Navigation */
input:focus,
select:focus,
textarea:focus,
button:focus,
a:focus {
    outline: 3px solid var(--color-accent);
    outline-offset: 3px;
}

/* Base Components & Buttons */
.container {
    width: 100%;
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.max-w-4xl { max-width: 800px; }
.max-w-3xl { max-width: 700px; }
.text-center { text-align: center; }
.hidden { display: none !important; }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 700;
    padding: 0.85rem 1.75rem;
    border-radius: var(--radius-full);
    border: 2px solid transparent;
    cursor: pointer;
    text-align: center;
    transition: var(--transition-normal);
    min-height: 44px; /* Touch target accessibility */
    white-space: nowrap;
}

.btn-primary {
    background-color: var(--color-primary);
    color: #ffffff;
}

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

.btn-cta {
    background-color: var(--color-accent);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(34, 197, 94, 0.25);
}

.btn-cta:hover {
    background-color: var(--color-accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(34, 197, 94, 0.35);
}

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

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

.btn-secondary:hover {
    background-color: var(--color-primary-muted);
}

.btn-sm {
    padding: 0.6rem 1.25rem;
    font-size: 0.85rem;
    min-height: 38px;
}

.badge {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background-color: var(--color-primary-muted);
    color: var(--color-primary-dark);
    padding: 0.4rem 1rem;
    border-radius: var(--radius-full);
    margin-bottom: 1.25rem;
    border: 1px solid rgba(8, 145, 178, 0.15);
}

/* ==========================================================================
   Header & Floating Glass Navigation
   ========================================================================== */
.main-header {
    position: fixed;
    top: 1rem;
    left: 1rem;
    right: 1rem;
    height: var(--header-height);
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px) saturate(160%);
    -webkit-backdrop-filter: blur(12px) saturate(160%);
    border: 1px solid rgba(204, 251, 241, 0.7);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
    z-index: 1000;
    transition: var(--transition-normal);
}

.nav-container {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.5rem;
    max-width: var(--container-max-width);
    margin: 0 auto;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--color-text-contrast);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.5rem;
}

.logo-icon {
    width: 28px;
    height: 28px;
    color: var(--color-primary);
}

.logo-text span {
    font-weight: 400;
    color: var(--color-accent);
}

.main-nav {
    display: block;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: var(--color-text-contrast);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.5rem 0;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-primary);
    transition: var(--transition-fast);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link:hover {
    color: var(--color-primary);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.mobile-nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--color-text-contrast);
    cursor: pointer;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
}

.hamburger-icon {
    width: 24px;
    height: 24px;
}

.hamburger-icon line {
    transition: var(--transition-normal);
    transform-origin: center;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
    padding-top: calc(var(--header-height) + 5rem);
    padding-bottom: 7rem;
    position: relative;
    overflow: hidden;
    background: radial-gradient(circle at 80% 20%, #e0f2fe 0%, transparent 40%),
                radial-gradient(circle at 10% 80%, #f0fdf4 0%, transparent 35%);
}

.hero-container {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 4rem;
    align-items: center;
}

.hero-content h1 span {
    color: var(--color-primary);
    font-style: italic;
    position: relative;
}

.hero-lead {
    font-size: clamp(1.05rem, 2vw, 1.25rem);
    color: var(--color-text-muted);
    margin-top: 1.5rem;
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    gap: 1.25rem;
    margin-bottom: 3rem;
}

.hero-trust {
    display: flex;
    gap: 2rem;
    border-top: 1px solid rgba(8, 145, 178, 0.1);
    padding-top: 2rem;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--color-text-contrast);
}

.trust-icon {
    width: 18px;
    height: 18px;
    color: var(--color-accent);
}

.hero-visual {
    position: relative;
}

.hero-image-wrapper {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(19, 78, 74, 0.08);
    background-color: var(--color-white);
    aspect-ratio: 4/5;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.hero-image-wrapper:hover .hero-image {
    transform: scale(1.02);
}

.hero-overlay-card {
    position: absolute;
    bottom: 1.5rem;
    left: 1.5rem;
    right: 1.5rem;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.overlay-title {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--color-text-contrast);
    margin-bottom: 0.25rem;
}

.overlay-desc {
    font-size: 0.88rem;
    color: var(--color-text-muted);
}

.wave-separator {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    transform: rotate(180deg);
}

.wave-separator svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 80px;
}

/* ==========================================================================
   Services Section (4 Pillars)
   ========================================================================== */
.services-section {
    padding: var(--section-padding-y) 0;
    background-color: var(--color-white);
}

.section-header {
    margin-bottom: 4rem;
}

.section-sub {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-primary);
    display: block;
    margin-bottom: 0.5rem;
}

.section-desc {
    color: var(--color-text-muted);
    font-size: 1.1rem;
    margin: 1rem auto 0;
    max-width: 600px;
}

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

.pillar-card {
    background-color: var(--color-bg-base);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: var(--transition-normal);
    display: flex;
    flex-direction: column;
}

.pillar-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(8, 145, 178, 0.3);
}

.pillar-img-wrapper {
    position: relative;
    height: 220px;
    background-color: #e2f1ed;
    overflow: hidden;
}

.pillar-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pillar-tag {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background-color: rgba(255, 255, 255, 0.95);
    color: var(--color-text-contrast);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.3rem 0.8rem;
    border-radius: var(--radius-full);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.pillar-icon-header {
    padding: 2rem 2rem 0;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.pillar-icon-box {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-md);
    background-color: var(--color-primary-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
}

.pillar-icon {
    width: 32px;
    height: 32px;
}

.pillar-content {
    padding: 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.pillar-content h3 {
    margin-bottom: 1rem;
    font-size: 1.35rem;
}

.pillar-content p {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.pillar-bullets {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    border-top: 1px solid rgba(8, 145, 178, 0.1);
    padding-top: 1.5rem;
}

.pillar-bullets li {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--color-text-contrast);
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.bullet-icon {
    width: 16px;
    height: 16px;
    color: var(--color-accent);
    margin-top: 2px;
    flex-shrink: 0;
}

/* ==========================================================================
   Symptom Assessment Widget
   ========================================================================== */
.symptom-section {
    padding: var(--section-padding-y) 0;
    background-color: var(--color-bg-base);
}

.symptom-box {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    background-color: var(--color-white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-soft);
    overflow: hidden;
}

.symptom-intro {
    padding: 3.5rem;
    border-right: 1px solid var(--color-border);
}

.symptom-intro h2 {
    margin: 0.5rem 0 1rem;
}

.symptom-intro p {
    color: var(--color-text-muted);
    margin-bottom: 2.5rem;
}

.symptom-selector {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.symptom-tag {
    background: none;
    border: 1px solid var(--color-border);
    text-align: left;
    padding: 1rem 1.5rem;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--color-text-contrast);
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: var(--transition-normal);
    min-height: 48px;
    width: 100%;
}

.tag-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #cbd5e1;
    transition: var(--transition-fast);
    flex-shrink: 0;
}

.symptom-tag:hover {
    background-color: rgba(8, 145, 178, 0.03);
    border-color: var(--color-primary-light);
}

.symptom-tag[aria-pressed="true"] {
    background-color: var(--color-primary-muted);
    border-color: var(--color-primary);
    box-shadow: 0 4px 12px rgba(8, 145, 178, 0.05);
}

.symptom-tag[aria-pressed="true"] .tag-dot {
    background-color: var(--color-primary);
    box-shadow: 0 0 8px var(--color-primary);
}

.symptom-result {
    padding: 3.5rem;
    background-color: #fafdfd;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

.symptom-placeholder-content {
    text-align: center;
    padding: 2rem;
}

.placeholder-icon {
    width: 48px;
    height: 48px;
    color: var(--color-primary-light);
    margin-bottom: 1rem;
}

.symptom-placeholder-content h3 {
    margin-bottom: 0.5rem;
}

.symptom-placeholder-content p {
    color: var(--color-text-muted);
    margin: 0 auto;
    font-size: 0.95rem;
}

.symptom-details {
    animation: fadeIn 0.4s ease forwards;
}

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

.result-header {
    border-bottom: 1px solid rgba(8, 145, 178, 0.1);
    padding-bottom: 1.5rem;
    margin-bottom: 2rem;
}

.result-header h3 {
    font-size: 1.5rem;
    margin-top: 0.5rem;
}

.result-block {
    margin-bottom: 1.75rem;
}

.result-block h4 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-primary-dark);
}

.block-icon {
    width: 18px;
    height: 18px;
    color: var(--color-accent);
}

.result-block p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--color-text-muted);
}

.result-action {
    margin-top: 2.5rem;
    border-top: 1px solid rgba(8, 145, 178, 0.1);
    padding-top: 2rem;
}

/* ==========================================================================
   Protocol Builder Section
   ========================================================================== */
.protocol-section {
    padding: var(--section-padding-y) 0;
    background-color: var(--color-white);
}

.protocol-interface {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 4rem;
    align-items: flex-start;
    margin-top: 3rem;
}

.protocol-selection-panel h3 {
    margin-bottom: 1.5rem;
    font-size: 1.35rem;
}

.protocol-options {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.protocol-card-option {
    cursor: pointer;
    display: block;
}

.protocol-card-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.option-card-inner {
    border: 1px solid var(--color-border);
    background-color: var(--color-bg-base);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
    transition: var(--transition-normal);
}

.radio-indicator {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid #cbd5e1;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2px;
    transition: var(--transition-fast);
    flex-shrink: 0;
}

.radio-indicator::after {
    content: '';
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--color-accent);
    transform: scale(0);
    transition: var(--transition-fast);
}

.protocol-card-option input[type="radio"]:checked + .option-card-inner {
    border-color: var(--color-primary);
    background-color: var(--color-white);
    box-shadow: var(--shadow-soft);
}

.protocol-card-option input[type="radio"]:checked + .option-card-inner .radio-indicator {
    border-color: var(--color-accent);
}

.protocol-card-option input[type="radio"]:checked + .option-card-inner .radio-indicator::after {
    transform: scale(1);
}

.option-info strong {
    display: block;
    color: var(--color-text-contrast);
    font-size: 1.05rem;
    margin-bottom: 0.25rem;
}

.option-info span {
    font-size: 0.88rem;
    color: var(--color-text-muted);
}

.protocol-results-panel {
    position: sticky;
    top: calc(var(--header-height) + 3rem);
}

.protocol-prescription-box {
    background-color: var(--color-bg-base);
    border: 2px solid var(--color-primary-light);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-hover);
    padding: 3rem;
    position: relative;
    background-image: radial-gradient(circle at 100% 0%, rgba(34, 197, 94, 0.04) 0%, transparent 35%);
}

.prescription-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    border-bottom: 2px solid rgba(8, 145, 178, 0.15);
    padding-bottom: 1.5rem;
    margin-bottom: 2rem;
}

.clinic-brand strong {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--color-text-contrast);
}

.clinic-brand span {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--color-text-muted);
}

.prescription-date {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-primary);
    background-color: rgba(8, 145, 178, 0.08);
    padding: 0.3rem 0.8rem;
    border-radius: var(--radius-sm);
}

.prescription-section {
    margin-bottom: 1.75rem;
}

.presc-title {
    font-family: var(--font-body);
    font-size: 0.88rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-primary-dark);
    margin-bottom: 0.5rem;
}

.presc-item strong {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.15rem;
    color: var(--color-text-contrast);
    margin-bottom: 0.25rem;
}

.presc-item p {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    margin-bottom: 0;
}

.prescription-footer {
    border-top: 1px solid rgba(8, 145, 178, 0.1);
    padding-top: 1.5rem;
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.disclaimer {
    font-size: 0.78rem;
    line-height: 1.5;
    color: var(--color-text-muted);
    margin: 0;
}

.rx-signature {
    text-align: right;
    align-self: flex-end;
}

.sig-line {
    display: block;
    font-family: 'Caveat', cursive, var(--font-heading);
    font-size: 1.75rem;
    color: var(--color-primary-dark);
    border-bottom: 1px solid rgba(8, 145, 178, 0.3);
    padding-bottom: 0.25rem;
    margin-bottom: 0.25rem;
    width: 180px;
    text-align: center;
}

.rx-signature span:last-child {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ==========================================================================
   Meet Jahna Beardsley Section
   ========================================================================== */
.about-section {
    padding: var(--section-padding-y) 0;
    background-color: var(--color-bg-base);
}

.about-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 5rem;
    align-items: center;
}

.about-visual {
    display: flex;
    justify-content: center;
}

.about-card-frame {
    position: relative;
    background-color: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    padding: 2rem;
    width: 100%;
    max-width: 380px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.about-profile-badge {
    position: absolute;
    top: -1.25rem;
    background-color: var(--color-text-contrast);
    color: var(--color-white);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.5rem 1.25rem;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    gap: 0.4rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.badge-icon {
    width: 14px;
    height: 14px;
}

.profile-placeholder {
    width: 100%;
    aspect-ratio: 1/1.2;
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: 2rem;
}

.profile-svg {
    width: 100%;
    height: 100%;
}

.about-practitioner-details h3 {
    font-size: 1.5rem;
    color: var(--color-text-contrast);
}

.about-practitioner-details .title {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--color-primary-dark);
    margin-bottom: 0.25rem;
}

.about-practitioner-details .credentials {
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

.about-content .lead {
    font-size: 1.25rem;
    font-family: var(--font-heading);
    font-style: italic;
    line-height: 1.5;
    color: var(--color-primary-dark);
    margin-bottom: 2rem;
}

.contact-details-box {
    margin-top: 3rem;
    background-color: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 2rem;
    box-shadow: var(--shadow-soft);
}

.contact-details-box h3 {
    font-size: 1.15rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(8, 145, 178, 0.1);
}

.contact-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.contact-list li {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.contact-icon-box {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: var(--color-primary-muted);
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon {
    width: 20px;
    height: 20px;
}

.contact-text span {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--color-text-muted);
    letter-spacing: 0.05em;
}

.contact-text strong {
    font-size: 0.95rem;
    color: var(--color-text-contrast);
}

.contact-link {
    color: var(--color-primary-dark);
}

.contact-link:hover {
    color: var(--color-primary);
    text-decoration: underline;
}

/* ==========================================================================
   FAQs Section (Accordion Styling)
   ========================================================================== */
.faqs-section {
    padding: var(--section-padding-y) 0;
    background-color: var(--color-white);
}

.faq-accordion-group {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin-top: 3.5rem;
}

.faq-item {
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    background-color: var(--color-bg-base);
    overflow: hidden;
    transition: var(--transition-normal);
}

.faq-item:hover {
    border-color: var(--color-primary-light);
    box-shadow: var(--shadow-soft);
}

.faq-trigger {
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    padding: 1.5rem 2rem;
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--color-text-contrast);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    cursor: pointer;
    min-height: 54px;
}

.faq-icon-wrapper {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: var(--color-white);
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: var(--transition-normal);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
}

.faq-icon {
    width: 16px;
    height: 16px;
}

.faq-trigger[aria-expanded="true"] .faq-icon-wrapper {
    background-color: var(--color-primary);
    color: var(--color-white);
    transform: rotate(135deg);
}

.faq-panel {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease-out;
}

.faq-panel-inner {
    padding: 0 2rem 1.75rem;
    font-size: 0.95rem;
    line-height: 1.65;
    color: var(--color-text-muted);
}

.faq-panel-inner p {
    margin-bottom: 0;
}

/* ==========================================================================
   Booking Form Section
   ========================================================================== */
.booking-section {
    padding: var(--section-padding-y) 0;
    background-color: var(--color-bg-base);
    background-image: radial-gradient(circle at 10% 20%, rgba(8, 145, 178, 0.03) 0%, transparent 40%);
}

.booking-card {
    background-color: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: 0 25px 60px rgba(19, 78, 74, 0.08);
    padding: 4.5rem;
    position: relative;
}

.booking-header h2 {
    margin: 0.5rem 0 1rem;
}

.booking-header p {
    color: var(--color-text-muted);
    margin: 0 auto 3rem;
    font-size: 1.05rem;
}

.booking-form {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
    transition: opacity 0.3s ease;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.75rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group.full-width {
    grid-column: span 2;
}

.form-group label {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--color-text-contrast);
}

.form-group label .required {
    color: var(--color-error);
}

.form-group input,
.form-group select,
.form-group textarea {
    font-family: var(--font-body);
    font-size: 0.95rem;
    padding: 0.85rem 1.25rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--color-border);
    background-color: var(--color-bg-base);
    color: var(--color-text-main);
    transition: var(--transition-fast);
    min-height: 44px;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #94a3b8;
}

.form-group input:hover,
.form-group select:hover,
.form-group textarea:hover {
    border-color: var(--color-primary-light);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--color-primary);
    background-color: var(--color-white);
    outline: none;
    box-shadow: var(--shadow-focus);
}

/* Custom Checkbox Design */
.form-consent {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.checkbox-container {
    display: flex;
    align-items: flex-start;
    position: relative;
    padding-left: 2.25rem;
    cursor: pointer;
    user-select: none;
}

.checkbox-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: absolute;
    top: 3px;
    left: 0;
    height: 20px;
    width: 20px;
    background-color: var(--color-bg-base);
    border: 1px solid var(--color-border);
    border-radius: 4px;
    transition: var(--transition-fast);
}

.checkbox-container:hover input ~ .checkmark {
    border-color: var(--color-primary-light);
}

.checkbox-container input:checked ~ .checkmark {
    background-color: var(--color-accent);
    border-color: var(--color-accent);
}

.checkmark::after {
    content: "";
    position: absolute;
    display: none;
}

.checkbox-container input:checked ~ .checkmark::after {
    display: block;
}

.checkbox-container .checkmark::after {
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.consent-text {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    line-height: 1.5;
}

.consent-text .required {
    color: var(--color-error);
}

/* Error states styling */
.form-group.has-error input,
.form-group.has-error select,
.form-group.has-error textarea {
    border-color: var(--color-error);
    background-color: var(--color-error-bg);
}

.form-consent.has-error .checkmark {
    border-color: var(--color-error);
    background-color: var(--color-error-bg);
}

.error-message {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-error);
    display: none;
    margin-top: 0.25rem;
    animation: fadeIn 0.2s ease forwards;
}

.form-group.has-error .error-message,
.form-consent.has-error .error-message {
    display: block;
}

.form-submit-container {
    margin-top: 1rem;
    text-align: center;
}

.btn-submit {
    min-width: 200px;
    position: relative;
}

.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #ffffff;
    animation: spin 1s ease-in-out infinite;
    position: absolute;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Success panel animation styles */
.booking-success {
    text-align: center;
    animation: fadeIn 0.5s ease forwards;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem 0;
}

.success-icon-box {
    width: 70px;
    height: 70px;
    background-color: var(--color-success-bg);
    color: var(--color-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    box-shadow: 0 10px 25px rgba(34, 197, 94, 0.15);
}

.success-icon {
    width: 36px;
    height: 36px;
}

.booking-success h3 {
    font-size: 1.85rem;
    margin-bottom: 1rem;
}

.booking-success p {
    color: var(--color-text-muted);
    font-size: 1.05rem;
    max-width: 550px;
    margin-bottom: 1rem;
}

.booking-success button {
    margin-top: 2rem;
}

/* ==========================================================================
   Footer Styling
   ========================================================================== */
.main-footer {
    background-color: var(--color-text-contrast);
    color: #e2f1ed;
    padding: 5rem 0 3rem;
    border-top: 4px solid var(--color-primary);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 0.8fr 1.2fr;
    gap: 4rem;
    margin-bottom: 4rem;
    border-bottom: 1px solid rgba(204, 251, 241, 0.1);
    padding-bottom: 4rem;
}

.footer-brand .footer-logo {
    margin-bottom: 1.5rem;
}

.footer-brand .logo-text {
    color: #ffffff;
    font-size: 1.85rem;
}

.footer-tagline {
    font-size: 0.9rem;
    line-height: 1.6;
    color: #9cd4c7;
    margin: 0;
}

.footer-grid h4 {
    color: #ffffff;
    font-family: var(--font-body);
    font-size: 0.88rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1.75rem;
}

.footer-links ul,
.footer-contact ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-links a {
    color: #9cd4c7;
    font-weight: 600;
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: var(--color-primary-light);
    transform: translateX(3px);
}

.footer-contact li {
    font-size: 0.95rem;
    color: #e2f1ed;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.footer-contact a {
    color: #e2f1ed;
}

.footer-contact a:hover {
    color: var(--color-primary-light);
}

.footer-icon {
    width: 18px;
    height: 18px;
    color: var(--color-primary-light);
    flex-shrink: 0;
}

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

.footer-copyright p {
    font-size: 0.88rem;
    color: #9cd4c7;
    margin: 0;
}

.footer-medical-disclaimer p {
    font-size: 0.78rem;
    line-height: 1.5;
    color: #8bbfae;
    margin: 0;
}

/* ==========================================================================
   Responsive & Adaptive Breakpoints
   ========================================================================== */

/* 1440px+ (Large Screens) */
@media (min-width: 1440px) {
    :root {
        --container-max-width: 1320px;
    }
}

/* 1024px to 1200px (Desktop and Laptops) */
@media (max-width: 1024px) {
    :root {
        --section-padding-y: 4.5rem;
    }
    
    .hero-container {
        gap: 3rem;
    }
    
    .symptom-box,
    .protocol-interface,
    .about-grid {
        gap: 3rem;
    }
}

/* 768px to 1023px (Tablets) */
@media (max-width: 768px) {
    :root {
        --section-padding-y: 4rem;
    }
    
    /* Sticky header adjustment for scrolling spaces */
    .main-header {
        top: 0;
        left: 0;
        right: 0;
        border-radius: 0;
        border-width: 0 0 1px 0;
        height: 70px;
    }
    
    .hero-section {
        padding-top: calc(70px + 3rem);
        padding-bottom: 5rem;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        gap: 3.5rem;
    }
    
    .hero-content {
        text-align: center;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .hero-trust {
        justify-content: center;
    }
    
    .hero-image-wrapper {
        aspect-ratio: 16/10;
        max-height: 400px;
    }
    
    /* Symptom checker mobile grid */
    .symptom-box {
        grid-template-columns: 1fr;
    }
    
    .symptom-intro {
        padding: 2.5rem;
        border-right: none;
        border-bottom: 1px solid var(--color-border);
    }
    
    .symptom-result {
        padding: 2.5rem;
    }
    
    /* Protocol Builder mobile grid */
    .protocol-interface {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .protocol-results-panel {
        position: static;
    }
    
    /* About Mobile Grid */
    .about-grid {
        grid-template-columns: 1fr;
        gap: 3.5rem;
    }
    
    .about-content {
        text-align: center;
    }
    
    .contact-details-box {
        text-align: left;
    }
    
    /* Form grids */
    .form-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
    
    .form-group.full-width {
        grid-column: span 1;
    }
    
    .booking-card {
        padding: 3rem;
    }
    
    /* Footer Grid */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
        padding-bottom: 3rem;
    }
    
    /* Navigation Bar Mobile Layout */
    .main-nav {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background-color: var(--color-white);
        border-bottom: 1px solid var(--color-border);
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
        padding: 2rem;
        transform: translateY(-150%);
        opacity: 0;
        transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                    opacity 0.35s ease;
        pointer-events: none;
    }
    
    .main-nav.mobile-active {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }
    
    .nav-list {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }
    
    .mobile-nav-toggle {
        display: flex;
    }
    
    .nav-cta {
        display: none; /* Hide on header, move to main hero */
    }
}

/* 375px to 767px (Smartphones) */
@media (max-width: 480px) {
    :root {
        --section-padding-y: 3.5rem;
    }
    
    .hero-actions {
        flex-direction: column;
        width: 100%;
        gap: 1rem;
    }
    
    .hero-actions .btn {
        width: 100%;
    }
    
    .hero-trust {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }
    
    .symptom-intro,
    .symptom-result,
    .booking-card,
    .faq-trigger {
        padding: 1.5rem;
    }
    
    .booking-card {
        border-radius: var(--radius-md);
    }
    
    .pillar-content {
        padding: 1.5rem;
    }
    
    .prescription-box {
        padding: 1.5rem;
    }
}

/* ==========================================================================
   Subpages & Detailed Views Layout Styles
   ========================================================================== */
.subpage-main {
    padding-top: calc(var(--header-height) + 4rem);
}

.subpage-hero {
    padding: 4rem 0 3rem;
    background: radial-gradient(circle at 50% 100%, #e0f2fe 0%, transparent 50%);
    border-bottom: 1px solid var(--color-border);
    margin-bottom: 4rem;
}

.detailed-services-section {
    padding: 2rem 0 4rem;
    background-color: var(--color-white);
}

.detail-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
    margin-bottom: 6rem;
}

.detail-row:last-child {
    margin-bottom: 0;
}

.detail-row.reverse {
    direction: rtl;
}

.detail-row.reverse .detail-info {
    direction: ltr;
}

.detail-row.reverse .detail-visual {
    direction: ltr;
}

.detail-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    width: 100%;
}

.detail-image {
    width: 100%;
    max-width: 480px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-hover);
    border: 1px solid var(--color-border);
}

.detail-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.detail-info h2 {
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    margin-top: 0.5rem;
    margin-bottom: 1.5rem;
    color: var(--color-text-contrast);
}

.detail-info .lead {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-primary-dark);
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.detail-info p {
    color: var(--color-text-muted);
    margin-bottom: 1.25rem;
}

.styled-list {
    list-style: none;
    padding-left: 0;
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.styled-list li {
    position: relative;
    padding-left: 2rem;
    font-size: 0.95rem;
    color: var(--color-text-main);
    line-height: 1.5;
}

.styled-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 3px;
    width: 18px;
    height: 18px;
    background-color: var(--color-primary-muted);
    border: 2px solid var(--color-accent);
    border-radius: 50%;
}

.styled-list li::after {
    content: "";
    position: absolute;
    left: 6px;
    top: 6px;
    width: 4px;
    height: 7px;
    border: solid var(--color-accent);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.pillar-icon-large-box {
    width: 240px;
    height: 240px;
    border-radius: 50%;
    background-color: var(--color-bg-base);
    border: 2px dashed var(--color-primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    box-shadow: var(--shadow-soft);
    animation: floatAnimation 6s ease-in-out infinite;
}

.large-pillar-icon {
    width: 90px;
    height: 90px;
    stroke-width: 1.25;
}

@keyframes floatAnimation {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

.services-cta-section,
.symptom-footer-callout,
.protocol-footer-callout,
.faq-cta-section {
    padding: 5rem 0;
    background-color: var(--color-bg-base);
    border-top: 1px solid var(--color-border);
    margin-top: 4rem;
}

.services-cta-section h2,
.symptom-footer-callout h2,
.protocol-footer-callout h2,
.faq-cta-section h2 {
    margin-bottom: 1rem;
}

.services-cta-section p,
.symptom-footer-callout p,
.protocol-footer-callout p,
.faq-cta-section p {
    color: var(--color-text-muted);
    font-size: 1.05rem;
    margin: 0 auto 2rem;
    max-width: 600px;
}

.faq-cta-actions {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

.subpage-main .symptom-widget-section,
.subpage-main .protocol-widget-section,
.subpage-main .practitioner-about-section {
    padding: 2rem 0;
}

/* Tablet adjustments for subpage components */
@media (max-width: 768px) {
    .detail-row {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        margin-bottom: 4rem;
    }
    
    .detail-row.reverse {
        direction: ltr;
    }
    
    .pillar-icon-large-box {
        width: 180px;
        height: 180px;
    }
    
    .large-pillar-icon {
        width: 60px;
        height: 60px;
    }
    
    .subpage-hero {
        padding: 3rem 0 2rem;
        margin-bottom: 2rem;
    }
}

/* ==========================================================================
   Reduced Motion Accessibility Media Query
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    *, *::before, *::after {
        animation-delay: -1ms !important;
        animation-duration: 1ms !important;
        animation-iteration-count: 1 !important;
        background-attachment: initial !important;
        scroll-behavior: auto !important;
        transition-duration: 0s !important;
        transition-delay: 0s !important;
        transition: none !important;
    }
    
    .btn-cta:hover {
        transform: none !important;
    }
    
    .pillar-card:hover {
        transform: none !important;
    }
    
    .hero-image-wrapper:hover .hero-image {
        transform: none !important;
    }
}

