/* Malik Brothers LPG — shared visual theme
   Overlay only. Does not change copy or page structure. */

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

:root {
    --primary-red: #DC0A12;
    --secondary-red: #A80710;
    --accent-gold: #E8B86D;
    --light-gray: #F6F3F0;
    --dark-gray: #161616;
    --bg-primary: #FFFBFA;
    --bg-secondary: #F6F3F0;
    --text-primary: #1A1A1A;
    --text-secondary: #5C5754;
    --border-color: #E8E1DB;
    --card-bg: #FFFFFF;
    --shadow: 0 10px 30px rgba(22, 22, 22, 0.08);
    --shadow-lg: 0 22px 50px rgba(220, 10, 18, 0.16);
    --radius: 22px;
    --radius-sm: 14px;
}

[data-theme="dark"] {
    --bg-primary: #121212;
    --bg-secondary: #1B1B1B;
    --text-primary: #F5F5F5;
    --text-secondary: #C8C4C0;
    --border-color: #33302E;
    --card-bg: #222222;
    --light-gray: #1B1B1B;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    --shadow-lg: 0 22px 50px rgba(220, 10, 18, 0.22);
}

html {
    scroll-behavior: smooth;
}

html,
body {
    overflow-x: hidden;
    max-width: 100%;
}

*,
*::before,
*::after {
    cursor: auto !important;
}

.cursor-dot,
.cursor-ring,
.cursor-swirl,
.swirl-particle {
    display: none !important;
}

body {
    font-family: 'Plus Jakarta Sans', 'Segoe UI', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    letter-spacing: -0.01em;
    -webkit-font-smoothing: antialiased;
}

img,
video,
iframe {
    max-width: 100%;
}

h1, h2, h3, h4, h5, h6 {
    letter-spacing: -0.03em;
    font-weight: 800;
}

p {
    color: var(--text-secondary);
}

.hero-content p,
.hero-content .subtitle,
.cta-section p,
.cta-section h2 {
    color: #fff !important;
}

/* Navbar */
.navbar {
    background: rgba(255, 251, 250, 0.86) !important;
    backdrop-filter: blur(18px) saturate(140%);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
    box-shadow: 0 8px 30px rgba(22, 22, 22, 0.06) !important;
    border-bottom: 1px solid rgba(232, 225, 219, 0.8) !important;
    padding: 0.7rem 0 !important;
}

[data-theme="dark"] .navbar {
    background: rgba(18, 18, 18, 0.88) !important;
    border-bottom-color: rgba(255, 255, 255, 0.06) !important;
}

.navbar-brand {
    display: flex !important;
    align-items: center;
    gap: 10px;
    font-weight: 800 !important;
    letter-spacing: -0.03em;
}

.navbar-brand img {
    height: 42px;
    width: auto;
    border-radius: 8px;
}

.navbar-nav .nav-link {
    position: relative;
    font-weight: 600 !important;
    margin: 0 4px !important;
    padding: 8px 12px !important;
    border-radius: 999px;
    transition: background 0.25s ease, color 0.25s ease !important;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    background: rgba(220, 10, 18, 0.08);
    color: var(--primary-red) !important;
}

.dropdown-menu {
    border: 1px solid var(--border-color) !important;
    border-radius: 16px !important;
    box-shadow: var(--shadow-lg) !important;
    padding: 8px !important;
    overflow: hidden;
}

.dropdown-item {
    border-radius: 10px;
    padding: 10px 14px !important;
    font-weight: 550;
}

.dropdown-item:hover {
    background: rgba(220, 10, 18, 0.08) !important;
    color: var(--primary-red) !important;
}

.navbar-toggler {
    border: 1px solid var(--border-color) !important;
    border-radius: 12px !important;
    padding: 6px 10px !important;
}

.theme-toggle {
    border-radius: 999px !important;
    min-width: 42px;
    min-height: 42px;
}

.cart-badge {
    position: relative;
}

.cart-count,
#cartCount {
    position: absolute;
    top: -8px;
    right: -8px;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    background: var(--primary-red);
    color: #fff;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
}

/* Home hero slider */
.hero-section:has(.hero-slider) {
    height: calc(100svh - 76px);
    min-height: 560px;
    margin-top: 76px;
    background: #1a0707;
}

.hero-slide {
    inset: 0;
}

.hero-slide::before {
    background:
        linear-gradient(180deg, rgba(16, 8, 8, 0.28) 0%, rgba(140, 8, 12, 0.42) 45%, rgba(16, 8, 8, 0.78) 100%) !important;
}

