/* ========================================
   Davis Chiropractic Center - Styles
   ======================================== */

/* CSS Custom Properties */
:root {
    --coral-50: #FFF5F5;
    --coral-100: #FFE8E8;
    --coral-200: #FFD0D0;
    --coral-300: #FFADAD;
    --coral-400: #FF8A8A;
    --coral-500: #FF6B6B;
    --coral-600: #E85555;
    --coral-700: #C94040;
    
    --charcoal-50: #F8F9FA;
    --charcoal-100: #F1F3F5;
    --charcoal-200: #E9ECEF;
    --charcoal-300: #DEE2E6;
    --charcoal-400: #CED4DA;
    --charcoal-500: #ADB5BD;
    --charcoal-600: #87919C;
    --charcoal-700: #636C76;
    --charcoal-800: #495057;
    --charcoal-900: #2D3436;
    --charcoal-950: #1A1F20;
    
    --white: #FFFFFF;
    --font-heading: 'Fredoka', sans-serif;
    --font-body: 'Nunito', sans-serif;
    --shadow-sm: 0 2px 8px rgba(45, 52, 54, 0.06);
    --shadow-md: 0 4px 20px rgba(45, 52, 54, 0.08);
    --shadow-lg: 0 8px 40px rgba(45, 52, 54, 0.12);
    --shadow-coral: 0 4px 20px rgba(255, 107, 107, 0.3);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.7;
    color: var(--charcoal-800);
    background-color: var(--white);
    -webkit-font-smoothing: antialiased;
}

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

a {
    color: var(--coral-600);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--coral-700);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Typography */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    color: var(--charcoal-900);
    line-height: 1.3;
    font-weight: 500;
}

h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.5rem); }
h4 { font-size: 1.1rem; }

p {
    color: var(--charcoal-700);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: var(--radius-xl);
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.btn-primary {
    background: var(--coral-500);
    color: var(--white);
    border-color: var(--coral-500);
    box-shadow: var(--shadow-coral);
}

.btn-primary:hover {
    background: var(--coral-600);
    border-color: var(--coral-600);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(255, 107, 107, 0.4);
}

.btn-outline-light {
    background: transparent;
    color: var(--white);
    border-color: var(--white);
}

.btn-outline-light:hover {
    background: var(--white);
    color: var(--charcoal-900);
    transform: translateY(-2px);
}

.btn-light {
    background: var(--white);
    color: var(--coral-600);
    border-color: var(--white);
}

.btn-light:hover {
    background: var(--charcoal-50);
    color: var(--coral-700);
    transform: translateY(-2px);
}

.btn-lg {
    padding: 16px 36px;
    font-size: 1.1rem;
}

.btn-sm {
    padding: 8px 20px;
    font-size: 0.9rem;
}

.btn-full {
    width: 100%;
    justify-content: center;
}

.btn-block {
    display: flex;
    width: 100%;
}

/* Section Tag */
.section-tag {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--coral-600);
    background: var(--coral-50);
    padding: 6px 16px;
    border-radius: var(--radius-xl);
    margin-bottom: 16px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

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

.section-subtitle {
    font-size: 1.1rem;
    color: var(--charcoal-600);
    max-width: 600px;
    margin: 16px auto 0;
}

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

/* Section spacing */
.section {
    padding: 100px 0;
}

/* ========================================
   Navigation
   ======================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.navbar.scrolled {
    box-shadow: var(--shadow-md);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--charcoal-900);
    text-decoration: none;
}

.logo:hover {
    color: var(--charcoal-900);
}

.logo-icon {
    flex-shrink: 0;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links a {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    color: var(--charcoal-700);
    text-decoration: none;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--coral-500);
    border-radius: 2px;
    transition: var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-links a:hover {
    color: var(--coral-600);
}

/* Mobile Toggle */
.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.mobile-toggle span {
    width: 24px;
    height: 2.5px;
    background: var(--charcoal-800);
    border-radius: 2px;
    transition: var(--transition);
}

.mobile-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

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

.mobile-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Menu */
.mobile-menu {
    display: none;
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--white);
    z-index: 999;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
    padding: 40px 24px;
}

.mobile-menu.active {
    display: flex;
}

.mobile-menu a {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    color: var(--charcoal-800);
    text-decoration: none;
    padding: 8px 0;
}

.mobile-menu a:hover {
    color: var(--coral-500);
}

