/*
Theme Name: Emerge Digitech Premium
Theme URI: https://emergedigitech.in/
Description: A premium, highly customizable, and ultra-fast WordPress theme built for Emerge Digitech. Features dynamic WhatsApp "Shop Now" integration, brand filters, and fully editable options for administrator via WordPress Customizer.
Version: 1.5.0
Author: Antigravity AI
Author URI: https://deepmind.google/
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: emerge-premium
*/

/* Core CSS Variables - Bright Premium Palette matching Reference Image */
:root {
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-card: #ffffff;
    --border-color: rgba(0, 0, 0, 0.08);
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --primary-color: #0f172b;
    --secondary-color: #2563eb;
    --accent-color: #10b981;
    --accent-gradient: linear-gradient(135deg, #0f172b 0%, #2563eb 100%);
    --font-heading: 'Outfit', 'Poppins', -apple-system, sans-serif;
    --font-body: 'Inter', -apple-system, sans-serif;
    --transition: all 0.25s ease;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    --border-radius: 8px;
}

/* Reset and Global Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-color);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.3;
}

/* Layout Container */
.container {
    width: 92%;
    max-width: 1240px;
    margin: 0 auto;
    position: relative;
}

/* Pre-header Top Bar (Black styling) */
.topbar {
    background-color: #000000;
    padding: 8px 0;
    font-size: 13px;
    color: #ffffff;
}

.topbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px 20px;
}

.topbar-info a {
    color: rgba(255, 255, 255, 0.85);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-right: 20px;
    font-weight: 500;
}

.topbar-info a:hover {
    color: #ffffff;
}

.topbar-socials {
    display: flex;
    align-items: center;
    gap: 14px;
}

.topbar-socials a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.7);
    line-height: 0;
}

.topbar-socials a svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
    display: block;
}

.topbar-socials a:hover {
    color: #ffffff;
}

/* ==========================================================
   Main Site Header Area
   ========================================================== */
.site-header {
    background-color: #ffffff;
    border-bottom: 1px solid var(--border-color);
    padding: 14px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.site-header-grid {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 25px;
}

.site-logo {
    display: flex;
    align-items: center;
    min-width: 0;
}

.site-logo a {
    display: inline-flex;
    align-items: center;
}

.site-logo img, .custom-logo {
    max-height: 52px !important;
    height: auto !important;
    width: auto !important;
    max-width: 100%;
    display: block;
}

.header-center-callout {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    justify-self: center;
    padding: 8px 16px;
    border-left: 1px solid var(--border-color);
}

.callout-phone-icon {
    font-size: 20px;
    color: var(--secondary-color);
    flex-shrink: 0;
}

.callout-text {
    display: flex;
    flex-direction: column;
    white-space: nowrap;
}

.callout-text span {
    font-size: 11px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.callout-text strong {
    font-size: 16px;
    color: var(--secondary-color);
    font-weight: 700;
}

/* ---------------- Primary Navigation ---------------- */
.main-navigation {
    display: flex;
    align-items: center;
    justify-self: end;
}

.nav-menu {
    display: flex;
    gap: 6px;
    list-style: none;
    align-items: center;
    margin: 0;
}

.nav-menu li {
    position: relative;
}

.nav-menu > li > a {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #334155;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 10px 12px;
    border-radius: 6px;
    transition: var(--transition);
}

.nav-menu > li > a:hover,
.nav-menu > li.current-menu-item > a,
.nav-menu > li.current-menu-ancestor > a {
    color: var(--secondary-color);
    background-color: rgba(37, 99, 235, 0.07);
}

/* Small caret shown on items that have a dropdown (desktop) */
.nav-menu .menu-item-has-children > a::after {
    content: "";
    width: 6px;
    height: 6px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg);
    margin-top: -3px;
    opacity: 0.6;
    transition: var(--transition);
}

.nav-menu .menu-item-has-children:hover > a::after,
.nav-menu .menu-item-has-children:focus-within > a::after {
    transform: rotate(225deg);
    margin-top: 3px;
}

/* Dropdown toggle button — injected via JS, used for mobile tap-to-expand */
.dropdown-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    color: inherit;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.dropdown-toggle svg {
    width: 14px;
    height: 14px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform 0.25s ease;
}

/* Dropdown / sub-menu panel (desktop = hover flyout) */
.nav-menu .sub-menu {
    list-style: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 200px;
    background-color: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    box-shadow: 0 16px 32px rgba(15, 23, 42, 0.12);
    padding: 8px;
    margin: 0;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(6px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
    z-index: 1001;
}

.nav-menu .menu-item-has-children:hover > .sub-menu,
.nav-menu .menu-item-has-children:focus-within > .sub-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

.nav-menu .sub-menu li {
    width: 100%;
}

.nav-menu .sub-menu a {
    display: block;
    color: var(--text-primary);
    font-weight: 500;
    font-size: 13px;
    text-transform: none;
    letter-spacing: normal;
    padding: 10px 12px;
    border-radius: 6px;
    white-space: nowrap;
}

.nav-menu .sub-menu a:hover {
    background-color: var(--bg-secondary);
    color: var(--secondary-color);
}

/* Mobile Hamburger Toggle Button */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
    z-index: 1010;
}

.toggle-bar {
    width: 20px;
    height: 2px;
    background-color: var(--text-primary);
    border-radius: 2px;
    transition: transform 0.25s ease, opacity 0.2s ease;
}

.menu-toggle.is-active .toggle-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.menu-toggle.is-active .toggle-bar:nth-child(2) {
    opacity: 0;
}

.menu-toggle.is-active .toggle-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Brand Bar under Main Header */
.product-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 20px;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.product-img-wrapper {
    position: relative;
    height: 180px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--bg-secondary);
    border-radius: 6px;
    margin-bottom: 15px;
}

