/* ==================================
   CSS Variables & Resets
   ================================== */
:root {
    --primary-color: #065F46; /* Trusted Emerald */
    --primary-light: #059669;
    --primary-dark: #064E3B;
    --accent-color: #FBBF24; /* Warm Gold (amber-400), perfectly complements emerald */
    
    --text-main: #1e293b; /* Slate 800 */
    --text-muted: #64748b; /* Slate 500 */
    --text-light: #f8fafc; /* Slate 50 */
    
    --bg-main: #ffffff;
    --bg-light: #f1f5f9; /* Slate 100 */
    --bg-dark: #0f172a; /* Slate 900 */
    
    --border-color: #e2e8f0;
    
    --font-main: 'Outfit', sans-serif;
    
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-hover: 0 15px 30px -5px rgb(6 95 70 / 0.15);
    
    --border-radius: 12px;
    --transition-fast: 0.2s ease;
    --transition-subtle: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

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

h1, h2, h3, h4, h5, h6 {
    line-height: 1.2;
    font-weight: 700;
    color: var(--text-main);
}

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

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ==================================
   Buttons
   ================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition-subtle);
    border: 2px solid transparent;
}

.btn-sm {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
}

.btn-lg {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    box-shadow: 0 4px 14px 0 rgba(6, 95, 70, 0.39);
}

.btn-primary:hover {
    background-color: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(6, 95, 70, 0.23);
    color: white;
}

.btn-outline {
    background-color: transparent;
    border-color: white;
    color: white;
}

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

/* ==================================
   Typography Utilities
   ================================== */
.section-title {
    margin-bottom: 3rem;
}

.section-title.center {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.section-title h4 {
    color: var(--primary-color);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-main);
}

.section-title p {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 600px;
}

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

.section {
    padding: 6rem 0;
}

/* ==================================
   Navbar
   ================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: var(--transition-subtle);
    background: transparent;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    box-shadow: var(--shadow-sm);
}

.navbar.scrolled .logo,
.navbar.scrolled .nav-links a:not(.btn) {
    color: var(--text-main);
}

.navbar.scrolled .mobile-menu-btn {
    color: var(--text-main);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 1.5rem;
    font-weight: 400;
    color: white;
    z-index: 100;
}

.logo strong {
    font-weight: 800;
}

.logo-img {
    height: 50px;
    width: auto;
    object-fit: contain;
    transition: var(--transition-fast);
}

.navbar.scrolled .logo-img {
    height: 45px; /* Slightly smaller when scrolled */
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links a:not(.btn) {
    color: white;
    font-weight: 500;
    position: relative;
}

.nav-links a:not(.btn)::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-light);
    transition: var(--transition-fast);
}

.nav-links a:not(.btn):hover::after {
    width: 100%;
}

/* Mega Menu */
.nav-links {
    position: relative;
}

.nav-item-dropdown {
    position: static;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    cursor: pointer;
}

.dropdown-toggle i {
    font-size: 0.75rem;
    transition: transform 0.3s ease;
}

.mega-menu {
    position: absolute;
    top: 150%;
    left: 50%;
    transform: translateX(-50%) translateY(15px);
    width: 800px;
    max-width: 90vw;
    background: white;
    box-shadow: var(--shadow-lg);
    border-radius: var(--border-radius);
    display: flex;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

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

.nav-item-dropdown:hover .dropdown-toggle i {
    transform: rotate(180deg);
}

.mega-sidebar {
    width: 250px;
    background-color: var(--bg-light);
    padding: 1.5rem 0;
    border-right: 1px solid var(--border-color);
}

.sector-list {
    display: flex;
    flex-direction: column;
}

.sector-option {
    padding: 1rem 1.5rem;
    cursor: pointer;
    font-weight: 500;
    color: var(--text-muted);
    transition: all 0.2s ease;
    border-left: 4px solid transparent;
    font-size: 0.95rem;
}

.sector-option:hover, .sector-option.active {
    background-color: white;
    color: var(--primary-color);
    border-left-color: var(--primary-color);
}

.mega-content {
    flex: 1;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: white;
}

#sector-image-container {
    width: 100%;
    height: 100%;
    min-height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#mega-sector-img {
    max-width: 100%;
    max-height: 250px;
    object-fit: contain;
    transition: opacity 0.15s ease-in-out;
}

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    color: white;
    cursor: pointer;
}

/* ==================================
   Hero Section
   ================================== */
.hero {
    /* Using path to generated image from AI */
    background-image: url('file:///C:/Users/PERCY/.gemini/antigravity/brain/c238bf6e-be25-402e-b0b6-62409a0887db/cesal_hero_1773064871690.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    height: 100vh;
    min-height: 600px;
    position: relative;
    display: flex;
    align-items: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(6, 78, 59, 0.9) 0%, rgba(6, 95, 70, 0.6) 100%);
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    color: white;
    max-width: 800px;
    margin: 0 auto;
    padding-top: 5rem;
}

.badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(5px);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.hero-content h1 {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    color: white;
    animation: fadeInUp 1s ease-out;
}

.hero-content h1 span {
    color: var(--accent-color);
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    color: rgba(255, 255, 255, 0.9);
    animation: fadeInUp 1s ease-out 0.2s both;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    animation: fadeInUp 1s ease-out 0.4s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==================================
   About Us Section
   ================================== */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-image {
    position: relative;
}

.image-wrapper {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.image-wrapper:hover img {
    transform: scale(1.03);
}

.experience-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background-color: var(--primary-color);
    color: white;
    padding: 2rem;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 160px;
    height: 160px;
    box-shadow: 0 10px 25px rgba(6, 95, 70, 0.4);
    border: 6px solid white;
}

.experience-badge .number {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1;
}

.experience-badge .text {
    font-size: 0.85rem;
    text-align: center;
    font-weight: 500;
    margin-top: 0.2rem;
}

.about-text p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.feature-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.05rem;
    font-weight: 500;
}

