/* =========================================================
   NEO.LIVING — DESIGN SYSTEM
   Global tokens, reset, base typography, utilities
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Bebas+Neue&family=Oswald:wght@500;600;700&family=Saira:wght@300;400;500;600;700;800&display=swap');

/* Fonte autoral para o letreiro NEO.LIVING */
@font-face {
    font-family: 'Horizondrift';
    src: url('../assets/fonts/horizondrift-oblique.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* Lagency — camada dourada na frente do letreiro */
@font-face {
    font-family: 'Lagency';
    src: url('../assets/fonts/lagency-regular.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

:root {
    /* ---------- COLOR TOKENS ---------- */
    /* ---------- MODO ÚNICO — PRETO & BRANCO (base clara) ---------- */
    --bg-deep:        #FFFFFF;
    --bg-deeper:      #F4F4F2;
    --bg-surface:     #FAFAF9;
    --bg-overlay:     rgba(255, 255, 255, 0.82);
    --bg-overlay-strong: rgba(255, 255, 255, 0.94);

    --accent-amber:   #B8860B;   /* dourado — usado como acento de luxo */
    --accent-amber-soft: #9A7100;
    --accent-line:    #DCDCDC;
    --accent-line-soft: rgba(0, 0, 0, 0.10);

    --text-primary:   #0A0A0A;
    --text-secondary: #4A4A4A;
    --text-muted:     #8A8A8A;
    --text-watermark: rgba(0, 0, 0, 0.045);
    --text-watermark-strong: rgba(0, 0, 0, 0.07);

    /* ---------- TYPOGRAPHY ---------- */
    --font-condensed: 'Saira', 'Bebas Neue', 'Oswald', sans-serif;                 /* Display / títulos */
    --font-display:   'Saira', 'Inter', -apple-system, sans-serif;                 /* Headlines de seção */
    --font-body:      'Saira', 'Inter', -apple-system, sans-serif;                 /* Parágrafos / labels */
    --font-serif:     'Saira', 'Bebas Neue', 'Oswald', sans-serif;                 /* Acentos editoriais */

    /* ---------- SPACING ---------- */
    --space-3xs: 4px;
    --space-2xs: 8px;
    --space-xs:  12px;
    --space-sm:  16px;
    --space-md:  24px;
    --space-lg:  40px;
    --space-xl:  64px;
    --space-2xl: 96px;
    --space-3xl: 160px;

    /* ---------- LAYOUT ---------- */
    --max-content: 1440px;
    --gutter-desktop: 96px;
    --gutter-tablet: 48px;
    --gutter-mobile: 24px;

    /* ---------- TIMING ---------- */
    --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
    --duration-fast:   200ms;
    --duration-base:   400ms;
    --duration-slow:   720ms;
    --duration-cinema: 1200ms;
}

html { color-scheme: light; }

/* =========================================================
   RESET
   ========================================================= */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    -webkit-text-size-adjust: 100%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-deep);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.55;
    overflow-x: hidden;
    min-height: 100vh;
}

img,
picture,
svg,
video {
    display: block;
    max-width: 100%;
    height: auto;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--duration-fast) var(--ease-out);
}

button {
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
    font: inherit;
}

input,
textarea,
select {
    font: inherit;
    color: inherit;
    background: none;
    border: none;
    outline: none;
}

ul, ol {
    list-style: none;
}

/* =========================================================
   TYPOGRAPHY CLASSES
   ========================================================= */
.t-display {
    font-family: var(--font-condensed);
    font-weight: 400; /* Bebas Neue só vem em 400 — peso visual já é ultra-bold */
    font-size: clamp(4rem, 17vw, 17rem);
    line-height: 0.86;
    letter-spacing: -0.005em;
    text-transform: uppercase;
}

/* Variant: when display needs a "grotesque" feel (smaller hero of inner pages) */
.t-display-grotesque {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: clamp(3rem, 11vw, 11rem);
    line-height: 0.92;
    letter-spacing: -0.035em;
    text-transform: uppercase;
}

.t-h1 {
    font-family: var(--font-condensed);
    font-weight: 700;
    font-size: clamp(2.25rem, 4.4vw, 4rem);   /* Saira é mais larga que Bebas */
    line-height: 1.02;
    letter-spacing: -0.01em;
    text-transform: uppercase;
}

.t-h2 {
    font-family: var(--font-condensed);
    font-weight: 600;
    font-size: clamp(1.625rem, 3vw, 2.625rem);
    line-height: 1.08;
    letter-spacing: -0.005em;
    text-transform: uppercase;
}

.t-h3 {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: clamp(1.25rem, 2vw, 1.5rem);
    line-height: 1.25;
    letter-spacing: 0;
    text-transform: uppercase;
}

.t-eyebrow {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.t-label {
    font-family: var(--font-body);
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.t-body {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.65;
    color: var(--text-secondary);
}

.t-body-lg {
    font-family: var(--font-body);
    font-size: 1.125rem;
    font-weight: 400;
    line-height: 1.65;
    color: var(--text-secondary);
}

.t-serif {
    font-family: var(--font-serif);
    font-style: normal;            /* Bebas Neue não tem italic */
    font-weight: 400;              /* Bebas vem só em 400 */
    font-size: clamp(1.5rem, 2.5vw, 2.25rem);
    line-height: 1.15;             /* Condensada precisa de line-height menor */
    letter-spacing: 0.02em;        /* Leve respiro entre letras p/ legibilidade */
    color: var(--text-primary);
}

.t-mono-tag {
    font-family: var(--font-body);
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--accent-amber);
}

/* =========================================================
   METALLIC GRADIENT (display do hero — branco → pérola → cinza-quente)
   Reproduz o efeito do display "BAUVORHABEN" da referência.
   ========================================================= */
.t-metallic {
    background: linear-gradient(
        180deg,
        #FFFFFF 0%,
        #F4F1EA 22%,
        #D9D2C2 52%,
        #A89F8F 78%,
        #6E665B 100%
    );
    -webkit-background-clip: text;
            background-clip: text;
    -webkit-text-fill-color: transparent;
            color: transparent;
    /* Sutil "embossing" via text-shadow externo invisível ao fundo escuro,
       cria sensação de relevo metálico nas bordas do tipo */
    filter:
        drop-shadow(0 1px 0 rgba(0, 0, 0, 0.35))
        drop-shadow(0 0 28px rgba(244, 241, 234, 0.06));
}

/* Variante mais sutil (para displays internos menores) */
.t-metallic-soft {
    background: linear-gradient(
        180deg,
        #F4F1EA 0%,
        #DCD5C5 60%,
        #9C9384 100%
    );
    -webkit-background-clip: text;
            background-clip: text;
    -webkit-text-fill-color: transparent;
            color: transparent;
}

/* =========================================================
   LAYOUT
   ========================================================= */
.container {
    width: 100%;
    max-width: var(--max-content);
    margin: 0 auto;
    padding-left: var(--gutter-desktop);
    padding-right: var(--gutter-desktop);
}

.container-fluid {
    width: 100%;
    padding-left: var(--gutter-desktop);
    padding-right: var(--gutter-desktop);
}

.section {
    position: relative;
    padding-top: var(--space-3xl);
    padding-bottom: var(--space-3xl);
}

.section-sm {
    padding-top: var(--space-2xl);
    padding-bottom: var(--space-2xl);
}

.divider-line {
    height: 1px;
    background-color: var(--accent-line);
    width: 100%;
}

.divider-amber {
    height: 1px;
    background-color: var(--accent-amber);
    width: 32px;
}

/* =========================================================
   BUTTONS
   ========================================================= */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 18px 32px;
    font-family: var(--font-body);
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all var(--duration-base) var(--ease-out);
    position: relative;
    overflow: hidden;
}

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

.btn-primary:hover {
    background-color: var(--accent-amber);
    border-color: var(--accent-amber);
    color: var(--bg-deep);
}

.btn-primary .arrow,
.btn-ghost .arrow {
    transition: transform var(--duration-base) var(--ease-out);
}

.btn-primary:hover .arrow,
.btn-ghost:hover .arrow {
    transform: translateX(6px);
}

.btn-ghost {
    color: var(--text-primary);
    background: none;
    padding: 18px 0;
    border-bottom: 1px solid transparent;
}

.btn-ghost::after {
    content: '';
    position: absolute;
    bottom: 12px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--accent-amber);
    transition: width var(--duration-base) var(--ease-out);
}

