@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
    /* Color Palette */
    --primary-green: #4F6F5D;
    --medium-green: #6F8E7C;
    --sage-green: #9FB7A9;
    --bg-beige: #E7E2D8;
    --off-white: #F2EFE8;

    /* Text Colors */
    --text-main: var(--primary-green);
    --text-muted: var(--medium-green);
    --text-light: var(--off-white);

    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Spacing */
    --section-padding: 120px 20px;
    --container-width: 1200px;
    /* Shadows & Transitions */
    --shadow-soft: 0 10px 30px rgba(79, 111, 93, 0.1);
    --transition-smooth: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.mobile-only {
    display: none;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--off-white);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    font-weight: 700;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: var(--section-padding);
}

/* Utilities */
.text-center {
    text-align: center;
}

.flex {
    display: flex;
}

.grid {
    display: grid;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 16px 32px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition-smooth);
    cursor: pointer;
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

.btn-primary {
    background-color: var(--primary-green);
    color: var(--off-white);
    box-shadow: 0 4px 15px rgba(79, 111, 93, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(79, 111, 93, 0.4);
    background-color: var(--medium-green);
}

.btn-outline {
    border: 2px solid var(--primary-green);
    color: var(--primary-green);
}

.btn-outline:hover {
    background-color: var(--primary-green);
    color: var(--off-white);
}

/* Navigation */
header {
    background-color: rgba(242, 239, 232, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition-smooth);
    border-bottom: 1px solid rgba(79, 111, 93, 0.1);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 50px;
    width: auto;
}

.nav-links {
    display: flex;
    gap: 30px;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--primary-green);
    font-weight: 500;
    font-size: 0.9rem;
    transition: var(--transition-smooth);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-green);
    transition: var(--transition-smooth);
}

.nav-links a:hover::after {
    width: 100%;
}

/* Dropdown styling for "Nosso Método" */
.dropdown {
    position: relative;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: var(--off-white);
    min-width: 200px;
    box-shadow: var(--shadow-soft);
    border-radius: 12px;
    padding: 10px 0;
    top: 100%;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown-content::before {
    content: '';
    position: absolute;
    top: -20px;
    left: 0;
    width: 100%;
    height: 20px;
}

.mobile-menu-btn {
    display: none;
}

.dropdown-content a {
    display: block;
    padding: 10px 20px;
}

/* Hero Section - Clean Animated Background */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background-color: var(--bg-beige);
    padding: 120px 0 80px 0;
    position: relative;
    overflow: hidden;
}

.cursor-blob {
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(159, 183, 169, 0.4) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 1;
    transform: translate(-50%, -50%);
    will-change: left, top;
}

.hero-content {
    max-width: 800px;
    z-index: 2;
    position: relative;
    text-align: left;
    /* Left align text on PC */
}

.hero-content h1,
.hero-content p,
.hero-btns {
    text-align: left;
    justify-content: flex-start;
}

.hero h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 24px;
    color: var(--primary-green);
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 40px;
    color: var(--medium-green);
}

/* Services Section - 4/3 Grid for PC */
.services-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    gap: 20px;
    margin-top: 50px;
}

.service-card {
    background: white;
    padding: 25px 20px;
    border-radius: 20px;
    border: 1px solid rgba(79, 111, 93, 0.08);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    justify-content: center;
    /* min-height removed to allow content adjustment */
    width: calc(25% - 20px);
    /* 4 per row */
}

/* Adjust row 2 (last 3 items) - Specific to Treatments Grid */
#tratamentos .service-card:nth-last-child(-n+4) {
    width: calc(25% - 20px);
    max-width: 300px;
}

/* Guide Cards - Specialized UI/UX */
.guide-card {
    background: white;
    padding: 40px;
    border-radius: 20px;
    border: 1px solid rgba(79, 111, 93, 0.08);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    justify-content: flex-start;
    width: 100%;
    /* Take full width of grid cell */
    box-shadow: var(--shadow-soft);
}

.guide-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(79, 111, 93, 0.15);
    border-color: var(--sage-green);
}

