/* ============================================================
   TEALEX INVESTMENT - Main Stylesheet
   Brand Colors: Black, Gold (#d4a853), White
   Fonts: Space Grotesk (headings), DM Sans (body)
   ============================================================ */

:root {
    --gold: #d4a853;
    --gold-dark: #b8913f;
    --gold-light: #e8c97a;
    --black: #0a0a0a;
    --dark: #141414;
    --dark-gray: #1e1e1e;
    --gray: #6b7280;
    --light-gray: #f3f4f6;
    --white: #ffffff;
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    --info: #3b82f6;
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'DM Sans', sans-serif;
}

/* ============================================================
   BASE
   ============================================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    font-size: 15px;
    color: #333;
    background-color: var(--white);
    line-height: 1.6;
}

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

a {
    text-decoration: none;
    color: var(--gold);
    transition: color 0.2s;
}

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

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

/* ============================================================
   TOP BAR
   ============================================================ */
.top-bar {
    background: var(--black);
    color: var(--gold);
    padding: 8px 0;
    font-size: 12px;
    border-bottom: 1px solid #222;
}

.top-bar-tagline {
    font-weight: 500;
}

.top-bar-contact a {
    color: rgba(255,255,255,0.7);
    margin-left: 18px;
    font-size: 12px;
}

.top-bar-contact a:hover {
    color: var(--gold);
}

.top-bar-contact i {
    margin-right: 4px;
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.main-nav {
    background: var(--dark) !important;
    padding: 12px 0;
    box-shadow: 0 2px 12px rgba(0,0,0,0.3);
}

.brand-text {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gold) !important;
    letter-spacing: 2px;
}

.main-nav .nav-link {
    color: rgba(255,255,255,0.8) !important;
    font-weight: 500;
    font-size: 14px;
    padding: 8px 16px !important;
    border-radius: 6px;
    transition: all 0.2s;
}

.main-nav .nav-link:hover,
.main-nav .nav-link.active {
    color: var(--gold) !important;
    background: rgba(212,168,83,0.1);
}

.btn-gold {
    background: linear-gradient(135deg, #f2d37a 0%, #d4a853 45%, #b8892d 100%);
    color: #111111;
    font-weight: 700;
    border: 1px solid rgba(255,220,130,0.7);
    border-radius: 10px;
    padding: 12px 22px;
    font-size: 14px;
    transition: all 0.25s ease;
    box-shadow: 0 10px 28px rgba(212,168,83,0.28);
}

.btn-gold:hover {
    background: var(--gold-dark);
    color: var(--black);
    transform: translateY(-1px);
}

.btn-gold-outline {
    background: rgba(0,0,0,0.35);
    color: #f2d37a;
    border: 1.5px solid rgba(242,211,122,0.75);
    font-weight: 700;
    border-radius: 10px;
    padding: 12px 22px;
    font-size: 14px;
    transition: all 0.25s ease;
    backdrop-filter: blur(6px);
}

.btn-gold-outline:hover {
    background: var(--gold);
    color: var(--black);
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero-section {
    position: relative;
    min-height: 78vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: #080808;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center right;
    opacity: 0.75;
    filter: brightness(1.12) contrast(1.08) saturate(1.05);
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center center;
    opacity: 1 !important;
    filter: brightness(1.35) contrast(1.08) saturate(1.12) !important;
}

/* LIGHT OVERLAY - keeps background visible */
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        rgba(255,255,255,0.82) 0%,
        rgba(255,255,255,0.68) 34%,
        rgba(255,255,255,0.32) 62%,
        rgba(255,255,255,0.08) 100%
    ) !important;
}

/* TEXT AREA */
.hero-content {
    position: relative;
    z-index: 2;
    max-width: 720px;
    padding: 45px 0;
}

/* HERO SMALL TITLE */
.hero-subtitle {
    color: #b8860b !important;
    font-weight: 700;
    letter-spacing: 2px;
    text-shadow: none !important;
}

/* HERO MAIN TITLE */
.hero-title {
    color: #111111 !important;
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 18px;
    text-shadow: none !important;
}

.hero-title span {
    color: #c9952e !important;
}

/* HERO DESCRIPTION */
.hero-desc {
    color: #222222 !important;
    font-size: 17px;
    line-height: 1.7;
    font-weight: 500;
    text-shadow: none !important;
}

/* ============================================================
   SECTIONS
   ============================================================ */
.section {
    padding: 60px 0;
}

.section-dark {
    background: var(--black);
    color: var(--white);
}

.section-light {
    background: var(--light-gray);
}

.section-title {
    font-size: 1.8rem;
    margin-bottom: 8px;
}

.section-subtitle {
    color: var(--gray);
    font-size: 14px;
    margin-bottom: 32px;
}

