@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Montserrat:wght@400;500;600;700&display=swap');

/* ==========================================================================
   DESIGN VARIABLES & SYSTEM
   ========================================================================== */
:root {
    --byd-white: #FFFFFF;
    --byd-light-gray: #F8F9FA;
    --byd-dark: #111111;
    --byd-blue: #333333;
    --byd-muted: #666666;

    /* Additional refined colors for premium look */
    --byd-blue-glow: rgba(0, 0, 0, 0.08);
    --byd-blue-hover: #000000;
    --byd-dark-card: #1C1C1E;
    --byd-border: #E5E5E7;
    --byd-gradient: linear-gradient(135deg, #333333 0%, #111111 100%);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.12);
    --transition-smooth: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* ==========================================================================
   BASE STYLES & RESET
   ========================================================================== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -ms-overflow-style: none;
    /* IE and Edge */
    scrollbar-width: none;
    /* Firefox */
}

/* Hide scrollbar for Chrome, Safari and Opera */
html::-webkit-scrollbar,
body::-webkit-scrollbar {
    display: none;
}

body {
    font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--byd-white);
    color: var(--byd-dark);
    line-height: 1.6;
    overflow-x: hidden;
    -ms-overflow-style: none;
    /* IE and Edge */
    scrollbar-width: none;
    /* Firefox */
}

/* Global Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Sections Base Styling */
.section {
    padding: 80px 0;
    display: block;
    /* Linear row structure */
    position: relative;
}

.section-bg-light {
    background-color: var(--byd-light-gray);
}

.section-title-area {
    text-align: center;
    margin-bottom: 50px;
}

.section-title {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--byd-dark);
    letter-spacing: -0.02em;
    margin-bottom: 12px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--byd-muted);
    max-width: 600px;
    margin: 0 auto;
    font-weight: 400;
}

/* ==========================================================================
   LAYOUT SYSTEM (display: table & table-cell)
   ========================================================================== */
.row-table {
    display: table;
    width: 100%;
    table-layout: fixed;
    border-collapse: separate;
}

/* Special alignment options */
.row-table-valign-middle .col-cell {
    vertical-align: middle;
}

.col-cell {
    display: table-cell;
    vertical-align: top;
    padding: 0 15px;
    /* Simulating gaps */
}

/* Offsetting first/last padding to match container edges */
.row-table-offset {
    margin-left: -15px;
    margin-right: -15px;
    width: calc(100% + 30px);
}

/* ==========================================================================
   COMPONENTS
   ========================================================================== */

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 28px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    transition: var(--transition-smooth);
    cursor: pointer;
    text-align: center;
    border: none;
}

.btn-primary {
    background-color: var(--byd-blue);
    color: var(--byd-white);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}

.btn-primary:hover {
    background-color: var(--byd-blue-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.btn-outline {
    background-color: transparent;
    color: var(--byd-blue);
    border: 2px solid var(--byd-blue);
}

.btn-outline:hover {
    background-color: var(--byd-blue-glow);
    transform: translateY(-2px);
}


.btn-glass {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: white;
    border-radius: 8px;
    font-weight: 600;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 52px;
    box-sizing: border-box;
}

.btn-glass:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
    color: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-whatsapp {
    background: rgba(37, 211, 102, 0.25);
    border: 1px solid rgba(37, 211, 102, 0.5);
    color: white;
    border-radius: 8px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
    height: 52px;
    box-sizing: border-box;
}

.btn-whatsapp:hover {
    background: rgba(37, 211, 102, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.3);
    color: white;
}

.btn-block {
    display: block;
    width: 100%;
}

/* Nav Header */
.site-header {
    background-color: rgba(37, 39, 40, 0.85);
    /* Shark grey #252728 */
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    height: 72px;
}

.nav-row {
    height: 72px;
}

.logo-cell {
    width: 250px;
    padding-left: 0;
}

.logo-link {
    display: block;
    text-decoration: none;
    color: var(--byd-white);
}

.logo-img {
    height: 24px;
    width: auto;
    display: inline-block;
    vertical-align: middle;
}

.logo-text {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.logo-tagline {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 500;
    letter-spacing: 0;
}

.menu-cell {
    text-align: right;
}

.menu-list {
    list-style: none;
    display: inline-block;
}

.menu-item {
    display: inline-block;
    margin-left: 28px;
}

.menu-link {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition-smooth);
    position: relative;
    padding: 6px 0;
}

.menu-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--byd-white);
    transition: var(--transition-smooth);
}