.guide-img {
    width: 100%;
    max-width: 250px;
    height: 250px;
    object-fit: contain;
    margin-bottom: 20px;
    border-radius: 10px;
}

.service-card p {
    display: none;
    /* Hide descriptions to keep only icons and titles */
}

.service-card h3 {
    font-size: 1.1rem;
    color: var(--primary-green);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(79, 111, 93, 0.1);
    border-color: var(--sage-green);
}

.service-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--primary-green);
}

/* Method Pillars */
.pillars-grid {
    display: flex;
    flex-direction: column;
    gap: 40px;
    margin-top: 60px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    padding-bottom: 20px;
}

/* Connecting line */
.pillars-grid::before {
    content: '';
    position: absolute;
    left: 40px;
    top: 50px;
    bottom: 50px;
    width: 2px;
    background: var(--primary-green);
    opacity: 0.15;
    z-index: 1;
}

.pillar-item {
    display: flex;
    align-items: center;
    gap: 40px;
    position: relative;
    z-index: 2;
}

.pillar-step {
    flex: 0 0 80px;
    height: 80px;
    background: var(--primary-green);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    font-weight: 700;
    font-family: var(--font-heading);
    box-shadow: 0 10px 25px rgba(79, 111, 93, 0.2);
}

.pillar-content {
    background: white;
    padding: 35px 45px;
    border-radius: 24px;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(79, 111, 93, 0.05);
    flex: 1;
    position: relative;
}

/* Attached Arrow */
.pillar-content::before {
    content: '';
    position: absolute;
    left: -10px;
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
    width: 20px;
    height: 20px;
    background: white;
    border-left: 1px solid rgba(79, 111, 93, 0.05);
    border-bottom: 1px solid rgba(79, 111, 93, 0.05);
}

.pillar-content h4 {
    color: var(--primary-green);
    margin-bottom: 10px;
    font-size: 1.4rem;
}

.pillar-content p {
    color: var(--medium-green);
    line-height: 1.6;
    font-size: 1.05rem;
}

/* Intermediate CTA */
.cta-banner {
    background-color: var(--primary-green);
    color: var(--off-white);
    padding: 60px 0;
    text-align: center;
}

.cta-banner h2 {
    font-size: 2.2rem;
    margin-bottom: 15px;
}

.cta-banner p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

/* Bio Mosaic Section */
.bio-section {
    display: flex;
    align-items: center;
    gap: 0;
    padding: 120px 0;
    position: relative;
    max-width: 1100px;
    margin: 0 auto;
}

.bio-section.reverse {
    flex-direction: row-reverse;
}

.bio-image {
    flex: 1;
    max-width: 450px;
    position: relative;
    z-index: 2;
}

.bio-image img {
    width: 100%;
    max-height: 550px;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 20px 20px 60px rgba(0, 0, 0, 0.1);
}

.bio-content {
    flex: 1.5;
    background: white;
    padding: 60px 80px;
    border-radius: 20px;
    box-shadow: var(--shadow-soft);
    position: relative;
    z-index: 1;
}

/* Overlap Effect PC - Strategic Padding */
.bio-section .bio-image {
    margin-right: -100px;
}

.bio-section .bio-content {
    padding-left: 120px;
    /* Space for the overlapping image */
}

.bio-section.reverse .bio-image {
    margin-right: 0;
    margin-left: -100px;
}

.bio-section.reverse .bio-content {
    padding-left: 60px;
    padding-right: 120px;
    /* Space for the overlapping image */
}

.bio-content h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.bio-content .bio-subtitle {
    color: var(--medium-green);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    margin-bottom: 20px;
    display: block;
}

.bio-content p {
    margin-bottom: 20px;
    font-size: 1.05rem;
    text-align: justify;
}

.about-card {
    background: var(--off-white);
    border-radius: 30px;
    overflow: hidden;
    padding: 30px;
    position: relative;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(79, 111, 93, 0.05);
}

.about-info h3 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    color: var(--primary-green);
}

.about-info .subtitle {
    color: var(--medium-green);
    font-weight: 700;
    margin-bottom: 15px;
    display: block;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
}

