/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Emerald Brand Colors */
    --emerald-primary: #50C878;
    --emerald-dark: #2E8B57;
    --emerald-light: #90EE90;
    --gold-accent: #FFD700;
    --gold-dark: #DAA520;
    
    /* Neutral Colors */
    --white: #FFFFFF;
    --black: #000000;
    --gray-100: #F8F9FA;
    --gray-200: #E9ECEF;
    --gray-300: #DEE2E6;
    --gray-400: #CED4DA;
    --gray-500: #ADB5BD;
    --gray-600: #6C757D;
    --gray-700: #495057;
    --gray-800: #343A40;
    --gray-900: #212529;
    
    /* Typography */
    --font-primary: 'Playfair Display', serif;
    --font-secondary: 'Montserrat', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Spacing */
    --section-padding: 100px 0;
    --container-padding: 0 20px;
    --border-radius: 12px;
    --border-radius-lg: 20px;
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.15);
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* iOS Safe Area Support */
body {
    font-family: var(--font-body);
    line-height: 1.6;
    color: var(--gray-800);
    overflow-x: hidden;
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: rgba(80, 200, 120, 0.2);
}

/* Safe area padding for notched phones */
.navbar {
    padding-top: max(15px, env(safe-area-inset-top));
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
}

.footer {
    padding-bottom: max(20px, env(safe-area-inset-bottom));
}

/* Smooth scrolling globally */
html {
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--container-padding);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 2rem; }
h4 { font-size: 1.5rem; }

p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.emerald-text {
    color: var(--emerald-primary);
    background: linear-gradient(135deg, var(--emerald-primary), var(--emerald-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Buttons */
.btn-primary, .btn-secondary, .btn-service, .btn-download, .btn-register, .btn-submit {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 15px 30px;
    border: none;
    border-radius: var(--border-radius);
    font-family: var(--font-secondary);
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    cursor: pointer;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, var(--emerald-primary), var(--emerald-dark));
    color: var(--white);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

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

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

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 15px 0;
    transition: all var(--transition-normal);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-md);
}

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

.nav-brand h1 {
    font-family: var(--font-primary);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--emerald-primary);
    margin: 0;
}

.nav-brand span {
    font-family: var(--font-secondary);
    font-size: 0.9rem;
    color: var(--gray-600);
    font-weight: 500;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
    margin: 0;
}

.nav-link {
    text-decoration: none;
    color: var(--gray-700);
    font-weight: 500;
    font-size: 1rem;
    transition: color var(--transition-fast);
    display: flex;
    align-items: center;
    gap: 5px;
}

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

.dropdown {
    position: relative;
}

.dropdown-content {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    min-width: 200px;
    box-shadow: var(--shadow-lg);
    border-radius: var(--border-radius);
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all var(--transition-normal);
}

.dropdown:hover .dropdown-content {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-content a {
    display: block;
    padding: 10px 20px;
    color: var(--gray-700);
    text-decoration: none;
    transition: background var(--transition-fast);
}

.dropdown-content a:hover {
    background: var(--gray-100);
    color: var(--emerald-primary);
}

.nav-actions {
    display: flex;
    gap: 15px;
    align-items: center;
}

.btn-ai-assessment {
    background: linear-gradient(135deg, var(--emerald-primary), var(--emerald-dark));
    color: var(--white);
    border: none;
    padding: 12px 20px;
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-normal);
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-ai-assessment:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-book-appointment {
    background: var(--gold-accent);
    color: var(--gray-800);
    border: none;
    padding: 12px 20px;
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-normal);
    display: flex;
    align-items: center;
    gap: 8px;
}

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

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--gray-700);
    transition: all var(--transition-normal);
    transform-origin: center;
    border-radius: 2px;
}

/* Mobile sticky CTA bar */
.mobile-cta-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 900;
    background: var(--white);
    box-shadow: 0 -4px 20px rgba(0,0,0,0.12);
    padding: 12px 16px;
    padding-bottom: max(12px, env(safe-area-inset-bottom));
    gap: 12px;
}

