/* style.css */
:root {
    --primary-color: #004F71; /* Nexia usually uses deep blues */
    --primary-light: #007BB0;
    --secondary-color: rgb(91, 209, 215); /* Nexia Green/Cyan */
    --text-main: #1A1A1A;
    --text-muted: #666666;
    --bg-light: #F8F9FA;
    --bg-dark: #121212;
    --white: #FFFFFF;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --border-radius: 8px;
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.08);
}

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

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

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

ul {
    list-style: none;
}

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

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

.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mt-4 { margin-top: 1.5rem; }

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

.text-gradient {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

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

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

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

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

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

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

.btn-lg {
    padding: 16px 36px;
    font-size: 1.1rem;
}

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

/* Header & Top Bar */
.top-bar {
    background: var(--primary-color);
    color: var(--white);
    padding: 8px 0;
    font-size: 0.85rem;
}

.top-bar-container {
    display: flex;
    justify-content: flex-end;
}

.top-nav {
    display: flex;
    gap: 20px;
}

.top-nav a {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

.top-nav a:hover {
    color: var(--white);
    text-decoration: underline;
}

.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

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

.logo {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: -1px;
}

.logo span {
    color: var(--secondary-color);
}

.main-nav > ul {
    display: flex;
    gap: 20px;
    align-items: center;
}

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

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

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

.main-nav a.active {
    color: var(--primary-color);
}

/* Mega Menu */
.has-dropdown {
    position: static;
}

.mega-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--white);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    display: flex;
    justify-content: center;
    gap: 60px;
    padding: 40px 5%;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    border-top: 1px solid #eee;
}

.has-dropdown:hover .mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.mega-menu-column {
    min-width: 250px;
}

.mega-menu-column h4 {
    font-size: 1.1rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.mega-menu-column h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--secondary-color);
}

.mega-menu-column ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mega-menu-column a {
    color: var(--text-muted);
    font-weight: 400;
}

.mega-menu-column a:hover {
    color: var(--primary-light);
}

.mega-menu-column a::after {
    display: none;
}

/* Standard Sub Menu */
.menu-item-has-children {
    position: relative;
}

.sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 250px;
    background: var(--white);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    padding: 10px 0;
    margin: 0;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    border-top: 2px solid var(--primary-color);
    z-index: 1001; /* Asegurar que quede sobre otros elementos */
}

.menu-item-has-children:hover .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.sub-menu li {
    padding: 0;
}

.sub-menu a {
    display: block;
    padding: 10px 20px;
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--text-main);
    transition: var(--transition);
}

.sub-menu a::after {
    display: none !important;
}

.sub-menu a:hover {
    color: var(--primary-color);
    background: var(--bg-light);
}

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

/* Hero Section */
.hero-section {
    position: relative;
    padding-top: 150px;
    padding-bottom: 80px;
    background: #00323C;
    overflow: hidden;
}

.hero-layout {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 40px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-content {
    position: relative;
}

.hero-title {
    font-size: 3.25rem;
    font-weight: 300;
    line-height: 1.1;
    margin-bottom: 28px;
    animation: fadeInUp 1s ease both;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 600px;
    animation: fadeInUp 1s ease 0.2s both;
}

.hero-actions {
    display: flex;
    gap: 20px;
    animation: fadeInUp 1s ease 0.4s both;
}

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

.hero-image-wrapper {
    position: relative;
    z-index: 2;
    animation: fadeInUp 1s ease 0.6s both;
}

.hero-img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 25px 50px rgba(0,0,0,0.15);
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

/* Services */
.section-header {
    margin-bottom: 60px;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

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

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

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

.service-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border-bottom: 4px solid transparent;
}

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

.service-icon {
    font-size: 2.5rem;
    color: var(--primary-light);
    margin-bottom: 20px;
}

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

.service-card p {
    color: var(--text-muted);
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.service-link {
    color: var(--primary-color);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.service-link:hover {
    gap: 12px;
}

/* Industries Slider */
.recentIndustriesSlider {
    margin-top: 40px;
    position: relative;
}

.slide-item {
    margin: 0 10px;
    outline: none;
}

.industry-link {
    display: block;
    position: relative;
    height: 350px;
    border-radius: 15px;
    overflow: hidden;
    transition: border-radius 0.3s ease;
    text-decoration: none;
    color: inherit;
    /* Evita bugs de outline en slider */
    outline: none;
}

.industry-link:hover {
    border-radius: 0px 40px 0px 40px;
}

.industry-image {
    width: 100%;
    height: 100%; /* Toma todo el alto para que sea imagen de fondo */
    position: relative;
    overflow: hidden;
}

.industry-image::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.1) 50%, rgba(0,0,0,0.5) 100%);
    z-index: 1;
}