/* ---------------------------------------------------------------
   Product Catalog System (grid + card layout)
   Restructured to match a clean retail-catalog look. Since this is
   an enquiry site and not a checkout store, every "add to cart" /
   wishlist style icon is a WhatsApp contact point instead.
------------------------------------------------------------------ */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 24px;
}

.product-card {
    position: relative;
    height: 100%;
}

/* Top-left badge (brand / offer tag) sits just inside the card padding
   so it overlaps the top corner of the product image. */
.product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 20px;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(0,0,0,0.18);
    pointer-events: none;
}

/* Small circular WhatsApp "quick enquire" icon — replaces the
   wishlist/cart icon you'd see on a typical ecommerce product card. */
.product-quick-whatsapp {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: #25d366;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    transition: var(--transition);
}

.product-quick-whatsapp:hover {
    transform: scale(1.1);
}

.product-quick-whatsapp svg {
    width: 16px;
    height: 16px;
    fill: #ffffff;
    display: block;
}

.product-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

.product-brand {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: var(--text-secondary);
}

.product-price {
    font-size: 18px;
    font-weight: 800;
    font-family: var(--font-heading);
    color: var(--text-primary);
    white-space: nowrap;
}

.product-title {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.35;
    margin: 8px 0 10px 0;
    min-height: 44px;
    color: var(--text-primary);
}

.product-specs {
    list-style: none;
    margin-bottom: 18px;
    flex-grow: 1;
}

.product-specs li {
    font-size: 13px;
    color: var(--text-secondary);
    padding-left: 15px;
    position: relative;
    margin-bottom: 5px;
}

.product-specs li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 7px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background-color: var(--accent-color);
}

/* Primary contact CTA — deliberately branded as WhatsApp, not "Add to Cart"
   or "Shop Now", to keep the site's enquiry-only positioning clear. */
.btn-whatsapp-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    margin-top: auto;
    background-color: #25d366;
    color: #ffffff !important;
    font-weight: 700;
    font-size: 14px;
    line-height: 1;
    padding: 12px 16px;
    border-radius: 6px;
    text-align: center;
}

.btn-whatsapp-cta svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
    flex-shrink: 0;
    display: block;
}

.btn-whatsapp-cta:hover {
    background-color: #1ebe5b;
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(37, 211, 102, 0.35);
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .product-card {
        padding: 15px;
    }
    .product-img-wrapper {
        height: 180px;
    }
}

/* ---------------------------------------------------------------
   Product Card Action Row (View Product + Enquire on WhatsApp)
   Two buttons side-by-side at the bottom of every product card,
   across the homepage grid and every brand page.
------------------------------------------------------------------ */
.product-actions {
    display: flex;
    gap: 8px;
    margin-top: auto;
}

.product-actions .btn-whatsapp-cta {
    margin-top: 0;
    flex: 1;
    padding: 12px 10px;
    font-size: 13px;
}

.btn-view-product {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 10px;
    border-radius: 6px;
    border: 2px solid var(--primary-color);
    color: var(--primary-color) !important;
    background-color: transparent;
    font-weight: 700;
    font-size: 13px;
    line-height: 1;
    text-align: center;
    text-decoration: none;
    transition: var(--transition);
}

.btn-view-product:hover {
    background-color: var(--primary-color);
    color: #ffffff !important;
    transform: translateY(-2px);
}

@media (max-width: 480px) {
    .product-actions { flex-direction: column; }
}

/* ---------------------------------------------------------------
   "No products yet" empty state — replaces misleading fake demo
   cards on brand pages / homepage grid when the catalog is empty.
------------------------------------------------------------------ */
.products-empty-state {
    text-align: center;
    padding: 60px 20px;
    border: 1.5px dashed var(--border-color);
    border-radius: var(--border-radius);
    background-color: var(--bg-secondary);
}

.products-empty-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px auto;
}

.products-empty-state h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.products-empty-state p {
    color: var(--text-secondary);
    max-width: 440px;
    margin: 0 auto;
    font-size: 14px;
    line-height: 1.6;
}

.products-empty-admin-hint {
    margin-top: 14px !important;
    font-size: 12px !important;
    color: var(--text-secondary);
}

.products-empty-admin-hint a {
    font-weight: 600;
    text-decoration: underline;
}

/* ---------------------------------------------------------------
   Single Product Detail Page (single-product.php)
   Shown when a shopper clicks "View Product" — full spec sheet,
   description, WhatsApp/Call CTAs, and a "More from this brand"
   related-products strip reusing the standard .product-card markup.
------------------------------------------------------------------ */
.single-product-wrapper {
    padding: 50px 0 90px;
}

.single-product-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 34px;
}

.single-product-breadcrumb a {
    color: var(--text-secondary);
    text-decoration: none;
}

.single-product-breadcrumb a:hover {
    color: var(--primary-color);
}

.single-product-breadcrumb span:last-child {
    color: var(--text-primary);
    font-weight: 600;
}

.single-product-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-bottom: 90px;
}

/* Sliding image gallery: big main image + clickable thumbnail strip. */
.product-gallery {
    height: fit-content;
    position: sticky;
    top: 20px;
}

.product-gallery-main {
    position: relative;
    background-color: var(--bg-secondary);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
    min-height: 340px;
    overflow: hidden;
}

.product-gallery-main img {
    max-width: 100%;
    max-height: 420px;
    object-fit: contain;
    transition: opacity 0.2s ease;
    cursor: zoom-in;
}

