/* --------------------
   RESET & BASE STYLES
-------------------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --se-gradient: linear-gradient(90deg, #0052A5, #4F4F4F);
  --se-blue: #0052A5;
  --se-dark: #333;
  --se-light: #f8f9fa;
  --text-main: #333;
  --text-muted: #555;
  --card-bg: #ffffff;
}
body.dark {
  --text-main: #e5e7eb;
  --text-muted: #9ca3af;
  --card-bg: #1f2933;
}


body {
  font-family: Arial, sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: #fff;
  color: var(--se-dark);
  scroll-behavior: smooth;
}

/* --------------------
   HEADER & NAVIGATION
-------------------- */
header {
  width: 100%;
  background: var(--se-light);
  border-bottom: 3px solid var(--se-blue);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-sizing: border-box;
}

/* Brand */
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--se-dark);
  cursor: pointer;
  flex: 1;
  min-width: 0;
}

.brand:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(0,82,165,0.15);
  border-radius: 6px;
}

.brand-logo {
  height: 48px;
  width: auto;
  flex-shrink: 0;
  border-radius: 6px;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  overflow: hidden;
}

.brand-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--se-blue);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.brand-sub {
  font-size: 0.8rem;
  color: #666;
  margin-top: 2px;
}

/* Desktop Navigation */
.main-nav {
  display: flex;
  gap: 18px;
  align-items: center;
}

.main-nav a {
  color: var(--se-dark);
  font-weight: 700;
  text-decoration: none;
  padding: 6px 10px;
  border-radius: 6px;
  transition: background 0.18s, color 0.18s;
}

.main-nav a:hover,
.main-nav a:focus,
.main-nav a.active {
  background: rgba(0,82,165,0.08);
  color: var(--se-blue);
}

/* Hamburger */
.hamburger {
  display: none;
  font-size: 1.6rem;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--se-dark);
  flex-shrink: 0;
}

/* Mobile Menu Drawer */
.mobile-menu {
  position: fixed;
  top: 0;
  right: -260px;
  width: 240px;
  height: 100%;
  background: var(--se-light);
  box-shadow: -4px 0 12px rgba(0,0,0,0.15);
  transition: right 0.3s ease;
  z-index: 1500;
  display: flex;
  flex-direction: column;
  padding: 20px;
}

.mobile-menu nav {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.mobile-menu a {
  font-weight: 600;
  color: var(--se-dark);
  text-decoration: none;
  font-size: 1rem;
}

.mobile-menu a:hover {
  color: var(--se-blue);
}

.mobile-menu .theme-toggle {
  margin-top: 20px;
  width: 100%;
}

.mobile-menu .close-btn {
  align-self: flex-end;
  font-size: 1.8rem;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--se-dark);
  margin-bottom: 20px;
}

.mobile-menu.active {
  right: 0;
}

/* Responsive Header (Mobile) */
@media (max-width: 720px) {
  header {
    flex-direction: row;
    align-items: center;
    padding: 10px 14px;
    gap: 8px;
  }

  .main-nav { display: none; }
  .hamburger { display: block; }
  .brand-sub { display: none; }
  .brand-logo { height: 42px; }
  .brand-title { font-size: 0.95rem; }
}

/* --------------------
   MAIN CONTENT
-------------------- */
main {
  flex: 1;
  padding: 20px;
}

h1 {
  background: var(--se-gradient);
  color: #fff;
  padding: 10px;
  border-radius: 6px;
  text-align: center;
  margin-bottom: 20px;
  letter-spacing: 1px;
}


/* Home feature strip under hero */
.home-feature-strip {
  max-width: 1200px;
  margin: 0 auto 30px;
}

.home-feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.feature-card {
  background: #fff;
  border-radius: 10px;
  padding: 16px 16px 18px;
  box-shadow: 0 8px 24px rgba(15,23,42,0.06);
  border: 1px solid rgba(0,0,0,0.03);
}

.feature-icon {
  font-size: 1.8rem;
  margin-bottom: 8px;
}

.feature-card h3 {
  font-size: 1.05rem;
  margin-bottom: 6px;
  color: var(--se-blue);
}

