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

html {
    font-size: 100%; /* 1rem = 16px padrão */
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: 'Nunito', sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-bg);
    overflow-x: hidden;
}

main {
    background-color: var(--color-bg);
    padding-top: 4.5rem;
}

ul, ol {
    list-style: none;
}

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

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

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

table {
    border-collapse: collapse;
    border-spacing: 0;
}

/* =========================
   VARIÁVEIS GLOBAIS
========================= */
:root {
    /* HEADER */
    --header-height: 4.5rem;

    /* CORES PRINCIPAIS */
    --color-navy: #1E2A44;       /* Azul marinho */
    --color-rose: #F7D9D9;       /* Rosé claro */
    --color-gray: #EAEAEA;       /* Cinza neutro */
    --color-white: #FDFDFD;      /* Branco suave */
    --color-green: #B9D6C5;      /* Verde folha claro */

    /* BASE */
    --color-text: var(--color-navy);
    --color-bg: var(--color-white);

    /* TIPOGRAFIA */
    --font-primary: 'Montserrat', sans-serif;
    --font-text: 'Nunito', sans-serif;

    /* ESPAÇAMENTOS */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;

    /* TRANSIÇÕES */
    --transition-fast: 0.2s ease-in-out;
    --transition-medium: 0.4s ease-in-out;
}

/* =========================
   ESTILO BASE
========================= */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    font-weight: 600;
    color: var(--color-navy);
    line-height: 1.2;
    margin-bottom: var(--spacing-md);
    
}

p, li, span, a, button, input, textarea, select {
    font-family: var(--font-text);
}

p {
    margin-bottom: var(--spacing-md);
    color: var(--color-text);
}

a {
    color: var(--color-green);
    transition: color var(--transition-fast);
}

a:hover, a:focus {
    color: var(--color-navy);
    outline: none;
}

button {
    cursor: pointer;
    background-color: var(--color-navy);
    color: var(--color-bg);
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    transition: background-color var(--transition-fast);
    font-weight: 600;
}



input, textarea, select {
    border: 1px solid var(--color-gray);
    border-radius: 0.25rem;
    padding: 0.5rem;
    width: 100%;
    margin-bottom: var(--spacing-md);
    transition: border-color var(--transition-fast);
    background-color: var(--color-white);
}

input:focus, textarea:focus, select:focus {
    border-color: var(--color-green);
    outline: 2px solid var(--color-navy);
}

/* =========================
   SEÇÕES DE PÁGINA
========================= */
section {
    width: 100vw;
    padding: var(--spacing-xl) 0;
}


footer {
    width: 100vw;
    padding: var(--spacing-md) 0;
    background: var(--color-navy);
    color: var(--color-white);
    text-align: center;
    font-size: 0.875rem;
}

/* =========================
   UTILITÁRIOS
========================= */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

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

.flex { display: flex; }
.flex-center { display: flex; justify-content: center; align-items: center; }
.flex-column { flex-direction: column; }

.mt-xs { margin-top: var(--spacing-xs); }
.mt-sm { margin-top: var(--spacing-sm); }
.mt-md { margin-top: var(--spacing-md); }
.mt-lg { margin-top: var(--spacing-lg); }
.mt-xl { margin-top: var(--spacing-xl); }

.mb-xs { margin-bottom: var(--spacing-xs); }
.mb-sm { margin-bottom: var(--spacing-sm); }
.mb-md { margin-bottom: var(--spacing-md); }
.mb-lg { margin-bottom: var(--spacing-lg); }
.mb-xl { margin-bottom: var(--spacing-xl); }

/* =========================
   MEDIA QUERIES RESPONSIVAS
========================= */

/* Tablets - 600px a 899px */
@media (min-width: 37.5em) {
    html { font-size: 1.05rem; }
}

/* Desktops pequenos - 900px a 1199px */
@media (min-width: 56.25em) {
    html { font-size: 1.1rem; }
    .container { width: 85%; }
}

/* Desktops médios - 1200px a 1599px */
@media (min-width: 75em) {
    html { font-size: 1.15rem; }
    .container { width: 80%; }
}

/* Ultrawide - 1600px a 1919px */
@media (min-width: 100em) {
    html { font-size: 1.2rem; }
    .container { width: 75%; }
}

/* TVs e grandes monitores - 1920px+ */
@media (min-width: 120em) {
    html { font-size: 1.25rem; }
    .container { width: 70%; }
}
