@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* ==========================================
   Bestway Group Ltd — Design System 5.0
   Theme: Dark Blue · Black · White · Gold
   ========================================== */

:root {
    --primary:      #0A1B3F;
    --primary-dark: #060f22;
    --gold:         #C9A84C;
    --gold-light:   #E2C97E;
    --black:        #0A0A0A;
    --white:        #FFFFFF;

    --bg-white:     #FFFFFF;
    --bg-dark:      #0A1B3F;
    --bg-grey:      #F4F5F7;
    --bg-black:     #0A0A0A;

    --text-dark:    #0A0A0A;
    --text-main:    #2D2D2D;
    --text-muted:   #6B7280;
    --text-white:   #FFFFFF;
    --text-white70: rgba(255,255,255,0.70);
    --text-white50: rgba(255,255,255,0.50);

    --border:       rgba(0,0,0,0.08);
    --border-dark:  rgba(255,255,255,0.10);

    --shadow-sm:    0 2px 8px rgba(0,0,0,0.05);
    --shadow-md:    0 8px 24px rgba(0,0,0,0.08);
    --shadow-lg:    0 20px 48px rgba(0,0,0,0.12);

    --ease:         cubic-bezier(0.16, 1, 0.3, 1);
    --fast:         all 0.2s var(--ease);
    --slow:         all 0.6s var(--ease);
}

/* ==========================================
   Reset & Base
   ========================================== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text-main);
    background-color: var(--bg-white);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
    color: var(--text-dark);
    line-height: 1.15;
    font-weight: 700;
    letter-spacing: -0.025em;
}

a { text-decoration: none; color: inherit; transition: var(--fast); }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }

/* ==========================================
   Layout
   ========================================== */
.container {
    max-width: 1600px;
    width: 92%;
    margin: 0 auto;
}

.section { padding: 110px 0; }

/* Section Backgrounds */
.bg-white   { background: var(--bg-white); }
.bg-dark    { background: var(--bg-dark); }
.bg-grey    { background: var(--bg-grey); }
.bg-black   { background: var(--bg-black); }

/* Text overrides on dark backgrounds */
.bg-dark .section-label,
.bg-black .section-label { color: var(--gold); }

.bg-dark .section-title,
.bg-black .section-title { color: var(--white); }

.bg-dark p,
.bg-black p { color: var(--text-white70); }

/* ==========================================
   Buttons — Clean & Premium
   ========================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 15px 34px;
    font-family: inherit;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border: 1px solid transparent;
    border-radius: 0;
    cursor: pointer;
    transition: var(--fast);
    white-space: nowrap;
}

/* Primary — solid dark blue */
.btn-primary {
    background: var(--primary);
    color: var(--white) !important;
    border-color: var(--primary);
}
.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
}

/* Secondary — outlined */
.btn-secondary {
    background: transparent;
    color: var(--text-dark) !important;
    border-color: var(--border);
}
.btn-secondary:hover {
    border-color: var(--text-dark);
    background: var(--text-dark);
    color: var(--white) !important;
}

/* Gold accent */
.btn-gold {
    background: var(--gold);
    color: var(--black) !important;
    border-color: var(--gold);
}
.btn-gold:hover {
    background: var(--gold-light);
    border-color: var(--gold-light);
}

/* Hero slide buttons override — on dark background */
.hero-actions .btn-primary {
    background: var(--white);
    color: var(--primary) !important;
    border-color: var(--white);
}
.hero-actions .btn-primary:hover {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--black) !important;
}

.hero-actions .btn-secondary {
    background: transparent;
    color: var(--white) !important;
    border-color: rgba(255,255,255,0.45);
}
.hero-actions .btn-secondary:hover {
    background: rgba(255,255,255,0.12);
    border-color: rgba(255,255,255,0.7);
}

/* Pricing card dark-bg override */
.pricing-card .btn-secondary {
    color: var(--white) !important;
    border-color: rgba(255, 255, 255, 0.45);
}
.pricing-card .btn-secondary:hover {
    border-color: var(--white);
    background: rgba(255, 255, 255, 0.1);
    color: var(--white) !important;
}
.pricing-card.featured .btn-primary {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--black) !important;
}
.pricing-card.featured .btn-primary:hover {
    background: var(--gold-light);
    border-color: var(--gold-light);
}

/* Header CTA button — slightly smaller */
.header-cta .btn {
    padding: 10px 22px;
    font-size: 0.8rem;
}

/* ==========================================
   Navigation / Header
   ========================================== */
.main-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255,255,255,0.88);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 68px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--text-dark);
    letter-spacing: -0.04em;
}

.header-cta { display: flex; align-items: center; gap: 16px; }

.mobile-toggle-btn {
    display: none;
    background: transparent;
    border: none;
    color: var(--text-dark);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 6px;
}

