/* ── Variables ─────────────────────────────────────────────────── */
:root {
  --red: #e30613;
  --red-dark: #b5000d;
  --red-glow: rgba(227, 6, 19, 0.15);
  --bg: #0a0a0a;
  --bg-2: #111111;
  --card-bg: #161616;
  --border: rgba(255, 255, 255, 0.07);
  --border-red: rgba(227, 6, 19, 0.25);
  --text: #f0f0f0;
  --muted: #9aa0a6;
  --font: Inter, "Segoe UI", system-ui, -apple-system, sans-serif;
}

/* ── Reset & Base ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  margin: 0;
}

a { color: var(--red); text-decoration: none; }
a:hover { color: var(--red-dark); }

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

/* ── Layout: Container ─────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 1rem;
}
@media (min-width: 576px) { .container { padding-inline: 1.5rem; } }
@media (min-width: 992px) { .container { padding-inline: 2rem; } }

/* ── Card base (dark, no white bleeding) ────────────────────────── */
.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  color: var(--text);
}
.card-body {
  padding: 1rem;
  background: var(--card-bg);
  color: var(--text);
}
.card-title {
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.5rem;
}

/* ── Page Loader ───────────────────────────────────────────────── */
#page-loader {
  background: var(--bg);
  z-index: 9999;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}
#page-loader.hide { opacity: 0; visibility: hidden; }

.loader-ring {
  width: 52px;
  height: 52px;
  border: 4px solid rgba(227, 6, 19, 0.18);
  border-top-color: var(--red);
  border-radius: 50%;
  animation: spin 0.85s linear infinite;
}
.loader-text {
  color: var(--red);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  animation: pulse 1.4s ease-in-out infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 0%, 100% { opacity: 0.3; } 50% { opacity: 1; } }

/* ── Navbar ────────────────────────────────────────────────────── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(10, 10, 10, 0.96);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 0.65rem 0;
}
.brand-text {
  font-weight: 700;
  font-size: 1.05rem;
  color: #fff;
  letter-spacing: -0.2px;
}
.logo-sm {
  height: 38px;
  width: auto;
  border-radius: 8px;
  object-fit: cover;
}
.nav-link {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.88rem;
  font-weight: 500;
  padding: 0.45rem 0.8rem;
  transition: color 0.2s;
  position: relative;
  display: inline-block;
}
.nav-link:hover { color: #fff; }
.nav-link.active {
  color: var(--red);
  font-weight: 600;
}
.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0.8rem;
  right: 0.8rem;
  height: 2px;
  background: var(--red);
  border-radius: 2px;
}
.nav-social-link {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: 0;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.nav-social-link:hover {
  border-color: var(--red);
  color: var(--red);
  background: rgba(227, 6, 19, 0.08);
}
.navbar-toggler {
  display: none;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 6px;
  padding: 0.35rem 0.55rem;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.1rem;
  line-height: 1;
}
.navbar-toggler:focus { outline: none; }
.navbar-mobile-menu {
  background: rgba(10, 10, 10, 0.98);
  border-top: 1px solid var(--border);
}
@media (max-width: 1023px) {
  .navbar-toggler { display: flex; align-items: center; justify-content: center; }
  .nav-link.active::after { display: none; }
}
@media (max-width: 767px) {
  .logo-sm { height: 34px; }
}

/* ── Buttons ───────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem;
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.5;
  border-radius: 9px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s, border-color 0.18s;
}
.btn-sm { padding: 0.3rem 0.7rem; font-size: 0.82rem; }
.btn-lg { padding: 0.65rem 1.25rem; font-size: 1.05rem; }
.btn-danger {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}
.btn-danger:hover {
  background: var(--red-dark);
  border-color: var(--red-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(227, 6, 19, 0.32);
}
.btn-outline-danger {
  background: transparent;
  color: var(--red);
  border-color: rgba(227, 6, 19, 0.5);
}
.btn-outline-danger:hover {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(227, 6, 19, 0.32);
}
.btn-outline-light {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.88);
}
.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
  transform: translateY(-2px);
}
.btn-outline-secondary {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.6);
}
.btn-outline-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.35);
  color: rgba(255, 255, 255, 0.9);
}
.btn-success {
  background: #25d366;
  border-color: #25d366;
  color: #fff;
}
.btn-success:hover {
  background: #1fb255;
  border-color: #1fb255;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.3);
}

/* ── Hero ──────────────────────────────────────────────────────── */
.hero {
  padding: 3rem 0 2.5rem;
  background: linear-gradient(135deg, rgba(227, 6, 19, 0.07) 0%, transparent 55%);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(227, 6, 19, 0.05) 0%, transparent 65%);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
  z-index: 0;
}
.hero > .container { position: relative; z-index: 1; }

