/* ============================================================
   BRONAR — Industrial Precision Stylesheet
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Work+Sans:wght@400;500;600;700;800;900&display=swap');

:root {
  --primary: #0F3B4A;
  --primary-dark: #0a2732;
  --secondary: #111820;
  --dark: #070a0e;
  --accent: #00A6B4;
  --gray-100: #F8FAFC;
  --gray-200: #E2E8F0;
  --gray-500: #64748B;
  --gray-800: #1E293B;
  --white: #FFFFFF;
  --text: #334155;
  --text-light: #475569;
  --border: #CBD5E1;
  --shadow: 4px 4px 0px 0px rgba(15, 59, 74, 0.1);
  --shadow-lg: 6px 6px 0px 0px rgba(15, 59, 74, 0.1);
  --radius: 0px;
  --radius-sm: 0px;
  --transition: all 0.2s ease;
  --font: 'Work Sans', sans-serif;
  --font-heading: 'Work Sans', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--text); background: var(--white); line-height: 1.6; overflow-x: hidden; }
h1,h2,h3,h4,h5,h6 { font-family: var(--font-heading); font-weight: 800; line-height: 1.2; text-transform: uppercase; letter-spacing: -0.02em; }
a { text-decoration: none; color: inherit; transition: var(--transition); }
img { max-width: 100%; height: auto; }
::selection { background: var(--primary); color: #fff; }
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--gray-200); }
::-webkit-scrollbar-thumb { background: var(--primary); }

.section-pad { padding: 100px 0; }
.section-pad-sm { padding: 60px 0; }
.section-title { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 900; margin-bottom: 0.4rem; }
.section-subtitle { color: var(--text-light); font-size: 1.05rem; margin-bottom: 2.5rem; }
.section-label { display: inline-block; background: transparent; color: var(--primary); font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 3px; padding: 4px 0; margin-bottom: 12px; border-bottom: 2px solid var(--primary); }

/* Buttons */
.btn-primary-custom { background: var(--primary); color: #fff; padding: 12px 24px; font-weight: 700; font-size: 0.85rem; border: 2px solid var(--primary); display: inline-flex; align-items: center; gap: 8px; transition: var(--transition); text-transform: uppercase; letter-spacing: 0.1em; white-space: nowrap; }
.btn-primary-custom:hover { background: var(--secondary); color: #fff; border-color: var(--secondary); }
.btn-outline-custom { background: transparent; color: #fff; padding: 12px 24px; font-weight: 700; font-size: 0.85rem; border: 2px solid #fff; display: inline-flex; align-items: center; gap: 8px; transition: var(--transition); text-transform: uppercase; letter-spacing: 0.1em; white-space: nowrap; }
.btn-outline-custom:hover { background: #fff; color: var(--secondary); }

/* Navbar */
#main-navbar { background: transparent; position: fixed; top: 0; left: 0; right: 0; z-index: 1000; transition: var(--transition); padding: 0; border-bottom: 2px solid transparent; }
#main-navbar.scrolled { background: rgba(255,255,255,0.97); padding: 0; border-bottom: 2px solid var(--secondary); backdrop-filter: blur(8px); }
#main-navbar .container { padding-top: 14px; padding-bottom: 14px; }
.navbar-brand img { height: 44px; }
.navbar-brand .brand-text { font-family: var(--font-heading); font-weight: 900; font-size: 1.6rem; color: #fff; letter-spacing: -1px; text-transform: uppercase; }
#main-navbar.scrolled .brand-text { color: var(--secondary); }

.nav-link-custom { color: rgba(255,255,255,0.85) !important; font-weight: 700; font-size: 0.8rem; padding: 8px 10px !important; transition: var(--transition); text-transform: uppercase; letter-spacing: 1px; white-space: nowrap; }
.nav-link-custom:hover, .nav-link-custom.active { color: var(--accent) !important; background: transparent; }
#main-navbar.scrolled .nav-link-custom { color: var(--text-light) !important; }
#main-navbar.scrolled .nav-link-custom:hover, #main-navbar.scrolled .nav-link-custom.active { color: var(--primary) !important; background: transparent; }

.lang-btn { background: transparent; color: rgba(255,255,255,0.8); border: 1px solid rgba(255,255,255,0.3); padding: 4px 10px; font-size: 0.75rem; font-weight: 700; transition: var(--transition); letter-spacing: 1px; border-radius: 4px; }
.lang-btn:hover, .lang-btn.active-lang { background: rgba(255,255,255,0.1); border-color: #fff; color: #fff; }
#main-navbar.scrolled .lang-btn { background: transparent; color: var(--text-light); border-color: var(--border); }
#main-navbar.scrolled .lang-btn:hover, #main-navbar.scrolled .lang-btn.active-lang { background: var(--gray-100); color: var(--primary); border-color: var(--primary); }

.navbar-toggler { border: none; padding: 6px; background: none; cursor: pointer; }
.navbar-toggler:focus { outline: none; box-shadow: none; }
#main-navbar.scrolled .navbar-toggler i { color: var(--secondary) !important; }

.mobile-menu { display: none; max-height: 0; overflow: hidden; transition: max-height 0.35s ease, opacity 0.3s ease; opacity: 0; }
.mobile-menu.show { display: block; max-height: 500px; opacity: 1; background: var(--secondary); padding: 8px 0; margin-top: 10px; }
.mobile-menu .nav-link-custom { display: block; padding: 12px 16px !important; border-bottom: 1px solid rgba(255,255,255,0.08); font-size: 0.9rem; color: rgba(255,255,255,0.85) !important; }
.mobile-menu .nav-link-custom:hover { background: var(--primary); color: #fff !important; }

/* Hero */
.hero-section { position: relative; height: 100vh; min-height: 700px; overflow: hidden; }
.hero-slide { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; transform: scale(1.05); transition: opacity 0.9s ease, transform 6s ease; }
.hero-slide.active { opacity: 1; transform: scale(1); z-index: 1; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(to right, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.4) 60%, transparent 100%); z-index: 2; }
.hero-content { position: relative; z-index: 3; height: 100%; display: flex; flex-direction: column; justify-content: center; padding-top: 80px; }
.hero-title { font-size: clamp(2.8rem, 6vw, 4.5rem); font-weight: 900; color: #fff; line-height: 1.1; margin-bottom: 20px; animation: fadeInUp 0.9s 0.15s ease both; letter-spacing: -0.04em; }
.hero-title span { color: var(--primary); }
.hero-subtitle { font-size: 1.15rem; color: rgba(255,255,255,0.7); max-width: 600px; margin-bottom: 36px; animation: fadeInUp 1s 0.3s ease both; text-transform: none; letter-spacing: 0; font-weight: 400; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; animation: fadeInUp 1s 0.45s ease both; }
.hero-dots { position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%); z-index: 10; display: flex; gap: 10px; }
.hero-dot { width: 40px; height: 4px; background: rgba(255,255,255,0.3); cursor: pointer; transition: var(--transition); border: none; padding: 0; }
.hero-dot.active { background: var(--primary); }

/* Stats */
.stats-bar { background: var(--white); padding: 0; border-top: 2px solid var(--secondary); border-bottom: 2px solid var(--secondary); }
.stats-row { display: flex; justify-content: center; align-items: stretch; flex-wrap: nowrap; }
.stat-item { text-align: center; padding: 28px; flex: 1; border-right: 1px solid var(--border); }
.stat-item:last-child { border-right: none; }
.stat-number { font-family: var(--font-heading); font-size: 2rem; font-weight: 900; color: var(--primary); display: block; line-height: 1.2; }
.stat-label { color: var(--text-light); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 2px; font-weight: 600; }

/* Cards */
.product-card { background: var(--white); overflow: hidden; box-shadow: none; transition: var(--transition); height: 100%; display: flex; flex-direction: column; border: 1px solid var(--border); }
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--secondary); }
.product-card-img { height: 240px; overflow: hidden; background: var(--gray-200); }
.product-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; filter: grayscale(30%); }
.product-card:hover .product-card-img img { transform: scale(1.05); filter: grayscale(0%); }
.product-card-img .no-img { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 3rem; color: var(--gray-200); background: var(--gray-100); }
.product-card-body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.product-card-cat { font-size: 0.7rem; color: var(--primary); font-weight: 700; text-transform: uppercase; letter-spacing: 2px; margin-bottom: 6px; }
.product-card-title { font-size: 1.05rem; font-weight: 800; margin-bottom: 10px; color: var(--text); text-transform: uppercase; }
.product-card-desc { font-size: 0.9rem; color: var(--text-light); flex: 1; margin-bottom: 18px; text-transform: none; letter-spacing: 0; }
.product-card-link { color: var(--primary); font-weight: 700; font-size: 0.8rem; display: inline-flex; align-items: center; gap: 6px; text-transform: uppercase; letter-spacing: 1px; }
.product-card-link:hover { gap: 10px; color: var(--secondary); }

/* Project Card */
.project-card { overflow: hidden; position: relative; height: 320px; cursor: pointer; border: 1px solid var(--border); transition: var(--transition); }
.project-card:hover { box-shadow: var(--shadow); border-color: var(--secondary); }
.project-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; filter: grayscale(20%); }
.project-card:hover img { transform: scale(1.05); filter: grayscale(0%); }
.project-card-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, transparent 60%); display: flex; flex-direction: column; justify-content: flex-end; padding: 24px; }
.project-card-year { font-size: 0.7rem; color: var(--primary); font-weight: 700; text-transform: uppercase; letter-spacing: 3px; }
.project-card-title { font-size: 1.15rem; font-weight: 800; color: #fff; margin: 4px 0; text-transform: uppercase; }
.project-card-loc { font-size: 0.85rem; color: rgba(255,255,255,0.6); display: flex; align-items: center; gap: 5px; text-transform: none; }

/* Service Cards */
.service-card { background: var(--white); border: 1px solid var(--border); padding: 36px 28px; transition: var(--transition); height: 100%; }
.service-card:hover { border-color: var(--secondary); border-width: 2px; box-shadow: var(--shadow); }
.service-icon { width: 56px; height: 56px; background: var(--gray-100); color: var(--primary); display: flex; align-items: center; justify-content: center; font-size: 1.7rem; margin-bottom: 20px; transition: var(--transition); border: 1px solid var(--border); }
.service-card:hover .service-icon { background: var(--primary); color: #fff; border-color: var(--primary); }
.service-title { font-size: 1.05rem; font-weight: 800; margin-bottom: 10px; text-transform: uppercase; letter-spacing: 0.5px; }
.service-desc { font-size: 0.9rem; color: var(--text-light); text-transform: none; letter-spacing: 0; }

/* Catalog Cards */
.catalog-card { background: var(--white); overflow: hidden; border: 1px solid var(--border); transition: var(--transition); height: 100%; }
.catalog-card:hover { box-shadow: var(--shadow); border-color: var(--secondary); }
.catalog-card-thumb { height: 220px; overflow: hidden; background: var(--gray-100); position: relative; }
.catalog-card-thumb img { width: 100%; height: 100%; object-fit: cover; }
.catalog-card-thumb .no-thumb { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 4rem; color: var(--gray-200); }
.catalog-pdf-badge { position: absolute; top: 12px; right: 12px; background: var(--primary); color: #fff; font-size: 0.65rem; font-weight: 700; padding: 4px 10px; letter-spacing: 2px; }
.catalog-card-body { padding: 22px; }
.catalog-card-title { font-size: 1.05rem; font-weight: 800; margin-bottom: 14px; text-transform: uppercase; }

/* Page Hero */
.page-hero { background: var(--secondary); min-height: 280px; display: flex; align-items: center; position: relative; overflow: hidden; margin-top: 0; padding-top: 100px; }
.page-hero::before { content: ''; position: absolute; top: 0; right: 0; width: 40%; height: 100%; background: var(--primary); clip-path: polygon(30% 0, 100% 0, 100% 100%, 0% 100%); opacity: 0.15; }
.page-hero-content { position: relative; z-index: 2; }
.page-hero-title { font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 900; color: #fff; margin-bottom: 10px; text-transform: uppercase; letter-spacing: -0.02em; }
.breadcrumb { background: transparent; padding: 0; margin: 0; }
.breadcrumb-item { color: rgba(255,255,255,0.5); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 1px; font-weight: 600; }
.breadcrumb-item a { color: rgba(255,255,255,0.7); }
.breadcrumb-item a:hover { color: var(--primary); }
.breadcrumb-item.active { color: var(--primary); }
.breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,0.3); }

/* About */
.about-img-wrap { position: relative; overflow: hidden; border: 2px solid var(--secondary); }
.about-img-wrap::after { content: ''; position: absolute; bottom: -8px; right: -8px; width: 100%; height: 100%; border: 2px solid var(--primary); z-index: -1; }
.about-badge { position: absolute; bottom: 24px; left: 24px; background: var(--primary); color: #fff; padding: 14px 22px; text-align: center; }
.about-badge-num { font-size: 2rem; font-weight: 900; display: block; }
.about-badge-text { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 2px; }

.value-item { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 24px; }
.value-icon { width: 48px; height: 48px; min-width: 48px; background: var(--gray-100); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; font-size: 1.3rem; color: var(--primary); }
.value-title { font-weight: 800; font-size: 1rem; margin-bottom: 4px; text-transform: uppercase; letter-spacing: 0.5px; }
.value-text { font-size: 0.9rem; color: var(--text-light); text-transform: none; letter-spacing: 0; }

.about-gallery-item { overflow: hidden; border: 1px solid var(--border); position: relative; height: 280px; transition: var(--transition); }
.about-gallery-item:hover { box-shadow: var(--shadow); border-color: var(--secondary); }
.about-gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.about-gallery-item:hover img { transform: scale(1.06); }
.about-gallery-caption { position: absolute; bottom: 0; left: 0; right: 0; padding: 14px 18px; background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 100%); color: #fff; font-size: 0.85rem; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; }

/* Contact */
.contact-info-item { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 28px; }
.contact-info-icon { width: 50px; height: 50px; min-width: 50px; background: var(--gray-100); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; font-size: 1.3rem; color: var(--primary); }
.contact-info-label { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 2px; color: var(--text-light); font-weight: 700; }
.contact-info-value { font-weight: 700; font-size: 1rem; }

.contact-form-wrap { background: var(--white); border: 1px solid var(--border); box-shadow: var(--shadow); padding: 40px; }
.form-control-custom { border: 0; border-bottom: 2px solid var(--border); padding: 13px 16px; font-size: 0.95rem; transition: var(--transition); background: var(--gray-100); width: 100%; font-family: var(--font); }
.form-control-custom:focus { outline: none; border-bottom-color: var(--primary); background: var(--white); box-shadow: none; }
.form-label-custom { font-weight: 700; font-size: 0.75rem; margin-bottom: 6px; color: var(--text); text-transform: uppercase; letter-spacing: 1px; }
.map-wrap { overflow: hidden; border: 1px solid var(--border); height: 380px; }
.map-wrap iframe { width: 100%; height: 100%; border: 0; }

/* Filter */
.filter-bar { background: var(--white); border: 1px solid var(--border); padding: 20px 24px; margin-bottom: 36px; }
.filter-select { border: 1px solid var(--border); padding: 10px 14px; font-size: 0.9rem; background: var(--gray-100); cursor: pointer; transition: var(--transition); min-width: 180px; font-family: var(--font); }
.filter-select:focus { outline: none; border-color: var(--primary); }
.search-input-wrap { position: relative; flex: 1; }
.search-input-wrap input { border: 1px solid var(--border); padding: 10px 16px 10px 42px; font-size: 0.9rem; background: var(--gray-100); width: 100%; transition: var(--transition); font-family: var(--font); }
.search-input-wrap input:focus { outline: none; border-color: var(--primary); background: var(--white); }
.search-input-wrap .search-icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--gray-500); font-size: 1rem; }

/* Footer */
#main-footer { background: var(--secondary); padding: 70px 0 0; color: rgba(255,255,255,0.7); border-top: 4px solid var(--primary); }
.footer-brand .brand-text { font-family: var(--font-heading); font-weight: 900; font-size: 1.6rem; color: #fff; text-transform: uppercase; letter-spacing: -1px; }
.footer-desc { font-size: 0.9rem; margin-top: 12px; max-width: 300px; color: rgba(255,255,255,0.5); }
.footer-title { color: #fff; font-size: 0.85rem; font-weight: 800; margin-bottom: 20px; text-transform: uppercase; letter-spacing: 2px; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: rgba(255,255,255,0.5); font-size: 0.9rem; transition: var(--transition); }
.footer-links a:hover { color: #fff; padding-left: 6px; }
.footer-contact-item { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; font-size: 0.9rem; color: rgba(255,255,255,0.5); }
.footer-contact-item i { color: var(--primary); font-size: 1rem; min-width: 16px; }
.social-links { display: flex; gap: 10px; margin-top: 10px; }
.social-link { width: 38px; height: 38px; background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.7); display: flex; align-items: center; justify-content: center; transition: var(--transition); font-size: 1rem; }
.social-link:hover { background: var(--primary); color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.07); padding: 20px 0; margin-top: 50px; text-align: center; font-size: 0.8rem; color: rgba(255,255,255,0.3); text-transform: uppercase; letter-spacing: 1px; }

/* Animations */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* Alerts */
.alert-success { background: #d1fae5; color: #065f46; border-color: #6ee7b7; }
.alert-danger { background: #fee2e2; color: #7f1d1d; border-color: #f87171; }
.alert-info { background: #dbeafe; color: #1e3a5f; border-color: #93c5fd; }

/* Product Detail */
.product-detail-img { overflow: hidden; border: 2px solid var(--secondary); height: 480px; background: var(--gray-100); }
.product-detail-img img { width: 100%; height: 100%; object-fit: cover; }
.product-thumbnail-list { display: flex; gap: 10px; margin-top: 12px; }
.product-thumbnail { width: 72px; height: 72px; overflow: hidden; cursor: pointer; border: 2px solid transparent; transition: var(--transition); flex-shrink: 0; }
.product-thumbnail img { width: 100%; height: 100%; object-fit: cover; }
.product-thumbnail.active, .product-thumbnail:hover { border-color: var(--primary); }
.product-detail-tabs .nav-link { color: var(--text-light); font-weight: 700; border-radius: 0; border-bottom: 3px solid transparent; padding: 12px 20px; text-transform: uppercase; font-size: 0.85rem; letter-spacing: 1px; }
.product-detail-tabs .nav-link.active { color: var(--primary); border-bottom-color: var(--primary); background: transparent; }

.back-link { display: inline-flex; align-items: center; gap: 6px; color: var(--text-light); font-weight: 700; font-size: 0.85rem; margin-bottom: 20px; transition: var(--transition); text-transform: uppercase; letter-spacing: 1px; }
.back-link:hover { color: var(--primary); gap: 10px; }

.product-card-img-link { text-decoration: none; display: block; color: inherit; }

/* Lazy Load */
.lazy-load-spinner { display: flex; align-items: center; justify-content: center; }
.spinner-ring { width: 28px; height: 28px; border: 3px solid var(--gray-200); border-top-color: var(--primary); border-radius: 50%; animation: spinRing 0.8s linear infinite; }
@keyframes spinRing { to { transform: rotate(360deg); } }
.lazy-load-end { text-align: center; padding: 30px 0; color: var(--text-light); font-size: 0.9rem; opacity: 0; animation: fadeInSoft 0.5s ease forwards; }
@keyframes fadeInSoft { to { opacity: 1; } }

/* Responsive */
@media (max-width: 991px) {
  .section-pad { padding: 60px 0; }
  .hero-title { font-size: 2.4rem; }
  .contact-form-wrap { padding: 24px; }
}
@media (max-width: 767px) {
  .section-pad { padding: 50px 0; }
  .page-hero { min-height: 240px; }
  .project-card { height: 250px; }
  .product-detail-img { height: 300px; }
  .filter-bar { padding: 16px; }
  .filter-bar .d-flex { flex-direction: column; }
  .stat-item { padding: 12px 8px; }
  .stat-number { font-size: 1.4rem; }
  .stat-label { font-size: 0.6rem; letter-spacing: 1px; }
}
