/* 
* Main CSS for Inner Clarity Therapy LLC
* Author: Inner Clarity Therapy
* Version: 1.0.0
*/

/* ==================== 
   Table of Contents
   ====================
   1. CSS Reset & Variables
   2. Base Styles
   3. Layout & Containers
   4. Typography
   5. Buttons & Links
   6. Header & Navigation
   7. Hero Section
   8. About Section
   9. Services Section
   10. CTA Section
   11. Footer
   12. Media Queries
   ==================== */

/* ==================== 
   1. CSS Reset & Variables
   ==================== */
   * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Color palette */
    --primary-color: #5b8e7d;
    --primary-dark: #4a7969;
    --primary-light: #8fc0a9;
    --secondary-color: #c8d5b9;
    --accent-color: #f7f4ed;
    --text-color: #444;
    --heading-color: #2c3e50;
    --light-color: #faf9f7;
    --white: #f5f3f0;
    --dark-overlay: rgba(44, 62, 80, 0.7);
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 15px rgba(0, 0, 0, 0.1);
    
    /* Transitions */
    --transition: all 0.3s ease;
    
    /* Font sizes */
    --font-xs: 0.75rem;
    --font-sm: 0.875rem;
    --font-md: 1rem;
    --font-lg: 1.125rem;
    --font-xl: 1.25rem;
    --font-2xl: 1.5rem;
    --font-3xl: 1.875rem;
    --font-4xl: 2.25rem;
    --font-5xl: 3rem;
    
    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    --space-4xl: 6rem;
    
    /* Border radius */
    --radius-sm: 0.25rem;
    --radius: 0.5rem;
    --radius-lg: 1rem;
}

/* ==================== 
   2. Base Styles
   ==================== */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-color);
}

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

/* ==================== 
   3. Layout & Containers
   ==================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-xl);
    width: 100%;
}

section {
    padding: var(--space-4xl) 0;
}

/* ==================== 
   4. Typography
   ==================== */
h1, h2, h3, h4, h5, h6 {
    color: var(--heading-color);
    margin-bottom: var(--space-md);
    font-weight: 600;
    line-height: 1.3;
}

h1 {
    font-size: var(--font-5xl);
}

h2 {
    font-size: var(--font-3xl);
}

h3 {
    font-size: var(--font-2xl);
}

h4 {
    font-size: var(--font-xl);
}

p {
    margin-bottom: var(--space-lg);
}

/* ==================== 
   5. Buttons & Links
   ==================== */
a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

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

.btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--white);
    padding: var(--space-md) var(--space-xl);
    border-radius: var(--radius);
    font-weight: 500;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    text-align: center;
}

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

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

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

.btn-lg {
    padding: var(--space-lg) var(--space-2xl);
    font-size: var(--font-lg);
}

.btn-sm {
    padding: var(--space-sm) var(--space-lg);
    font-size: var(--font-sm);
}

/* ==================== 
   6. Header & Navigation
   ==================== */
header {
    background-color: var(--white);
    box-shadow: var(--shadow);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000; /* Higher z-index to ensure it's above everything */
    transition: var(--transition);
}

.nav-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--space-md) var(--space-xl);
    transition: var(--transition);
    gap: var(--space-md);
    text-align: center;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-xs);
}

.logo img {
    height: 50px;
    margin-right: var(--space-md);
}

.logo h1 {
    font-size: var(--font-3xl);
    margin: 0;
    color: var(--primary-color);
    line-height: 1.1;
}

@media (max-width: 768px) {
    .logo img {
        height: 40px;
    }
    
    .logo h1 {
        font-size: var(--font-2xl);
        line-height: 1.1;
    }
}

@media (max-width: 420px) {
    .logo img {
        height: 35px;
    }
    
    .logo h1 {
        font-size: var(--font-xl);
        line-height: 1.1;
    }
}

.contact-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: var(--space-sm);
    font-size: var(--font-sm);
    color: var(--text-color);
}

.contact-header p {
    margin: 2px 0;
}

