/**
 * Crooked Creek Counseling - Main Stylesheet
 * Professional counseling website with nature-inspired design
 */

/* ==================================================
   CSS Variables / Custom Properties
   ================================================== */
:root {
    /* Primary Colors */
    --color-forest-green: #2d5016;
    --color-sage-green: #7a9b76;
    --color-warm-taupe: #8b7e74;

    /* Accent Colors */
    --color-sky-blue: #4a7c9e;
    --color-sunset-orange: #d4a574;

    /* Neutrals */
    --color-off-white: #f8f6f3;
    --color-warm-gray: #4a4a4a;
    --color-light-cream: #fdfbf7;
    --color-white: #ffffff;

    /* Typography */
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Open Sans', sans-serif;

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

    /* Transitions */
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;

    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.2);

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

/* ==================================================
   Reset & Base Styles
   ================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--color-warm-gray);
    background-color: var(--color-white);
    overflow-x: hidden;
}

/* ==================================================
   Typography
   ================================================== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: var(--spacing-sm);
    color: var(--color-forest-green);
}

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

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

a {
    color: var(--color-sky-blue);
    text-decoration: none;
    transition: color var(--transition-base);
}

a:hover, a:focus {
    color: var(--color-forest-green);
    text-decoration: underline;
}

.lead {
    font-size: 1.25rem;
    font-weight: 300;
    line-height: 1.7;
    color: var(--color-warm-taupe);
}

blockquote {
    font-style: italic;
    font-size: 1.125rem;
    padding: var(--spacing-md);
    border-left: 4px solid var(--color-sage-green);
    background-color: var(--color-light-cream);
    margin: var(--spacing-md) 0;
    color: var(--color-warm-taupe);
}

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

.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--color-forest-green);
    color: var(--color-white);
    padding: 8px 16px;
    text-decoration: none;
    z-index: 100;
}

.skip-link:focus {
    top: 0;
}

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

/* ==================================================
   Header & Navigation
   ================================================== */
.site-header {
    position: sticky;
    top: 0;
    background-color: var(--color-white);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    transition: all var(--transition-base);
}

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

.site-branding .logo-link {
    text-decoration: none;
}

.site-title {
    font-size: 1.5rem;
    margin: 0;
    color: var(--color-forest-green);
}

.site-tagline {
    font-size: 0.875rem;
    color: var(--color-sage-green);
    margin: 0;
}

/* Navigation */
.main-nav ul {
    list-style: none;
    display: flex;
    gap: var(--spacing-md);
    align-items: center;
}

.nav-link {
    padding: var(--spacing-xs) var(--spacing-sm);
    color: var(--color-warm-gray);
    text-decoration: none;
    font-weight: 500;
    transition: all var(--transition-base);
    border-radius: var(--radius-sm);
}

.nav-link:hover,
.nav-link.active {
    color: var(--color-forest-green);
    background-color: var(--color-off-white);
    text-decoration: none;
}

.nav-link-cta {
    background-color: var(--color-sunset-orange);
    color: var(--color-white);
    padding: var(--spacing-xs) var(--spacing-md);
}

.nav-link-cta:hover {
    background-color: var(--color-forest-green);
    color: var(--color-white);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--spacing-xs);
}

.hamburger {
    width: 25px;
    height: 3px;
    background-color: var(--color-forest-green);
    border-radius: 2px;
    transition: all var(--transition-base);
}

/* ==================================================
   Hero Sections
   ================================================== */
.hero {
    position: relative;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(45, 80, 22, 0.75) 0%, rgba(122, 155, 118, 0.5) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--color-white);
    max-width: 800px;
    padding: var(--spacing-xl) var(--spacing-md);
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-white);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    margin-bottom: var(--spacing-md);
}

.hero-home {
    min-height: 600px;
}

.hero-contact {
    min-height: 300px;
}

/* ==================================================
   Buttons
   ================================================== */
.btn {
    display: inline-block;
    padding: 12px 32px;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    border-radius: var(--radius-md);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition-base);
}

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

.btn-primary:hover {
    background-color: var(--color-sage-green);
    text-decoration: none;
}

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

.btn-secondary:hover {
    background-color: var(--color-forest-green);
    text-decoration: none;
}

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

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

.btn-large {
    padding: 16px 48px;
    font-size: 1.125rem;
}

.btn-hero {
    margin-top: var(--spacing-md);
    box-shadow: var(--shadow-md);
}

/* ==================================================
   Sections
   ================================================== */
.section {
    padding: var(--spacing-xl) 0;
}

.section-heading {
    text-align: center;
    font-size: 2rem;
    margin-bottom: var(--spacing-md);
    color: var(--color-forest-green);
}

