/* 
 * Antecipe Fomento — Custom Design System
 * Based on the model design
 */

:root {
    /* Colors - HSL */
    --background: 40 33% 98%;
    --foreground: 220 45% 12%;
    --card: 0 0% 100%;
    --card-foreground: 220 45% 12%;
    --primary: 220 60% 14%;
    --primary-foreground: 40 33% 98%;
    --primary-glow: 220 55% 22%;
    --accent: 38 70% 52%;
    --accent-foreground: 220 60% 14%;
    --accent-soft: 40 75% 88%;
    --secondary: 220 25% 96%;
    --secondary-foreground: 220 45% 12%;
    --muted: 220 20% 95%;
    --muted-foreground: 220 15% 42%;
    --border: 220 20% 90%;
    --input: 220 20% 90%;
    --ring: 38 70% 52%;

    /* Gradients */
    --gradient-hero: linear-gradient(135deg, hsl(220 60% 10%) 0%, hsl(220 55% 18%) 60%, hsl(220 50% 25%) 100%);
    --gradient-gold: linear-gradient(135deg, hsl(38 80% 58%) 0%, hsl(35 70% 48%) 100%);
    --gradient-soft: linear-gradient(180deg, hsl(40 33% 98%) 0%, hsl(40 30% 95%) 100%);
    --gradient-radial: radial-gradient(circle at top right, hsl(38 70% 52% / 0.15), transparent 60%);

    /* Shadows */
    --shadow-soft: 0 4px 24px -8px hsl(220 60% 14% / 0.08);
    --shadow-elegant: 0 20px 50px -20px hsl(220 60% 14% / 0.18);
    --shadow-gold: 0 10px 40px -10px hsl(38 70% 52% / 0.45);
    --shadow-card: 0 2px 12px -4px hsl(220 60% 14% / 0.06);

    /* Transitions */
    --transition-smooth: cubic-bezier(0.4, 0, 0.2, 1);
    --transition-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Base Resets */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    border-color: hsl(var(--border));
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: hsl(var(--background));
    color: hsl(var(--foreground));
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
    font-family: 'Fraunces', Georgia, serif;
    font-weight: 600;
    letter-spacing: -0.02em;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.4s var(--transition-smooth);
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

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

/* Layout Utilities */
.container-page {
    margin: 0 auto;
    width: 100%;
    max-width: 1280px;
    padding: 0 1.5rem;
}

@media (min-width: 1024px) {
    .container-page {
        padding: 0 2.5rem;
    }
}

.section-py {
    padding-top: 6rem;
    padding-bottom: 6rem;
}

@media (min-width: 768px) {
    .section-py {
        padding-top: 8rem;
        padding-bottom: 8rem;
    }
}

/* Components */

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    transition: all 0.4s var(--transition-smooth);
    height: 6rem;
    display: flex;
    align-items: center;
    color: #fff;
}

.header.scrolled {
    background-color: hsl(var(--primary));
    box-shadow: var(--shadow-elegant);
    border-bottom: 1px solid hsla(var(--primary-foreground), 0.1);
}

.nav-link {
    font-size: 0.875rem;
    font-weight: 500;
    color: #fff;
}

.nav-link:hover {
    color: hsl(var(--accent));
}

/* Dropdown */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background-color: hsl(var(--primary));
    min-width: 180px;
    box-shadow: var(--shadow-elegant);
    border-radius: 1rem;
    padding: 0.75rem 0;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s var(--transition-smooth);
    z-index: 100;
    border: 1px solid hsla(var(--primary-foreground), 0.1);
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-menu a {
    display: block;
    padding: 0.625rem 1.5rem;
    color: #fff;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s;
}

.dropdown-menu a:hover {
    background-color: hsla(var(--primary-foreground), 0.1);
    color: hsl(var(--accent));
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 9999px;
    background-color: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
    padding: 0.625rem 1.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    box-shadow: var(--shadow-soft);
    transition: all 0.5s var(--transition-spring);
}

.btn-primary:hover {
    background-color: hsl(var(--primary-glow));
    box-shadow: var(--shadow-elegant);
    transform: translateY(-1px);
}

.btn-gold {
    background: var(--gradient-gold);
    color: hsl(var(--primary));
    box-shadow: var(--shadow-gold);
}

.btn-gold:hover {
    transform: scale(1.03);
}