.mobile-cta-bar .btn-primary,
.mobile-cta-bar .btn-secondary {
    flex: 1;
    justify-content: center;
    padding: 14px 12px;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .mobile-cta-bar { display: flex; }
    /* Add bottom padding to body so content isn't hidden behind sticky bar */
    body { padding-bottom: 80px; }
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(46, 139, 87, 0.8), rgba(80, 200, 120, 0.6));
    z-index: -1;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    min-height: 100vh;
}

.hero-text {
    color: var(--white);
}

.hero-title {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.1;
}

.hero-title .emerald-text {
    background: linear-gradient(135deg, var(--gold-accent), var(--white));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-title .subtitle {
    display: block;
    font-size: 2.5rem;
    font-weight: 400;
    margin-top: 10px;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 300;
    margin-bottom: 20px;
    color: var(--gold-accent);
}

.hero-description {
    font-size: 1.2rem;
    margin-bottom: 40px;
    line-height: 1.6;
    opacity: 0.9;
}

.hero-stats {
    display: flex;
    gap: 40px;
    margin-bottom: 40px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 3rem;
    font-weight: 700;
    color: var(--gold-accent);
    font-family: var(--font-primary);
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.spine-image {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-xl);
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--white);
    animation: bounce 2s infinite;
}

.scroll-arrow {
    width: 30px;
    height: 30px;
    border-right: 2px solid var(--white);
    border-bottom: 2px solid var(--white);
    transform: rotate(45deg);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}

/* AI Assessment Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: var(--white);
    margin: 5% auto;
    padding: 0;
    border-radius: var(--border-radius-lg);
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: var(--shadow-xl);
}

.close {
    position: absolute;
    right: 20px;
    top: 20px;
    color: var(--gray-500);
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10;
}

.close:hover {
    color: var(--gray-800);
}

.ai-assessment-container {
    padding: 40px;
}

.ai-assessment-container h2 {
    text-align: center;
    color: var(--emerald-primary);
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.assessment-steps {
    min-height: 400px;
}

.step {
    display: none;
}

.step.active {
    display: block;
}

.body-diagram {
    position: relative;
    text-align: center;
    margin: 30px 0;
}

.body-diagram img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius);
}

.pain-points {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
}

.pain-point {
    background: var(--emerald-primary);
    color: var(--white);
    border: none;
    padding: 10px 15px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 600;
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-md);
}

.pain-point:hover {
    background: var(--emerald-dark);
    transform: scale(1.05);
}

.pain-point.selected {
    background: var(--gold-accent);
    color: var(--gray-800);
}

.pain-scale {
    margin: 20px 0;
}

.pain-scale label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
}

.pain-scale input[type="range"] {
    width: 100%;
    margin: 10px 0;
}

#pain-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--emerald-primary);
}

.duration-select {
    margin: 20px 0;
}

.duration-select label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
}

.duration-select select {
    width: 100%;
    padding: 10px;
    border: 2px solid var(--gray-300);
    border-radius: var(--border-radius);
    font-size: 1rem;
}

.ai-results {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 30px 0;
}

.recommendation-card {
    background: var(--gray-100);
    padding: 20px;
    border-radius: var(--border-radius);
    text-align: center;
}

.emerald-icon {
    color: var(--emerald-primary);
    font-size: 2rem;
    margin-bottom: 10px;
}

.assessment-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
}

.btn-prev, .btn-next {
    background: var(--emerald-primary);
    color: var(--white);
    border: none;
    padding: 12px 24px;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-weight: 600;
    transition: all var(--transition-normal);
}

.btn-prev:hover, .btn-next:hover {
    background: var(--emerald-dark);
}

/* Services Section */
.services {
    padding: var(--section-padding);
    background: var(--gray-100);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    color: var(--gray-800);
    margin-bottom: 20px;
}

.section-header p {
    font-size: 1.2rem;
    color: var(--gray-600);
    max-width: 600px;
    margin: 0 auto;
}

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

