/* ==========================================================================
   ACCIDENT INJURY CLINIC - MAIN STYLESHEET
   Mobile-First Approach
   ========================================================================== */

:root {
    --primary-red: #A00000;
    --primary-red-dark: #8B0000;
    --white: #FFFFFF;
    --off-white: #F8F8F8;
    --dark-gray: #333333;
    --medium-gray: #666666;
    --light-gray: #E5E5E5;
    --success-green: #2E7D32;
    
    --font-primary: 'Montserrat', Arial, sans-serif;
    --transition-fast: 0.2s ease-out;
    --transition-medium: 0.3s ease-out;
    --transition-slow: 0.4s ease-in-out;
    
    --header-height: 70px;
    --container-width: 1200px;
    --border-radius: 6px;
}

/* ==========================================================================
   BASE STYLES
   ========================================================================== */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    font-size: 16px;
    line-height: 1.6;
    color: var(--dark-gray);
    background-color: var(--white);
    overflow-x: hidden;
}

@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;
    }
}

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

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

a:hover {
    color: var(--primary-red-dark);
}

ul {
    list-style: none;
}

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

/* ==========================================================================
   TYPOGRAPHY
   ========================================================================== */

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--dark-gray);
}

h1 {
    font-size: 2rem;
}

h2 {
    font-size: 1.75rem;
}

h3 {
    font-size: 1.25rem;
}

p {
    margin-bottom: 1rem;
    color: var(--medium-gray);
}

.section-title {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    text-align: center;
}

.section-subtitle {
    font-size: 1.125rem;
    text-align: center;
    margin-bottom: 2rem;
}

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

/* ==========================================================================
   SKIP LINK (Accessibility)
   ========================================================================== */

.skip-link {
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-red);
    color: var(--white);
    padding: 10px 20px;
    z-index: 10000;
    border-radius: var(--border-radius);
    transition: top var(--transition-fast);
}

.skip-link:focus {
    top: 10px;
}

/* ==========================================================================
   HEADER
   ========================================================================== */

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background: var(--white);
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all var(--transition-medium);
}

.header.scrolled {
    height: 60px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

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

.logo {
    display: block;
}

.logo-img {
    height: 50px;
    width: auto;
}

.nav {
    display: none;
}

.header-right {
    display: none;
}

.hamburger {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.hamburger span {
    width: 100%;
    height: 2px;
    background-color: var(--dark-gray);
    transition: all var(--transition-medium);
    transform-origin: center;
}

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

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

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

/* Mobile Navigation Overlay */
.mobile-nav-overlay {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: var(--white);
    z-index: 999;
    transition: right var(--transition-medium);
    overflow-y: auto;
    padding: 80px 30px 30px;
}

.mobile-nav-overlay.active {
    right: 0;
}

.mobile-close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 2rem;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--dark-gray);
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-nav-list {
    margin-bottom: 30px;
}

.mobile-nav-link {
    display: block;
    padding: 15px 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--dark-gray);
    border-bottom: 1px solid var(--light-gray);
}

.mobile-nav-contact {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

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

.mobile-contact-info {
    text-align: center;
    padding: 20px;
    background: var(--off-white);
    border-radius: var(--border-radius);
}

.mobile-contact-info p {
    margin: 0;
    font-size: 0.875rem;
}

/* ==========================================================================
   BUTTONS / CTAs
   ========================================================================== */

.cta-primary-fill {
    display: inline-block;
    background: var(--primary-red);
    color: var(--white);
    padding: 12px 24px;
    font-weight: 600;
    font-size: 0.875rem;
    border: 2px solid var(--primary-red);
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all var(--transition-fast);
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cta-primary-fill:hover {
    background: var(--primary-red-dark);
    border-color: var(--primary-red-dark);
    color: var(--white);
}

.cta-primary-fill:active {
    transform: scale(0.98);
}

.cta-secondary-outline {
    display: inline-block;
    background: transparent;
    color: var(--primary-red);
    padding: 10px 20px;
    font-weight: 500;
    font-size: 0.875rem;
    border: 2px solid var(--primary-red);
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all var(--transition-fast);
    text-align: center;
}

.cta-secondary-outline:hover {
    background: rgba(160, 0, 0, 0.1);
    color: var(--primary-red);
}

/* ==========================================================================
   HERO SECTIONS
   ========================================================================== */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: var(--header-height);
    overflow: hidden;
}

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

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

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.5) 100%);
}

