/* ============================================================
   BONAVEE REAL ESTATE SERVICES - PREMIUM LUXURY STYLESHEET
   Dark Construction Aesthetic (#7A7A7A, #F28100, Dark Charcoal)
   ============================================================ */

/* Root CSS Variables & Design Tokens */
:root {
    --bg-primary: #121417;
    --bg-secondary: #1a1d24;
    --surface-grey: #242832;
    --surface-card: #1f232d;
    --text-primary: #f0f2f5;
    --text-muted: #a0a7b5;
    --brand-primary: #7A7A7A;
    --brand-accent: #F28100;
    --brand-accent-hover: #d97300;
    --border-color: rgba(255, 255, 255, 0.08);
    --border-highlight: rgba(242, 129, 0, 0.3);
    --whatsapp-green: #25d366;
    --whatsapp-hover: #1da851;
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --font-main: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.3);
    --max-width: 1280px;
}

/* Light Mode Overrides */
[data-theme="light"] {
    --bg-primary: #f4f5f7;
    --bg-secondary: #ffffff;
    --surface-grey: #e9ecef;
    --surface-card: #ffffff;
    --text-primary: #121417;
    --text-muted: #5a6270;
    --border-color: rgba(0, 0, 0, 0.08);
    --border-highlight: rgba(242, 129, 0, 0.4);
    --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.06);
}

/* Global Reset & Base Rules */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color var(--transition-normal), color var(--transition-normal);
}

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

ul {
    list-style: none;
}

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

/* Utility Containers */
.container {
    width: 90%;
    max-width: var(--max-width);
    margin: 0 auto;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.text-sm { font-size: 0.875rem; }
.margin-top-xs { margin-top: 0.5rem; }
.margin-top-sm { margin-top: 1rem; }
.margin-top-md { margin-top: 2rem; }
.margin-top-lg { margin-top: 3rem; }
.margin-top-xl { margin-top: 4rem; }
.margin-bottom-sm { margin-bottom: 1rem; }
.margin-bottom-md { margin-bottom: 2rem; }
.full-width { width: 100%; }
.max-width-md { max-width: 700px; }
.center-margin { margin-left: auto; margin-right: auto; }
.hidden { display: none !important; }

/* Grid System */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }

.flex-between { display: flex; justify-content: space-between; align-items: center; }
.flex-wrap { flex-wrap: wrap; }
.align-center { align-items: center; }
.gap-sm { gap: 1rem; }

/* Section Styling */
.section-padding { padding: 5rem 0; }
.bg-dark { background-color: var(--bg-primary); }
.bg-surface { background-color: var(--bg-secondary); }

.sub-heading {
    color: var(--brand-accent);
    text-transform: uppercase;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 2px;
    display: block;
    margin-bottom: 0.5rem;
}

.section-title {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 800;
    line-height: 1.2;
}

.title-divider {
    width: 60px;
    height: 3px;
    background-color: var(--brand-accent);
    margin: 1rem auto 0 auto;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 1.8rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    cursor: pointer;
    border: 1px solid transparent;
    transition: all var(--transition-fast);
    font-size: 0.95rem;
}

.btn-sm { padding: 0.5rem 1rem; font-size: 0.85rem; }
.btn-lg { padding: 1.1rem 2.2rem; font-size: 1.05rem; }

.btn-accent {
    background-color: var(--brand-accent);
    color: #ffffff;
}
.btn-accent:hover {
    background-color: var(--brand-accent-hover);
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    border-color: var(--brand-primary);
    color: var(--text-primary);
}
.btn-outline:hover {
    border-color: var(--brand-accent);
    color: var(--brand-accent);
}

.btn-whatsapp {
    background-color: var(--whatsapp-green);
    color: #ffffff;
}
.btn-whatsapp:hover {
    background-color: var(--whatsapp-hover);
}

