@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Inter:wght@400;500;600&display=swap');

:root {
    --primary-color: #10b981;
    --secondary-color: #047857;
    --accent-color: #f59e0b;
    --dark-bg: #0f172a;
    --dark-surface: #1e293b;
    --light-bg: #f8fafc;
    --surface-color: #ffffff;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --border-color: rgba(226, 232, 240, 0.8);
    --border-light: rgba(255, 255, 255, 0.2);
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.05);
}

html, body {
    font-family: 'Inter', sans-serif;
    background-color: var(--light-bg);
    color: var(--text-main);
    overflow-x: hidden;
    width: 100%;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6, .brand-font {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.text-gradient {
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.bg-gradient-custom {
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    color: white;
}
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-light);
    box-shadow: var(--glass-shadow);
}
.hover-float {
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
}
.hover-float:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}
.section-padding { padding: 100px 0; }
.bg-light-gray { background-color: var(--light-bg); }
.bg-white { background-color: var(--surface-color); }

.navbar-custom {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.4s ease;
    padding: 15px 0;
}
.navbar-custom.scrolled {
    padding: 10px 0;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}
.navbar-custom .nav-link {
    color: var(--text-main) !important;
    font-family: 'Outfit', sans-serif;
    font-weight: 500;
    font-size: 1.05rem;
    padding: 10px 20px;
    transition: 0.3s;
    position: relative;
    overflow: hidden;
}
.navbar-custom .nav-link:hover, .navbar-custom .nav-link.active {
    color: var(--primary-color) !important;
}
.navbar-custom .nav-link::before {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 100%; height: 3px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    transform: translateX(-100%);
    transition: transform 0.4s ease;
    border-radius: 3px;
}
.navbar-custom .nav-link:hover::before, .navbar-custom .nav-link.active::before { 
    transform: translateX(0);
}
.navbar-brand h3 {
    font-size: 1.8rem;
    margin: 0;
}

.btn-custom {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: #fff !important;
    border: none;
    border-radius: 50px;
    padding: 12px 32px;
    font-weight: 600;
    font-family: 'Outfit', sans-serif;
    letter-spacing: 0.5px;
    transition: all 0.4s ease;
    box-shadow: 0 10px 20px rgba(16, 185, 129, 0.2);
    position: relative;
    z-index: 1;
    overflow: hidden;
}
.btn-custom::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    z-index: -1;
    transition: opacity 0.4s ease;
    opacity: 0;
    border-radius: 50px;
}
.btn-custom:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 25px rgba(16, 185, 129, 0.3);
}
.btn-custom:hover::before {
    opacity: 1;
}
.btn-outline-custom {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background: transparent;
    border-radius: 50px;
    padding: 10px 30px;
    font-weight: 600;
    font-family: 'Outfit', sans-serif;
    transition: all 0.4s ease;
}
.btn-outline-custom:hover {
    background: var(--primary-color);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(16, 185, 129, 0.2);
}

.hero-slider {
    position: relative;
    height: 70vh;
    max-height: 650px;
    min-height: 450px;
    overflow: hidden;
}
.hero-slider::after {
    content: '';
    position: absolute;
    bottom: -50px;
    left: 0;
    width: 100%;
    height: 100px;
    background: var(--light-bg);
    transform: skewY(-2deg);
    z-index: 5;
}
.hero-slider .carousel-item {
    height: 100%;
}
.hero-slider img {
    object-fit: cover;
    height: 100%;
    width: 100%;
    transform: scale(1.05);
    transition: transform 10s ease;
}
.hero-slider .carousel-item.active img {
    transform: scale(1);
}
.hero-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.8), rgba(4, 120, 87, 0.6));
    z-index: 1;
}
.hero-caption {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    color: #fff;
    transform: none;
    text-align: left;
}
.hero-caption h1 {
    font-size: 4.5rem;
    font-weight: 800;
    text-shadow: 0 4px 20px rgba(0,0,0,0.3);
    margin-bottom: 24px;
    line-height: 1.1;
}
.hero-caption p {
    font-size: 1.4rem;
    font-weight: 300;
    margin-bottom: 40px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
    opacity: 0.9;
    font-family: 'Inter', sans-serif;
}
.carousel-control-prev, .carousel-control-next {
    z-index: 6;
    width: 60px;
    height: 60px;
    background: var(--glass-bg);
    backdrop-filter: blur(5px);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    margin: 0 20px;
    opacity: 0;
    transition: all 0.3s;
}
.hero-slider:hover .carousel-control-prev,
.hero-slider:hover .carousel-control-next {
    opacity: 0.8;
}
.carousel-control-prev:hover, .carousel-control-next:hover {
    opacity: 1;
    background: #fff;
}
.carousel-control-prev-icon, .carousel-control-next-icon {
    filter: brightness(0) saturate(100%) invert(35%) sepia(87%) saturate(541%) hue-rotate(113deg) brightness(97%) contrast(92%);
}

