/* ===================== ROOT VARIABLES ===================== */
:root {
    --primary: #2563eb;
    --primary-soft: rgba(37, 99, 235, 0.08);
    --dark: #0f172a;
    --dark2: #1e293b;
    --light: #f8fafc;
    --gray: #6b7280;
    --radius-lg: 1.4rem;
    --radius-md: 0.9rem;
    --shadow: 0 18px 40px rgba(0, 0, 0, 0.09);
}

/* ===================== GLOBAL ===================== */
body {
    font-family: "Segoe UI", Roboto, sans-serif;
    background: #f4f5fb;
    margin: 0;
    color: var(--dark);
}

/* Helpers */
.shadow-soft {
    box-shadow: var(--shadow);
}

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
}

.section-title {
    font-weight: 800;
    color: var(--dark);
}

.section-subtitle {
    font-size: 0.92rem;
    color: var(--gray);
}

/* ===================== NAVBAR ===================== */
.navbar {
    background: #fff;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
}

.navbar-brand img {
    height: 40px;
}

.navbar-nav .nav-link {
    margin-left: 1rem;
    font-weight: 500;
    color: var(--dark2);
    position: relative;
}

.navbar-nav .nav-link:hover {
    color: var(--primary);
}

.navbar-nav .nav-link.active {
    color: var(--primary);
    font-weight: 600;
}

/* ===================== BUTTONS ===================== */
.btn-whatsapp {
    background: #22c55e;
    color: #fff !important;
    border-radius: 50px;
    padding: 0.45rem 1.2rem;
    font-weight: 600;
}
.btn-whatsapp:hover {
    background: #16a34a;
}

.btn-outline-light {
    border-radius: 50px;
}

/* ===================== HERO ===================== */
.hero-section {
    padding: 5rem 0 4rem;
    background: linear-gradient(135deg, #1e3a8a, #0f172a);
    color: #fff;
}

.hero-slider {
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.hero-slider img {
    height: 360px;
    object-fit: cover;
}

.hero-title {
    font-size: 2.3rem;
    font-weight: 800;
}

.hero-subtitle {
    color: #e5e7eb;
    max-width: 480px;
}

/* ===================== LANGUAGE HIGHLIGHT ===================== */
.lang-highlight {
    background: linear-gradient(120deg, #0ea5e9, #2563eb, #0f172a);
    color: #fff;
    border-radius: var(--radius-lg);
    padding: 1.6rem 1.8rem;
    position: relative;
    overflow: hidden;
}
.lang-highlight::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.08), transparent 45%);
    pointer-events: none;
}
.lang-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    padding: 0.35rem 0.9rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}
.tag-pill {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #fff;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.9rem;
}
.lang-visual {
    position: relative;
    min-height: 210px;
    min-width: 260px;
    border-radius: var(--radius-lg);
    background-size: cover;
    background-position: center;
    overflow: hidden;
}
.lang-visual-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.6));
}
.lang-visual-text {
    position: absolute;
    inset: 0;
    padding: 1.1rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    color: #fff;
}

/* ===================== SERVICE CARDS ===================== */
.service-card {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 1.4rem;
    border: 1px solid #e5e7eb;
    box-shadow: var(--shadow);
    transition: 0.25s ease;
}

.service-card:hover {
    transform: translateY(-5px);
}

.icon-round {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--primary-soft);
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--primary);
    font-size: 1.1rem;
}

/* ===================== WHY BOX ===================== */
.why-box {
    background: #fff;
    border-radius: var(--radius-md);
    padding: 1.2rem;
    border: 1px solid #e5e7eb;
    transition: 0.25s ease;
}

.why-box:hover {
    background: var(--primary-soft);
}

/* ===================== ABOUT BOX ===================== */
.about-box {
    background: #fff;
    border-radius: var(--radius-md);
    padding: 1.2rem;
    border: 1px solid #e5e7eb;
    box-shadow: var(--shadow);
}

/* ===================== CONTACT BOX ===================== */
.contact-box {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 1.4rem;
    border: 1px solid #e5e7eb;
    box-shadow: var(--shadow);
}

/* ===================== MAP ===================== */
.map-wrapper {
    border-radius: var(--radius-lg);
    overflow: hidden;
}

/* ===================== IMAGE STACK ===================== */
.image-stack {
    position: relative;
    display: inline-block;
}
.stack-main {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}
.stack-secondary {
    position: absolute;
    bottom: -18px;
    right: -18px;
    width: 55%;
    background: #fff;
    border-radius: var(--radius-md);
    padding: 0.35rem;
}
.stack-caption {
    position: absolute;
    left: 12px;
    bottom: 12px;
    background: rgba(37, 99, 235, 0.9);
    color: #fff;
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 700;
}

/* ===================== FEATURE TILES ===================== */
.feature-tile {
    position: relative;
    min-height: 170px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background-size: cover;
    background-position: center;
}
.feature-tile-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.08), rgba(15, 23, 42, 0.65));
}
.feature-tile-content {
    position: absolute;
    inset: 0;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    color: #fff;
    font-weight: 700;
}

/* ===================== BLOG CARDS ===================== */
.blog-card {
    background: #fff;
    border-radius: var(--radius-lg);
    border: 1px solid #e5e7eb;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}
.blog-image {
    width: 100%;
    height: 210px;
    object-fit: cover;
}
.blog-body {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}
.badge-soft {
    background: var(--primary-soft);
    color: var(--primary);
    padding: 0.3rem 0.7rem;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.9rem;
}

/* ===================== GALLERY ===================== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 1rem;
}
.gallery-card {
    position: relative;
    min-height: 200px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background-size: cover;
    background-position: center;
}
.gallery-card.tall {
    min-height: 280px;
}
.gallery-card.wide {
    grid-column: span 2;
}
.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.55));
}
.gallery-text {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1rem;
    color: #fff;
    font-weight: 700;
}

/* ===================== FOOTER ===================== */
.site-footer {
    background: #0f172a;
    color: #cbd5e1;
}

.site-footer .footer-link {
    color: #cbd5e1;
}
.site-footer .footer-link:hover {
    color: #fff;
}

/* ===================== ANIMATION ===================== */
.fade-section {
    opacity: 1;
    transform: none;
    transition: all 0.6s ease-out;
}
.fade-section.visible {
    opacity: 1;
    transform: none;
}

/* ===================== MOBILE ===================== */
@media (max-width: 768px) {
    .hero-title {
        font-size: 1.9rem;
    }

    .hero-slider img {
        height: 260px;
    }

    .stack-secondary {
        position: relative;
        bottom: auto;
        right: auto;
        width: 90%;
        margin-top: 1rem;
    }

    .gallery-card.wide {
        grid-column: span 1;
    }
}
