/* 
   Budita Naturoterapias - Zen Editorial Design System
   Visual Excellence & Premium Aesthetics 
*/

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

:root {
    /* Color Palette */
    --primary: #004d27;
    --primary-container: #006837;
    --secondary: #1e6c37;
    --tertiary: #4e402b;
    --background: #faf9f5;
    --on-background: #1b1c1a;
    --on-surface-variant: #3f4940;
    
    /* Surface Tiers (No-Line Rule) */
    --surface-low: #f4f4f0;
    --surface-container: #efeeea;
    --surface-high: #e9e8e4;
    --surface-highest: #e3e2df;
    --white: #ffffff;

    /* Typography Scales */
    --font-serif: 'Noto Serif', serif;
    --font-sans: 'Plus Jakarta Sans', sans-serif;

    /* Transitions & Radii */
    --radius-pebble: 2rem;
    --radius-soft: 1rem;
    --transition-smooth: all 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

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

body {
    background-color: var(--background);
    color: var(--on-background);
    font-family: var(--font-sans);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, .serif {
    font-family: var(--font-serif);
}

/* --- Layout Utils --- */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

section {
    padding: 6rem 0;
    position: relative;
}

/* --- Premium Components --- */

/* Glassmorphism Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(250, 249, 245, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 77, 39, 0.05);
    transition: var(--transition-smooth);
}

.navbar.scrolled {
    padding: 0.5rem 0;
    background: rgba(250, 249, 245, 0.9);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    font-style: italic;
}

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

.nav-links a {
    text-decoration: none;
    color: var(--on-surface-variant);
    font-size: 0.9rem;
    font-weight: 500;
    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);
    transition: var(--transition-smooth);
}

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

.nav-links a:hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    padding-top: 8rem;
    background: radial-gradient(circle at top right, rgba(0, 104, 55, 0.05) 0%, transparent 50%);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: center;
}

.hero-content h1 {
    font-size: clamp(3rem, 5vw, 4.5rem);
    color: var(--primary);
    line-height: 1.1;
    margin-bottom: 2rem;
}

.hero-content h1 span {
    display: block;
    color: var(--tertiary);
    font-style: italic;
    font-weight: 400;
    font-size: 0.8em;
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--on-surface-variant);
    max-width: 500px;
    margin-bottom: 3rem;
}

.btn-group {
    display: flex;
    gap: 1.5rem;
}

.btn {
    padding: 1.2rem 2.5rem;
    border-radius: var(--radius-soft);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition-smooth);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-container) 100%);
    color: var(--white);
    box-shadow: 0 10px 20px rgba(0, 77, 39, 0.15);
}

.btn-primary:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 77, 39, 0.25);
}

.btn-ghost {
    background: transparent;
    color: var(--primary);
    border-bottom: 2px solid rgba(0, 77, 39, 0.1);
    border-radius: 0;
    padding-left: 0;
    padding-right: 0;
}

.btn-ghost:hover {
    border-bottom-color: var(--primary);
}

.hero-image-wrapper {
    position: relative;
}

.hero-main-img {
    width: 100%;
    aspect-ratio: 4/5;
    object-fit: cover;
    border-radius: var(--radius-pebble);
    transform: rotate(2deg);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.1);
    transition: var(--transition-smooth);
}

.hero-main-img:hover {
    transform: rotate(0deg) scale(1.02);
}

.floating-quote {
    position: absolute;
    bottom: -2rem;
    left: -2rem;
    background: var(--white);
    padding: 2rem;
    border-radius: var(--radius-soft);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
    max-width: 250px;
    z-index: 10;
}

.floating-quote p {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 0.95rem;
    color: var(--tertiary);
}

/* Sections */
.section-title {
    text-align: center;
    margin-bottom: 5rem;
}

.section-title h2 {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.section-divider {
    width: 80px;
    height: 4px;
    background: var(--primary-container);
    margin: 0 auto;
    border-radius: 99px;
    opacity: 0.2;
}

/* Reveal Animation Class */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: var(--transition-smooth);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 968px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero-content p {
        margin: 0 auto 3rem;
    }
    .btn-group {
        justify-content: center;
    }
    /* Nav: collapse into compact horizontal scroll */
    .nav-links {
        display: flex !important;
        gap: 1rem;
        font-size: 0.78rem;
        flex-wrap: wrap;
        justify-content: flex-end;
    }
    .nav-links a { font-size: 0.78rem; }
    .nav-links .btn { padding: 0.5rem 0.9rem !important; font-size: 0.78rem; }
}

/* ==========  Mobile responsive (≤ 768px)  ========== */
@media (max-width: 768px) {
    section { padding: 3.5rem 0 !important; }
    .container { padding: 0 1.25rem !important; }

    h1 { font-size: 2.4rem !important; line-height: 1.15 !important; }
    h2 { font-size: 1.8rem !important; line-height: 1.2 !important; }
    h3 { font-size: 1.4rem !important; }
    .section-title { margin-bottom: 3rem; }
    .section-title h2 { font-size: 1.9rem !important; }

    /* Navbar stacks compactly */
    .nav-content { padding: 0.9rem 0; flex-wrap: wrap; gap: 0.6rem; }
    .logo { font-size: 1.15rem !important; }
    .nav-links { gap: 0.8rem; }

    /* Force ALL multi-col inline grids to single column */
    [style*="grid-template-columns:repeat(3"],
    [style*="grid-template-columns: repeat(3"],
    [style*="grid-template-columns:repeat(4"],
    [style*="grid-template-columns: repeat(4"],
    [style*="grid-template-columns:repeat(5"],
    [style*="grid-template-columns: repeat(5"],
    [style*="grid-template-columns:repeat(6"],
    [style*="grid-template-columns: repeat(6"],
    [style*="grid-template-columns:repeat(12"],
    [style*="grid-template-columns: repeat(12"],
    [style*="grid-template-columns:1fr 1fr"],
    [style*="grid-template-columns: 1fr 1fr"],
    [style*="grid-template-columns:1.2fr"],
    [style*="grid-template-columns: 1.2fr"] {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }

    /* 12-col spans collapse */
    [style*="grid-column: span 8"],
    [style*="grid-column:span 8"],
    [style*="grid-column: span 4"],
    [style*="grid-column:span 4"] {
        grid-column: 1 / -1 !important;
    }

    /* Generous inline paddings shrunk */
    [style*="padding: 6rem"],
    [style*="padding:6rem"] { padding: 2.5rem 1.5rem !important; }
    [style*="padding: 4rem"],
    [style*="padding:4rem"] { padding: 2rem 1.5rem !important; }
    [style*="padding: 3rem"],
    [style*="padding:3rem"] { padding: 1.75rem !important; }

    /* Big radii feel oversized on mobile */
    [style*="border-radius: 4rem"],
    [style*="border-radius:4rem"] { border-radius: 1.75rem !important; }
    [style*="border-radius: 3rem"],
    [style*="border-radius:3rem"] { border-radius: 1.5rem !important; }

    /* Hero fullscreen */
    .hero-fullscreen { padding-top: 7rem !important; padding-bottom: 4rem !important; min-height: 80vh !important; }
    .hero-overlay h1 { font-size: 2.6rem !important; }
    .hero-overlay p { font-size: 1rem !important; }
    .label-light { font-size: 0.7rem !important; letter-spacing: 0.12rem !important; }

    /* Generic hero */
    .hero { min-height: 70vh !important; padding-top: 6.5rem !important; }

    /* Testimonios */
    .testimonial-card { padding: 1.75rem !important; }
    .testimonial-card blockquote { font-size: 0.95rem !important; line-height: 1.55 !important; }
    .testimonial-card cite { font-size: 0.78rem !important; }

    /* Services 4-col */
    .services-4col { grid-template-columns: 1fr !important; gap: 1.5rem !important; }
    .service-photo-card img { aspect-ratio: 16/10 !important; }

    /* Conditions / Beneficios */
    .conditions-grid, .benefits-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1.5rem !important;
    }

    /* Footer */
    footer .container { padding: 0 1.25rem !important; }
    footer [style*="grid-template-columns"] { grid-template-columns: 1fr !important; text-align: center; }

    /* Form inputs full width */
    input, textarea, select { font-size: 16px !important; /* prevent iOS zoom */ }

    /* Floating WhatsApp button: reduce size */
    .whatsapp-float { right: 1rem !important; bottom: 1rem !important; }

    /* Floating quote in hero gets in the way */
    .floating-quote { position: static !important; margin-top: 1.5rem; max-width: 100% !important; }

    /* Cards with image+text in row become column */
    [style*="display: flex"][style*="gap: 3rem"],
    [style*="display:flex"][style*="gap:3rem"] {
        flex-direction: column !important;
        gap: 1.5rem !important;
    }

    /* Reduce huge hero font size overrides */
    [style*="font-size: 4rem"],
    [style*="font-size:4rem"] { font-size: 2.2rem !important; }
    [style*="font-size: 4.5rem"],
    [style*="font-size:4.5rem"] { font-size: 2.4rem !important; }
    [style*="font-size: 3.5rem"],
    [style*="font-size:3.5rem"] { font-size: 2rem !important; }
    [style*="font-size: 3rem"],
    [style*="font-size:3rem"] { font-size: 1.8rem !important; }
    [style*="font-size: 2.5rem"],
    [style*="font-size:2.5rem"] { font-size: 1.6rem !important; }

    /* Buttons smaller on mobile */
    .btn { padding: 0.9rem 1.6rem !important; font-size: 0.95rem !important; }
    .btn-outlined-gold { padding: 0.9rem 1.6rem !important; font-size: 0.9rem !important; }
}

/* ==========  Small phones (≤ 480px)  ========== */
@media (max-width: 480px) {
    h1 { font-size: 2rem !important; }
    .hero-overlay h1 { font-size: 2.1rem !important; }
    .section-title h2 { font-size: 1.6rem !important; }
    .conditions-grid, .benefits-grid { grid-template-columns: 1fr !important; }
    .nav-links { gap: 0.5rem; }
    .nav-links a { font-size: 0.7rem; }
    .logo { font-size: 1rem !important; }
}