.page-header {
    background: linear-gradient(135deg, var(--dark-bg), var(--secondary-color));
    padding: 180px 0 100px;
    text-align: center;
    color: #fff;
    position: relative;
    overflow: hidden;
}
.page-header::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: url('data:image/svg+xml,%3Csvg width="100" height="100" viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"%3E%3Cpath d="M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z" fill="rgba(255,255,255,0.05)" fill-rule="evenodd"/%3E%3C/svg%3E');
}
.page-header::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 50px;
    background: var(--light-bg);
    clip-path: polygon(0 100%, 100% 100%, 100% 0, 0 100%);
}
.page-header h1 {
    font-weight: 800;
    font-size: 3.5rem;
    margin-bottom: 15px;
    position: relative;
    z-index: 2;
}
.page-header .lead {
    opacity: 0.9;
    font-weight: 400;
    position: relative;
    z-index: 2;
    font-size: 1.25rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 15px;
    text-align: center;
    color: var(--text-main);
    position: relative;
}
.section-title-wrapper {
    text-align: center;
    margin-bottom: 60px;
}
.section-subtitle {
    color: var(--primary-color);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
    margin-bottom: 10px;
    display: block;
}

.custom-card {
    background: var(--surface-color);
    border: 1px solid rgba(0,0,0,0.03);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    height: 100%;
    box-shadow: 0 10px 30px rgba(0,0,0,0.04);
    position: relative;
}
.custom-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 45px rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.2);
}
.custom-card img {
    height: 240px;
    object-fit: cover;
    width: 100%;
    border-bottom: 1px solid rgba(0,0,0,0.03);
    transition: transform 0.5s ease;
}
.custom-card:hover img {
    transform: scale(1.05);
}
.card-img-wrapper {
    overflow: hidden;
    position: relative;
}
.custom-card .card-body {
    padding: 35px 30px;
    background: var(--surface-color);
    position: relative;
    z-index: 2;
}
.custom-card h5 {
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--text-main);
    margin-bottom: 15px;
}
.custom-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.icon-box {
    width: 70px;
    height: 70px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 20px;
    background: linear-gradient(135deg, rgba(16,185,129,0.1), rgba(16,185,129,0.2));
    color: var(--primary-color);
    transition: all 0.3s;
}
.glass-stat-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.8);
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.05);
}

.table-custom {
    background: var(--surface-color);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0,0,0,0.04);
    border-collapse: separate;
    border-spacing: 0;
}
.table-custom th {
    background: var(--dark-bg);
    color: #fff;
    font-weight: 600;
    padding: 20px;
    font-family: 'Outfit', sans-serif;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    border: none;
}
.table-custom td {
    padding: 20px;
    vertical-align: middle;
    color: var(--text-main);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    font-weight: 500;
}
.table-custom tbody tr {
    transition: all 0.3s ease;
}
.table-custom tbody tr:hover {
    background-color: rgba(16, 185, 129, 0.03);
    transform: scale(1.01);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border-radius: 10px;
}
.table-custom tbody tr:last-child td {
    border-bottom: none;
}

.modal-content {
    border: none;
    border-radius: 24px;
    box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}
.modal-header {
    border-bottom: 1px solid rgba(0,0,0,0.05);
    padding: 25px 30px;
    background: var(--light-bg);
}
.modal-title {
    font-weight: 800;
    color: var(--text-main);
    font-size: 1.5rem;
}
.modal-body {
    padding: 30px;
}
.modal-footer {
    border-top: 1px solid rgba(0,0,0,0.05);
    padding: 20px 30px;
    background: var(--light-bg);
}

