@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700;800&display=swap');

:root {
    /* Brand Colors */
    --color-primary: #ef4136; /* ACFAJ Red */
    --color-primary-hover: #d33127;
    
    /* Backgrounds */
    --color-bg-dark: #1a1a1a;
    --color-bg-darker: #121212;
    --color-bg-light: #f8f9fa;
    --color-bg-card: #2b2b2b;
    
    /* Text */
    --color-text-main: #ffffff;
    --color-text-muted: #b0b0b0;
    --color-text-inverse: #1a1a1a;
    
    /* Variables */
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Montserrat', sans-serif;
    
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-full: 9999px;
    
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.4);
    --shadow-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.5);
    
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

/* ================== RESET & BASE ================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-family: var(--font-body);
    font-size: 16px;
    color: var(--color-text-main);
    background-color: var(--color-bg-dark);
}

body {
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-fast);
}

ul, ol {
    list-style: none;
}

/* ================== TYPOGRAPHY ================== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h4 { font-size: clamp(1.25rem, 2vw, 1.75rem); }

p {
    margin-bottom: 1rem;
}

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

/* ================== LAYOUT ================== */
.container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 5%;
}

.section {
    padding: 6rem 0;
}

.section-light {
    background-color: var(--color-bg-light);
    color: var(--color-text-inverse);
}

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

.grid {
    display: grid;
    gap: 2rem;
}

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

/* ================== COMPONENTS ================== */

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 2rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition-normal);
    text-align: center;
}

.btn-primary {
    background-color: var(--color-primary);
    color: #fff;
}

.btn-primary:hover {
    background-color: var(--color-primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(239, 65, 54, 0.4);
}

.btn-outline {
    background-color: transparent;
    border-color: var(--color-text-main);
    color: var(--color-text-main);
}

.btn-outline:hover {
    background-color: var(--color-text-main);
    color: var(--color-bg-dark);
}

.btn-outline-dark {
    border-color: var(--color-text-inverse);
    color: var(--color-text-inverse);
}
.btn-outline-dark:hover {
    background-color: var(--color-text-inverse);
    color: #fff;
}

/* Header / Navbar */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(26, 26, 26, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all var(--transition-normal);
}

.header.scrolled {
    padding: 0.25rem 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100px;
    transition: height var(--transition-normal);
}

.header.scrolled .nav {
    height: 80px;
}

.logo img {
    height: 90px;
    width: auto;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.5));
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-primary);
    transition: width var(--transition-normal);
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

.nav-link:hover, .nav-link.active {
    color: var(--color-primary);
}

.mobile-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    background: none;
    border: none;
    color: var(--color-text-main);
}

/* Cards */
.card {
    background-color: var(--color-bg-card);
    border-radius: var(--radius-md);
    padding: 2rem;
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.section-light .card {
    background-color: #fff;
    border-color: rgba(0,0,0,0.05);
    box-shadow: var(--shadow-sm);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    position: relative;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    background: linear-gradient(135deg, #1f1f1f, #0d0d0d);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: radial-gradient(circle at top right, rgba(239, 65, 54, 0.15), transparent 40%),
                radial-gradient(circle at bottom left, rgba(239, 65, 54, 0.05), transparent 40%);
}

.hero-content {
    max-width: 800px;
}

.hero .subtitle {
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-primary);
    font-weight: 700;
    margin-bottom: 1rem;
    display: block;
}

/* Images */
.img-rounded {
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    object-fit: cover;
    width: 100%;
}

.img-overlay-wrap {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
}
.img-overlay-wrap::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
}

/* Footer */
.footer {
    background-color: #0d0d0d;
    padding: 4rem 0 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-title {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}
.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255,255,255,0.05);
    border-radius: 50%;
    transition: all var(--transition-fast);
}
.social-links a:hover {
    background-color: var(--color-primary);
    color: #fff;
    transform: scale(1.1);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.05);
    color: var(--color-text-muted);
    font-size: 0.875rem;
}

/* Form */
.form-group {
    margin-bottom: 1.5rem;
}
.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}
.form-input {
    width: 100%;
    padding: 1rem;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255,255,255,0.2);
    background: rgba(255,255,255,0.05);
    color: var(--color-text-main);
    font-family: inherit;
    transition: border-color var(--transition-fast);
}
.section-light .form-input {
    border-color: rgba(0,0,0,0.2);
    background: #fff;
    color: var(--color-text-inverse);
}
.form-input:focus {
    outline: none;
    border-color: var(--color-primary);
}

/* ================== ANIMATIONS ================== */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity var(--transition-slow), transform var(--transition-slow);
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger delays */
.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }
.delay-400 { transition-delay: 400ms; }

/* ================== RESPONSIVE ================== */
@media (max-width: 900px) {
    .nav-links {
        position: fixed;
        top: 100px;
        left: 0;
        width: 100%;
        background-color: rgba(26, 26, 26, 0.98);
        backdrop-filter: blur(15px);
        flex-direction: column;
        padding: 2rem 0;
        gap: 1.5rem;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all var(--transition-normal);
        border-bottom: 1px solid rgba(255,255,255,0.05);
    }
    
    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .header.scrolled .nav-links {
        top: 64px;
    }
    
    .mobile-toggle {
        display: block;
    }
    
    .hero {
        text-align: center;
    }
    
    .hero-content {
        margin: 0 auto;
    }
}

.whatsapp-float {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 100;
    transition: transform var(--transition-fast);
}
.whatsapp-float:hover {
    transform: scale(1.1);
}
.whatsapp-float img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    box-shadow: var(--shadow-hover);
}
