/* ============================================
   STARWAY MOTORS - Foreign Trade Showcase Site
   Placeholder brand - replace with your own
   ============================================ */

:root {
  --navy: #0e1b2c;
  --navy-2: #16283f;
  --orange: #f5821f;
  --orange-dark: #d96a0a;
  --text: #1f2937;
  --text-light: #6b7280;
  --bg: #ffffff;
  --bg-gray: #f4f6f9;
  --border: #e5e7eb;
  --surface: #ffffff;
  --surface-2: #eef1f5;
  --ink: #0e1b2c;
  --mainbar-bg: rgba(255, 255, 255, 0.97);
  --radius: 12px;
  --shadow: 0 6px 24px rgba(14, 27, 44, 0.08);
  --container: 1200px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: "Segoe UI", "Helvetica Neue", Arial, "PingFang SC", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Header ---------- */
.mainbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--mainbar-bg);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.mainbar-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 72px;
}
.mainbar-inner .nav { margin-left: auto; }
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--ink);
}
.logo .mark {
  width: 38px;
  height: 38px;
  background: var(--orange);
  color: #fff;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 900;
}
.logo .mark-sub { color: var(--orange); }

.nav { display: flex; gap: 30px; }
.nav a {
  font-weight: 600;
  font-size: 15px;
  color: var(--text);
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: 0.2s;
}
.nav a:hover, .nav a.active { color: var(--orange); border-bottom-color: var(--orange); }

