/*
    style.css
    Author: Eric Meckel Psychotherapy LLC
    Version: 1.2 (Mobile Header Fixed)
    Description: An elegant, premium, and responsive stylesheet with a dark theme,
                 gold accents, serif typography, and subtle fade-in animations.
*/

/* ===================================================================
   01. Custom Properties (Theme)
   =================================================================== */
:root {
    --color-primary: #c0a062; /* Desaturated, elegant gold */
    --color-background: #1a1a1a; /* Very dark charcoal, near black */
    --color-surface: #252525; /* Slightly lighter surface for cards */
    --color-text: #f1f1f1; /* Creamy off-white for body text */
    --color-headings: #ffffff; /* Pure white for headings for pop */
    --color-muted: #888888; /* Muted gray for subtitles */
    --color-border: #333333; /* Subtle border color */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Lato', sans-serif;
    --transition-smooth: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --shadow-md: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* ===================================================================
   02. Base & Reset Styles
   =================================================================== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-background);
    color: var(--color-text);
    line-height: 1.8;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* Prevent body scroll when nav is open */
body.nav-open {
    overflow: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--color-headings);
    line-height: 1.3;
    font-weight: 700;
}

h1 { font-size: 4.5rem; }
h2 { font-size: 3rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.25rem; }

p {
    margin-bottom: 1.5rem;
    max-width: 60ch;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: var(--transition-smooth);
}
a:hover {
    filter: brightness(1.2);
}

ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }

/* ===================================================================
   03. Reusable Components & Utilities
   =================================================================== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.btn {
    display: inline-block;
    padding: 14px 35px;
    border: 1px solid var(--color-primary);
    border-radius: 2px;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    cursor: pointer;
    text-align: center;
    transition: var(--transition-smooth);
}
.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-background);
}
.btn-primary:hover {
    background-color: transparent;
    color: var(--color-primary);
}
.btn-secondary {
    background-color: transparent;
    color: var(--color-primary);
}
.btn-secondary:hover {
    background-color: var(--color-primary);
    color: var(--color-background);
}

.section-header {
    text-align: center;
    margin-bottom: 5rem;
}
.section-tag {
    color: var(--color-primary);
    font-family: var(--font-body);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.8rem;
    margin-bottom: 1rem;
    display: block;
}
.section-title { margin-bottom: 1rem; }
.section-subtitle {
    max-width: 600px;
    margin: 0 auto;
    color: var(--color-muted);
}

/* ===================================================================
   04. Header
   =================================================================== */
.site-header {
    background-color: rgba(26, 26, 26, 0.85);
    backdrop-filter: blur(10px);
    padding: 1.5rem 0;
    position: sticky;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--color-border);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo { height: 90px; }

/* Desktop Navigation */
.main-nav ul { display: flex; gap: 3rem; }
.main-nav a {
    color: var(--color-text);
    font-weight: 400;
    position: relative;
    padding: 5px 0;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.8rem;
}
.main-nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--color-primary);
    transition: width 0.4s ease;
}
.main-nav a:hover::after, .main-nav a.active::after { width: 100%; }
.main-nav a.active, .main-nav a:hover { color: var(--color-headings); }


/* Mobile Navigation Toggle Button */
.mobile-nav-toggle {
    display: none; /* Hidden on desktop */
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001; /* Above the overlay */
    padding: 10px;
}

.hamburger-icon {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--color-headings);
    position: relative;
    transition: background-color 0.2s 0.2s ease;
}

.hamburger-icon::before,
.hamburger-icon::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background-color: var(--color-headings);
    left: 0;
    transition: transform 0.3s ease, top 0.3s 0.2s ease, bottom 0.3s 0.2s ease;
}
.hamburger-icon::before { top: -8px; }
.hamburger-icon::after { bottom: -8px; }

/* Active state for mobile nav toggle */
.nav-open .hamburger-icon {
    background-color: transparent; /* Hide middle line */
}
.nav-open .hamburger-icon::before {
    transform: rotate(45deg);
    top: 0;
    transition: top 0.3s ease, transform 0.3s 0.2s ease;
}
.nav-open .hamburger-icon::after {
    transform: rotate(-45deg);
    bottom: 0;
    transition: bottom 0.3s ease, transform 0.3s 0.2s ease;
}

