/* =====================================================
   BestMarket CMS v2 – Frontend CSS
   ===================================================== */

/* Reset & Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
    font-family: 'Inter', sans-serif;
    color: #1a1a2e;
    background: #fff;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: #2e75b6; text-decoration: none; }
a:hover { color: #1a3a5c; }
ul { list-style: none; }
button { cursor: pointer; font-family: inherit; }

/* Variables */
:root {
    --navy: #1a3a5c;
    --white: #ffffff;
    --accent: #2e75b6;
    --light: #f5f7fa;
    --text: #1a1a2e;
    --muted: #6c757d;
    --border: #dee2e6;
    --radius: 8px;
    --shadow: 0 2px 12px rgba(0,0,0,.08);
    --shadow-hover: 0 8px 24px rgba(0,0,0,.14);
    --transition: 0.25s ease;
    --header-h: 72px;
}

/* Container */
.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
@media (max-width: 768px) { .container { padding: 0 16px; } }

/* ── HEADER ─────────────────────────────────────────── */
.site-header {
    position: sticky; top: 0; z-index: 1000;
    background: var(--white);
    box-shadow: 0 1px 0 var(--border);
    transition: box-shadow var(--transition), background var(--transition);
}
.site-header.scrolled { box-shadow: 0 4px 20px rgba(0,0,0,.12); }

.header-inner {
    display: flex; align-items: center; height: var(--header-h); gap: 24px;
}

.site-logo {
    display: flex; align-items: center; gap: 10px;
    color: var(--navy); font-weight: 700; font-size: 20px; white-space: nowrap;
}
.site-logo:hover { color: var(--accent); }

.main-nav {
    display: flex; align-items: center; gap: 4px; flex: 1; justify-content: center;
}
@media (max-width: 1023px) { .main-nav { display: none; } }

.nav-item-wrap { position: relative; }
.nav-link {
    display: block; padding: 8px 14px; color: var(--text);
    font-size: 15px; font-weight: 500; border-radius: var(--radius);
    transition: color var(--transition), background var(--transition);
    white-space: nowrap;
}
.nav-link:hover { color: var(--accent); background: var(--light); }

.nav-dropdown {
    position: absolute; top: calc(100% + 4px); left: 0;
    min-width: 200px; background: var(--white);
    border: 1px solid var(--border); border-radius: var(--radius);
    box-shadow: var(--shadow-hover); opacity: 0; pointer-events: none;
    transform: translateY(-8px); transition: all var(--transition);
    z-index: 200;
}
.has-dropdown:hover .nav-dropdown {
    opacity: 1; pointer-events: auto; transform: translateY(0);
}
.dropdown-item {
    display: block; padding: 10px 16px; color: var(--text); font-size: 14px;
    transition: background var(--transition), color var(--transition);
}
.dropdown-item:hover { background: var(--light); color: var(--accent); }

.header-tools { display: flex; align-items: center; gap: 8px; margin-left: auto; }

.icon-btn {
    width: 40px; height: 40px; border: none; background: none;
    border-radius: var(--radius); display: flex; align-items: center; justify-content: center;
    color: var(--navy); transition: background var(--transition);
}
.icon-btn:hover { background: var(--light); }

.lang-switcher { display: flex; gap: 2px; }
.lang-btn {
    padding: 5px 9px; border: 1px solid var(--border); border-radius: 4px;
    font-size: 12px; font-weight: 600; color: var(--muted);
    transition: all var(--transition); background: none;
}
.lang-btn:hover, .lang-btn.active {
    background: var(--navy); color: var(--white); border-color: var(--navy);
}

.hamburger {
    display: none; flex-direction: column; gap: 5px; padding: 8px;
    border: none; background: none; width: 44px; height: 44px;
    align-items: center; justify-content: center;
}
.hamburger span {
    display: block; width: 22px; height: 2px; background: var(--navy);
    transition: all var(--transition); border-radius: 2px;
}
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }
@media (max-width: 1023px) { .hamburger { display: flex; } }

