/* ============================================
   BRUXA URBANA — Design System
   Beleza Ancestral, Alma Urbana
   ============================================ */

/* --- Design Tokens --- */
:root {
    /* Palette — Bruxa Urbana Purple Remix */
    --primary: #875da7;
    --primary-dark: #2d1b33;
    --primary-light: #ab8ec3;
    --primary-wash: #f3eef7;

    /* Accent — The Requested Purple */
    --purple: #875da7;
    --purple-glow: #a682c0;
    --purple-muted: #6b5a71;

    /* Mapeamento para nomes compartilhados */
    --forest:      var(--primary);
    --forest-deep: var(--primary-dark);
    --leaf:        var(--primary-light);
    --earth:       var(--black);
    --earth-mid:   var(--sand-muted);
    --bark:        var(--black);
    --cream:       var(--sand-warm);
    --bege:        var(--primary-wash);
    --mango:       var(--primary);

    /* Neutros */
    --sand: #ffffff;
    --sand-warm: #f8f4f9;
    --sand-muted: #6b5a71;
    --white: #ffffff;
    --black: #1a0f1f;

    /* Typography */
    --font-display: 'Cormorant Garamond', serif;
    --font-body: 'Inter', sans-serif;

    /* Spacing — 8pt grid */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2.5rem;
    --space-xl: 4rem;
    --space-2xl: 6rem;
    --space-3xl: 8rem;

    /* Geometry */
    --radius-sharp: 0px;
    --radius-organic: 24px;
    --radius-pill: 999px;

    /* Shadows */
    --shadow-card: 0 4px 24px rgba(135, 93, 167, 0.1);
    --shadow-card-hover: 0 16px 48px rgba(135, 93, 167, 0.2);
    --shadow-glow: 0 0 20px rgba(135, 93, 167, 0.15);

    /* Transitions */
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --ease-smooth: cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --duration-fast: 0.2s;
    --duration-normal: 0.4s;
    --duration-slow: 0.7s;
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    color: var(--black);
    background: var(--white);
    line-height: 1.7;
    overflow-x: hidden;
    position: relative;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    text-transform: uppercase;
}


/* Background Blurs */
.blur-blob {
    position: fixed;
    width: 45vw;
    height: 45vw;
    border-radius: 50%;
    filter: blur(80px);
    z-index: -1;
    opacity: 0.12;
    pointer-events: none;
    animation: blob-float 25s ease-in-out infinite alternate;
}

.blur-blob--1 {
    background: var(--primary);
    top: -10%;
    left: -5%;
    animation-duration: 22s;
}

.blur-blob--2 {
    background: var(--primary-light);
    bottom: 0%;
    right: -10%;
    animation-duration: 28s;
    animation-delay: -5s;
}

.blur-blob--3 {
    background: var(--primary-dark);
    top: 40%;
    left: 30%;
    width: 30vw;
    height: 30vw;
    animation-duration: 35s;
    animation-delay: -10s;
}

@keyframes gradient-move {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes blob-float {
    0% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(5%, 10%) scale(1.1); }
    66% { transform: translate(-8%, 5%) scale(0.9); }
    100% { transform: translate(0, 0) scale(1); }
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

/* --- Layout --- */
.container {
    width: min(1140px, 90vw);
    margin: 0 auto;
}

.container--narrow {
    width: min(800px, 90vw);
    margin: 0 auto;
}

/* --- Scroll Reveal --- */
.reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity var(--duration-slow) var(--ease-smooth),
        transform var(--duration-slow) var(--ease-spring);
}

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

.reveal-delay-1 {
    transition-delay: 0.12s;
}

.reveal-delay-2 {
    transition-delay: 0.24s;
}

.reveal-delay-3 {
    transition-delay: 0.36s;
}

.reveal-delay-4 {
    transition-delay: 0.48s;
}

@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* ============================================
   NAVIGATION
   ============================================ */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: var(--space-sm) 0;
    transition: background var(--duration-normal) var(--ease-smooth);
}

.nav.scrolled {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(135, 93, 167, 0.1);
}

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

.nav__brand {
    font-family: var(--font-display);
    font-size: 1.4rem;
    color: var(--primary);
    letter-spacing: -0.01em;
    font-weight: 700;
}

.nav__cta {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--white);
    background: var(--primary);
    padding: 0.55rem 1.3rem;
    border-radius: var(--radius-pill);
    transition: all var(--duration-fast) var(--ease-spring);
}

.nav__cta:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(135, 93, 167, 0.3);
}

/* ============================================
   HERO
   ============================================ */
.hero {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 8rem 0 var(--space-3xl);
    background: linear-gradient(135deg, #ffffff 0%, #fdf8ff 50%, #f4ebf8 100%);
    position: relative;
    overflow: hidden;
}

.hero .container,
.section .container {
    position: relative;
    z-index: 5;
}

.hero::after {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(45, 90, 39, 0.1) 0%, transparent 70%);
    top: -10%;
    right: -10%;
    filter: blur(60px);
    z-index: 1;
}