.hero-headline {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.5px;
  color: #fff;
}
.hero-headline span { color: var(--red); }
.hero-lead {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.62);
  line-height: 1.75;
  max-width: 480px;
}
.hero-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  padding: 1.5rem 1.75rem;
  border-radius: 16px;
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(227, 6, 19, 0.05);
}
.logo-hero {
  max-width: 120px;
  border-radius: 12px;
  margin: 0 auto;
}

@media (max-width: 991px) { .hero { padding: 2rem 0 1.75rem; } }
@media (max-width: 767px) {
  .hero { padding: 1.5rem 0 1.25rem; }
  .hero-card { padding: 1.75rem 1.5rem; }
  .hero-lead { max-width: 100%; }
}
@media (max-width: 575px) { .hero-headline { font-size: 1.9rem; } }

/* ── Section Headings ──────────────────────────────────────────── */
.section-label {
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--red);
  display: block;
  margin-bottom: 0.5rem;
}
.section-title {
  font-size: clamp(1.55rem, 2.8vw, 2rem);
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.3px;
  line-height: 1.25;
  margin: 0 0 0.5rem;
}
.section-sub {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.97rem;
  line-height: 1.7;
}
.section-divider {
  width: 36px;
  height: 3px;
  background: var(--red);
  border-radius: 2px;
  margin: 0 auto;
}
@media (max-width: 575px) { .section-title { font-size: 1.45rem; } }

/* ── Feature Cards (Why Us section) ───────────────────────────── */
.feature-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}
.feature-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-red);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(227, 6, 19, 0.08);
}
.feature-icon {
  width: 52px;
  height: 52px;
  background: rgba(227, 6, 19, 0.09);
  border: 1px solid rgba(227, 6, 19, 0.18);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--red);
  font-size: 1.25rem;
  margin: 0 auto 1rem;
  transition: background 0.22s, border-color 0.22s;
}
.feature-card:hover .feature-icon {
  background: rgba(227, 6, 19, 0.16);
  border-color: rgba(227, 6, 19, 0.3);
}
.feature-card .card-title { font-size: 0.97rem; }
.feature-card .card-text {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.65;
}

/* ── Gallery Carousel (React component) ────────────────────────── */
.gallery-carousel { position: relative; }
.gallery-frame {
  position: relative;
  height: 500px;
  overflow: hidden;
  background: #050505;
}
@media (max-width: 991px) { .gallery-frame { height: 380px; } }
@media (max-width: 767px) { .gallery-frame { height: 240px; } }

.gallery-backdrop {
  position: absolute;
  inset: -10px;
  background-size: cover;
  background-position: center;
  filter: blur(26px) brightness(0.22) saturate(1.2);
  transform: scale(1.1);
  z-index: 0;
}
.gallery-main-img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
}
.gallery-carousel:hover .gallery-main-img { transform: scale(1.025); }

/* Progress bar — restarts via React key change */
.gallery-progress-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  width: 0;
  background: var(--red);
  z-index: 20;
  animation: gallery-progress 5.5s linear forwards;
}
@keyframes gallery-progress { from { width: 0; } to { width: 100%; } }

