/* =========================================================================
   BASHAN CAR — style.css
   Design tokens live in :root (shared) + [data-theme="dark"|"light"] (colors).
   Change them here to re-brand the whole site or adjust either theme.
   ========================================================================= */

:root {
  /* Structural tokens (shared by both themes) -------------------------- */
  --radius-lg: 18px;
  --radius-md: 14px;
  --radius-sm: 10px;

  --container: 640px;
  --transition: 220ms ease;

  --font-base: -apple-system, BlinkMacSystemFont, "Segoe UI", Tahoma, "Helvetica Neue", Arial, sans-serif;

  /* Default theme = dark (matches the brand's premium black/gold identity) */
  --bg: #0b0b0c;
  --surface: #151517;
  --surface-2: #1c1c1f;
  --gold: #c9a24d;
  --gold-light: #e8cf87;
  --gold-dark: #8f6f2b;
  --text: #f5f3ee;
  --text-muted: #a8a6a1;
  --border: rgba(255, 255, 255, 0.09);
  --border-gold: rgba(201, 162, 77, 0.35);
  --shadow: 0 12px 34px rgba(0, 0, 0, 0.45);
  --shadow-gold: 0 8px 24px rgba(201, 162, 77, 0.18);
  --hero-glow: rgba(201, 162, 77, 0.14);
  --topbar-bg: rgba(11, 11, 12, 0.85);
  --gold-tint: rgba(201, 162, 77, 0.12);
  --status-open: #3fa66a;
  color-scheme: dark;
}

/* Dark theme (explicit — same values as the :root default above) --------- */
:root[data-theme="dark"] {
  --bg: #0b0b0c;
  --surface: #151517;
  --surface-2: #1c1c1f;
  --gold: #c9a24d;
  --gold-light: #e8cf87;
  --gold-dark: #8f6f2b;
  --text: #f5f3ee;
  --text-muted: #a8a6a1;
  --border: rgba(255, 255, 255, 0.09);
  --border-gold: rgba(201, 162, 77, 0.35);
  --shadow: 0 12px 34px rgba(0, 0, 0, 0.45);
  --shadow-gold: 0 8px 24px rgba(201, 162, 77, 0.18);
  --hero-glow: rgba(201, 162, 77, 0.14);
  --topbar-bg: rgba(11, 11, 12, 0.85);
  --gold-tint: rgba(201, 162, 77, 0.12);
  --status-open: #3fa66a;
  color-scheme: dark;
}

/* Light theme — an intentionally separate premium palette, not an inversion
   of dark: warm ivory surfaces, richer/deeper gold for readable contrast,
   and soft warm-toned shadows instead of pure black. */
:root[data-theme="light"] {
  --bg: #f7f4ec;
  --surface: #ffffff;
  --surface-2: #efe8d8;
  --gold: #a9791f;
  --gold-light: #8a6318;
  --gold-dark: #6b4d13;
  --text: #201c14;
  --text-muted: #6b6558;
  --border: rgba(32, 28, 20, 0.10);
  --border-gold: rgba(169, 121, 31, 0.35);
  --shadow: 0 12px 34px rgba(30, 22, 10, 0.10);
  --shadow-gold: 0 8px 20px rgba(169, 121, 31, 0.16);
  --hero-glow: rgba(169, 121, 31, 0.10);
  --topbar-bg: rgba(247, 244, 236, 0.85);
  --gold-tint: rgba(169, 121, 31, 0.10);
  --status-open: #1f7a45;
  color-scheme: light;
}

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-base);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background-color var(--transition), color var(--transition);
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