/* Top Bar */
.top-bar {
    background-color: var(--surface-grey);
    border-bottom: 1px solid var(--border-color);
    font-size: 0.8rem;
    padding: 0.4rem 0;
}
.top-bar-content { display: flex; justify-content: space-between; align-items: center; }
.top-bar-info span { margin-right: 1.2rem; }
.top-bar-controls { display: flex; align-items: center; gap: 1rem; }
.currency-selector select {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    padding: 0.2rem 0.4rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
}
.btn-theme-toggle {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

/* Header & Navigation */
.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: rgba(26, 29, 36, 0.92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    transition: background-color var(--transition-normal);
}
.header-container { display: flex; justify-content: space-between; align-items: center; padding: 1rem 0; }

.logo-area { display: flex; flex-direction: column; }
.logo-main { font-size: 1.4rem; font-weight: 900; letter-spacing: 3px; color: var(--text-primary); line-height: 1; }
.logo-sub { font-size: 0.6rem; font-weight: 700; letter-spacing: 2px; color: var(--brand-accent); }

.desktop-nav .nav-links { display: flex; gap: 1.5rem; }
.nav-link { font-size: 0.9rem; font-weight: 500; color: var(--text-muted); }
.nav-link:hover, .nav-link.active { color: var(--brand-accent); }

.header-actions { display: flex; align-items: center; gap: 1rem; }
.action-btn { position: relative; background: none; border: none; font-size: 1.2rem; cursor: pointer; color: var(--text-primary); }
.badge {
    position: absolute;
    top: -6px;
    right: -8px;
    background-color: var(--brand-accent);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 50%;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
}
.hamburger-bar { width: 25px; height: 2px; background-color: var(--text-primary); }

.mobile-nav {
    display: none;
    background-color: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem;
}
.mobile-nav.open { display: block; }
.mobile-nav-links li { margin-bottom: 0.8rem; }
.mobile-link { font-size: 1rem; font-weight: 600; }

/* Page Views Logic */
.page-view { display: none; }
.page-view.active { display: block; }

/* Page Banner */
.page-banner {
    background-color: var(--surface-grey);
    padding: 3rem 0;
    border-bottom: 1px solid var(--border-color);
}
.page-banner h1 { font-size: 2.2rem; font-weight: 800; }

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 80vh;
    background: url('https://images.unsplash.com/photo-1600596542815-ffad4c1539a9?auto=format&fit=crop&w=1600&q=80') center/cover no-repeat;
    display: flex;
    align-items: center;
}
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(18,20,23,0.85) 0%, rgba(18,20,23,0.95) 100%);
}
.hero-container { position: relative; z-index: 2; }
.hero-content { max-width: 800px; }
.hero-badge {
    display: inline-block;
    background-color: rgba(242, 129, 0, 0.15);
    color: var(--brand-accent);
    padding: 0.3rem 0.8rem;
    border: 1px solid var(--border-highlight);
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
}
.hero-title { font-size: clamp(2.3rem, 5vw, 4rem); font-weight: 900; line-height: 1.1; margin-bottom: 1.2rem; }
.hero-description { font-size: 1.15rem; color: var(--text-muted); margin-bottom: 2rem; }
.hero-cta-group { display: flex; gap: 1rem; flex-wrap: wrap; }

/* Trust Bar */
.trust-bar {
    background-color: var(--surface-grey);
    /* border-y: 1px solid var(--border-color); */
    padding: 2rem 0;
}
.trust-container { display: flex; justify-content: space-around; flex-wrap: wrap; gap: 1.5rem; text-align: center; }
.trust-number { display: block; font-size: 2.2rem; font-weight: 900; color: var(--brand-accent); line-height: 1; }
.trust-text { font-size: 0.85rem; color: var(--text-muted); font-weight: 600; text-transform: uppercase; }

/* Card Components */
.card {
    background-color: var(--surface-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: transform var(--transition-fast), border-color var(--transition-fast);
}
.card:hover {
    transform: translateY(-4px);
    border-color: var(--border-highlight);
}
.card-body { padding: 1.5rem; }

/* Product & Portfolio Cards */
.product-card-img { position: relative; height: 220px; overflow: hidden; }
.product-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.card:hover .product-card-img img { transform: scale(1.05); }

.card-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: var(--brand-accent);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: var(--radius-sm);
}

.product-title { font-size: 1.15rem; font-weight: 700; margin-bottom: 0.4rem; }
.product-category { font-size: 0.75rem; color: var(--brand-accent); text-transform: uppercase; font-weight: 700; }
.product-price { font-size: 1.2rem; font-weight: 800; color: var(--text-primary); margin: 0.5rem 0; }
.product-rating { font-size: 0.85rem; color: #f39c12; margin-bottom: 1rem; }

.card-actions { display: flex; gap: 0.5rem; }

/* Shop Filtering Bar */
.shop-controls-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    background-color: var(--surface-card);
    padding: 1rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}
.search-box input, .filter-group select, .form-control {
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 0.7rem 1rem;
    border-radius: var(--radius-sm);
    outline: none;
    font-size: 0.9rem;
}
.search-box input { width: 300px; }
.form-control { width: 100%; }

/* Forms */
.form-group { margin-bottom: 1.2rem; }
.form-group label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 0.4rem; }

/* Product Details Layout */
.product-detail-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
.product-detail-img { height: 400px; border-radius: var(--radius-md); overflow: hidden; }
.product-detail-img img { width: 100%; height: 100%; object-fit: cover; }

