/* Zyrabit Psychology Demo - Terracota Theme */

/* --- Fonts --- */
@font-face {
    font-family: 'Moxa Bestine';
    src: url('fonts/MOXA-Bestine.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Arsenica';
    src: url('fonts/ArsenicaTrial-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Arsenica';
    src: url('fonts/ArsenicaTrial-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* --- Variables --- */
:root {
    /* Colors - Terracota Theme */
    --terracota: #a0674f;
    --beige-suave: #f4ebd8;
    --arena-claro: #eddcca;
    --bg-card: #ffffff;

    --text-base: #f4ebd8;
    /* Light beige for readability */
    --text-title: #ffffff;
    /* White for titles */
    --text-dark: #4b4848;
    /* Dark text for cards */
    --white: #ffffff;
    --footer-bg: #8a5840;
    /* Darker terracota */

    /* Typography */
    --font-title: 'Moxa Bestine', serif;
    --font-body: 'Arsenica', serif;

    /* Layout - Responsive by default */
    --container-width: 1100px;
    --section-spacing-mobile: 3rem;
    /* 48px for mobile */
    --section-spacing-desktop: 6rem;
    /* 96px for desktop */
    --radius-btn: 16px;
    --radius-card: 24px;
}

/* --- Reset & Base --- */
* {
    box-sizing: border-box;
}

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

body {
    font-family: var(--font-body);
    background-color: var(--terracota);
    color: var(--text-base);
    line-height: 1.6;
    margin: 0;
    padding: 0;
    width: 100%;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    /* Prevent horizontal scroll from decorative elements */
    overflow-wrap: break-word;
    /* Break long words */
}

/* Responsive Images - Mobile First Foundation */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* --- Typography Hierarchy - Mobile First --- */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-title);
    color: var(--text-title);
    font-weight: normal;
    line-height: 1.2;
    margin-top: 0;
    margin-bottom: 1.5rem;
}

/* Mobile Typography (Base) */
h1 {
    font-size: 1.75rem;
    /* 28px */
}

h2 {
    font-size: 1.5rem;
    /* 24px */
}

h3 {
    font-size: 1.25rem;
    /* 20px */
}

h4 {
    font-size: 1.125rem;
    /* 18px */
}

p {
    margin-bottom: 1.5rem;
    font-size: 1rem;
    /* 16px */
}

/* Tablet Typography Enhancement */
@media (min-width: 768px) {
    h1 {
        font-size: 2.5rem;
        /* 40px */
    }

    h2 {
        font-size: 2rem;
        /* 32px */
    }

    h3 {
        font-size: 1.5rem;
        /* 24px */
    }

    p {
        font-size: 1.0625rem;
        /* 17px */
    }
}

/* Desktop Typography Enhancement */
@media (min-width: 1024px) {
    h1 {
        font-size: 3rem;
        /* 48px */
    }

    h2 {
        font-size: 2.25rem;
        /* 36px */
    }

    h3 {
        font-size: 1.5rem;
        /* 24px */
    }

    p {
        font-size: 1.125rem;
        /* 18px */
    }
}

/* --- Links vs Buttons --- */
a {
    color: var(--text-base);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--white);
}

/* Button classes must override generic 'a' styles */
.btn {
    display: inline-block;
    min-height: 44px;
    padding: 12px 24px;
    border-radius: var(--radius-btn);
    font-family: var(--font-body);
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 1rem;
    border: 2px solid transparent;
    line-height: 1.5;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Specificity boost for buttons to prevent 'a' conflicts */
a.btn {
    color: var(--terracota);
}

.btn-primary {
    background-color: var(--white);
    color: var(--terracota) !important;
    border-color: var(--terracota);
}

.btn-primary:hover {
    background-color: var(--beige-suave);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: var(--white) !important;
    border-color: var(--white);
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* --- Layout Utilities --- */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 16px;
    /* Minimal padding for mobile */
}

/* Desktop container with more breathing room */
@media (min-width: 1024px) {
    .container {
        padding: 0 24px;
    }
}

section {
    width: 100%;
    padding-top: var(--section-spacing-mobile);
    padding-bottom: var(--section-spacing-mobile);
    position: relative;
    overflow: hidden;
    /* Contain decorative SVGs on desktop */
}

/* Desktop section spacing */
@media (min-width: 1024px) {
    section {
        padding-top: var(--section-spacing-desktop);
        padding-bottom: var(--section-spacing-desktop);
    }
}

/* Mobile First Grid - Stack by default */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: center;
}

/* Tablet & Desktop - Two columns */
@media (min-width: 768px) {
    .grid-2 {
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
    }
}

/* Mobile First Grid-3 - Stack by default */
.grid-3 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

/* Tablet - Two columns */
@media (min-width: 640px) {
    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.5rem;
    }
}

