/* ============================================
   POWELL PHYSICAL THERAPY - MAIN STYLES
   ============================================ */

:root {
    --color-dark: #222222;
    --color-teal: #3b9e8f;
    --color-coral: #ef597a;
    --color-white: #ffffff;
    --color-light-gray: #f8f8f8;
    --color-medium-gray: #e0e0e0;
    
    --font-display: 'Crimson Pro', serif;
    --font-body: 'Work Sans', sans-serif;
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

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

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

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

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

h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

h3 {
    font-size: 1.75rem;
    margin-bottom: 0.75rem;
}

p {
    font-size: 1.1rem;
    line-height: 1.7;
}

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

.btn {
    display: inline-block;
    padding: 14px 32px;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 6px;
    transition: var(--transition);
    cursor: pointer;
    border: 2px solid transparent;
    text-align: center;
}

.btn-primary {
    background: var(--color-teal);
    color: var(--color-white);
    border-color: var(--color-teal);
}

.btn-primary:hover {
    background: #d4486a;
    border-color: #d4486a;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(239, 89, 122, 0.3);
}

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

.btn-outline:hover {
    background: var(--color-white);
    color: var(--color-coral);
}

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

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

.btn-large {
    padding: 18px 40px;
    font-size: 1.1rem;
}

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

.header {
    background: var(--color-dark);
    padding: 12px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-img {
    height: 100px;
    width: auto;
    display: block;
}

.nav {
    display: flex;
    gap: 32px;
}

.nav a {
    color: var(--color-white);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: var(--transition);
    position: relative;
}

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

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

.nav a:hover {
    color: var(--color-teal);
}

.header-cta {
    display: flex;
    align-items: center;
    gap: 20px;
}

.phone {
    color: var(--color-coral);
    font-weight: 700;
    font-size: 1.1rem;
    text-decoration: none;
    transition: var(--transition);
}

.phone:hover {
    color: var(--color-teal);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.mobile-menu-toggle span {
    display: block;
    width: 26px;
    height: 2px;
    background: var(--color-white);
    border-radius: 2px;
    transition: var(--transition);
}

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

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

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

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
    position: relative;
    min-height: 600px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('images/pt0.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-background::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(34, 34, 34, 0.88) 0%, rgba(26, 58, 58, 0.82) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 80px 0;
    max-width: 1000px;
    text-align: center;
}

.hero-title {
    font-size: 3.5rem;
    color: var(--color-white);
    margin-bottom: 24px;
    line-height: 1.1;
    animation: fadeInUp 0.8s ease-out;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
    animation: fadeInUp 0.8s ease-out 0.2s backwards;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    animation: fadeInUp 0.8s ease-out 0.4s backwards;
}

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

/* ============================================
   FEATURES SECTION
   ============================================ */

.features {
    padding: 100px 0;
    background: var(--color-white);
}

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

.feature-card {
    text-align: center;
    padding: 40px 30px;
    background: var(--color-light-gray);
    border-radius: 12px;
    transition: var(--transition);
}

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

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-coral), #d4486a);
    color: var(--color-white);
}

.feature-card h3 {
    color: var(--color-dark);
    margin-bottom: 12px;
    font-size: 1.5rem;
}

.feature-card p {
    color: #666;
    font-size: 1rem;
}

/* ============================================
   IMAGE GALLERY STRIP
   ============================================ */

.image-gallery-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    overflow: hidden;
}

.gallery-item {
    position: relative;
    height: 280px;
    overflow: hidden;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.gallery-item:hover img {
    transform: scale(1.08);
}

.gallery-item .gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(transparent, rgba(34, 34, 34, 0.8));
    color: var(--color-white);
    font-weight: 600;
    font-size: 1rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

/* ============================================
   PROBLEMS SECTION
   ============================================ */

.problems {
    padding: 100px 0;
    background: var(--color-light-gray);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 60px;
    color: var(--color-dark);
}

.problems-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
}

.problem-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.problem-item {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--color-white);
    padding: 20px 24px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.problem-item:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    transform: translateX(8px);
}

.problem-item svg {
    flex-shrink: 0;
    color: var(--color-teal);
}