.section-subheading {
    text-align: center;
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--color-sage-green);
    margin-bottom: var(--spacing-lg);
}

/* ==================================================
   Homepage Specific Styles
   ================================================== */

/* Introduction Section */
.section-intro {
    background-color: var(--color-white);
}

.intro-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: var(--spacing-lg);
    margin-top: var(--spacing-md);
    align-items: center;
}

.profile-image {
    width: 100%;
    max-width: 350px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.intro-text p {
    font-size: 1.125rem;
    margin-bottom: var(--spacing-md);
}

/* Services Section */
.services-description {
    max-width: 900px;
    margin: 0 auto var(--spacing-lg);
    text-align: center;
}

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

.service-card {
    background-color: var(--color-white);
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
}

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

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

.services-cta {
    text-align: center;
    margin-top: var(--spacing-lg);
}

/* Call to Action Section */
.section-cta {
    position: relative;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--color-white);
}

.cta-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(45, 80, 22, 0.85) 0%, rgba(74, 124, 158, 0.75) 100%);
}

.cta-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
    padding: var(--spacing-xl) var(--spacing-md);
}

.cta-heading {
    color: var(--color-white);
    font-size: 2.5rem;
    margin-bottom: var(--spacing-md);
}

.cta-text {
    font-size: 1.125rem;
    line-height: 1.7;
    margin-bottom: var(--spacing-md);
}

/* ==================================================
   About Page Styles
   ================================================== */
.section-about {
    background-color: var(--color-white);
}

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

.profile-image-large {
    max-width: 400px;
    width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    margin: var(--spacing-md) auto;
}

.about-content {
    max-width: 900px;
    margin: 0 auto;
}

.content-block {
    margin-bottom: var(--spacing-lg);
}

.content-block.with-image {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: var(--spacing-md);
    align-items: center;
}

.content-block.reverse {
    grid-template-columns: 1fr 2fr;
}

.content-block.reverse .content-image {
    order: -1;
}

.content-image img {
    width: 100%;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

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

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
}

.gallery-item img:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-md);
}

.about-cta {
    text-align: center;
    padding: var(--spacing-lg);
    background-color: var(--color-light-cream);
    border-radius: var(--radius-md);
    margin-top: var(--spacing-xl);
}

/* ==================================================
   Services Page Styles
   ================================================== */
.services-intro {
    max-width: 800px;
    margin: 0 auto var(--spacing-lg);
    text-align: center;
}

.approaches, .specializations {
    margin: var(--spacing-lg) 0;
}

.approaches h3, .specializations h3 {
    text-align: center;
    margin-bottom: var(--spacing-md);
}

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

.approach-card {
    background-color: var(--color-white);
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    border-left: 4px solid var(--color-sage-green);
    box-shadow: var(--shadow-sm);
}

.approach-card h4 {
    color: var(--color-forest-green);
    margin-bottom: var(--spacing-sm);
}

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

.spec-item {
    padding: var(--spacing-md);
    background-color: var(--color-white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
}

.spec-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.spec-item h4 {
    color: var(--color-forest-green);
    margin-bottom: var(--spacing-xs);
}

.services-image {
    text-align: center;
    margin: var(--spacing-lg) 0;
}

.services-image img {
    max-width: 100%;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
}

/* Fees Section */
.section-fees {
    background-color: var(--color-light-cream);
}

.fees-intro {
    text-align: center;
    max-width: 700px;
    margin: 0 auto var(--spacing-md);
    font-weight: 600;
    color: var(--color-warm-taupe);
}

.fee-schedule {
    max-width: 600px;
    margin: var(--spacing-lg) auto;
    background-color: var(--color-white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.fee-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-md);
    border-bottom: 1px solid var(--color-off-white);
}

.fee-item:last-child {
    border-bottom: none;
}

.fee-service {
    font-weight: 500;
    color: var(--color-warm-gray);
}

.fee-amount {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-forest-green);
}