.service-card {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.service-video, .service-image {
    height: 250px;
    overflow: hidden;
}

.service-video video, .service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-content {
    padding: 30px;
}

.service-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--emerald-primary), var(--emerald-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.service-icon i {
    font-size: 1.5rem;
    color: var(--white);
}

.service-icon.red-light {
    background: linear-gradient(135deg, #FF6B6B, #FF5252);
}

.service-icon.laser {
    background: linear-gradient(135deg, #4ECDC4, #26A69A);
}

.service-icon.shockwave {
    background: linear-gradient(135deg, #FF6B35, #FF8C42);
}

.service-icon.tens {
    background: linear-gradient(135deg, #6A0DAD, #9B59B6);
}

.service-icon.electro {
    background: linear-gradient(135deg, #1A6EBD, #2E86DE);
}

.service-icon.spine-adj {
    background: linear-gradient(135deg, #2E8B57, #50C878);
}

.service-icon.gait {
    background: linear-gradient(135deg, #D4A017, #F0C040);
}

.service-icon.body-analysis {
    background: linear-gradient(135deg, #C0392B, #E74C3C);
}

.service-content h3 {
    color: var(--gray-800);
    margin-bottom: 15px;
}

.service-content p {
    color: var(--gray-600);
    margin-bottom: 20px;
}

.service-features {
    list-style: none;
    margin-bottom: 25px;
}

.service-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    color: var(--gray-700);
}

.service-features i {
    color: var(--emerald-primary);
    font-size: 0.9rem;
}

.btn-service {
    background: transparent;
    color: var(--emerald-primary);
    border: 2px solid var(--emerald-primary);
    padding: 12px 24px;
    width: 100%;
    justify-content: center;
}

.btn-service:hover {
    background: var(--emerald-primary);
    color: var(--white);
}

/* About Section */
.about {
    padding: var(--section-padding);
    background: var(--white);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text h2 {
    color: var(--gray-800);
    margin-bottom: 10px;
}

.about-subtitle {
    color: var(--emerald-primary);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.credentials {
    margin: 30px 0;
}

.credential-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    padding: 15px;
    background: var(--gray-100);
    border-radius: var(--border-radius);
}

.credential-item i {
    color: var(--emerald-primary);
    font-size: 1.2rem;
}

.about-image {
    position: relative;
    text-align: center;
}

.about-image img {
    width: 100%;
    max-width: 400px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
}

.experience-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--emerald-primary);
    color: var(--white);
    padding: 15px;
    border-radius: 50%;
    text-align: center;
    box-shadow: var(--shadow-md);
}

.experience-badge .years {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
}

.experience-badge .label {
    font-size: 0.8rem;
    opacity: 0.9;
}

/* Resources Section */
.resources {
    padding: var(--section-padding);
    background: var(--gray-100);
}

.resources-tabs {
    max-width: 1000px;
    margin: 0 auto;
}

.tab-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.tab-btn {
    background: transparent;
    border: 2px solid var(--gray-300);
    color: var(--gray-600);
    padding: 12px 24px;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-weight: 600;
    transition: all var(--transition-normal);
}

.tab-btn.active, .tab-btn:hover {
    background: var(--emerald-primary);
    border-color: var(--emerald-primary);
    color: var(--white);
}

.tab-content {
    min-height: 400px;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

.ebooks-grid, .workshops-grid, .blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.ebook-card, .workshop-card, .blog-card {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    padding: 30px;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
}

.ebook-card:hover, .workshop-card:hover, .blog-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.ebook-cover {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--emerald-primary), var(--emerald-dark));
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.ebook-cover i {
    font-size: 2rem;
    color: var(--white);
}

.btn-download, .btn-register {
    background: var(--emerald-primary);
    color: var(--white);
    width: 100%;
    justify-content: center;
    margin-top: 20px;
}

.btn-download:hover, .btn-register:hover {
    background: var(--emerald-dark);
}

.workshop-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: var(--border-radius);
    margin-bottom: 20px;
}

.workshop-content {
    position: relative;
}

.workshop-date {
    position: absolute;
    top: -220px;
    right: 10px;
    background: var(--emerald-primary);
    color: var(--white);
    padding: 10px;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--shadow-md);
}

.workshop-date .month {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
}

.workshop-date .day {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
}

.workshop-details {
    display: flex;
    gap: 20px;
    margin: 15px 0;
    font-size: 0.9rem;
    color: var(--gray-600);
}

.workshop-details span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.blog-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: var(--border-radius);
    margin-bottom: 20px;
}

.blog-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.blog-date {
    color: var(--gray-500);
}

.blog-category {
    background: var(--emerald-primary);
    color: var(--white);
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
}

.read-more {
    color: var(--emerald-primary);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all var(--transition-normal);
}

.read-more:hover {
    gap: 10px;
}

/* Testimonials Section */
.testimonials {
    padding: var(--section-padding);
    background: var(--white);
}

.testimonials-slider {
    max-width: 800px;
    margin: 0 auto 40px;
}

.testimonial-card {
    display: none;
    text-align: center;
}

.testimonial-card.active {
    display: block;
}

.testimonial-content {
    background: var(--gray-100);
    padding: 40px;
    border-radius: var(--border-radius-lg);
    margin-bottom: 30px;
}

.stars {
    margin-bottom: 20px;
}

.stars i {
    color: var(--gold-accent);
    font-size: 1.2rem;
    margin: 0 2px;
}

.testimonial-content p {
    font-size: 1.2rem;
    font-style: italic;
    color: var(--gray-700);
    margin-bottom: 30px;
    line-height: 1.6;
}

.testimonial-author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.testimonial-author img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.author-info h4 {
    margin: 0;
    color: var(--gray-800);
}

.author-info span {
    color: var(--gray-600);
    font-size: 0.9rem;
}

.testimonial-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    text-align: center;
}

.testimonial-stats .stat-item {
    color: var(--gray-800);
}

.testimonial-stats .stat-number {
    color: var(--emerald-primary);
    font-size: 2.5rem;
}

/* Contact Section */
.contact {
    padding: var(--section-padding);
    background: var(--gray-100);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.contact-info h2 {
    color: var(--gray-800);
    margin-bottom: 20px;
}

.contact-details {
    margin: 40px 0;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 30px;
}

.contact-item i {
    color: var(--emerald-primary);
    font-size: 1.5rem;
    margin-top: 5px;
}

.contact-item h4 {
    margin: 0 0 5px 0;
    color: var(--gray-800);
}

.contact-item p {
    margin: 0;
    color: var(--gray-600);
    line-height: 1.4;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-link {
    width: 50px;
    height: 50px;
    background: var(--emerald-primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all var(--transition-normal);
}

.social-link:hover {
    background: var(--emerald-dark);
    transform: translateY(-3px);
}

.contact-form {
    background: var(--white);
    padding: 40px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
}

.form-group {
    position: relative;
    margin-bottom: 25px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid var(--gray-300);
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: all var(--transition-normal);
    background: var(--white);
}

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

.form-group label {
    position: absolute;
    top: 15px;
    left: 15px;
    color: var(--gray-500);
    font-size: 1rem;
    transition: all var(--transition-normal);
    pointer-events: none;
}

.form-group input:focus + label,
.form-group input:valid + label,
.form-group select:focus + label,
.form-group select:valid + label,
.form-group textarea:focus + label,
.form-group textarea:valid + label {
    top: -10px;
    left: 10px;
    font-size: 0.8rem;
    color: var(--emerald-primary);
    background: var(--white);
    padding: 0 5px;
}

.btn-submit {
    background: linear-gradient(135deg, var(--emerald-primary), var(--emerald-dark));
    color: var(--white);
    width: 100%;
    justify-content: center;
    padding: 18px;
    font-size: 1.1rem;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Footer */
.footer {
    background: var(--gray-900);
    color: var(--white);
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand h3 {
    color: var(--emerald-primary);
    margin-bottom: 5px;
}

.footer-brand span {
    color: var(--gray-400);
    font-size: 0.9rem;
}

.footer-section h4 {
    color: var(--white);
    margin-bottom: 20px;
    font-size: 1.2rem;
}

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

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: var(--gray-400);
    text-decoration: none;
    transition: color var(--transition-fast);
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-section ul li a:hover {
    color: var(--emerald-primary);
}

.footer-section ul li i {
    color: var(--emerald-primary);
    width: 16px;
}

.footer-bottom {
    border-top: 1px solid var(--gray-700);
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

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

.footer-links a {
    color: var(--gray-400);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: var(--emerald-primary);
}

/* ============================================================
   COMPREHENSIVE MOBILE-FIRST RESPONSIVE DESIGN SYSTEM
   Emerald Wellness Chiropractic Group
   Breakpoints: 1200px | 1024px | 768px | 600px | 480px | 360px
   ============================================================ */

/* ---- Large Desktop (1200px+) ---- */
@media (max-width: 1200px) {
    .hero-title { font-size: 3.5rem; }
    .hero-content { gap: 40px; }
    .nav-menu { gap: 20px; }
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .ebooks-grid, .workshops-grid, .blog-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ---- Tablet Landscape (1024px) ---- */
@media (max-width: 1024px) {
    :root { --section-padding: 80px 0; }
    .hero-title { font-size: 3rem; }
    .hero-title .subtitle { font-size: 2rem; }
    .hero-description { font-size: 1.1rem; }
    .stat-number { font-size: 2.5rem; }
    .about-content { gap: 40px; }
    .contact-content { gap: 40px; }
    .nav-brand h1 { font-size: 1.5rem; }
    .btn-ai-assessment, .btn-book-appointment { padding: 10px 14px; font-size: 0.9rem; }
}

/* ---- Tablet Portrait (768px) ---- */
@media (max-width: 768px) {
    :root { --section-padding: 70px 0; }

    /* --- Navigation --- */
    .nav-menu {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(255,255,255,0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 0;
        z-index: 999;
        padding: 80px 20px 40px;
        overflow-y: auto;
    }
    .nav-menu.active {
        display: flex;
    }
    .nav-menu li {
        width: 100%;
        text-align: center;
        border-bottom: 1px solid #f0f0f0;
    }
    .nav-menu li:last-child { border-bottom: none; }
    .nav-link {
        display: block;
        padding: 18px 20px;
        font-size: 1.2rem;
        font-weight: 600;
        color: #2E8B57;
    }
    .dropdown-content {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: #f8f9fa;
        border-radius: 8px;
        margin: 0 20px 10px;
        display: none;
    }
    .dropdown.open .dropdown-content { display: block; }
    .dropdown-content a {
        padding: 12px 20px;
        font-size: 1rem;
        color: #495057;
    }
    .hamburger { display: flex; z-index: 1000; }
    .hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
    .hamburger.active span:nth-child(2) { opacity: 0; transform: translateX(-10px); }
    .hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }
    .nav-actions { display: none; }
    .nav-container { padding: 0 16px; }
    .nav-brand h1 { font-size: 1.3rem; }
    .nav-brand span { font-size: 0.75rem; }

    /* --- Hero Section --- */
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 30px;
        padding: 100px 20px 60px;
        min-height: auto;
    }
    .hero-title { font-size: 2.5rem; line-height: 1.15; }
    .hero-title .subtitle { font-size: 1.8rem; }
    .hero-subtitle { font-size: 1.2rem; }
    .hero-description { font-size: 1rem; margin-bottom: 28px; }
    .hero-stats { justify-content: center; gap: 30px; flex-wrap: wrap; }
    .stat-number { font-size: 2.2rem; }
    .stat-label { font-size: 0.8rem; }
    .hero-buttons { justify-content: center; flex-wrap: wrap; gap: 14px; }
    .hero-buttons .btn-primary,
    .hero-buttons .btn-secondary { width: 100%; max-width: 320px; justify-content: center; padding: 16px 24px; font-size: 1rem; }
    .hero-image { display: none; }
    .scroll-indicator { display: none; }

    /* --- Services --- */
    .services-grid { grid-template-columns: 1fr; gap: 24px; }
    .service-video, .service-image { height: 200px; }
    .service-content { padding: 24px; }
    .section-header { margin-bottom: 40px; }
    .section-header h2 { font-size: 2rem; }
    .section-header p { font-size: 1rem; }

    /* --- About --- */
    .about-content { grid-template-columns: 1fr; gap: 40px; text-align: center; }
    .about-image { order: -1; }
    .about-image img { max-width: 280px; }
    .experience-badge { top: 10px; right: calc(50% - 160px); }
    .credentials { text-align: left; }

    /* --- Resources Tabs --- */
    .tab-buttons { gap: 10px; }
    .tab-btn { padding: 10px 18px; font-size: 0.9rem; }
    .ebooks-grid, .workshops-grid, .blog-grid { grid-template-columns: 1fr; gap: 20px; }

    /* --- Testimonials --- */
    .testimonial-content { padding: 28px 20px; }
    .testimonial-content p { font-size: 1.05rem; }
    .testimonial-stats { gap: 30px; flex-wrap: wrap; justify-content: center; }
    .testimonial-stats .stat-number { font-size: 2rem; }

    /* --- Contact --- */
    .contact-content { grid-template-columns: 1fr; gap: 40px; }
    .contact-form { padding: 28px 20px; }

    /* --- Footer --- */
    .footer-content { grid-template-columns: 1fr 1fr; gap: 30px; }
    .footer-bottom { flex-direction: column; text-align: center; gap: 12px; }
    .footer-links { justify-content: center; gap: 20px; flex-wrap: wrap; }

    /* --- AI Modal --- */
    .modal-content { margin: 0; width: 100%; max-width: 100%; height: 100vh; max-height: 100vh; border-radius: 0; }
    .ai-assessment-container { padding: 30px 20px; }
    .ai-results { grid-template-columns: 1fr; gap: 16px; }
    .assessment-navigation { flex-direction: row; gap: 12px; }
    .btn-prev, .btn-next { flex: 1; text-align: center; }

    /* --- Typography --- */
    h1 { font-size: 2.2rem; }
    h2 { font-size: 1.9rem; }
    h3 { font-size: 1.5rem; }
    h4 { font-size: 1.2rem; }
    p { font-size: 1rem; }
}

/* ---- Mobile (600px) ---- */
@media (max-width: 600px) {
    :root { --section-padding: 60px 0; }
    .container { padding: 0 16px; }
    .footer-content { grid-template-columns: 1fr; }
    .workshop-details { flex-direction: column; gap: 8px; }
    .blog-meta { flex-wrap: wrap; gap: 8px; }
    .social-links { justify-content: center; }
    .contact-item { gap: 14px; }
    .credential-item { padding: 12px; }
    .ebook-card, .workshop-card, .blog-card { padding: 22px 18px; }
    .tab-buttons { flex-direction: column; align-items: stretch; }
    .tab-btn { text-align: center; }
}

/* ---- Small Mobile (480px) ---- */
@media (max-width: 480px) {
    :root { --section-padding: 50px 0; }

    /* Hero */
    .hero-title { font-size: 2rem; }
    .hero-title .subtitle { font-size: 1.5rem; }
    .hero-stats { flex-direction: column; align-items: center; gap: 16px; }
    .stat-item { display: flex; align-items: center; gap: 12px; }
    .stat-number { font-size: 2rem; }
    .hero-buttons .btn-primary,
    .hero-buttons .btn-secondary { font-size: 0.95rem; padding: 14px 20px; }

    /* Navigation brand */
    .nav-brand h1 { font-size: 1.1rem; }
    .nav-brand span { display: none; }

    /* Services */
    .service-video, .service-image { height: 180px; }
    .service-content { padding: 20px 16px; }
    .service-content h3 { font-size: 1.3rem; }

    /* Section headers */
    .section-header h2 { font-size: 1.7rem; }
    .section-header p { font-size: 0.95rem; }

    /* Testimonials */
    .testimonial-author { flex-direction: column; gap: 12px; text-align: center; }
    .testimonial-stats { flex-direction: column; gap: 16px; }

    /* Contact form */
    .form-group input,
    .form-group select,
    .form-group textarea { padding: 14px 12px; font-size: 0.95rem; }
    .btn-submit { padding: 16px; font-size: 1rem; }

    /* AI Modal */
    .ai-assessment-container { padding: 24px 16px; }
    .ai-assessment-container h2 { font-size: 1.4rem; }
    .pain-point { padding: 8px 12px; font-size: 0.85rem; }
    .recommendation-card { padding: 16px; }

    /* Footer */
    .footer { padding: 40px 0 16px; }
    .footer-links { flex-direction: column; align-items: center; gap: 10px; }

    /* Typography */
    h1 { font-size: 1.9rem; }
    h2 { font-size: 1.6rem; }
    h3 { font-size: 1.3rem; }
    p { font-size: 0.95rem; }
}

/* ---- Extra Small Mobile (360px) ---- */
@media (max-width: 360px) {
    .hero-title { font-size: 1.75rem; }
    .hero-title .subtitle { font-size: 1.3rem; }
    .hero-subtitle { font-size: 1rem; }
    .nav-brand h1 { font-size: 1rem; }
    .section-header h2 { font-size: 1.5rem; }
    .btn-primary, .btn-secondary { padding: 12px 16px; font-size: 0.9rem; }
    .service-content h3 { font-size: 1.2rem; }
    .ebook-card, .workshop-card, .blog-card { padding: 18px 14px; }
    .contact-form { padding: 20px 14px; }
}

/* ---- Touch Device Enhancements ---- */
@media (hover: none) and (pointer: coarse) {
    /* Larger tap targets for touch */
    .nav-link { min-height: 48px; display: flex; align-items: center; justify-content: center; }
    .btn-primary, .btn-secondary, .btn-service,
    .btn-download, .btn-register, .btn-submit,
    .btn-ai-assessment, .btn-book-appointment,
    .btn-prev, .btn-next, .tab-btn { min-height: 48px; }
    .pain-point { min-height: 44px; min-width: 80px; }
    .social-link { width: 54px; height: 54px; }
    .hamburger { padding: 8px; }
    /* Remove hover transforms on touch (prevents sticky states) */
    .service-card:hover { transform: none; }
    .ebook-card:hover, .workshop-card:hover, .blog-card:hover { transform: none; }
    .btn-primary:hover, .btn-secondary:hover { transform: none; }
    /* Active states for touch feedback */
    .btn-primary:active { transform: scale(0.97); opacity: 0.9; }
    .btn-secondary:active { transform: scale(0.97); }
    .service-card:active { transform: scale(0.99); }
    .pain-point:active { transform: scale(0.95); }
}

/* ---- Landscape Mobile ---- */
@media (max-width: 768px) and (orientation: landscape) {
    .hero { min-height: auto; }
    .hero-content { padding: 80px 20px 40px; min-height: auto; }
    .hero-title { font-size: 1.8rem; }
    .hero-title .subtitle { font-size: 1.4rem; }
    .hero-stats { gap: 20px; }
    .stat-number { font-size: 1.8rem; }
    .modal-content { height: 100vh; overflow-y: auto; }
    .nav-menu { overflow-y: auto; }
}

/* ---- Performance: Reduce animations on low-power devices ---- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .fade-in, .slide-in-left, .slide-in-right {
        opacity: 1;
        transform: none;
    }
}

/* ---- High DPI / Retina Screens ---- */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .hero-overlay { background: linear-gradient(135deg, rgba(46,139,87,0.85), rgba(80,200,120,0.65)); }
}

/* ---- Print Styles ---- */
@media print {
    .navbar, .hero-buttons, .btn-ai-assessment, .btn-book-appointment,
    .hamburger, .modal, .scroll-indicator { display: none !important; }
    body { font-size: 12pt; color: #000; }
    .hero { min-height: auto; padding: 20px 0; }
    .hero-overlay { display: none; }
    .hero-text { color: #000; }
}

/* Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

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

.slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.6s ease;
}

.slide-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.slide-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.6s ease;
}

.slide-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: var(--white);
    animation: spin 1s ease-in-out infinite;
}

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

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }

.hidden { display: none; }
.visible { display: block; }