.feature-card p {
  font-size: 0.92rem;
  color: #444;
}

/* simple fade up animation */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 768px) {
  .home-carousel {
    height: 60vh;
    border-radius: 8px;
  }
  .carousel-content {
    left: 6%;
    right: 6%;
    max-width: none;
  }
  .carousel-content h1 {
    font-size: 1.6rem;
  }
}

/* --------------------
   FOOTER
-------------------- */
footer {
  background: var(--se-gradient);
  color: #fff;
  text-align: center;
  padding: 12px;
  font-size: 14px;
}

/* --------------------
   PRODUCT GRID & CARDS
-------------------- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  padding: 20px;
}

.card {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  padding: 15px;
  text-align: center;
  transition: transform 0.2s, border 0.2s, box-shadow 0.2s;
}

.card:hover {
  transform: translateY(-5px);
  border: 2px solid var(--se-blue);
  box-shadow: 0 6px 16px rgba(0,0,0,0.15);
}

.card img {
  max-width: 100%;
  max-height: 100%;
  width: 100%;
  height: 100%;
  object-fit: contain;       /* 🔑 use contain, NOT cover */
  display: block;
  border-radius: 6px;
}


.available-soon {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 160px;
  background: #f4f4f4;
  border: 2px dashed #ccc;
  border-radius: 6px;
  color: #888;
  font-weight: 600;
  font-style: italic;
}

/* --------------------
   CATEGORY FILTER
-------------------- */
.category-bar {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 20px 0;
  gap: 14px;
}

.category-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.cat-btn {
  background: var(--se-light);
  border: 2px solid rgba(0,0,0,0.15);
  padding: 8px 16px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 600;
  color: var(--se-dark);
  transition: all 0.2s ease;
  font-size: 0.95rem;
}

.cat-btn:hover {
  background: rgba(0,82,165,0.08);
  border-color: var(--se-blue);
  color: var(--se-blue);
  transform: translateY(-2px);
}

.cat-btn.active {
  background: var(--se-gradient);
  color: #fff;
  border-color: var(--se-blue);
  box-shadow: 0 4px 12px rgba(0,82,165,0.25);
}

/* Dropdown (mobile) */
.category-dropdown {
  display: none;
  padding: 10px 14px;
  font-size: 1rem;
  border: 2px solid #ccc;
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  width: 100%;
  max-width: 300px;
  transition: border 0.2s;
}

.category-dropdown:focus {
  border-color: var(--se-blue);
}

@media (max-width: 600px) {
  .category-buttons { display: none; }
  .category-dropdown { display: block; margin: 0 auto; }
}

/* --------------------
   CONTROLS
-------------------- */
.controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin: 0 0 20px;
  flex-wrap: wrap;
}

.search-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
  max-width: 320px;
  flex: 1;
}

.search-bar {
  width: 100%;
  padding: 10px 36px 10px 34px;
  font-size: 1rem;
  border: 2px solid #ccc;
  border-radius: 8px;
  transition: border 0.2s, box-shadow 0.2s;
}

.search-bar:focus {
  border-color: var(--se-blue);
  box-shadow: 0 0 4px rgba(0,82,165,0.3);
}

.search-icon {
  position: absolute;
  left: 10px;
  font-size: 1rem;
  color: #888;
}

.clear-btn {
  position: absolute;
  right: 10px;
  background: none;
  border: none;
  font-size: 1.2rem;
  color: #888;
  cursor: pointer;
  display: none;
}

.clear-btn:hover { color: var(--se-blue); }

.sort-select {
  padding: 10px 14px;
  font-size: 1rem;
  border: 2px solid #ccc;
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  transition: border 0.2s;
}

.sort-select:focus { border-color: var(--se-blue); }

/* --------------------
   IMAGE POPUP
-------------------- */
.image-popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2000;
  animation: fadeIn 0.2s ease;
}

.image-popup-content {
  position: relative;
  max-width: 90%;
  max-height: 90%;
}