.industry-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 0;
    transition: transform 0.3s ease-out;
}

.industry-link:hover .industry-image img {
    transform: scale(1.1);
}

.industry-title {
    position: absolute;
    bottom: 25px; /* Pegado abajo de la imagen */
    left: 15px;
    color: var(--white);
    width: 90%;
    padding: 0;
    margin: 0;
    z-index: 2;
    font-size: 1.5rem;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

/* Slider Nav */
.recentIndustriesSlider .slide-nav-btn {
    position: absolute;
    top: -70px;
    right: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: transparent;
    border: 1.5px solid var(--primary-color);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    z-index: 10;
}
.recentIndustriesSlider .slide-nav-btn:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: scale(1.05);
}
.recentIndustriesSlider .slick-prev.slide-nav-btn {
    right: 55px; /* Deja espacio para el botón next */
}
.recentIndustriesSlider .slick-list {
    margin: 0 -10px; /* Compensa los 10px de margin del slide-item */
}

/* Network Stats */
.statBlock {
    margin-top: 40px;
}
.statBlock h3 {
    text-align: center;
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-bottom: 40px;
    font-weight: 600;
}
.statItems {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}
.statItems a {
    text-decoration: none;
    color: inherit;
    display: block;
}
.statItemOuter {
    background: #f9fbsc; /* Ligero tono corporativo */
    background: #fbfbfb;
    border: 1px solid #eaeaea;
    border-radius: 12px;
    padding: 50px 20px;
    text-align: center;
    position: relative;
    transition: var(--transition);
    overflow: hidden;
    height: 100%;
}
.statItemOuter:hover {
    background: var(--white);
    box-shadow: 0 15px 35px rgba(0,0,0,0.06);
    transform: translateY(-8px);
    border-color: var(--secondary-color);
}
.statNumber {
    font-size: 4rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
    line-height: 1;
    letter-spacing: -1px;
}
.statText {
    font-size: 1.15rem;
    color: var(--text-main);
    font-weight: 500;
    margin-bottom: 0;
}
.viewAll {
    display: inline-block;
    color: var(--secondary-color);
    font-weight: 600;
    margin-top: 20px;
    opacity: 0;
    transform: translateY(15px);
    transition: all 0.3s ease;
}
.hoverIcon {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 24px;
    opacity: 0;
    transform: translate(-10px, 10px);
    transition: all 0.3s ease;
}
.statItemOuter:hover .viewAll {
    opacity: 1;
    transform: translateY(0);
}
.statItemOuter:hover .hoverIcon {
    opacity: 1;
    transform: translate(0, 0);
}

@media (max-width: 992px) {
    .statItems {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 576px) {
    .statItems {
        grid-template-columns: 1fr;
    }
}

/* Contact Section (Get In Touch) */
.contact-section {
    background: #00323C;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.contact-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--primary-light) 0%, transparent 70%);
    opacity: 0.5;
    border-radius: 50%;
}

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 60px;
    align-items: flex-start;
    position: relative;
    z-index: 2;
}

.contact-content-left h2 {
    color: var(--white);
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.contact-form-wrapper {
    background: transparent;
}

.nexia-contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.nexia-contact-form .form-row {
    display: flex;
    gap: 20px;
}

.nexia-contact-form .form-group {
    display: flex;
    flex-direction: column;
}

.nexia-contact-form .half-width {
    flex: 1;
}

.nexia-contact-form .full-width {
    width: 100%;
}

.nexia-contact-form label {
    font-size: 1rem;
    margin-bottom: 8px;
    color: var(--white);
    font-weight: 500;
}

.nexia-contact-form .form-control {
    padding: 12px 15px;
    border: none;
    border-radius: 4px;
    background: var(--white);
    color: var(--text-main);
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition);
}

.nexia-contact-form .form-control:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 185, 185, 0.4);
}

.nexia-contact-form textarea.form-control {
    resize: vertical;
}

