/*
Theme Name: ONVO Bath — ANV Metal Products
Theme URI: https://onvobath.com
Author: ANV Metal Products
Author URI: https://onvobath.com
Description: A premium, modern, and dynamic product theme for bathware, sanitaryware, faucets, brass fittings, and bathroom accessories. Features polished layouts, refined product cards, and responsive interactions.
Version: 1.0
Requires at least: 5.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: anv-metal-products
*/

/* Google Fonts are loaded via <link rel="preconnect"> + wp_head() in header.php/functions.php.
   Using @import here would block CSS parsing — that approach has been replaced. */

:root {
    --primary-color: #D4AF37;
    /* Premium Gold */
    --primary-dark: #B5952F;
    --secondary-color: #101014;
    /* Deep Dark Grey/Black */
    --accent-color: #25252E;
    --text-main: #EFEDE8;
    --text-light: #C7C3B8;
    --text-muted: #8F8A80;
    --bg-base: #050507;
    --bg-section: #0B0B0F;
    --bg-section-alt: #111117;
    --bg-card: #15151B;
    --bg-light: #0B0B0F;
    --bg-white: #FFFFFF;

    --font-heading: 'Playfair Display', serif;
    --font-body: 'Outfit', sans-serif;

    /* Performance: use specific properties instead of 'all' to avoid full paint/layout recalculation */
    --transition: 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --transition-transform: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --transition-color: color 0.3s ease, background-color 0.3s ease;
    --transition-shadow: box-shadow 0.3s ease;
    --shadow-sm: 0 8px 18px rgba(0, 0, 0, 0.28);
    --shadow-md: 0 18px 42px rgba(0, 0, 0, 0.38);
    --shadow-lg: 0 28px 70px rgba(0, 0, 0, 0.58);

    --glass-bg: rgba(8, 8, 12, 0.88);
    --glass-border: 1px solid rgba(255, 255, 255, 0.1);
    --glass-blur: blur(12px);
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    color: var(--text-main);
    background-color: var(--bg-base);
    background-image:
        linear-gradient(135deg, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px),
        radial-gradient(ellipse 85% 46% at 50% -8%, rgba(212, 175, 55, 0.14) 0%, rgba(212, 175, 55, 0.04) 42%, transparent 70%),
        radial-gradient(ellipse 50% 42% at 96% 35%, rgba(152, 130, 85, 0.12) 0%, transparent 64%),
        radial-gradient(ellipse 45% 38% at 3% 78%, rgba(255, 255, 255, 0.045) 0%, transparent 62%),
        linear-gradient(180deg, #050507 0%, #0A0A0E 42%, #050507 100%);
    background-size: 42px 42px, cover, cover, cover, cover;
    background-repeat: repeat, no-repeat, no-repeat, no-repeat, no-repeat;
    background-position: 0 0, center top, right center, left bottom, center;
    background-attachment: fixed;
    line-height: 1.7;
    overflow-x: hidden;
    /* Stop iOS Safari from auto-inflating text after orientation change */
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

/* iOS Safari (and many Android browsers) render `background-attachment: fixed`
   by scaling the background to the full document height, which blows the gold
   gradients up and makes scrolling stutter. Pin it to the viewport instead on
   touch / small screens. */
@media (max-width: 1024px), (hover: none) and (pointer: coarse) {
    body {
        background-attachment: scroll;
        /* Keep the gradients viewport-proportioned (as `fixed` did) instead of
           stretching them across the whole document height. */
        background-size: 42px 42px, 100vw 100vh, 100vw 100vh, 100vw 100vh, 100vw 100vh;
    }
}

p {
    line-height: 1.75;
    margin-bottom: 1rem;
}

strong {
    color: var(--bg-white);
    font-weight: 600;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: #FFFFFF;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2.5rem);
}

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

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

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.mt-2 {
    margin-top: 2rem;
}

.mb-2 {
    margin-bottom: 2rem;
}

.py-5 {
    padding: 5rem 0;
}

.bg-dark {
    background:
        radial-gradient(ellipse 65% 80% at 80% 0%, rgba(212, 175, 55, 0.08), transparent 68%),
        linear-gradient(180deg, var(--bg-section) 0%, var(--bg-section-alt) 50%, var(--bg-section) 100%);
    color: var(--text-main);
}

.bg-dark h1,
.bg-dark h2,
.bg-dark h3 {
    color: var(--bg-white);
}

.text-primary {
    color: var(--primary-color);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 30px;
    font-family: var(--font-body);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 4px;
    transition: transform 0.24s ease, box-shadow 0.24s ease, background-color 0.24s ease, color 0.24s ease, border-color 0.24s ease;
    cursor: pointer;
    border: 1px solid transparent;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn:active {
    transform: translateY(0);
}

.btn:disabled,
.btn[aria-disabled="true"] {
    opacity: 0.62;
    pointer-events: none;
    box-shadow: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), #e6c25a);
    color: #111;
    border-color: rgba(212, 175, 55, 0.6);
    box-shadow: 0 8px 22px rgba(212, 175, 55, 0.24);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #e4c057, #f1d67a);
    box-shadow: 0 12px 28px rgba(212, 175, 55, 0.34);
    color: #111;
}


.btn-outline {
    background-color: rgba(212, 175, 55, 0.05);
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background-color: rgba(212, 175, 55, 0.17);
    color: #f4d980;
}

/* Header (Glassmorphism) */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: var(--glass-bg);
    -webkit-backdrop-filter: var(--glass-blur);
    backdrop-filter: var(--glass-blur);
    border-bottom: var(--glass-border);
    padding: 10px 32px;
    transition: box-shadow 0.3s ease, background-color 0.3s ease;
    will-change: backdrop-filter;
}

.site-header .container {
    max-width: 100%;
    padding: 0;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-logo-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.site-logo-frame {
    width: clamp(170px, 15vw, 246px);
    max-width: 42vw;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    overflow: visible;
}

.site-logo {
    width: auto;
    max-width: 100%;
    height: 68px;
    display: block;
    object-fit: contain;
    object-position: left center;
    image-rendering: auto;
}


.header-right {
    display: flex;
    align-items: center;
}

.mobile-dropdown {
    display: flex;
    align-items: center;
    gap: 28px;
}

.main-navigation ul {
    list-style: none;
    display: flex;
    gap: 22px;
}

.main-navigation a {
    color: var(--bg-white);
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
    position: relative;
}

.main-navigation a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.main-navigation a:hover::after {
    width: 100%;
}

/* Catalogue download button — theme .btn-primary, sized for the nav bar */
.header-actions {
    display: flex;
    align-items: center;
}

.catalogue-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 18px;
    font-size: 0.74rem;
    line-height: 1;
    white-space: nowrap;
    box-shadow: 0 6px 18px rgba(212, 175, 55, 0.20);
}

.catalogue-btn:hover {
    box-shadow: 0 10px 26px rgba(212, 175, 55, 0.34);
}

.catalogue-btn svg {
    width: 15px;
    height: 15px;
    fill: currentColor;
    flex-shrink: 0;
    transition: var(--transition-transform);
}

.catalogue-btn:hover svg {
    transform: translateY(2px);
}

/* Hero Section */
.hero {
    height: 100vh;       /* fallback for older browsers */
    height: 100dvh;      /* dynamic viewport: excludes the mobile address bar */
    min-height: 600px;
    display: flex;
    align-items: center;
    position: relative;
    background-color: var(--bg-base);
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin-top: 50px;
}

.hero h1 {
    color: var(--bg-white);
    margin-bottom: 1.5rem;
    animation: fadeInUp 1s ease-out;
}

.hero p {
    font-size: 1.2rem;
    color: #e0e0e0;
    margin-bottom: 2.5rem;
    animation: fadeInUp 1s ease-out 0.2s backwards;
}

.hero .btn {
    animation: fadeInUp 1s ease-out 0.4s backwards;
}

.premium-card {
    display: flex;
    flex-direction: column;
    background: linear-gradient(160deg, #1A1A24 0%, #14141C 45%);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.premium-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.premium-card-image {
    width: 100%;
    height: 320px;
    overflow: hidden;
    background: #181820;
    display: flex;
    align-items: center;
    justify-content: center;
}

.premium-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.premium-card:hover .premium-card-image img {
    transform: scale(1.05);
}

.premium-card-content {
    padding: 35px 30px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.premium-card-subtitle {
    font-size: 0.8rem;
    color: var(--primary-color);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 10px;
    display: block;
    font-weight: 600;
}

.premium-card h3 {
    color: var(--bg-white);
    font-size: 1.8rem;
    margin-bottom: 15px;
    font-weight: 500;
}

.premium-card p {
    color: #BEBEBE;
    font-size: 1rem;
    line-height: 1.75;
    margin-bottom: 25px;
    flex-grow: 1;
}

.premium-card-link {
    display: inline-flex;
    align-items: center;
    color: var(--bg-white);
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: color 0.3s ease;
}

.premium-card:hover .premium-card-link {
    color: var(--primary-color);
}

/* Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.product-card {
    background:
        linear-gradient(145deg, rgba(212, 175, 55, 0.14), rgba(212, 175, 55, 0.02)),
        linear-gradient(145deg, #1A1306 0%, #0A1118 100%);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(212, 175, 55, 0.18);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    will-change: transform;
    padding: 20px;
    text-align: center;
}

.product-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-5px);
}

.product-img-wrap {
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    background: #ffffff;
    border-radius: 4px;
    padding: 20px;
}

.product-img-wrap img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    mix-blend-mode: multiply;
    transition: var(--transition);
}

.product-card:hover .product-img-wrap img {
    transform: scale(1.1);
}

.product-title {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

/* About Section */
.about-split {
    display: flex;
    align-items: center;
    gap: 50px;
}

.about-text {
    flex: 1;
}

.about-image {
    flex: 1;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

/* Footer */
.site-footer {
    background:
        linear-gradient(180deg, rgba(5, 5, 7, 0.92), #030304),
        radial-gradient(ellipse 70% 90% at 50% 0%, rgba(212, 175, 55, 0.08), transparent 70%);
    color: var(--text-light);
    padding: 64px 0 32px;
    border-top: 1px solid rgba(212, 175, 55, 0.25);
}

.footer-widgets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-widgets ul {
    list-style: none;
}

.site-info {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(212, 175, 55, 0.12);
    font-size: 0.88rem;
    color: var(--text-muted);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    /* 44x44 minimum tap target (iOS/Android guideline) */
    width: 44px;
    height: 44px;
    padding: 9px;
    z-index: 1001;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.mobile-menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background-color: var(--bg-white);
    margin-bottom: 4px;
    transition: var(--transition);
}

.mobile-menu-toggle span:last-child {
    margin-bottom: 0;
}

/* Responsive */
@media (max-width: 1024px) {
    .site-header {
        padding: 9px 24px;
    }

    .site-logo-frame {
        width: clamp(150px, 28vw, 216px);
    }

    .site-logo {
        height: 58px;
    }

    .about-split {
        flex-direction: column;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .mobile-dropdown {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #0D0D14;
        box-shadow: var(--shadow-md);
        flex-direction: column;
        align-items: center;
        padding: 16px;
        border-top: 1px solid rgba(212, 175, 55, 0.28);
    }

    .header-right.menu-active .mobile-dropdown {
        display: flex;
    }

    .main-navigation ul {
        flex-direction: column;
        gap: 12px;
        width: 100%;
        align-items: center;
    }

    .main-navigation li {
        width: 100%;
        text-align: center;
        border-bottom: 1px solid rgba(212, 175, 55, 0.18);
        padding-bottom: 8px;
    }

    .main-navigation li:last-child {
        border-bottom: none;
    }

    .header-actions {
        margin-top: 14px;
        width: 100%;
        justify-content: center;
    }
}

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
}

.whatsapp-float a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: white;
    border-radius: 50%;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.whatsapp-float a:hover {
    transform: scale(1.1);
    color: white;
}


/* Smooth scroll & page fade-in */
html {
    scroll-behavior: smooth;
}

/* Animate .site-main, NOT body — transform on body breaks position:fixed children */
.site-main {
    animation: pageFadeIn 0.4s ease-out both;
}

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

/* Scroll Progress Bar */
#scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0%;
    background: linear-gradient(90deg, var(--primary-color), #f0d060);
    z-index: 9999;
    transition: width 0.08s linear;
    pointer-events: none;
}

/* Active nav link */
.main-navigation .current-menu-item > a {
    color: var(--primary-color);
}

.main-navigation .current-menu-item > a::after {
    width: 100%;
}

/* Header scroll shadow */
.site-header.scrolled {
    box-shadow: 0 4px 28px rgba(0, 0, 0, 0.7);
    background: rgba(6, 6, 9, 0.98);
}

/* Back to top button */
#back-to-top {
    position: fixed;
    bottom: 104px;
    right: 30px;
    width: 44px;
    height: 44px;
    background: #14141C;
    border: 1px solid var(--primary-color);
    border-radius: 50%;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.3s ease, transform 0.3s ease, background 0.2s;
    z-index: 998;
    box-shadow: 0 4px 14px rgba(0,0,0,0.4);
}

#back-to-top.visible {
    opacity: 1;
    transform: translateY(0);
}

#back-to-top:hover {
    background: var(--primary-color);
    color: #111;
}

/* WhatsApp pulse ring — pseudo-element on the <a> tag (position:fixed parent is fine) */
@keyframes wa-pulse {
    0%   { transform: scale(1);    opacity: 0.6; }
    70%  { transform: scale(1.65); opacity: 0;   }
    100% { transform: scale(1.65); opacity: 0;   }
}

.whatsapp-float a {
    position: relative; /* establish stacking context for ::before */
}

.whatsapp-float a::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: #25D366;
    will-change: transform, opacity;
    animation: wa-pulse 2.2s ease-out infinite;
    z-index: -1;
}

/* Touch hardening: drop the legacy 300ms tap delay and the grey iOS tap flash
   so taps register instantly on phones/tablets. */
a,
button,
.btn,
input[type="submit"],
.hero-carousel-btn,
.hero-dot,
label {
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

/* Better keyboard focus ring */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 3px;
}

/* Scroll Animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Optional Staggering for Cards */
.delay-1 {
    transition-delay: 0.1s;
}

.delay-2 {
    transition-delay: 0.2s;
}

.delay-3 {
    transition-delay: 0.3s;
}

/* Contact & Dealership form — stack to single column on mobile */
@media (max-width: 768px) {
    .site-header {
        padding: 8px 16px;
    }

    .site-logo-frame {
        width: clamp(136px, 42vw, 188px);
    }

    .site-logo {
        height: 50px;
    }

    .contact-form-grid {
        grid-template-columns: 1fr !important;
    }

    .contact-page-layout {
        grid-template-columns: 1fr !important;
    }
}

/* Certificates page cards */
.cert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 28px;
    margin-bottom: 48px;
}