.hero-content {
    text-align: center;
    color: var(--white);
    padding: 40px 20px;
    max-width: 800px;
}

.hero-title {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--white);
}

.title-word {
    display: inline-block;
    opacity: 0;
    transform: translateY(20px);
    animation: wordReveal 0.5s forwards;
}

.title-word:nth-child(1) { animation-delay: 0.1s; }
.title-word:nth-child(2) { animation-delay: 0.2s; }
.title-word:nth-child(3) { animation-delay: 0.3s; }
.title-word:nth-child(4) { animation-delay: 0.4s; }
.title-word:nth-child(5) { animation-delay: 0.5s; }
.title-word:nth-child(6) { animation-delay: 0.6s; }
.title-word:nth-child(7) { animation-delay: 0.7s; }
.title-word:nth-child(8) { animation-delay: 0.8s; }

@keyframes wordReveal {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-subtitle {
    font-size: 1.125rem;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.9);
}

.hero-ctas {
    display: flex;
    flex-direction: column;
    gap: 15px;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.hero-phone {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
}

.hero-phone a {
    color: var(--white);
    font-weight: 600;
}

.hero-scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--white);
    font-size: 0.75rem;
    opacity: 0.8;
    animation: bounce 2s infinite;
}

.scroll-arrow {
    width: 24px;
    height: 24px;
    margin-top: 5px;
}

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

/* Page Hero (inner pages) */
.page-hero {
    position: relative;
    min-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: var(--header-height);
    margin-bottom: 60px;
}

.page-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

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

.page-hero-content {
    text-align: center;
    color: var(--white);
    padding: 40px 20px;
}

.page-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--white);
}

.page-subtitle {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin: 0 auto;
}

/* ==========================================================================
   SPLIT LAYOUT SECTIONS
   ========================================================================== */

.split-layout {
    display: grid;
    gap: 40px;
    align-items: center;
}