.product-gallery-main:hover img {
    opacity: 0.95;
}

/* Gallery Navigation Arrows */
.product-gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    background-color: rgba(255, 255, 255, 0.95);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: bold;
    color: var(--primary-color);
    transition: all 0.3s ease;
    z-index: 5;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.product-gallery-nav:hover {
    background-color: var(--primary-color);
    color: white;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.product-gallery-nav.prev {
    left: 12px;
}

.product-gallery-nav.next {
    right: 12px;
}

.product-gallery-nav:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.discount-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background-color: #ef4444;
    color: #ffffff;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.3px;
    padding: 6px 14px;
    border-radius: 20px;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.product-gallery-thumbs {
    display: flex;
    gap: 10px;
    margin-top: 14px;
    flex-wrap: wrap;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding-bottom: 8px;
}

.product-thumb {
    width: 70px;
    height: 70px;
    padding: 0;
    border-radius: 6px;
    border: 2px solid var(--border-color);
    background-color: var(--bg-secondary);
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
    flex-shrink: 0;
}

.product-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.product-thumb:hover {
    border-color: var(--secondary-color);
}

.product-thumb.active {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 1px var(--primary-color);
}

.product-badge-inline {
    display: inline-block;
    background-color: var(--secondary-color);
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    padding: 6px 16px;
    border-radius: 20px;
    margin-bottom: 16px;
}

.single-product-title {
    font-family: var(--font-heading);
    font-size: 32px;
    font-weight: 700;
    line-height: 1.25;
    color: var(--text-primary);
    margin-bottom: 18px;
}

/* Price row with automatic MRP strikethrough + discount pill (only
   appears once a higher "MRP" custom field is filled for the product). */
.single-product-price {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 26px;
}

.offer-amount {
    font-family: var(--font-heading);
    font-size: 32px;
    font-weight: 800;
    color: var(--primary-color);
}

.mrp-amount {
    font-size: 17px;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: line-through;
}

.discount-pill {
    background-color: #dcfce7;
    color: #16a34a;
    font-size: 13px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
}

.single-product-specs {
    list-style: none;
    margin-bottom: 26px;
    border-top: 1px solid var(--border-color);
    padding-top: 6px;
}

.single-product-specs li {
    font-size: 15px;
    color: var(--text-primary);
    padding: 11px 0 11px 22px;
    position: relative;
    border-bottom: 1px solid var(--border-color);
}

.single-product-specs li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 19px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background-color: var(--accent-color);
}

.single-product-description {
    color: var(--text-secondary);
    line-height: 1.75;
    margin-bottom: 30px;
}

/* Single, prominent WhatsApp enquiry button — the one and only CTA on
   the product page, per the site's enquiry-only (not checkout) model. */
.btn-whatsapp-cta-large {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    background-color: #25d366;
    color: #ffffff !important;
    font-weight: 700;
    font-size: 17px;
    padding: 18px 24px;
    border-radius: 8px;
    text-align: center;
    text-decoration: none;
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.3);
    transition: var(--transition);
    margin-bottom: 20px;
}

.btn-whatsapp-cta-large svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
    flex-shrink: 0;
}

.btn-whatsapp-cta-large:hover {
    background-color: #1ebe5b;
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(37, 211, 102, 0.4);
}

.trust-badges-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 20px;
    margin-bottom: 22px;
}

.trust-badge-item {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
}

.back-to-brand-link {
    display: inline-block;
    margin-top: 4px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    text-decoration: none;
}

.back-to-brand-link:hover {
    color: var(--primary-color);
}

.related-products-section {
    border-top: 1px solid var(--border-color);
    padding-top: 50px;
}

@media (max-width: 860px) {
    .single-product-grid {
        grid-template-columns: 1fr;
        gap: 34px;
        margin-bottom: 60px;
    }
    .single-product-title { font-size: 26px; }
    .product-gallery { position: static; }
}

.brand-bar {
    background-color: #ffffff;
    border-bottom: 1px solid var(--border-color);
    padding: 15px 0;
}

.brand-bar-notice {
    text-align: center;
    color: #ff3366;
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.brand-bar-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
}

.brand-link {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 800;
    transition: var(--transition);
}

