/*
Theme Name: Terapeuta
Theme URI: 
Author: Vgcm
Author URI: 
Description: Custom theme for Jose A. Fernandez | Coach & Terapeuta
Version: 6.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: terapeuta
*/

@import url('https://fonts.googleapis.com/css2?family=Instrument+Sans:ital,wght@0,400;0,500;0,600;0,700;1,400&family=Playfair+Display:ital,wght@0,600;1,600&display=swap');

:root {
    --bg-white: #FFFFFF;
    --bg-grid: #F2F4F8;
    --bg-dark: #0D0F12;
    --primary-lime: #C5C81A;
    --primary-purple: #525BA4;

    --text-main: #0D0F12;
    --text-muted: #666;

    --font-main: 'Instrument Sans', sans-serif;
    --font-accent: 'Playfair Display', serif;

    --container: 1300px;
}

html {
    scroll-behavior: smooth;
}

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

body {
    font-family: var(--font-main);
    background-color: var(--bg-white);
    color: var(--text-main);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-main);
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

ul {
    list-style: none;
}

.container {
    margin: 0 auto;
    max-width: var(--container);
    padding: 0 1rem;
    position: relative;
}

/* --- GRID BACKGROUND --- */
.hero-jenny {
    background-color: var(--bg-white);
    position: relative;
    padding-top: 10rem; /* Increased to clear fixed header */
}

/* --- STICKY WRAPPER --- */
.header-main-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.3s ease;
    background: transparent;
}

.header-main-wrapper.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

/* --- NAVBAR --- */
.nav-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
    z-index: 100;
    position: relative;
    transition: all 0.3s ease;
}

.header-main-wrapper.scrolled .nav-top {
    padding: 0.8rem 0;
}

.brand {
    font-weight: 700;
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-box {
    width: 30px;
    height: 30px;
    background: var(--primary-lime);
    border-radius: 6px;
    display: inline-block;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.95rem;
}

.nav-links a:hover {
    color: var(--text-main);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
    padding: 0.5rem;
    z-index: 1001;
}

.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--text-main);
    transition: 0.3s;
    border-radius: 3px;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

body.no-scroll {
    overflow: hidden;
}

.btn-contact {
    background: var(--primary-purple);
    color: white;
    padding: 0.8rem 1.8rem;
    border-radius: 99px;
    font-weight: 600;
    font-size: 0.95rem;
}

.btn-contact:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(99, 108, 154, 0.3);
}


