:root {
    --mrg-green: #2e7d32;
    --mrg-dark: #1a1a1a;
    --mrg-light: #f8fbf8;
    --mrg-white: #ffffff;
}

body {
    font-family: 'Philosopher', sans-serif;
    background-color: var(--mrg-white);
    color: var(--mrg-dark);
    margin: 0;
    overflow-x: hidden;
}
html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}
/* --- NAVBAR --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1100;
    padding: 1.5rem 8%;
    transition: all 0.3s ease;
    /*box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);*/
}

.navbar.shrink {
    padding: 0.6rem 8%;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    background: white;
}

.navbar-brand img {
    height: 150px;
    transition: 0.3s;
}

.navbar.shrink .navbar-brand img {
    height: 70px;
}

.nav-link {
    margin-left: 2rem;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    color: var(--mrg-dark) !important;
    position: relative;
}

.nav-link::after {
    content: "";
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--mrg-green);
    transition: 0.3s;
}

.nav-link:hover::after {
    width: 100%;
}

.navbar-brand:hover img {
    transform: scale(1.05);
}

.nav-link {
    font-weight: 500;
    color: var(--mrg-dark) !important;
    margin-left: 2rem;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    position: relative;
}

.nav-link::after {
    content: "";
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--mrg-green);
    transition: 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* --- HUD WORKSPACE --- */
.main-infrastructure {
    padding: 150px 5% 60px;
    background: var(--mrg-light);
}

.map-workspace {
    position: relative;
    width: 100%;
    height: 60vh;
    min-height: 580px;
    background: white;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.07);
    border: 1px solid #eee;
}

#googleMap {
    width: 100%;
    height: 100%;
    border: 0;
}

.branch-info-hud {
    position: absolute;
    top: 30px;
    right: 30px;
    width: 340px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 30px;
    border-radius: 20px;
    z-index: 10;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid #f0f0f0;
    transition: 0.4s ease;
}

.branch-info-hud h2 {
    color: var(--mrg-green);
    font-weight: 700;
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.branch-info-hud p {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.5;
    margin-bottom: 20px;
}

.data-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #f4f4f4;
    font-size: 0.85rem;
}

.data-row span {
    color: #999;
}

.data-row b {
    color: var(--mrg-dark);
    font-weight: 700;
}

/* Navigation Dock */
.navigation-dock {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    padding: 8px;
    border-radius: 50px;
    display: flex;
    gap: 5px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    z-index: 10;
    border: 1px solid #eee;
}

.dock-btn {
    padding: 10px 20px;
    border-radius: 40px;
    cursor: pointer;
    transition: 0.3s;
    font-weight: 700;
    font-size: 0.85rem;
    color: #555;
    white-space: nowrap;
}

.dock-btn:hover {
    background: #f0f7f1;
    color: var(--mrg-green);
}

.dock-btn.active {
    background: var(--mrg-green);
    color: white;
}


@media (max-width: 991px) {
    .branch-info-hud {
        display: none;
    }

    .navigation-dock {
        width: 95%;
        overflow-x: auto;
        bottom: 15px;
    }

    .navbar-brand img {
        height: 60px;
        transition: 0.3s;
    }

    .navbar {
        background: white;
    }

    .bg-icon-watermark {
        display: none;
    }
}

.section-kicker {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--mrg-green);
    letter-spacing: 3px;
    text-transform: uppercase;
    display: block;
    margin-bottom: 0.8rem;
}

.section-title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 800;
    color: var(--mrg-dark);
    margin-bottom: 3rem;
}

.section-title span {
    color: var(--mrg-green);
}

/* Grid */
.offer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
}

.bg-icon-watermark {
    position: absolute;
    top: -5%;
    right: -5%;
    width: 35vw;
    opacity: 0.05;
    z-index: 0;
    animation: rotateIcon 120s linear infinite;
    pointer-events: none;
}

@keyframes rotateIcon {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

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

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.animate-fade {
    animation: fadeInUp 0.8s ease forwards;
    opacity: 0;
}

.animate-scale {
    animation: scaleIn 1s ease forwards;
    opacity: 0;
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

.delay-3 {
    animation-delay: 0.6s;
}

.delay-4 {
    animation-delay: 0.8s;
}

/*footer styles*/
.site-footer {
    background: #f6faf7; /* same as page background */
    color: #555;
    font-size: 15px;
    border-top: 1px solid #e0e0e0;
}

.site-footer .small {
    color: #888;
}

.flow-section {
    padding: 60px 5%;
    background: #ffffff;
    position: relative;
}

/* Container for the horizontal flow */
.flow-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    position: relative;
    max-width: 1200px;
    margin: 40px auto 0;
}

/* The modern connecting line */
.flow-line {
    position: absolute;
    top: 170px; /* Aligned with the middle of the video frame */
    left: 5%;
    right: 5%;
    height: 1px;
    background: linear-gradient(90deg, transparent, #e0e0e0 20%, #e0e0e0 80%, transparent);
    z-index: 1;
}

.flow-step {
    flex: 1;
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 0 10px;
}

/* Portrait Frame (464x832 ratio) */
.video-pod {
    width: 233px;
    height: 345px;
    aspect-ratio: 464 / 832;
    margin: 0 auto 20px;
    border-radius: 15px;
    overflow: hidden;
    background: #000;
    border: 3px solid white;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.flow-step:hover .video-pod {
    transform: scale(1.05);
    border-color: var(--mrg-green);
}

.video-pod video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Content styling */
.flow-step h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--mrg-dark);
    margin-bottom: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.flow-step h3::before {
    content: attr(data-step);
    font-size: 0.65rem;
    color: var(--mrg-green);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 5px;
}

.flow-step p {
    font-size: 0.8rem;
    color: #777;
    line-height: 1.4;
    max-width: 200px;
    margin: 0 auto;
}

/* Responsive adjustments */
@media (max-width: 991px) {
    .flow-line {
        display: none;
    }

    .flow-wrapper {
        flex-wrap: wrap;
        gap: 30px;
    }

    .flow-step {
        flex: 0 0 calc(50% - 15px);
    }
}

@media (max-width: 576px) {
    .flow-step {
        flex: 0 0 100%;
    }
}