.mobile-close {
    position: absolute;
    top: 20px;
    right: 24px;
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--charcoal-600);
    cursor: pointer;
    line-height: 1;
    padding: 8px;
}

/* ========================================
   Hero Section
   ======================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: url('https://images.pexels.com/photos/5994627/pexels-photo-5994627.jpeg?auto=compress&cs=tinysrgb&fit=crop&w=1920&h=1080') center center / cover no-repeat;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(45, 52, 54, 0.85) 0%, rgba(45, 52, 54, 0.65) 50%, rgba(255, 107, 107, 0.3) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 720px;
    padding-top: 72px;
}

.hero-badge {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    color: var(--coral-200);
    background: rgba(255, 107, 107, 0.2);
    border: 1px solid rgba(255, 107, 107, 0.4);
    padding: 8px 20px;
    border-radius: var(--radius-xl);
    margin-bottom: 24px;
    letter-spacing: 0.5px;
}

.hero h1 {
    color: var(--white);
    margin-bottom: 24px;
    font-weight: 500;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 40px;
    line-height: 1.8;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 48px;
}

.hero-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 32px;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.9);
    font-family: var(--font-heading);
    font-size: 0.95rem;
}

.trust-item svg {
    color: var(--coral-400);
    flex-shrink: 0;
}

.hero-wave {
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    line-height: 0;
}

.hero-wave svg {
    width: 100%;
    height: 80px;
}

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

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

.about-image-wrapper {
    position: relative;
}

.about-image-wrapper img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    width: 100%;
    object-fit: cover;
}

.about-image-accent {
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 120px;
    height: 120px;
    background: var(--coral-100);
    border-radius: var(--radius-lg);
    z-index: -1;
}

.about-content h2 {
    margin-bottom: 24px;
}

.about-content > p {
    margin-bottom: 16px;
}

.about-values {
    margin-top: 32px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.value-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.value-icon {
    width: 48px;
    height: 48px;
    background: var(--coral-50);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.value-item h4 {
    margin-bottom: 4px;
    color: var(--charcoal-900);
}

.value-item p {
    font-size: 0.95rem;
    color: var(--charcoal-600);
    margin: 0;
}

/* ========================================
   Services Section
   ======================================== */
.services {
    background: var(--charcoal-50);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.service-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--charcoal-100);
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--coral-200);
}

.service-icon {
    width: 64px;
    height: 64px;
    background: var(--coral-50);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.service-card h3 {
    margin-bottom: 12px;
    color: var(--charcoal-900);
}

.service-card p {
    font-size: 0.95rem;
    color: var(--charcoal-600);
    line-height: 1.7;
}

/* ========================================
   Visit Section
   ======================================== */
.visit {
    background: var(--white);
}

.visit-wrapper {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 48px;
    align-items: start;
}

.visit-content h2 {
    margin-bottom: 16px;
}

.visit-intro {
    font-size: 1.05rem;
    color: var(--charcoal-600);
    margin-bottom: 40px;
}

.steps {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.step {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.step-number {
    width: 44px;
    height: 44px;
    background: var(--coral-500);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 500;
    flex-shrink: 0;
}

.step-content h4 {
    margin-bottom: 6px;
    color: var(--charcoal-900);
}

.step-content p {
    font-size: 0.95rem;
    color: var(--charcoal-600);
    margin: 0;
}

/* Visit Sidebar Cards */
.hours-card,
.insurance-card {
    background: var(--charcoal-50);
    border-radius: var(--radius-lg);
    padding: 32px;
    margin-bottom: 24px;
    border: 1px solid var(--charcoal-100);
}

.hours-card h3,
.insurance-card h3 {
    margin-bottom: 20px;
    color: var(--charcoal-900);
}

.hours-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.hour-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid var(--charcoal-200);
    font-size: 0.95rem;
}

.hour-row:last-child {
    border-bottom: none;
}

.hour-row .day {
    color: var(--charcoal-800);
    font-weight: 600;
}

.hour-row .time {
    color: var(--charcoal-600);
}

.hour-row.closed .time {
    color: var(--charcoal-400);
}

.hours-note {
    font-size: 0.85rem;
    color: var(--charcoal-500);
    margin-top: 16px;
    font-style: italic;
}

.insurance-card p {
    font-size: 0.95rem;
    color: var(--charcoal-600);
    margin-bottom: 20px;
}

/* ========================================
   CTA Section
   ======================================== */
.cta {
    background: linear-gradient(135deg, var(--charcoal-900) 0%, var(--charcoal-800) 100%);
    padding: 80px 0;
}

.cta-content {
    text-align: center;
    max-width: 640px;
    margin: 0 auto;
}

.cta h2 {
    color: var(--white);
    margin-bottom: 20px;
}

.cta p {
    color: rgba(255, 255, 255, 0.75);
    font-size: 1.1rem;
    margin-bottom: 36px;
}

.cta-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
}

/* ========================================
   Contact Section
   ======================================== */
.contact {
    background: var(--charcoal-50);
}

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

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.info-card {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    background: var(--white);
    padding: 24px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.info-icon {
    width: 52px;
    height: 52px;
    background: var(--coral-50);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.info-card h4 {
    margin-bottom: 6px;
    color: var(--charcoal-900);
}

.info-card p {
    font-size: 0.95rem;
    color: var(--charcoal-600);
    margin-bottom: 8px;
    line-height: 1.6;
}

.phone-link {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--coral-600);
}

.phone-link:hover {
    color: var(--coral-700);
}

.info-hint {
    font-size: 0.85rem;
    color: var(--charcoal-500);
}

.link-arrow {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--coral-600);
}

.link-arrow:hover {
    color: var(--coral-700);
}

/* Contact Form */
.contact-form-wrapper {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-md);
}