.gallery-dots {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 15;
}
.gallery-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.28);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.3s, transform 0.3s;
}
.gallery-dot.active {
  background: var(--red);
  transform: scale(1.45);
}
.gallery-ctrl {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  background: rgba(0, 0, 0, 0.55);
  border: none;
  border-radius: 50%;
  color: #fff;
  font-size: 0.9rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  opacity: 0;
  transition: opacity 0.25s, background 0.2s;
  backdrop-filter: blur(4px);
}
.gallery-ctrl-prev { left: 12px; }
.gallery-ctrl-next { right: 12px; }
.gallery-carousel:hover .gallery-ctrl { opacity: 1; }
.gallery-ctrl:hover { background: var(--red); }

/* ── Featured Carousel (React component) ───────────────────────── */
.featured-carousel-outer {
  position: relative;
  padding: 0 44px;
}
.featured-carousel-track { overflow: hidden; border-radius: 4px; }
.featured-carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  background: var(--red);
  border: none;
  border-radius: 50%;
  color: #fff;
  font-size: 0.8rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.55), 0 0 0 2px rgba(227, 6, 19, 0.35);
  transition: background 0.18s, box-shadow 0.18s;
}
.featured-carousel-btn:hover {
  background: var(--red-dark);
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.65), 0 0 0 2px rgba(227, 6, 19, 0.55);
}
.featured-carousel-prev { left: 0; }
.featured-carousel-next { right: 0; }
.featured-carousel-indicators {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 7px;
  margin-top: 1.75rem;
  padding: 0.65rem 1.25rem;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--border);
  border-radius: 50px;
  width: fit-content;
  margin-inline: auto;
}
.featured-carousel-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  border: none;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
  transition: background 0.25s, width 0.25s;
}
.featured-carousel-dot.active {
  background: var(--red);
  width: 20px;
  border-radius: 4px;
}

/* ── Product Card ──────────────────────────────────────────────── */
.product-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  color: var(--text);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  height: 100%;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
  border-color: var(--border-red);
}
.product-card .card-body { background: var(--card-bg); }
.product-card .card-title a { color: rgba(255, 255, 255, 0.88); }
.product-card .card-title a:hover { color: var(--red); }

/* ── Branch Preview Section ────────────────────────────────────── */
.branch-preview-section {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.branch-preview-item {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 0.9rem 1rem;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  transition: border-color 0.2s, transform 0.2s;
}
.branch-preview-item:hover {
  border-color: var(--border-red);
  transform: translateX(3px);
}
.branch-preview-item .bi-icon {
  color: var(--red);
  font-size: 1rem;
  margin-top: 2px;
  flex-shrink: 0;
}
.branch-preview-item strong { color: rgba(255, 255, 255, 0.88); font-size: 0.88rem; }
.branch-preview-item small { color: var(--muted); font-size: 0.82rem; }

/* ── CTA Section ───────────────────────────────────────────────── */
.cta-section {
  background: linear-gradient(135deg, rgba(227, 6, 19, 0.09) 0%, rgba(0, 0, 0, 0) 60%);
  border-top: 1px solid rgba(227, 6, 19, 0.12);
  border-bottom: 1px solid var(--border);
}
.cta-section h3 { color: #fff; font-weight: 700; }

/* ── Footer ────────────────────────────────────────────────────── */
.site-footer {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
}
.footer-brand-name { font-weight: 700; font-size: 1rem; color: #fff; line-height: 1.2; }
.footer-tagline { color: rgba(255, 255, 255, 0.44); font-size: 0.84rem; line-height: 1.65; }
.footer-heading {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 1rem;
}
.footer-links a {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.88rem;
  transition: color 0.2s;
  display: block;
  margin-bottom: 0.5rem;
}
.footer-links a:hover { color: var(--red); }
.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.87rem;
  color: rgba(255, 255, 255, 0.58);
  margin-bottom: 0.65rem;
}
.footer-contact-item a { color: rgba(255, 255, 255, 0.58); transition: color 0.2s; }
.footer-contact-item a:hover { color: var(--red); }
.footer-contact-item .icon {
  width: 28px; height: 28px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 6px;
  font-size: 0.78rem;
  flex-shrink: 0;
  color: var(--red);
}
.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px; height: 34px;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.88rem;
  transition: all 0.2s;
}
.footer-social a:hover { border-color: var(--red); color: var(--red); background: rgba(227, 6, 19, 0.07); }
.footer-bottom {
  border-top: 1px solid var(--border);
  color: rgba(255, 255, 255, 0.32);
  font-size: 0.8rem;
  padding: 0.75rem 0;
  text-align: center;
}

/* ── Page Hero (inner pages) ────────────────────────────────────── */
.page-hero {
  padding: 3.5rem 0 2.75rem;
  background: linear-gradient(135deg, rgba(227, 6, 19, 0.07) 0%, transparent 55%);
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  text-align: center;
}
.page-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.022) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
}
.page-hero > .container { position: relative; z-index: 1; }