h1, h2, h3, p {
  margin: 0;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

/* Accessibility ------------------------------------------------------------ */
:focus-visible {
  outline: 2px solid var(--gold-light);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  inset-inline-start: 0;
  top: -100px;
  background: var(--gold);
  color: #111;
  padding: 12px 18px;
  font-weight: 600;
  border-radius: 0 0 10px 0;
  z-index: 1000;
  transition: top var(--transition);
}

.skip-link:focus {
  top: 0;
}

/* Layout helpers ------------------------------------------------------------ */
.section-inner,
.topbar-inner,
.hero-inner,
.footer-inner {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 20px;
}

.section {
  padding-block: 56px;
  border-top: 1px solid var(--border);
}

/* Reveal-on-scroll (disabled entirely under reduced motion) -------------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 600ms ease, transform 600ms ease;
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Topbar ------------------------------------------------------------------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--topbar-bg);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  transition: background-color var(--transition), border-color var(--transition);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 12px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-mark {
  height: 30px;
  width: auto;
}

.brand-name {
  font-weight: 700;
  letter-spacing: 0.06em;
  font-size: 0.95rem;
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
}

.lang-sep {
  color: var(--border);
}

.lang-btn {
  padding: 6px 8px;
  border-radius: 6px;
  color: var(--text-muted);
  font-weight: 600;
  letter-spacing: 0.04em;
  transition: color var(--transition), background var(--transition);
}

.lang-btn[aria-pressed="true"] {
  color: var(--gold-light);
  background: var(--gold-tint);
}

.lang-btn:hover {
  color: var(--gold-light);
}

/* Theme toggle -------------------------------------------------------------- */
.topbar-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: var(--text-muted);
  border: 1px solid var(--border);
  transition: color var(--transition), border-color var(--transition), background var(--transition);
}

.theme-toggle:hover {
  color: var(--gold-light);
  border-color: var(--border-gold);
}

.theme-toggle svg {
  width: 17px;
  height: 17px;
}

/* Hero ------------------------------------------------------------------- */
.hero {
  padding-block: 40px 28px;
  text-align: center;
  background:
    radial-gradient(ellipse at top, var(--hero-glow), transparent 60%),
    var(--bg);
}

.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.hero-logo {
  width: 210px;
  height: auto;
  margin-bottom: 2px;
}

.hero-badge {
  color: var(--gold-light);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-title {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-weight: 800;
  letter-spacing: 0.08em;
  font-size: 1.5rem;
}

.hero-title-ar {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--text-muted);
}

.hero-tagline {
  max-width: 42ch;
  color: var(--text-muted);
  font-size: 1.02rem;
  margin-block: 4px 10px;
}

/* Buttons ------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding-inline: 22px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.98rem;
  border: 1.5px solid transparent;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), border-color var(--transition);
  width: 100%;
}

.btn-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  display: inline-flex;
}

.btn-icon svg {
  width: 100%;
  height: 100%;
}

.btn-gold {
  background: linear-gradient(180deg, var(--gold-light), var(--gold));
  color: #141414;
  box-shadow: var(--shadow-gold);
}

.btn-outline {
  background: var(--surface);
  border-color: var(--border);
  color: var(--text);
}

.btn-outline .btn-icon {
  color: var(--gold-light);
}

.btn-ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--text-muted);
  width: auto;
  min-height: 42px;
  padding-inline: 16px;
  font-size: 0.85rem;
}

.btn-small {
  margin-top: 4px;
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .btn:hover {
    transform: translateY(-2px);
  }
  .btn-gold:hover {
    box-shadow: 0 12px 28px rgba(201, 162, 77, 0.28);
  }
  .btn-outline:hover {
    border-color: var(--border-gold);
  }
}

.cta-primary {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  max-width: 360px;
  margin-top: 8px;
}

/* Section headings --------------------------------------------------------- */
.section-title {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.section-subtitle {
  color: var(--text-muted);
  margin-top: 6px;
  font-size: 0.95rem;
}

/* Services ------------------------------------------------------------------ */
.services-grid {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.service-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
  transition: border-color var(--transition), transform var(--transition);
}

.service-card:not(:has(.service-image)) {
  padding: 20px 14px;
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .service-card:hover {
    border-color: var(--border-gold);
    transform: translateY(-3px);
  }
}

.service-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

.service-icon {
  width: 26px;
  height: 26px;
  color: var(--gold-light);
}

.service-card:has(.service-image) .service-icon {
  margin-top: 12px;
}

.service-icon svg {
  width: 100%;
  height: 100%;
}

.service-name {
  font-weight: 600;
  font-size: 0.92rem;
  padding-bottom: 16px;
}

/* Hours ------------------------------------------------------------------- */
.hours-card {
  margin-top: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px;
  position: relative;
}

.hours-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.hours-icon {
  width: 26px;
  height: 26px;
  color: var(--gold-light);
  display: inline-block;
}

.hours-icon svg {
  width: 100%;
  height: 100%;
}

.hours-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--text-muted);
}