/* Pricing Cards */
.pricing-card { position: relative; padding: 2rem; }
.pricing-card.featured { border-color: var(--brand-accent); }
.pricing-header { text-align: center; margin-bottom: 1.5rem; }
.pricing-badge { font-size: 0.75rem; text-transform: uppercase; padding: 2px 8px; background: var(--surface-grey); border-radius: var(--radius-sm); }
.pricing-badge.accent { background: var(--brand-accent); color: #fff; }
.price-tag { font-size: 2.2rem; font-weight: 900; margin-top: 0.8rem; }
.pricing-features { margin-bottom: 2rem; }
.pricing-features li { padding: 0.5rem 0; border-bottom: 1px solid var(--border-color); font-size: 0.9rem; }

/* Cart Drawer */
.drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: 1050;
    display: none;
}
.drawer-overlay.open { display: block; }

.cart-drawer {
    position: fixed;
    top: 0;
    right: -420px;
    width: 400px;
    height: 100vh;
    background-color: var(--bg-secondary);
    z-index: 1100;
    display: flex;
    flex-direction: column;
    transition: right var(--transition-normal);
    border-left: 1px solid var(--border-color);
}
.cart-drawer.open { right: 0; }

.drawer-header { padding: 1.5rem; border-bottom: 1px solid var(--border-color); display: flex; justify-content: space-between; align-items: center; }
.close-btn { background: none; border: none; font-size: 1.5rem; color: var(--text-primary); cursor: pointer; }

.drawer-body { flex: 1; overflow-y: auto; padding: 1.5rem; }
.drawer-item { display: flex; gap: 1rem; margin-bottom: 1.2rem; padding-bottom: 1.2rem; border-bottom: 1px solid var(--border-color); }
.drawer-item-img { width: 70px; height: 70px; border-radius: var(--radius-sm); object-fit: cover; }
.drawer-item-details { flex: 1; }
.drawer-item-title { font-size: 0.95rem; font-weight: 700; }
.drawer-item-price { font-size: 0.9rem; color: var(--brand-accent); font-weight: 700; }
.qty-controls { display: flex; align-items: center; gap: 0.5rem; margin-top: 0.4rem; }
.qty-btn { width: 24px; height: 24px; background: var(--surface-grey); border: none; color: var(--text-primary); cursor: pointer; border-radius: 3px; }

.drawer-footer { padding: 1.5rem; border-top: 1px solid var(--border-color); background-color: var(--surface-card); }
.summary-line { display: flex; justify-content: space-between; font-size: 0.9rem; margin-bottom: 0.4rem; }
.total-line { font-size: 1.1rem; font-weight: 800; border-top: 1px solid var(--border-color); padding-top: 0.5rem; margin-top: 0.5rem; }

/* Toast Notification System */
.toast-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.toast {
    background-color: var(--surface-card);
    color: var(--text-primary);
    border: 1px solid var(--brand-accent);
    padding: 0.8rem 1.2rem;
    border-radius: var(--radius-sm);
    box-shadow: 0 5px 15px rgba(0,0,0,0.4);
    animation: slideIn 0.3s ease forwards;
    font-size: 0.9rem;
}
@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* Footer Styling */
.main-footer {
    background-color: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding-top: 4rem;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 3rem; padding-bottom: 3rem; }
.footer-title { font-size: 1rem; font-weight: 800; margin-bottom: 1.2rem; color: var(--text-primary); }
.footer-links li { margin-bottom: 0.6rem; }
.footer-links a { font-size: 0.85rem; color: var(--text-muted); }
.footer-links a:hover { color: var(--brand-accent); }

.social-links { display: flex; gap: 0.8rem; flex-wrap: wrap; font-size: 0.85rem; }

.sub-footer {
    border-top: 1px solid var(--border-color);
    padding: 1.5rem 0;
    font-size: 0.8rem;
    color: var(--text-muted);
}
.earndee-credit a { color: var(--brand-accent); font-weight: 700; }

/* Empty State */
.empty-state { text-align: center; padding: 3rem 0; }

/* Responsive Media Queries */
@media (max-width: 1024px) {
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .desktop-nav, .header-cta { display: none; }
    .mobile-menu-btn { display: flex; }
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
    .product-detail-layout { grid-template-columns: 1fr; }
    .cart-drawer { width: 100%; right: -100%; }
    .top-bar-info span { display: block; margin-bottom: 0.2rem; }
    .top-bar-content { flex-direction: column; gap: 0.5rem; align-items: flex-start; }
    .search-box input { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
    * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}