/* ===================================================================
   05. Hero Section
   =================================================================== */
.hero {
    padding: 120px 0;
    min-height: 80vh;
    display: flex;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.hero-background-animation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, rgba(192, 160, 98, 0.1) 0%, transparent 60%);
    animation: pulse-glow 10s infinite ease-in-out;
}
@keyframes pulse-glow {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.5); opacity: 0.7; }
}
.hero-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}
.hero-title {
    font-size: 5rem;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}
.hero-subtitle {
    font-size: 1.25rem;
    color: var(--color-text);
    margin-bottom: 2.5rem;
}
.hero-cta-group { display: flex; justify-content: center; gap: 1.5rem; }

/* ===================================================================
   06. Strategy (Services) Section
   =================================================================== */
.strategy-section { padding: 100px 0; }
.strategy-list { display: flex; flex-direction: column; gap: 6rem; }
.strategy-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}
.strategy-item:nth-child(even) .strategy-image { order: 2; }
.strategy-image {
    position: relative;
    overflow: hidden;
}
.strategy-image::after { /* Curtain reveal effect */
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--color-background);
    transform-origin: left;
    transition: transform 1s cubic-bezier(0.83, 0, 0.17, 1);
}
.fade-in-up.is-visible .strategy-image::after { transform: scaleX(0); }
.strategy-image img {
    transition: transform 0.8s ease;
    transform: scale(1.05); /* Start slightly zoomed in */
}
.fade-in-up.is-visible .strategy-image img { transform: scale(1); transition-delay: 0.5s; }

.strategy-content h3 { margin-bottom: 1.5rem; }
.strategy-content p { color: var(--color-muted); }
.strategy-content ul {
    margin-top: 1.5rem;
    list-style-type: none;
}
.strategy-content ul li {
    padding-left: 1.5rem;
    position: relative;
    margin-bottom: 0.5rem;
}
.strategy-content ul li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--color-primary);
}

/* ===================================================================
   07. Sector (Industry) Section
   =================================================================== */
.sector-section {
    padding: 100px 0;
    background-color: var(--color-surface);
}
.sector-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}
.sector-card {
    border: 1px solid var(--color-border);
    padding: 2.5rem 2rem;
    transition: var(--transition-smooth);
}
.sector-card:hover {
    border-color: var(--color-primary);
    background-color: var(--color-background);
    transform: translateY(-5px);
}
.sector-card h4 {
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 1rem;
    margin-bottom: 1rem;
}
.sector-card p {
    color: var(--color-muted);
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* ===================================================================
   08. Testimonials Section
   =================================================================== */
.testimonials-section {
    padding: 120px 0;
    text-align: center;
}
.testimonial-content {
    max-width: 800px;
    margin: 0 auto;
}
.testimonial-quote {
    font-family: var(--font-heading);
    font-size: 2.25rem;
    line-height: 1.5;
    color: var(--color-headings);
    margin-bottom: 2rem;
}
.testimonial-author { margin-top: 2rem; }
.author-name {
    display: block;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
}
.author-title {
    display: block;
    color: var(--color-muted);
    font-style: italic;
}
.testimonial-nav {
    margin-top: 3rem;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}
.testimonial-nav button {
    background: none;
    border: 1px solid var(--color-border);
    color: var(--color-muted);
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition-smooth);
}
.testimonial-nav button:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

/* ===================================================================
   09. Calculator Section
   =================================================================== */
.calculator-section {
    padding: 100px 0;
    background-color: var(--color-surface);
}
.calculator-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}
.calculator-content .section-subtitle { margin: 0; }
.calculator-form {
    border: 1px solid var(--color-border);
    padding: 2.5rem;
}
.calculator-form .form-group { margin-bottom: 2rem; }
.calculator-form label {
    display: block;
    margin-bottom: 1rem;
    font-weight: 700;
}
.radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}
.radio-group label {
    border: 1px solid var(--color-border);
    padding: 0.75rem 1.25rem;
    cursor: pointer;
    transition: var(--transition-smooth);
}
.radio-group input { display: none; }
.radio-group input:checked + label, .radio-group label:hover {
    background-color: var(--color-primary);
    color: var(--color-background);
    border-color: var(--color-primary);
}