.cert-card {
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.015)),
        linear-gradient(145deg, #17171E 0%, #101015 100%);
    border: 1px solid rgba(212, 175, 55, 0.12);
    border-radius: 12px;
    padding: 36px 28px;
    transition: border-color 0.3s ease, transform 0.3s ease;
}

.cert-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-4px);
}

.cert-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    background: rgba(212,175,55,0.1);
    border: 1px solid rgba(212,175,55,0.25);
    border-radius: 12px;
    margin-bottom: 20px;
}

/* 404 page */
.error-404-wrap {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 20px 60px;
}

.error-404-code {
    font-family: var(--font-heading);
    font-size: clamp(6rem, 18vw, 14rem);
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
    margin-bottom: 0;
    opacity: 0.9;
}

.error-404-divider {
    width: 60px;
    height: 3px;
    background: var(--primary-color);
    margin: 20px auto;
    border-radius: 2px;
}

/* ===== STATS ROW ===== */
.stats-row {
    display: flex;
    gap: 18px;
    margin-top: 32px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.stat-item {
    background: rgba(212, 175, 55, 0.07);
    border: 1px solid rgba(212, 175, 55, 0.18);
    border-radius: 10px;
    padding: 22px 28px;
    text-align: center;
    flex: 1;
    min-width: 110px;
    transition: border-color 0.3s ease, background 0.3s ease;
}

.stat-item:hover {
    background: rgba(212, 175, 55, 0.12);
    border-color: rgba(212, 175, 55, 0.35);
}

.stat-item h3 {
    font-size: 2rem;
    margin-bottom: 6px;
    line-height: 1;
}

.stat-item .stat-label {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-light);
    margin: 0;
    line-height: 1.4;
}

