html, body {
    scroll-behavior: smooth;
    width: 100%;
    overflow-x: hidden;
}

.site-header {
    left: 0;
    right: 0;
    z-index: 120;
    transform: translateZ(0);
    backface-visibility: hidden;
}

#mobile-menu {
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    touch-action: pan-y;
}

.group:hover .dropdown-menu {
    display: block;
}

.hero-bg {
    background-image: linear-gradient(rgba(42, 42, 42, 0.85), rgba(42, 42, 42, 0.95)), url('https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?q=80&w=2070&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.cta-bg {
    background-image: linear-gradient(rgba(237, 28, 36, 0.9), rgba(196, 21, 28, 0.9)), url('https://images.unsplash.com/photo-1541888086425-d81bb19240f5?q=80&w=2070&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.image-mask {
    clip-path: polygon(0 0, 100% 0, 100% 85%, 85% 100%, 0 100%);
}

.menu-dropdown-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 12px 20px;
    font-size: 14px;
    color: #374151;
}

.menu-dropdown-item:hover,
.menu-lang-item:hover {
    color: #ED1C24;
    background-color: #f9fafb;
}

.menu-lang-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    font-size: 14px;
    color: #374151;
}

.lang-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.06);
    color: #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    padding: 8px 14px;
}

.flag-icon {
    width: 20px;
    height: 14px;
    border-radius: 2px;
    object-fit: cover;
}

.lang-chip:hover {
    background: #ED1C24;
    color: #fff;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    background: #ED1C24;
    color: #fff;
    padding: 12px 28px;
    border-radius: 6px;
    font-weight: 600;
}

.btn-primary:hover {
    background: #C4151C;
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    border: 2px solid #fff;
    color: #fff;
    padding: 12px 28px;
    border-radius: 6px;
    font-weight: 600;
}

.btn-outline:hover {
    border-color: #ED1C24;
    color: #ED1C24;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.feature-item > i {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    color: #ED1C24;
}

.feature-item h4 {
    font-weight: 700;
    color: #2A2A2A;
}

.feature-item p {
    color: #6b7280;
    font-size: 14px;
}

.service-card {
    background: #fff;
    border: 1px solid #f1f5f9;
    border-radius: 12px;
    padding: 26px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.service-card:hover {
    transform: translateY(-6px);
    transition: all .25s ease;
}

.service-card > i {
    width: 56px;
    height: 56px;
    background: #2A2A2A;
    color: #fff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
}

.service-card h3 {
    font-size: 20px;
    font-weight: 700;
    color: #2A2A2A;
}

.service-card p {
    margin-top: 10px;
    color: #6b7280;
    font-size: 14px;
}

.why-item i {
    font-size: 30px;
    color: #ED1C24;
}

.why-item h3 {
    margin-top: 12px;
    font-size: 20px;
    font-weight: 700;
}

.why-item p {
    margin-top: 8px;
    color: #9ca3af;
}

.form-input {
    width: 100%;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    padding: 12px 14px;
}

.form-input:focus {
    outline: none;
    border-color: #ED1C24;
}

.alert-success,
.alert-error {
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 16px;
}

.alert-success {
    background: #dcfce7;
    color: #166534;
}

.alert-error {
    background: #fee2e2;
    color: #991b1b;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-icon:hover {
    background: #ED1C24;
}

.wa-float-btn {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 90;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    padding: 0;
    border-radius: 999px;
    background: #25d366;
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.35);
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.wa-float-btn i {
    font-size: 26px;
}

.wa-float-btn:hover {
    background: #1fbf5b;
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(37, 211, 102, 0.42);
}

body.overflow-hidden .wa-float-btn {
    opacity: 0;
    pointer-events: none;
}

@media (max-width: 1024px) {
    .hero-bg,
    .cta-bg {
        background-attachment: scroll;
    }

    .site-header {
        background-color: rgba(42, 42, 42, 0.98);
    }

    .mobile-lang-wrap {
        padding-bottom: calc(1.5rem + env(safe-area-inset-bottom) + 56px);
    }
}

@media (max-width: 640px) {
    .wa-float-btn {
        right: 14px;
        bottom: 14px;
        width: 54px;
        height: 54px;
    }

    .wa-float-btn i {
        font-size: 24px;
    }
}