/* Desktop - Three columns */
@media (min-width: 1024px) {
    .grid-3 {
        grid-template-columns: repeat(3, 1fr);
        gap: 2.5rem;
    }
}

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

.relative {
    position: relative;
}

.z-10 {
    position: relative;
    z-index: 10;
}

/* --- Backgrounds --- */
.bg-cream {
    background-color: var(--beige-suave);
}

.bg-sand {
    background-color: var(--arena-claro);
}

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

/* --- Text Color Utilities --- */
.text-white {
    color: var(--white) !important;
}

.text-primary {
    color: var(--terracota) !important;
}

.text-dark {
    color: var(--text-dark) !important;
}

.text-base {
    color: var(--text-base) !important;
}

/* --- Spacing Utilities --- */
.mb-16 {
    margin-bottom: 16px;
}

.mb-24 {
    margin-bottom: 24px;
}

.mb-40 {
    margin-bottom: 40px;
}

.mb-0 {
    margin-bottom: 0;
}

.mt-16 {
    margin-top: 16px;
}

.gap-40 {
    gap: 40px;
}

/* --- Width Utilities --- */
.max-w-480 {
    max-width: 480px;
}

.max-w-800 {
    max-width: 800px;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

/* --- Font Utilities --- */
.font-italic {
    font-style: italic;
}

.font-size-lg {
    font-size: 1.25rem;
}

.font-weight-600 {
    font-weight: 600;
}

/* --- Padding Utilities --- */
.p-20 {
    padding: 20px;
}

.p-40 {
    padding: 40px;
}

.p-80-40 {
    padding: 80px 40px;
}

/* --- Overflow Utilities --- */
.overflow-hidden {
    overflow: hidden;
}

/* --- Flexbox Utilities --- */
.flex {
    display: flex;
}

.flex-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.flex-gap-16 {
    display: flex;
    gap: 16px;
}

/* --- Opacity Utilities --- */
.opacity-80 {
    opacity: 0.8;
}

.opacity-60 {
    opacity: 0.6;
}

.opacity-40 {
    opacity: 0.4;
}

/* --- List Utilities --- */
.list-none {
    list-style: none;
    padding: 0;
}

/* --- Margin Utilities --- */
.mb-8 {
    margin-bottom: 8px;
}

.mb-12 {
    margin-bottom: 12px;
}

.mt-80 {
    margin-top: 80px;
}

/* --- Border Utilities --- */
.border-0 {
    border: 0;
}

.border-top-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.border-radius-24 {
    border-radius: 24px;
}

.border-radius-50 {
    border-radius: 50%;
}

/* --- Font Size Utilities --- */
.font-size-sm {
    font-size: 0.9rem;
}

/* --- Positioning Utilities --- */
.pos-abs {
    position: absolute;
}

/* --- Decorative Blob --- */
.decor-blob {
    position: absolute;
    top: -100px;
    right: -100px;
    width: 300px;
    height: 300px;
    background: #f4ebd8;
    border-radius: 50%;
    opacity: 0.4;
}

/* --- Padding Top --- */
.pt-24 {
    padding-top: 24px;
}

/* --- Components --- */

/* CRITICAL: Hide decorative SVGs on mobile */
@media (max-width: 767px) {

    .bg-decor,
    .decor-float,
    .decor-overlay,
    .decor-1,
    .decor-2,
    .decor-3,
    .decor-4,
    .decor-5,
    .decor-6,
    .decor-7,
    .decor-8,
    .card-decor,
    .decor-blob {
        display: none !important;
    }
}

/* Header */
header {
    padding: 20px 0;
    background-color: rgba(160, 103, 79, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    width: 100%;
    z-index: 300;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.logo {
    font-family: var(--font-title);
    font-size: 1.5rem;
    color: var(--white);
    text-decoration: none;
}

.nav-desktop {
    display: flex;
    gap: 40px;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
}

.nav-desktop a {
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-base);
}

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

/* Hero */
.hero-section {
    min-height: 90vh;
    display: flex;
    align-items: center;
    background-color: var(--terracota);
}

.hero-blob {
    position: absolute;
    top: -30%;
    left: -10%;
    width: 600px;
    height: 600px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    filter: blur(60px);
    z-index: -1;
    opacity: 0.6;
}

/* Cards */
.card {
    background-color: var(--bg-card);
    border-radius: var(--radius-card);
    padding: 40px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
    color: var(--text-dark);
}

.card:hover {
    transform: translateY(-8px);
}

.card h3 {
    color: var(--terracota);
}

/* Images */
.img-organic {
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.img-organic img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: sepia(0.1) contrast(0.95);
}

.img-organic-2 {
    border-radius: 40% 60% 70% 30% / 50% 60% 30% 60%;
}

/* Icons */
.icon-linear {
    stroke: var(--terracota);
    stroke-width: 1.5;
    fill: none;
    width: 48px;
    height: 48px;
    margin-bottom: 24px;
    display: block;
}

/* Footer */
footer {
    background-color: var(--footer-bg);
    color: #e0e0e0;
    padding: 80px 0;
}

footer h4 {
    color: var(--white);
    font-family: var(--font-title);
}

footer a {
    color: #d0d0d0;
}

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

/* Decor - Multiple Positioning Classes */
.bg-decor {
    position: absolute;
    z-index: 0;
    opacity: 0.15;
    pointer-events: none;
}

/* Floating decorations */
.decor-float {
    position: absolute;
    z-index: 1;
    opacity: 0.2;
    pointer-events: none;
}

/* Overlay decorations (higher opacity, over content) */
.decor-overlay {
    position: absolute;
    z-index: 5;
    opacity: 0.25;
    pointer-events: none;
}

/* Specific position classes */
.decor-1 {
    top: -50px;
    left: -50px;
    transform: rotate(-15deg);
    width: 400px;
}

.decor-2 {
    bottom: -50px;
    right: -50px;
    transform: rotate(15deg);
    width: 350px;
}

.decor-3 {
    top: 20%;
    left: -100px;
    transform: rotate(45deg);
    width: 300px;
}

.decor-4 {
    top: 10%;
    right: 5%;
    transform: rotate(-25deg);
    width: 280px;
}

.decor-5 {
    bottom: 20%;
    left: 10%;
    transform: rotate(60deg);
    width: 320px;
}

.decor-6 {
    top: 50%;
    right: -80px;
    transform: rotate(-40deg);
    width: 300px;
}

.decor-7 {
    bottom: 10%;
    right: 15%;
    transform: rotate(20deg);
    width: 250px;
}

.decor-8 {
    top: 30%;
    left: 5%;
    transform: rotate(-10deg);
    width: 200px;
}

/* Floating animation */
@keyframes float {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(5deg);
    }
}

@keyframes float-delayed {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-15px) rotate(-5deg);
    }
}

