/* 
  Main Stylesheet for Therapy Practice Website
  Inspired by hollyaevansmft.com with unique styling
*/

/* ===== Base Styles ===== */
:root {
    /* Color Variables */
    --primary-color: #6b8e7d;      /* Soft sage green */
    --secondary-color: #f8f5f2;    /* Off-white */
    --accent-color: #d4a373;       /* Warm beige */
    --text-color: #333333;         /* Dark gray for text */
    --light-text: #666666;         /* Lighter gray for secondary text */
    --white: #ffffff;
    --light-bg: #f9f9f9;
    
    /* Typography */
    --heading-font: 'Playfair Display', serif;
    --body-font: 'Raleway', sans-serif;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px; /* Offset for fixed header */
}

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--heading-font);
    font-weight: 500;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

h1 {
    font-size: 3rem;
    font-weight: 600;
}

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

h3 {
    font-size: 1.75rem;
}

p {
    margin-bottom: 1.5rem;
}

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

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

ul {
    list-style: none;
}

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

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

.section-padding {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.bg-light {
    background-color: var(--secondary-color);
}

/* ===== Buttons ===== */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 4px;
    font-family: var(--body-font);
    font-size: 1rem;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

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

.btn-primary:hover {
    background-color: transparent;
    color: var(--primary-color);
}

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

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

/* ===== Header & Navigation ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo a {
    font-family: var(--heading-font);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
}

.nav-menu {
    display: flex;
}

.nav-menu li {
    margin-left: 30px;
}

.nav-link {
    font-family: 'Playfair Display', serif;
    font-size: 1rem;
    font-weight: 400;
    color: var(--text-color);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Dropdown Menu */
.nav-dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 220px;
    padding: 15px 0;
    margin-top: 10px;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

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

.dropdown-menu li {
    margin: 0;
    list-style: none;
}

.dropdown-menu a {
    display: block;
    padding: 10px 20px;
    color: var(--text-color);
    font-family: 'Playfair Display', serif;
    font-size: 0.95rem;
    font-weight: 400;
    transition: all 0.2s ease;
}

.dropdown-menu a:hover {
    background: #f8f9fa;
    color: var(--primary-color);
    padding-left: 25px;
}

/* Dropdown arrow indicator */
.nav-dropdown > a::after {
    content: '';
    display: none;
}

.menu-toggle {
    display: none;
    cursor: pointer;
}

.menu-toggle .bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--text-color);
    transition: all 0.3s ease;
}

/* ===== Hero Section ===== */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('../images/therapy-pasadena-hero.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--white);
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero h1 {
    color: var(--white);
    margin-bottom: 1.5rem;
    font-size: 3.6rem;
    font-weight: 500;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    color: var(--white);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

/* ===== About Section ===== */
.about-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.about-image {
    flex: 1;
    position: relative;
}

.about-image img {
    border-radius: 50%;
    max-width: 400px;
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
}

.about-text {
    flex: 1;
}

/* ===== Services Section ===== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: var(--white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.service-card h3 {
    margin-bottom: 15px;
}

/* ===== Approach Section ===== */
.approach-content {
    max-width: 800px;
    margin: 0 auto;
}

.approach-list {
    margin: 20px 0;
    padding-left: 20px;
}

.approach-list li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 10px;
}

.approach-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 8px;
    height: 8px;
    background-color: #f4b5c4;
    border-radius: 50%;
}

/* ===== Contact Section ===== */
.contact-content {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 50px;
}

.contact-details {
    margin-top: 20px;
}

.contact-details p {
    margin-bottom: 10px;
}

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

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: var(--body-font);
    transition: border-color 0.3s ease;
}

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

/* ===== Breadcrumbs ===== */
.breadcrumb {
    background: transparent;
    padding: 15px 0;
    margin: 0;
    font-size: 0.85rem;
}

.breadcrumb-list {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    padding: 0;
    margin: 0;
    align-items: center;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
}

.breadcrumb-item a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb-item a:hover {
    color: var(--primary-color);
}

.breadcrumb-item.active {
    color: var(--primary-color);
    font-weight: 500;
}

.breadcrumb-separator {
    margin: 0 8px;
    color: #999;
}

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

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

.footer-logo h3 {
    color: var(--white);
    margin-bottom: 10px;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
}

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

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

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

.footer-contact p {
    margin-bottom: 10px;
    color: var(--white);
}

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

/* ===== Responsive Design ===== */
@media (max-width: 992px) {
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .section-padding {
        padding: 60px 0;
    }
    
    .about-content {
        flex-direction: column;
    }
    
    .about-image, .about-text {
        flex: none;
        width: 100%;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    
    .nav-menu {
        position: fixed;
        top: 120px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 120px);
        background-color: var(--white);
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding-top: 40px;
        transition: all 0.4s ease;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu li {
        margin: 15px 0;
        text-align: center;
    }
    
    /* Mobile dropdown styling */
    .nav-dropdown {
        position: relative;
    }
    
    .nav-dropdown > a::after {
        content: none;
    }
    
    .dropdown-menu {
        position: static !important;
        display: none;
        margin-top: 10px;
        box-shadow: none;
        background: transparent;
        padding: 0;
        transform: none !important;
        opacity: 1 !important;
        visibility: visible !important;
    }
    
    .dropdown-menu li {
        text-align: center;
        margin: 8px 0;
        list-style: none;
    }
    
    .dropdown-menu a {
        padding: 8px 20px;
        font-size: 0.95rem;
        color: var(--text-color) !important;
        display: block;
    }
    
    .dropdown-menu a:hover {
        background: rgba(0, 0, 0, 0.05);
        color: var(--primary-color) !important;
    }
    
    .nav-dropdown.active .dropdown-menu {
        display: block !important;
    }
    
    .nav-dropdown:hover .dropdown-menu {
        display: none;
    }
    
    /* Mobile dropdown toggle button */
    .nav-dropdown::after {
        content: '›';
        position: absolute;
        right: -25px;
        top: 50%;
        transform: translateY(-50%) rotate(90deg);
        font-size: 1.2rem;
        color: var(--primary-color);
        transition: transform 0.3s ease;
        cursor: pointer;
        pointer-events: auto;
    }
    
    .nav-dropdown.active::after {
        transform: translateY(-50%) rotate(-90deg);
    }
    
    .hero h1 {
        font-size: 3rem;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .section-title {
        margin-bottom: 30px;
    }
    
    .hero h1 {
        font-size: 2.4rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .btn {
        padding: 10px 25px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

/* Fix for hero section background */
.specialty-hero {
    position: relative;
    overflow: hidden;
}

/* ===== Scroll Animations ===== */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

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

/* Stagger animation delays for child elements */
.fade-in:nth-child(1) { transition-delay: 0.02s; }
.fade-in:nth-child(2) { transition-delay: 0.04s; }
.fade-in:nth-child(3) { transition-delay: 0.06s; }
.fade-in:nth-child(4) { transition-delay: 0.08s; }
.fade-in:nth-child(5) { transition-delay: 0.1s; }
.fade-in:nth-child(6) { transition-delay: 0.12s; }