.image-popup-content img {
  max-width: 100%;
  max-height: 100%;
  border-radius: 8px;
  box-shadow: 0 0 15px rgba(0,0,0,0.5);
}

.image-popup-close {
  position: absolute;
  top: -10px;
  right: -10px;
  background: #fff;
  color: #333;
  font-size: 1.5rem;
  line-height: 1;
  border: none;
  padding: 6px 10px;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

.image-popup-close:hover {
  background: #f33;
  color: #fff;
}

/* --------------------
   ABOUT PAGE STYLES
-------------------- */
.about-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  line-height: 1.7;
}

.about-intro {
  font-size: 1.2rem;
  margin-bottom: 28px;
  text-align: center;
  animation: fadeIn 1s ease;
}

.about-block {
  margin-bottom: 40px;
}

.about-block h2 {
  font-size: 1.4rem;
  margin-bottom: 16px;
  color: var(--se-blue);
  border-left: 4px solid var(--se-blue);
  padding-left: 10px;
}

.about-block ul {
  list-style: none;
  padding-left: 0;
}

.about-block ul li {
  margin-bottom: 10px;
  padding-left: 22px;
  position: relative;
}

.about-block ul li::before {
  content: "✔";
  position: absolute;
  left: 0;
  color: var(--se-blue);
  font-weight: bold;
}

/* Strengths Grid */
.strength-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.strength-card {
  background: #f8f9fc;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.strength-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.strength-card h3 {
  margin-bottom: 8px;
  color: var(--se-blue);
}

/* ---------- CONTACT PAGE LAYOUT ---------- */
.contact-section {
  padding: 36px 20px;
  background: linear-gradient(180deg, rgba(0,82,165,0.03), rgba(79,79,79,0.01));
}

.contact-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 460px;
  gap: 28px;
  align-items: start;
}

/* Left card */
.contact-card-left {
  background: #fff;
  border-radius: 12px;
  padding: 22px;
  box-shadow: 0 8px 30px rgba(5,20,40,0.06);
  border: 1px solid rgba(0,0,0,0.04);
}

.card-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}

.contact-logo {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 6px 18px rgba(0,82,165,0.08);
  border: 2px solid rgba(0,82,165,0.06);
}

.card-header h2 {
  margin: 0;
  font-size: 1.25rem;
  color: var(--se-blue);
}

.muted {
  color: #666;
  font-size: 0.95rem;
  margin-top: 4px;
}