.footer-social-link {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.footer-social-link:hover {
    color: var(--primary-purple) !important;
    transform: translateY(-2px);
    opacity: 0.8;
}

.footer-social-link:hover i {
    transform: scale(1.1);
}

/* --- FOOTER SECTIONS --- */
/* --- HERO ANIMATIONS --- */
@keyframes heroFadeInLeft {
    from { opacity: 0; transform: translateX(-40px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes heroFadeInRight {
    from { opacity: 0; transform: translateX(40px); }
    to { opacity: 1; transform: translateX(0); }
}

/* --- MAIN CONTENT (Values updated for Left/Right Split) --- */
.hero-main {
    position: relative;
    flex-grow: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    /* Balanced split for better separation */
    gap: 6rem;
    /* Increased gap for more space in the middle */
    padding: 3rem 0 0;
}

.hero-text-col {
    text-align: left;
    z-index: 10;
    align-self: center;
    /* Center text vertically */
    opacity: 0;
    animation: heroFadeInLeft 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.intro-tag {
    color: var(--primary-purple);
    font-weight: 600;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    justify-content: flex-start;
    /* Aligned start */
}

.intro-tag::before {
    content: '';
    width: 30px;
    height: 2px;
    background: var(--primary-purple);
}

.hero-title {
    font-size: 5rem;
    line-height: 1.1;
    color: #111;
    margin-bottom: 1.5rem;
    letter-spacing: -0.04em;
}

.hero-title span {
    color: var(--primary-purple);
    text-decoration: underline;
    text-decoration-color: var(--primary-lime);
    text-decoration-thickness: 6px;
    font-family: var(--font-accent);
    font-style: italic;
    white-space: nowrap;
}

.hero-title .hero-subtitle {
    font-size: 3.5rem;
    display: block;
    margin-top: 0.5rem;
    color: #111;
    /* Match Soy */
    font-family: var(--font-main);
    /* Match Soy */
    font-style: normal;
    /* Match Soy */
    text-decoration: none;
    /* Remove underline from span rule */
}

.hero-description {
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 500px;
    line-height: 1.6;
    margin-bottom: 2.5rem;
}


/* --- CENTRAL VISUAL (Now Right Visual) --- */
.hero-visual-wrapper {
    position: relative;
    width: 100%;
    max-width: 500px;
    /* Fixed width for better control */
    height: 600px;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    margin: 0 auto;
    /* Center in col */
    align-self: end;
    /* Sit at bottom */
    opacity: 0;
    animation: heroFadeInRight 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Background Shape */
.bg-shape {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 106%;
    /* Updated per screenshot */
    height: 90%;
    /* Updated per screenshot */
    background: var(--primary-purple);
    border-radius: 200px 200px 0 0;
    /* Full Arch */
    z-index: 0;
}

.person-img {
    position: absolute;
    /* Changed to absolute to lock with shape */
    bottom: 0;
    left: 48%;
    transform: translateX(calc(-50% + 15px));
    /* Centered + Nudge */
    z-index: 1;
    height: 125%;
    /* Adjusted height */
    width: auto;
    object-fit: contain;
    filter: grayscale(100%);
    transition: filter 0.3s;
    mask-image: linear-gradient(to bottom, black 60%, transparent 100%);
}

.person-img:hover {
    filter: grayscale(0%);
}

/* --- FLOATING ELEMENTS --- */
.floating-ui {
    position: absolute;
    z-index: 3;
}

.badge-rotate {
    top: 60px;
    /* Updated per screenshot */
    right: 0;
    /* Adjusted position */
    animation: spin 10s linear infinite;
}

@keyframes spin {
    100% {
        transform: rotate(360deg);
    }
}

.client-stats {
    bottom: 50px;
    left: -50px;
    /* Adjusted position */
    text-align: left;
    background: white;
    padding: 1rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.stat-num {
    font-size: 1.5rem;
    font-weight: 700;
    display: block;
}

.avatars {
    display: flex;
    margin-top: 0.5rem;
}

.avatar {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    border: 3px solid white;
    margin-left: -10px;
    background: #ddd;
    object-fit: cover;
}

.avatar:first-child {
    margin-left: 0;
}

/* In-Text CTA Buttons */
.hero-cta-group {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.btn-pill {
    padding: 1rem 2.5rem;
    border-radius: 99px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    font-size: 1.1rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

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

.btn-primary:hover {
    background: #4a3ecc;
}

.btn-white {
    background: white;
    color: #111;
    border: 1px solid #ddd;
}

.btn-white:hover {
    border-color: #000;
}


/* --- SECTIONS BELOW --- */
.dark-bg {
    background: var(--bg-dark);
    color: white;
    padding: 6rem 0;
}

.footer-lime {
    background: var(--primary-lime);
    padding: 4rem 0;
    border-radius: 60px 60px 0 0;
    margin-top: -3rem;
    position: relative;
    z-index: 10;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

/* --- SERVICES SECTION (EXPANDED) --- */
.services-header {
    text-align: center;
    margin-bottom: 5rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.services-tag {
    color: var(--primary-purple);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.9rem;
    display: block;
    margin-bottom: 1rem;
}

.services-title {
    font-size: 3.5rem;
    margin-bottom: 2rem;
    color: white;
    letter-spacing: -0.02em;
}

.services-intro-text, .services-outro-text {
    font-size: 1.2rem;
    line-height: 1.7;
    color: #999;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 5rem;
}

.service-card {
    background: #1A1D21;
    padding: 3rem 2.5rem;
    border-radius: 32px;
    border: 1px solid rgba(255,255,255,0.05);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: rgba(255,255,255,0.1);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.service-icon-box {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    font-size: 1.8rem;
}

.purple-accent .service-icon-box {
    background: rgba(91,77,255,0.1);
    color: var(--primary-purple);
}

.lime-accent .service-icon-box {
    background: rgba(195, 245, 60, 0.1);
    color: var(--primary-lime);
}

.service-card h3 {
    font-size: 1.6rem;
    margin-bottom: 1.2rem;
    color: #fff;
}

.service-description {
    color: #999;
    line-height: 1.6;
    font-size: 1.05rem;
    margin: 0;
}

.coaching-banner {
    background: #111418;
    padding: 8rem 0;
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.03);
}

.banner-text {
    font-size: 1.6rem;
    line-height: 1.6;
    color: #fff;
    max-width: 1000px;
    margin: 0 auto;
    font-weight: 500;
}

/* --- BLOG CARDS (NEW) --- */
.blog-cards-section {
    padding: 6rem 0;
    background: #fdfdfd;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.blog-card {
    background: white;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid #eee;
    transition: 0.3s;
}

.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.05);
}

.blog-card-img {
    width: 100%;
    height: 240px;
    object-fit: cover;
}

.blog-card-content {
    padding: 3rem 2.5rem;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 350px;
}

.blog-card-meta {
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 0.5rem;
    display: block;
}

.blog-card-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    display: block;
    line-height: 1.3;
}

.blog-card-excerpt {
    color: #666;
    line-height: 1.7;
    margin-bottom: 2rem;
    flex-grow: 1; /* Pushes the link to the bottom */
}

.blog-card-link {
    font-weight: 600;
    color: var(--primary-purple);
    display: flex;
    align-items: center;
    gap: 5px;
}

/* --- BLOG ARCHIVE / SINGLE --- */
.blog-header {
    padding: 10rem 0 6rem; /* Increased top padding to clear fixed header */
    background: #f9f9f9;
    text-align: center;
    width: 100%;
}

.single-post-content {
    padding: 4rem 0 10rem;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
}

.post-navigation {
    margin-top: 6rem;
    padding-top: 3rem;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.post-navigation a {
    font-weight: 600;
    color: #5B4DFF;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: 0.3s;
}

.post-navigation a:hover {
    color: var(--primary-purple);
}

.nav-back .blog-card-link {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Mobile */
@media(max-width: 1024px) {
    .blog-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media(max-width: 900px) {
    .hero-main {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
        padding-top: 1rem;
    }

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

    .grid-2,
    .grid-3,
    .grid-about,
    .grid-2-services {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }

    .hero-jenny {
        padding-top: 6rem;
    }

    .blog-header {
        padding: 6rem 0 3rem !important;
    }
    
    .blog-header h1 {
        font-size: 2.2rem !important;
    }

    .intro-tag {
        justify-content: center;
    }

    .hero-title {
        font-size: 3rem;
    }

    .hero-subtitle {
        font-size: 2.2rem;
    }

    .hero-description {
        margin: 0 auto 2rem;
    }

    .hero-cta-group {
        justify-content: center;
    }

    .hero-visual-wrapper {
        height: 400px;
    }

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

    .btn-contact {
        display: none;
    }

    .nav-links {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(255, 255, 255, 0.98);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 3rem;
        transform: translateY(-100%);
        transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        z-index: 1000;
        backdrop-filter: blur(10px);
    }

    .nav-links.active {
        transform: translateY(0);
    }

    .nav-links a {
        font-size: 1.5rem;
        color: var(--text-main);
    }

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

/* Title Highlight (Blog) */
.title-highlight {
    color: var(--primary-purple);
    text-decoration: underline;
    text-decoration-color: var(--primary-lime);
    text-decoration-thickness: 0.11em;
    font-family: var(--font-accent);
    font-style: italic;
}

.title-highlight-light {
    color: var(--bg-grid);
    text-decoration: underline;
    text-decoration-color: var(--primary-lime);
    text-decoration-thickness: 0.11em;
    font-family: var(--font-accent);
    font-style: italic;
}

.title-highlight-purple {
    color: var(--primary-purple);
    text-decoration: underline;
    text-decoration-color: var(--primary-lime);
    text-decoration-thickness: 0.11em;
    font-family: var(--font-accent);
    font-style: italic;
}
/* --- CLINICAL FORM SECTION --- */
.clinical-form-section {
    position: relative;
    z-index: 1;
}

.form-wrapper {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus, 
.form-group select:focus, 
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-lime) !important;
    background: rgba(255,255,255,0.08) !important;
}

/* Fix for Select Options readability in dark mode */
.form-group select option {
    background-color: #1a1d21;
    color: white;
}

.progress-step.active {
    background: var(--primary-lime) !important;
    box-shadow: 0 0 15px rgba(197, 200, 26, 0.3);
}

.progress-step.completed {
    background: var(--primary-purple) !important;
}

#next-btn:hover, #submit-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(197, 200, 26, 0.2);
}

#prev-btn:hover {
    background: rgba(255,255,255,0.05) !important;
    border-color: white !important;
}

/* Custom Checkbox/Radio Styling */
input[type="checkbox"], input[type="radio"] {
    accent-color: var(--primary-lime);
    width: 18px;
    height: 18px;
}

/* Animations */
@keyframes fadeInSlide {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-step {
    display: none;
}

.form-step.active {
    display: block !important;
    animation: fadeInSlide 0.5s ease forwards;
}

/* Mobile Adjustments for Form & Spacing */
@media(max-width: 768px) {
    section {
        padding: 4rem 0 !important;
    }

    .clinical-form-section {
        padding: 4rem 0 !important;
    }
    
    .form-wrapper {
        border-radius: 0 !important;
    }
    
    .form-header, #rmq-clinical-form {
        padding: 2rem !important;
    }
    
    .form-grid {
        grid-template-columns: 1fr !important;
    }
    
    .hero-title {
        font-size: 3.5rem;
    }
    
    .global-scope-card {
        padding: 3rem 1.5rem !important;
        border-radius: 30px !important;
    }
    
    .global-scope-card h2 {
        font-size: 2.2rem !important;
    }

    /* General responsive font size overrides for page headings */
    .services-detail h2,
    .philosophy-content h2,
    .about-bio h2,
    .cta-bottom h2,
    .services-title {
        font-size: 2.2rem !important;
    }
}

/* Scroll Offset for Sticky Header */
section[id] {
    scroll-margin-top: 100px;
}

/* --- BACK TO TOP BUTTON --- */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: var(--primary-lime);
    color: #111;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.8rem;
    text-decoration: none;
    box-shadow: 0 10px 25px rgba(197, 200, 26, 0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(197, 200, 26, 0.5);
    background: #fff;
}
