/* ===================================================
   Zeta Enerji — Barksdale Landing Page Styles
   Primary: #8e579f | Font: Montserrat
   =================================================== */

:root {
    --primary: #8e579f;
    --primary-dark: #6d3f7d;
    --primary-light: #b587c4;
    --primary-ultra-light: #f3eaf6;
    --text-dark: #2d2d2d;
    --text-muted: #6c757d;
    --white: #ffffff;
    --light-bg: #f8f9fa;
}

/* --- Base --- */
body {
    font-family: 'Montserrat', sans-serif;
    color: var(--text-dark);
    line-height: 1.7;
}
a { color: var(--primary); transition: color .2s; }
a:hover { color: var(--primary-dark); }
a:active, a:focus { color: var(--primary-dark); outline: none; }

/* Override Bootstrap blue focus/active on dropdowns & nav */
.dropdown-item:active,
.dropdown-item.active,
.dropdown-item:focus {
    background-color: var(--primary);
    color: #fff;
}
.navbar .nav-link:active,
.navbar .nav-link:focus {
    color: var(--primary);
}
.btn-primary:active,
.btn-primary:focus,
.btn-primary.active {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    box-shadow: 0 0 0 .15rem rgba(142,87,159,.4);
}
.btn-outline-primary:active,
.btn-outline-primary:focus {
    background-color: var(--primary);
    border-color: var(--primary);
    box-shadow: 0 0 0 .15rem rgba(142,87,159,.4);
}
img { max-width: 100%; height: auto; }

/* --- Bootstrap overrides --- */
.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
}
.btn-primary:hover, .btn-primary:focus {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
}
.btn-outline-primary {
    color: var(--primary);
    border-color: var(--primary);
}
.btn-outline-primary:hover {
    background-color: var(--primary);
    border-color: var(--primary);
    color: #fff;
}
.text-primary { color: var(--primary) !important; }
.bg-primary { background-color: var(--primary) !important; }

/* --- Topbar --- */
.topbar {
    background: var(--primary-dark);
    color: rgba(255,255,255,.85);
    font-size: .78rem;
    padding: .45rem 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1041;
}
.topbar a {
    color: #fff;
    text-decoration: none;
}
.topbar a:hover {
    text-decoration: underline;
}

/* --- Navbar --- */
.navbar {
    padding: .8rem 0;
    transition: background .3s, box-shadow .3s, top .3s;
    top: 36px;
}
.navbar.scrolled {
    background: #fff !important;
    box-shadow: 0 2px 20px rgba(0,0,0,.08);
}
.navbar-brand img { height: 40px; }
.navbar .nav-link {
    font-weight: 500;
    font-size: .95rem;
    color: var(--text-dark);
    padding: .5rem 1rem !important;
}
.navbar .nav-link:hover,
.navbar .nav-link.active {
    color: var(--primary);
}

/* --- Hero --- */
.hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff;
    padding: 10rem 0 5rem;
    position: relative;
    overflow: hidden;
}
.hero::after {
    content: '';
    position: absolute;
    right: -100px;
    top: -100px;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: rgba(255,255,255,.05);
}
.hero h1 {
    font-weight: 700;
    font-size: 2.6rem;
    line-height: 1.2;
}
.hero .lead {
    font-size: 1.15rem;
    opacity: .92;
    max-width: 600px;
}
.hero .btn {
    font-weight: 600;
    padding: .75rem 2rem;
    border-radius: 50px;
}

/* --- Section Titles --- */
.section-title {
    font-weight: 700;
    font-size: 2rem;
    margin-bottom: .5rem;
}
.section-subtitle {
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 2.5rem;
}
.section-divider {
    width: 60px;
    height: 3px;
    background: var(--primary);
    margin: 1rem auto 2rem;
    border: none;
}

/* --- Category Cards --- */
.category-card {
    border: none;
    border-radius: 16px;
    text-align: center;
    padding: 2rem 1.5rem;
    transition: transform .25s, box-shadow .25s;
    background: #fff;
    box-shadow: 0 2px 15px rgba(0,0,0,.06);
}
.category-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 30px rgba(142,87,159,.15);
}
.category-card .icon-wrap {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: var(--primary-ultra-light);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}
.category-card .icon-wrap i {
    font-size: 1.8rem;
    color: var(--primary);
}
.category-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
}
.category-card .badge {
    background: var(--primary-ultra-light);
    color: var(--primary);
    font-weight: 600;
}