.btn-ghost:hover::after {
    width: calc(100% - 28px);
}

.btn-ghost:hover {
    color: var(--accent-amber);
}

.btn-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-body);
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-primary);
    position: relative;
}

.btn-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--accent-amber);
    transition: width var(--duration-base) var(--ease-out);
}

.btn-link:hover::after {
    width: 100%;
}

.btn-link:hover {
    color: var(--accent-amber);
}

.btn-link:hover .arrow {
    transform: translateX(4px);
    color: var(--accent-amber);
}

.btn-link .arrow {
    transition: transform var(--duration-base) var(--ease-out);
}

/* =========================================================
   ANIMATIONS — entries
   ========================================================= */
.fade-in {
    opacity: 0;
    transform: translateY(42px);
    filter: blur(7px);
    transition: opacity 1100ms var(--ease-out),
                transform 1100ms var(--ease-out),
                filter 1100ms var(--ease-out);
    will-change: opacity, transform, filter;
}

.fade-in.is-visible {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
}


.fade-in-delay-1 { transition-delay: 80ms; }
.fade-in-delay-2 { transition-delay: 160ms; }
.fade-in-delay-3 { transition-delay: 240ms; }
.fade-in-delay-4 { transition-delay: 320ms; }
.fade-in-delay-5 { transition-delay: 400ms; }
.fade-in-delay-6 { transition-delay: 480ms; }

