/* ==========================================================================
   Global Variables & Reset
   ========================================================================== */

:root {
    /* Crava Estudos - Official Palette */
    --clr-teal-light: #1E8B8D;
    --clr-teal-dark: #0C484A;
    --clr-teal-primary: #0A4B4C;
    --clr-teal-medium: #12696B;
    --clr-teal-soft: #64BEC0;
    --clr-amber: #994B00;
    --clr-white: #FFFFFF;
    --clr-offwhite: #F7F6F2;
    --clr-gray-dark: #283737;
    --clr-lavender: #AA96CD;

    /* Gradients */
    --grad-teal: linear-gradient(135deg, var(--clr-teal-light), var(--clr-teal-dark));
    
    /* Typography */
    --font-heading: 'Manrope', 'Inter', system-ui, -apple-system, sans-serif;
    --font-body: 'Manrope', 'Inter', system-ui, -apple-system, sans-serif;

    /* Spacing */
    --sp-xs: 0.5rem;
    --sp-sm: 1rem;
    --sp-md: 2rem;
    --sp-lg: 4rem;
    --sp-xl: 6rem;
    --sp-xxl: 8rem;

    /* Layout Constraints */
    --max-width: 1200px;
    --nav-height: 80px;

    /* Borders & Shadow */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 24px;
    --shadow-soft: 0 4px 20px rgba(10, 75, 76, 0.08);
    --shadow-hover: 0 8px 30px rgba(10, 75, 76, 0.15);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    color: var(--clr-gray-dark);
    background-color: var(--clr-offwhite);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

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

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

ul {
    list-style: none;
}

/* ==========================================================================
   Typography Classes
   ========================================================================== */

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--clr-teal-primary);
    line-height: 1.2;
    font-weight: 700;
}

.text-h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    letter-spacing: -0.02em;
    margin-bottom: var(--sp-md);
}

.text-h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    letter-spacing: -0.01em;
    margin-bottom: var(--sp-sm);
}

.text-h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin-bottom: var(--sp-sm);
}

.text-lead {
    font-size: clamp(1.125rem, 2vw, 1.25rem);
    color: var(--clr-gray-dark);
    margin-bottom: var(--sp-md);
    font-weight: 400;
}

.text-small {
    font-size: 0.875rem;
    color: var(--clr-teal-medium);
}

.text-amber {
    color: var(--clr-amber);
}

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

/* ==========================================================================
   Layout Containers
   ========================================================================== */

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

.section {
    padding: var(--sp-xl) 0;
}

.section-bg-white {
    background-color: var(--clr-white);
}

.section-bg-teal {
    background-color: var(--clr-teal-primary);
    color: var(--clr-white);
}

.section-bg-teal h2, 
.section-bg-teal h3, 
.section-bg-teal .text-lead {
    color: var(--clr-white);
}

.grid {
    display: grid;
    gap: var(--sp-md);
}

.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }

@media (min-width: 992px) {
    .grid-2 { grid-template-columns: repeat(2, 1fr); }
    .grid-3 { grid-template-columns: repeat(3, 1fr); }
}

.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-sm { gap: var(--sp-sm); }
.gap-md { gap: var(--sp-md); }

/* ==========================================================================
   Components (Buttons, Tags, etc.)
   ========================================================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.btn-primary {
    background-color: var(--clr-teal-primary);
    color: var(--clr-white);
}

.btn-primary:hover {
    background-color: var(--clr-teal-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(10, 75, 76, 0.2);
}

.btn-accent {
    background-color: var(--clr-amber);
    color: var(--clr-white);
}

.btn-accent:hover {
    background-color: #8c4c08;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(172, 94, 10, 0.2);
}

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

.btn-outline:hover {
    background-color: var(--clr-teal-primary);
    color: var(--clr-white);
}

.tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background-color: var(--clr-teal-soft);
    color: var(--clr-teal-dark);
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--sp-sm);
}