.menu-link:hover {
    color: var(--byd-white);
}

.menu-link:hover::after {
    width: 100%;
}

.nav-toggle {
    display: none;
}

/* ==========================================================================
   DROPDOWN MENU
   ========================================================================== */
.menu-item.has-dropdown {
    position: relative;
}

.dropdown-toggle {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
}

.dropdown-toggle .dropdown-arrow {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-right: 2px solid rgba(255, 255, 255, 0.75);
    border-bottom: 2px solid rgba(255, 255, 255, 0.75);
    transform: rotate(45deg);
    transition: transform 0.3s ease;
    margin-top: -3px;
}

.menu-item.has-dropdown:hover .dropdown-arrow,
.menu-item.has-dropdown.open .dropdown-arrow {
    transform: rotate(-135deg);
    margin-top: 3px;
}

.dropdown-menu {
    display: block;
    visibility: hidden;
    opacity: 0;
    position: absolute;
    top: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%) translateY(-8px);
    min-width: 190px;
    background-color: rgba(30, 32, 33, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 8px 0;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
    z-index: 2000;
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
}

.menu-item.has-dropdown:hover .dropdown-menu,
.menu-item.has-dropdown.open .dropdown-menu {
    visibility: visible;
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.dropdown-menu li {
    display: block;
}

.dropdown-menu li a {
    display: block;
    padding: 10px 20px;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 500;
    white-space: nowrap;
    transition: background 0.2s ease, color 0.2s ease;
}

.dropdown-menu li a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    padding-left: 26px;
}


/*SECTION 1: HERO SECTION
   ========================================================================== */
.hero-section {
    position: relative;
    min-height: 650px;
    color: var(--byd-white);
    width: 100%;
    padding: 0;
    overflow: hidden;
}

/* Forces the section to occupy 100vh in document flow,
   since all direct children are position:absolute */
.hero-section::before {
    content: '';
    display: block;
    height: 100vh;
    min-height: 650px;
}

.hero-video-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: 0;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(180deg, rgba(17, 17, 17, 0.4) 0%, rgba(17, 17, 17, 0.8) 100%);
    z-index: 1;
}

.hero-vertical-center {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    z-index: 2;
}

.hero-content {
    max-width: 800px;
    margin-top: 50px;
}

.hero-badge {
    display: inline-block;
    background-color: var(--byd-blue-glow);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 0, 0, 0.3);
    color: #CCCCCC;
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 24px;
    letter-spacing: 0.02em;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.03em;
    margin-bottom: 20px;
    color: #ffffff;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 35px;
    font-weight: 300;
    max-width: 650px;
}

.hero-actions {
    display: table;
    margin-bottom: 30px;
}

.hero-action-cell {
    display: table-cell;
    padding-right: 15px;
    vertical-align: middle;
}

/* ==========================================================================
   SECTION 2: PROFIL SALES & JANJI LAYANAN
   ========================================================================== */
.profile-img-wrapper {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    background-color: var(--byd-light-gray);
    width: 100%;
}

.profile-img {
    width: 100%;
    display: block;
    transition: var(--transition-smooth);
}

.profile-img-wrapper:hover .profile-img {
    transform: scale(1.03);
}

.profile-content {
    padding-left: 20px;
}

.profile-greeting {
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--byd-blue);
    letter-spacing: 0.05em;
    margin-bottom: 10px;
}

.profile-intro {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--byd-dark);
    line-height: 1.4;
    margin-bottom: 20px;
}