/* Colors matching reference image */
.brand-lenovo { color: #e22b2b; }
.brand-dell { color: #0076c0; }
.brand-acer { color: #76b900; }
.brand-asus { color: #000000; }
.brand-msi { color: #ff153d; }
.brand-motorola { color: #0087a5; }
.brand-apple { color: #000000; }

.brand-link:hover {
    opacity: 0.7;
    transform: scale(1.05);
}

/* Brand Logos Strip (Above Hero Slider) */
.brand-logos-section {
    width: 100%;
    background-color: #f8fafc;
    padding: 40px 0;
}

.brand-logos-heading {
    text-align: center;
    font-size: 24px;
    color: var(--text-primary);
    margin-bottom: 28px;
}

.brand-logos-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 22px;
}

.brand-logo-card {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 190px;
    height: 96px;
    background-color: #ffffff;
    border-radius: 18px;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
    transition: var(--transition);
    padding: 16px 24px;
}

.brand-logo-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
}

.brand-logo-img {
    max-width: 100%;
    max-height: 42px;
    object-fit: contain;
}

.brand-logo-fallback {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 22px;
    letter-spacing: -0.5px;
}

/* Hero Slider Section - Full Screen Image Carousel */
.hero-slider-wrapper {
    position: relative;
    width: 100%;
    height: 92vh;
    min-height: 480px;
    max-height: 860px;
    overflow: hidden;
    background-color: #0f172a;
}

.hero-slide {
    opacity: 0;
    visibility: hidden;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    transition: opacity 0.9s ease;
    z-index: 1;
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

/* Full-bleed background image / fallback layer */
.hero-slide .slide-bg-image,
.hero-slide .slide-bg-fallback {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-slide .slide-bg-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-slide .slide-bg-fallback svg {
    width: 100%;
    height: 100%;
}

.hero-slide .container {
    position: relative;
    z-index: 3;
    height: 100%;
}

.hero-slide-grid {
    display: flex;
    align-items: center;
    height: 100%;
}

.slide-content {
    max-width: 560px;
    animation: heroContentUp 0.9s ease;
}

.slide-content h2 {
    font-size: 46px;
    color: #ffffff;
    line-height: 1.2;
    margin-bottom: 18px;
    text-shadow: 0 2px 12px rgba(0,0,0,0.25);
}

.slide-content p {
    font-size: 17px;
    color: rgba(255,255,255,0.88);
    margin-bottom: 28px;
}

@keyframes heroContentUp {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Professional default hero banner (shown until a real slide is configured) */
.hero-default-banner {
    background:
        radial-gradient(circle at 15% 25%, rgba(37, 99, 235, 0.35), transparent 45%),
        radial-gradient(circle at 85% 75%, rgba(16, 185, 129, 0.25), transparent 50%),
        linear-gradient(135deg, #0f172b 0%, #1e293b 55%, #0f172b 100%);
}

.hero-default-eyebrow {
    display: inline-block;
    color: #93c5fd;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.hero-default-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: #25d366;
    color: #ffffff !important;
    font-weight: 700;
    font-size: 14px;
    padding: 13px 26px;
    border-radius: 6px;
    transition: var(--transition);
}

.hero-default-cta svg {
    fill: currentColor;
    flex-shrink: 0;
}

.hero-default-cta:hover {
    background-color: #1ebe5b;
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(37, 211, 102, 0.35);
}

.hero-default-admin-hint {
    margin-top: 18px;
    font-size: 12px !important;
    color: rgba(255,255,255,0.6) !important;
    max-width: 420px;
}

/* Slider Controls */
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 46px;
    height: 46px;
    background-color: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition);
    font-size: 22px;
    color: #ffffff;
    backdrop-filter: blur(4px);
}

.slider-arrow:hover {
    background-color: rgba(255, 255, 255, 0.9);
    color: #0f172a;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.slider-arrow-prev { left: 24px; }
.slider-arrow-next { right: 24px; }

/* Slider Dot Navigation */
.slider-dots {
    position: absolute;
    left: 50%;
    bottom: 26px;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.6);
    cursor: pointer;
    padding: 0;
    transition: var(--transition);
}

.slider-dot.active,
.slider-dot:hover {
    background-color: #ffffff;
    transform: scale(1.2);
}

/* Intro Showroom paragraphs */
.intro-showroom-section {
    padding: 50px 0;
    background-color: #ffffff;
    border-bottom: 1px solid var(--border-color);
}

.intro-showroom-wrapper {
    max-width: 960px;
    margin: 0 auto;
}

.intro-title {
    font-size: 26px;
    color: #0f172a;
    margin-bottom: 15px;
    font-family: var(--font-heading);
}

.intro-body {
    color: #475569;
    font-size: 14.5px;
    line-height: 1.75;
}

.intro-body p {
    margin-bottom: 15px;
}

.read-more-link {
    font-weight: 600;
    color: var(--secondary-color);
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

/* Floating Actions Widget */
.floating-actions-bar {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    z-index: 9999;
}

.floating-btn {
    width: 48px;
    height: 48px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white !important;
    font-size: 18px;
    transition: var(--transition);
    box-shadow: -2px 2px 8px rgba(0,0,0,0.1);
}

.floating-btn:hover {
    transform: translateX(-4px);
    width: 52px;
}

.floating-wa { background-color: #25d366; border-top-left-radius: 6px; }
.floating-call { background-color: #0076c0; }
.floating-store { background-color: #e22b2b; border-bottom-left-radius: 6px; }

.floating-btn svg {
    fill: currentColor;
    width: 20px;
    height: 20px;
}

/* Customizer Override styling outputs */
.site-title-fallback h2 {
    color: var(--primary-color);
}
.cta-button {
    background: var(--accent-gradient);
    color: white !important;
    padding: 10px 22px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 14px;
}

.cta-button:hover {
    opacity: 0.9;
}

/* --- RESPONSIVE WORK FOR TABLET AND MOBILE DEVICES --- */
@media (max-width: 992px) {
    .site-header-grid {
        grid-template-columns: 1fr auto auto;
    }
    
    .header-center-callout {
        justify-self: end;
    }

    .main-navigation {
        position: static;
    }

    .nav-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        max-height: calc(100vh - 100%);
        overflow-y: auto;
        background-color: #ffffff;
        border-top: 1px solid var(--border-color);
        box-shadow: 0 10px 25px rgba(0,0,0,0.08);
        padding: 10px;
        gap: 2px;
        align-items: stretch;
    }

    .nav-menu.is-open {
        display: flex;
    }

    .nav-menu li {
        width: 100%;
    }

    .nav-menu > li > a {
        width: 100%;
        padding: 14px 12px;
        border-radius: 8px;
        justify-content: flex-start;
    }

    /* Hide the CSS-only caret on mobile; the JS-injected button drives this instead */
    .nav-menu .menu-item-has-children > a::after {
        display: none;
    }

    .dropdown-toggle {
        display: flex;
        position: absolute;
        top: 4px;
        right: 4px;
        width: 40px;
        height: 40px;
        border-radius: 6px;
    }

    .dropdown-toggle:hover {
        background-color: var(--bg-secondary);
    }

    .dropdown-toggle.is-open svg {
        transform: rotate(180deg);
    }

    /* Sub-menu becomes an accordion panel instead of a hover flyout */
    .nav-menu .sub-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: none;
        box-shadow: none;
        border: none;
        background-color: var(--bg-secondary);
        padding: 0;
        margin: 0 0 0 12px;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.25s ease, padding 0.25s ease;
    }

    .nav-menu li.submenu-open > .sub-menu {
        max-height: 500px;
        padding: 6px;
        margin-top: 4px;
        margin-bottom: 6px;
    }

    .menu-toggle {
        display: flex;
        margin-left: 15px;
    }

    .hero-slider-wrapper {
        height: 78vh;
        min-height: 420px;
    }

    .slide-content {
        max-width: 480px;
    }

    .slide-content h2 {
        font-size: 34px;
    }

    .slide-content p {
        font-size: 15px;
    }

    .hero-default-cta {
        font-size: 13px;
        padding: 12px 22px;
    }
}

@media (max-width: 768px) {
    .hero-slider-wrapper {
        height: 68vh;
        min-height: 380px;
    }

    .hero-slide .container {
        display: flex;
        align-items: center;
    }

    .hero-slide-grid {
        width: 100%;
        justify-content: center;
        text-align: center;
    }

    .slide-content {
        max-width: 100%;
    }

    .slide-content h2 {
        font-size: 28px;
    }

    .slide-content p {
        font-size: 14.5px;
        margin-bottom: 20px;
    }

    .hero-default-eyebrow {
        display: block;
    }

    .hero-default-cta {
        display: inline-flex;
    }

    .hero-default-admin-hint {
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }

    .slider-dots {
        bottom: 16px;
    }
}

@media (max-width: 600px) {
    .hero-slider-wrapper {
        height: 60vh;
        min-height: 340px;
    }

    .hero-slide-grid {
        align-items: center;
        padding-bottom: 40px;
    }

    .slide-content {
        max-width: 100%;
        text-align: center;
        margin: 0 auto;
    }

    .slide-content h2 {
        font-size: 24px;
        line-height: 1.25;
    }

    .slide-content p {
        font-size: 14px;
        margin-top: 10px;
    }

    .hero-default-cta {
        width: 100%;
        justify-content: center;
        font-size: 13px;
        padding: 13px 18px;
    }

    .slider-arrow {
        width: 32px;
        height: 32px;
        font-size: 16px;
        display: none; /* Hide arrows on small mobile to avoid clutter */
    }

    .brand-logos-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .brand-logo-card {
        width: 100%;
        height: 60px;
    }
}

@media (max-width: 420px) {
    .hero-slider-wrapper {
        height: 56vh;
        min-height: 300px;
    }

    .slide-content h2 {
        font-size: 20px;
    }

    .slide-content p {
        font-size: 13px;
        margin-bottom: 16px;
    }

    .hero-default-eyebrow {
        font-size: 11px;
        margin-bottom: 8px;
    }

    .hero-default-cta {
        font-size: 12px;
        padding: 11px 16px;
    }

    .hero-default-admin-hint {
        font-size: 11px !important;
    }
}

@media (max-width: 768px) {
    .site-header-grid {
        grid-template-columns: 1fr auto;
        gap: 10px;
    }

    .header-center-callout {
        display: none; /* Hide callout details on mobile header to save space */
    }

    .site-logo img, .custom-logo {
        max-height: 42px !important;
    }

    .topbar-info a {
        margin-right: 12px;
        font-size: 12px;
    }

    .topbar-socials {
        gap: 10px;
    }

    .brand-logos-grid {
        gap: 14px;
    }

    .brand-logo-card {
        width: 130px;
        height: 76px;
        padding: 10px 16px;
    }

    .brand-logo-fallback {
        font-size: 17px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* --- FOOTER SECTION STYLING --- */
.site-footer {
    background-color: var(--primary-color);
    color: #cbd5e1;
    padding: 60px 0 30px 0;
    margin-top: 50px;
}

.site-footer h3 {
    color: #ffffff;
    font-size: 16px;
    margin-bottom: 20px;
    text-transform: uppercase;
    font-family: var(--font-heading);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
}

.footer-widget {
    display: flex;
    flex-direction: column;
}

.footer-about {
    grid-column: 1;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: #cbd5e1;
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--secondary-color);
    color: #ffffff;
}

.site-footer ul, 
.footer-widget ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.site-footer li, 
.footer-widget li {
    margin-bottom: 10px;
    font-size: 14px;
    list-style-type: none !important;
}

.site-footer a {
    color: #94a3b8;
    transition: var(--transition);
}

.site-footer a:hover {
    color: #ffffff;
    padding-left: 4px;
}

.footer-bottom {
    margin-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: #64748b;
    flex-wrap: wrap;
    gap: 15px;
}

@media (max-width: 768px) {
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
}

/* --- PRODUCT IMAGE CONSTRAINT --- */
.product-img-wrapper svg,
.product-img-wrapper img {
    max-width: 100% !important;
    max-height: 100% !important;
    width: auto !important;
    height: auto !important;
    display: block;
    margin: 0 auto;
}

/* --- BRAND PAGE PAGINATION ("Page 1 2 3...") --- */
.brand-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    grid-column: 1 / -1;
    margin: -40px 0 80px 0;
}
.brand-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 14px;
    border: 1.5px solid var(--border-color);
    border-radius: var(--border-radius);
    background: var(--bg-card);
    color: var(--primary-color);
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.brand-pagination a.page-numbers:hover {
    border-color: var(--pagination-accent, var(--primary-color));
    color: var(--pagination-accent, var(--primary-color));
}
.brand-pagination .page-numbers.current {
    background: var(--pagination-accent, var(--primary-color));
    border-color: var(--pagination-accent, var(--primary-color));
    color: #fff;
}
.brand-pagination .page-numbers.dots {
    border: none;
    background: none;
    color: var(--text-secondary);
}

/* =================================================================
   SERVICES PAGE (template-services.php)
   Every card is powered by the "Service" custom post type, so admins
   can edit headings/paragraphs/photos from wp-admin without touching
   this file — this block only controls how those cards look.
================================================================= */

.services-page-header {
    text-align: center;
    margin-bottom: 60px;
}

.services-page-title {
    font-size: 48px;
    margin-top: 10px;
}

.services-page-subtitle {
    color: var(--text-secondary);
    max-width: 600px;
    margin: 15px auto 0 auto;
    font-size: 18px;
}

.services-page-divider {
    width: 80px;
    height: 3px;
    background: var(--accent-gradient);
    margin: 25px auto 0 auto;
    border-radius: 3px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
    margin-bottom: 70px;
}

.service-card {
    position: relative;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.service-card::before {
    content: "";
    display: block;
    height: 5px;
    width: 100%;
    background: var(--service-accent, var(--accent-gradient));
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(15, 23, 43, 0.12);
    border-color: color-mix(in srgb, var(--service-accent, var(--primary-color)) 35%, var(--border-color));
}

.service-card-photo {
    width: 100%;
    height: 190px;
    overflow: hidden;
    background-color: var(--bg-secondary);
}

.service-card-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.service-card:hover .service-card-photo img {
    transform: scale(1.06);
}

.service-card-body {
    padding: 36px 34px 34px 34px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.service-card-icon {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    margin-bottom: 22px;
    background: color-mix(in srgb, var(--service-accent, var(--primary-color)) 14%, transparent);
    border: 1px solid color-mix(in srgb, var(--service-accent, var(--primary-color)) 25%, transparent);
    transition: transform 0.25s ease;
}

.service-card:hover .service-card-icon {
    transform: scale(1.08) rotate(-4deg);
}

.service-card-title {
    font-size: 22px;
    margin-bottom: 14px;
    line-height: 1.3;
}

.service-card-text {
    color: var(--text-secondary);
    font-size: 14.5px;
    line-height: 1.75;
    margin-bottom: 26px;
    flex: 1;
}

.service-card-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    align-self: flex-start;
    padding: 12px 22px;
    border-radius: 999px;
    background: var(--service-accent, var(--accent-gradient));
    color: #ffffff !important;
    font-weight: 700;
    font-size: 13.5px;
    text-decoration: none;
    box-shadow: 0 10px 22px -8px color-mix(in srgb, var(--service-accent, var(--primary-color)) 70%, transparent);
    transition: transform 0.2s ease, box-shadow 0.2s ease, gap 0.2s ease;
}

.service-card-cta:hover {
    transform: translateY(-2px);
    gap: 12px;
    color: #ffffff !important;
    box-shadow: 0 14px 28px -8px color-mix(in srgb, var(--service-accent, var(--primary-color)) 80%, transparent);
}

.service-card-badge {
    position: absolute;
    top: 18px;
    right: -34px;
    background: var(--service-accent, var(--accent-gradient));
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 5px 40px;
    transform: rotate(35deg);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    z-index: 2;
}

.service-card-edit {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 3;
    background: rgba(15, 23, 43, 0.85);
    color: #fff !important;
    font-size: 11px;
    font-weight: 600;
    padding: 5px 10px;
    border-radius: 999px;
    text-decoration: none;
    opacity: 0;
    transform: translateY(-4px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.service-card:hover .service-card-edit {
    opacity: 1;
    transform: translateY(0);
}

.services-empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    border: 1.5px dashed var(--border-color);
    border-radius: var(--border-radius);
    background-color: var(--bg-secondary);
}

.services-empty-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px auto;
    font-size: 28px;
    background-color: color-mix(in srgb, var(--primary-color) 12%, transparent);
}

.services-empty-state h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.services-empty-state p {
    color: var(--text-secondary);
    max-width: 440px;
    margin: 0 auto;
    font-size: 14px;
    line-height: 1.6;
}

.services-admin-hint {
    text-align: center;
    margin: -40px 0 50px 0 !important;
    font-size: 12px !important;
    color: var(--text-secondary);
}

.services-admin-hint a {
    font-weight: 600;
    text-decoration: underline;
}

.services-admin-hint span {
    display: block;
    margin-top: 2px;
    opacity: 0.75;
}

.services-cta-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    flex-wrap: wrap;
    background: var(--accent-gradient);
    border-radius: var(--border-radius);
    padding: 46px 48px;
    margin-bottom: 60px;
}

.services-cta-text h2 {
    color: #ffffff;
    font-size: 28px;
    margin-bottom: 8px;
}

.services-cta-text p {
    color: rgba(255, 255, 255, 0.82);
    font-size: 15px;
    max-width: 480px;
}

.services-cta-button {
    width: auto !important;
    flex-shrink: 0;
    padding: 15px 30px !important;
}

@media (max-width: 640px) {
    .services-page-title { font-size: 34px; }
    .services-grid { grid-template-columns: 1fr; gap: 22px; }
    .service-card-body { padding: 28px 24px 26px 24px; }
    .services-cta-banner { flex-direction: column; text-align: center; padding: 36px 26px; }
    .services-cta-text p { max-width: 100%; }
}

/* =====================================================================
 * HOMEPAGE EXTRA BLOCKS: Categories Grid, Why Us / Vision,
 * Repair Specialties, Branch Network
 * ===================================================================== */

/* --- 1. Product Categories Grid --- */
.categories-grid-section {
    padding: 70px 0;
    background-color: var(--bg-primary);
}

.categories-grid-heading {
    font-size: 30px;
    text-align: center;
    margin-bottom: 40px;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.category-card {
    display: block;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 30px 26px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    color: var(--text-primary);
}

a.category-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.1);
    border-color: var(--secondary-color);
}

.category-card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: rgba(37, 99, 235, 0.1);
    color: var(--secondary-color);
    margin-bottom: 18px;
}

.category-card-title {
    font-size: 19px;
    margin-bottom: 10px;
}

.category-card-desc {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* --- 2. Why Choose Us + Our Vision --- */
.why-vision-section {
    padding: 70px 0;
    background-color: var(--bg-secondary);
}

.why-vision-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 26px;
}

.why-vision-card {
    background: var(--primary-color);
    border-radius: 14px;
    padding: 40px 36px;
}

.why-vision-card h3 {
    color: #ffffff;
    font-size: 22px;
    margin-bottom: 22px;
}

.why-vision-intro {
    color: rgba(255, 255, 255, 0.88);
    font-size: 15px;
    margin-bottom: 20px;
    line-height: 1.7;
}

.why-vision-intro strong {
    color: #ffffff;
}

.why-vision-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.why-vision-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.why-vision-list li svg {
    flex-shrink: 0;
    margin-top: 2px;
}

.why-vision-list li span {
    color: rgba(255, 255, 255, 0.88);
    font-size: 14.5px;
    line-height: 1.6;
}

.why-vision-list li span strong {
    color: #ffffff;
}

/* --- 3. Repair Specialties Grid --- */
.repair-specialties-section {
    padding: 70px 0;
    background-color: var(--bg-primary);
}

.repair-specialties-heading {
    font-size: 28px;
    text-align: center;
    margin-bottom: 40px;
}

.repair-specialties-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
}

.repair-specialty-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 26px 28px;
}

.repair-specialty-card h3 {
    font-size: 17px;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.repair-specialty-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
}

.repair-specialty-card p strong {
    color: var(--text-primary);
}

/* --- 4. Branch Network Grid --- */
.branch-network-section {
    padding: 70px 0;
    background-color: var(--bg-secondary);
}

.branch-network-heading {
    font-size: 28px;
    text-align: center;
    margin-bottom: 40px;
}

.branch-network-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.branch-card {
    background: var(--accent-gradient);
    border-radius: 12px;
    padding: 26px 22px;
    color: #ffffff;
}

.branch-card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
    margin-bottom: 16px;
}

.branch-card h3 {
    color: #ffffff;
    font-size: 16px;
    margin-bottom: 10px;
}

.branch-card p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 13.5px;
    line-height: 1.6;
}

/* --- Responsive --- */
@media (max-width: 900px) {
    .categories-grid { grid-template-columns: repeat(2, 1fr); }
    .why-vision-grid { grid-template-columns: 1fr; }
    .repair-specialties-grid { grid-template-columns: 1fr; }
    .branch-network-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
    .categories-grid { grid-template-columns: 1fr; }
    .branch-network-grid { grid-template-columns: 1fr; }
    .categories-grid-heading,
    .repair-specialties-heading,
    .branch-network-heading { font-size: 24px; }
    .why-vision-card { padding: 30px 24px; }
}

/* --- CONTACT PAGE STYLING --- */
.contact-page-wrapper {
    background: radial-gradient(circle at center, rgba(59, 130, 246, 0.08) 0%, transparent 60%);
    padding: 60px 0;
}

.contact-header {
    text-align: center;
    margin-bottom: 60px;
}

.contact-header h1 {
    font-size: 48px;
    margin-top: 10px;
}

.contact-header p {
    color: var(--text-secondary);
    max-width: 600px;
    margin: 15px auto 0 auto;
    font-size: 18px;
}

.header-divider {
    width: 80px;
    height: 3px;
    background: var(--accent-gradient);
    margin: 25px auto 0 auto;
}

.contact-branches-section {
    margin-bottom: 80px;
}

.contact-branches-title {
    font-size: 32px;
    text-align: center;
    margin-bottom: 40px;
}

.contact-branches-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.contact-branch-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 25px;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-branch-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.contact-branch-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.contact-branch-header svg {
    margin-right: 10px;
}

.contact-branch-header h3 {
    font-size: 18px;
    margin: 0;
    color: var(--primary-color);
}

.contact-branch-address {
    color: var(--text-secondary);
    font-size: 13px;
    line-height: 1.6;
    margin-bottom: 15px;
}

.contact-branch-phone {
    display: flex;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
}

.contact-branch-phone svg {
    margin-right: 8px;
    flex-shrink: 0;
}

.contact-branch-phone a {
    color: var(--secondary-color);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
}

.contact-form-container {
    display: flex;
    justify-content: center;
    margin-bottom: 80px;
}

.contact-form-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 40px;
    box-shadow: var(--shadow);
    max-width: 600px;
    width: 100%;
}

.contact-form-card h3 {
    font-size: 24px;
    margin-bottom: 25px;
    text-align: center;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

@media (max-width: 992px) {
    .contact-branches-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .contact-header h1 {
        font-size: 36px;
    }
    .contact-header p {
        font-size: 16px;
    }
}

@media (max-width: 560px) {
    .contact-branches-grid {
        grid-template-columns: 1fr;
    }
    .contact-form-card {
        padding: 25px;
    }
}

/* --- ABOUT PAGE STYLING --- */
.about-page-wrapper {
    background: radial-gradient(circle at top right, rgba(59, 130, 246, 0.1), transparent 40%);
    padding: 60px 0;
}

.about-header {
    text-align: center;
    margin-bottom: 60px;
}

.about-header h1 {
    font-size: 48px;
    margin-top: 10px;
}

.about-header p {
    color: var(--text-secondary);
    max-width: 600px;
    margin: 15px auto 0 auto;
    font-size: 18px;
}

.about-header .section-tag {
    display: inline-block;
}

.about-main-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 80px;
}

.about-text-content h2 {
    font-size: 32px;
    margin-bottom: 20px;
}

.about-text-content p {
    color: var(--text-secondary);
    margin-bottom: 20px;
    font-size: 16px;
    line-height: 1.8;
}

.about-why-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 40px;
    box-shadow: var(--shadow);
}

.about-why-card h3 {
    font-size: 24px;
    margin-bottom: 25px;
    color: var(--primary-color);
}

.why-item {
    margin-bottom: 20px;
}

.why-item:last-child {
    margin-bottom: 0;
}

.why-item h4 {
    margin-bottom: 5px;
    font-size: 16px;
}

.why-item p {
    color: var(--text-secondary);
    font-size: 14px;
}

@media (max-width: 992px) {
    .about-main-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .about-header h1 {
        font-size: 38px;
    }
}

@media (max-width: 768px) {
    .about-header h1 {
        font-size: 32px;
    }
    .about-header p {
        font-size: 16px;
    }
    .about-text-content h2 {
        font-size: 26px;
    }
}

@media (max-width: 480px) {
    .about-page-wrapper {
        padding: 40px 0;
    }
    .about-header {
        margin-bottom: 40px;
    }
    .about-why-card {
        padding: 25px;
    }
    .about-text-content h2 {
        font-size: 24px;
    }
}

/* --- RESPONSIVE FOOTER FIXES --- */
/* Tablet Breakpoint */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    
    .footer-about {
        grid-column: 1 / -1;
    }
}

