/* 
   FOINCO Infraestructura - Corporate Styles
   Theme: Industrial Premium
   Colors: Oxford Gray, Navy Blue, Safety Yellow, Silver/White
*/

:root {
    --primary-color: #2F3E46;
    /* Foinco Dark Grey (Charcoal) */
    --secondary-color: #3A8D9F;
    /* Foinco Teal (Cubes/Infraestructura) */
    --accent-color: #e5e5e5;
    /* Silver/Concrete */
    --dark-bg: #1a1a1a;
    /* Oxford Gray */
    --light-bg: #f4f6f8;
    /* Light Concrete */
    --text-main: #333333;
    --text-light: #ffffff;
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Open Sans', sans-serif;
    --transition-speed: 0.3s;
    --container-width: 1200px;
    --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 10px 30px rgba(0, 0, 0, 0.15);
}

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

body {
    font-family: var(--font-body);
    color: var(--text-main);
    line-height: 1.6;
    background-color: #ffffff;
    overflow-x: hidden;
}

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

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

ul {
    list-style: none;
}

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

/* Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 80px 0;
}

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

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

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

.section-title {
    font-size: 2.5rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 20px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background-color: var(--secondary-color);
}

.text-center .section-title::after {
    left: 50%;
    transform: translateX(-50%);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 4px;
    /* Slightly squarer for industrial look */
    font-family: var(--font-heading);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all var(--transition-speed);
}

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

.btn-primary:hover {
    background-color: #2a6e7c;
    color: var(--text-light);
    /* Darken bg, light text */
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-light);
    border-color: var(--text-light);
}

.btn-secondary:hover {
    background-color: var(--text-light);
    color: var(--primary-color);
}

.btn-block {
    display: block;
    width: 100%;
}

/* Header */
.site-header {
    background-color: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    height: 140px;
    /* Increased to accommodate larger logo */
    display: flex;
    align-items: center;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo-container {
    display: flex;
    align-items: center;
    text-decoration: none;
    background-color: #ffffff;
    /* Forced white */
}

.main-logo {
    height: 120px;
    /* Increased by 50% */
    width: auto;
    object-fit: contain;
}

.main-nav ul {
    display: flex;
    gap: 30px;
}

.main-nav a {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--primary-color);
}

.main-nav a:hover {
    color: var(--secondary-color);
}

.header-cta .btn {
    padding: 10px 24px;
    font-size: 0.85rem;
}

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

/* Hero Section */
.hero-section {
    height: 90vh;
    /* Almost full screen */
    background-color: #2c3e50;
    /* Fallback */
    /* Use a real image here in production */
    background-image: url('https://images.unsplash.com/photo-1541888946425-d81bb19240f5?q=80&w=2070&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    margin-top: 140px;
    /* Header height offset */
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(11, 30, 59, 0.85), rgba(11, 30, 59, 0.7));
    /* Navy overlay */
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: var(--text-light);
    max-width: 800px;
}

.hero-content h1 {
    font-size: 3.5rem;
    color: var(--text-light);
    margin-bottom: 20px;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 40px;
    opacity: 0.9;
    font-weight: 300;
}

.hero-buttons {
    display: flex;
    gap: 20px;
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-image {
    background-color: #ddd;
    height: 400px;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow-soft);
}

/* Add a real placeholder image via background for effect */
.about-image .image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: url('https://images.unsplash.com/photo-1503387762-592deb58ef4e?q=80&w=2071&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    color: white;
    font-weight: bold;
    font-size: 1.2rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    /* Forced 2x2 layout */
    gap: 30px;
    margin-top: 50px;
}

.service-card {
    background-color: #ffffff;
    padding: 40px 30px;
    border-radius: 4px;
    transition: var(--transition-speed);
    border-bottom: 4px solid transparent;
    box-shadow: var(--shadow-soft);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-bottom-color: var(--secondary-color);
}

.service-icon {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 25px;
}

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

.service-card p {
    color: #666;
    font-size: 0.95rem;
}

/* Value Prop Section */
.value-prop-section h2 {
    color: var(--text-light);
    /* Override default h2 color */
}

.value-prop-content .subtitle {
    font-size: 1.2rem;
    margin-bottom: 50px;
    opacity: 0.9;
}

.benefits-scroller {
    display: flex;
    justify-content: center;
    gap: 50px;
    flex-wrap: wrap;
}

.benefit-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.benefit-item i {
    font-size: 2.5rem;
    color: var(--secondary-color);
}

.benefit-item span {
    font-family: var(--font-heading);
    font-weight: 600;
}

/* Contact Section */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-form-wrapper {
    background-color: #ffffff;
    padding: 40px;
    border-radius: 4px;
    box-shadow: var(--shadow-soft);
    border-top: 4px solid var(--secondary-color);
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--primary-color);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: border-color var(--transition-speed);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
}

.contact-info-wrapper {
    padding-top: 20px;
}

.info-blocks {
    margin-top: 30px;
}

.info-item {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.info-item i {
    width: 50px;
    height: 50px;
    background-color: var(--light-bg);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.info-item h4 {
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.info-item a,
.info-item p {
    color: #666;
}

/* Footer */
.site-footer {
    background-color: #111;
    color: #999;
    padding: 60px 0 20px;
    font-size: 0.9rem;
}

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

.footer-brand .footer-logo {
    color: var(--text-light);
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 10px;
}

.footer-links h4,
.footer-legal h4 {
    color: var(--text-light);
    margin-bottom: 20px;
    font-size: 1.1rem;
}

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

.footer-links a:hover,
.footer-legal a:hover {
    color: var(--secondary-color);
}

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 20px;
    text-align: center;
}

/* WhatsApp Float */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    transition: transform var(--transition-speed);
}

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

/* Responsive */
@media (max-width: 992px) {
    .section-title {
        font-size: 2rem;
    }

    .hero-content h1 {
        font-size: 2.8rem;
    }

    .about-grid,
    .contact-grid,
    .services-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    /* Mobile Menu Styling */
    .header-container {
        position: relative;
    }

    .main-nav {
        display: none;
        /* Hidden by default */
        position: absolute;
        top: 140px;
        /* Increased from 100px */
        /* Directly below header */
        left: 0;
        width: 100%;
        background-color: #ffffff;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
        padding: 20px 0;
        z-index: 999;
        border-top: 1px solid #eee;
    }

    .main-nav.active {
        display: block;
        /* Visible when active */
        animation: slideDown 0.3s ease-out forwards;
    }

    .main-nav ul {
        flex-direction: column;
        align-items: center;
        gap: 25px;
    }

    .header-cta {
        display: none;
        /* Hide CTA button on mobile to save space */
    }

    .mobile-menu-toggle {
        display: block;
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .hero-buttons {
        flex-direction: column;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .benefits-scroller {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 30px 15px;
        justify-content: center;
    }
}