html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', system-ui, sans-serif;
}

/* Hero */
.hero-section {
    color: #ffffff;
}

.hero-bg {
    background:
        radial-gradient(ellipse 80% 60% at 70% 20%, rgba(0, 143, 165, 0.3) 0%, transparent 60%),
        radial-gradient(ellipse 60% 50% at 20% 80%, rgba(0, 69, 165, 0.25) 0%, transparent 60%),
        linear-gradient(160deg, #002d6e 0%, #003d8f 35%, #008FA5 70%, #006b8a 100%);
}

.hero-bg-photo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.12;
    pointer-events: none;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(105deg, rgba(0, 35, 90, 0.92) 0%, rgba(0, 45, 110, 0.82) 45%, rgba(0, 100, 130, 0.65) 100%);
    pointer-events: none;
}

.hero-pattern {
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    margin-bottom: 1.5rem;
}

.hero-title {
    font-size: clamp(2rem, 5vw, 3.75rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
    color: #ffffff;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.35);
}

.hero-subtitle {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.92);
    margin-bottom: 2rem;
    line-height: 1.7;
    max-width: 36rem;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.25);
}

.hero-stat-card {
    background: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(12px);
    border-radius: 1rem;
    padding: 1rem;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Navbar */
.navbar-hero {
    background: rgba(0, 35, 90, 0.75);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.navbar-hero .nav-links a {
    color: rgba(255, 255, 255, 0.92);
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

.navbar-hero .nav-links a:hover {
    color: #D99E5C;
}

.navbar-hero #mobile-menu-btn {
    color: #ffffff;
}

.nav-scrolled {
    background: rgba(255, 255, 255, 0.97) !important;
    box-shadow: 0 4px 24px rgba(0, 69, 165, 0.1);
    border-bottom-color: transparent;
}

#navbar.nav-scrolled .nav-links a {
    color: #374151;
    text-shadow: none;
}

#navbar.nav-scrolled .nav-links a:hover { color: #008FA5; }
#navbar.nav-scrolled #mobile-menu-btn { color: #374151; }

/* Cards */
.card-modern {
    background: white;
    border-radius: 1.25rem;
    border: 1px solid rgba(0, 69, 165, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.stat-card {
    background: white;
    border-radius: 1.25rem;
    padding: 1.5rem;
    border: 1px solid rgba(0, 69, 165, 0.08);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #008FA5, #0045A5);
}

.services-scroll {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.services-scroll::-webkit-scrollbar {
    display: none;
}

.section-badge {
    display: inline-block;
    background: rgba(0, 143, 165, 0.12);
    color: #007a8f;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.375rem 1rem;
    border-radius: 9999px;
    margin-bottom: 0.75rem;
}

.section-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
    color: #0045A5;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.btn-primary {
    background: linear-gradient(135deg, #008FA5, #0045A5);
    color: white;
    padding: 0.875rem 1.75rem;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 0.9375rem;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 16px rgba(0, 69, 165, 0.3);
    text-decoration: none;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 69, 165, 0.4);
    color: white;
}

.btn-whatsapp {
    background: #25D366;
    color: white;
    padding: 0.875rem 1.75rem;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 0.9375rem;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.35);
    text-decoration: none;
}

.btn-whatsapp:hover {
    background: #1ebe57;
    transform: translateY(-2px);
    color: white;
}

.btn-outline {
    border: 2px solid rgba(255, 255, 255, 0.85);
    color: white;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
    padding: 0.875rem 1.75rem;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 0.9375rem;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.btn-outline:hover {
    background: white;
    color: #0045A5;
    border-color: white;
}

.whatsapp-float {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 50;
    animation: pulse-wa 2s infinite;
}

@keyframes pulse-wa {
    0%, 100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5); }
    50% { box-shadow: 0 0 0 12px rgba(37, 211, 102, 0); }
}

.mobile-menu {
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

.mobile-menu.open {
    transform: translateX(0);
}

.testimonial-card {
    background: white;
    border-radius: 1.25rem;
    padding: 1.75rem;
    border: 1px solid rgba(0, 69, 165, 0.08);
    position: relative;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 4rem;
    line-height: 1;
    color: rgba(0, 143, 165, 0.12);
    font-family: Georgia, serif;
}

.branch-card {
    background: white;
    border-radius: 1.25rem;
    overflow: hidden;
    border: 1px solid rgba(0, 69, 165, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.branch-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 32px rgba(0, 69, 165, 0.1);
}

.article-card {
    background: white;
    border-radius: 1.25rem;
    overflow: hidden;
    border: 1px solid rgba(0, 69, 165, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.article-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 32px rgba(0, 69, 165, 0.1);
}

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

.animate-fade-up {
    animation: fadeUp 0.6s ease forwards;
}

.gradient-text {
    background: linear-gradient(135deg, #008FA5, #0045A5);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.placeholder-img {
    object-fit: cover;
    background: linear-gradient(135deg, #e8f4f6 0%, #d0e8f0 100%);
}

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* App promotion section */
.phone-frame {
    width: 280px;
    background: #1a1a1a;
    border-radius: 40px;
    padding: 12px;
    box-shadow: 0 32px 64px rgba(0, 69, 165, 0.25), 0 0 0 2px #333;
    position: relative;
}

.phone-notch {
    width: 100px;
    height: 24px;
    background: #1a1a1a;
    border-radius: 0 0 16px 16px;
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.phone-screen {
    width: 100%;
    border-radius: 28px;
    display: block;
}

.store-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    background: #111;
    color: white;
    padding: 0.625rem 1.25rem;
    border-radius: 0.75rem;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    min-width: 160px;
}

.store-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    color: white;
}

@media (min-width: 1024px) {
    .phone-frame {
        width: 300px;
    }
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, #003d8f 0%, #008FA5 60%, #0045A5 100%);
    min-height: 520px;
}

.cta-bg-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.18;
    pointer-events: none;
}

.cta-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 45, 110, 0.88) 0%, rgba(0, 143, 165, 0.75) 100%);
    pointer-events: none;
}

.cta-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.375rem 1rem;
    border-radius: 9999px;
}