/* Hero */
.hero {
    position: relative;
    overflow: hidden;
    padding-top: 8rem;
    padding-bottom: 6rem;
}

@media (min-width: 768px) {
    .hero {
        padding-top: 10rem;
        padding-bottom: 8rem;
    }
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
}

.overlay-1 { background: var(--gradient-hero); opacity: 0.4; }
.overlay-2 { background: linear-gradient(to right, hsla(var(--primary), 0.85), hsla(var(--primary), 0.55), hsla(var(--primary), 0.1)); }
.overlay-3 { background: var(--gradient-radial); opacity: 0.4; }

.text-gold-gradient {
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-title {
    font-size: 3rem;
    line-height: 1.05;
    color: hsl(var(--primary-foreground));
    margin-top: 1.5rem;
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 4.5rem;
    }
}

/* Services */
.services-section {
    background: var(--gradient-soft);
}

.service-card {
    position: relative;
    background-color: hsl(var(--card));
    padding: 2rem;
    border-radius: 1.5rem;
    border: 1px solid hsla(var(--border), 0.7);
    box-shadow: var(--shadow-card);
    transition: all 0.5s var(--transition-spring);
}

.service-card:hover {
    transform: translateY(-0.5rem);
    box-shadow: var(--shadow-elegant);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    border-radius: 1.5rem 1.5rem 0 0;
    background: var(--gradient-gold);
    opacity: 0;
    transition: all 0.4s var(--transition-smooth);
}

.service-card:hover::before {
    opacity: 1;
}

.service-icon {
    display: inline-flex;
    width: 3.5rem;
    height: 3.5rem;
    align-items: center;
    justify-content: center;
    border-radius: 1rem;
    background-color: hsla(var(--accent), 0.15);
    color: hsl(var(--accent));
    transition: all 0.4s var(--transition-smooth);
}

.service-card:hover .service-icon {
    background: var(--gradient-gold);
    color: hsl(var(--primary));
    box-shadow: var(--shadow-gold);
}

/* Contact */
.contact-section {
    background-color: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
    position: relative;
    overflow: hidden;
}

.contact-card {
    background-color: hsl(var(--card));
    color: hsl(var(--foreground));
    padding: 2rem;
    border-radius: 1.5rem;
    box-shadow: var(--shadow-elegant);
}

@media (min-width: 768px) {
    .contact-card {
        padding: 2.5rem;
    }
}

.form-group {
    margin-bottom: 1rem;
}

.form-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: hsl(var(--muted-foreground));
    margin-bottom: 0.5rem;
}

.form-input, .form-textarea {
    width: 100%;
    border-radius: 0.75rem;
    border: 1px solid hsl(var(--border));
    background-color: hsl(var(--background));
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    color: hsl(var(--foreground));
    outline: none;
    transition: all 0.4s var(--transition-smooth);
}

.form-input:focus, .form-textarea:focus {
    border-color: hsl(var(--accent));
    box-shadow: 0 0 0 4px hsla(var(--accent), 0.3);
}

/* WhatsApp Float */
.whatsapp-float {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 50;
    width: 3.5rem;
    height: 3.5rem;
    background-color: #25d366;
    color: white;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px -5px rgba(37, 211, 102, 0.4);
    transition: all 0.5s var(--transition-spring);
}

.whatsapp-float:hover {
    transform: scale(1.1) rotate(5deg);
}

/* Animations */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-up {
    animation: fadeInUp 0.8s var(--transition-smooth) both;
}

/* Grid & Utilities */
.grid { display: grid; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-12 { gap: 3rem; }
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }

@media (min-width: 640px) {
    .sm-grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1024px) {
    .lg-grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .lg-grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-3 { gap: 0.75rem; }
.gap-10 { gap: 2.5rem; }

.hidden { display: none; }
@media (min-width: 768px) {
    .md-flex { display: flex; }
    .md-hidden { display: none; }
}

.rounded-full { border-radius: 9999px; }
.text-xs { font-size: 0.75rem; }
.text-sm { font-size: 0.875rem; }
.text-lg { font-size: 1.125rem; }
.font-semibold { font-weight: 600; }
.uppercase { text-transform: uppercase; }
.tracking-wider { letter-spacing: 0.05em; }

.mt-6 { margin-top: 1.5rem; }
.mt-7 { margin-top: 1.75rem; }
.mt-10 { margin-top: 2.5rem; }