.contact-header i {
    color: var(--primary-color);
    margin-right: var(--space-xs);
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: var(--space-xl);
}

.nav-links a {
    color: var(--text-color);
    font-weight: 500;
    position: relative;
}

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

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

.nav-links a.active {
    color: var(--primary-color);
}

.mobile-menu {
    display: none;
    font-size: var(--font-2xl);
    cursor: pointer;
    color: var(--primary-color);
}

/* ==================== 
   7. Hero Section
   ==================== */
.hero {
    position: relative;
    color: var(--white);
    text-align: center;
    padding: 0;
    margin-bottom: 0;
    overflow: hidden;
    --parallax-offset: 0px;
    height: auto; /* Allow content to determine height */
    min-height: 100vh; /* Minimum height is full viewport */
    padding-top: 200px; /* Add padding to the top to account for the header */
    padding-bottom: 50px; /* Add some padding to the bottom */
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box; /* Ensure padding is included in the height calculation */
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(var(--dark-overlay), var(--dark-overlay)), url('../img/hero-bg.jpg') center/cover no-repeat;
    background-attachment: fixed;
    z-index: -1;
    transform: translateY(var(--parallax-offset)) scale(1.05);
    will-change: transform;
    transition: transform 0.05s linear;
    animation: subtle-zoom 30s infinite alternate ease-in-out;
    min-height: 100%; /* Ensure the background covers the whole area */
}

@keyframes subtle-zoom {
    0% {
        transform: translateY(var(--parallax-offset)) scale(1.05);
    }
    100% {
        transform: translateY(var(--parallax-offset)) scale(1.1);
    }
}

.hero-content {
    position: relative;
    z-index: 5;
    animation: fadeInUp 1.2s ease-out;
    max-width: 800px;
    width: 100%;
    margin: 0 auto;
    padding: var(--space-3xl);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(5px);
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

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

.hero h2 {
    font-size: var(--font-3xl);
    margin-bottom: var(--space-xl);
    color: var(--white);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    line-height: 1.2;
    text-align: center;
    width: 100%;
    font-weight: 700;
}

.hero p {
    font-size: var(--font-lg);
    max-width: 800px;
    margin: 0 auto var(--space-xl);
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.3);
    line-height: 1.6;
    text-align: center;
    width: 100%;
}

.hero .btn {
    font-size: var(--font-md);
    padding: var(--space-md) var(--space-xl);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    margin-top: var(--space-lg);
    align-self: center;
}

.hero .btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    background-color: var(--primary-light);
}

/* ==================== 
   8. About Section
   ==================== */
.about {
    padding: var(--space-4xl) 0;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: center;
}

.about-image {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

/* Page Header */
.page-header {
    background: linear-gradient(rgba(91, 142, 125, 0.8), rgba(91, 142, 125, 0.8)), url('../img/about-header.jpg') center/cover no-repeat;
    color: var(--white);
    text-align: center;
    padding: calc(var(--space-4xl) + 180px) var(--space-xl) var(--space-3xl);
    margin-bottom: var(--space-3xl);
}

.page-header h1 {
    font-size: var(--font-5xl);
    margin-bottom: var(--space-md);
    color: var(--white);
}

.page-header p {
    font-size: var(--font-xl);
    max-width: 800px;
    margin: 0 auto;
    color: var(--white);
}

/* About Section Styles */
.about-section {
    padding: 0 0 var(--space-3xl);
}

.therapist-banner {
    text-align: center;
    margin-bottom: var(--space-3xl);
}

.therapist-banner h2 {
    font-size: var(--font-4xl);
    color: var(--heading-color);
    font-weight: 600;
    position: relative;
    display: inline-block;
    padding-bottom: var(--space-md);
}

.therapist-banner h2:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
}

.about-container {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: var(--space-3xl);
    align-items: start;
}

/* Profile Sidebar */
.profile-sidebar {
    display: flex;
    flex-direction: column;
    gap: var(--space-xl);
}