.payment-info {
    max-width: 700px;
    margin: var(--spacing-lg) auto;
    padding: var(--spacing-md);
    background-color: var(--color-white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.payment-info h4 {
    margin-bottom: var(--spacing-sm);
}

/* ==================================================
   Contact Page Styles
   ================================================== */
.contact-intro {
    max-width: 800px;
    margin: 0 auto var(--spacing-lg);
    text-align: center;
}

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: var(--spacing-lg);
    max-width: 1100px;
    margin: 0 auto;
}

.contact-info-box {
    background-color: var(--color-light-cream);
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    height: fit-content;
}

.contact-info-box h3 {
    margin-bottom: var(--spacing-md);
}

.contact-details {
    margin-bottom: var(--spacing-md);
}

.contact-item {
    margin-bottom: var(--spacing-sm);
    padding-bottom: var(--spacing-sm);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.contact-item:last-child {
    border-bottom: none;
}

.contact-item strong {
    display: block;
    color: var(--color-forest-green);
    margin-bottom: 4px;
}

.consultation-box {
    background-color: var(--color-white);
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    border-left: 4px solid var(--color-sage-green);
    margin-top: var(--spacing-md);
}

.consultation-box h4 {
    color: var(--color-forest-green);
    margin-bottom: var(--spacing-sm);
}

/* Contact Form */
.contact-form-box {
    background-color: var(--color-white);
    padding: var(--spacing-lg);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.contact-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-md);
}

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

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

.required {
    color: #c53030;
}

.form-control {
    width: 100%;
    padding: 12px;
    font-family: var(--font-body);
    font-size: 1rem;
    border: 2px solid var(--color-off-white);
    border-radius: var(--radius-sm);
    transition: all var(--transition-base);
}

.form-control:focus {
    outline: none;
    border-color: var(--color-sage-green);
    box-shadow: 0 0 0 3px rgba(122, 155, 118, 0.1);
}

.form-help {
    display: block;
    margin-top: var(--spacing-xs);
    font-size: 0.875rem;
    color: var(--color-warm-taupe);
}

.form-note {
    margin-top: var(--spacing-md);
    font-size: 0.875rem;
    color: var(--color-warm-taupe);
}

/* Honeypot - hidden from users */
.honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* Form Messages */
.form-errors {
    background-color: #fff5f5;
    border-left: 4px solid #c53030;
    padding: var(--spacing-md);
    border-radius: var(--radius-sm);
    margin-bottom: var(--spacing-md);
}

.form-errors h4 {
    color: #c53030;
    margin-bottom: var(--spacing-sm);
}

.form-errors ul {
    margin-left: var(--spacing-md);
}

.success-message {
    background-color: #f0fff4;
    border-left: 4px solid #38a169;
    padding: var(--spacing-lg);
    border-radius: var(--radius-md);
    text-align: center;
}

.success-message h3 {
    color: #38a169;
    margin-bottom: var(--spacing-md);
}

/* ==================================================
   Flash Messages
   ================================================== */
.flash-message {
    position: relative;
    padding: var(--spacing-md) var(--spacing-lg);
    margin-bottom: 0;
    border-radius: 0;
}

.flash-success {
    background-color: #f0fff4;
    border-bottom: 3px solid #38a169;
    color: #22543d;
}

.flash-error {
    background-color: #fff5f5;
    border-bottom: 3px solid #c53030;
    color: #742a2a;
}

.flash-warning {
    background-color: #fffaf0;
    border-bottom: 3px solid #dd6b20;
    color: #7c2d12;
}

.flash-close {
    position: absolute;
    right: var(--spacing-md);
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: inherit;
    opacity: 0.7;
}

.flash-close:hover {
    opacity: 1;
}

/* ==================================================
   Footer
   ================================================== */
.site-footer {
    background-color: var(--color-forest-green);
    color: var(--color-white);
    padding: var(--spacing-xl) 0 var(--spacing-md);
    margin-top: var(--spacing-xl);
}

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

.footer-section h3 {
    color: var(--color-white);
    font-size: 1.25rem;
    margin-bottom: var(--spacing-md);
}

.footer-location {
    font-style: italic;
    margin-bottom: var(--spacing-md);
    color: var(--color-off-white);
}

.contact-info {
    list-style: none;
}

.contact-info li {
    margin-bottom: var(--spacing-sm);
}

.contact-info a {
    color: var(--color-white);
}

.contact-info a:hover {
    color: var(--color-sunset-orange);
}

.footer-nav {
    list-style: none;
}

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

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

.footer-nav a:hover {
    color: var(--color-sunset-orange);
}

.footer-disclaimer {
    margin-top: var(--spacing-md);
    font-size: 0.875rem;
    line-height: 1.5;
    color: var(--color-off-white);
}

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

.footer-bottom p {
    margin-bottom: var(--spacing-xs);
    font-size: 0.875rem;
}

.footer-credit {
    font-size: 0.75rem;
    opacity: 0.8;
}

/* ==================================================
   Back to Top Button
   ================================================== */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background-color: var(--color-sage-green);
    color: var(--color-white);
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--color-forest-green);
    transform: translateY(-5px);
}

/* ==================================================
   Accessibility
   ================================================== */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Focus styles */
*:focus {
    outline: 2px solid var(--color-sage-green);
    outline-offset: 2px;
}

button:focus,
a:focus {
    outline: 2px solid var(--color-sage-green);
    outline-offset: 2px;
}