.contact-form h3 {
    margin-bottom: 24px;
    color: var(--charcoal-900);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--charcoal-800);
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--charcoal-200);
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--charcoal-800);
    background: var(--white);
    transition: var(--transition);
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--coral-400);
    box-shadow: 0 0 0 4px rgba(255, 107, 107, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--charcoal-400);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-privacy {
    font-size: 0.8rem;
    color: var(--charcoal-500);
    text-align: center;
    margin-top: 16px;
}

.form-success {
    display: none;
    text-align: center;
    padding: 40px 20px;
}

.form-success svg {
    margin: 0 auto 20px;
}

.form-success h3 {
    margin-bottom: 12px;
    color: var(--charcoal-900);
}

.form-success p {
    margin-bottom: 24px;
}

/* ========================================
   Map Section
   ======================================== */
.map-section {
    background: var(--charcoal-100);
}

.map-container {
    border-radius: 0;
    overflow: hidden;
}

/* ========================================
   Footer
   ======================================== */
.footer {
    background: var(--charcoal-950);
    color: rgba(255, 255, 255, 0.7);
    padding: 60px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    padding-bottom: 40px;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.95rem;
    margin-top: 16px;
    line-height: 1.7;
}

.footer-logo {
    color: var(--white);
}

.footer-links h4,
.footer-contact h4 {
    color: var(--white);
    margin-bottom: 20px;
    font-size: 1rem;
}

.footer-links ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.95rem;
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--coral-400);
}

.footer-contact p {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.9rem;
    margin-bottom: 12px;
    color: rgba(255, 255, 255, 0.6);
}

.footer-contact a {
    color: rgba(255, 255, 255, 0.6);
}

.footer-contact a:hover {
    color: var(--coral-400);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 24px 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.4);
}

.footer-bottom a {
    color: rgba(255, 255, 255, 0.4);
}

.footer-bottom a:hover {
    color: var(--coral-400);
}

/* ========================================
   Responsive Design
   ======================================== */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .visit-wrapper {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .section {
        padding: 70px 0;
    }
    
    /* Mobile Navigation */
    .nav-links {
        display: none;
    }
    
    .mobile-toggle {
        display: flex;
    }
    
    /* Hero */
    .hero {
        min-height: auto;
        padding: 120px 0 80px;
    }
    
    .hero-content {
        text-align: center;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .hero-trust {
        justify-content: center;
    }
    
    .hero-wave svg {
        height: 50px;
    }
    
    /* About */
    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .about-image-wrapper {
        order: -1;
    }
    
    .about-image-accent {
        width: 80px;
        height: 80px;
        bottom: -12px;
        right: -12px;
    }
    
    /* Services */
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    /* Contact */
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-actions .btn {
        width: 100%;
        justify-content: center;
    }
    
    .cta-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-actions .btn {
        width: 100%;
        justify-content: center;
    }
    
    .contact-form-wrapper {
        padding: 24px;
    }
    
    .hours-card,
    .insurance-card {
        padding: 24px;
    }
}

/* ========================================
   Accessibility: Reduced Motion
   ======================================== */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