@media (max-width: 991.98px) {
    .navbar-custom {
        background: rgba(255, 255, 255, 0.98);
    }
    .hero-caption h1 {
        font-size: 3rem;
    }
    .page-header {
        padding: 150px 0 80px;
    }
    .page-header h1 {
        font-size: 2.5rem;
    }
}

/* NEW FOOTER SYSTEM */
.footer-cta-wrapper {
    position: relative;
    z-index: 10;
    margin-bottom: -60px; /* Pulls footer up */
}
.footer-cta {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 24px;
    padding: 40px 50px;
    box-shadow: 0 20px 40px rgba(16, 185, 129, 0.2);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.footer-cta h3 {
    color: white;
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 5px;
    font-family: 'Outfit', sans-serif;
}
.footer-cta p {
    color: rgba(255,255,255,0.9);
    margin: 0;
    font-size: 1.1rem;
}
.footer-cta-btn {
    background: white;
    color: var(--primary-color) !important;
    padding: 15px 35px;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    font-family: 'Outfit', sans-serif;
    transition: all 0.3s ease;
    white-space: nowrap;
}
.footer-cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

.footer-new {
    background: #0f172a;
    padding: 130px 0 30px;
    color: #94a3b8;
    position: relative;
    font-family: 'Inter', sans-serif;
}
.footer-new::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: radial-gradient(circle at top right, rgba(16, 185, 129, 0.05), transparent 50%),
                radial-gradient(circle at bottom left, rgba(16, 185, 129, 0.03), transparent 50%);
    pointer-events: none;
}
.footer-brand {
    font-family: 'Outfit', sans-serif;
    font-size: 1.8rem;
    font-weight: 800;
    color: white;
    display: flex;
    align-items: center;
}
.footer-title-new {
    color: white;
    font-family: 'Outfit', sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}
.footer-title-new::after {
    content: '';
    position: absolute;
    left: 0; bottom: 0;
    width: 30px; height: 3px;
    background: var(--primary-color);
    border-radius: 3px;
}
.footer-link-new {
    display: block;
    color: #94a3b8;
    text-decoration: none;
    margin-bottom: 12px;
    transition: all 0.3s ease;
}
.footer-link-new:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}
.footer-contact-row {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
}
.footer-contact-icon {
    width: 40px; height: 40px;
    background: rgba(16, 185, 129, 0.1);
    color: var(--primary-color);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-right: 15px;
    font-size: 1.2rem;
}
.social-links-new {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}
.social-links-new a {
    width: 45px; height: 45px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
}
.social-links-new a:hover {
    background: var(--primary-color);
    transform: translateY(-5px);
}
.footer-bottom-new {
    border-top: 1px solid rgba(255,255,255,0.05);
    margin-top: 60px;
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

@media (max-width: 991.98px) {
    .footer-cta {
        flex-direction: column;
        text-align: center;
        padding: 30px;
    }
    .footer-cta-text { margin-bottom: 20px; }
    .footer-bottom-new {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
}

/* Custom Accordion (Dark Theme) */
.custom-accordion .accordion-button:not(.collapsed) {
    background-color: transparent !important;
    color: var(--primary-color) !important;
    box-shadow: none;
}
.custom-accordion .accordion-button::after {
    filter: invert(1) grayscale(100%) brightness(200%);
}
.custom-accordion .accordion-button:not(.collapsed)::after {
    filter: invert(50%) sepia(85%) saturate(375%) hue-rotate(107deg) brightness(92%) contrast(89%); /* Matches --primary-color #10b981 */
}
.custom-accordion .accordion-item {
    border: none;
}

/* Table Hover Effect */
.hover-bg-light:hover {
    background-color: rgba(16, 185, 129, 0.04) !important;
}

/* Mobile Bottom Bar */
.mobile-bottom-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 1050;
    box-shadow: 0 -5px 20px rgba(0,0,0,0.15);
    height: 65px;
}
.btn-mobile-call {
    background-color: #0f172a;
    transition: background-color 0.3s;
}
.btn-mobile-call:hover {
    background-color: #1e293b;
}
.btn-mobile-whatsapp {
    background-color: #25D366;
    transition: background-color 0.3s;
}
.btn-mobile-whatsapp:hover {
    background-color: #1ebc59;
}
/* Add padding to body on mobile so content doesn't hide behind the bar */
@media (max-width: 991.98px) {
    body {
        padding-bottom: 65px;
    }
}