.hero-content h1,
.hero-title {
    line-height: 1.12;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.hero-content .subtitle,
.hero-subtitle {
    opacity: 0.92;
    font-weight: 500 !important;
}

.hero-buttons .btn-primary-custom,
.hero-buttons .btn-outline-custom,
.btn-primary-custom,
.btn-outline-custom,
.btn-white,
.btn-contact,
.btn-add-cart,
.btn-order,
.btn-details,
.btn-submit,
.btn-checkout {
    letter-spacing: 0.01em;
    box-shadow: 0 10px 24px rgba(220, 10, 18, 0.18);
}

.btn-primary-custom,
.btn-add-cart,
.btn-order,
.btn-submit,
.btn-checkout,
.btn-contact {
    background: linear-gradient(180deg, #F01A22 0%, #C00810 100%) !important;
    border-color: transparent !important;
}

a.btn-details {
    display: block;
    text-align: center;
    text-decoration: none;
    margin-bottom: 12px;
}

.btn-primary-custom:hover,
.btn-add-cart:hover,
.btn-order:hover,
.btn-submit:hover,
.btn-checkout:hover,
.btn-contact:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 30px rgba(220, 10, 18, 0.28);
}

.slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
}

.slider-dot.active {
    width: 28px;
    border-radius: 999px;
    background: #fff !important;
    transform: none !important;
}

/* Inner page banners — solid red, home slider unchanged */
.page-header,
.hero-section:not(:has(.hero-slider)) {
    position: relative;
    overflow: hidden;
    background: #DC0A12 !important;
    border-bottom: none;
    color: #fff !important;
    padding: 120px 20px 48px !important;
    text-align: center;
}

.page-header .container,
.hero-section:not(:has(.hero-slider)) .container {
    position: relative;
    z-index: 2;
}

.page-header::before,
.hero-section:not(:has(.hero-slider))::before {
    content: none !important;
    display: none !important;
}

.page-header::after,
.hero-section:not(:has(.hero-slider))::after {
    content: none;
}

.page-header-art {
    display: none !important;
}

.page-header h1,
.hero-section:not(:has(.hero-slider)) h1,
.hero-title {
    position: relative;
    z-index: 2;
    color: #fff !important;
    text-shadow: none !important;
    max-width: none;
}

.page-header p,
.hero-section:not(:has(.hero-slider)) p,
.hero-section:not(:has(.hero-slider)) .lead,
.hero-section:not(:has(.hero-slider)) .hero-subtitle,
.hero-section:not(:has(.hero-slider)) .stat-label {
    position: relative;
    z-index: 2;
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
    color: rgba(255, 255, 255, 0.92) !important;
    opacity: 1;
}

.hero-section:not(:has(.hero-slider)) .stat-number {
    color: #fff !important;
}

[data-theme="dark"] .page-header,
[data-theme="dark"] .hero-section:not(:has(.hero-slider)) {
    background: #DC0A12 !important;
}

[data-theme="dark"] .page-header h1,
[data-theme="dark"] .hero-section:not(:has(.hero-slider)) h1,
[data-theme="dark"] .hero-title {
    color: #fff !important;
}

[data-theme="dark"] .page-header p,
[data-theme="dark"] .hero-section:not(:has(.hero-slider)) p,
[data-theme="dark"] .hero-section:not(:has(.hero-slider)) .lead,
[data-theme="dark"] .hero-subtitle {
    color: rgba(255, 255, 255, 0.92) !important;
}

/* Section titles */
.section-title {
    position: relative;
    padding-bottom: 18px;
    margin-bottom: 2.4rem !important;
}

.section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 64px;
    height: 4px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--primary-red), var(--accent-gold));
    transform: translateX(-50%);
}

.contact-form .section-title::after,
.contact-info .section-title::after {
    left: 0;
    transform: none;
}

/* Cards and surfaces */
.service-card,
.product-card,
.filter-card,
.location-card,
.contact-form,
.contact-info,
.branch-card,
.value-card,
.cart-item,
.cart-summary,
.checkout-form,
.timeline-content,
.gallery-item {
    border: 1px solid var(--border-color);
    background: var(--card-bg);
    box-shadow: var(--shadow);
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.service-card,
.product-card,
.branch-card,
.value-card,
.location-card,
.filter-card,
.contact-form,
.contact-info,
.checkout-form,
.cart-summary,
.timeline-content {
    border-radius: var(--radius) !important;
}

.service-card:hover,
.product-card:hover,
.branch-card:hover,
.value-card:hover,
.location-card:hover,
.gallery-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(220, 10, 18, 0.18);
}

