/* CSS Variables & Reset - SOL DEL NORTE THEME */
:root {
    /* Brand Colors extracted from Logo */
    --primary-color: #003B5C;
    /* Deep Teal - Laboratory/Waves */
    --primary-light: #005f8f;
    /* Lighter shade of primary */
    --secondary-color: #F58220;
    /* Vibrant Orange - Sun */
    --secondary-gradient: #FF9E42;
    /* Lighter orange for gradients */
    --accent-color: #FDB913;
    /* Golden Yellow - Sun rays */

    /* Neutrals */
    --dark-bg: #00263E;
    /* Very dark teal for footers/headings */
    --light-bg: #F4F7F9;
    /* Very light cool gray */
    --white: #ffffff;
    --text-main: #333333;
    --text-light: #555555;

    /* Effects */
    --glass: rgba(255, 255, 255, 0.95);
    --shadow-sm: 0 4px 6px rgba(0, 59, 92, 0.05);
    --shadow-md: 0 10px 25px rgba(0, 59, 92, 0.1);
    --shadow-lg: 0 20px 50px rgba(0, 59, 92, 0.15);
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 30px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    line-height: 1.6;
    background-color: var(--white);
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    color: var(--dark-bg);
}

a {
    text-decoration: none;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

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

/* Typography Utilities */
.text-center {
    text-align: center;
}

.highlight {
    color: var(--secondary-color);
}

.dot {
    color: var(--secondary-color);
}

.badge {
    background: rgba(245, 130, 32, 0.1);
    color: var(--secondary-color);
    padding: 6px 18px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 20px;
    display: inline-block;
    border: 1px solid rgba(245, 130, 32, 0.2);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 30px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    font-size: 1rem;
    gap: 10px;
    transition: all 0.3s ease;
}

.btn-primary {
    /* Gradient from Orange to Deep Orange for high energy CTA */
    background: linear-gradient(135deg, var(--secondary-color), var(--secondary-gradient));
    color: var(--white);
    border: none;
    box-shadow: 0 8px 20px rgba(245, 130, 32, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(245, 130, 32, 0.4);
}

/* Secondary Button - Teal */
.btn-secondary {
    background: var(--primary-color);
    color: var(--white);
    box-shadow: 0 8px 20px rgba(0, 59, 92, 0.2);
}

.btn-secondary:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
}

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

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

.btn-white {
    background: var(--white);
    color: var(--secondary-color);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.btn-outline-white {
    border: 2px solid var(--white);
    color: var(--white);
}

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

.btn-dark {
    background: var(--dark-bg);
    color: var(--white);
    border: none;
}

/* Top Bar */
.top-bar {
    background-color: var(--primary-light);
    color: var(--white);
    font-size: 0.9rem;
    padding: 12px 0;
    font-weight: 500;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.contact-info span {
    margin-right: 25px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.contact-info i {
    color: var(--accent-color);
}

.social-links a {
    color: rgba(255, 255, 255, 0.9);
    margin-left: 20px;
    font-size: 1rem;
}

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

/* Header */
.main-header {
    background: var(--white);
    padding: 15px 0;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

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

.logo a {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo img {
    height: 70px;
    /* Increased size for visibility */
    width: auto;
}

.logo-text h1 {
    font-size: 1.6rem;
    color: var(--primary-color);
    margin: 0;
    line-height: 1.1;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.logo-text .tagline {
    font-size: 0.8rem;
    color: var(--secondary-color);
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
}


.desktop-nav ul {
    display: flex;
    gap: 25px;
    /* Tighter spacing */
}

.desktop-nav a {
    color: var(--text-main);
    font-weight: 600;
    font-size: 0.95rem;
    position: relative;
    padding: 5px 0;
}

.desktop-nav a:hover,
.desktop-nav a.active {
    color: var(--secondary-color);
}

.desktop-nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    bottom: 0;
    left: 0;
    background-color: var(--secondary-color);
    border-radius: 3px;
    transition: width 0.3s ease;
}

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

.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Search Box in Header styled similar to Chopo's functionality */
.mini-search {
    display: none;
    /* Can be enabled if desired */
}

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

@media (max-width: 991px) {
    .menu-toggle {
        display: block;
    }

    .desktop-nav,
    .header-actions .btn-results {
        display: none;
    }
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 85%;
    max-width: 400px;
    height: 100vh;
    background: var(--white);
    padding: 60px 40px;
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.1);
    transition: 0.5s cubic-bezier(0.77, 0, 0.175, 1);
    z-index: 1100;
}

.mobile-menu.active {
    right: 0;
}

.close-menu {
    position: absolute;
    top: 25px;
    right: 30px;
    font-size: 1.8rem;
    color: var(--text-light);
    cursor: pointer;
    transition: 0.3s;
}

.close-menu:hover {
    color: var(--secondary-color);
    transform: rotate(90deg);
}

.mobile-menu ul {
    margin-top: 40px;
}

.mobile-menu ul li {
    margin-bottom: 25px;
    border-bottom: 1px solid #f1f1f1;
    padding-bottom: 15px;
}

.mobile-menu a {
    font-size: 1.1rem;
    color: var(--dark-bg);
    font-weight: 600;
    display: block;
}

.mobile-menu a:hover {
    color: var(--secondary-color);
    padding-left: 10px;
}

/* Hero Section */
.hero {
    position: relative;
    height: 85vh;
    /* Taller hero */
    display: flex;
    align-items: center;
    background: var(--light-bg);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Optional: Slight zoom animation */
    animation: zoomSlow 20s infinite alternate;
}

@keyframes zoomSlow {
    from {
        transform: scale(1);
    }

    to {
        transform: scale(1.1);
    }
}

.hero-bg .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Modern Gradient Overlay - Darkens image but keeps it professional */
    background: linear-gradient(90deg,
            rgba(255, 255, 255, 0.95) 0%,
            rgba(255, 255, 255, 0.85) 40%,
            rgba(255, 255, 255, 0.1) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
}

.hero-text {
    max-width: 650px;
    padding-right: 20px;
}

.hero-subtitle {
    color: var(--secondary-color);
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-size: 0.95rem;
    display: block;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.hero-subtitle::before {
    content: '';
    width: 30px;
    height: 3px;
    background: var(--secondary-color);
}

.hero-text h2 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 25px;
    color: var(--primary-color);
}

.hero-text h2 .highlight {
    color: var(--secondary-color);
}

.hero-text p {
    color: var(--text-light);
    font-size: 1.25rem;
    margin-bottom: 40px;
    line-height: 1.7;
}

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

/* Quick Access / Search Bar */
.quick-access-wrapper {
    position: relative;
    margin-top: -60px;
    /* Overlap hero */
    z-index: 10;
    padding-bottom: 50px;
}

.quick-access-container {
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-xl, 0 20px 40px rgba(0, 0, 0, 0.08));
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 40px;
    align-items: center;
    border-top: 5px solid var(--secondary-color);
}

.qa-search h3 {
    margin-bottom: 20px;
    font-size: 1.5rem;
    color: var(--primary-color);
}

.search-input-group {
    display: flex;
    background: #F0F4F8;
    border-radius: 50px;
    padding: 8px;
    border: 1px solid transparent;
    transition: 0.3s;
}

.search-input-group:focus-within {
    border-color: var(--secondary-color);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(245, 130, 32, 0.1);
}

.search-input-group input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 0 20px;
    font-size: 1rem;
    outline: none;
    color: var(--primary-color);
}

.search-input-group button {
    background: var(--primary-color);
    color: var(--white);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    transition: 0.3s;
}

.search-input-group button:hover {
    background: var(--secondary-color);
}

.qa-links {
    display: flex;
    justify-content: space-around;
    gap: 15px;
}

.qa-item {
    text-align: center;
    color: var(--text-light);
    transition: 0.3s;
}

.qa-item:hover {
    transform: translateY(-5px);
}

.qa-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(0, 59, 92, 0.05);
    /* Light Primary */
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 10px;
    transition: 0.3s;
}

.qa-item:hover .qa-icon {
    background: var(--secondary-color);
    color: var(--white);
    box-shadow: 0 5px 15px rgba(245, 130, 32, 0.4);
}

.qa-item span {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--primary-color);
}

/* Services */
.services {
    background: var(--white);
}

.section-header p {
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
    font-size: 1.1rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.service-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid #edf2f7;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 4px;
    background: var(--secondary-color);
    transition: width 0.4s ease;
}

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

.service-card:hover::before {
    width: 100%;
}

.icon-box {
    width: 70px;
    height: 70px;
    background: white;
    /* Changed from gradient for cleaner look */
    border: 2px solid rgba(0, 59, 92, 0.1);
    color: var(--primary-color);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 25px;
    transition: 0.3s;
}

.service-card:hover .icon-box {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

.service-card h4 {
    color: var(--primary-color);
    font-size: 1.4rem;
    margin-bottom: 15px;
}

.read-more {
    margin-top: 10px;
    color: var(--secondary-color);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
}

.read-more:hover {
    color: var(--primary-color);
}

/* About Section Refinements */
.about {
    background-color: var(--light-bg);
    overflow: hidden;
    /* Prevent spillover */
}

.two-col {
    display: flex;
    align-items: center;
    gap: 80px;
    /* Increased gap for better separation */
}

.about-image {
    flex: 0 0 45%;
    /* Fixed width for image container */
    position: relative;
    /* Removed fixed height to allow content to dictate, but capped relative to viewport */
    max-height: 600px;
}

.img-wrapper {
    width: 100%;
    height: auto;
    /* Allow auto height */
    aspect-ratio: 3/4;
    /* Enforce a portrait ratio that isn't too tall */
    max-height: 550px;
    /* Cap the sheer size */
    background: #e0e0e0;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow-xl, 0 25px 50px -12px rgba(0, 0, 0, 0.25));
    /* Deeper shadow */
}

.img-wrapper img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.about-image:hover .img-wrapper img {
    transform: scale(1.03);
    /* Subtle zoom on hover */
}

.experience-badge {
    position: absolute;
    bottom: 40px;
    /* Moved up slightly */
    right: -40px;
    /* Hanging off the edge */
    background: var(--white);
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-width: 140px;
    border-bottom: 4px solid var(--secondary-color);
    z-index: 2;
}

/* Footer Refinements */
footer {
    background: var(--dark-bg);
    color: rgba(255, 255, 255, 0.8);
    position: relative;
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand img {
    height: 50px;
    margin-bottom: 20px;
    /* If the logo is transparent PNG, we can use brightness/invert to make it white. 
       If it has a white bg, this needs to be removed or adjusted. 
       Assuming transparent PNG based on user input. */
    filter: brightness(0) invert(1);
    opacity: 0.9;
}

.footer-brand p {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
    max-width: 300px;
}

.footer-links h4,
.footer-contact h4 {
    color: var(--white);
    margin-bottom: 20px;
    font-size: 1.1rem;
    position: relative;
    display: inline-block;
    border: none;
    /* remove previous border */
}

.footer-links h4::after,
.footer-contact h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 30px;
    height: 2px;
    background: var(--secondary-color);
}

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

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    transition: 0.2s;
}

.footer-links a:hover {
    color: var(--secondary-color);
    padding-left: 0;
    /* Removed padding shift for cleaner look */
    text-decoration: underline;
    text-underline-offset: 4px;
}

.footer-contact li {
    display: flex;
    gap: 15px;
    margin-bottom: 18px;
    font-size: 0.95rem;
    align-items: flex-start;
}

.footer-contact li i {
    color: var(--secondary-color);
    margin-top: 4px;
    font-size: 1rem;
}

.footer-bottom {
    padding: 25px 0;
    text-align: center;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    border-top: none;
}

/* Responsive Fixes */
@media (max-width: 991px) {
    .two-col {
        flex-direction: column;
        gap: 50px;
    }

    .about-image {
        max-width: 100%;
        flex: none;
        width: 100%;
        max-height: 500px;
    }

    .img-wrapper {
        aspect-ratio: 16/9;
        max-height: 400px;
    }

    .experience-badge {
        right: 20px;
        bottom: -20px;
    }

    .footer-top {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }

    /* Hero Responsive */
    .hero {
        height: auto;
        min-height: 100vh;
        padding: 120px 0 80px;
        text-align: center;
    }

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

    .hero-content {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero-text {
        padding-right: 0;
        max-width: 100%;
    }

    .hero-subtitle {
        justify-content: center;
    }

    .hero-text h2 {
        font-size: 2.8rem;
    }

    .hero-buttons {
        justify-content: center;
    }

    /* Quick Access Responsive */
    .quick-access-wrapper {
        margin-top: 0;
        padding-bottom: 50px;
    }

    .quick-access-container {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 30px;
        text-align: center;
    }

    .qa-search h3 {
        text-align: center;
    }

    .qa-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 20px;
    }
}

@media (max-width: 576px) {

    /* Top Bar Hide on Mobile to save space */
    .top-bar {
        display: none;
    }

    .hero-text h2 {
        font-size: 2.2rem;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .btn {
        width: 100%;
    }

    .experience-badge {
        right: 10px;
        width: auto;
        min-width: 110px;
        padding: 15px;
    }

    .footer-top {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-brand {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .footer-links h4::after,
    .footer-contact h4::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-contact li {
        justify-content: center;
    }
}