.profile-text {
    color: var(--byd-muted);
    margin-bottom: 28px;
}

/* Trust Service Promises */
.promise-list {
    margin-top: 30px;
}

.promise-item {
    display: table;
    width: 100%;
    margin-bottom: 20px;
}

.promise-icon-cell {
    display: table-cell;
    width: 50px;
    vertical-align: top;
}

.promise-icon {
    width: 36px;
    height: 36px;
    background-color: var(--byd-blue-glow);
    border-radius: 8px;
    color: var(--byd-blue);
    text-align: center;
    line-height: 36px;
    font-weight: bold;
    font-size: 1.1rem;
}

.promise-text-cell {
    display: table-cell;
    vertical-align: top;
    padding-left: 10px;
}

.promise-title {
    font-weight: 600;
    font-size: 1rem;
    color: var(--byd-dark);
    margin-bottom: 4px;
}

.promise-desc {
    font-size: 0.88rem;
    color: var(--byd-muted);
}

/* ==========================================================================
   SECTION 2.5: FULL WIDTH IMAGE & SQUARE BUTTON
   ========================================================================== */
.full-width-section {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

.full-width-title {
    position: absolute;
    top: 100px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--byd-white);
    font-family: 'Montserrat', sans-serif;
    font-size: 3.5rem;
    font-weight: 500;
    letter-spacing: 2px;
    z-index: 10;
    text-align: center;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.full-width-img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.full-width-action {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
}

.btn-square-outline {
    display: inline-block;
    background-color: rgba(0, 0, 0, 0.5);
    /* Sedikit background hitam untuk kontras */
    color: var(--byd-white);
    border: none;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border-radius: 8px;
    padding: 12px 40px;
    font-size: 1rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    transition: background-color 0.3s, color 0.3s;
    /* Square button has no border radius */
}

.btn-square-outline:hover {
    background-color: var(--byd-white);
    color: var(--byd-dark);
}

/* ==========================================================================
   SECTION 3: LINE-UP BYD (Katalog Produk)
   ========================================================================== */
.product-card {
    background: var(--byd-white);
    border-radius: 12px;
    border: 1px solid var(--byd-border);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
    margin-bottom: 30px;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(0, 0, 0, 0.1);
}

.product-img-wrapper {
    width: 100%;
    height: 220px;
    overflow: hidden;
    position: relative;
    background-color: var(--byd-light-gray);
}

.product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.product-card:hover .product-img {
    transform: scale(1.05);
}

.product-info {
    padding: 24px;
}

.product-badge {
    display: inline-block;
    background-color: #EEEEEE;
    color: var(--byd-blue);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 4px;
    margin-bottom: 12px;
}

.product-name {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--byd-dark);
    margin-bottom: 8px;
}

.product-price-label {
    font-size: 0.8rem;
    color: var(--byd-muted);
    margin-bottom: 2px;
}

.product-price {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--byd-blue);
    margin-bottom: 20px;
}

/* ==========================================================================
   SECTION 4: PROMO EKSKLUSIF
   ========================================================================== */
.promo-banner {
    background-image: linear-gradient(rgba(17, 17, 17, 0.8), rgba(17, 17, 17, 0.8)), url('../images/atto1-byd-balikpapan.webp');
    background-size: cover;
    background-position: center;
    border-radius: 16px;
    padding: 50px;
    color: var(--byd-white);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    position: relative;
}

/* Glowing electric abstract accent background */
.promo-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0) 70%);
    border-radius: 50%;
    pointer-events: none;
}

.promo-title-area h2 {
    font-size: 2.25rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
    color: var(--byd-white);
}

.promo-title-area p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 40px;
}

.promo-grid {
    margin-bottom: 40px;
}

.promo-item-card {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 24px;
    height: 100%;
    transition: var(--transition-smooth);
}

.promo-item-card:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-4px);
}