.zoom-image {
    overflow: hidden;
}

.zoom-image img,
.zoom-image .placeholder-img {
    transition: transform 1.4s var(--ease-out);
    will-change: transform;
}

.zoom-image:hover img,
.zoom-image:hover .placeholder-img {
    transform: scale(1.05);
}

/* =========================================================
   IMAGE PLACEHOLDERS (substituir depois por <img src="...">)
   ========================================================= */
.placeholder-img {
    position: relative;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1A2420 0%, #0F1814 100%);
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    padding: var(--space-md);
    overflow: hidden;
}

.placeholder-img::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 80%, rgba(233, 183, 112, 0.12), transparent 60%),
        radial-gradient(ellipse at 80% 20%, rgba(12, 12, 12, 0.4), transparent 60%);
    pointer-events: none;
}

.placeholder-img::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 24px,
            rgba(244, 241, 234, 0.015) 24px,
            rgba(244, 241, 234, 0.015) 25px
        );
    pointer-events: none;
}

.placeholder-img__label {
    position: relative;
    z-index: 1;
    font-family: var(--font-body);
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-muted);
}

/* =========================================================
   UTILS
   ========================================================= */
.flex { display: flex; }
.grid { display: grid; }
.relative { position: relative; }
.absolute { position: absolute; }
.full-w { width: 100%; }
.full-h { height: 100%; }

.text-amber { color: var(--accent-amber); }
.text-muted { color: var(--text-muted); }
.text-secondary { color: var(--text-secondary); }

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

.uppercase { text-transform: uppercase; }
.italic { font-style: italic; }

.no-scroll { overflow: hidden; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1199px) {
    :root {
        --gutter-desktop: 64px;
    }
}

@media (max-width: 768px) {
    :root {
        --gutter-desktop: var(--gutter-tablet);
        --space-3xl: 96px;
        --space-2xl: 64px;
        --space-xl: 48px;
    }
    .container,
    .container-fluid {
        padding-left: var(--gutter-tablet);
        padding-right: var(--gutter-tablet);
    }
}

@media (max-width: 480px) {
    :root {
        --gutter-desktop: var(--gutter-mobile);
    }
    .container,
    .container-fluid {
        padding-left: var(--gutter-mobile);
        padding-right: var(--gutter-mobile);
    }
}

/* =========================================================
   SELECTION + SCROLLBAR
   ========================================================= */
::selection {
    background-color: var(--accent-amber);
    color: var(--bg-deep);
}

::-webkit-scrollbar {
    width: 0;
    background: transparent;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}