.profile-image {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.profile-image img {
    width: 100%;
    height: auto;
    display: block;
}

.credentials-card {
    background-color: var(--white);
    border-radius: var(--radius);
    padding: var(--space-xl);
    box-shadow: var(--shadow);
}

.credentials-card h3 {
    margin-bottom: var(--space-lg);
    position: relative;
    padding-bottom: var(--space-sm);
    color: var(--heading-color);
}

.credentials-card h3:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: var(--primary-color);
}

.credentials-list {
    list-style: none;
}

.credentials-list li {
    margin-bottom: var(--space-md);
    display: flex;
    align-items: flex-start;
    color: var(--text-color);
}

.credentials-list li i {
    color: var(--primary-color);
    margin-right: var(--space-xl);
    margin-top: 5px;
}

/* Bio Content */
.bio-content {
    display: flex;
    flex-direction: column;
    gap: var(--space-xl);
}

.bio-card, .specialty-card {
    background-color: var(--white);
    border-radius: var(--radius);
    padding: var(--space-xl);
    box-shadow: var(--shadow);
}

.bio-card p {
    color: var(--text-color);
}

.bio-card h2 {
    margin-bottom: var(--space-lg);
    position: relative;
    padding-bottom: var(--space-sm);
    color: var(--heading-color);
}

.bio-card h2:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: var(--primary-color);
}

.specialty-card h3 {
    margin-bottom: var(--space-lg);
    position: relative;
    padding-bottom: var(--space-sm);
    color: var(--heading-color);
}

.specialty-card h3:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: var(--primary-color);
}

.specialty-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
}

.specialty-item {
    display: flex;
    align-items: center;
    color: var(--text-color);
}

.specialty-item i {
    color: var(--primary-color);
    margin-right: var(--space-xl);
    font-size: var(--font-lg);
    width: 24px;
    text-align: center;
}

/* ==================== 
   9. Services Section
   ==================== */
.services {
    padding: var(--space-4xl) 0;
    background-color: var(--accent-color);
}

.services-title {
    text-align: center;
    margin-bottom: var(--space-3xl);
}

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

.service-card {
    background-color: var(--white);
    border-radius: var(--radius);
    padding: var(--space-xl);
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-decoration: none;
    color: inherit;
    display: block;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    text-decoration: none;
    color: inherit;
}

.service-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: var(--space-md);
}

.service-card h3 {
    color: var(--heading-color);
    margin-bottom: var(--space-md);
}

/* ==================== 
   10. CTA Section
   ==================== */
.cta {
    padding: var(--space-4xl) 0;
    text-align: center;
    background-color: var(--white);
}

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

/* ==================== 
   11. Footer
   ==================== */
footer {
    background-color: var(--heading-color);
    color: var(--white);
    padding: var(--space-xl) 0 var(--space-md);
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-xl);
}

.footer-col h3 {
    color: var(--white);
    margin-bottom: var(--space-md);
    font-size: var(--font-md);
}

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

.footer-col ul li {
    margin-bottom: var(--space-sm);
}

.footer-col ul li a {
    color: #ddd;
}

.footer-col ul li a:hover {
    color: var(--white);
}


.footer-bottom {
    text-align: center;
    margin-top: var(--space-lg);
    padding-top: var(--space-md);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: var(--font-sm);
    color: #aaa;
}

.designer-credit {
    font-size: var(--font-sm);
    margin-top: var(--space-xs);
    color: #888;
}

.designer-credit a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

.designer-credit a:hover {
    text-decoration: underline;
}

/* ==================== 
   12. Media Queries
   ==================== */
@media (max-width: 992px) {
    :root {
        --font-5xl: 2.5rem;
        --font-4xl: 2rem;
        --font-3xl: 1.75rem;
    }
    
    /* Tablet-specific hero adjustments */
    .hero {
        height: auto;
        min-height: auto;
        padding-top: 250px;
        padding-bottom: 80px;
    }
    
    .hero-content {
        padding: var(--space-xl);
    }
    
    .about-content {
        gap: var(--space-xl);
    }
    
    .about-container {
        gap: var(--space-xl);
    }
}