.hero__grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1.4fr 0.9fr;
    gap: var(--space-xl);
    align-items: center;
}

.hero__badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--primary);
    margin-bottom: var(--space-md);
    background: rgba(135, 93, 167, 0.05);
    padding: 0.4rem 1rem;
    border: 1px solid rgba(135, 93, 167, 0.2);
}

.hero__title {
    font-family: var(--font-display);
    font-size: clamp(1.3rem, 3.0vw, 2.2rem);
    line-height: 1.1;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    font-weight: 400;
    color: var(--primary-dark);
    margin-bottom: var(--space-md);
    max-width: none;
}

.hero__title em,
h2 em,
h3 em,
p em {
    font-style: italic;
    color: var(--primary);
    font-family: var(--font-display);
    opacity: 0.9;
}

.hero__title em,
h2 em,
h3 em,
p em {
    font-style: normal;
    color: var(--primary-light);
    font-family: var(--font-display);
}

.hero__title em {
    color: #bfa1d9; /* Cor levemente diferente */
}

.hero__lead {
    font-size: 1.1rem;
    color: var(--primary-dark);
    opacity: 0.7;
    max-width: 50ch;
    margin-bottom: var(--space-lg);
}

.hero__actions {
    display: flex;
    gap: var(--space-sm);
}

.hero__logo {
    width: 100%;
    max-width: 580px;
    height: auto;
    background: transparent;
    border-radius: 0;
    padding: 0.5rem;
    filter: none;
    animation: float 6s ease-in-out infinite;
    transition: transform var(--duration-fast) var(--ease-spring);
}

.hero__logo:hover {
    transform: scale(1.03) rotate(1deg);
}

@keyframes float {

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

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

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-flex;
    padding: 0.9rem 1.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.85rem;
    transition: all var(--duration-fast) var(--ease-spring);
}

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

.btn--primary:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(135, 93, 167, 0.2);
}

.btn--outline {
    border: 1px solid var(--primary);
    color: var(--primary);
}

.btn--outline:hover {
    background: rgba(184, 115, 51, 0.1);
    transform: translateY(-3px);
}

/* ============================================
   IMPACT BAR
   ============================================ */
.impact-bar {
    background: var(--black);
    padding: var(--space-xl) 0;
    border-top: 1px solid rgba(184, 115, 51, 0.2);
    border-bottom: 1px solid rgba(184, 115, 51, 0.2);
}

.impact-bar__inner {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: var(--space-xl);
}

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

.impact-stat__number {
    font-family: var(--font-display);
    font-size: 3rem;
    color: var(--copper);
    line-height: 1;
}

.impact-stat__label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--sand-muted);
}

/* ============================================
   SECTIONS
   ============================================ */
.section {
    padding: var(--space-3xl) 0;
}

.section--night {
    background: linear-gradient(135deg, #1a0f1f, #2d1b33);
    color: var(--white);
}

.section--forest {
    background: linear-gradient(135deg, #2d1b33, #3d2445);
    color: var(--white);
}

.section--warm {
    background: linear-gradient(135deg, #ffffff, var(--primary-wash));
    color: var(--primary-dark);
}

.section--cta {
    background: linear-gradient(135deg, #2d1b33, #4a3457);
    position: relative;
    overflow: hidden;
    color: var(--white);
}

.section__label {
    color: var(--primary);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 0.75rem;
    margin-bottom: var(--space-sm);
}

.section__title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: var(--space-lg);
}

.section__text {
    color: inherit;
    font-size: 1.1rem;
    max-width: 60ch;
    opacity: 0.9;
}

.section-header--center {
    text-align: center;
    max-width: 900px;
    margin: 0 auto var(--space-xl);
}

.section-header__text--large {
    font-size: clamp(1.4rem, 2.5vw, 2.1rem);
    line-height: 1.4;
    font-weight: 400;
    max-width: 1000px;
    margin: 0 auto;
}

/* ============================================
   QUEM SOMOS
   ============================================ */
.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: var(--space-2xl);
    align-items: center;
}

.about-card {
    background: rgba(27, 48, 34, 0.5);
    padding: var(--space-xl);
    border: 1px solid rgba(184, 115, 51, 0.2);
    position: relative;
}

.about-card::after {
    content: '';
    position: absolute;
    inset: -10px;
    border: 1px solid rgba(184, 115, 51, 0.1);
    z-index: -1;
}

.about-card__icon {
    font-size: 3rem;
    margin-bottom: var(--space-md);
}

.about-card__title {
    font-family: var(--font-display);
    margin-bottom: var(--space-sm);
}

/* ============================================
   O QUE FAZEMOS (FEATURES)
   ============================================ */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-md);
}

.feature {
    padding: var(--space-xl);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(135, 93, 167, 0.15);
    transition: all var(--duration-normal) var(--ease-spring);
}

.section--warm .feature {
    background: var(--white);
}

.feature:hover {
    border-color: var(--primary);
    transform: translateY(-10px);
    box-shadow: var(--shadow-glow);
}

