/*
Theme Name:  Dra. Thaissa Melo
Theme URI:
Author:
Author URI:
Description: Design System global — Dark/Gold Premium · Inria Serif + Inter
Version:     3.0.0
Text Domain: tema-thaissa
*/

/* ============================================================
   LOCAL FONTS
   ============================================================ */

@font-face {
    font-family: 'Inria Serif';
    src: url('assets/fonts/inria-serif-v18-latin-regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Inria Serif';
    src: url('assets/fonts/inria-serif-v18-latin-700.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Inter';
    src: url('assets/fonts/inter-v20-latin-regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Inter';
    src: url('assets/fonts/inter-v20-latin-600.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Inter';
    src: url('assets/fonts/inter-v20-latin-700.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* ============================================================
   DESIGN TOKENS  —  fonte de verdade de todo o projeto
   ============================================================ */

:root {
    /* Backgrounds */
    --bg-dark: #050505;
    --bg-light: #F3EBD6;
    --bg-panel: #111111;
    --bg-card: #1a1a1a;
    --bg-card2: #161616;

    /* Gold */
    --gold: #c9a064;
    --gold-light: #e0c492;
    --gold-dark: #9e7d3e;
    --gold-fade: rgba(201, 160, 100, 0.15);

    /* Borders */
    --border: rgba(201, 160, 100, 0.22);
    --border-dim: rgba(255, 255, 255, 0.05);

    /* Text */
    --text-main: #f2f2f2;
    --text-muted: #a0a0a0;

    /* Feedback */
    --red: #e05252;
    --green: #4caf82;

    /* Typography */
    --font-serif: 'Inria Serif', Georgia, serif;
    --font-sans: 'Inter', system-ui, sans-serif;

    /* Radii */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-pill: 50px;

    /* Motion */
    --transition: 0.25s ease;

    /* Spacing */
    --space-xs: 8px;
    --space-sm: 16px;
    --space-md: 24px;
    --space-lg: 32px;
    --space-xl: 64px;
    --space-xxl: 88px;

    /* Layout */
    --container-max: 1100px;
}

/* ============================================================
   RESET & BASE GLOBAL
   ============================================================ */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    color-scheme: dark;
    font-size: 16px;
    scroll-behavior: smooth;
    scrollbar-color: var(--gold) var(--bg-dark);
    scrollbar-width: thin;
}

body {
    margin: 0;
    padding: 0;
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-sans);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background-color: var(--gold);
    border-radius: 4px;
    border: 2px solid var(--bg-dark);
}

::-webkit-scrollbar-thumb:hover {
    background-color: var(--gold-light);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-serif);
    font-weight: 700;
    line-height: 1.2;
    margin: 0;
    color: var(--text-main);
}

p {
    margin: 0 0 1rem;
    line-height: 1.7;
    color: var(--text-muted);
}

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

ul,
ol {
    margin: 0;
    padding: 0;
    list-style: none;
}

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

/* ============================================================
   LAYOUT UTILITIES
   ============================================================ */

.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

/* ============================================================
   TEXT UTILITIES
   ============================================================ */

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

.text-white {
    color: #fff !important;
}

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

/* ============================================================
/* Footer
/* ============================================================ */
.site-footer {
    background: #000;
    border-top: 1px solid var(--border);
    padding: 24px 0;
    text-align: center;
}

.footer-logo {
    margin: 0 auto 12px;
    width: 150px;
    filter: brightness(0) invert(1);
    opacity: 0.7;
}

/* ============================================================
   HEADER PRINCIPAL
============================================================ */

#site-header.site-header {
    position: sticky;
    top: 0;
    z-index: 999;
    background-color: var(--gold-fade);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-md);
    padding: var(--space-sm) 24px;
}

/* --- Logo --- */
.header-logo a {
    display: flex;
    align-items: center;
}

.header-logo img {
    height: 44px;
    width: auto;
    filter: brightness(0) invert(1);
    opacity: 0.7;
}

.site-name {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--gold);
    letter-spacing: 0.03em;
}

/* --- Nav --- */
.nav-list {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
}

.nav-list li a {
    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    position: relative;
    padding-bottom: 4px;
    transition: color var(--transition);
}

.nav-list li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--gold);
    transition: width var(--transition);
}

.nav-list li a:hover,
.nav-list li.current-menu-item>a,
.nav-list li.is-active>a {
    color: var(--gold-light);
}

.nav-list li a:hover::after,
.nav-list li.current-menu-item>a::after,
.nav-list li.is-active>a::after {
    width: 100%;
}