/* Blocks */
.contact-block { margin: 16px 0; }
.contact-block h3 {
  margin: 0 0 8px 0;
  font-size: 1rem;
  color: var(--se-blue);
}
.contact-block address,
.contact-block p { color: #333; line-height: 1.6; }

.contact-list {
  list-style: none;
  padding-left: 0;
  margin: 8px 0 0 0;
}
.contact-list li { margin: 6px 0; }
.contact-list a { color: #0b486b; text-decoration: none; font-weight: 600; }
.contact-list a:hover { text-decoration: underline; color: var(--se-blue); }

/* Actions */
.contact-actions {
  display: flex;
  gap: 10px;
  margin-top: 14px;
  flex-wrap: wrap;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform .12s ease, box-shadow .12s ease;
}
.btn.primary {
  background: var(--se-blue);
  color: #fff;
  border-color: rgba(0,82,165,0.15);
  box-shadow: 0 6px 18px rgba(0,82,165,0.12);
}
.btn.primary:hover { transform: translateY(-3px); }
.btn.outline {
  background: transparent;
  color: var(--se-blue);
  border-color: var(--se-blue);
}
.btn.ghost {
  background: transparent;
  color: #444;
  border-color: rgba(0,0,0,0.06);
}

/* Note */
.note {
  margin-top: 16px;
  padding: 12px;
  background: linear-gradient(90deg, rgba(0,82,165,0.04), rgba(79,79,79,0.01));
  border-radius: 8px;
  border-left: 4px solid var(--se-blue);
  color: #444;
  font-size: 0.95rem;
}

.note-list {
  list-style: none;
  padding-left: 0;
  margin-top: 10px;
}

.note-list li {
  padding-left: 20px;
  margin-bottom: 6px;
  position: relative;
  line-height: 1.5;
}

.note-list li::before {
  content: "✔";
  position: absolute;
  left: 0;
  color: var(--se-blue);
  font-weight: bold;
}

/* Right card */
.contact-card-right {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.map-wrap {
  height: 280px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(5,20,40,0.06);
  border: 1px solid rgba(0,0,0,0.04);
}

.side-info {
  background: #fff;
  border-radius: 12px;
  padding: 14px;
  border: 1px solid rgba(0,0,0,0.04);
  box-shadow: 0 6px 18px rgba(5,20,40,0.04);
}
.side-info h4 { margin: 0 0 8px 0; color: var(--se-blue); }
.side-info p { margin: 6px 0; color: #333; }
.side-info ul { margin: 6px 0 0 18px; color: #444; }

@media (max-width: 1000px) {
  .contact-container { grid-template-columns: 1fr; }
  .contact-card-right { order: -1; }
  .map-wrap { height: 300px; }
}

/* --------------------
   DARK MODE
-------------------- */
body.dark {
  background: #1a1a1a;
  color: #f0f0f0;
}

body.dark header {
  background: #2a2a2a;
  border-bottom: 3px solid var(--se-blue);
}

body.dark .main-nav a { color: #f0f0f0; }
body.dark .main-nav a:hover,
body.dark .main-nav a:focus {
  background: rgba(0,82,165,0.2);
  color: #fff;
}

body.dark .card {
  background: #2a2a2a;
  border: 1px solid #444;
  color: #f0f0f0;
}

body.dark .available-soon {
  background: #333;
  border-color: #555;
  color: #bbb;
}

body.dark .search-bar,
body.dark .sort-select,
body.dark .category-dropdown {
  background: #2a2a2a;
  border: 2px solid #555;
  color: #f0f0f0;
}

body.dark .search-icon,
body.dark .clear-btn {
  color: #aaa;
}

body.dark .contact-card-left,
body.dark .side-info {
  background: #111827;
  color: #e5e7eb;
  border-color: rgba(255,255,255,0.04);
}

body.dark .contact-block address,
body.dark .contact-block p,
body.dark .side-info p,
body.dark .side-info ul {
  color: #e5e7eb;
}

body.dark .note {
  background: rgba(17, 24, 39, 0.8);
  border-left-color: #4fa0ff;
  color: #e5e7eb;
}

body.dark .contact-list a { color: #9fd1ff; }

/* --------------------
   THEME TOGGLE BUTTON
-------------------- */
.theme-toggle {
  background: var(--se-gradient);
  border: none;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 30px;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.theme-toggle:hover {
  background: linear-gradient(90deg, #004080, #333);
  transform: translateY(-2px);
}

.theme-toggle:active {
  transform: scale(0.95);
}

/* Mobile menu version */
.mobile-menu .theme-toggle {
  margin-top: 20px;
  width: 100%;
  justify-content: center;
}

/* Fade-in helper */
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ================= INFO CARDS BELOW ================= */
.home-info{
  padding:50px 20px;
  background:#f8f9fa;
}

.info-grid{
  max-width:1100px;
  margin:auto;
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(300px,1fr));
  gap:25px;
}

.info-card{
  background:white;
  padding:25px;
  border-radius:10px;
  box-shadow:0 4px 18px rgba(0,0,0,0.1);
  text-align:center;
}


.info-card h2{ color:var(--se-blue);}
.info-card p{ margin:10px 0 18px;color:#444;}

body.dark .info-card {
  background: #111827;
  box-shadow: 0 8px 24px rgba(0,0,0,0.6);
}

.h-btn{
  padding:10px 18px;
  border-radius:6px;
  font-weight:bold;
  text-decoration:none;
}
.h-btn.primary{
  background:var(--se-blue);
  color:white;
}
.h-btn.outline{
  border:2px solid var(--se-blue);
  color:var(--se-blue);
}

:root {
  /* brand colors (matches SE logo) */
  --se-blue: #0052A5;
  --se-blue-2: #2b7fc9;   /* lighter accent */
  --se-gradient: linear-gradient(90deg, #0052A5, #4F4F4F);
  --se-accent-strong: rgba(0,82,165,0.14);
  --se-accent-soft: rgba(43,127,201,0.06);
  --container-w: 1200px;
}

/* small container utility (used by home sections) */
.container {
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 18px;
}

/* refine hero: subtle blue overlay for readability */
.home-carousel {
  background: #f3f5f7;
}

/* more polished carousel track and active transform */
.carousel-track { position: relative; width: 100%; height: 100%; }
.carousel-slide { left: 0; top: 0; display:flex; align-items:center; transition:opacity .8s ease-in-out, transform .6s ease; }
.carousel-slide.active{ transform: scale(1); z-index:2; }

/* content box on left */
.carousel-content {
  position: absolute;
  left: 6%;
  top: 50%;
  transform: translateY(-50%);
  color: #fff;
  max-width: 560px;
  z-index: 4;
  animation: fadeUp .8s ease;
}

.hero-kicker {
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--se-blue-2);
  color: #fff;
  font-weight: 700;
  display:inline-block;
  margin-bottom: 10px;
  box-shadow: 0 6px 18px rgba(43,127,201,0.12);
}

.carousel-content h2 {
  font-size: 2.15rem;
  margin: 8px 0;
  color: #fff;
  line-height: 1.05;
}

/* buttons */
.c-btn { border: none; border-radius: 8px; padding:10px 16px; font-weight:700; display:inline-flex; align-items:center; gap:.5rem; }
.c-btn.primary { background:var(--se-blue); color:#fff; box-shadow: 0 8px 20px rgba(0,82,165,0.12); }
.c-btn.primary:hover { background: #003f7a; transform: translateY(-2px); }
.c-btn.outline { background:transparent; color:#fff; border:2px solid rgba(255,255,255,0.18); }
.c-btn.outline:hover { background: #fff; color: var(--se-blue); border-color: rgba(0,82,165,0.15); }

/* refined arrows & hide on mobile */
.carousel-btn { border:none; background: rgba(0,0,0,0.45); padding:8px 12px; border-radius:999px; color:#fff; }
@media (max-width: 560px) { .carousel-btn { display:none; } }

/* make dots buttons for accessibility (if your JS generates buttons) */
.carousel-dot, .carousel-dots button {
  width:11px; height:11px; border-radius:50%; background: rgba(255,255,255,0.45); border:none; cursor:pointer;
}
.carousel-dot.active-dot, .carousel-dots button.active-dot { background:#fff; transform:scale(1.15); box-shadow: 0 4px 10px rgba(0,0,0,0.18); }

/* WHO WE ARE + WHAT WE OFFER */
.about-offer-section { padding: 48px 0; background: #fff; }
.layout-two-col { display:grid; grid-template-columns: 1fr 1fr; gap:28px; align-items:start; }
.section-heading { font-size:1.25rem; color:var(--se-blue); margin-bottom:12px; border-bottom:3px solid var(--se-blue-2); padding-bottom:8px; display:inline-block; }
.about-img { width:100%; max-height:260px; object-fit:cover; border-radius:8px; box-shadow:0 8px 18px rgba(0,0,0,0.06); margin-bottom:12px; border: 1px solid rgba(0,82,165,0.06); }
.lead { color:var(--text-main); line-height:1.6; margin-bottom:10px; }
.offer-list { list-style:none; padding-left:0; display:grid; grid-template-columns:1fr 1fr; gap:10px; margin-top:12px; }
.offer-list li { position:relative; padding-left:26px; color:var(--text-main); }
.offer-list .dot { width:10px; height:10px; background:var(--se-blue); border-radius:50%; position:absolute; left:0; top:6px; box-shadow: 0 4px 10px rgba(0,82,165,0.08); }

/* small CTAs */
.small-cta { margin-top:18px; display:flex; gap:10px; flex-wrap:wrap; }
.btn.primary { background:var(--se-blue); color:#fff; border-color: rgba(0,82,165,0.12); box-shadow: 0 8px 24px rgba(0,82,165,0.06); }
.btn.primary:hover { transform: translateY(-3px); }
.btn.outline { background:transparent; color:var(--se-blue); border-color:var(--se-blue); }

/* OUR RANGE */
.our-range { padding:36px 0; background: linear-gradient(180deg, var(--se-accent-soft), rgba(0,0,0,0.01)); }
.range-grid { display:grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap:20px; margin-top:18px; }
.range-card { background:#fff; border-radius:10px; padding:18px; text-align:center; box-shadow:0 6px 18px rgba(0,0,0,0.05); border:4px solid rgba(0,82,165,0.08); }
.range-thumb { height:120px; display:flex; align-items:center; justify-content:center; margin-bottom:12px; }
.range-thumb img { max-height:100%; max-width:100%; object-fit:contain; }
.range-card p {
  color: var(--text-main);
}
body.dark .our-range {
  background: linear-gradient(180deg, #0f172a, #020617);
}

body.dark .range-card {
  background: #020617;
  border-color: rgba(255,255,255,0.08);
}

body.dark .range-card p {
  color: #e5e7eb;
}

/* ===============================
   Range Section CTA (Refined)
   =============================== */
.range-note {
  margin: 20px auto 14px;
  padding: 12px 18px;
  max-width: 760px;
  background: linear-gradient(90deg, rgba(0,82,165,0.05), rgba(79,79,79,0.02));
  border-left: 4px solid var(--se-blue);
  border-radius: 8px;
  font-size: 0.95rem;
  color: var(--text-muted);
  text-align: center;
}


body.dark .range-note {
  background: rgba(255,255,255,0.04);
  color: #d1d5db;
  border-left-color: #60a5fa;
}


.range-cta {
  display: flex;
  justify-content: center;
  margin-top: 16px;
}

.range-cta .btn {
  padding: 12px 26px;
  font-size: 1rem;
  letter-spacing: 0.4px;
}

/* NEW ARRIVALS */
.new-arrivals { padding:36px 0; background:#fff; }
.arrivals-grid { display:grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap:18px; margin-top:18px; }
.arrival-card { background:#fff; border-radius:8px; padding:14px; box-shadow:0 8px 24px rgba(0,0,0,0.06); text-align:center; transition:transform .16s; border: 1px solid rgba(0,0,0,0.04); }
.arrival-card img { width:100%; height:140px; object-fit:contain; margin-bottom:12px; }
.arrival-card h4 { color:var(--se-blue); font-weight:700; margin-bottom:6px; }
.arrival-card:hover { transform:translateY(-6px); box-shadow: 0 12px 30px rgba(0,82,165,0.06); }

body.dark .arrival-card h4 {
  color: #93c5fd; /* soft blue, readable */
}

/* ===============================
   CAR RANGES (Tabs) – Refined
   =============================== */

.car-ranges {
  padding: 26px 0;
  background: #f9fbfc;
}

/* Tabs container */
.brand-tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 16px;
}

/* Default tab (NO blue border) */
.brand-tab {
  background: linear-gradient(
    180deg,
    rgba(0,0,0,0.03),
    rgba(0,0,0,0.01)
  );

  border: 1.5px solid rgba(0,0,0,0.15);

  padding: 8px 14px;
  min-width: 120px;
  height: 120px;

  border-radius: 10px;
  cursor: pointer;

  display: flex;
  align-items: center;
  justify-content: center;

  font-weight: 600;
  font-size: 0.8rem;
  color: var(--se-dark);

  box-shadow: 0 2px 6px rgba(0,0,0,0.06);

  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease;
}

/* Logo inside tab */
.brand-tab img {
  max-height: 72px;
  max-width: 72px;
  object-fit: contain;
  transition: filter 0.2s ease;
}

/* Hover – still neutral */
.brand-tab:hover {
  transform: translateY(-2px);
  background: rgba(0,82,165,0.05);
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* ACTIVE — BLUE BORDER + NEON GLOW */
.brand-tab.active {
  border-color: var(--se-blue);
  background: linear-gradient(
    180deg,
    rgba(0,82,165,0.12),
    rgba(0,82,165,0.05)
  );

  box-shadow:
    0 0 14px rgba(0,82,165,0.65),
    inset 0 0 14px rgba(0,82,165,0.18);

  transform: translateY(-2px);
}

/* Active logo highlight */
.brand-tab.active img {
  filter: brightness(1.15) contrast(1.1);
}

/* Brand image */
.brand-display {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-top: 8px;
}

.brand-car {
  width: 100%;
  height: 210px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid rgba(0,0,0,0.06);
  box-shadow: 0 8px 22px rgba(0,0,0,0.08);
}

/* --------------------
   DARK MODE
-------------------- */
body.dark .car-ranges {
  background: #020617;
}

body.dark .brand-tab {
  background: linear-gradient(
    180deg,
    rgba(255,255,255,0.06),
    rgba(255,255,255,0.02)
  );

  border-color: rgba(255,255,255,0.15);
  color: #e5e7eb;
}

body.dark .brand-tab:hover {
  background: rgba(96,165,250,0.12);
}

body.dark .brand-tab.active {
  border-color: #60a5fa;

  box-shadow:
    0 0 16px rgba(96,165,250,0.9),
    inset 0 0 18px rgba(96,165,250,0.3);
}

/* TESTIMONIAL STRIP */
.testimonial-strip { background: linear-gradient(90deg, rgba(0,82,165,0.04), rgba(79,79,79,0.01)); padding:18px 0; margin-top:16px; }
.testimonial-text { font-weight:700; text-align:center; color:var(--se-dark); }
.testimonial-author { display:block; text-align:center; margin-top:8px; color:var(--text-muted); }
body.dark .testimonial-strip {
  background: rgba(255,255,255,0.03);
}


/* small utilities & responsive tweaks for home */
@media (max-width: 1000px) {
  .layout-two-col { grid-template-columns: 1fr; }
  .carousel-content { max-width: 56%; }
}

@media (max-width: 880px) {
  .brand-display { flex-direction: column; }
  .brand-right { width:100%; }
}

@media (max-width: 600px) {
  .carousel-content { max-width: 90%; left: 5%; }
  .range-grid { grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); }
  .arrivals-grid { grid-template-columns: 1fr 1fr; }
  .arrival-card img { height:120px; object-fit:contain; }
}

/* small helper */
.center { text-align:center; }
.muted { color:#666; font-size:0.95rem; }
/* --------------------
   HOME HERO CAROUSEL (FINAL – SINGLE SOURCE)
-------------------- */
.home-carousel {
  position: relative;
  width: 100%;
  height: 75vh;
  max-height: 620px;
  min-height: 380px;
  overflow: hidden;
  border-radius: 10px;
  margin-bottom: 26px;
}

/* Slides */
.carousel-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateX(20px);
  transition:
    opacity 0.8s ease-in-out,
    transform 0.8s ease-in-out;
}

.carousel-slide.active {
  opacity: 1;
  transform: translateX(0);
  z-index: 2;
}

/* Images – cinematic hero treatment */
.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: brightness(0.9) contrast(1.08);
  transition: transform 6s ease, filter 0.6s ease;
}

/* subtle slow zoom on active slide */
.carousel-slide.active img {
  transform: scale(1.04);
}


/* Overlay for readability */
.carousel-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(0,0,0,0.65),
    rgba(0,0,0,0.15)
  );
}

/* Content */
.carousel-content {
  position: absolute;
  left: 7%;
  top: 50%;
  transform: translateY(-50%);
  color: #fff;
  max-width: 560px;
  z-index: 3;
  animation: fadeUp 0.8s ease-out;
}

.carousel-content h1 {
  background: none;
  padding: 0;
  margin-bottom: 8px;
  text-align: left;
  font-size: 2.4rem;
}

.carousel-content p {
  font-size: 1rem;
  margin-bottom: 10px;
}

/* Buttons */
.c-btns {
  margin-top: 14px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.c-btn {
  padding: 10px 18px;
  border-radius: 6px;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  transition: 0.3s;
}

.c-btn.primary {
  background: var(--se-blue);
  color: #fff;
}

.c-btn.primary:hover {
  background: #003a78;
}

.c-btn.outline {
  border: 2px solid #fff;
  color: #fff;
}

/* Arrows */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 28px;
  color: #fff;
  padding: 8px 12px;
  cursor: pointer;
  background: rgba(0,0,0,0.45);
  border-radius: 999px;
  transition: 0.3s;
  user-select: none;
  z-index: 4;
}

.carousel-btn:hover {
  background: rgba(0,0,0,0.75);
}

.carousel-btn.prev { left: 18px; }
.carousel-btn.next { right: 18px; }

/* Dots */
.carousel-dots {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 4;
}

.carousel-dots span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  cursor: pointer;
  transition: 0.25s;
}

.carousel-dots span.active {
  background: #fff;
  transform: scale(1.15);
}

/* Responsive */
@media (max-width: 768px) {
  .home-carousel {
    height: 60vh;
    min-height: 320px;
    border-radius: 8px;
  }

  .carousel-content {
    left: 6%;
    right: 6%;
    max-width: none;
  }

  .carousel-content h1 {
    font-size: 1.6rem;
  }

  .carousel-btn {
    display: none;
  }
}
/* ===============================
   Carousel Right-side Content
   =============================== */
.carousel-content.right-content {
  left: auto;
  right: 6%;
  text-align: right;
}

.carousel-content.right-content .c-btns {
  justify-content: flex-end;
}

/* Mobile: keep center-aligned for readability */
@media (max-width: 768px) {
  .carousel-content.right-content {
    right: auto;
    left: 6%;
    text-align: left;
  }

  .carousel-content.right-content .c-btns {
    justify-content: flex-start;
  }
}
/* ===============================
   Car Range Fixed Box + Cards
   =============================== */

.tabcontent {
  display: none;
  border: 1px solid #e0e6eb;
  border-radius: 10px;
  padding: 12px;
  background: #f9fbfd;

  /* FIXED SIZE – REDUCED */
  height: 200px;
  max-width: 820px;
  margin: 0 auto;

  overflow-y: auto;
}

/* Grid – tighter */
.car-model-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 8px;
}

/* Individual car card – SMALLER */
.car-card {
  background: #ffffff;
  border: 1px solid #dbe3ea;
  border-radius: 6px;

  padding: 6px 5px;
  text-align: center;

  font-weight: 600;
  font-size: 0.82rem;
  color: #333;

  cursor: pointer;
  transition:
    border-color 0.18s ease,
    color 0.18s ease,
    transform 0.18s ease,
    box-shadow 0.18s ease;
}

/* Hover – BORDER ONLY */
.car-card:hover {
  border-color: var(--se-blue);
  color: var(--se-blue);
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(0,82,165,0.08);
}

/* Scrollbar */
.tabcontent::-webkit-scrollbar {
  width: 5px;
}

.tabcontent::-webkit-scrollbar-thumb {
  background: rgba(0, 82, 165, 0.35);
  border-radius: 4px;
}

/* ===============================
   Mobile tuning
   =============================== */

@media (max-width: 600px) {
  .tabcontent {
    height: auto;
    padding: 10px;
  }

  .car-model-grid {
    grid-template-columns: repeat(auto-fit, minmax(95px, 1fr));
    gap: 6px;
  }

  .car-card {
    font-size: 0.78rem;
    padding: 6px 4px;
  }
}

/* ===============================
   DARK MODE – CAR RANGE FIX
   =============================== */

body.dark .car-ranges {
  background: #0f172a;
}

body.dark .tabcontent {
  background: #111827;
  border-color: #1f2937;
}

/* Cards */
body.dark .car-card {
  background: #0b1220;
  border-color: #1e293b;
  color: #e5e7eb;
}

/* Hover stays premium */
body.dark .car-card:hover {
  border-color: #60a5fa;
  color: #60a5fa;
  box-shadow: 0 0 0 2px rgba(96,165,250,0.25);
}

/* Scrollbar – Dark */
body.dark .tabcontent::-webkit-scrollbar-thumb {
  background: rgba(147, 197, 253, 0.45);
}