/* ===== PAGE HERO (inner pages) ===== */
.page-hero {
    background-color: #07070A;
    background-image:
        linear-gradient(135deg, rgba(255,255,255,0.035) 0 1px, transparent 1px),
        radial-gradient(ellipse 70% 90% at 50% 0%, rgba(212, 175, 55, 0.14) 0%, transparent 70%),
        linear-gradient(180deg, #111118 0%, #07070A 100%);
    background-size: 44px 44px, cover, cover;
    border-bottom: 1px solid rgba(212, 175, 55, 0.18);
    padding: 72px 20px 60px;
    text-align: center;
}

.page-hero h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 14px;
}

.page-hero p.page-hero-desc {
    color: var(--text-light);
    max-width: 580px;
    margin: 0 auto;
    font-size: 1.05rem;
    line-height: 1.75;
}

/* ===== CARD PANEL (generic dark card) ===== */
.card-panel {
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.015)),
        linear-gradient(145deg, #17171E 0%, #0F0F14 100%);
    border: 1px solid rgba(212, 175, 55, 0.14);
    border-radius: 12px;
    box-shadow: 0 22px 54px rgba(0, 0, 0, 0.28);
    transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.card-panel:hover {
    border-color: rgba(212, 175, 55, 0.3);
    box-shadow: 0 28px 64px rgba(0, 0, 0, 0.38);
}

.card-panel p {
    color: var(--text-light);
}

/* ===== INFRA CARD ===== */
.infra-card {
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.015)),
        linear-gradient(145deg, #17171E 0%, #101015 100%);
    border: 1px solid rgba(212, 175, 55, 0.12);
    border-radius: 12px;
    padding: 28px 24px;
    display: flex;
    gap: 18px;
    align-items: flex-start;
    transition: border-color 0.3s ease;
}