.promo-item-num {
    font-size: 1.75rem;
    font-weight: 700;
    color: #CCCCCC;
    margin-bottom: 12px;
}

.promo-item-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 6px;
}

.promo-item-desc {
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.75);
}

.promo-footer-actions {
    text-align: center;
}

.btn-white-promo {
    background-color: var(--byd-white);
    color: var(--byd-blue);
    font-weight: 700;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
}

.btn-white-promo:hover {
    background-color: #f1f1f1;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* ==========================================================================
   SECTION 5: TESTIMONI & GALERI (SLIDER)
   ========================================================================== */
.slider-container {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: 0 auto 20px auto;
    overflow: hidden;
    border-radius: 12px;
}

.slider-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.slider-slide {
    min-width: 100%;
    box-sizing: border-box;
    padding: 0;
}

.slider-btn {
    position: absolute;
    top: 40%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 10;
    transition: background 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-btn:hover {
    background: rgba(0, 0, 0, 0.8);
}

.slider-btn.prev {
    left: 15px;
}

.slider-btn.next {
    right: 15px;
}

.slider-dots {
    display: flex;
    justify-content: center;
    margin-bottom: 50px;
    gap: 10px;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #CCCCCC;
    cursor: pointer;
    transition: background 0.3s;
}

.slider-dot.active {
    background: #333333;
}

.gallery-item {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--byd-border);
    background-color: var(--byd-light-gray);
    transition: var(--transition-smooth);
}

.gallery-item:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-md);
}

.gallery-image-wrapper {
    aspect-ratio: 4 / 3;
    overflow: hidden;
}

.gallery-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.gallery-item:hover .gallery-image-wrapper img {
    transform: scale(1.04);
}

.gallery-caption {
    padding: 16px;
    font-size: 0.85rem;
    color: var(--byd-muted);
    font-weight: 500;
    text-align: center;
    border-top: 1px solid var(--byd-border);
}

/* Quote */
.testimonial-box {
    background-color: var(--byd-light-gray);
    border-radius: 12px;
    padding: 40px;
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
    position: relative;
    border: 1px solid var(--byd-border);
    display: flex;
    align-items: center;
    gap: 30px;
}

.testimonial-profile {
    flex-shrink: 0;
    width: 200px;
    height: 200px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.testimonial-profile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.testimonial-content {
    flex-grow: 1;
}

.testimonial-quote {
    font-size: 1rem;
    font-style: italic;
    font-weight: 400;
    color: var(--byd-dark);
    margin-bottom: 20px;
    line-height: 1.7;
}

.testimonial-author {
    font-weight: 600;
    color: var(--byd-blue);
    font-size: 0.95rem;
}

.testimonial-location {
    font-size: 0.8rem;
    color: var(--byd-muted);
}

/* ==========================================================================
   SECTION 6: FOOTER & KONTAK RESMI
   ========================================================================== */
.site-footer {
    background-color: var(--byd-dark);
    color: #999999;
    padding: 80px 0 30px 0;
    font-size: 0.9rem;
    border-top: 4px solid var(--byd-blue);
}

.footer-heading {
    color: var(--byd-white);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 24px;
    position: relative;
    padding-bottom: 8px;
}

.footer-heading::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 30px;
    height: 2px;
    background-color: var(--byd-blue);
}

.footer-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--byd-white);
    letter-spacing: 0.05em;
    margin-bottom: 15px;
}

.footer-brand-desc {
    line-height: 1.6;
    margin-bottom: 20px;
}

.footer-links {
    list-style: none;
}

.footer-link-item {
    margin-bottom: 12px;
}

.footer-link-anchor {
    color: #999999;
    text-decoration: none;
    transition: var(--transition-smooth);
}

.footer-link-anchor:hover {
    color: var(--byd-white);
    padding-left: 4px;
}

.footer-contact-row {
    display: table;
    width: 100%;
    margin-bottom: 16px;
}

.footer-contact-icon {
    display: table-cell;
    width: 24px;
    color: var(--byd-blue);
    font-weight: bold;
    font-size: 1.1rem;
}

