/* 
  MEDICO LIFE SCIENCE - Design System
  ====================================
  Easily modify colors by changing the CSS variables below
*/

:root {
    /* Primary Colors */
    --primary: #fdf485;                /* Lemon Yellow */
    --primary-foreground: #000000;     /* Black for contrast */
    
    /* Secondary/Background Colors */
    --secondary: #ffffff;              /* White */
    --secondary-foreground: #4e4e4e;   /* Text color */
    
    /* Accent - Red */
    --accent: #710000;                 /* Red */
    --accent-foreground: #ffffff;      /* White */
    
    /* Green - Natural elements */
    --green: #6cdd51;                  /* Green */
    --green-foreground: #ffffff;
    
    /* Background */
    --background: #ffffff;
    --foreground: #4e4e4e;
    
    /* Light backgrounds */
    --light-bg: #f7f7fb;
    --frozen: #e4eaf1;
    --light-lemon: #fffeef;
    --sky-blue: #f1f5f9;
    
    /* Border */
    --border: #e6e6e6;
    --border-lemon: #eeecd3;
    
    /* Additional colors */
    --text-muted: #b6b6b6;
    --grey: #a7a7a7;
    --dark-grey: #363b3e;
    --brown: #433c30;
    --pink: #dd78a0;
    --yellow: #fbd12a;
    --peach: #ff6565;
    
    /* Spacing */
    --radius: 0.75rem;
    --radius-lg: 1.5rem;
    --radius-xl: 2rem;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Archivo', sans-serif;
    background-color: var(--background);
    color: var(--foreground);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* Container */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 640px) {
    .container { padding: 0 1.5rem; }
}

/* Utility Classes */
.text-accent { color: var(--accent); }
.text-muted { color: var(--text-muted); }

        /* ======================================
   BUTTONS
   ====================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: inherit;
    font-weight: 700;
    font-size: 0.875rem;
    border: none;
    border-radius: 9999px;
    cursor: pointer;
    transition: all var(--transition-normal);
    white-space: nowrap;
}

.btn i { width: 1.25rem; height: 1.25rem; }
.btn-icon { width: 1rem; height: 1rem; transition: transform var(--transition-normal); }
.btn:hover .btn-icon { transform: translateX(4px); }

.btn-hero {
    background-color: var(--primary);
    color: var(--primary-foreground);
    padding: 1rem 2rem;
    font-size: 1rem;
    box-shadow: 0 10px 30px rgba(253, 244, 133, 0.3);
}
.btn-hero:hover {
    background-color: #fcef5e;
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(253, 244, 133, 0.4);
}

.btn-hero-outline {
    background-color: transparent;
    color: var(--foreground);
    padding: 1rem 2rem;
    font-size: 1rem;
    border: 2px solid var(--border);
}
.btn-hero-outline:hover {
    background-color: var(--light-bg);
    border-color: var(--accent);
}

.btn-contact {
    background-color: var(--accent);
    color: var(--accent-foreground);
    padding: 0.625rem 1.25rem;
}
.btn-contact:hover {
    background-color: #4a0000;
    transform: translateY(-1px);
}

.btn-ghost {
    background-color: transparent;
    color: var(--foreground);
    padding: 0.625rem 1.25rem;
}
.btn-ghost:hover { color: var(--accent); }

.btn-accent {
    background-color: var(--accent);
    color: var(--accent-foreground);
    padding: 0.75rem 1.5rem;
}
.btn-accent:hover {
    background-color: #4a0000;
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    color: var(--foreground);
    padding: 0.5rem 1rem;
    border: 1px solid var(--border);
}
.btn-outline:hover {
    background-color: var(--light-bg);
    border-color: var(--accent);
}

.btn-card {
    background-color: var(--accent);
    color: var(--accent-foreground);
    padding: 0.5rem 1rem;
    width: 100%;
}

.btn-secondary {
    background-color: var(--secondary);
    color: var(--accent);
    padding: 1rem 2rem;
    font-size: 1rem;
}
.btn-secondary:hover {
    background-color: var(--light-bg);
}

.btn-full { width: 100%; }

/* ======================================
   KICKER / TAG
   ====================================== */
.kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 1rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.025em;
    background-color: rgba(92, 69, 191, 0.12);
    color: var(--accent);
}
.kicker-icon { width: 1rem; height: 1rem; }
.kicker-light {
    background-color: rgba(253, 244, 133, 0.2);
    color: var(--primary);
}
.kicker-testimonial {
    background-color: rgba(255, 255, 255, 0.2);
    color: var(--secondary);
}