.infra-card:hover {
    border-color: rgba(212, 175, 55, 0.3);
}

.infra-card-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.15);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.infra-card h4 {
    font-size: 1rem;
    margin-bottom: 6px;
    color: var(--bg-white);
    font-family: var(--font-body);
    font-weight: 600;
    letter-spacing: 0;
    text-transform: none;
}

.infra-card p {
    color: var(--text-light);
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.65;
}

/* ===== PAGE CTA BLOCK ===== */
.page-cta {
    text-align: center;
    padding: 52px 20px;
    background:
        linear-gradient(90deg, rgba(0,0,0,0.86), rgba(12,12,16,0.70)),
        radial-gradient(ellipse 70% 110% at 80% 50%, rgba(212,175,55,0.16), transparent 65%),
        linear-gradient(145deg, #17171E 0%, #0E0E13 100%);
    border: 1px solid rgba(212, 175, 55, 0.18);
    border-radius: 12px;
}

.page-cta h3 {
    margin-bottom: 12px;
}

.page-cta p {
    color: var(--text-light);
    margin-bottom: 28px;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.75;
}

/* ===== INFO CARD (contact page icons) ===== */
.info-card {
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.015)),
        linear-gradient(145deg, #17171E 0%, #101015 100%);
    border: 1px solid rgba(212, 175, 55, 0.12);
    border-radius: 12px;
    padding: 32px 24px;
    text-align: center;
    transition: border-color 0.3s ease, transform 0.3s ease;
}