select.form-control {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23000%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
    background-repeat: no-repeat;
    background-position: right 15px top 50%;
    background-size: 12px auto;
}

.checkbox-group {
    margin-top: 10px;
}

.consent-text {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.8);
    margin-bottom: 15px;
    line-height: 1.4;
}

.checkbox-container {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    cursor: pointer;
    color: var(--white);
}

.checkbox-container input {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.checkbox-container a {
    color: var(--secondary-color);
    text-decoration: underline;
}

.submit-btn {
    background: var(--secondary-color);
    color: var(--text-main);
    border: none;
    padding: 14px 35px;
    font-size: 1.1rem;
    cursor: pointer;
    border-radius: 30px;
    transition: var(--transition);
    font-weight: 600;
    margin-top: 10px;
}

.submit-btn:hover {
    background: var(--white);
    transform: translateY(-2px);
}

@media (max-width: 992px) {
    .contact-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}
@media (max-width: 768px) {
    .nexia-contact-form .form-row {
        flex-direction: column;
    }
}

/* We Are Nexia Section */
.we-are-nexia-section {
    display: flex;
    min-height: 480px;
    overflow: hidden;
}

.we-are-nexia-inner {
    display: flex;
    width: 100%;
    min-height: 480px;
}

.we-are-nexia-text {
    background: var(--secondary-color);
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 80px 60px;
    color: var(--white);
}

.we-are-tag {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255,255,255,0.7);
    margin-bottom: 18px;
}

.we-are-nexia-text h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--white);
    line-height: 1.35;
    margin-bottom: 36px;
    max-width: 480px;
}

.we-are-nexia-buttons {
    display: flex;
    flex-direction: column;
    gap: 14px;
    align-items: flex-start;
}

.btn-we-are-outline {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--white);
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    padding-bottom: 4px;
    border-bottom: 2px solid rgba(255,255,255,0.5);
    transition: var(--transition);
}

.btn-we-are-outline:hover {
    border-bottom-color: var(--white);
    gap: 16px;
}

.btn-we-are-outline::after {
    content: '→';
    font-size: 1.1rem;
}

.we-are-nexia-img {
    flex: 1;
    min-height: 480px;
    overflow: hidden;
}

.we-are-nexia-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 900px) {
    .we-are-nexia-inner {
        flex-direction: column;
    }
    .we-are-nexia-text {
        padding: 50px 30px;
    }
    .we-are-nexia-img {
        min-height: 300px;
    }
}

/* Insights Section */
.insight-card {
    background: var(--white);
    border-radius: 10px;
    box-shadow: var(--shadow-md);
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.insight-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.12);
}

.insight-card-body {
    padding: 20px 24px 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.insight-tag {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--secondary-color);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 12px;
}

.insight-card-body h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 10px;
    line-height: 1.4;
}

.insight-card-body h3 a {
    color: var(--text-main);
}

.insight-card-body h3 a:hover {
    color: var(--primary-color);
}

.insight-card-body p {
    font-size: 0.9rem;
    color: var(--text-muted);
    flex: 1;
    margin-bottom: 16px;
    line-height: 1.6;
}

.insight-read-more {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary-color);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

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

@media (max-width: 900px) {
    .insights-grid {
        grid-template-columns: 1fr 1fr !important;
    }
}

@media (max-width: 600px) {
    .insights-grid {
        grid-template-columns: 1fr !important;
    }
}

/* Page Header */
.page-header {
    background: var(--primary-color);
    color: var(--white);
    padding: 160px 0 80px;
    text-align: center;
}

.page-header h1 {
    color: var(--white);
    font-size: 3rem;
    margin-bottom: 10px;
}

.page-header p {
    font-size: 1.2rem;
    opacity: 0.9;
}

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

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