/* Search Bar */
.search-bar { background: var(--light); border-top: 1px solid var(--border); padding: 12px 0; }
.search-input-wrap { display: flex; gap: 8px; position: relative; }
.search-input {
    flex: 1; padding: 10px 16px; border: 1px solid var(--border); border-radius: var(--radius);
    font-size: 15px; outline: none; transition: border-color var(--transition);
}
.search-input:focus { border-color: var(--accent); }
.search-submit-btn {
    padding: 10px 20px; background: var(--accent); color: var(--white);
    border: none; border-radius: var(--radius); font-weight: 600;
    transition: background var(--transition);
}
.search-submit-btn:hover { background: var(--navy); }
.search-dropdown {
    position: absolute; top: 100%; left: 0; right: 60px;
    background: var(--white); border: 1px solid var(--border);
    border-radius: var(--radius); box-shadow: var(--shadow-hover);
    z-index: 100; max-height: 300px; overflow-y: auto;
}
.search-result-item-drop {
    padding: 10px 16px; border-bottom: 1px solid var(--border);
    cursor: pointer; transition: background var(--transition);
}
.search-result-item-drop:hover { background: var(--light); }
.search-result-item-drop:last-child { border-bottom: none; }
.search-type-chip { font-size: 11px; color: var(--muted); margin-right: 6px; }

/* Mobile Nav */
.mobile-overlay {
    display: none; position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 1100;
}
.mobile-overlay.open { display: block; }
.mobile-nav {
    position: fixed; top: 0; right: -300px; width: 280px; height: 100%;
    background: var(--white); z-index: 1200; padding: 64px 24px 24px;
    box-shadow: -4px 0 20px rgba(0,0,0,.15); transition: right var(--transition);
    overflow-y: auto;
}
.mobile-nav.open { right: 0; }
.mobile-nav-close {
    position: absolute; top: 16px; right: 16px;
    width: 40px; height: 40px; border: none; background: none;
    font-size: 24px; color: var(--navy);
}
.mobile-nav-link {
    display: block; padding: 12px 0; color: var(--text); font-size: 16px;
    border-bottom: 1px solid var(--border); font-weight: 500;
    transition: color var(--transition);
}
.mobile-nav-link:hover { color: var(--accent); }
.mobile-lang { display: flex; gap: 8px; margin-top: 20px; }
.mobile-lang a {
    padding: 6px 12px; border: 1px solid var(--border); border-radius: 4px;
    font-size: 13px; font-weight: 600; color: var(--muted);
}
.mobile-lang a.active { background: var(--navy); color: var(--white); border-color: var(--navy); }

/* ── BUTTONS ─────────────────────────────────────────── */
.btn {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 10px 22px; border-radius: var(--radius);
    font-size: 14px; font-weight: 600; border: 2px solid transparent;
    transition: all var(--transition); cursor: pointer; line-height: 1.2;
    text-decoration: none; white-space: nowrap;
}
.btn-primary { background: var(--accent); color: var(--white); border-color: var(--accent); }
.btn-primary:hover { background: var(--navy); border-color: var(--navy); color: var(--white); }
.btn-outline { background: transparent; color: var(--accent); border-color: var(--accent); }
.btn-outline:hover { background: var(--accent); color: var(--white); }
.btn-secondary { background: var(--muted); color: var(--white); border-color: var(--muted); }
.btn-lg { padding: 14px 32px; font-size: 16px; }
.btn-sm { padding: 6px 14px; font-size: 13px; }
.btn-block { width: 100%; justify-content: center; }