.calculator-form select {
    width: 100%;
    padding: 1rem;
    background-color: var(--color-background);
    border: 1px solid var(--color-border);
    color: var(--color-text);
    font-size: 1rem;
    -webkit-appearance: none;
    appearance: none;
}
.calculator-result {
    margin-top: 2rem;
    border-top: 1px solid var(--color-border);
    padding-top: 2rem;
    text-align: center;
}
.calculator-result p {
    color: var(--color-muted);
    margin-bottom: 0.5rem;
}
.estimated-price {
    font-size: 2.5rem;
    font-family: var(--font-heading);
    color: var(--color-primary);
}

/* ===================================================================
   10. Clarity (Report) Section
   =================================================================== */
.clarity-section {
    padding: 120px 0;
}
.clarity-container { /* Use a grid layout for better control */
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}
.clarity-content .section-subtitle { margin-left: 0; }
.clarity-content .btn { margin-top: 1.5rem; }

.clarity-visual-wrapper {
    perspective: 1500px;
}
.clarity-visual {
    transform: rotateY(-20deg); /* Tilt effect */
    box-shadow: var(--shadow-md);
    max-width: 500px; /* Control max size */
    margin: 0 auto; /* Center if needed */
}
.clarity-visual img {
    border-radius: 8px;
}


/* ===================================================================
   11. CTA Section
   =================================================================== */
.cta-section {
    padding: 100px 0;
    background-color: var(--color-surface);
    text-align: center;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}
.cta-content { max-width: 700px; margin: 0 auto; }
.cta-title { margin-bottom: 1.5rem; }
.cta-text { color: var(--color-muted); margin-bottom: 2.5rem; }

/* ===================================================================
   12. Footer
   =================================================================== */
.site-footer {
    background-color: var(--color-background);
    padding: 60px 0 0;
    font-size: 0.9rem;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 3rem;
    margin-bottom: 4rem;
}
.footer-column .logo { height: 90px; margin-bottom: 1rem; }
.footer-about-text { color: var(--color-muted); }
.footer-heading {
    font-family: var(--font-body);
    font-weight: 700;
    color: var(--color-headings);
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 0.8rem;
}
.footer-column ul li { margin-bottom: 0.75rem; }
.footer-column a { color: var(--color-muted); }
.footer-column a:hover { color: var(--color-primary); }
.footer-contact p { color: var(--color-muted); line-height: 1.6; margin-bottom: 0.5rem; }
.footer-contact a { color: var(--color-text); }
.footer-bottom {
    border-top: 1px solid var(--color-border);
    padding: 2rem 0;
    text-align: center;
    color: var(--color-muted);
    font-size: 0.8rem;
}

/* ===================================================================
   13. UI Elements (Live Chat)
   =================================================================== */
.live-chat-icon {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 55px;
    height: 55px;
    background: var(--color-surface);
    border: 1px solid var(--color-primary);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 999;
    transition: var(--transition-smooth);
}
.live-chat-icon:hover {
    background-color: var(--color-primary);
}
.live-chat-icon svg {
    width: 28px;
    height: 28px;
    color: var(--color-primary);
    transition: var(--transition-smooth);
}
.live-chat-icon:hover svg {
    color: var(--color-background);
}

/* ===================================================================
   14. Legal & Contact Page Styles
   =================================================================== */
.page-hero { padding: 100px 0; text-align: center; border-bottom: 1px solid var(--color-border); }
.page-title { font-size: 4rem; margin-bottom: 1rem; }
.page-subtitle { color: var(--color-muted); max-width: 600px; margin: 0 auto; }
.legal-content, .contact-section { padding: 100px 0; }
.legal-content .container { max-width: 800px; }
.legal-content h2 { margin: 2.5rem 0 1rem; padding-bottom: 0.5rem; border-bottom: 1px solid var(--color-border); }
.legal-content h2:first-of-type { margin-top: 0; }
.legal-content p { color: var(--color-muted); }