.main-nav ul { display: flex; gap: 36px; }

.main-nav a {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-muted);
    letter-spacing: 0.01em;
}
.main-nav a:hover { color: var(--text-dark); }

/* ==========================================
   Hero Slider
   ========================================== */
.hero-slider {
    position: relative;
    height: calc(100vh - 68px); /* Accounts for header height */
    min-height: 600px;
    width: 100%;
    overflow: hidden;
    background: var(--bg-dark);
}

.slides-wrapper {
    display: flex;
    width: 100%;
    height: 100%;
}

.slide {
    height: 100%;
    position: relative;
    background-size: cover;
    background-position: center 25%;
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        100deg,
        rgba(6, 15, 34, 0.88) 0%,
        rgba(10, 27, 63, 0.60) 55%,
        rgba(10, 27, 63, 0.20) 100%
    );
    z-index: 1;
}

.slide-content {
    position: relative;
    z-index: 2;
    color: var(--white);
    max-width: 1200px;
}

.hero-title {
    font-size: 5rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.08;
    color: var(--white);
    margin-bottom: 24px;
}

.hero-title span { color: var(--gold); }

.hero-description {
    font-size: 1.25rem;
    color: rgba(255,255,255,0.85);
    line-height: 1.6;
    margin-bottom: 40px;
    max-width: 90%;
}

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* Arrow Buttons */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: rgba(255,255,255,0.50);
    font-size: 2.5rem;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--fast);
    padding: 0;
}
.slider-btn:hover { color: var(--white); }
.prev-btn { left: 40px; }
.next-btn { right: 40px; }

/* Pagination Dots */
.slider-pagination {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.dot {
    display: block;
    width: 12px;
    height: 12px;
    background: rgba(255,255,255,0.30);
    border-radius: 0;
    cursor: pointer;
    transition: var(--fast);
}
.dot.active {
    background: var(--gold);
    width: 32px;
}

/* ==========================================
   Metrics Section
   ========================================== */
.metrics-section {
    padding: 90px 0;
    background: var(--bg-white);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.metrics-row {
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.metric-item {
    text-align: center;
    flex: 1;
    position: relative;
}

.metric-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 10%;
    height: 80%;
    width: 1px;
    background: var(--border);
}

.metric-number {
    font-size: clamp(3rem, 5vw, 5rem);
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -0.05em;
    line-height: 1;
    margin-bottom: 10px;
}

.metric-number span { color: var(--gold); }

.metric-label {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-muted);
}

/* ==========================================
   Section Labels & Titles
   ========================================== */
.section-label {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--gold);
    margin-bottom: 18px;
}

.section-title {
    font-size: clamp(2rem, 3.5vw, 3.2rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.12;
    margin-bottom: 16px;
    color: var(--text-dark);
}

/* ==========================================
   About Section
   ========================================== */
.about-container,
.welcome-container {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 80px;
    align-items: center;
}
.welcome-container {
    align-items: start;
    grid-template-columns: 1fr 1.2fr;
}

.welcome-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
}
.welcome-split-right {
    padding-top: 12px;
}

.about-text { padding-right: 20px; }

.about-content p {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--text-white70);
    margin-bottom: 24px;
}

.about-image {
    width: 100%;
    position: relative;
}

.about-image img {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
    box-shadow: var(--shadow-lg);
    position: relative;
    z-index: 2;
}

.about-image::after {
    content: '';
    position: absolute;
    bottom: -24px;
    left: -24px;
    width: 100%;
    height: 100%;
    border: 1px solid rgba(255, 255, 255, 0.15);
    z-index: 1;
}

/* ==========================================
   Services Section
   ========================================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    margin-top: 60px;
    border: 1px solid rgba(255,255,255,0.08);
}

.service-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 24px 28px;
    border: 1px solid rgba(255,255,255,0.08);
    transition: var(--fast);
    cursor: default;
}

.service-item:hover {
    background: rgba(201,168,76,0.08);
    border-color: rgba(201,168,76,0.30);
}

.service-item i { color: var(--gold); font-size: 1.1rem; flex-shrink: 0; }

.service-item span {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--white);
}

/* ==========================================
   Why Us / Features
   ========================================== */
.why-us-split {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 80px;
    align-items: start;
}

.why-us-header {
    position: sticky;
    top: 100px;
}

.features-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 48px;
    column-gap: 64px;
}

.feature-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.feature-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    margin-bottom: 24px;
    border-radius: 4px;
}
.feature-icon i { font-size: 1.6rem; color: var(--gold); }

.feature-item h3 {
    font-size: 1.2rem;
    margin-bottom: 12px;
    color: var(--text-dark);
}

.feature-item p {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-muted);
}