/* Testimonials Slider */
.testimonials-slider {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    overflow: hidden;
    /* Viewport */
    padding: 20px 0 100px 0;
}

.testimonials-track {
    display: flex;
    transition: transform 0.8s cubic-bezier(0.65, 0, 0.35, 1);
    will-change: transform;
    width: 100%;
}

.testimonial-card {
    flex: 0 0 100%;
    /* Exactly 100% of the slider viewport */
    width: 100%;
    padding: 40px;
    background: white;
    border-radius: 24px;
    box-shadow: 0 15px 35px rgba(79, 111, 93, 0.08);
    transition: var(--transition-smooth);
    margin: 0;
}

.testimonial-card:hover {
    transform: translateY(-5px);
}

.testimonial-quote {
    color: var(--sage-green);
    font-size: 2rem;
    margin-bottom: 20px;
    display: block;
}

.slider-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
}

.slider-btn {
    background: white;
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-green);
    cursor: pointer;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 15px rgba(79, 111, 93, 0.12);
    /* Soft green shadow */
}

.slider-btn:hover {
    background: var(--primary-green);
    color: white;
    transform: scale(1.1);
}

.slider-dots {
    display: flex;
    gap: 10px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--sage-green);
    opacity: 0.3;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.dot.active {
    opacity: 1;
    background: var(--primary-green);
    width: 24px;
    border-radius: 10px;
}

/* FAQ */
.faq-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.faq-card {
    background: white;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    transition: var(--transition-smooth);
    border: 1px solid rgba(79, 111, 93, 0.05);
    cursor: pointer;
    overflow: hidden;
}

.faq-card:hover {
    border-color: var(--sage-green);
    box-shadow: 0 15px 40px rgba(79, 111, 93, 0.1);
}

.faq-card h3 {
    color: var(--primary-green);
    margin-bottom: 0;
    font-size: 1.2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition-smooth);
}

.faq-card h3::after {
    content: '\f078';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 0.8rem;
    transition: var(--transition-smooth);
}

.faq-card.active h3 {
    margin-bottom: 15px;
    color: var(--medium-green);
}

.faq-card.active h3::after {
    transform: rotate(180deg);
}

.faq-card p {
    color: var(--medium-green);
    font-size: 0.95rem;
    line-height: 1.5;
    max-height: 0;
    opacity: 0;
    margin-bottom: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, opacity 0.3s ease-out, padding 0.3s ease-out;
}

.faq-card.active p {
    max-height: 300px;
    opacity: 1;
    margin-bottom: 0;
    padding-top: 15px;
}

/* Sticky WhatsApp */
.whatsapp-sticky {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 1001;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.8);
}

.whatsapp-sticky.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.whatsapp-sticky:hover {
    transform: scale(1.1) rotate(5deg);
    background-color: #128c7e;
}