.service-icon,
.value-icon,
.branch-icon,
.location-icon,
.contact-icon,
.detail-icon,
.feature-icon {
    box-shadow: 0 10px 22px rgba(220, 10, 18, 0.28);
}

.about-image,
.story-image img,
.gallery-item,
.video-container,
.map-container {
    border-radius: 24px !important;
    overflow: hidden;
}

.about-image img,
.story-image img {
    transition: transform 0.6s ease;
}

.about-image:hover img,
.story-image:hover img {
    transform: scale(1.04);
}

.product-image {
    background: linear-gradient(180deg, #fff 0%, #f7f4f1 100%) !important;
}

.product-badge {
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-size: 0.75rem !important;
}

.product-price {
    letter-spacing: -0.03em;
}

.product-specs,
.location-details,
.contact-item,
.feature-item {
    border: 1px solid var(--border-color);
    background: var(--bg-secondary) !important;
}

.contact-item {
    border-radius: 16px;
    align-items: flex-start;
}

.form-control,
.form-select,
.quantity-input {
    border-radius: 12px !important;
    border-color: var(--border-color) !important;
    background: var(--card-bg);
    min-height: 46px;
}

.form-control:focus,
.form-select:focus,
.quantity-input:focus {
    border-color: var(--primary-red) !important;
    box-shadow: 0 0 0 4px rgba(220, 10, 18, 0.12) !important;
}

/* Footer */
.footer {
    background:
        radial-gradient(circle at 10% 0%, rgba(220, 10, 18, 0.18), transparent 34%),
        #121212 !important;
    color: #F4F1EE !important;
    padding: 64px 0 24px !important;
}

.footer h5 {
    color: #fff !important;
    font-weight: 800;
}

.footer p,
.footer a,
.footer li {
    color: rgba(255, 255, 255, 0.78) !important;
}

.footer a:hover {
    color: #FF8A8A !important;
}

.footer p,
.detail-value,
.contact-item p,
.branch-info p {
    overflow-wrap: anywhere;
    word-break: break-word;
}

.social-links a {
    display: inline-flex;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
}

.whatsapp-float {
    box-shadow: 0 12px 28px rgba(18, 140, 126, 0.35) !important;
    bottom: calc(20px + env(safe-area-inset-bottom)) !important;
    right: calc(16px + env(safe-area-inset-right)) !important;
}

.mobile-bottom-nav {
    display: none;
}

.site-toast {
    position: fixed;
    left: 50%;
    bottom: 28px;
    transform: translateX(-50%) translateY(16px);
    background: #161616;
    color: #fff;
    padding: 12px 18px;
    border-radius: 999px;
    font-size: 0.92rem;
    font-weight: 600;
    z-index: 4000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.site-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

@media (max-width: 991.98px) {
    .site-toast {
        bottom: calc(84px + env(safe-area-inset-bottom));
    }
}

.seo-area-section {
    padding: 72px 0;
    background: var(--bg-secondary);
}

.seo-area-card,
.seo-faq {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 28px 24px;
    box-shadow: var(--shadow);
    height: 100%;
}

.seo-area-card h3,
.seo-faq h3 {
    color: var(--primary-red);
    font-size: 1.4rem;
    margin-bottom: 12px;
}

.seo-faq {
    margin-top: 8px;
}

.seo-faq details {
    border-bottom: 1px solid var(--border-color);
    padding: 12px 0;
}

.seo-faq details:last-child {
    border-bottom: none;
}

.seo-faq summary {
    cursor: pointer;
    font-weight: 700;
    color: var(--text-primary);
}

.seo-faq p {
    margin: 10px 0 0;
}

/* CTA */
.cta-section {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.16), transparent 36%),
        linear-gradient(135deg, #B3060E 0%, #DC0A12 50%, #7A050A 100%) !important;
}

.team-card {
    border: 1px solid var(--border-color);
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 36px 28px;
}

.team-image img {
    max-width: 220px;
    border-radius: 24px;
}

.filter-section {
    background: transparent !important;
    padding: 8px 0 0 !important;
}

.cart-item .row {
    --bs-gutter-y: 0.85rem;
}

.cart-item .col-md-1,
.cart-item .col-md-2,
.cart-item .col-md-3,
.cart-item .col-md-4 {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Video / clients */
.video-container {
    box-shadow: var(--shadow-lg) !important;
}

.video-container video,
.video-container iframe {
    width: 100%;
    display: block;
}

/* Dark surfaces */
[data-theme="dark"] .service-card,
[data-theme="dark"] .product-card,
[data-theme="dark"] .filter-card,
[data-theme="dark"] .location-card,
[data-theme="dark"] .contact-form,
[data-theme="dark"] .contact-info,
[data-theme="dark"] .branch-card,
[data-theme="dark"] .value-card,
[data-theme="dark"] .cart-item,
[data-theme="dark"] .cart-summary,
[data-theme="dark"] .checkout-form,
[data-theme="dark"] .timeline-content,
[data-theme="dark"] .gallery-item {
    background: var(--card-bg);
    border-color: var(--border-color);
}

[data-theme="dark"] .product-image,
[data-theme="dark"] .gallery-item img {
    background: #1a1a1a !important;
}

/* Tablet */
@media (max-width: 991.98px) {
    .navbar-nav .nav-link {
        margin: 2px 0 !important;
        text-align: left;
        border-bottom: none !important;
    }

    .dropdown-menu {
        box-shadow: none !important;
        background: var(--bg-secondary) !important;
    }

    .about-content,
    .story-content {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 28px !important;
    }

    .hero-stats {
        flex-wrap: wrap;
        gap: 12px;
    }

    .map-container iframe {
        height: 280px;
    }

    .location-card,
    .contact-form,
    .contact-info,
    .product-card,
    .service-card {
        padding: 24px !important;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .navbar-brand {
        font-size: 1rem !important;
        max-width: calc(100vw - 92px);
    }

    .navbar-brand img {
        height: 34px !important;
        margin-right: 6px !important;
    }

    .hero-section:has(.hero-slider) {
        height: 88svh;
        min-height: 560px;
        margin-top: 52px;
    }

    .hero-content {
        width: 92% !important;
        max-width: 520px;
        padding: 0 8px;
        top: 50% !important;
    }

    .hero-content h1,
    .hero-title,
    .page-header h1,
    .hero-section:not(:has(.hero-slider)) h1 {
        font-size: 2rem !important;
        line-height: 1.2 !important;
    }

    .hero-content .subtitle,
    .hero-subtitle,
    .page-header p,
    .section-subtitle {
        font-size: 1rem !important;
    }

    .page-header,
    .hero-section:not(:has(.hero-slider)) {
        padding: 88px 16px 36px !important;
        text-align: center;
        background: #DC0A12 !important;
    }

    .section-title {
        font-size: 1.75rem !important;
        margin-bottom: 1.6rem !important;
    }

    .about-section,
    .services-section,
    .shop-section,
    .products-section,
    .cart-section,
    .service-hero,
    .service-features,
    .story-section,
    .timeline-section,
    .values-section,
    .branches-section,
    .gallery-section,
    .cta-section {
        padding: 52px 0 !important;
    }

    .about-image img {
        height: 240px !important;
    }

    .product-image,
    .gallery-item img {
        height: 210px !important;
    }

    .hero-buttons,
    .quantity-controls {
        flex-wrap: wrap;
        justify-content: center;
    }

    .hero-buttons .btn,
    .hero-buttons a {
        width: 100%;
        max-width: 280px;
        text-align: center;
    }

    .location-header {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }

    .location-icon {
        margin: 0 auto 8px !important;
    }

    .location-title {
        font-size: 1.45rem !important;
    }

    .detail-item,
    .feature-item,
    .contact-item {
        align-items: flex-start;
    }

    .contact-icon,
    .feature-icon {
        margin-right: 14px;
        flex-shrink: 0;
    }

    .btn-contact {
        display: inline-block;
        margin-bottom: 10px;
        width: 100%;
        text-align: center;
    }

    .timeline::before {
        left: 18px !important;
    }

    .timeline-item:nth-child(odd) .timeline-content,
    .timeline-item:nth-child(even) .timeline-content {
        margin-left: 48px !important;
        margin-right: 0 !important;
        text-align: left !important;
    }

    .timeline-item:nth-child(odd) .timeline-content::before,
    .timeline-item:nth-child(even) .timeline-content::before {
        left: -42px !important;
        right: auto !important;
    }

    .hero-stats {
        flex-direction: column;
    }

    .stat-number {
        font-size: 2.1rem !important;
    }

    .cart-item,
    .checkout-form,
    .cart-summary {
        padding: 18px !important;
    }

    .cart-item-image {
        width: 64px !important;
        height: 64px !important;
    }

    .cart-summary {
        position: static !important;
        margin-top: 16px;
    }

    .cart-item .col-md-1,
    .cart-item .col-md-2,
    .cart-item .col-md-3,
    .cart-item .col-md-4 {
        align-items: flex-start;
    }

    .team-section,
    .video-section,
    .filter-section {
        padding: 52px 0 !important;
    }

    .team-card {
        padding: 24px 18px;
    }

    .footer {
        text-align: center;
        padding: 48px 0 20px !important;
    }

    .footer .social-links {
        justify-content: center;
    }

    .whatsapp-float {
        width: 52px !important;
        height: 52px !important;
        font-size: 26px !important;
        bottom: calc(82px + env(safe-area-inset-bottom)) !important;
    }

    .video-section .section-title,
    .video-section h2 {
        font-size: 2rem !important;
    }

    .video-section .section-subtitle {
        margin-bottom: 2rem !important;
        font-size: 1rem !important;
    }
}

/* Small phones */
@media (max-width: 576px) {
    .container,
    .container-fluid {
        padding-left: 16px;
        padding-right: 16px;
    }

    .hero-content h1,
    .hero-title,
    .page-header h1 {
        font-size: 1.7rem !important;
    }

    .service-card,
    .product-card,
    .value-card,
    .branch-card,
    .location-card {
        padding: 20px !important;
    }

    .service-icon,
    .value-icon,
    .branch-icon,
    .location-icon {
        width: 68px !important;
        height: 68px !important;
        font-size: 1.5rem !important;
    }

    .product-price {
        font-size: 1.35rem !important;
    }

    .filter-card,
    .contact-form,
    .contact-info {
        padding: 18px !important;
    }

    .map-container iframe {
        height: 220px;
    }

    .quantity-btn {
        width: 38px !important;
        height: 38px !important;
    }
}

/* Phone bottom navigation — like a mobile app tab bar */
@media (max-width: 991.98px) {
    body.has-mobile-bottom-nav {
        padding-bottom: calc(72px + env(safe-area-inset-bottom));
    }

    .navbar {
        padding: 0.35rem 0 !important;
        min-height: 0 !important;
    }

    .navbar .container {
        display: flex;
        align-items: center;
        justify-content: flex-start;
        min-height: 0;
        padding-top: 0;
        padding-bottom: 0;
    }

    .navbar-brand {
        padding: 0 !important;
        margin: 0 !important;
        font-size: 1rem !important;
        line-height: 1.1;
    }

    .navbar-brand img {
        height: 32px !important;
        margin-right: 8px !important;
    }

    .navbar-toggler,
    .navbar-collapse,
    .theme-toggle {
        display: none !important;
    }

    .mobile-bottom-nav {
        display: flex;
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 2000;
        height: calc(64px + env(safe-area-inset-bottom));
        padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
        background: #fff;
        border-top: 1px solid #ece8e4;
        box-shadow: 0 -8px 24px rgba(22, 22, 22, 0.08);
        justify-content: space-between;
        align-items: flex-start;
    }

    .mobile-nav-item {
        flex: 1;
        min-width: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 3px;
        text-decoration: none;
        color: #6b6560;
        padding: 4px 2px 0;
    }

    .mobile-nav-icon-wrap {
        position: relative;
        width: 24px;
        height: 22px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.05rem;
    }

    .mobile-nav-label {
        font-size: 0.58rem;
        font-weight: 700;
        letter-spacing: 0.01em;
        line-height: 1;
        white-space: nowrap;
    }

    .mobile-nav-item.active {
        color: var(--primary-red);
    }

    .mobile-cart-badge {
        position: absolute;
        top: -7px;
        right: -10px;
        min-width: 16px;
        height: 16px;
        padding: 0 4px;
        border-radius: 999px;
        background: var(--primary-red);
        color: #fff;
        font-size: 0.6rem;
        font-weight: 800;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    [data-theme="dark"] .mobile-bottom-nav {
        background: #161616;
        border-top-color: #33302e;
    }

    [data-theme="dark"] .mobile-nav-item {
        color: #c8c4c0;
    }

    [data-theme="dark"] .mobile-nav-item.active {
        color: #ff6b6b;
    }

    .whatsapp-float {
        bottom: calc(82px + env(safe-area-inset-bottom)) !important;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}