.info-card:hover {
    border-color: rgba(212, 175, 55, 0.3);
    transform: translateY(-3px);
}

.info-card h3 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
    color: var(--primary-color);
    font-family: var(--font-body);
    font-weight: 700;
}

.info-card p {
    color: var(--text-light);
    line-height: 1.7;
    margin: 0;
}

.info-card a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.2s ease;
}

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

/* ===== SECTION LABEL ===== */
.section-label {
    display: block;
    font-family: var(--font-body);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 3.5px;
    text-transform: uppercase;
    color: var(--primary-color);
    margin-bottom: 14px;
}

/* ===== FOOTER IMPROVEMENTS ===== */
.footer-widgets p {
    color: var(--text-light);
    line-height: 1.8;
}

.footer-widgets a {
    color: var(--text-light);
    transition: color 0.2s ease, padding-left 0.2s ease;
}

.footer-widgets a:hover {
    color: var(--primary-color);
    padding-left: 4px;
}

.footer-widgets li {
    margin-bottom: 10px;
    line-height: 1.6;
}

.footer-contact-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.footer-contact-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    color: var(--primary-color);
    margin-top: 3px;
}

.footer-contact-icon svg {
    width: 100%;
    height: 100%;
    display: block;
    fill: currentColor;
}

.footer-contact-link {
    color: var(--text-light);
}