@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        text-align: center;
        padding-top: var(--space-lg);
    }
    
    .logo {
        margin-bottom: var(--space-sm);
        justify-content: center;
    }
    
    .contact-header {
        margin-bottom: var(--space-lg);
        font-size: var(--font-xs);
    }
    
    .contact-header p {
        margin: 2px 0;
    }
    
    .hero {
        min-height: auto; /* Don't enforce a minimum height on mobile */
        height: auto; /* Allow content to determine height */
        padding-top: 300px; /* Much more padding on top for mobile header */
        padding-bottom: 100px; /* More bottom padding too */
    }
    
    .hero-content {
        padding: var(--space-lg);
        width: 90%;
        backdrop-filter: none; /* Some mobile browsers don't support backdrop-filter */
        margin-top: 0; /* Reset any margins */
    }
    
    .hero::before {
        /* Disable parallax and animations on mobile devices */
        background-attachment: scroll;
        transform: none;
        transition: none;
        animation: none;
    }
    
    .hero h2 {
        font-size: var(--font-4xl);
    }
    
    .hero p {
        font-size: var(--font-lg);
    }
    
    .hero .btn {
        padding: var(--space-md) var(--space-xl);
        font-size: var(--font-md);
    }
    
    .nav-links {
        position: fixed;
        top: 200px; /* Adjusted for centered logo and contact info */
        left: -100%;
        width: 100%;
        flex-direction: column;
        align-items: center;
        background-color: var(--white);
        box-shadow: var(--shadow);
        transition: var(--transition);
        padding: var(--space-xl);
    }
    
    .nav-links.active {
        left: 0;
    }
    
    .nav-links li {
        margin: var(--space-md) 0;
        text-align: center;
    }
    
    .mobile-menu {
        display: block;
        position: absolute;
        right: var(--space-xl);
        top: 30px; /* Fixed position near the top */
    }
    
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .about-image {
        order: -1;
        max-width: 500px;
        margin: 0 auto var(--space-xl);
    }
    
    .about-container {
        grid-template-columns: 1fr;
    }
    
    .specialty-grid {
        grid-template-columns: 1fr;
    }
    
    .page-header h1 {
        font-size: var(--font-4xl);
    }
    
    .page-header p {
        font-size: var(--font-lg);
    }
    
    .profile-sidebar {
        max-width: 500px;
        margin: 0 auto var(--space-xl);
    }
    
    .hero h2 {
        font-size: var(--font-4xl);
    }
    
    .hero p {
        font-size: var(--font-lg);
    }
}

/* Small phone screens */
@media (max-width: 420px) {
    .hero {
        padding-top: 350px; /* Extra padding for very small screens */
    }
    
    .hero-content {
        padding: var(--space-sm);
    }
    
    .hero h2 {
        font-size: var(--font-2xl);
    }
    
    .hero p {
        font-size: var(--font-sm);
    }
    
    .nav-container {
        padding-top: var(--space-xl);
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 var(--space-lg);
    }
    
    section {
        padding: var(--space-3xl) 0;
    }
    
    /* Special handling for small mobile screens */
    .hero {
        padding-top: 320px; /* Even more padding for smaller screens */
        padding-bottom: var(--space-3xl);
        height: auto;
        min-height: auto;
    }
    
    .hero-content {
        padding: var(--space-md);
        width: 95%;
    }
    
    .hero h2 {
        font-size: var(--font-3xl);
    }
    
    .hero p {
        font-size: var(--font-md);
    }
    
    .hero .btn {
        padding: var(--space-sm) var(--space-lg);
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .credentials-list li {
        align-items: flex-start;
        margin-bottom: var(--space-lg);
    }
    
    .credentials-list li i {
        margin-top: 2px;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
    }
    
    .footer-col {
        text-align: center;
        margin-bottom: var(--space-lg);
    }
    
}