/* Contact Page */
.contact-container { display: grid; grid-template-columns: 1.5fr 1fr; gap: 4rem; }
.form-title, .info-title { margin-bottom: 2rem; font-size: 2rem; }
.contact-form .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.contact-form .form-group { margin-bottom: 1.5rem; }
.contact-form label { display: block; margin-bottom: 0.5rem; font-weight: 400; color: var(--color-muted); }
.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 14px;
    background-color: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 2px;
    color: var(--color-text);
    font-size: 1rem;
    font-family: var(--font-body);
    transition: var(--transition-smooth);
}
.contact-form input:focus, .contact-form textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    background-color: var(--color-background);
}
.contact-form textarea { resize: vertical; }
.form-submit-btn { width: 100%; padding: 16px; }

.contact-info-container p { color: var(--color-muted); }
.info-block { margin-top: 2rem; }
.info-block h4 { font-size: 1rem; font-family: var(--font-body); text-transform: uppercase; letter-spacing: 1px; color: var(--color-primary); margin-bottom: 0.5rem; }

/* ===================================================================
   15. Animations
   =================================================================== */
.fade-in-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1s cubic-bezier(0.645, 0.045, 0.355, 1), transform 1s cubic-bezier(0.645, 0.045, 0.355, 1);
    transition-delay: var(--delay, 0s);
}
.fade-in-up.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===================================================================
   16. Responsiveness
   =================================================================== */
@media (max-width: 1024px) {
    h1, .hero-title, .page-title { font-size: 3.5rem; }
    h2 { font-size: 2.5rem; }
    .strategy-item { grid-template-columns: 1fr; }
    .strategy-item:nth-child(even) .strategy-image { order: 1; }
    .strategy-image { margin-bottom: 2rem; }
    
    .clarity-container { grid-template-columns: 1fr; }
    .clarity-content { text-align: center; max-width: 600px; margin: 0 auto 3rem; }
    .clarity-content .section-subtitle { margin: 0 auto; }
    .clarity-visual { transform: rotateY(0deg); }
    
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    /* --- MOBILE HEADER STYLES --- */
    .main-nav, .header-cta {
        display: none; /* Hide desktop elements */
    }

    .mobile-nav-toggle {
        display: block; /* Show hamburger button */
    }

    /* Style the mobile menu overlay */
    .main-nav {
        display: flex; /* Re-enable for mobile layout */
        flex-direction: column;
        justify-content: center;
        align-items: center;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: var(--color-background);
        
        /* Animation: Hide by default */
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: opacity 0.4s ease, visibility 0.4s ease;
        z-index: 999;
    }
    .main-nav ul {
        flex-direction: column;
        text-align: center;
        gap: 2.5rem;
    }
    .main-nav a {
        font-size: 1.5rem; /* Bigger links for mobile */
    }

    /* When the nav is open, show the menu */
    .nav-open .main-nav {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }
    /* --- END MOBILE HEADER STYLES --- */

    h1, .hero-title, .page-title { font-size: 2.8rem; }
    .hero { padding: 80px 0; }
    .sector-grid { grid-template-columns: 1fr; }
    .calculator-container { grid-template-columns: 1fr; }
    .contact-container { grid-template-columns: 1fr; }
    .contact-info-container { margin-top: 3rem; }
}

@media (max-width: 576px) {
    html { font-size: 15px; }
    .hero-title { font-size: 2.5rem; }
    .hero-subtitle { font-size: 1.1rem; }
    .hero-cta-group { flex-direction: column; gap: 1rem; align-items: center; }
    .hero-cta-group .btn { width: 100%; max-width: 300px; }
    .testimonial-quote { font-size: 1.8rem; }
    .contact-form .form-row { grid-template-columns: 1fr; gap: 0; }
    .footer-grid { grid-template-columns: 1fr; text-align: center; }
}