.widget-title {
    color: var(--bg-white);
    margin-bottom: 20px;
    font-size: 1.15rem;
    letter-spacing: 0.5px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}


/* ===== SECTION DIVIDER ===== */
.section-divider {
    width: 48px;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), transparent);
    border-radius: 2px;
    margin: 16px 0 24px;
}

.text-center .section-divider {
    margin-left: auto;
    margin-right: auto;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    width: 64px;
}

/* ===== HERO GRADIENT OVERLAY ===== */
.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 200px;
    background: linear-gradient(to bottom, transparent, var(--bg-base));
    z-index: 1;
    pointer-events: none;
}

/* ===== CERT CARD IMPROVEMENTS ===== */
.cert-card h3 {
    color: var(--bg-white);
    font-size: 1.3rem;
}

.cert-card p {
    color: var(--text-light);
    line-height: 1.75;
}

/* Dealership page */
.dealership-benefits {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 48px;
}

.dealership-benefit-card {
    background:
        linear-gradient(145deg, rgba(212, 175, 55, 0.08), rgba(255, 255, 255, 0.018)),
        #111117;
    border: 1px solid rgba(212, 175, 55, 0.16);
    border-radius: 10px;
    padding: 28px 24px;
    text-align: center;
    transition: border-color 0.3s ease, background 0.3s ease;
}

.dealership-benefit-card:hover {
    background: rgba(212, 175, 55, 0.12);
    border-color: rgba(212, 175, 55, 0.35);
}

.dealership-benefit-card h4 {
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.dealership-benefit-card p {
    color: var(--text-light);
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.65;
}

/* Quality Policy pillars */
.quality-pillar {
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.015)),
        linear-gradient(145deg, #17171E 0%, #101015 100%);
    border: 1px solid rgba(212, 175, 55, 0.12);
    border-radius: 12px;
    padding: 36px 28px;
    transition: border-color 0.3s ease, transform 0.3s ease;
}

.quality-pillar:hover {
    border-color: rgba(212, 175, 55, 0.3);
    transform: translateY(-3px);
}

.quality-pillar-icon {
    width: 52px;
    height: 52px;
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.15);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.quality-pillar h3 {
    font-size: 1.1rem;
    margin-bottom: 12px;
}

.quality-pillar p {
    color: var(--text-light);
    line-height: 1.75;
    margin: 0;
}

/* Quality process step */
.quality-step {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.quality-step-num {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: #111;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
}

.quality-step h4 {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--bg-white);
    letter-spacing: 0;
    text-transform: none;
}

.quality-step p {
    color: var(--text-light);
    margin: 0;
    line-height: 1.7;
}

@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
    .site-header {
        background: rgba(8, 8, 12, 0.97);
    }
}

@media (max-width: 768px) {
    .whatsapp-float {
        right: 16px;
        bottom: 16px;
    }

    .whatsapp-float a {
        width: 54px;
        height: 54px;
    }

    #back-to-top {
        right: 16px;
        bottom: 84px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .site-main,
    .animate-on-scroll {
        animation: none !important;
        transform: none !important;
        opacity: 1 !important;
    }

    .whatsapp-float a::before {
        animation: none !important;
    }
}