.about-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.stat-item {
    background: var(--white);
    padding: 30px;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.stat-item:nth-child(3) {
    grid-column: span 2;
}

.stat-number {
    display: block;
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 600;
}

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

.contact-info {
    background: var(--white);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
}

.info-item {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

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

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

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

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-main);
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

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

.alert {
    padding: 15px;
    border-radius: var(--border-radius);
    margin-bottom: 20px;
    font-weight: 500;
}

.alert-success {
    background: #D4EDDA;
    color: #155724;
    border: 1px solid #C3E6CB;
}

.alert-error {
    background: #F8D7DA;
    color: #721C24;
    border: 1px solid #F5C6CB;
}

/* Footer */
.main-footer {
    background: var(--secondary-color);
    color: #00323C;
    padding-top: 80px;
}

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

.footer-logo {
    color: var(--white);
    margin-bottom: 20px;
    display: inline-block;
}

.brand-column p {
    margin-bottom: 20px;
    font-size: 0.95rem;
    opacity: 0.8;
}

.social-links {
    display: flex;
    gap: 15px;
}

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

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

.footer-column h3 {
    color: var(--white);
    font-size: 1.2rem;
    margin-bottom: 25px;
}

.footer-column ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-column a:hover {
    color: var(--secondary-color);
}

.footer-column p {
    margin-bottom: 20px;
    opacity: 0.8;
}

.footer-bottom {
    background: #00323C;
    padding: 16px 0;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.7);
}

.footer-bottom-inner {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    gap: 10px;
}

.footer-bottom-inner p {
    margin: 0;
}

.footer-legal-links {
    list-style: none;
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-start;
    align-items: center;
    gap: 0;
    padding: 0;
    margin: 0;
    overflow: hidden;
}

.footer-legal-links li {
    display: flex;
    align-items: center;
}

.footer-legal-links li:not(:last-child)::after {
    content: "|";
    margin: 0 8px;
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.75rem;
}

.footer-legal-links a {
    color: rgba(255,255,255,0.7);
    font-size: 0.75rem;
    text-decoration: none;
    transition: var(--transition);
    white-space: nowrap;
}

.footer-legal-links a:hover {
    color: var(--white);
    text-decoration: underline;
}

@media (min-width: 992px) {
    .footer-bottom-inner {
        flex-direction: column;
    }
}
/* Responsive */
@media (max-width: 992px) {
    .hero-layout, .about-grid, .contact-grid, .cta-layout { grid-template-columns: 1fr; }
    .hero-title { font-size: 3.5rem; }
    .footer-container { grid-template-columns: 1fr 1fr; }
    .hero-section { padding-top: 120px; text-align: center; }
    .hero-actions { justify-content: center; }
}

@media (max-width: 768px) {
    .main-nav, .header-actions { display: none; }
    .mobile-menu-toggle { display: block; }
    .hero-title { font-size: 2.8rem; }
    .hero-actions { flex-direction: column; }
    .footer-container { grid-template-columns: 1fr; }
}

/* ============================================
   SERVICES SECTION — Nexia Style (with images)
   ============================================ */
.services-tagline {
    font-size: 1.15rem;
    font-weight: 400;
    color: var(--text-muted);
    margin-bottom: 8px;
    letter-spacing: 0.01em;
}

.services-grid-nexia {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.service-card-nexia {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    position: relative;
    overflow: hidden;
    background: #fff;
    transition: var(--transition);
    border: 1px solid #e8edf0;
}

.service-card-nexia:not(:last-child) {
    border-right: none;
}

.service-card-img {
    width: 100%;
    height: 220px;
    overflow: hidden;
    flex-shrink: 0;
}

.service-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    display: block;
}

.service-card-nexia:hover .service-card-img img {
    transform: scale(1.06);
}

.service-card-body {
    padding: 28px 26px 32px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.service-card-body h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 14px;
}

.service-card-body p {
    font-size: 0.92rem;
    color: var(--text-muted);
    line-height: 1.65;
    flex: 1;
    margin-bottom: 20px;
}

.service-card-link {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: gap 0.25s ease;
}

.service-card-nexia:hover .service-card-link {
    gap: 12px;
}

.service-card-nexia:hover {
    box-shadow: 0 20px 45px rgba(0, 79, 113, 0.15);
    z-index: 1;
    transform: translateY(-4px);
}

@media (max-width: 1024px) {
    .services-grid-nexia {
        grid-template-columns: repeat(2, 1fr);
    }
    .service-card-nexia:nth-child(2) {
        border-right: 1px solid #e8edf0;
    }
    .service-card-nexia:nth-child(odd) {
        border-right: none;
    }
}

@media (max-width: 600px) {
    .services-grid-nexia {
        grid-template-columns: 1fr;
    }
    .service-card-nexia {
        border-right: 1px solid #e8edf0 !important;
    }
    .service-card-img {
        height: 180px;
    }
}