.split-image img {
    width: 100%;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.split-content .section-title {
    text-align: left;
}

.split-content .section-subtitle {
    text-align: left;
}

/* ==========================================================================
   WHY CHOOSE US / FEATURES
   ========================================================================== */

.why-choose-us {
    padding: 80px 0;
    background: var(--off-white);
}

.features-grid {
    display: grid;
    gap: 25px;
}

.feature-card {
    background: var(--white);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: all var(--transition-medium);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    background: rgba(160, 0, 0, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-icon svg {
    width: 28px;
    height: 28px;
    stroke: var(--primary-red);
}

.feature-card h3 {
    margin-bottom: 10px;
}

.feature-card p {
    font-size: 0.9rem;
    margin: 0;
}

/* ==========================================================================
   SERVICES OVERVIEW / GRID
   ========================================================================== */

.services-overview {
    padding: 80px 0;
}

.services-grid {
    display: grid;
    gap: 20px;
}

.service-card {
    background: var(--off-white);
    padding: 30px;
    border-radius: var(--border-radius);
    text-align: center;
    transition: all var(--transition-medium);
    display: block;
    color: var(--dark-gray);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    background: var(--white);
}

.service-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.service-icon svg {
    width: 32px;
    height: 32px;
    stroke: var(--primary-red);
}

.service-card h3 {
    font-size: 1.125rem;
    margin-bottom: 10px;
}

.service-card p {
    font-size: 0.875rem;
    margin-bottom: 15px;
}

.service-link {
    color: var(--primary-red);
    font-weight: 600;
    font-size: 0.875rem;
}

.services-cta {
    text-align: center;
    margin-top: 40px;
}

/* ==========================================================================
   TESTIMONIALS
   ========================================================================== */

.testimonials {
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.testimonials-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.testimonials-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.15;
}

.testimonials .container {
    position: relative;
    z-index: 1;
}

.testimonial-track {
    position: relative;
    overflow: hidden;
    min-height: 300px;
}

.testimonial-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    transform: translateX(50px);
    transition: all var(--transition-medium);
    pointer-events: none;
}

.testimonial-slide.active {
    opacity: 1;
    transform: translateX(0);
    position: relative;
    pointer-events: auto;
}

.testimonial-quote {
    font-size: 1.25rem;
    line-height: 1.8;
    text-align: center;
    color: var(--dark-gray);
    margin-bottom: 20px;
    font-style: italic;
}

.testimonial-author {
    display: block;
    text-align: center;
    font-style: normal;
}

.author-name {
    display: block;
    font-weight: 700;
    color: var(--dark-gray);
}

.author-city {
    display: block;
    font-size: 0.875rem;
    color: var(--medium-gray);
}

.carousel-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.carousel-btn {
    width: 44px;
    height: 44px;
    border: 2px solid var(--primary-red);
    background: transparent;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.carousel-btn:hover {
    background: var(--primary-red);
}

.carousel-btn svg {
    width: 20px;
    height: 20px;
    stroke: var(--primary-red);
}

.carousel-btn:hover svg {
    stroke: var(--white);
}

.carousel-dots {
    display: flex;
    gap: 10px;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--light-gray);
    border: none;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.carousel-dot.active {
    background: var(--primary-red);
    transform: scale(1.2);
}

/* ==========================================================================
   TEAM SECTION
   ========================================================================== */

.meet-team {
    padding: 80px 0;
    background: var(--off-white);
}

.team-grid {
    display: grid;
    gap: 30px;
}

.team-card {
    background: var(--white);
    padding: 30px;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: all var(--transition-medium);
}

.team-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.team-avatar {
    width: 100px;
    height: 100px;
    margin: 0 auto 20px;
    background: var(--off-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.team-avatar svg {
    width: 50px;
    height: 50px;
    stroke: var(--primary-red);
}

.team-card h3 {
    margin-bottom: 5px;
}

.team-role {
    color: var(--primary-red);
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: 10px;
}

.team-bio {
    font-size: 0.875rem;
    margin: 0;
}

.team-cta {
    text-align: center;
    margin-top: 40px;
}

/* ==========================================================================
   PATIENT JOURNEY / TIMELINE
   ========================================================================== */

.patient-journey {
    padding: 80px 0;
}

.journey-timeline {
    position: relative;
    padding: 20px 0;
}

.timeline-progress {
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--light-gray);
}

.timeline-step {
    position: relative;
    padding-left: 60px;
    margin-bottom: 40px;
}

.timeline-step:last-child {
    margin-bottom: 0;
}

.timeline-step::before {
    content: '';
    position: absolute;
    left: 14px;
    top: 0;
    width: 14px;
    height: 14px;
    background: var(--white);
    border: 3px solid var(--primary-red);
    border-radius: 50%;
    z-index: 1;
}

.step-icon {
    position: absolute;
    left: 0;
    top: 0;
    width: 44px;
    height: 44px;
    background: var(--primary-red);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.step-icon svg {
    width: 20px;
    height: 20px;
    stroke: var(--white);
}

.step-content h3 {
    margin-bottom: 8px;
}

.step-content p {
    margin: 0;
    font-size: 0.9rem;
}

/* ==========================================================================
   ATTORNEY NETWORK
   ========================================================================== */

.attorney-network {
    padding: 80px 0;
    background: var(--dark-gray);
    color: var(--white);
    position: relative;
}

.attorney-network .section-title,
.attorney-network .section-subtitle {
    color: var(--white);
    text-align: left;
}

.attorney-network p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 20px;
}

.attorney-content {
    max-width: 700px;
}

.delight-icon {
    position: absolute;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: var(--primary-red);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-medium);
}

.delight-icon:hover {
    transform: scale(1.1);
}

.delight-icon svg {
    width: 28px;
    height: 28px;
    stroke: var(--white);
}

/* ==========================================================================
   FAQ SECTION
   ========================================================================== */

.faq-section {
    padding: 80px 0;
    background: var(--off-white);
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--white);
    border-radius: var(--border-radius);
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.faq-question {
    width: 100%;
    padding: 20px;
    background: none;
    border: none;
    text-align: left;
    font-size: 1rem;
    font-weight: 600;
    color: var(--dark-gray);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-icon {
    font-size: 1.5rem;
    color: var(--primary-red);
    transition: transform var(--transition-fast);
}

.faq-question[aria-expanded="true"] .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-medium);
}

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

.faq-answer p {
    padding: 0 20px 20px;
    margin: 0;
}

.faq-cta {
    text-align: center;
    margin-top: 40px;
}

/* ==========================================================================
   CTA FINAL SECTION
   ========================================================================== */

.cta-final {
    padding: 80px 0;
    text-align: center;
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--primary-red-dark) 100%);
}

