/* 
  Conectado Stylesheet 
  Colors based on company branding guidelines
*/

:root {
    --primary-color: #1a6b5c; /* Teal Green */
    --secondary-color: #1b4f2c; /* Dark Green */
    --accent-color: #68203c;  /* Burgundy/Maroon */
    --text-main: #2d3748;
    --text-light: #718096;
    --bg-light: #f7fafc;
    --bg-white: #ffffff;
    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --transition: all 0.3s ease-in-out;
    --radius: 8px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    color: var(--text-main);
    line-height: 1.6;
    background-color: var(--bg-white);
}

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

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

a:hover {
    color: var(--accent-color);
}

ul {
    list-style: none;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; position: relative; padding-bottom: 10px; }
h2::after { 
    content: ''; 
    position: absolute; 
    left: 0; 
    bottom: 0; 
    width: 60px; 
    height: 4px; 
    background-color: var(--accent-color); 
}
.text-center h2::after {
    left: 50%;
    transform: translateX(-50%);
}
h3 { font-size: 1.5rem; }
p { margin-bottom: 1rem; color: var(--text-light); }
.lead { font-size: 1.25rem; font-weight: 300; }

/* Layout & Containers */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
}

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

/* Header & Nav */
.header {
    background-color: var(--bg-white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo img {
    height: 50px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-link {
    color: var(--text-main);
    font-weight: 500;
    font-size: 1rem;
}

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

.lang-switch a {
    font-weight: 600;
    padding: 5px 10px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
}

.lang-switch a.active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Mobile Nav Toggle */
.mobile-nav-toggle {
    display: none;
    cursor: pointer;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--secondary-color);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 5px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
}

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

.btn-primary:hover {
    background-color: var(--secondary-color);
    color: var(--bg-white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

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

.btn-accent:hover {
    background-color: #4a172a;
    color: var(--bg-white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

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

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

/* Hero Section */
.hero {
    padding: 100px 0;
    background: linear-gradient(135deg, rgba(27,79,44,0.05) 0%, rgba(26,107,92,0.1) 100%);
    text-align: center;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.hero .lead {
    max-width: 700px;
    margin: 0 auto 30px;
}

.hero-btns {
    display: flex;
    gap: 15px;
    justify-content: center;
}

/* Grid Layouts */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    align-items: center;
}

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

/* Services Sections */
.service-card {
    background: var(--bg-white);
    border-radius: var(--radius);
    padding: 40px 30px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border-top: 4px solid var(--primary-color);
    height: 100%;
}

.service-card.accent {
    border-top-color: var(--accent-color);
}

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

.service-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.service-card h3 {
    margin-bottom: 15px;
    font-size: 1.25rem;
}

.service-features {
    list-style: none;
    margin-top: 20px;
}

.service-features li {
    margin-bottom: 10px;
    position: relative;
    padding-left: 25px;
    color: var(--text-light);
}

.service-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

.service-card.accent .service-features li::before {
    color: var(--accent-color);
}

/* Why Choose Us */
.feature-list {
    margin-top: 30px;
}

.feature-item {
    display: flex;
    margin-bottom: 25px;
}

.feature-icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    background-color: rgba(26,107,92,0.1);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-right: 20px;
}

/* Contact Section */
.contact-info {
    font-size: 1.1rem;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.contact-item .icon {
    width: 40px;
    height: 40px;
    background-color: var(--bg-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    color: var(--primary-color);
}

.contact-form {
    background: var(--bg-white);
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
}

.form-group {
    margin-bottom: 20px;
}

.form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
    color: var(--text-main);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(26,107,92,0.1);
}

textarea.form-control {
    height: 150px;
    resize: vertical;
}

/* Footer */
.footer {
    background-color: var(--secondary-color);
    color: #cbd5e0;
    padding: 60px 0 20px;
}

.footer h3 {
    color: var(--bg-white);
    margin-bottom: 20px;
}

.footer h3::after {
    display: none;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #cbd5e0;
}

.footer-links a:hover {
    color: var(--bg-white);
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.9rem;
}

/* Utility Classes */
.text-center { text-align: center !important; }
.mb-1 { margin-bottom: 10px; }
.mb-2 { margin-bottom: 20px; }
.mb-3 { margin-bottom: 30px; }
.mb-4 { margin-bottom: 40px; }

/* Responsive Media Queries */
@media screen and (max-width: 992px) {
    .grid-2 {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media screen and (max-width: 768px) {
    .header-container {
        position: relative;
    }
    
    .mobile-nav-toggle {
        display: block;
    }
    
    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-white);
        flex-direction: column;
        padding: 20px;
        box-shadow: var(--shadow-md);
        display: none; /* Initially hidden */
        z-index: 999;
    }
    
    .nav-menu.active {
        display: flex; /* Shown when active class added via JS */
    }
    
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
}