.problem-item span {
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--color-dark);
}

/* ============================================
   SOLUTION SECTION
   ============================================ */

.solution {
    padding: 100px 0;
    background: var(--color-white);
}

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

.solution-card {
    text-align: center;
    padding: 40px 30px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--color-teal), #2d7e72);
    color: var(--color-white);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.solution-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, transparent, rgba(255, 255, 255, 0.1));
    transform: translateX(-100%);
    transition: var(--transition);
}

.solution-card:hover::before {
    transform: translateX(0);
}

.solution-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 40px rgba(59, 158, 143, 0.3);
}

.solution-number {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 700;
    opacity: 0.3;
    margin-bottom: 16px;
}

.solution-card h3 {
    font-size: 1.5rem;
    margin-bottom: 12px;
}

.solution-card p {
    font-size: 1rem;
    opacity: 0.95;
}

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

.cta {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--color-dark) 0%, #1a3a3a 100%);
    position: relative;
    overflow: hidden;
}

.cta::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(59, 158, 143, 0.2), transparent);
    border-radius: 50%;
}

.cta-content {
    text-align: center;
    position: relative;
    z-index: 2;
}

.cta h2 {
    color: var(--color-white);
    font-size: 3rem;
    margin-bottom: 16px;
}

.cta p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.3rem;
    margin-bottom: 40px;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ============================================
   CONDITIONS SECTION
   ============================================ */

.conditions {
    padding: 100px 0;
    background: var(--color-dark);
    color: var(--color-white);
}

.conditions .section-title {
    color: var(--color-white);
}

.conditions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
    margin-top: 60px;
}

.condition-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 24px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

.condition-item:hover {
    background: rgba(59, 158, 143, 0.1);
    border-color: var(--color-teal);
    transform: translateY(-4px);
}

.condition-item svg {
    color: var(--color-teal);
    flex-shrink: 0;
}

.condition-item span {
    font-size: 1.05rem;
    font-weight: 500;
}

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

.footer {
    background: var(--color-dark);
    color: var(--color-white);
    padding: 60px 0 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

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

.footer-brand a {
    display: inline-block;
    margin-bottom: 16px;
}

.footer-logo-img {
    height: 140px;
    width: auto;
    display: block;
}

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

.footer-col h4 {
    font-size: 1.2rem;
    margin-bottom: 16px;
    color: var(--color-teal);
}

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

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

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
}

.footer-col ul li a:hover {
    color: var(--color-teal);
    padding-left: 8px;
}

.contact-list li {
    color: rgba(255, 255, 255, 0.8);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.95rem;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 968px) {
    .header-content {
        flex-wrap: wrap;
        position: relative;
    }
    
    .mobile-menu-toggle {
        display: flex;
        order: 3;
    }
    
    .header-cta {
        display: none;
    }
    
    .nav {
        display: none;
        order: 4;
        width: 100%;
        flex-direction: column;
        gap: 0;
        padding: 16px 0 8px;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        margin-top: 12px;
    }
    
    .nav.active {
        display: flex;
    }
    
    .nav a {
        padding: 12px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }
    
    .nav a::after {
        display: none;
    }
    
    .logo-img {
        height: 80px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .problems-grid {
        grid-template-columns: 1fr;
    }
    
    .cta h2 {
        font-size: 2.2rem;
    }
    
    .image-gallery-strip {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .gallery-item {
        height: 220px;
    }
}

@media (max-width: 640px) {
    .desktop-break {
        display: none;
    }
    .section-title {
        font-size: 2rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .features-grid,
    .solution-grid,
    .conditions-grid {
        grid-template-columns: 1fr;
    }
    
    .logo-img {
        height: 80px;
    }
    
    .footer-logo-img {
        height: 150px;
        margin: 0 auto; 
    }

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

    .footer-col ul {
        display: inline-block;
        text-align: center;
    }

    .footer-col ul li a:hover {
        padding-left: 0;
    }
    
    .image-gallery-strip {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .gallery-item {
        height: 180px;
    }
    
    .gallery-item .gallery-overlay {
        opacity: 1;
        font-size: 0.85rem;
        padding: 12px;
    }
}