.cta-title {
    font-size: 2rem;
    color: var(--white);
    margin-bottom: 1rem;
}

.cta-subtitle {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
}

.cta-final .cta-primary-fill {
    background: var(--white);
    color: var(--primary-red);
    border-color: var(--white);
    font-size: 1.125rem;
    padding: 16px 40px;
}

.cta-final .cta-primary-fill:hover {
    background: var(--off-white);
}

.cta-phone {
    color: var(--white);
    margin-top: 1.5rem;
}

.cta-phone a {
    color: var(--white);
    font-weight: 700;
}

/* Pulse animation for CTA */
.pulse-btn {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.4); }
    70% { box-shadow: 0 0 0 15px rgba(255, 255, 255, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
}

/* ==========================================================================
   CONTACT INFO & MAP
   ========================================================================== */

.contact-info {
    padding: 80px 0;
}

.contact-grid {
    display: grid;
    gap: 40px;
}

.contact-item {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}

.contact-item .icon {
    width: 24px;
    height: 24px;
    stroke: var(--primary-red);
    flex-shrink: 0;
}

.contact-item h3 {
    font-size: 1rem;
    margin-bottom: 5px;
}

.contact-item a,
.contact-item p {
    margin: 0;
    font-size: 0.9rem;
}

.contact-map iframe {
    border-radius: var(--border-radius);
    width: 100%;
}

/* ==========================================================================
   SERVICES PAGE SPECIFIC
   ========================================================================== */

.services-introduction {
    padding: 60px 0;
}

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

.intro-content .section-title {
    margin-bottom: 1.5rem;
}

.services-categories {
    padding: 60px 0;
    background: var(--off-white);
}

.categories-grid {
    display: grid;
    gap: 20px;
}

.category-card {
    background: var(--white);
    padding: 30px;
    border-radius: var(--border-radius);
    text-align: center;
    transition: all var(--transition-medium);
    display: block;
    color: var(--dark-gray);
    border: 2px solid transparent;
}

.category-card:hover {
    border-color: var(--primary-red);
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.category-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    background: rgba(160, 0, 0, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.category-icon svg {
    width: 32px;
    height: 32px;
    stroke: var(--primary-red);
}

.category-card h3 {
    margin-bottom: 10px;
}

.category-card p {
    font-size: 0.875rem;
    margin: 0;
}

.service-detail {
    padding: 80px 0;
}

.service-detail.alt-bg {
    background: var(--off-white);
}

.benefit-list {
    margin: 20px 0;
}

.benefit-list li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 10px;
    color: var(--medium-gray);
}

.benefit-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 8px;
    height: 8px;
    background: var(--primary-red);
    border-radius: 50%;
}

.services-cta-section {
    padding: 80px 0;
    text-align: center;
    background: var(--dark-gray);
}

.services-cta-section .section-title,
.services-cta-section .section-subtitle {
    color: var(--white);
}

.services-cta-section .cta-phone {
    margin-top: 1rem;
}

.cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    justify-content: center;
}

/* ==========================================================================
   ABOUT PAGE SPECIFIC
   ========================================================================== */

.about-story {
    padding: 80px 0;
}

.story-content {
    max-width: 800px;
    margin: 0 auto;
}

.story-content .section-title {
    margin-bottom: 1.5rem;
}

.story-content p {
    margin-bottom: 1.5rem;
}

.mission-values {
    padding: 80px 0;
    background: var(--off-white);
}

.values-grid {
    display: grid;
    gap: 40px;
}

.mission-statement {
    padding: 30px;
    background: var(--white);
    border-radius: var(--border-radius);
    text-align: center;
}

.values-list .section-title {
    text-align: left;
}

.value-item {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}

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

.value-icon svg {
    width: 24px;
    height: 24px;
    stroke: var(--white);
}

.value-item h3 {
    margin-bottom: 5px;
}

.value-item p {
    margin: 0;
    font-size: 0.9rem;
}

/* About Team */
.about-team {
    padding: 80px 0;
}

.team-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 40px;
}

.filter-btn {
    padding: 8px 20px;
    background: transparent;
    border: 2px solid var(--light-gray);
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.875rem;
    transition: all var(--transition-fast);
}

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