/* --- CTA Button --- */
.btn-header-cta {
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--bg-dark);
    background: var(--gold);
    padding: 10px 22px;
    border-radius: var(--radius-pill);
    letter-spacing: 0.03em;
    white-space: nowrap;
    transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}

.btn-header-cta:hover {
    background: var(--gold-light);
    transform: translateY(-1px);
    box-shadow: 0 4px 18px rgba(201, 160, 100, 0.3);
}

/* --- Hamburger --- */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 8px 10px;
    cursor: pointer;
    transition: border-color var(--transition);
}

.menu-toggle:hover {
    border-color: var(--gold);
}

.bar {
    display: block;
    width: 20px;
    height: 1.5px;
    background: var(--text-muted);
    transition: all 0.3s ease;
}

.menu-toggle[aria-expanded="true"] .bar:nth-child(1) {
    transform: translateY(6.5px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .bar:nth-child(2) {
    opacity: 0;
}

.menu-toggle[aria-expanded="true"] .bar:nth-child(3) {
    transform: translateY(-6.5px) rotate(-45deg);
}

/* ============================================================
   MOBILE — Header
============================================================ */

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .btn-header-cta {
        display: none;
    }

    .header-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-panel);
        border-bottom: 1px solid var(--border);
        padding: var(--space-md) 24px var(--space-lg);
    }

    .header-nav.is-open {
        display: block;
    }

    .nav-list {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-md);
    }

    .nav-list li a {
        font-size: 1rem;
        color: var(--text-main);
    }
}

/* ============================================================
   SISTEMA GLOBAL DE MODAIS E HONEYPOT
============================================================ */

.modal-website-group {
    position: absolute;
    left: -9999px;
    top: -9999px;
    opacity: 0;
    z-index: -1;
    pointer-events: none;
}

.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 9998;
    background: rgba(0, 0, 0, .8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-md);
    animation: modal-fade-in .2s ease;
}

.modal-overlay[hidden] {
    display: none !important;
}

@keyframes modal-fade-in {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.modal-box {
    position: relative;
    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 460px;
    padding: 2.5rem 2rem 2rem;
    box-shadow: 0 32px 80px rgba(0, 0, 0, .7);
    animation: modal-slide-up .25s ease;
}

@keyframes modal-slide-up {
    from {
        transform: translateY(20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Faixa dourada no topo */
.modal-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border-dim);
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-muted);
    font-size: 1.1rem;
    line-height: 1;
    transition: background var(--transition), color var(--transition);
}

.modal-close:hover {
    background: var(--bg-card2);
    color: var(--text-main);
}

.modal-title {
    font-family: var(--font-serif);
    font-size: 1.7rem;
    color: var(--gold-light);
    margin: 0 0 6px;
    text-align: center;
    line-height: 1.2;
}

.modal-sub {
    font-family: var(--font-sans);
    font-size: .9rem;
    color: var(--text-muted);
    text-align: center;
    line-height: 1.6;
    margin: 0 0 var(--space-lg);
}

.modal-sub strong {
    color: var(--text-main);
}

.modal-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.modal-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.modal-field label {
    font-family: var(--font-sans);
    font-size: .75rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: .07em;
}

.modal-field input {
    background: var(--bg-card);
    border: 1px solid var(--border-dim);
    border-radius: var(--radius-sm);
    color: var(--text-main);
    font-family: var(--font-sans);
    font-size: 1rem;
    padding: .8rem 1rem;
    width: 100%;
    transition: border-color var(--transition), box-shadow var(--transition);
}

.modal-field input::placeholder {
    color: #555;
}

.modal-field input:focus {
    outline: none;
    border-color: var(--gold-dark);
    box-shadow: 0 0 0 3px var(--gold-fade);
}

.modal-field input.invalido {
    border-color: var(--red);
    box-shadow: 0 0 0 3px rgba(224, 82, 82, .15);
}

.modal-error {
    font-size: .78rem;
    color: var(--red);
    min-height: 1.2em;
}

.modal-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    font-family: var(--font-sans);
    font-size: .95rem;
    font-weight: 700;
    color: #000;
    background: var(--gold);
    border: none;
    border-radius: var(--radius-pill);
    padding: 15px 24px;
    cursor: pointer;
    margin-top: 4px;
    transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}

.modal-submit:hover {
    background: var(--gold-light);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(201, 160, 100, .35);
}

.modal-submit:disabled {
    opacity: .5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.modal-privacy {
    font-family: var(--font-sans);
    font-size: .75rem;
    color: #555;
    text-align: center;
    margin: 0;
}