﻿/* Unified Gulf Car system styles (LTR + RTL) */
@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@400;500;700;800&display=swap');

:root {
  --bg: #121414;
  --surface: #1b1c1c;
  --surface-2: #252626;
  --surface-3: #343535;
  --text: #e3e2e2;
  --muted: #c8c6c7;
  --gold: #dfc2a1;
  --gold-2: #a68c6f;
  --line: rgba(223, 194, 161, 0.18);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: Inter, system-ui, sans-serif;
  background: radial-gradient(circle at 20% -10%, #1f2224 0%, var(--bg) 55%);
  color: var(--text);
  line-height: 1.5;
}

body[dir="rtl"] {
  font-family: "Tajawal", system-ui, sans-serif;
}

a { color: inherit; text-decoration: none; }
img { display: block; width: 100%; }

.container { width: min(1200px, calc(100% - 40px)); margin: 0 auto; }
.kicker {
  font-family: Manrope, sans-serif;
  font-size: .62rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--gold);
}
.title {
  font-family: Epilogue, sans-serif;
  text-transform: uppercase;
  letter-spacing: -.02em;
  font-size: clamp(1.9rem, 5vw, 3.8rem);
  line-height: .95;
  margin: 12px 0 14px;
}
.subtitle { color: var(--muted); max-width: 700px; }