/* ======================================
   HEADER
   ====================================== */
.header {
    position: fixed;
    top: 1rem;
    z-index: 50;
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(8px);
    border-radius: 9999px;
    padding: 0.75rem 0;
    transition: all var(--transition-slow);
    
    /* 90% width with 5% margins on each side */
    width: 90vw;
    left: 5vw;
}

.header.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 10px 30px rgba(92, 69, 191, 0.08);
    padding: 0.5rem 0;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.5rem;
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.logo-link:hover .logo-icon { transform: scale(1.05); }

.logo-icon {
    width: 8rem;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform var(--transition-normal);
}
.logo-icon span {
    color: var(--accent-foreground);
    font-weight: 700;
    font-size: 1.125rem;
}

.logo-text {
    font-weight: 700;
    font-size: 1.125rem;
    color: var(--foreground);
    display: none;
}
@media (min-width: 640px) { .logo-text { display: block; } }

.desktop-nav {
    display: none;
    align-items: center;
    gap: 2rem;
}
@media (min-width: 1024px) { .desktop-nav { display: flex; } }

.nav-link {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    color: var(--foreground);
    font-weight: 600;
    font-size: 0.875rem;
    transition: color var(--transition-normal);
}
.nav-link:hover { color: var(--accent); }
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent);
    transition: width var(--transition-normal);
}
.active{
    color: var(--accent);
}
.nav-link:hover::after { width: 100%; }

.nav-icon { width: 1rem; height: 1rem; }

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.header-actions .btn-contact { display: none; }
.header-actions .btn-ghost { display: none; }
@media (min-width: 640px) { .header-actions .btn-contact { display: flex; } }
@media (min-width: 1024px) { .header-actions .btn-ghost { display: flex; } }

.mobile-menu-btn {
    display: flex;
    padding: 0.5rem;
    background: none;
    border: none;
    color: var(--foreground);
    cursor: pointer;
    transition: color var(--transition-normal);
}
.mobile-menu-btn:hover { color: var(--accent); }
.mobile-menu-btn i { width: 1.5rem; height: 1.5rem; }
@media (min-width: 1024px) { .mobile-menu-btn { display: none; } }

.mobile-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 0.5rem;
    background-color: var(--secondary);
    border-radius: 1rem;
    box-shadow: 0 20px 40px rgba(92, 69, 191, 0.12);
    padding: 1rem;
    animation: fadeIn 0.3s ease;
}
.mobile-menu.open { display: block; }

.mobile-nav { display: flex; flex-direction: column; gap: 0.5rem; }

.mobile-nav-link {
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
    color: var(--foreground);
    font-weight: 600;
    transition: all var(--transition-normal);
}
.mobile-nav-link:hover {
    background-color: var(--light-bg);
    color: var(--accent);
}