.footer-contact-text {
    display: table-cell;
    padding-left: 8px;
    vertical-align: top;
    color: #CCCCCC;
}

.footer-disclaimer-box {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid #2A2A2D;
    font-size: 0.78rem;
    line-height: 1.6;
    color: #777777;
    text-align: justify;
}

.footer-bottom-row {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #2A2A2D;
}

.footer-copyright {
    font-size: 0.8rem;
    padding-left: 0;
}

.footer-dev {
    text-align: right;
    font-size: 0.8rem;
}

/* ==========================================================================
   RESPONSIVE LAYOUTS (Media Queries)
   ========================================================================== */

/* Breakpoint for Tablets/Mobile Devices */
@media screen and (max-width: 991px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .promo-banner {
        padding: 40px 24px;
    }
}

/* Breakpoint for Hamburger Menu on Header */
@media screen and (max-width: 998px) {
    .site-header {
        height: 72px !important;
        padding: 0 !important;
        position: fixed !important;
        background-color: rgba(37, 39, 40, 0.95);
        /* Ensure solid background on mobile by default */
    }

    .nav-row {
        display: flex !important;
        justify-content: space-between;
        align-items: center;
        height: 72px !important;
    }

    .logo-cell,
    .menu-cell {
        display: block !important;
        width: auto !important;
        height: auto !important;
        padding: 0 !important;
        text-align: left !important;
    }

    .menu-cell {
        position: static;
    }

    /* Hamburger toggle button */
    .nav-toggle {
        display: block !important;
        background: none;
        border: none;
        cursor: pointer;
        padding: 10px;
        position: absolute;
        right: 24px;
        top: 50%;
        transform: translateY(-50%);
        z-index: 1010;
    }

    .nav-toggle .bar {
        display: block;
        width: 24px;
        height: 2px;
        margin: 5px 0;
        background-color: var(--byd-white);
        transition: all 0.3s ease-in-out;
    }

    /* Transform hamburger into 'X' when active */
    .nav-toggle.active .bar:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .nav-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active .bar:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    /* Mobile slide down drawer menu */
    .menu-list {
        display: block !important;
        position: fixed;
        left: 0;
        top: 72px;
        width: 100%;
        height: calc(100vh - 72px);
        background-color: rgba(37, 39, 40, 0.98);
        /* BYD theme dark grey */
        text-align: center;
        padding: 40px 0;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
        border-top: 1px solid rgba(255, 255, 255, 0.08);

        /* Transition animations */
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
        z-index: 999;
        overflow-y: auto;
    }

    .menu-list.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .menu-item {
        display: block !important;
        margin: 20px 0 !important;
        padding: 0 !important;
    }

    .menu-link {
        font-size: 1rem !important;
        display: inline-block;
        color: var(--byd-white) !important;
    }
}