/* Mobile Breakpoint */
@media (max-width: 768px) {
    .site-footer {
        padding: 40px 0 20px 0;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .footer-about {
        grid-column: 1;
        text-align: center;
    }
    
    .footer-widget {
        text-align: center;
    }
    
    .footer-widget h3 {
        font-size: 14px;
        margin-bottom: 15px;
    }
    
    .footer-widget ul {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
}

/* Small Mobile Breakpoint */
@media (max-width: 480px) {
    .site-footer {
        padding: 30px 0 15px 0;
    }
    
    .footer-grid {
        gap: 20px;
    }
    
    .footer-widget h3 {
        font-size: 13px;
        margin-bottom: 12px;
    }
    
    .footer-widget li {
        font-size: 13px;
        margin-bottom: 8px;
    }
    
    .site-footer a {
        font-size: 13px;
    }
    
    .footer-bottom {
        font-size: 12px;
        gap: 8px;
    }
    
    .footer-bottom p {
        margin: 0;
    }
}

/* --- ABOUT PAGE SERVICES & VISION SECTIONS --- */
.about-services-section {
    margin-bottom: 80px;
    padding: 60px 0;
    border-top: 1px solid var(--border-color);
}

.about-services-section h2 {
    font-size: 32px;
    margin-bottom: 40px;
    color: var(--primary-color);
    text-align: center;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    border-color: var(--secondary-color);
}

.service-card h3 {
    font-size: 18px;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.service-card p {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
}

.about-vision-section {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, rgba(37, 99, 235, 0.03) 100%);
    border-radius: var(--border-radius);
    padding: 60px;
    margin-bottom: 60px;
}

.about-vision-section h2 {
    font-size: 32px;
    margin-bottom: 15px;
    color: var(--primary-color);
    text-align: center;
}

.about-vision-section > p {
    font-size: 16px;
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 40px;
}

.vision-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
}

.vision-item {
    text-align: center;
}

.vision-item strong {
    display: block;
    font-size: 16px;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.vision-item p {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
}

/* Responsive adjustments for About page sections */
@media (max-width: 768px) {
    .about-services-section {
        padding: 40px 0;
        margin-bottom: 60px;
    }
    
    .about-services-section h2 {
        font-size: 24px;
        margin-bottom: 30px;
    }
    
    .services-grid {
        gap: 20px;
    }
    
    .service-card {
        padding: 20px;
    }
    
    .about-vision-section {
        padding: 40px 20px;
        margin-bottom: 40px;
    }
    
    .about-vision-section h2 {
        font-size: 24px;
        margin-bottom: 10px;
    }
    
    .about-vision-section > p {
        margin-bottom: 30px;
    }
    
    .vision-list {
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .about-services-section {
        padding: 30px 0;
        margin-bottom: 40px;
    }
    
    .about-services-section h2 {
        font-size: 20px;
        margin-bottom: 20px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .service-card {
        padding: 15px;
    }
    
    .service-card h3 {
        font-size: 16px;
    }
    
    .service-card p {
        font-size: 13px;
    }
    
    .about-vision-section {
        padding: 30px 15px;
        margin-bottom: 30px;
    }
    
    .about-vision-section h2 {
        font-size: 20px;
    }
    
    .vision-list {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}