.mobile-divider {
    margin: 0.5rem 0;
    border: none;
    border-top: 1px solid var(--border);
}

        /* Hero Section */
        .hero-contact {
            min-height: 60vh;
            padding-top: 8rem;
            padding-bottom: 4rem;
            background: linear-gradient(135deg, var(--accent) 0%, #4a0000 100%);
            position: relative;
            overflow: hidden;
        }

        .hero-contact::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>');
            opacity: 0.5;
        }

        .hero-contact-content {
            position: relative;
            z-index: 10;
            text-align: center;
            max-width: 800px;
            margin: 0 auto;
        }

        .hero-contact h1 {
            font-size: 3rem;
            font-weight: 700;
            color: var(--secondary);
            margin-bottom: 1rem;
        }

        .hero-contact p {
            font-size: 1.25rem;
            color: rgba(255, 255, 255, 0.9);
            margin-bottom: 2rem;
        }

        .breadcrumb {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 0.5rem;
            color: rgba(255, 255, 255, 0.8);
            font-size: 0.875rem;
        }

        .breadcrumb a { color: var(--primary); }
        .breadcrumb a:hover { text-decoration: underline; }

        /* Address Section */
        .address-section {
            padding: 5rem 0;
            background-color: var(--light-bg);
        }

        .section-header {
            text-align: center;
            margin-bottom: 3rem;
        }

        .section-title {
            font-size: 2.5rem;
            font-weight: 700;
            color: var(--foreground);
            margin-bottom: 0.5rem;
        }

        .section-subtitle {
            font-size: 1.125rem;
            color: rgba(78, 78, 78, 0.7);
        }

        .address-grid {
            display: grid;
            gap: 2rem;
            max-width: 1000px;
            margin: 0 auto;
        }

        @media (min-width: 768px) {
            .address-grid { grid-template-columns: repeat(2, 1fr); }
        }

        .address-card {
            background: var(--secondary);
            border-radius: 1.5rem;
            padding: 2rem;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
            transition: all var(--transition-normal);
        }

        .address-card:hover {
            transform: translateY(-8px);
            box-shadow: 0 20px 40px rgba(92, 69, 191, 0.12);
        }

        .address-header {
            display: flex;
            align-items: center;
            gap: 1rem;
            margin-bottom: 1.5rem;
        }

        .address-icon {
            width: 3.5rem;
            height: 3.5rem;
            border-radius: 1rem;
            background: linear-gradient(135deg, var(--accent), #4a0000);
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
        }

        .address-type {
            font-size: 1.25rem;
            font-weight: 700;
            color: var(--accent);
        }

        .address-details {
            color: var(--foreground);
            line-height: 1.8;
        }

        .address-details strong {
            display: block;
            margin-bottom: 0.5rem;
            color: var(--accent);
        }

        /* Contact Info Section */
        .contact-info-section {
            padding: 5rem 0;
            background-color: var(--secondary);
            position: relative;
        }

        .contact-info-grid {
            display: grid;
            gap: 2rem;
            max-width: 1200px;
            margin: 0 auto;
        }

        @media (min-width: 550px) {
            .contact-info-grid { grid-template-columns: repeat(2, 1fr); }
        }

        @media (min-width: 1024px) {
            .contact-info-grid { grid-template-columns: repeat(4, 1fr); }
        }

        .contact-card {
            background: var(--light-bg);
            border-radius: 1rem;
            padding: 2rem;
            text-align: center;
            transition: all var(--transition-normal);
        }

        .contact-card:hover {
            background: var(--secondary);
            box-shadow: 0 10px 30px rgba(92, 69, 191, 0.12);
            transform: translateY(-8px);
        }

        .contact-card-icon {
            width: 4rem;
            height: 4rem;
            margin: 0 auto 1.5rem;
            border-radius: 1rem;
            background: linear-gradient(135deg, var(--accent), #4a0000);
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
        }

        .contact-card h3 {
            font-size: 1.125rem;
            font-weight: 700;
            color: var(--accent);
            margin-bottom: 1rem;
        }

        .contact-card p {
            color: var(--foreground);
            line-height: 1.8;
            font-size: 0.95rem;
        }

        .whatsapp-btn {
            position: fixed;
            bottom: 2rem;
            right: 2rem;
            width: 4rem;
            height: 4rem;
            border-radius: 50%;
            background: linear-gradient(135deg, #25D366, #128C7E);
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 2rem;
            box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4);
            cursor: pointer;
            transition: all var(--transition-normal);
            z-index: 100;
        }

        .whatsapp-btn:hover {
            transform: scale(1.1);
            box-shadow: 0 15px 40px rgba(37, 211, 102, 0.6);
        }

        /* Get in Touch Section */
        .get-in-touch-section {
            padding: 5rem 0;
            background: linear-gradient(135deg, var(--light-bg) 0%, var(--secondary) 100%);
        }

        .form-container {
            max-width: 800px;
            margin: 0 auto;
            background: var(--secondary);
            border-radius: 1.5rem;
            padding: 3rem;
            box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
        }

        .form-group {
            margin-bottom: 1.5rem;
        }

        .form-group label {
            display: block;
            font-weight: 600;
            color: var(--foreground);
            margin-bottom: 0.5rem;
        }

        .form-group input,
        .form-group textarea,
        .form-group select {
            width: 100%;
            padding: 0.875rem 1.25rem;
            border: 2px solid var(--border);
            border-radius: var(--radius);
            font-family: inherit;
            font-size: 1rem;
            transition: all var(--transition-normal);
        }

        .form-group input:focus,
        .form-group textarea:focus,
        .form-group select:focus {
            outline: none;
            border-color: var(--accent);
        }

        .form-group textarea {
            resize: vertical;
            min-height: 150px;
        }

        .form-row {
            display: grid;
            gap: 1.5rem;
        }

        @media (min-width: 768px) {
            .form-row { grid-template-columns: repeat(2, 1fr); }
        }

        .btn-submit {
            background: linear-gradient(135deg, var(--accent), #4a0000);
            color: white;
            padding: 1rem 2.5rem;
            border: none;
            border-radius: 9999px;
            font-weight: 700;
            font-size: 1rem;
            cursor: pointer;
            transition: all var(--transition-normal);
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
        }

        .btn-submit:hover {
            transform: translateY(-2px);
            box-shadow: 0 15px 40px rgba(113, 0, 0, 0.3);
        }

        /* Map Section */
        .map-section {
            padding: 5rem 0;
            background-color: var(--secondary);
        }

        .map-container {
            position: relative;
            max-width: 1200px;
            margin: 0 auto;
            border-radius: 1.5rem;
            overflow: hidden;
            box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
        }

        .map-container::before {
            content: '';
            position: absolute;
            top: -10px;
            left: -10px;
            right: -10px;
            bottom: -10px;
            background: linear-gradient(135deg, var(--accent), var(--primary));
            z-index: -1;
            border-radius: 1.5rem;
        }

        .map-container iframe {
            width: 100%;
            height: 500px;
            border: none;
            display: block;
        }

        /* ======================================
   FOOTER
   ====================================== */
.footer {
    position: relative;
    background-size: cover;
    background-position: center;
    margin-top: 3rem;
    border-radius: 2rem 2rem 0 0;
}

.footer-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(78, 78, 78, 0.95);
    border-radius: 2rem 2rem 0 0;
}

.footer-content { position: relative; z-index: 10; }

.footer-grid {
    display: grid;
    gap: 3rem;
    padding: 4rem 0;
}
@media (min-width: 768px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: repeat(4, 1fr); } }

.footer-info { display: flex; flex-direction: column; gap: 1.5rem; }

.footer-logo { display: flex; align-items: center; gap: 0.5rem; }

.footer-logo-icon {
    width: 15rem;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
}
.footer-logo-icon span { color: var(--accent-foreground); font-weight: 700; font-size: 1.25rem; }

.footer-logo-text { font-weight: 700; font-size: 1.25rem; color: var(--secondary); }

.footer-description { color: rgba(255, 255, 255, 0.7); line-height: 1.7; }

.social-links { display: flex; gap: 0.75rem; }

.social-link {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary);
    transition: all var(--transition-normal);
}
.social-link:hover {
    background-color: var(--primary);
    color: var(--primary-foreground);
}
.social-link i { width: 1.25rem; height: 1.25rem; }