.team-grid-full {
    display: grid;
    gap: 30px;
}

.team-card-full {
    background: var(--white);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: all var(--transition-medium);
}

.team-card-full:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.team-specialty {
    color: var(--primary-red);
    font-weight: 600;
    font-size: 0.8rem;
    margin-bottom: 15px;
}

.team-profile-btn {
    margin-top: 15px;
    padding: 8px 20px;
    background: transparent;
    border: 2px solid var(--primary-red);
    color: var(--primary-red);
    border-radius: var(--border-radius);
    cursor: pointer;
    font-size: 0.875rem;
    transition: all var(--transition-fast);
}

.team-profile-btn:hover {
    background: var(--primary-red);
    color: var(--white);
}

/* Facilities */
.facilities-section {
    padding: 80px 0;
    background: var(--off-white);
}

.facilities-gallery {
    display: grid;
    gap: 20px;
}

.facility-item {
    border-radius: var(--border-radius);
    overflow: hidden;
}

.facility-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform var(--transition-medium);
}

.facility-item:hover img {
    transform: scale(1.05);
}

/* Community */
.community-section {
    padding: 80px 0;
}

.community-section p {
    max-width: 800px;
    margin: 0 auto 1rem;
}

.about-cta {
    padding: 80px 0;
    background: var(--dark-gray);
    text-align: center;
}

.about-cta .section-title,
.about-cta .section-subtitle {
    color: var(--white);
}

.about-cta .cta-buttons {
    margin-top: 30px;
}

/* ==========================================================================
   PATIENT RESOURCES PAGE
   ========================================================================== */

.patient-forms {
    padding: 80px 0;
}

.forms-grid {
    display: grid;
    gap: 15px;
}

.form-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: var(--white);
    border: 1px solid var(--light-gray);
    border-radius: var(--border-radius);
    transition: all var(--transition-fast);
    color: var(--dark-gray);
}

.form-card:hover {
    border-color: var(--primary-red);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.form-icon {
    width: 50px;
    height: 50px;
    background: var(--off-white);
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.form-icon svg {
    width: 24px;
    height: 24px;
    stroke: var(--primary-red);
}

.form-info {
    flex: 1;
}

.form-info h3 {
    font-size: 1rem;
    margin-bottom: 3px;
}

.form-info p {
    font-size: 0.8rem;
    margin: 0;
    color: var(--medium-gray);
}

.download-label {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.8rem;
    color: var(--primary-red);
    font-weight: 600;
}

.download-label svg {
    width: 16px;
    height: 16px;
}

.forms-note {
    margin-top: 30px;
    padding: 20px;
    background: var(--off-white);
    border-radius: var(--border-radius);
    font-size: 0.9rem;
    text-align: center;
}

/* FAQ Search */
.faq-search {
    position: relative;
    max-width: 500px;
    margin: 0 auto 40px;
}

.search-input {
    width: 100%;
    padding: 15px 50px 15px 20px;
    border: 2px solid var(--light-gray);
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: border-color var(--transition-fast);
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-red);
}

.search-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    stroke: var(--medium-gray);
}

.faq-categories {
    display: grid;
    gap: 40px;
}

.faq-category h3 {
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-red);
}

/* Legal Section */
.legal-aid-section {
    padding: 80px 0;
    background: var(--off-white);
}

.legal-content {
    display: grid;
    gap: 40px;
}

.legal-text h3 {
    margin-top: 20px;
    margin-bottom: 10px;
}

.legal-text h3:first-child {
    margin-top: 0;
}