.anim-float {
    animation: float 6s ease-in-out infinite;
}

.anim-float-delayed {
    animation: float-delayed 8s ease-in-out infinite;
    animation-delay: 2s;
}

/* Mobile Menu */
.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    min-width: 44px;
    min-height: 44px;
    padding: 8px;
    position: relative;
    z-index: 350;
}

.hamburger span {
    display: block;
    width: 28px;
    height: 3px;
    background-color: var(--white);
    margin: 5px auto;
    transition: all 0.3s ease;
    position: relative;
}

/* Hamburger active state (X animation) */
.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--terracota);
    z-index: 250;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.mobile-menu-overlay ul {
    list-style: none;
    padding: 0;
    text-align: center;
}

.mobile-menu-overlay li {
    margin-bottom: 32px;
}

.mobile-menu-overlay a {
    font-family: var(--font-title);
    font-size: 2rem;
    color: var(--white);
}

/* WhatsApp */
.whatsapp-widget {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.whatsapp-btn {
    width: 60px;
    height: 60px;
    background-color: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 32px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
}

.whatsapp-btn:hover {
    transform: scale(1.1);
}

.whatsapp-bubble {
    background-color: white;
    color: #333;
    padding: 12px 20px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin-bottom: 12px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.5s ease;
    pointer-events: none;
}

.whatsapp-bubble.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}

/* Profile Card */
.profile-card {
    background-color: var(--white);
    border-radius: var(--radius-card);
    padding: 48px;
    position: relative;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.profile-card h2 {
    color: var(--terracota);
}

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

.card-decor {
    position: absolute;
    top: -20px;
    right: -20px;
    width: 180px;
    opacity: 0.1;
    transform: rotate(10deg);
    pointer-events: none;
}

.specialty-label {
    font-family: var(--font-body);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.8rem;
    color: var(--terracota);
    font-weight: 700;
    margin-bottom: 16px;
    display: block;
}

.specialties-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 24px 0 32px 0;
}

.specialty-tag {
    background-color: var(--beige-suave);
    color: var(--text-dark);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.specialty-tag:hover {
    background-color: var(--terracota);
    color: var(--white);
}

/* Mobile Navigation - Show hamburger, hide desktop nav on mobile */
@media (max-width: 767px) {
    .nav-desktop {
        display: none;
    }

    .hamburger {
        display: block;
    }
}