/* ── Branch Cards ──────────────────────────────────────────────── */
.branch-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}
.branch-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-red);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
}
.branch-card .card-body { padding: 1.5rem; background: var(--card-bg); }
.branch-card .card-title { color: var(--red); font-size: 0.97rem; }
.branch-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px; height: 24px;
  background: rgba(227, 6, 19, 0.12);
  border: 1px solid rgba(227, 6, 19, 0.2);
  border-radius: 5px;
  color: var(--red);
  font-size: 0.72rem;
  font-weight: 800;
  margin-right: 0.45rem;
  flex-shrink: 0;
}
.branch-info-row {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.62);
  margin-bottom: 0.4rem;
}
.branch-info-row i { color: var(--red); font-size: 0.78rem; margin-top: 3px; flex-shrink: 0; width: 14px; }
.branch-info-row a { color: rgba(255, 255, 255, 0.62); transition: color 0.2s; }
.branch-info-row a:hover { color: var(--red); }

/* ── Contact ───────────────────────────────────────────────────── */
.contact-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
}
.contact-card .card-body { padding: 2rem; background: var(--card-bg); }
.contact-card .card-title { font-size: 1.05rem; margin-bottom: 1.25rem; }
.form-control,
.form-select {
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  border-radius: 9px;
  padding: 0.6rem 0.9rem;
  font-size: 0.9rem;
  font-family: var(--font);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}
.form-control:focus,
.form-select:focus {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(227, 6, 19, 0.45);
  box-shadow: 0 0 0 3px rgba(227, 6, 19, 0.1);
}
.form-control::placeholder { color: rgba(255, 255, 255, 0.28); }
textarea.form-control { resize: vertical; min-height: 110px; }
.form-label {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 0.45rem;
  display: block;
}
.contact-detail-item { display: flex; align-items: flex-start; gap: 0.85rem; margin-bottom: 1.1rem; }
.contact-icon {
  width: 40px; height: 40px;
  background: rgba(227, 6, 19, 0.1);
  border: 1px solid rgba(227, 6, 19, 0.18);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: var(--red);
  font-size: 0.95rem;
  flex-shrink: 0;
}
.contact-detail-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 0.15rem;
}
.contact-detail-value { font-size: 0.9rem; color: rgba(255, 255, 255, 0.82); }
.contact-detail-value a { color: rgba(255, 255, 255, 0.82); transition: color 0.2s; }
.contact-detail-value a:hover { color: var(--red); }
@media (max-width: 767px) { .contact-card .card-body { padding: 1.5rem; } }

/* ── Utilities ─────────────────────────────────────────────────── */
.text-muted { color: var(--muted) !important; }
.text-red { color: var(--red) !important; }
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