.feature__icon {
    font-size: 3.5rem;
    margin-bottom: var(--space-md);
    display: block;
    color: var(--primary);
}

.feature__emoji {
    font-size: 2.5rem;
    margin-bottom: var(--space-md);
    display: block;
}

.feature__title {
    font-family: var(--font-display);
    margin-bottom: var(--space-sm);
}

/* ============================================
   COMO FAZEMOS (PROCESS)
   ============================================ */
.process-steps {
    margin-top: var(--space-xl);
}

.process-step {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: var(--space-lg);
    padding: var(--space-xl) 0;
    border-bottom: 1px solid rgba(184, 115, 51, 0.1);
}

.process-step__number {
    font-family: var(--font-display);
    font-size: 3.5rem;
    color: rgba(184, 115, 51, 0.2);
}

.process-step__title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

/* ============================================
   POR QUE FAZEMOS (QUOTE)
   ============================================ */
.quote-section {
    background: radial-gradient(circle at center, #1B3022 0%, #050A0B 100%);
    text-align: center;
}

.quote-block__mark {
    font-size: 5rem;
    color: var(--copper);
    line-height: 1;
    opacity: 0.3;
}

.quote-block__text {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-style: italic;
    margin-bottom: var(--space-xl);
}

.quote-block__caption {
    color: var(--copper);
    text-transform: uppercase;
    letter-spacing: 0.3em;
    font-weight: 700;
}

/* ============================================
   CONTACT
   ============================================ */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
    align-items: stretch;
}

.contact-visual {
    height: 100%;
}

.contact-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-organic);
    box-shadow: var(--shadow-card);
}

.contact-info dt {
    color: var(--primary);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    margin-top: var(--space-lg);
}

.contact-info dd {
    font-size: 1.2rem;
}

.contact-card {
    background: rgba(45, 27, 51, 0.05);
    backdrop-filter: blur(8px);
    padding: var(--space-lg);
    border: 1px solid rgba(135, 93, 167, 0.2);
    border-radius: var(--radius-organic);
}

.cta-block {
    position: relative;
    z-index: 2;
    max-width: 1100px;
    margin: 0 auto;
}

.cta-block__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    align-items: center;
}

.cta-block__title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4.5vw, 3.4rem);
    line-height: 1.0;
    letter-spacing: -0.01em;
    font-weight: 400;
    text-transform: uppercase;
    color: var(--sand);
    margin-bottom: var(--space-md);
}

.cta-block--warm .cta-block__title {
    color: var(--forest-deep);
}

.cta-block__text {
    font-size: 1.05rem;
    line-height: 1.75;
    color: var(--sand-muted);
    max-width: 52ch;
    margin-bottom: var(--space-lg);
}

.cta-block--warm .cta-block__text {
    color: var(--sand-muted);
}

.cta-block__image {
    width: 100%;
    border-radius: var(--radius-organic);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    display: block;
}

.contact-card__title {
    font-family: var(--font-display);
    margin-bottom: var(--space-lg);
}

.contact-card__item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: var(--space-md);
    color: var(--sand-muted);
}

.contact-card__item:hover {
    color: var(--white);
}

.contact-card__actions {
    display: flex;
    gap: 1rem;
    margin-top: var(--space-xl);
}

/* --- btn--dark --- */
.btn--dark {
    background: var(--primary-dark);
    color: var(--white);
    border-radius: var(--radius-pill);
}
.btn--dark:hover {
    background: var(--black);
    transform: translateY(-2px);
}

/* --- Back to Hub --- */
.back-to-hub:hover { color: var(--primary); }

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--black);
    color: var(--white);
    padding: var(--space-xl) 0 var(--space-lg);
    text-align: center;
    font-size: 0.82rem;
    border-top: 1px solid rgba(135, 93, 167, 0.1);
}

.footer__grid {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    align-items: center;
}

.footer__brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.footer__hub-link {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.78rem;
    opacity: 0.6;
    margin-top: 0.6rem;
    color: var(--primary-light);
    transition: opacity 0.2s;
}
.footer__hub-link:hover { opacity: 1; color: var(--white); }

.footer__logo {
    height: 60px;
    width: auto;
    margin-bottom: var(--space-sm);
    filter: brightness(0) invert(1);
    opacity: 0.9;
}

.footer__description {
    max-width: 600px;
    margin: 0 auto;
    font-size: 0.85rem;
    line-height: 1.6;
    opacity: 0.7;
}

.footer__copy {
    margin-top: var(--space-md);
    padding-top: var(--space-md);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    width: 100%;
    opacity: 0.5;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 992px) {

    .hero__grid,
    .about-grid,
    .contact-layout {
        grid-template-columns: 1fr;
    }

    .contact-card__actions {
        flex-direction: column;
        gap: var(--space-sm);
    }

    .contact-card__actions .btn {
        width: 100%;
        justify-content: center;
    }

    .cta-block__visual {
        min-height: 250px;
    }

    .cta-block__image {
        position: relative;
        height: 100%;
        width: 100%;
        object-fit: cover;
    }
}