/* ================= RESET & VARIABLES ================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

:root {
    --yamaha-red: #e60012;
    --yamaha-black: #000000;
    --yamaha-dark: #111111;
    --yamaha-gray: #f4f4f4;
    --text-gray: #666666;
    --font-heading: 'Barlow Condensed', sans-serif;
    --font-body: 'PT Sans', sans-serif;
}

body {
    font-family: var(--font-body);
    background-color: #ffffff;
    color: var(--yamaha-black);
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ================= MOBILE SPLASH BANNER ================= */
.mobile-splash-banner {
    display: none; /* Hidden on PC */
    width: 100%;
    height: 100vh;
    height: 100dvh;
    background: #000;
    position: relative;
    z-index: 9999;
}

.mobile-splash-banner a {
    display: block;
    width: 100%;
    height: 100%;
}

.mobile-splash-banner img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Menampilkan gambar secara utuh */
    object-position: center;
}

/* ================= PC HEADER ================= */
.pc-header {
    display: flex;
    flex-direction: column;
    width: 100%;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: relative;
    z-index: 1000;
}

/* Top Bar */
.top-bar {
    background: var(--yamaha-black);
    color: #fff;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 0 5%;
    height: 40px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
}

.top-bar ul {
    display: flex;
    gap: 20px;
    align-items: center;
}

.top-bar a:hover { color: var(--yamaha-red); }

.top-bar .search-box {
    display: flex;
    align-items: center;
    background: #222;
    border-radius: 20px;
    padding: 2px 10px;
    margin-left: 20px;
}

.top-bar .search-box input {
    background: transparent;
    border: none;
    color: #fff;
    padding: 5px;
    font-size: 11px;
    outline: none;
    width: 120px;
}

.top-bar .search-box button {
    background: transparent;
    border: none;
    color: #fff;
    cursor: pointer;
}

/* Main Nav */
.main-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 80px;
    padding: 0 5%;
    border-bottom: 1px solid #eee;
    position: relative;
}

.main-nav .logo img {
    height: 50px;
}

.nav-menu {
    display: flex;
    gap: 30px;
    margin-left: 40px;
}

.nav-menu > li {
    position: relative;
    padding: 28px 0;
}

.nav-menu > li > a {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: #333;
    transition: color 0.3s;
}

.nav-menu > li:hover > a {
    color: var(--yamaha-red);
}

/* Dropdown Menu */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: -20px;
    background: #fff;
    min-width: 200px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    border-top: 3px solid var(--yamaha-red);
    border-radius: 0 0 5px 5px;
    padding: 10px 0;
}

.nav-menu > li:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu a {
    display: block;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 700;
    color: #555;
    transition: background 0.2s, color 0.2s;
}

.dropdown-menu a:hover {
    background: #f9f9f9;
    color: var(--yamaha-red);
    padding-left: 25px;
}

