/* =========================================
   reset.css — Leandro Santos Imóveis
   ========================================= */

/* Fonte Mokoko otimizada */
@font-face {
    font-family: 'Mokoko';
    src: url('../font/mokoko/MokokoLt.woff2') format('woff2');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Mokoko';
    src: url('../font/mokoko/MokokoRg.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Mokoko';
    src: url('../font/mokoko/MokokoRgIt.woff2') format('woff2');
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}
@font-face {
    font-family: 'Mokoko';
    src: url('../font/mokoko/MokokoMd.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Mokoko';
    src: url('../font/mokoko/MokokoBd.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* Reset geral */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 100%;
    list-style: none;
    line-height: 1;
    outline: 0;
    background: none;
    box-sizing: border-box;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

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

/* =========================================
   TEMA DARK — padrão (inspiração Douglas Elliman)
   ========================================= */
:root,
[data-theme="dark"] {

    /* --- Fundo --- */
    --bg-primary:        #0a0a0a;   /* Noir — fundo principal */
    --bg-secondary:      #141414;   /* Onyx — seções alternadas */
    --bg-card:           #1c1c1c;   /* Cards e superfícies */
    --bg-overlay:        rgba(10, 10, 10, 0.85);

    /* --- Accent (Faraó) --- */
    --accent:            #FBC02D;   /* Gold principal */
    --accent-hover:      #C9962A;   /* Gold escuro — hover/active */
    --accent-rgb:        251, 192, 45;

    /* --- Textos --- */
    --text-primary:      #ffffff;
    --text-secondary:    rgba(255, 255, 255, 0.65);
    --text-muted:        rgba(255, 255, 255, 0.35);
    --text-on-accent:    #0a0a0a;   /* Texto em cima do gold */

    /* --- Bordas --- */
    --border-color:      rgba(255, 255, 255, 0.1);
    --border-hover:      rgba(251, 192, 45, 0.4);

    /* --- Glass --- */
    --glass-bg:          rgba(255, 255, 255, 0.06);
    --glass-border:      rgba(255, 255, 255, 0.1);

    /* --- CTA button --- */
    --btn-bg:            #FBC02D;
    --btn-text:          #0a0a0a;
    --btn-bg-hover:      #C9962A;

    /* --- Outline button --- */
    --btn-outline-bg:    transparent;
    --btn-outline-border: #FBC02D;
    --btn-outline-text:  #FBC02D;
}

/* =========================================
   TEMA LIGHT (inspiração Christie's)
   ========================================= */
[data-theme="light"] {

    /* --- Fundo --- */
    --bg-primary:        #f5f0e8;   /* Ivory — fundo principal */
    --bg-secondary:      #ffffff;   /* Seções alternadas */
    --bg-card:           #ffffff;   /* Cards e superfícies */
    --bg-overlay:        rgba(245, 240, 232, 0.9);

    /* --- Accent (Faraó) --- */
    --accent:            #C9962A;   /* Gold escuro — melhor contraste no light */
    --accent-hover:      #a07820;
    --accent-rgb:        201, 150, 42;
    
    /* --- Textos --- */
    --text-primary:      #0a0a0a;
    --text-secondary:    rgba(10, 10, 10, 0.6);
    --text-muted:        rgba(10, 10, 10, 0.35);
    --text-on-accent:    #ffffff;

    /* --- Bordas --- */
    --border-color:      rgba(0, 0, 0, 0.1);
    --border-hover:      rgba(201, 150, 42, 0.5);

    /* --- Glass --- */
    --glass-bg:          rgba(0, 0, 0, 0.04);
    --glass-border:      rgba(0, 0, 0, 0.08);

    /* --- CTA button --- */
    --btn-bg:            #0a0a0a;
    --btn-text:          #FBC02D;
    --btn-bg-hover:      #1c1c1c;

    /* --- Outline button --- */
    --btn-outline-bg:    transparent;
    --btn-outline-border: #0a0a0a;
    --btn-outline-text:  #0a0a0a;
}

/* =========================================
   Variáveis fixas — não mudam com o tema
   ========================================= */
:root {
    /* Tipografia */
    --font-main:         'Lato', sans-serif;
    --font-title:        'Playfair Display', serif;
    --font-custom:       'Mokoko', serif;

    /* Espaçamentos */
    --spacing-xs:        8px;
    --spacing-sm:        16px;
    --spacing-md:        32px;
    --spacing-lg:        64px;
    --spacing-xl:        120px;

    /* Bordas */
    --radius-sm:         4px;
    --radius-md:         8px;
    --radius-lg:         16px;
    --radius-xl:         24px;

    /* Transições */
    --transition:        0.3s ease;
    --transition-slow:   0.6s ease;

    /* Container */
    --container-max:     1600px;
    --container-pad:     5%;
}

/* =========================================
   Body base
   ========================================= */
body {
    font-family: var(--font-main);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color var(--transition-slow), color var(--transition-slow);
}