.feature-list i {
    color: var(--primary-color);
    font-size: 1.2rem;
}

/* ==================================
   Services Section
   ================================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

.service-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 2.5rem 2rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: var(--transition-subtle);
    position: relative;
    overflow: hidden;
}

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

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

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    width: 65px;
    height: 65px;
    background-color: var(--bg-light);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    transition: var(--transition-fast);
}

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

.service-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.service-list {
    margin-top: 1rem;
    border-top: 1px solid var(--border-color);
    padding-top: 1rem;
}

.service-list li {
    position: relative;
    padding-left: 1.2rem;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

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

/* Special styling for the large studies card */
.service-card.featured {
    grid-column: 1 / -1; /* spans all columns */
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 2rem;
    align-items: center;
    background: linear-gradient(to right, white, var(--bg-light));
}

.service-card.featured .service-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem 2rem;
    border-top: none;
    padding-top: 0;
}

@media (max-width: 900px) {
    .service-card.featured {
        grid-template-columns: 1fr;
    }
}

/* ==================================
   CTA Section
   ================================== */
.cta-section {
    background-color: var(--primary-dark);
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

.cta-section::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

.cta-content {
    text-align: center;
    color: white;
    position: relative;
    z-index: 10;
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: white;
}

.cta-content p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
    max-width: 700px;
    margin: 0 auto 2rem;
}

.cta-content .btn-primary {
    background-color: var(--accent-color);
    color: var(--text-main);
}

.cta-content .btn-primary:hover {
    background-color: #fcd34d;
    box-shadow: 0 4px 14px 0 rgba(245, 158, 11, 0.4);
}

/* ==================================
   Footer
   ================================== */
.footer {
    background-color: var(--bg-dark);
    color: var(--text-light);
    padding: 5rem 0 0;
}

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

.footer-logo {
    margin-bottom: 1.5rem;
    display: inline-flex;
}

.footer-logo .logo-img {
    height: 60px; /* Slightly larger in footer */
}

.footer-info p {
    color: #94a3b8;
    margin-bottom: 1.5rem;
    max-width: 400px;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
}

.social-links a:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

.footer-links h3, .footer-contact h3 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: white;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.footer-links a {
    color: #94a3b8;
}

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

.footer-contact ul {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-contact li {
    display: flex;
    gap: 1rem;
    color: #94a3b8;
}

.footer-contact i {
    color: var(--primary-light);
    margin-top: 3px;
}

.footer-bottom {
    background-color: #020617;
    padding: 1.5rem 0;
    text-align: center;
    color: #475569;
    font-size: 0.9rem;
}

/* ==================================
   Responsive Design
   ================================== */
@media (max-width: 992px) {
    .about-grid {
        grid-template-columns: 1fr;
    }
    .experience-badge {
        right: 20px;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 3rem;
    }
    .hero-buttons {
        flex-direction: column;
    }
    .nav-links {
        display: none;
    }
    .mobile-menu-btn {
        display: block;
    }
    .navbar {
        background: rgba(255, 255, 255, 0.95);
        padding: 1rem 0;
    }
    .logo, .mobile-menu-btn {
        color: var(--text-main);
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .service-card.featured .service-list {
        grid-template-columns: 1fr;
    }
    
    .layout-grid {
        grid-template-columns: 1fr;
    }
    
    .clientes-sidebar {
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        padding-right: 0;
        padding-bottom: 2rem;
    }
    
    .image-showcase {
        min-height: 250px;
    }
}

/* ==================================
   Subpages Generic
   ================================== */
.page-header {
    padding: 10rem 0 5rem;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
    color: white;
    text-align: center;
}

.page-header h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    color: white;
}

.page-header p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin: 0 auto;
}

.active-link {
    color: var(--primary-color) !important;
}

.active-link::after {
    width: 100% !important;
}

/* ==================================
   Clientes Page Layout
   ================================== */
.section-clientes-layout {
    padding: 6rem 0;
    background-color: var(--bg-main);
}

.layout-grid {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 3rem;
    align-items: stretch;
}

.clientes-sidebar {
    background-color: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    height: fit-content;
}

.clientes-sidebar h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--primary-dark);
    border-bottom: 2px solid var(--bg-light);
    padding-bottom: 0.5rem;
}

.clientes-sector-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.sector-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    color: var(--text-muted);
    transition: all 0.2s ease;
    background-color: transparent;
    border: 1px solid transparent;
}

.sector-item i {
    font-size: 1.2rem;
    width: 25px;
    text-align: center;
    color: var(--text-muted);
    transition: all 0.2s ease;
}

.sector-item:hover {
    background-color: var(--bg-light);
    color: var(--primary-color);
}

.sector-item:hover i {
    color: var(--primary-color);
}

.sector-item.active {
    background-color: var(--primary-color);
    color: white;
    box-shadow: 0 4px 10px rgba(6, 95, 70, 0.2);
}

.sector-item.active i {
    color: white;
}

.clientes-content {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-showcase {
    width: 100%;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    overflow: hidden;
}

#cliente-sector-img {
    max-width: 100%;
    max-height: 450px;
    object-fit: contain;
    transition: opacity 0.2s ease-in-out;
}


