/*
Theme Name: Ouch Clinic
Theme URI: https://ouch.clinic
Author: Ouch Clinic
Author URI: https://ouch.clinic
Description: A professional WordPress theme for Ouch Clinic - Physical Therapy & Wellness
Version: 1.0.0
Requires at least: 5.0
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ouch-clinic
Tags: health, medical, therapy, physiotherapy, wellness, responsive, custom-post-types
*/

/* ===========================
   CSS RESET & BASE STYLES
   =========================== */

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

:root {
    /* Green/Natural Color Palette */
    --primary-green: #2d6a4f;
    --primary-green-dark: #1b4332;
    --primary-green-light: #40916c;
    --accent-green: #52b788;
    --light-green: #95d5b2;
    --background-light: #f8fdf9;
    --background-white: #ffffff;
    --text-dark: #1b4332;
    --text-medium: #40916c;
    --text-light: #666666;
    --border-color: #d8f3dc;

    /* Typography */
    --font-primary: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, sans-serif;
    --font-heading: 'Georgia', serif;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 3rem;
    --spacing-xl: 4rem;

    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;

    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(45, 106, 79, 0.1);
    --shadow-md: 0 4px 12px rgba(45, 106, 79, 0.15);
    --shadow-lg: 0 8px 24px rgba(45, 106, 79, 0.2);
}

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

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: var(--spacing-sm);
    color: var(--primary-green-dark);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: var(--spacing-sm);
    color: var(--text-light);
}

a {
    color: var(--primary-green);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--accent-green);
}

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

.btn {
    display: inline-block;
    padding: 0.875rem 2rem;
    background-color: var(--primary-green);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn:hover {
    background-color: var(--primary-green-dark);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

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

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

/* ===========================
   LAYOUT
   =========================== */

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

.section {
    padding: var(--spacing-xl) 0;
}

.section-alt {
    background-color: var(--background-light);
}

/* ===========================
   HEADER & NAVIGATION
   =========================== */

.site-header {
    background-color: var(--background-white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-sm) 0;
}

.site-logo-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.site-logo-link:hover {
    opacity: 0.8;
}

.site-logo-image {
    height: 50px;
    width: auto;
    display: block;
}

.site-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-green);
}

/* WordPress custom logo support */
.custom-logo-link {
    display: flex;
    align-items: center;
}

.custom-logo {
    height: 50px;
    width: auto;
    display: block;
}

/* Legacy fallback */
.site-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-green);
    text-decoration: none;
}

.site-logo:hover {
    color: var(--accent-green);
}

.main-navigation ul {
    display: flex;
    list-style: none;
    gap: var(--spacing-md);
}

.main-navigation a {
    color: var(--text-dark);
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: color 0.3s ease;
}

.main-navigation a:hover,
.main-navigation .current-menu-item a {
    color: var(--primary-green);
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--primary-green);
    cursor: pointer;
}

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

.hero-section {
    position: relative;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    overflow: hidden;
}

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

.hero-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-background::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(27, 67, 50, 0.85) 0%, rgba(45, 106, 79, 0.75) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    padding: var(--spacing-xl) var(--spacing-md);
}

.hero-section h1 {
    color: white;
    font-size: 3rem;
    margin-bottom: var(--spacing-md);
}

.hero-section p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.25rem;
    margin-bottom: var(--spacing-md);
}

.hero-buttons {
    display: flex;
    gap: var(--spacing-sm);
    justify-content: center;
    flex-wrap: wrap;
}

.hero-section .btn {
    background-color: white;
    color: var(--primary-green);
}

.hero-section .btn:hover {
    background-color: var(--light-green);
    color: var(--primary-green-dark);
}

.hero-section .btn-secondary {
    background-color: transparent;
    color: white;
    border-color: white;
}

.hero-section .btn-secondary:hover {
    background-color: white;
    color: var(--primary-green);
}

/* ===========================
   SERVICES SECTION
   =========================== */

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-md);
    margin-top: var(--spacing-md);
}

.service-card {
    background: var(--background-white);
    padding: var(--spacing-md);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

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

.service-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-green-light), var(--accent-green));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--spacing-sm);
    font-size: 1.5rem;
    color: white;
}

.service-card h3 {
    color: var(--primary-green);
    margin-bottom: var(--spacing-sm);
}

.service-card p {
    margin-bottom: var(--spacing-sm);
}

.service-link {
    color: var(--primary-green);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.service-link:hover {
    color: var(--accent-green);
}

/* ===========================
   ABOUT SECTION
   =========================== */

.about-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
    align-items: center;
}

.about-image {
    width: 100%;
    height: 400px;
    background-color: var(--light-green);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

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

.about-content h2 {
    margin-bottom: var(--spacing-md);
}

.about-content ul {
    list-style: none;
    margin: var(--spacing-md) 0;
}

.about-content li {
    padding-left: 2rem;
    margin-bottom: var(--spacing-sm);
    position: relative;
    color: var(--text-light);
}

.about-content li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent-green);
    font-weight: bold;
    font-size: 1.25rem;
}

/* ===========================
   IMAGE GALLERY GRID
   =========================== */

.image-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-md);
    margin: 0 auto;
}

.gallery-image-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    background-color: var(--background-light);
}

.gallery-image-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.gallery-image-item img {
    width: 100%;
    height: 272px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

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

/* ===========================
   CONTACT FORM
   =========================== */

.contact-form {
    max-width: 600px;
    margin: var(--spacing-md) auto;
}

.form-group {
    margin-bottom: var(--spacing-md);
}

.form-group label {
    display: block;
    margin-bottom: var(--spacing-xs);
    color: var(--text-dark);
    font-weight: 600;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    font-family: var(--font-primary);
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

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

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

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

.site-footer {
    background-color: var(--primary-green-dark);
    color: white;
    padding: var(--spacing-xl) 0 var(--spacing-md);
}

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

.footer-widget h3 {
    color: white;
    margin-bottom: var(--spacing-sm);
}

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

.footer-widget li {
    margin-bottom: var(--spacing-xs);
}

.footer-widget a {
    color: rgba(255, 255, 255, 0.8);
}

.footer-widget a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: var(--spacing-md);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
}

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

@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }

    .hero-section {
        min-height: 500px;
    }

    .hero-section h1 {
        font-size: 2rem;
    }

    .hero-content {
        padding: var(--spacing-md);
    }

    /* Logo adjustments for mobile */
    .site-logo-image,
    .custom-logo {
        height: 40px;
    }

    .site-name {
        font-size: 1.25rem;
    }

    .main-navigation {
        display: none;
    }

    .main-navigation.active {
        display: block;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        box-shadow: var(--shadow-md);
    }

    .main-navigation ul {
        flex-direction: column;
        gap: 0;
    }

    .main-navigation a {
        display: block;
        padding: var(--spacing-sm);
        border-bottom: 1px solid var(--border-color);
    }

    .mobile-menu-toggle {
        display: block;
    }

    .about-section {
        grid-template-columns: 1fr;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .hero-buttons {
        flex-direction: column;
    }

    /* Image gallery stacks on mobile */
    .image-gallery-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-sm);
    }

    .gallery-image-item img {
        height: 200px;
    }
}

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

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

.section-title {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    font-size: 1.125rem;
    margin-bottom: var(--spacing-md);
}

.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mt-1 { margin-top: var(--spacing-sm); }
.mb-1 { margin-bottom: var(--spacing-sm); }
.mt-2 { margin-top: var(--spacing-md); }
.mb-2 { margin-bottom: var(--spacing-md); }

.hidden {
    display: none;
}