.header-cta {
  background: var(--orange);
  color: #fff !important;
  padding: 10px 22px;
  border-radius: 8px;
  border-bottom: none !important;
  font-weight: 700;
}
.header-cta:hover { background: var(--orange-dark); color: #fff !important; }

.nav-toggle { display: none; background: none; border: none; font-size: 26px; cursor: pointer; color: var(--ink); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 560px;
  display: flex;
  align-items: center;
  background: url("../images/hero-banner.jpg") center/cover no-repeat;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(10, 20, 34, 0.85) 0%, rgba(10, 20, 34, 0.55) 45%, rgba(10, 20, 34, 0.15) 100%);
}
.hero-content {
  position: relative;
  color: #fff;
  max-width: 640px;
  padding: 80px 0;
}
.hero-tag {
  display: inline-block;
  background: var(--orange);
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.hero h1 {
  font-size: 48px;
  line-height: 1.15;
  font-weight: 800;
  margin-bottom: 18px;
}
.hero p { font-size: 18px; color: #dbe3ee; margin-bottom: 32px; max-width: 520px; }
.btn {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 15px;
  transition: 0.2s;
  cursor: pointer;
  border: none;
}
.btn-primary { background: var(--orange); color: #fff; }
.btn-primary:hover { background: var(--orange-dark); transform: translateY(-2px); }
.btn-outline { background: transparent; color: #fff; border: 2px solid rgba(255, 255, 255, 0.7); margin-left: 14px; }
.btn-outline:hover { border-color: #fff; background: rgba(255, 255, 255, 0.1); }

/* ---------- Trust bar ---------- */
.trust-bar { background: var(--navy); color: #fff; padding: 26px 0; }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.trust-item { display: flex; align-items: center; gap: 14px; }
.trust-icon {
  width: 46px; height: 46px; flex-shrink: 0;
  background: rgba(245, 130, 31, 0.15);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
}
.trust-item h4 { font-size: 15px; margin-bottom: 2px; }
.trust-item p { font-size: 13px; color: #9fb0c5; }

/* ---------- Sections ---------- */
section { padding: 80px 0; }
.section-gray { background: var(--bg-gray); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 50px; }
.section-head .kicker {
  color: var(--orange);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 13px;
  margin-bottom: 12px;
}
.section-head h2 { font-size: 36px; color: var(--ink); line-height: 1.2; margin-bottom: 14px; }
.section-head p { color: var(--text-light); font-size: 16px; }

/* ---------- Category cards ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.cat-card {
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: 0.25s;
  display: block;
}
.cat-card:hover { transform: translateY(-6px); box-shadow: 0 14px 34px rgba(14, 27, 44, 0.14); }
.cat-card .thumb { height: 220px; overflow: hidden; }
.cat-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: 0.4s; }
.cat-card:hover .thumb img { transform: scale(1.06); }
.cat-card .body { padding: 22px 24px 26px; }
.cat-card h3 { font-size: 19px; color: var(--ink); margin-bottom: 6px; }
.cat-card p { font-size: 14px; color: var(--text-light); }
.cat-card .link { color: var(--orange); font-weight: 700; font-size: 14px; margin-top: 12px; display: inline-block; }

/* ---------- Featured products ---------- */
.prod-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.prod-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: 0.25s;
  display: flex;
  flex-direction: column;
}
.prod-card:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.prod-card .thumb { height: 180px; overflow: hidden; background: var(--surface-2); }
.prod-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.prod-card .body { padding: 16px 18px 20px; flex: 1; display: flex; flex-direction: column; }
.prod-card .tag {
  align-self: flex-start;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--orange);
  background: rgba(245, 130, 31, 0.12);
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
  text-transform: uppercase;
}
.prod-card h3 { font-size: 15px; color: var(--ink); line-height: 1.4; flex: 1; }
.prod-card .specs { font-size: 13px; color: var(--text-light); margin: 10px 0 14px; }
.prod-card .actions { display: flex; gap: 10px; }
.prod-card .btn-mini {
  flex: 1;
  text-align: center;
  padding: 9px 0;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 700;
}
.btn-mini-dark { background: var(--navy); color: #fff; }
.btn-mini-dark:hover { background: var(--navy-2); }
.btn-mini-line { border: 1px solid var(--orange); color: var(--orange); }
.btn-mini-line:hover { background: var(--orange); color: #fff; }

/* ---------- Strengths (numbered) ---------- */
.strength-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; counter-reset: num; }
.strength-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 30px 28px;
  border: 1px solid var(--border);
  position: relative;
}
.strength-card .num {
  font-size: 44px;
  font-weight: 900;
  color: rgba(245, 130, 31, 0.25);
  line-height: 1;
  margin-bottom: 14px;
}
.strength-card h3 { font-size: 18px; color: var(--ink); margin-bottom: 10px; }
.strength-card p { font-size: 14px; color: var(--text-light); }

/* ---------- About / Export strip ---------- */
.about-strip { display: grid; grid-template-columns: 1.1fr 1fr; gap: 50px; align-items: center; }
.about-strip img { border-radius: var(--radius); box-shadow: var(--shadow); }
.about-strip h2 { font-size: 34px; color: var(--ink); margin-bottom: 18px; }
.about-strip p { color: var(--text-light); margin-bottom: 14px; }
.check-list { margin: 18px 0 26px; }
.check-list li { padding: 7px 0 7px 32px; position: relative; font-size: 15px; color: var(--text); }
.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 6px;
  width: 22px; height: 22px;
  background: var(--orange);
  color: #fff;
  border-radius: 50%;
  font-size: 13px;
  display: flex; align-items: center; justify-content: center;
}

/* ---------- CTA band ---------- */
.cta-band { background: var(--navy); color: #fff; text-align: center; }
.cta-band h2 { font-size: 34px; margin-bottom: 14px; }
.cta-band p { color: #9fb0c5; margin-bottom: 30px; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  background: var(--navy);
  color: #fff;
  padding: 70px 0;
  text-align: center;
}
.page-hero h1 { font-size: 40px; margin-bottom: 12px; }
.page-hero p { color: #9fb0c5; }

/* ---------- Products filter ---------- */
.filter-bar { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-bottom: 40px; }
.filter-btn {
  padding: 9px 22px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-weight: 600;
  font-size: 14px;
  color: var(--text);
  cursor: pointer;
  transition: 0.2s;
}
.filter-btn:hover { border-color: var(--orange); color: var(--orange); }
.filter-btn.active { background: var(--orange); border-color: var(--orange); color: #fff; }

/* ---------- Contact ---------- */
.contact-wrap { display: grid; grid-template-columns: 1fr 1.4fr; gap: 50px; }
.contact-info h3 { font-size: 22px; color: var(--ink); margin-bottom: 20px; }
.contact-item { display: flex; gap: 14px; margin-bottom: 22px; }
.contact-item .icon {
  width: 44px; height: 44px; flex-shrink: 0;
  background: rgba(245, 130, 31, 0.12);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
}
.contact-item h4 { font-size: 15px; color: var(--ink); }
.contact-item p { font-size: 14px; color: var(--text-light); }

.contact-form { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 34px; box-shadow: var(--shadow); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 14px; font-weight: 600; color: var(--ink); margin-bottom: 7px; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%;
  background: var(--surface);
  color: var(--text);
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: 0.2s;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(245, 130, 31, 0.15);
}
.form-success {
  display: none;
  background: #e8f7ee;
  border: 1px solid #b7e3c8;
  color: #1c7a3d;
  padding: 14px 18px;
  border-radius: 8px;
  font-size: 14px;
  margin-top: 16px;
}

/* ---------- Footer ---------- */
.footer { background: var(--navy); color: #9fb0c5; padding: 60px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 44px; }
.footer h4 { color: #fff; font-size: 16px; margin-bottom: 18px; }
.footer p, .footer a { font-size: 14px; color: #9fb0c5; line-height: 1.9; }
.footer a:hover { color: var(--orange); }
.footer .logo { color: #fff; margin-bottom: 14px; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 20px 0;
  text-align: center;
  font-size: 13px;
  color: #6d7f95;
}

/* ---------- Floating WhatsApp ---------- */
.float-wa {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 200;
  width: 58px;
  height: 58px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
  transition: 0.25s;
}
.float-wa:hover { transform: scale(1.1); }
.float-wa svg { width: 30px; height: 30px; fill: #fff; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: 0.7s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .prod-grid { grid-template-columns: repeat(3, 1fr); }
  .cat-grid, .strength-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .about-strip, .contact-wrap { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .nav {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--surface);
    flex-direction: column;
    padding: 20px;
    gap: 6px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
  }
  .nav.open { display: flex; }
  .nav-toggle { display: block; }
  .header-cta { display: none; }
  .hero h1 { font-size: 34px; }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .prod-grid { grid-template-columns: repeat(2, 1fr); }
  .cat-grid, .strength-grid { grid-template-columns: 1fr; }
  .section-head h2 { font-size: 28px; }
  .form-row { grid-template-columns: 1fr; }
  section { padding: 56px 0; }
}
@media (max-width: 520px) {
  .prod-grid { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}

/* ---------- Language switcher ---------- */
.lang-slot { position: relative; margin-left: 8px; }
.lang-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  background: var(--navy);
  color: #fff;
  border: none;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: 0.2s;
}
.lang-btn:hover { background: var(--navy-2); }
.lang-caret { font-size: 11px; opacity: 0.8; }
.lang-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  inset-inline-end: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: var(--shadow);
  padding: 6px;
  min-width: 160px;
  z-index: 300;
}
.lang-slot.open .lang-menu { display: block; }
.lang-opt {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px 12px;
  background: none;
  border: none;
  border-radius: 7px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  text-align: start;
}
.lang-opt:hover { background: var(--bg-gray); }
.lang-opt.active { background: rgba(245, 130, 31, 0.12); color: var(--orange); }
.lang-flag { font-size: 16px; }

/* ---------- Breadcrumb ---------- */
.breadcrumb { color: #9fb0c5; font-size: 14px; text-align: start; }
.breadcrumb a { color: var(--orange); }
.breadcrumb span { color: #fff; }

/* ---------- Product detail ---------- */
.detail-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 44px; align-items: start; }
.detail-main {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface-2);
  height: 420px;
}
.detail-main img { width: 100%; height: 100%; object-fit: cover; transition: 0.3s; }
.detail-thumbs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin-top: 14px; }
.d-thumb {
  border: 2px solid var(--border);
  border-radius: 8px;
  padding: 0;
  background: var(--surface-2);
  height: 80px;
  cursor: pointer;
  overflow: hidden;
  transition: 0.2s;
}
.d-thumb img { width: 100%; height: 100%; object-fit: cover; }
.d-thumb.active { border-color: var(--orange); box-shadow: 0 0 0 2px rgba(245, 130, 31, 0.25); }
.detail-info .tag { margin-bottom: 12px; }
.detail-info h2 { font-size: 28px; color: var(--ink); line-height: 1.25; margin-bottom: 16px; }
.detail-desc { color: var(--text-light); font-size: 15px; margin-bottom: 24px; }
.detail-info h3 { font-size: 17px; color: var(--ink); margin-bottom: 12px; }
.spec-table { width: 100%; border-collapse: collapse; margin-bottom: 28px; }
.spec-table td { padding: 11px 14px; font-size: 14px; border-bottom: 1px solid var(--border); }
.spec-table td:first-child { color: var(--text-light); width: 42%; }
.spec-table td:last-child { font-weight: 700; color: var(--ink); }
.detail-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.btn-wa { background: #25d366; color: #fff; }
.btn-wa:hover { background: #1fb959; transform: translateY(-2px); }

/* ---------- RTL (Arabic) ---------- */
[dir="rtl"] body { font-family: "Segoe UI", Tahoma, "PingFang SC", sans-serif; }
[dir="rtl"] .hero::before {
  background: linear-gradient(-100deg, rgba(10, 20, 34, 0.85) 0%, rgba(10, 20, 34, 0.55) 45%, rgba(10, 20, 34, 0.15) 100%);
}
[dir="rtl"] .lang-menu { right: auto; left: 0; }
[dir="rtl"] .float-wa { right: auto; left: 24px; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .detail-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .lang-btn { padding: 7px 12px; font-size: 13px; }
  .detail-main { height: 300px; }
  .detail-thumbs { grid-template-columns: repeat(5, 1fr); gap: 8px; }
  .d-thumb { height: 56px; }
}



/* ---------- Top utility bar (contact + language) ---------- */
.topbar { position: relative; z-index: 101; background: var(--navy); color: #b9c6d8; font-size: 13px; }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 40px; }
.topbar-contact { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.topbar-contact a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #cdd9e8;
  font-weight: 600;
  letter-spacing: .2px;
  white-space: nowrap;
  transition: color .2s;
}
.topbar-contact a:hover { color: var(--orange); }
.topbar-contact b { color: #fff; font-weight: 700; }
.tb-ico { font-size: 12px; opacity: .85; }
.tb-sep { width: 1px; height: 13px; background: rgba(255, 255, 255, .18); }
.topbar .lang-btn {
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .22);
  padding: 6px 13px;
  font-size: 12.5px;
}
.topbar .lang-btn:hover { background: rgba(255, 255, 255, .22); }
@media (max-width: 820px) { .tb-email, .tb-sep-wa, .topbar-contact b { display: none; } }
@media (max-width: 560px) {
  .topbar { font-size: 12px; }
  .topbar-inner { min-height: 34px; }
  .topbar-contact { gap: 10px; }
  .topbar .lang-btn { padding: 4px 10px; font-size: 12px; }
}
@media (max-width: 768px) {
  .nav-toggle { margin-left: auto; }
}


/* ---------- Theme toggle ---------- */
.topbar-tools { display: flex; align-items: center; gap: 10px; }
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .22);
  color: #fff;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  transition: background .2s, transform .3s, border-color .2s;
}
.theme-toggle:hover { background: rgba(255, 255, 255, .24); transform: rotate(-18deg); }
.tt-ico { display: block; transform: translateY(.5px); }
[data-theme="dark"] .theme-toggle {
  background: rgba(245, 130, 31, .18);
  border-color: rgba(245, 130, 31, .5);
}

/* ---------- Dark theme ---------- */
[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0c131f;
  --bg-gray: #111b29;
  --surface: #16212f;
  --surface-2: #1c2939;
  --border: #27374b;
  --text: #dde6f2;
  --text-light: #94a5ba;
  --ink: #eef4fb;
  --mainbar-bg: rgba(12, 19, 31, 0.94);
  --shadow: 0 6px 26px rgba(0, 0, 0, 0.5);
}
[data-theme="dark"] .mainbar { border-bottom-color: var(--border); }
[data-theme="dark"] .trust-bar,
[data-theme="dark"] .cta-band,
[data-theme="dark"] .footer,
[data-theme="dark"] .topbar { background: #0a1220; }
[data-theme="dark"] .trust-bar { border-bottom: 1px solid var(--border); }
[data-theme="dark"] .cat-card:hover { box-shadow: 0 14px 34px rgba(0, 0, 0, 0.6); }
[data-theme="dark"] .hero::before {
  background: linear-gradient(100deg, rgba(8, 14, 24, 0.92) 0%, rgba(8, 14, 24, 0.72) 45%, rgba(8, 14, 24, 0.35) 100%);
}
[data-theme="dark"] .prod-card .thumb,
[data-theme="dark"] .detail-main,
[data-theme="dark"] .d-thumb { background: var(--surface-2); }
[data-theme="dark"] .form-success {
  background: rgba(37, 211, 102, .12);
  border-color: rgba(37, 211, 102, .35);
  color: #7ee2a8;
}
[data-theme="dark"] .form-group input::placeholder,
[data-theme="dark"] .form-group textarea::placeholder { color: #6f819a; }
[data-theme="dark"] .footer { color: #93a5bb; }
[data-theme="dark"] .footer a { color: #b9c8db; }
[data-theme="dark"] .footer a:hover { color: var(--orange); }
[data-theme="dark"] .lang-menu { border-color: var(--border); }
[data-theme="dark"] .lang-opt.active { background: rgba(245, 130, 31, .16); }
[data-theme="dark"] .prod-card:hover { box-shadow: 0 12px 30px rgba(0, 0, 0, 0.55); }