.legal-cta {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Health Education */
.health-education {
    padding: 80px 0;
}

.articles-grid {
    display: grid;
    gap: 25px;
}

.article-card {
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: all var(--transition-medium);
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.article-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.article-content {
    padding: 20px;
}

.article-content h3 {
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.article-content p {
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.article-link {
    font-weight: 600;
    font-size: 0.875rem;
}

.articles-cta {
    text-align: center;
    margin-top: 40px;
}

.resources-cta {
    padding: 80px 0;
    text-align: center;
    background: var(--dark-gray);
}

.resources-cta .section-title,
.resources-cta .section-subtitle {
    color: var(--white);
}

/* ==========================================================================
   CONTACT PAGE
   ========================================================================== */

.contact-info-block {
    padding: 60px 0;
}

.contact-cards {
    display: grid;
    gap: 20px;
}

.contact-card {
    background: var(--white);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: all var(--transition-medium);
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.contact-card-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    background: rgba(160, 0, 0, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-card-icon svg {
    width: 28px;
    height: 28px;
    stroke: var(--primary-red);
}

.contact-card h3 {
    margin-bottom: 10px;
}

.contact-link {
    font-weight: 600;
    font-size: 1.125rem;
    display: block;
    margin-bottom: 5px;
}

.contact-note {
    font-size: 0.8rem;
    color: var(--medium-gray);
    margin: 0;
}

.contact-hours {
    font-size: 0.9rem;
    margin: 0;
}

/* Contact Form */
.contact-form-section {
    padding: 80px 0;
    background: var(--off-white);
}

.form-container {
    max-width: 700px;
    margin: 0 auto;
    background: var(--white);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.form-container .section-title,
.form-container .section-desc {
    text-align: center;
}

.form-row {
    display: grid;
    gap: 20px;
    margin-bottom: 20px;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--dark-gray);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--light-gray);
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-family: inherit;
    transition: border-color var(--transition-fast);
}

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

.form-group textarea {
    resize: vertical;
}

.consent-checkbox {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.consent-checkbox input {
    width: auto;
    margin-top: 3px;
}

.consent-checkbox label {
    font-weight: 400;
    font-size: 0.875rem;
}

.submit-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

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

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

.success-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: var(--success-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.success-icon svg {
    width: 40px;
    height: 40px;
    stroke: var(--white);
}

/* Map Section */
.contact-map-section {
    padding: 80px 0;
}

.map-container .section-title {
    margin-bottom: 30px;
}

.map-wrapper {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.directions-cta {
    text-align: center;
    margin-top: 30px;
}

/* Hours & Appointments */
.hours-appointments {
    padding: 80px 0;
    background: var(--off-white);
}

.hours-content {
    display: grid;
    gap: 40px;
}

.hours-table {
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
}

.hours-row {
    display: flex;
    justify-content: space-between;
    padding: 15px 20px;
    border-bottom: 1px solid var(--light-gray);
}

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

.hours-row.closed {
    background: var(--off-white);
}

.hours-row .day {
    font-weight: 600;
}

.hours-row .time {
    color: var(--medium-gray);
}

.booking-info h2 {
    margin-bottom: 20px;
}

.booking-options {
    margin: 20px 0;
}

.booking-options li {
    margin-bottom: 15px;
    color: var(--medium-gray);
}

.booking-note {
    font-size: 0.875rem;
    color: var(--medium-gray);
    font-style: italic;
    margin-bottom: 20px;
}

/* Emergency Disclaimer */
.emergency-disclaimer {
    padding: 30px 0;
    background: var(--primary-red);
}

.disclaimer-content {
    display: flex;
    align-items: center;
    gap: 15px;
    color: var(--white);
}

.disclaimer-icon {
    width: 40px;
    height: 40px;
    stroke: var(--white);
    flex-shrink: 0;
    animation: pulse 1.5s infinite;
}

.disclaimer-content p {
    margin: 0;
    color: var(--white);
    font-size: 0.9rem;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.footer {
    background: var(--dark-gray);
    color: var(--white);
    padding: 60px 0 20px;
}

.footer-grid {
    display: grid;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo-img {
    height: 60px;
    width: auto;
    margin-bottom: 15px;
}

.footer-tagline {
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--white);
}

.footer-desc {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
}

.footer-col h3 {
    color: var(--white);
    font-size: 1rem;
    margin-bottom: 20px;
}

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

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    transition: color var(--transition-fast);
}

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

.footer-contact ul li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.footer-contact .icon {
    width: 18px;
    height: 18px;
    stroke: var(--white);
    flex-shrink: 0;
}

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

.footer-legal a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
}

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

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.social-links a:hover {
    background: var(--primary-red);
}

.social-links svg {
    width: 20px;
    height: 20px;
    fill: var(--white);
}

.trust-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.trust-badge {
    padding: 5px 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.8);
}

.footer-bottom {
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.footer-bottom p {
    margin: 0;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.5);
}

/* ==========================================================================
   RESPONSIVE - TABLET (768px - 1023px)
   ========================================================================== */

@media (min-width: 768px) {
    :root {
        --header-height: 80px;
    }
    
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-ctas {
        flex-direction: row;
    }
    
    .split-layout {
        grid-template-columns: 1fr 1fr;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .team-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .team-grid-full {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .categories-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .forms-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .articles-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .contact-cards {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .hours-content {
        grid-template-columns: 1fr 1fr;
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .faq-categories {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .legal-content {
        grid-template-columns: 2fr 1fr;
    }
    
    .journey-timeline {
        max-width: 600px;
        margin: 0 auto;
    }
}

/* ==========================================================================
   RESPONSIVE - DESKTOP (1024px+)
   ========================================================================== */

@media (min-width: 1024px) {
    :root {
        --header-height: 90px;
    }
    
    h1 {
        font-size: 3.5rem;
    }
    
    .hero-title {
        font-size: 4rem;
    }
    
    .page-title {
        font-size: 3.5rem;
    }
    
    .hamburger {
        display: none;
    }
    
    .nav {
        display: block;
    }
    
    .nav-list {
        display: flex;
        align-items: center;
        gap: 30px;
    }
    
    .nav-link {
        color: var(--dark-gray);
        font-weight: 500;
        font-size: 0.9rem;
        position: relative;
        padding: 5px 0;
    }
    
    .nav-link::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 50%;
        width: 0;
        height: 2px;
        background: var(--primary-red);
        transition: all var(--transition-fast);
        transform: translateX(-50%);
    }
    
    .nav-link:hover::after {
        width: 100%;
    }
    
    .nav-item-has-children {
        position: relative;
    }
    
    .dropdown {
        position: absolute;
        top: 100%;
        left: 50%;
        transform: translateX(-50%);
        background: var(--white);
        min-width: 200px;
        padding: 15px 0;
        border-radius: var(--border-radius);
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
        opacity: 0;
        visibility: hidden;
        transition: all var(--transition-fast);
    }
    
    .nav-item-has-children:hover .dropdown {
        opacity: 1;
        visibility: visible;
    }
    
    .dropdown li a {
        display: block;
        padding: 10px 20px;
        color: var(--dark-gray);
        font-size: 0.875rem;
        transition: all var(--transition-fast);
    }
    
    .dropdown li a:hover {
        background: var(--off-white);
        color: var(--primary-red);
    }
    
    .header-right {
        display: flex;
        align-items: center;
        gap: 25px;
    }
    
    .header-contact {
        display: flex;
        flex-direction: column;
        gap: 5px;
    }
    
    .header-phone,
    .header-email {
        display: flex;
        align-items: center;
        gap: 8px;
        font-size: 0.8rem;
        color: var(--dark-gray);
    }
    
    .header-contact .icon {
        width: 16px;
        height: 16px;
        stroke: var(--primary-red);
    }
    
    .header-cta {
        display: flex;
        align-items: center;
        gap: 10px;
    }
    
    .features-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .categories-grid {
        grid-template-columns: repeat(6, 1fr);
    }
    
    .team-grid-full {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .articles-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .contact-cards {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .contact-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr 1fr;
    }
    
    .facilities-gallery {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .form-row {
        grid-template-columns: 1fr 1fr;
    }
    
    .cta-buttons {
        flex-direction: row;
    }
    
    .values-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    /* Magnetic Button Effect */
    .magnetic-btn {
        position: relative;
        transition: transform 0.1s ease-out;
    }
}

/* ==========================================================================
   UTILITY CLASSES
   ========================================================================== */

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

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

/* Gradient Text */
.gradient-text {
    background: linear-gradient(90deg, var(--dark-gray), var(--primary-red));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Reveal Animations */
.reveal-image {
    opacity: 0;
    transform: translateX(-30px);
    transition: all 0.8s ease-out;
}

.reveal-image.revealed {
    opacity: 1;
    transform: translateX(0);
}

.split-content {
    opacity: 0;
    transform: translateX(30px);
    transition: all 0.8s ease-out;
}

.split-content.revealed {
    opacity: 1;
    transform: translateX(0);
}

/* Reverse layout */
.split-layout.reverse .reveal-image {
    transform: translateX(30px);
}

.split-layout.reverse .reveal-image.revealed {
    transform: translateX(0);
}

.split-layout.reverse .split-content {
    transform: translateX(-30px);
}

.split-layout.reverse .split-content.revealed {
    transform: translateX(0);
}