/* --- Product Cards --- */
.product-card {
    border: 1px solid #eee;
    border-radius: 12px;
    overflow: hidden;
    transition: transform .25s, box-shadow .25s;
    background: #fff;
    height: 100%;
    position: relative;
}
.product-card.product-featured {
    border-color: var(--primary);
    box-shadow: 0 0 0 1px var(--primary), 0 4px 15px rgba(142,87,159,.12);
}
.featured-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--primary);
    color: #fff;
    font-size: .72rem;
    font-weight: 600;
    padding: .3em .7em;
    border-radius: 20px;
    z-index: 2;
}
.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(142,87,159,.12);
}
.product-card .card-img-top {
    height: 300px;
    object-fit: contain;
    padding: 1.5rem;
    background: var(--light-bg);
}
.product-card .card-body {
    padding: 1.25rem;
}
.product-card .card-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: .35rem;
}
.product-card .card-subtitle {
    font-size: .82rem;
    color: var(--text-muted);
    margin-bottom: .5rem;
}
.product-card .badge {
    font-size: .72rem;
    padding: .35em .65em;
}
.product-card .cert-badges {
    display: flex;
    gap: .3rem;
    flex-wrap: wrap;
    margin-top: .5rem;
}
.product-card .cert-badges .badge {
    background: var(--primary-ultra-light);
    color: var(--primary);
    font-weight: 500;
    font-size: .68rem;
}

/* --- Spec Table --- */
.spec-table {
    font-size: .88rem;
}
.spec-table th {
    background: var(--primary-ultra-light);
    color: var(--primary-dark);
    font-weight: 600;
    white-space: nowrap;
    width: 40%;
}

/* --- FAQ --- */
.faq .accordion-button {
    font-weight: 600;
    font-size: .95rem;
    color: var(--text-dark);
}
.faq .accordion-button:not(.collapsed) {
    background: var(--primary-ultra-light);
    color: var(--primary);
}
.faq .accordion-button:focus {
    box-shadow: 0 0 0 .15rem rgba(142,87,159,.25);
}

/* --- About / Trust --- */
.trust-item {
    text-align: center;
    padding: 1.5rem;
}
.trust-item .icon-wrap {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

/* --- CTA Section --- */
.cta-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff;
    padding: 4rem 0;
}
.cta-section h2 { font-weight: 700; }

/* --- Contact / Form --- */
.form-section .form-control:focus,
.form-section .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 .15rem rgba(142,87,159,.25);
}
.contact-info-card {
    background: var(--primary);
    color: #fff;
    border-radius: 16px;
    padding: 2.5rem;
}
.contact-info-card a { color: #fff; text-decoration: underline; }
.contact-info-card i { font-size: 1.3rem; }

/* --- Footer --- */
footer {
    background: var(--primary-dark);
    color: rgba(255,255,255,.85);
    padding: 3rem 0 1.5rem;
}
footer a {
    color: rgba(255,255,255,.7);
    text-decoration: none;
}
footer a:hover { color: #fff; }
footer h5 { font-weight: 600; font-size: 1rem; color: #fff; }
footer .footer-bottom { border-top: 1px solid rgba(255,255,255,.15); padding-top: 1.5rem; margin-top: 2rem; }

/* --- Sticky Side Buttons (left) --- */
.sticky-buttons {
    position: fixed;
    bottom: 24px;
    left: 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 1000;
}
.sticky-buttons a {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: #fff;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0,0,0,.2);
    transition: transform .2s;
}
.sticky-buttons a:hover { transform: scale(1.1); color: #fff; }
.sticky-btn-whatsapp { background: #25D366; }
.sticky-btn-contact { background: var(--primary); }
.sticky-btn-website { background: #333; }

/* --- Breadcrumb --- */
.breadcrumb-section {
    background: var(--light-bg);
    padding: .75rem 0;
    font-size: .85rem;
}
.breadcrumb-section .breadcrumb { margin-bottom: 0; }
.breadcrumb-item a { color: var(--primary); }
.breadcrumb-brands .btn {
    font-size: .75rem;
    padding: .25rem .65rem;
    border-radius: 50px;
}

/* --- Page Hero (sub-pages) --- */
.page-hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff;
    padding: 12rem 0 3rem;
}
.hero-brand-badge {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    background: rgba(255,255,255,.55);
    border-radius: 5px;
    padding: .7rem 1.2rem;
    margin-bottom: 1.2rem;
    backdrop-filter: blur(4px);
}
.hero-brand-badge img { height: 35px; }

.page-hero h1 { font-weight: 700; font-size: 2.2rem; }
.page-hero p { opacity: .9; max-width: 700px; }

/* --- Responsive --- */
@media (max-width: 991px) {
    .hero { padding: 5rem 0 3rem; }
    .hero h1 { font-size: 2rem; }
    .page-hero h1 { font-size: 1.8rem; }
}
@media (max-width: 575px) {
    .hero h1 { font-size: 1.6rem; }
    .section-title { font-size: 1.5rem; }
    .product-card .card-img-top { height: 160px; }
}