/* ================= MOBILE HEADER ================= */
.mobile-header {
    display: none;
    position: sticky;
    top: 0;
    width: 100%;
    background: var(--yamaha-black);
    height: 60px;
    z-index: 1000;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.mobile-header .logo img {
    height: 35px;
}

.mobile-header .header-icons {
    display: flex;
    gap: 20px;
    color: #fff;
    font-size: 20px;
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 60px;
    left: 0;
    width: 100%;
    height: calc(100vh - 60px);
    background: var(--yamaha-black);
    z-index: 999;
    padding: 20px;
    overflow-y: auto;
}

.mobile-menu.active {
    display: block;
}

.mobile-menu ul {
    display: flex;
    flex-direction: column;
}

.mobile-menu > ul > li {
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.mobile-menu > ul > li > a {
    display: block;
    color: #fff;
    padding: 15px 0;
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 700;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* ================= SECTION 1: HERO SLIDER ================= */
.hero-slider {
    width: 100%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    display: flex;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
}

.hero-slider::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

.hero-slide {
    flex: 0 0 100%;
    scroll-snap-align: start;
    position: relative;
}

.hero-slide img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* ================= SECTION 2: PRODUCT CATEGORY ================= */
.section-category {
    padding: 60px 5%;
    text-align: center;
    background: #fff;
}

.section-category h2 {
    font-family: var(--font-heading);
    font-size: 32px;
    font-weight: 900;
    margin-bottom: 30px;
    letter-spacing: 1px;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 15px;
}

.category-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: transform 0.3s;
}

.category-item:hover {
    transform: translateY(-5px);
}

.category-item img {
    width: 100%;
    max-width: 150px;
    height: auto;
    object-fit: contain;
    margin-bottom: 10px;
}

.category-item p {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 700;
    color: #333;
}

/* ================= SECTION 3: SERVICES / FEATURES ================= */
.section-features {
    padding: 40px 5%;
    background: var(--yamaha-gray);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.feature-card {
    position: relative;
    overflow: hidden;
    display: block;
}

.feature-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.feature-card:hover img {
    transform: scale(1.05);
}

.feature-btn {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: var(--yamaha-red);
    color: #fff;
    padding: 8px 20px;
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 700;
    border-radius: 3px;
}

/* ================= SECTION 4: LATEST UPDATE ================= */
.section-news {
    padding: 60px 5%;
    background: #fff;
}

.section-news-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.section-news h2 {
    font-family: var(--font-heading);
    font-size: 32px;
    font-weight: 900;
    letter-spacing: 1px;
}

.news-slider {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 20px;
    scrollbar-width: none;
}

.news-slider::-webkit-scrollbar {
    display: none;
}

.news-card {
    flex: 0 0 300px;
    scroll-snap-align: start;
    border: 1px solid #eee;
    border-radius: 5px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.news-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.news-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.news-content h3 {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.3;
    color: #222;
}

.news-content .read-more {
    margin-top: auto;
    color: var(--yamaha-red);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
}

/* ================= FLOATING SIDEBAR ================= */
.floating-sidebar {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.95);
    box-shadow: -2px 0 10px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    z-index: 900;
    border-radius: 8px 0 0 8px;
    overflow: hidden;
}

.sidebar-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 12px 10px;
    color: #333;
    border-bottom: 1px solid #eee;
    transition: background 0.3s;
}

.sidebar-btn:hover {
    background: #f0f0f0;
}

.sidebar-btn i {
    font-size: 18px;
    color: var(--yamaha-red);
    margin-bottom: 5px;
}

.sidebar-btn p {
    font-family: var(--font-heading);
    font-size: 12px;
    font-weight: 700;
}

.sidebar-btn.wa-btn {
    background: #25D366;
    color: #fff;
    border: none;
}

.sidebar-btn.wa-btn i {
    color: #fff;
}

/* ================= FOOTER ================= */
.footer {
    background: var(--yamaha-black);
    color: #fff;
    padding: 60px 5% 20px;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #333;
    padding-bottom: 20px;
    margin-bottom: 40px;
}

.footer-social {
    display: flex;
    gap: 15px;
}

.footer-social a {
    color: #fff;
    font-size: 20px;
}

.footer-social a:hover { color: var(--yamaha-red); }

.footer-links {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.footer-col h4 {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--yamaha-red);
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul a {
    font-size: 13px;
    color: #aaa;
    transition: color 0.2s;
}

.footer-col ul a:hover { color: #fff; }

.footer-bottom {
    text-align: center;
    border-top: 1px solid #333;
    padding-top: 20px;
    font-size: 12px;
    color: #777;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 1024px) {
    .category-grid { grid-template-columns: repeat(3, 1fr); }
    .footer-links { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    /* Tampilkan Banner Splash */
    .mobile-splash-banner { display: block; }
    
    /* Sembunyikan PC Header, Tampilkan Mobile Header */
    .pc-header { display: none; }
    .mobile-header { display: flex; }
    
    /* Category Grid */
    .category-grid { grid-template-columns: repeat(2, 1fr); }

    /* Features Grid */
    .features-grid { grid-template-columns: 1fr; }

    /* Floating Sidebar Adjustment */
    .floating-sidebar { transform: translateY(-50%) scale(0.9); right: -5px; }
}