/* ============================================================
   PRODUCT CARDS
   ============================================================ */
.product-card {
    background: var(--white);
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.25s;
    height: 100%;
}

.product-card:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    border-color: var(--gold);
    transform: translateY(-3px);
}

.product-card-img {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
    background: #f9fafb;
}

.product-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

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

.product-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 4px;
}

.product-card-body {
    padding: 16px;
}

.product-card-category {
    font-size: 11px;
    text-transform: uppercase;
    color: var(--gray);
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.product-card-title {
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-card-specs {
    font-size: 12px;
    color: var(--gray);
    margin-bottom: 10px;
}

.product-card-price {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--gold-dark);
    font-size: 16px;
}

.product-card-stock {
    font-size: 11px;
    margin-top: 6px;
}

/* ============================================================
   CATEGORY CARDS
   ============================================================ */
.category-card {
    text-align: center;
    padding: 24px 16px;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    background: var(--white);
    transition: all 0.2s;
}

.category-card:hover {
    border-color: var(--gold);
    box-shadow: 0 4px 12px rgba(212,168,83,0.15);
}

.category-card i {
    font-size: 28px;
    color: var(--gold);
    margin-bottom: 10px;
}

.category-card h6 {
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 2px;
}

.category-card small {
    color: var(--gray);
    font-size: 11px;
}

/* ============================================================
   TRUST STRIP
   ============================================================ */
.trust-strip {
    background: rgba(12,12,12,0.92);
    border-top: 1px solid rgba(212,168,83,0.18);
    border-bottom: 1px solid rgba(212,168,83,0.12);
    padding: 18px 0;
    backdrop-filter: blur(10px);
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.trust-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(212,168,83,0.22), rgba(212,168,83,0.08));
    border: 1px solid rgba(212,168,83,0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.trust-icon i {
    color: var(--gold);
    font-size: 16px;
}

.trust-text h6 {
    font-size: 13px;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 0;
}

.trust-text small {
    font-size: 11px;
    color: rgba(255,255,255,0.5);
}

/* ============================================================
   SERVICES SECTION
   ============================================================ */
.service-card {
    text-align: center;
    padding: 32px 20px;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    background: var(--white);
    transition: all 0.2s;
}

.service-card:hover {
    border-color: var(--gold);
    box-shadow: 0 4px 16px rgba(212,168,83,0.12);
}

.service-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(212,168,83,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.service-icon i {
    font-size: 22px;
    color: var(--gold);
}

.service-card h5 {
    font-family: var(--font-heading);
    font-size: 15px;
    margin-bottom: 8px;
}

.service-card p {
    font-size: 13px;
    color: var(--gray);
    line-height: 1.6;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
    background: var(--black);
    color: rgba(255,255,255,0.7);
    padding: 50px 0 20px;
}

.footer-brand {
    font-family: var(--font-heading);
    color: var(--gold);
    font-size: 1.5rem;
    letter-spacing: 2px;
    margin-bottom: 12px;
}

.footer-desc {
    font-size: 13px;
    line-height: 1.7;
    margin-bottom: 16px;
}

.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: rgba(212,168,83,0.1);
    color: var(--gold);
    margin-right: 8px;
    transition: all 0.2s;
}

.footer-social a:hover {
    background: var(--gold);
    color: var(--black);
}

.footer-heading {
    font-family: var(--font-heading);
    color: var(--gold);
    font-size: 14px;
    margin-bottom: 16px;
}

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

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    color: rgba(255,255,255,0.6);
    font-size: 13px;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--gold);
}

.footer-contact {
    list-style: none;
    padding: 0;
    font-size: 12px;
}

.footer-contact li {
    margin-bottom: 8px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.footer-contact i {
    color: var(--gold);
    margin-top: 2px;
    flex-shrink: 0;
}

.footer-contact a {
    color: rgba(255,255,255,0.6);
}

.footer-contact a:hover {
    color: var(--gold);
}

.footer-divider {
    border-color: #222;
    margin: 30px 0 16px;
}

.footer-bottom {
    text-align: center;
    font-size: 12px;
    color: rgba(255,255,255,0.4);
}

/* ============================================================
   PAGE HEADERS
   ============================================================ */
.page-header {
    background: var(--black);
    padding: 40px 0;
    text-align: center;
}

.page-header h1 {
    color: var(--white);
    font-size: 2rem;
    margin-bottom: 6px;
}

.page-header p {
    color: rgba(255,255,255,0.5);
    font-size: 14px;
}

/* ============================================================
   FORMS
   ============================================================ */
.form-control:focus,
.form-select:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 0.2rem rgba(212,168,83,0.15);
}

/* ============================================================
   ADMIN STYLES
   ============================================================ */