.hours-status::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}

.hours-status[data-open="true"] {
  color: var(--status-open);
  border-color: var(--status-open);
}

.hours-status[data-open="false"] {
  color: var(--text-muted);
}

.hours-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  padding-block: 10px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}

.hours-row:first-of-type {
  border-top: none;
  padding-top: 0;
}

.hours-label {
  font-weight: 700;
  color: var(--text);
}

.hours-value {
  color: var(--text-muted);
  font-size: 0.92rem;
}

/* Hero social row — compact, visually secondary to the primary CTAs above -- */
.hero-social {
  margin-top: 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.hero-social-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.hero-social-links {
  display: flex;
  gap: 10px;
}

.hero-social-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 42px;
  padding-inline: 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 600;
  transition: border-color var(--transition), color var(--transition), transform var(--transition);
}

.hero-social-link span[data-icon] {
  width: 16px;
  height: 16px;
  color: var(--gold-light);
  display: inline-flex;
}

.hero-social-link span[data-icon] svg {
  width: 100%;
  height: 100%;
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .hero-social-link:hover {
    border-color: var(--border-gold);
    color: var(--text);
    transform: translateY(-1px);
  }
}

/* Offers -------------------------------------------------------------------- */
.offers-section .section-inner {
  text-align: center;
}

.offers-text {
  margin-top: 18px;
  display: inline-block;
  padding: 18px 26px;
  border: 1px dashed var(--border-gold);
  border-radius: var(--radius-md);
  color: var(--gold-light);
  font-weight: 600;
}

/* Location ------------------------------------------------------------------ */
.location-section .section-inner {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.location-icon {
  width: 34px;
  height: 34px;
  color: var(--gold-light);
  margin-bottom: 10px;
}

.location-icon svg {
  width: 100%;
  height: 100%;
}

.map-frame {
  width: 100%;
  max-width: 480px;
  margin-top: 20px;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.map-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  /* Raster map tiles can't fully adopt the theme; a light dampening in
     dark mode keeps the bright tile imagery from clashing with the page. */
  filter: brightness(1) saturate(1);
  transition: filter var(--transition);
}

:root[data-theme="dark"] .map-frame iframe {
  filter: brightness(0.88) contrast(1.05) saturate(0.9);
}

.location-section .btn {
  max-width: 320px;
  margin-top: 18px;
}

/* Footer ------------------------------------------------------------------- */
.footer {
  background: var(--surface-2);
  border-top: 1px solid var(--border);
  padding-block: 32px 26px;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.footer-logo {
  height: 30px;
  width: auto;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 18px;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.footer-links a {
  transition: color var(--transition);
}

/* Keeps the phone number reading left-to-right ("+962 7 7744 6611") even
   inside RTL Arabic text, instead of the digit groups getting reordered. */
.js-phone-display {
  direction: ltr;
  unicode-bidi: isolate;
}

.footer-links a:hover {
  color: var(--gold-light);
}

.footer-copy {
  color: var(--text-muted);
  font-size: 0.8rem;
}

/* Responsive: tablet / desktop ---------------------------------------------- */
@media (min-width: 560px) {
  .cta-primary {
    flex-direction: row;
    max-width: none;
  }

  .btn {
    width: auto;
  }

  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 860px) {
  .hero-title {
    font-size: 1.8rem;
  }
}