.cta-info-card {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    border-radius: 1rem;
    padding: 1rem;
}

.cta-info-icon {
    font-size: 1.25rem;
    flex-shrink: 0;
    width: 2.25rem;
    height: 2.25rem;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 0.625rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cta-image-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    align-items: start;
}

.cta-img-main {
    grid-row: span 2;
    position: relative;
    border-radius: 1.25rem;
    overflow: hidden;
    height: 100%;
    min-height: 360px;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.cta-img-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    min-height: 360px;
}

.cta-img-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    padding: 1.5rem 1rem 1rem;
    color: white;
}

.cta-img-side {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* Modern Footer */
.footer-modern {
    background: #0c1f3d;
    color: white;
}

.footer-wave {
    background: #F4F7FA;
    line-height: 0;
    margin-top: -1px;
}

.footer-body {
    background: linear-gradient(180deg, #0c1f3d 0%, #071428 100%);
    padding-bottom: 2rem;
}

.footer-heading {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #D99E5C;
    margin-bottom: 1.25rem;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.55);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.2s ease, padding-left 0.2s ease;
}

.footer-links a:hover {
    color: white;
    padding-left: 4px;
}

.footer-contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
}

.footer-contact-list li {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.55);
}

.footer-contact-list a {
    color: rgba(255, 255, 255, 0.55);
    text-decoration: none;
}

.footer-contact-list a:hover {
    color: white;
}

.footer-contact-icon {
    flex-shrink: 0;
    width: 1.75rem;
    height: 1.75rem;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
}

.footer-social-btn {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 0.625rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 0.875rem;
}

.footer-social-btn:hover {
    background: rgba(0, 143, 165, 0.4);
    color: white;
    transform: translateY(-2px);
}

.footer-social-wa {
    background: rgba(37, 211, 102, 0.15);
    border-color: rgba(37, 211, 102, 0.3);
    color: #25D366;
}

.footer-social-wa:hover {
    background: #25D366;
    color: white;
}

.footer-wa-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #25D366;
    color: white;
    padding: 0.625rem 1.25rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.footer-wa-btn:hover {
    background: #1ebe57;
    transform: translateY(-2px);
    color: white;
}

.footer-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding-top: 1.5rem;
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.35);
}

@media (min-width: 640px) {
    .footer-bottom {
        flex-direction: row;
    }
}

@media (max-width: 1023px) {
    .cta-image-grid {
        grid-template-columns: 1fr;
    }
    .cta-img-main {
        grid-row: auto;
        min-height: 240px;
    }
    .cta-img-side {
        flex-direction: row;
    }
    .cta-img-side img {
        height: 160px !important;
        flex: 1;
    }
}