.admin-sidebar {
    background: var(--dark);
    min-height: 100vh;
    padding: 20px 0;
    width: 250px;
    position: fixed;
    left: 0;
    top: 0;
    overflow-y: auto;
    z-index: 1000;
}

.admin-sidebar .brand {
    padding: 0 20px 20px;
    border-bottom: 1px solid #222;
    margin-bottom: 16px;
}

.admin-sidebar .brand h4 {
    color: var(--gold);
    font-family: var(--font-heading);
    font-size: 1.2rem;
    letter-spacing: 1px;
    margin-bottom: 2px;
}

.admin-sidebar .brand small {
    color: rgba(255,255,255,0.4);
    font-size: 11px;
}

.admin-sidebar .nav-link {
    color: rgba(255,255,255,0.6);
    padding: 10px 20px;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-radius: 0;
    transition: all 0.2s;
}

.admin-sidebar .nav-link:hover,
.admin-sidebar .nav-link.active {
    color: var(--gold);
    background: rgba(212,168,83,0.08);
}

.admin-sidebar .nav-link i {
    width: 18px;
    text-align: center;
}

.admin-main {
    margin-left: 250px;
    padding: 20px 30px;
    min-height: 100vh;
    background: #f8f9fa;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e5e7eb;
}

.admin-header h2 {
    font-size: 1.4rem;
    margin: 0;
}

.stat-card {
    background: var(--white);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid #e5e7eb;
}

.stat-card h3 {
    font-size: 1.6rem;
    color: var(--gold-dark);
    margin-bottom: 4px;
}

.stat-card p {
    font-size: 13px;
    color: var(--gray);
    margin: 0;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 991px) {
    .admin-sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s;
    }
    .admin-sidebar.show {
        transform: translateX(0);
    }
    .admin-main {
        margin-left: 0;
    }
    .hero-title {
        font-size: 2rem;
    }
}

@media (max-width: 767px) {
    .top-bar-tagline {
        font-size: 11px;
    }
    .hero-section {
        min-height: 55vh;
    }
    .hero-title {
        font-size: 1.7rem;
    }
    .hero-desc {
        font-size: 14px;
    }
    .section {
        padding: 40px 0;
    }
    .section-title {
        font-size: 1.4rem;
    }
}

@media (max-width: 575px) {
    .hero-title {
        font-size: 1.5rem;
    }
}

/* =====================================================
   TEALEX HOME PAGE HERO CLEAN FIX
   Only affects the main home hero section
===================================================== */

body.home-page .hero-section,
body.index-page .hero-section,
.home .hero-section,
.hero-section {
    background: #080808 !important;
    min-height: 78vh !important;
    position: relative !important;
    overflow: hidden !important;
}

/* Make the hero background image clearer */
.hero-section .hero-bg {
    opacity: 0.88 !important;
    filter: brightness(1.25) contrast(1.08) saturate(1.08) !important;
    background-size: cover !important;
    background-position: center right !important;
}

/* Keep left side readable, but allow image to show clearly on right */
.hero-section .hero-overlay {
    background: linear-gradient(
        90deg,
        rgba(0,0,0,0.88) 0%,
        rgba(0,0,0,0.72) 35%,
        rgba(0,0,0,0.35) 65%,
        rgba(0,0,0,0.10) 100%
    ) !important;
}

/* Hero text professional and readable */
.hero-section .hero-content {
    position: relative !important;
    z-index: 5 !important;
    max-width: 650px !important;
}

.hero-section .hero-subtitle {
    color: #d4a853 !important;
    font-weight: 800 !important;
    letter-spacing: 2px !important;
    text-shadow: 0 2px 8px rgba(0,0,0,0.7) !important;
}

.hero-section .hero-title {
    color: #ffffff !important;
    font-weight: 800 !important;
    line-height: 1.15 !important;
    text-shadow: 0 3px 14px rgba(0,0,0,0.85) !important;
}

.hero-section .hero-title span {
    color: #f2c76b !important;
}

.hero-section .hero-desc {
    color: rgba(255,255,255,0.92) !important;
    font-weight: 600 !important;
    line-height: 1.7 !important;
    text-shadow: 0 2px 10px rgba(0,0,0,0.8) !important;
}

/* Bottom trust strip stays premium and readable */
.trust-strip {
    background: rgba(8,8,8,0.82) !important;
    border-top: 1px solid rgba(212,168,83,0.25) !important;
    border-bottom: 1px solid rgba(212,168,83,0.15) !important;
    backdrop-filter: blur(8px) !important;
}

.trust-text h6 {
    color: #ffffff !important;
    font-weight: 700 !important;
}

.trust-text small {
    color: rgba(255,255,255,0.68) !important;
}

.trust-icon {
    background: rgba(212,168,83,0.14) !important;
}

.trust-icon i {
    color: #d4a853 !important;
}