/* ==========================================
   Pricing (Dark Theme)
   ========================================== */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    margin-top: 60px;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.pricing-card {
    background: transparent;
    border-right: 1px solid rgba(255, 255, 255, 0.15);
    padding: 48px 36px;
    display: flex;
    flex-direction: column;
    transition: var(--fast);
}

.pricing-card:last-child { border-right: none; }

.pricing-card:hover {
    background: rgba(255, 255, 255, 0.04);
}

.pricing-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 14px;
}

.pricing-card p {
    font-size: 0.92rem;
    line-height: 1.7;
    color: var(--text-white70);
    margin-bottom: 32px;
    flex-grow: 1;
}

/* Featured card */
.pricing-card.featured {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
}
.pricing-card.featured h3 { color: var(--gold); }
.pricing-card.featured p  { color: var(--white); }
.pricing-card.featured:hover { background: rgba(255, 255, 255, 0.12); }

/* ==========================================
   Contact Section
   ========================================== */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.contact-info p {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-muted);
    margin-bottom: 40px;
}

.contact-methods { margin-top: 8px; }

.contact-methods li {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 22px;
    font-size: 0.95rem;
    color: var(--text-dark);
}

.contact-methods i {
    font-size: 1.3rem;
    color: var(--primary);
    flex-shrink: 0;
}

.contact-form {
    background: var(--white);
    padding: 44px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    border-radius: 4px;
}

.form-group { margin-bottom: 22px; }

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-dark);
    letter-spacing: 0.02em;
}

.form-control {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid var(--border);
    border-radius: 0;
    font-family: inherit;
    font-size: 0.95rem;
    background: var(--bg-grey);
    color: var(--text-dark);
    transition: var(--fast);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(10,27,63,0.08);
}

.contact-form .btn { width: 100%; justify-content: center; }

/* ==========================================
   Footer
   ========================================== */
.main-footer {
    background: var(--bg-black);
    color: var(--white);
    padding: 90px 0 36px;
}

.main-footer .logo { color: var(--white); }

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
    padding-bottom: 60px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    margin-bottom: 36px;
}

.footer-grid h4 {
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--white);
    margin-bottom: 20px;
}

.footer-grid p { font-size: 0.9rem; color: rgba(255,255,255,0.45); margin-top: 16px; }

.footer-grid ul li { margin-bottom: 10px; }

.footer-grid ul a {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.45);
    transition: color 0.2s;
}
.footer-grid ul a:hover { color: var(--white); }

.footer-bottom {
    text-align: center;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.25);
}

/* ==========================================
   Blur-In Scroll Animations
   ========================================== */
.blur-in {
    opacity: 0;
    filter: blur(8px);
    transform: translateY(18px);
    transition:
        opacity   0.8s var(--ease),
        filter    0.8s var(--ease),
        transform 0.8s var(--ease);
}

.blur-in.appear { opacity: 1; filter: blur(0); transform: translateY(0); }

.delay-1 { transition-delay: 0.10s; }
.delay-2 { transition-delay: 0.20s; }
.delay-3 { transition-delay: 0.30s; }
.delay-4 { transition-delay: 0.40s; }
.delay-5 { transition-delay: 0.50s; }

/* ==========================================
   Responsive
   ========================================== */
@media (max-width: 1280px) {
    .pricing-grid { grid-template-columns: repeat(2, 1fr); }
    .pricing-card:nth-child(2) { border-right: none; }
    .pricing-card:nth-child(3),
    .pricing-card:nth-child(4) { border-top: 1px solid var(--border); }
    .services-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 1024px) {
    .about-container,
    .welcome-container,
    .welcome-split,
    .why-us-split,
    .contact-container { grid-template-columns: 1fr; gap: 48px; }
    .why-us-header { position: relative; top: 0; }
    .welcome-split-right { padding-top: 0; }
    .features-list { grid-template-columns: 1fr 1fr; }
    .hero-title { font-size: 3.4rem; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    
    .nav-links { display: none; }
}

@media (max-width: 768px) {
    .desktop-only { display: none !important; }
    .mobile-toggle-btn { display: flex; }

    .main-nav {
        display: none;
        position: absolute;
        top: 68px;
        left: 0;
        right: 0;
        background: var(--bg-white);
        padding: 24px 32px;
        box-shadow: var(--shadow-lg);
        border-bottom: 1px solid var(--border);
        z-index: 999;
    }

    .main-nav ul { flex-direction: column; gap: 20px; }

    .features-list,
    .pricing-grid,
    .services-grid { grid-template-columns: 1fr; }

    .metrics-row { flex-direction: column; gap: 48px; }
    .metric-item:not(:last-child)::after { display: none; }


    .hero-title { font-size: 2.4rem; }
    .footer-grid { grid-template-columns: 1fr; gap: 36px; }

    .slider-pagination { bottom: 24px; left: 50%; transform: translateX(-50%); }
}