@media screen and (max-width: 767px) {

    /* Convert tables to blocks for mobile vertical stacking */
    .row-table,
    .row-table-offset {
        display: block;
        width: 100%;
        margin-left: 0;
        margin-right: 0;
        border-spacing: 0;
    }

    .col-cell {
        display: block;
        width: 100% !important;
        /* Force take up full width */
        padding: 0 !important;
        /* Override inline padding and remove bottom padding */
    }

    /* Remove padding of the last cell */
    .col-cell:last-child {
        padding-bottom: 0 !important;
    }

    .promo-item-card {
        margin-bottom: 20px;
    }

    /* Hero Adjustments */
    .hero-section {
        min-height: 100vh;
        height: auto;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 90px 20px 60px 20px;
        text-align: center;
    }

    .hero-section::before {
        display: none;
    }

    .hero-vertical-center {
        position: relative;
        transform: none;
        z-index: 3;
        width: 100%;
    }

    .hero-content {
        margin-top: 0;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .full-width-title {
        font-size: 2.3rem;
        top: 90px;
    }

    .hero-actions {
        display: block;
        margin: 0 auto;
    }

    .hero-action-cell {
        display: block;
        padding-right: 0;
        padding-bottom: 15px;
        text-align: center;
    }

    .hero-action-cell:last-child {
        padding-bottom: 0;
    }

    /* Profile Image adjustments */
    .profile-content {
        padding-left: 0;
        padding-top: 20px;
    }

    /* Gallery height adjustment */
    .gallery-image-wrapper {
        height: auto;
    }

    /* Footer bottom text */
    .footer-dev {
        text-align: left;
        margin-top: 8px;
    }
}


@media (max-width: 768px) {
    .testimonial-box {
        flex-direction: column;
        text-align: center;
        padding: 30px 20px;
    }

    .testimonial-profile {
        margin: 0 auto;
    }
}

.footer-logo {
    height: 32px;
    width: auto;
    margin-bottom: 15px;
    filter: brightness(0) invert(1);
    opacity: 0.9;
}

/* ==========================================================================
   PRICELIST PAGE STYLES
   ========================================================================== */
.pricelist-section {
    padding: 120px 0 80px 0;
    /* extra padding top for fixed header */
    background-color: var(--byd-white);
}

.pricelist-header {
    text-align: center;
    margin-bottom: 60px;
}

.pricelist-header h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 3rem;
    font-weight: 700;
    color: var(--byd-dark);
    margin-bottom: 10px;
}

.pricelist-header p {
    color: var(--byd-muted);
    font-size: 1.1rem;
}

.pricelist-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.pricelist-card {
    background: var(--byd-white);
    border: 1px solid var(--byd-border);
    border-radius: 12px;
    padding: 30px 20px;
    text-align: center;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
}

.pricelist-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: #333333;
}

.pricelist-img-wrap {
    height: 160px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pricelist-img-wrap img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.pricelist-model {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--byd-dark);
}

.pricelist-variants {
    margin-bottom: 25px;
    flex-grow: 1;
}

.variant-item {
    padding: 10px 0;
    border-bottom: 1px dashed var(--byd-border);
}

.variant-item:last-child {
    border-bottom: none;
}

.variant-name {
    display: block;
    font-size: 0.95rem;
    color: var(--byd-muted);
    margin-bottom: 4px;
}

.variant-price {
    display: block;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--byd-dark);
}

.pricelist-card .btn {
    width: 100%;
}


@media screen and (max-width: 767px) {

    /* Mobile image shifts for index.html */
    #img-atto1 {
        object-position: 63% 50% !important;
    }

    #img-m6 {
        object-position: 40% 50% !important;
    }

    #img-seal {
        object-position: 40% 50% !important;
    }

    #img-dolphin {
        object-position: 70% 50% !important;
    }

    #img-atto3 {
        object-position: 42% 50% !important;
    }

}

/* ==========================================================================
   FLOATING CONNECT BUTTON (BYD Style)
   ========================================================================== */
.floating-connect-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #1A1A1A;
    color: #FFFFFF;
    display: flex;
    align-items: center;
    padding: 8px 20px 8px 8px;
    border-radius: 50px;
    text-decoration: none;
    z-index: 9999;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.floating-connect-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    background-color: #000000;
    color: #FFFFFF;
}

.floating-connect-icon {
    width: 38px;
    height: 38px;
    background-color: #25D366;
    /* WhatsApp Green */
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 12px;
    color: white;
}

.floating-connect-text {
    font-size: 14px;
    font-weight: 600;
    font-family: 'Montserrat', sans-serif;
    letter-spacing: 0.5px;
}

@media (max-width: 767px) {
    .floating-connect-btn {
        bottom: 20px;
        right: 20px;
        padding: 6px 16px 6px 6px;
    }

    .floating-connect-icon {
        width: 34px;
        height: 34px;
        margin-right: 10px;
    }

    .floating-connect-icon svg {
        width: 18px;
        height: 18px;
    }

    .floating-connect-text {
        font-size: 13px;
    }
}