.footer-nav {}

.footer-title {
    font-weight: 700;
    color: var(--secondary);
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
}

.footer-links { display: flex; flex-direction: column; gap: 0.75rem; }

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    transition: color var(--transition-normal);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}
.footer-links a::before {
    content: '';
    width: 0;
    height: 2px;
    background-color: var(--primary);
    transition: width var(--transition-normal);
}
.footer-links a:hover { color: var(--primary); }
.footer-links a:hover::before { width: 1rem; }

.footer-contact {}

.contact-list { display: flex; flex-direction: column; gap: 1rem; }

.contact-item { display: flex; align-items: flex-start; gap: 0.75rem; }

.contact-icon {
    width: 1.25rem;
    height: 1.25rem;
    color: var(--primary);
    flex-shrink: 0;
    margin-top: 0.125rem;
}

.contact-primary { color: var(--secondary); font-weight: 600; }
.contact-secondary { font-size: 0.875rem; color: rgba(255, 255, 255, 0.6); }

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem 0;
}

.copyright {
    text-align: center;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
}
.copyright span {
    display: block;
    margin-top: 0.25rem;
}
@media (min-width: 640px) {
    .copyright span {
        display: inline;
        margin-top: 0;
        margin-left: 0.5rem;
    }
}

/* ======================================
   ANIMATIONS
   ====================================== */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-float { animation: float 6s ease-in-out infinite; }
.animate-fade-up { animation: fadeUp 0.6s ease-out forwards; }

/* Reveal animation (used with IntersectionObserver) */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.in-view {
    opacity: 1;
    transform: translateY(0);
}

/* ======================================
   SCROLLBAR
   ====================================== */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--light-bg); }
::-webkit-scrollbar-thumb {
    background: rgba(92, 69, 191, 0.3);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover { background: rgba(92, 69, 191, 0.5); }