/* Responsive Customizations */
@media (max-width: 992px) {

    .bio-section,
    .bio-section.reverse {
        flex-direction: column !important;
        text-align: center;
        gap: 0;
        padding: 60px 20px;
    }

    .bio-image {
        max-width: 90%;
        margin: 0 auto -40px auto !important;
        /* Overlap bottom effect */
        z-index: 2;
    }

    .bio-content {
        padding: 60px 30px 40px 30px;
        z-index: 1;
        width: 100%;
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 80px 0;
    }

    section {
        scroll-margin-top: 100px;
    }

    .container {
        width: 90vw;
        padding: 0;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .nav-links {
        display: none;
        /* Hide desktop nav */
    }

    .nav-container {
        justify-content: center;
        flex-direction: column;
        gap: 15px;
        padding-top: 20px;
    }

    header {
        height: auto;
        padding: 15px 0;
    }

    .nav-container {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        width: 90vw;
        margin: 0 auto;
    }

    .mobile-menu-btn {
        display: block;
        background: none;
        border: none;
        color: var(--primary-green);
        font-size: 1.5rem;
        cursor: pointer;
        z-index: 1001;
    }

    .header-cta {
        display: none;
    }

    .mobile-only {
        display: block;
    }

    .nav-links {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background-color: var(--off-white);
        padding: 100px 40px;
        transition: var(--transition-smooth);
        z-index: 1000;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links li {
        width: 100%;
    }

    .nav-links a {
        font-size: 1.2rem;
        display: block;
        padding: 15px 0;
        border-bottom: 1px solid rgba(79, 111, 93, 0.1);
    }

    .dropdown-content {
        position: static;
        display: none;
        box-shadow: none;
        background-color: transparent;
        padding-left: 20px;
        transform: none;
    }

    .dropdown.active .dropdown-content {
        display: block;
    }

    /* Pillars New Layout Mobile */
    .pillars-grid::before {
        left: 30px;
    }

    .pillar-item {
        gap: 15px;
    }

    .pillar-step {
        flex: 0 0 60px;
        height: 60px;
        font-size: 1.6rem;
    }

    .pillar-content {
        padding: 25px 20px;
    }

    .pillar-content h4 {
        font-size: 1.2rem;
    }

    .pillar-content::before {
        left: -8px;
    }

    .hero {
        padding-top: 40%;
        /* Space for the header */
        padding-bottom: 80px;
        height: 100vh;
        min-height: auto;
        display: flex;
        flex-direction: column;
        justify-content: center;
        text-align: center;
    }

    .mobile-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        display: none;
        z-index: 999;
        backdrop-filter: blur(5px);
    }

    .mobile-overlay.active {
        display: block;
    }

    .hero-content {
        text-align: center !important;
        margin: 0 auto;
        height: auto;
        width: 90vw;
    }

    .hero-btns {
        display: flex;
        flex-direction: column;
        gap: 15px;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }

    .hero-btns .btn {
        margin-left: 0 !important;
        width: 100%;
    }

    .hero-content h1 {
        font-size: 2.2rem !important;
        line-height: 1.2;
        margin-bottom: 20px;
    }

    .hero-content p {
        font-size: 1rem;
        line-height: 1.5;
        text-align: center !important;
    }

    .services-grid {
        display: grid;
        grid-template-columns: 1fr;
        width: 100%;
    }

    .service-card {
        width: 100% !important;
        max-width: none !important;
    }

    .pillar-card {
        width: 100%;
    }

    .bio-section,
    .bio-section.reverse {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        width: 90vw !important;
        max-width: 90vw !important;
        margin: 0 auto !important;
        text-align: center !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .bio-section .bio-image,
    .bio-section.reverse .bio-image {
        width: 100% !important;
        max-width: 280px !important;
        margin: 0 auto !important;
        z-index: 1;
    }

    .bio-section .bio-content,
    .bio-section.reverse .bio-content {
        background-color: white;
        padding: 30px 20px !important;
        width: 100% !important;
        border-radius: 20px;
        box-shadow: var(--shadow-soft);
        margin-top: -40px !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding-left: 20px !important;
        padding-right: 20px !important;
        position: relative;
        z-index: 2;
    }

    #sobre-derick .bio-content {
        background-color: #f8f7f2;
    }

    .bio-content p {
        text-align: justify !important;
        hyphens: auto;
        margin-bottom: 15px;
        font-size: 0.95rem;
    }

    .bio-content h2,
    .bio-content .bio-subtitle {
        text-align: center !important;
        display: block;
    }

    .bio-content h2 {
        font-size: 2rem;
    }

    .testimonials-track {
        width: 100%;
    }

    .testimonial-card {
        padding: 30px 20px;
    }

    .grid {
        grid-template-columns: 1fr !important;
    }

    .guide-card {
        padding: 30px 20px;
        width: 100%;
    }

    .faq-grid {
        width: 100%;
    }

    .faq-card {
        width: 100%;
    }
}

/* Fix for 1366x768 and small laptops */
@media (max-width: 1400px) {
    .hero h1 {
        font-size: 3rem;
    }
}

@media (max-height: 800px) and (min-width: 992px) {
    .hero {
        padding: 100px 0 60px 0;
    }

    .hero h1 {
        font-size: 2.8rem;
    }

    .hero p {
        margin-bottom: 30px;
    }
}