.btn {
  border: 0;
  cursor: pointer;
  font-family: Manrope, sans-serif;
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .67rem;
  padding: 14px 24px;
}
.btn-primary {
  color: #2b1b07;
  background: linear-gradient(135deg, var(--gold), var(--gold-2));
}
.btn-ghost {
  color: var(--text);
  background: transparent;
  border: 1px solid var(--line);
}

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  backdrop-filter: blur(12px);
  background: rgba(18, 20, 20, .75);
  border-bottom: 1px solid rgba(223,194,161,.08);
}
.header-inner {
  height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.brand {
  font-family: Epilogue, sans-serif;
  color: var(--gold);
  letter-spacing: .18em;
  text-transform: uppercase;
  font-size: 1.08rem;
  font-weight: 800;
}
.nav-links { display: flex; gap: 22px; list-style: none; }
.nav-links a {
  font-family: Epilogue, sans-serif;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: .72rem;
  color: var(--muted);
}
.nav-links a.active, .nav-links a:hover { color: var(--gold); }
.nav-links a.active { border-bottom: 2px solid var(--gold); padding-bottom: 5px; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.icon-btn {
  width: 34px; height: 34px; border: 1px solid var(--line);
  background: transparent; color: var(--gold); cursor: pointer;
}
.menu-btn { display: none; }
.mobile-nav {
  position: fixed; inset: 78px 0 auto 0; z-index: 95;
  background: #111313; border-top: 1px solid var(--line);
  transform: translateY(-8px); opacity: 0; pointer-events: none;
  transition: .25s;
}
.mobile-nav.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
.mobile-nav a {
  display: block; padding: 14px 20px; border-bottom: 1px solid rgba(223,194,161,.1);
  text-transform: uppercase; letter-spacing: .1em; font-size: .8rem; font-family: Epilogue, sans-serif;
  color: var(--muted);
}

main { padding-top: 78px; }
section { padding: 78px 0; }

.hero {
  min-height: 88vh;
  position: relative;
  display: grid;
  align-items: center;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(95deg, rgba(8,10,12,.92) 0%, rgba(8,10,12,.58) 45%, rgba(8,10,12,.22) 75%, rgba(8,10,12,.1) 100%);
  z-index: 1;
}
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background: url('https://gulfcar.sa/wp-content/uploads/2024/06/5501-scaled.jpg') center/cover no-repeat;
  filter: brightness(.53) saturate(.86);
}
.hero-content { position: relative; z-index: 2; width: min(760px, 100%); }
.hero h1 {
  font-family: Epilogue, sans-serif;
  font-size: clamp(2.2rem, 7vw, 6.1rem);
  text-transform: uppercase;
  line-height: .9;
  margin: 14px 0 18px;
}
.gold-text {
  background: linear-gradient(135deg, var(--gold), #f1deca 48%, var(--gold-2));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.hero p { color: var(--muted); max-width: 580px; margin-bottom: 26px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.surface { background: var(--surface); }
.surface-2 { background: var(--surface-2); }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.card {
  background: linear-gradient(150deg, #1f2021 0%, #181a1a 100%);
  padding: 24px;
}
.card h3 { font-family: Epilogue, sans-serif; font-size: 1.45rem; margin-bottom: 10px; }
.card p { color: var(--muted); }

.services-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 22px; }
.service {
  background: #171919;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.service img { height: 200px; object-fit: cover; filter: brightness(.75); }
.service-body { padding: 20px; display: grid; gap: 10px; height: 100%; }
.service-body h3 { font-family: Epilogue, sans-serif; text-transform: uppercase; font-size: 1.34rem; line-height: 1; }
.service-body p { color: var(--muted); font-size: .95rem; }
.bullets { margin-top: auto; color: #ece2d6; font-size: .84rem; display: grid; gap: 6px; }

.stats { background: #2d2f2f; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; text-align: center; }
.stats-grid h3 { font-family: Epilogue, sans-serif; color: var(--gold); font-size: clamp(1.9rem, 4.5vw, 3.2rem); line-height: 1; }
.stats-grid p { font-size: .64rem; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); font-family: Manrope, sans-serif; }

.fleet-top { display: flex; justify-content: space-between; align-items: end; gap: 12px; margin-bottom: 20px; }
.tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.tab {
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .63rem;
  padding: 9px 12px;
}
.tab.active { color: var(--gold); border-color: var(--line); background: rgba(223,194,161,.06); }
.fleet-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; position: relative; }
.fleet-card { background: #181a1a; }
.fleet-card img { height: 172px; object-fit: cover; display: none; }
.fleet-body { padding: 16px; display: grid; gap: 8px; }
.fleet-body h4 { font-family: Epilogue, sans-serif; font-size: 1.5rem; line-height: 1; }
.fleet-meta { display: flex; gap: 12px; color: var(--muted); font-size: .76rem; }
.fleet-hidden { opacity: 0; pointer-events: none; position: absolute; visibility: hidden; }

.clients-grid {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}
.client-logo {
  background: #171919;
  border: 1px solid rgba(223,194,161,.12);
  min-height: 108px;
  display: grid;
  place-items: center;
  padding: 10px;
}
.client-logo img {
  width: 100%;
  height: 76px;
  object-fit: contain;
  filter: grayscale(8%);
}

.projects-grid {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.project-item {
  background: #181a1a;
  overflow: hidden;
  aspect-ratio: 1;
}
.project-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.faq-wrap { display: grid; grid-template-columns: .9fr 1.1fr; gap: 32px; }
.faq-list { display: grid; gap: 10px; }
.faq-item { background: #161818; border: 1px solid rgba(223,194,161,.16); }
.faq-q {
  width: 100%; border: 0; background: transparent; color: var(--text);
  text-align: left; padding: 14px 16px; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center;
  font-family: Epilogue, sans-serif; text-transform: uppercase; font-size: .88rem;
}
.faq-a {
  max-height: 0; overflow: hidden; transition: max-height .28s ease;
  color: var(--muted); padding: 0 16px; font-size: .94rem;
}
.faq-item.active .faq-a { max-height: 170px; padding: 0 16px 14px; }

.cta {
  text-align: center;
  position: relative;
  overflow: hidden;
  background: #0f1111;
}
.cta::before {
  content: "GULF";
  position: absolute; inset: 50% auto auto 50%; transform: translate(-50%, -50%);
  font-family: Epilogue, sans-serif; font-weight: 900;
  font-size: clamp(4.5rem, 20vw, 14rem);
  color: rgba(255,255,255,.04);
}
.cta h2 { position: relative; font-family: Epilogue, sans-serif; text-transform: uppercase; font-size: clamp(1.8rem, 5vw, 4.2rem); margin-bottom: 18px; line-height: .95; }
.cta p { position: relative; color: var(--muted); max-width: 620px; margin: 0 auto 20px; }
.cta .actions { justify-content: center; position: relative; }

.site-footer {
  border-top: 1px solid rgba(223,194,161,.08);
  background: #101212;
  padding: 34px 0;
}
.footer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; align-items: start; }
.footer-brand { font-family: Epilogue, sans-serif; color: var(--gold); letter-spacing: .18em; text-transform: uppercase; font-weight: 800; margin-bottom: 8px; }
.footer-muted { color: var(--muted); font-size: .77rem; }
.footer-links { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; color: var(--muted); font-size: .64rem; text-transform: uppercase; letter-spacing: .12em; font-family: Manrope, sans-serif; }
.footer-muted strong { color: var(--gold); display: inline-block; margin-bottom: 4px; text-transform: uppercase; font-size: .62rem; letter-spacing: .14em; font-family: Manrope, sans-serif; }

.reveal { opacity: 0; transform: translateY(20px); transition: .42s; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* RTL support */
body[dir="rtl"] { direction: rtl; }
body[dir="rtl"] .hero::before { background: linear-gradient(-95deg, rgba(8,10,12,.92) 0%, rgba(8,10,12,.58) 45%, rgba(8,10,12,.22) 75%, rgba(8,10,12,.1) 100%); }
body[dir="rtl"] .faq-q { text-align: right; }
body[dir="rtl"] .footer-links { justify-content: flex-start; }

@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(3, 1fr); }
  .fleet-grid { grid-template-columns: 1fr 1fr; }
  .clients-grid { grid-template-columns: repeat(3, 1fr); }
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
  .faq-wrap { grid-template-columns: 1fr; }
}

@media (max-width: 780px) {
  .container { width: min(1200px, calc(100% - 26px)); }
  .header-inner { height: 72px; }
  .site-header { border-bottom-color: rgba(223,194,161,.14); }
  main { padding-top: 72px; }
  .nav-links { display: none; }
  .menu-btn { display: inline-flex; }
  .mobile-nav { inset: 72px 0 auto 0; }
  .grid-2, .services-grid, .stats-grid, .fleet-grid, .footer-grid, .clients-grid, .projects-grid { grid-template-columns: 1fr; }
  .fleet-top { flex-direction: column; align-items: flex-start; }
  .hero h1 { font-size: clamp(2rem, 12vw, 3.4rem); }
  .footer-links { justify-content: flex-start; }
}