/* ── HERO ─────────────────────────────────────────────── */
.hero {
    position: relative; min-height: 560px;
    display: flex; align-items: center;
    background: linear-gradient(135deg, var(--navy) 0%, #2e5c8a 60%, var(--accent) 100%);
    overflow: hidden;
}
.hero-bg {
    position: absolute; inset: 0;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60'%3E%3Ccircle cx='30' cy='30' r='1' fill='rgba(255,255,255,.05)'/%3E%3C/svg%3E");
}
.hero-content { position: relative; z-index: 1; max-width: 700px; }
.hero-title { font-size: clamp(32px, 5vw, 56px); font-weight: 700; color: var(--white); line-height: 1.15; margin-bottom: 16px; }
.hero-subtitle { font-size: clamp(16px, 2vw, 20px); color: rgba(255,255,255,.85); margin-bottom: 32px; max-width: 550px; }
.hero-buttons { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-scroll-hint {
    position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%);
    color: rgba(255,255,255,.6); font-size: 20px; animation: bounce 2s infinite;
}
@keyframes bounce { 0%,100%{transform:translateX(-50%) translateY(0)}50%{transform:translateX(-50%) translateY(6px)} }

/* Page Hero (inner pages) */
.page-hero {
    background: linear-gradient(135deg, var(--navy) 0%, #2e5c8a 100%);
    padding: 60px 0 40px;
}
.page-hero h1 { color: var(--white); font-size: clamp(28px, 4vw, 42px); margin-bottom: 8px; }
.page-hero p { color: rgba(255,255,255,.8); font-size: 17px; }
.breadcrumb { display: flex; gap: 8px; align-items: center; margin-bottom: 12px; flex-wrap: wrap; }
.breadcrumb a { color: rgba(255,255,255,.7); font-size: 14px; }
.breadcrumb a:hover { color: var(--white); }
.breadcrumb span { color: rgba(255,255,255,.5); font-size: 14px; }

/* ── SECTIONS ─────────────────────────────────────────── */
.section { padding: 80px 0; }
@media (max-width: 768px) { .section { padding: 48px 0; } }
.bg-light { background: var(--light); }
.bg-dark { background: var(--navy); }
.section-header { text-align: center; margin-bottom: 48px; }
.section-header h2 { font-size: clamp(24px, 3vw, 36px); color: var(--navy); margin-bottom: 12px; }
.section-header p { color: var(--muted); font-size: 16px; max-width: 500px; margin: 0 auto; }

/* ── PRODUCT CARDS ────────────────────────────────────── */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}
.product-card {
    background: var(--white); border-radius: 12px;
    box-shadow: var(--shadow); overflow: hidden;
    transition: box-shadow var(--transition), transform var(--transition);
}
.product-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-4px); }
.product-card-img-wrap { display: block; overflow: hidden; height: 220px; background: var(--light); }
.product-card-img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--transition); }
.product-card:hover .product-card-img { transform: scale(1.04); }
.product-card-img-placeholder {
    height: 220px; display: flex; align-items: center; justify-content: center;
    font-size: 60px; background: var(--light); color: var(--muted);
}
.product-card-body { padding: 20px; }
.product-card-title { font-size: 16px; font-weight: 600; margin-bottom: 8px; line-height: 1.3; }
.product-card-title a { color: var(--text); }
.product-card-title a:hover { color: var(--accent); }
.product-card-desc { color: var(--muted); font-size: 13px; margin-bottom: 16px; line-height: 1.5; }
.product-card-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* ── CATEGORIES ───────────────────────────────────────── */
.categories-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 24px;
}
.category-card { border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); }
.category-card-inner {
    display: block; padding: 32px 24px; background: var(--white);
    text-align: center; transition: all var(--transition); height: 100%;
    border: 2px solid transparent;
}
.category-card-inner:hover { border-color: var(--accent); transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.category-card-icon { font-size: 48px; margin-bottom: 16px; }
.category-card h3 { font-size: 18px; color: var(--navy); margin-bottom: 8px; }
.category-card p { color: var(--muted); font-size: 14px; }
.category-card-meta { font-size: 12px; color: var(--muted); margin-top: 12px; }
.category-sub-list { display: flex; flex-wrap: wrap; gap: 4px; justify-content: center; margin-top: 12px; }
.sub-cat-tag {
    background: var(--light); color: var(--muted); font-size: 11px;
    padding: 2px 8px; border-radius: 20px;
}

/* ── PRODUCT DETAIL ───────────────────────────────────── */
.product-hero { background: var(--light); padding: 24px 0 0; }
.product-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
@media (max-width: 768px) { .product-detail-grid { grid-template-columns: 1fr; } }
.gallery-main { cursor: zoom-in; overflow: hidden; border-radius: 12px; background: var(--light); }
.gallery-main-img { width: 100%; max-height: 480px; object-fit: contain; }
.gallery-thumbs { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.gallery-thumb {
    width: 72px; height: 56px; object-fit: cover; border-radius: 6px;
    border: 2px solid transparent; cursor: pointer; opacity: 0.7;
    transition: all var(--transition);
}
.gallery-thumb:hover, .gallery-thumb.active { border-color: var(--accent); opacity: 1; }
.gallery-placeholder {
    height: 400px; display: flex; align-items: center; justify-content: center;
    font-size: 80px; background: var(--light); border-radius: 12px;
}
.product-info h1 { font-size: clamp(22px, 3vw, 32px); color: var(--navy); margin-bottom: 12px; }
.product-category-badge {
    display: inline-block; background: var(--light); color: var(--muted);
    font-size: 12px; padding: 4px 12px; border-radius: 20px; margin-bottom: 16px;
}
.product-description { color: var(--text); line-height: 1.7; margin-bottom: 24px; }
.product-specs { margin-bottom: 24px; }
.product-specs h3 { font-size: 16px; margin-bottom: 12px; }
.specs-table { width: 100%; border-collapse: collapse; }
.specs-table tr { border-bottom: 1px solid var(--border); }
.specs-table td { padding: 8px 12px; font-size: 14px; }
.spec-key { color: var(--muted); font-weight: 500; width: 45%; background: var(--light); }
.spec-val { color: var(--text); }
.product-docs { margin-bottom: 24px; }
.product-docs h3 { font-size: 16px; margin-bottom: 12px; }
.doc-link {
    display: flex; align-items: center; gap: 8px; padding: 10px 14px;
    border: 1px solid var(--border); border-radius: var(--radius);
    color: var(--text); font-size: 14px; margin-bottom: 6px;
    transition: all var(--transition);
}
.doc-link:hover { border-color: var(--accent); color: var(--accent); background: #f0f7ff; }
.product-cta { margin-top: 24px; }

/* ── PRODUCT PRICE BLOCK ─────────────────────────────── */
.product-price-block {
    background: linear-gradient(135deg, #f0f7ff 0%, #e8f4fd 100%);
    border: 1px solid #c5dff4;
    border-radius: var(--radius);
    padding: 16px 20px;
    margin-bottom: 20px;
}
.price-label {
    font-size: 13px;
    color: var(--muted);
    font-weight: 500;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: .5px;
}
.price-values {
    display: flex;
    align-items: baseline;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 6px;
}
.price-bgn {
    font-size: 28px;
    font-weight: 700;
    color: var(--navy);
    line-height: 1;
}
.price-eur {
    font-size: 18px;
    font-weight: 500;
    color: var(--muted);
}
.price-note {
    font-size: 11px;
    color: var(--muted);
    font-style: italic;
}

/* ── SPECS TABLE STRIPED ─────────────────────────────── */
.specs-table--striped .spec-row-even td { background: var(--light); }
.specs-table--striped .spec-row-odd  td { background: #fff; }
.specs-table--striped .spec-key {
    color: #495057;
    font-weight: 600;
    font-size: 13px;
    width: 48%;
}
.specs-table--striped .spec-val {
    font-size: 13px;
    font-weight: 500;
    color: var(--navy);
}

/* ── DOC LINKS ───────────────────────────────────────── */
.doc-links-wrap { display: flex; flex-direction: column; gap: 6px; }
.doc-link--soon {
    opacity: .6;
    cursor: not-allowed;
    border-style: dashed;
}
.doc-link--soon::after { content: ' — очаква се'; font-size: 11px; color: var(--muted); }

/* ── PRODUCT INQUIRY SECTION ─────────────────────────── */
.product-inquiry-section { background: var(--light); }
.product-inquiry-wrap {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 48px;
    align-items: start;
}
@media (max-width: 768px) { .product-inquiry-wrap { grid-template-columns: 1fr; gap: 24px; } }
.product-inquiry-intro h2 { font-size: 22px; color: var(--navy); margin-bottom: 12px; }
.product-inquiry-intro p  { color: var(--muted); line-height: 1.7; margin-bottom: 16px; }
.inquiry-benefits { list-style: none; padding: 0; }
.inquiry-benefits li { padding: 4px 0; color: var(--text); font-size: 15px; }
.inquiry-form { background: #fff; border-radius: 12px; padding: 28px; box-shadow: var(--shadow); }

/* ── PROJECTS ────────────────────────────────────────── */
.projects-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
@media (max-width: 768px) { .projects-grid { grid-template-columns: 1fr; } }
.project-card { position: relative; overflow: hidden; border-radius: 12px; aspect-ratio: 4/3; }
.project-card-img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.project-card:hover .project-card-img { transform: scale(1.06); }
.project-card-placeholder {
    height: 100%; display: flex; align-items: center; justify-content: center;
    font-size: 60px; background: rgba(255,255,255,.1);
}
.project-card-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(26,58,92,.85) 0%, transparent 50%);
    display: flex; flex-direction: column; justify-content: flex-end; padding: 20px;
}
.project-card-overlay h3 { color: var(--white); font-size: 16px; margin-bottom: 4px; }
.project-cat { color: rgba(255,255,255,.7); font-size: 12px; }

.projects-masonry { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.project-item { position: relative; border-radius: 12px; overflow: hidden; background: var(--light); }
.project-item-img { width: 100%; height: 220px; object-fit: cover; cursor: pointer; transition: transform .4s; }
.project-item:hover .project-item-img { transform: scale(1.04); }
.project-item-info { padding: 16px; }
.project-item-info h3 { font-size: 15px; color: var(--navy); margin-bottom: 6px; }
.project-item-info p { font-size: 13px; color: var(--muted); }
.project-cat-badge {
    display: inline-block; background: var(--accent); color: var(--white);
    font-size: 11px; padding: 2px 10px; border-radius: 20px; margin-bottom: 6px;
}
.project-placeholder {
    height: 220px; display: flex; align-items: center; justify-content: center;
    font-size: 60px; color: var(--muted);
}

/* Filter bar */
.filter-bar { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 32px; }
.filter-btn {
    padding: 7px 16px; border-radius: 20px; font-size: 13px; font-weight: 500;
    border: 1px solid var(--border); color: var(--muted); background: var(--white);
    transition: all var(--transition); cursor: pointer;
}
.filter-btn.active, .filter-btn:hover { background: var(--accent); color: var(--white); border-color: var(--accent); }

/* ── ABOUT / CONTENT ──────────────────────────────────── */
.about-teaser { display: grid; grid-template-columns: 1fr auto; gap: 60px; align-items: center; }
@media (max-width: 768px) { .about-teaser { grid-template-columns: 1fr; } }
.about-teaser-text h2 { font-size: clamp(24px, 3vw, 36px); color: var(--navy); margin-bottom: 16px; }
.about-text { color: var(--muted); line-height: 1.7; margin-bottom: 24px; }
.about-teaser-stats { display: flex; flex-direction: column; gap: 16px; }
@media (max-width: 768px) { .about-teaser-stats { flex-direction: row; flex-wrap: wrap; } }
.stat-bubble {
    text-align: center; background: var(--light); border-radius: 12px;
    padding: 20px 24px; min-width: 120px;
}
.stat-bubble .stat-number { font-size: 32px; font-weight: 700; color: var(--accent); }
.stat-bubble .stat-label { font-size: 12px; color: var(--muted); margin-top: 4px; }
.page-content { max-width: 800px; line-height: 1.8; }
.page-content h2, .page-content h3 { color: var(--navy); margin: 24px 0 12px; }
.page-content p { margin-bottom: 16px; color: var(--text); }
.page-content ul, .page-content ol { padding-left: 24px; margin-bottom: 16px; }
.page-content li { margin-bottom: 8px; }

/* ── CTA ─────────────────────────────────────────────── */
.cta-section { background: linear-gradient(135deg, var(--light) 0%, #dce8f5 100%); }
.cta-box { text-align: center; }
.cta-box h2 { font-size: clamp(22px, 3vw, 34px); color: var(--navy); margin-bottom: 12px; }
.cta-box p { color: var(--muted); font-size: 16px; margin-bottom: 28px; }

/* ── CONTACT ─────────────────────────────────────────── */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
@media (max-width: 768px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-form-col h2, .contact-info-col h2 { font-size: 24px; color: var(--navy); margin-bottom: 24px; }
.contact-info-list { display: flex; flex-direction: column; gap: 20px; margin-bottom: 24px; }
.contact-info-item { display: flex; gap: 16px; align-items: flex-start; }
.contact-info-icon { width: 40px; height: 40px; background: var(--light); border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; }
.contact-info-label { font-size: 12px; color: var(--muted); margin-bottom: 2px; }
.contact-info-val { font-size: 15px; color: var(--text); font-weight: 500; }
.contact-info-val a { color: var(--accent); }

/* ── FORMS ───────────────────────────────────────────── */
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 14px; font-weight: 500; margin-bottom: 6px; color: var(--text); }
.form-control {
    width: 100%; padding: 10px 14px; border: 1px solid var(--border);
    border-radius: var(--radius); font-size: 14px; font-family: inherit;
    outline: none; transition: border-color var(--transition);
    background: var(--white); color: var(--text);
}
.form-control:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(46,117,182,.1); }
textarea.form-control { resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 480px) { .form-row { grid-template-columns: 1fr; } }
.checkbox-label { display: flex !important; align-items: center; gap: 8px; cursor: pointer; font-weight: normal !important; }
.checkbox-label input { width: auto; }

/* ── SEARCH RESULTS PAGE ─────────────────────────────── */
.search-page-bar { margin-bottom: 24px; }
.search-results-list { display: flex; flex-direction: column; gap: 20px; }
.search-result-item {
    border: 1px solid var(--border); border-radius: var(--radius); padding: 20px;
    transition: box-shadow var(--transition);
}
.search-result-item:hover { box-shadow: var(--shadow); }
.search-result-type { margin-bottom: 6px; }
.type-badge {
    display: inline-block; font-size: 11px; padding: 2px 10px;
    border-radius: 20px; font-weight: 600;
}
.type-product { background: #dce8f5; color: var(--navy); }
.type-page { background: #d4edda; color: #155724; }
.type-category { background: #fff3cd; color: #856404; }
.type-project { background: #f8d7da; color: #721c24; }
.search-result-title { font-size: 18px; margin: 6px 0; }
.search-result-title a { color: var(--navy); }
.search-result-title a:hover { color: var(--accent); }
.search-result-excerpt { color: var(--muted); font-size: 14px; margin-bottom: 6px; }
.search-result-url { font-size: 12px; color: #198754; }
.search-empty { text-align: center; padding: 80px 0; }

/* ── MODAL ───────────────────────────────────────────── */
.modal-overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 2000;
    display: flex; align-items: center; justify-content: center; padding: 16px;
}
.modal {
    background: var(--white); border-radius: 16px; width: 100%; max-width: 560px;
    max-height: 90vh; overflow-y: auto; box-shadow: 0 20px 60px rgba(0,0,0,.3);
    animation: modalIn .2s ease;
}
@keyframes modalIn { from { opacity:0; transform:scale(.95); } to { opacity:1; transform:scale(1); } }
.modal-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 20px 24px; border-bottom: 1px solid var(--border);
}
.modal-header h3 { font-size: 18px; color: var(--navy); }
.modal-close { width: 32px; height: 32px; border: none; background: none; font-size: 20px; color: var(--muted); border-radius: 50%; transition: background var(--transition); }
.modal-close:hover { background: var(--light); }
.modal-body { padding: 24px; }

/* ── LIGHTBOX ─────────────────────────────────────────── */
.lightbox {
    position: fixed; inset: 0; background: rgba(0,0,0,.92); z-index: 3000;
    display: flex; align-items: center; justify-content: center;
}
.lightbox img { max-width: 90vw; max-height: 85vh; object-fit: contain; border-radius: 4px; }
.lightbox-close { position: absolute; top: 20px; right: 20px; background: none; border: none; color: #fff; font-size: 36px; cursor: pointer; }
.lightbox-prev, .lightbox-next {
    position: absolute; top: 50%; transform: translateY(-50%);
    background: rgba(255,255,255,.15); border: none; color: #fff;
    font-size: 32px; width: 56px; height: 56px; border-radius: 50%; cursor: pointer;
    transition: background var(--transition);
}
.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }
.lightbox-prev:hover, .lightbox-next:hover { background: rgba(255,255,255,.3); }

/* ── FOOTER ───────────────────────────────────────────── */
.site-footer { background: var(--navy); color: var(--white); padding: 64px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.5fr; gap: 40px; margin-bottom: 40px; }
@media (max-width: 1023px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-logo { font-size: 20px; font-weight: 700; margin-bottom: 12px; }
.footer-tagline { color: rgba(255,255,255,.6); font-size: 14px; line-height: 1.6; margin-bottom: 16px; }
.social-links { display: flex; gap: 8px; }
.social-link { width: 36px; height: 36px; background: rgba(255,255,255,.1); border-radius: 8px; display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,.8); transition: background var(--transition); }
.social-link:hover { background: var(--accent); color: var(--white); }
.footer-col h4 { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: rgba(255,255,255,.5); margin-bottom: 16px; }
.footer-links { display: flex; flex-direction: column; gap: 8px; }
.footer-links a { color: rgba(255,255,255,.75); font-size: 14px; transition: color var(--transition); }
.footer-links a:hover { color: var(--white); }
.contact-list { display: flex; flex-direction: column; gap: 12px; }
.contact-list li { display: flex; gap: 10px; align-items: flex-start; color: rgba(255,255,255,.75); font-size: 14px; }
.contact-list svg { flex-shrink: 0; margin-top: 2px; color: var(--accent); }
.contact-list a { color: rgba(255,255,255,.75); }
.contact-list a:hover { color: var(--white); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-top: 24px; text-align: center; color: rgba(255,255,255,.5); font-size: 13px; }

/* ── CHAT WIDGET ─────────────────────────────────────── */
.chat-widget { position: fixed; bottom: 24px; right: 24px; z-index: 999; }
.chat-bubble {
    width: 56px; height: 56px; border-radius: 50%; background: var(--accent);
    border: none; color: var(--white); font-size: 24px; cursor: pointer;
    box-shadow: 0 4px 16px rgba(46,117,182,.4); transition: all var(--transition);
    display: flex; align-items: center; justify-content: center;
}
.chat-bubble:hover { background: var(--navy); transform: scale(1.08); }
.chat-panel {
    position: absolute; bottom: 68px; right: 0;
    width: 320px; max-height: 450px;
    background: var(--white); border-radius: 16px;
    box-shadow: 0 8px 40px rgba(0,0,0,.15); overflow: hidden;
    display: flex; flex-direction: column;
}
.chat-header {
    background: var(--navy); color: var(--white);
    padding: 14px 16px; display: flex; flex-direction: column; gap: 2px;
}
.chat-header span:first-child { font-weight: 600; }
.chat-messages { flex: 1; overflow-y: auto; padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.chat-msg {
    max-width: 85%; padding: 8px 12px; border-radius: 12px;
    font-size: 13px; line-height: 1.5;
}
.chat-msg.bot { background: var(--light); color: var(--text); align-self: flex-start; }
.chat-msg.user { background: var(--accent); color: var(--white); align-self: flex-end; }
.chat-input-row { display: flex; gap: 6px; padding: 10px; border-top: 1px solid var(--border); }
.chat-input { flex: 1; padding: 8px 12px; border: 1px solid var(--border); border-radius: 20px; font-size: 13px; outline: none; }
.chat-input:focus { border-color: var(--accent); }
.chat-send { background: var(--accent); color: var(--white); border: none; padding: 8px 14px; border-radius: 20px; font-size: 14px; transition: background var(--transition); }
.chat-send:hover { background: var(--navy); }

/* ── ALERTS ──────────────────────────────────────────── */
.alert { padding: 12px 16px; border-radius: var(--radius); margin-bottom: 16px; font-size: 14px; }
.alert-success { background: #d1e7dd; color: #0a3622; border: 1px solid #a3cfbb; }
.alert-danger { background: #f8d7da; color: #58151c; border: 1px solid #f1aeb5; }
.alert-warning { background: #fff3cd; color: #664d03; border: 1px solid #ffe69c; }

/* ── REVEAL ANIMATIONS ───────────────────────────────── */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ── SCROLL-TO-TOP ───────────────────────────────────── */
.scroll-top-btn {
    position: fixed; bottom: 90px; right: 24px;
    width: 40px; height: 40px; background: var(--navy); color: var(--white);
    border: none; border-radius: 50%; font-size: 18px; z-index: 998;
    transition: all var(--transition); box-shadow: var(--shadow);
}
.scroll-top-btn:hover { background: var(--accent); transform: translateY(-2px); }

/* ── MISC ────────────────────────────────────────────── */
.text-muted { color: var(--muted); }

@media (max-width: 480px) {
    .hero-buttons { flex-direction: column; }
    .hero-buttons .btn { width: 100%; justify-content: center; }
}
