/* 
   NA PERÍCIAS - DESIGN SYSTEM 
   Principles: Dual palette (concrete light + dark), Atomic Design
   Typography: Monospaced headings + Inter body (matching presentation)
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Space+Mono:wght@400;700&display=swap');

:root {
    /* Colors - Brand Gold */
    --gold: #C8A45C;
    --gold-light: #D4B876;
    --gold-dark: #A68B4C;
    --gold-darker: #8B7340;

    /* Colors - Dark */
    --dark: #1A1A1A;
    --dark-deeper: #111111;
    --dark-card: #3D3D3D;
    --dark-card-hover: #4A4A4A;
    --dark-surface: #2A2A2A;
    --dark-border: #3A3A3A;

    /* Colors - Light (concrete texture) */
    --light-bg: #E8E4DF;
    --light-surface: #F0ECE7;
    --white: #FFFFFF;

    /* Colors - Text */
    --text-on-dark: #FFFFFF;
    --text-on-light: #1A1A1A;
    --text-muted-dark: #B0B0B0;
    --text-muted-light: #525252;

    /* Spacing - 4px grid */
    --sp-1: 4px;
    --sp-2: 8px;
    --sp-3: 12px;
    --sp-4: 16px;
    --sp-5: 20px;
    --sp-6: 24px;
    --sp-8: 32px;
    --sp-10: 40px;
    --sp-12: 48px;
    --sp-16: 64px;
    --sp-20: 80px;
    --sp-24: 96px;

    /* Typo */
    --font-heading: 'Space Mono', monospace;
    --font-body: 'Inter', sans-serif;

    /* Font Sizes */
    --fs-xs: 0.75rem;
    --fs-sm: 0.875rem;
    --fs-base: 1rem;
    --fs-md: 1.125rem;
    --fs-lg: 1.25rem;
    --fs-xl: 1.5rem;
    --fs-2xl: 2rem;
    --fs-3xl: 2.5rem;
    --fs-4xl: 3.5rem;
    --fs-hero: 4.5rem;

    /* Effects */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-card-hover: 0 8px 30px rgba(0, 0, 0, 0.15);
    --shadow-dark: 0 4px 20px rgba(0, 0, 0, 0.4);

    --transition: 300ms cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: var(--font-body);
    font-size: var(--fs-base);
    line-height: 1.6;
    color: var(--text-on-light);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
}

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

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

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--sp-6);
}

/* Button atoms */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--sp-3) var(--sp-6);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: var(--fs-sm);
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    gap: var(--sp-2);
}

/* Focus visible for keyboard accessibility */
.btn:focus-visible,
a:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 3px;
}

.btn--gold {
    background: var(--gold);
    color: var(--dark);
}

.btn--gold:hover {
    background: var(--gold-light);
    transform: translateY(-2px);
}

.btn--outline-gold {
    background: transparent;
    border: 2px solid var(--gold);
    color: var(--gold);
}

.btn--outline-gold:hover {
    background: rgba(200, 164, 92, 0.1);
}

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

/* Input atoms */
.input {
    background: var(--white);
    border: 1px solid rgba(0, 0, 0, 0.12);
    color: var(--text-on-light);
    padding: var(--sp-4);
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-size: var(--fs-base);
    width: 100%;
    transition: var(--transition);
}

.input:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(200, 164, 92, 0.15);
}

/* Gold underline */
.gold-line {
    width: 60px;
    height: 3px;
    background: var(--gold);
    display: block;
}

/* Concrete texture backgrounds */
.bg-concrete {
    background-color: var(--light-bg);
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100' height='100' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
}

.bg-dark {
    background-color: var(--dark);
    color: var(--text-on-dark);
}

.bg-white {
    background-color: var(--white);
    color: var(--text-on-light);
}

/* Responsive */
@media (max-width: 768px) {
    :root {
        --fs-hero: 2.5rem;
        --fs-4xl: 2.25rem;
        --fs-3xl: 1.75rem;
        --fs-2xl: 1.5rem;
    }
}