/* =====================================================================
   ASR Auto Parts — asrauto.ae
   Plain CSS, no build step, no framework. Same discipline as the app.

   The two brand colours are taken straight off the logo file so the
   site and the printed invoice agree: navy #02436D, yellow #FEE433.
   ===================================================================== */

:root {
  --navy:        #02436d;
  --navy-deep:   #013152;
  --navy-soft:   #145a86;
  --yellow:      #fee433;
  --ink:         #16212b;
  --ink-soft:    #4a5a68;
  --line:        #dde5ec;
  --paper:       #ffffff;
  --paper-warm:  #f6f8fa;
  --wrap:        1080px;
  --radius:      14px;
}


* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI",
               Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}

a { color: var(--navy-soft); }

h1, h2, h3 {
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0 0 .6em;
  font-weight: 700;
}

/* ---------- header ------------------------------------------------ */

.site-head {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  position: sticky;
  top: 0;
  z-index: 10;
}

.site-head .wrap {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 78px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
  margin-right: auto;
}

.brand img { height: 46px; width: auto; display: block; }

.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name {
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.01em;
  color: var(--navy);
}
.brand-sub {
  font-size: 12px;
  white-space: nowrap;
  color: var(--ink-soft);
  letter-spacing: .08em;
  text-transform: uppercase;
}

.nav { display: flex; align-items: center; gap: 28px; }
.nav a {
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 15px;
  font-weight: 500;
}
.nav a:hover { color: var(--navy); }

.btn {
  display: inline-block;
  background: var(--navy);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  padding: 11px 20px;
  border-radius: 10px;
  white-space: nowrap;
  transition: background .15s ease;
}
.btn:hover { background: var(--navy-deep); }

.btn-ghost {
  background: transparent;
  color: var(--navy);
  border: 1.5px solid var(--line);
}
.btn-ghost:hover { background: var(--paper-warm); border-color: var(--navy); }

/* ---------- hero --------------------------------------------------- */

.hero {
  background: var(--navy);
  color: #fff;
  padding: 84px 0 92px;
  position: relative;
  overflow: hidden;
}

/* a single diagonal of brand yellow, echoing the stripe in the logo */
.hero::after {
  content: "";
  position: absolute;
  right: -140px;
  top: -200px;
  width: 760px;
  height: 760px;
  background: radial-gradient(circle at 50% 50%,
              rgba(254,228,51,.16) 0%,
              rgba(254,228,51,.06) 38%,
              rgba(254,228,51,0)   68%);
  pointer-events: none;
}

.hero .wrap { position: relative; z-index: 1; }

.eyebrow {
  display: inline-block;
  font-size: 12.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--yellow);
  font-weight: 600;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: clamp(34px, 5.4vw, 56px);
  max-width: 16ch;
  margin-bottom: 22px;
}

.hero p {
  font-size: clamp(17px, 2.1vw, 20px);
  max-width: 56ch;
  color: rgba(255,255,255,.84);
  margin: 0 0 34px;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.hero .btn { background: var(--yellow); color: var(--navy); }
.hero .btn:hover { background: #ffed73; }
.hero .btn-ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,.34);
}
.hero .btn-ghost:hover { background: rgba(255,255,255,.08); border-color: #fff; }

/* ---------- sections ----------------------------------------------- */

section { padding: 76px 0; }
section.tint { background: var(--paper-warm); border-top: 1px solid var(--line);
                     border-bottom: 1px solid var(--line); }

.section-head { max-width: 62ch; margin-bottom: 44px; }
.section-head h2 { font-size: clamp(26px, 3.4vw, 36px); }
.section-head p { color: var(--ink-soft); margin: 0; font-size: 18px; }

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 22px;
}

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 26px 30px;
}

.card .num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 9px;
  background: var(--navy);
  color: var(--yellow);
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 18px;
}

.card h3 { font-size: 19px; margin-bottom: .45em; }
.card p { margin: 0; color: var(--ink-soft); font-size: 16px; }

/* ---------- contact ------------------------------------------------ */

.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: start;
}

.detail-list { margin: 0; }
.detail-list dt {
  font-size: 12.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 600;
  margin-top: 26px;
}
.detail-list dt:first-of-type { margin-top: 0; }
.detail-list dd {
  margin: 5px 0 0;
  font-size: 17px;
}
.detail-list dd a { color: var(--navy); text-decoration: none; font-weight: 500; }
.detail-list dd a:hover { text-decoration: underline; }

.muted {
  color: var(--ink-soft);
  font-size: 15px;
  margin-top: 3px;
}

.ar {
  direction: rtl;
  text-align: left;
  font-size: 16px;
  color: var(--ink-soft);
  margin-top: 3px;
}

.contact-card {
  background: var(--navy);
  color: #fff;
  border-radius: var(--radius);
  padding: 34px 32px 36px;
}
.contact-card h3 { font-size: 21px; color: #fff; }
.contact-card p {
  color: rgba(255,255,255,.82);
  font-size: 16px;
  margin: 0 0 24px;
}
.contact-card .btn { background: var(--yellow); color: var(--navy); width: 100%; text-align: center; }
.contact-card .btn:hover { background: #ffed73; }
.contact-card .alt {
  margin: 14px 0 0;
  font-size: 14.5px;
  color: rgba(255,255,255,.7);
  text-align: center;
}
.contact-card .alt a { color: var(--yellow); text-decoration: none; }
.contact-card .hours {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,.16);
  font-size: 13.5px;
  color: rgba(255,255,255,.62);
}

/* ---------- footer -------------------------------------------------- */

.site-foot {
  background: var(--navy-deep);
  color: rgba(255,255,255,.72);
  padding: 46px 0 40px;
  font-size: 14.5px;
}
.site-foot .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 40px;
  align-items: flex-start;
  justify-content: space-between;
}
.site-foot strong { color: #fff; font-weight: 600; display: block; }
.site-foot .ar { color: rgba(255,255,255,.6); text-align: left; direction: rtl; }
.site-foot a { color: rgba(255,255,255,.8); }
.foot-links { display: flex; gap: 22px; flex-wrap: wrap; }

/* ---------- legal pages --------------------------------------------- */

.legal { padding: 64px 0 88px; }
.legal .wrap { max-width: 760px; }
.legal h1 { font-size: clamp(30px, 4vw, 42px); margin-bottom: .3em; }
.legal .updated { color: var(--ink-soft); font-size: 15px; margin: 0 0 40px; }
.legal h2 {
  font-size: 21px;
  margin-top: 42px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}
.legal p, .legal li { color: var(--ink); }
.legal ul { padding-left: 22px; }
.legal li { margin-bottom: 8px; }

/* ---------- small screens -------------------------------------------- */

@media (max-width: 780px) {
  .contact-grid { grid-template-columns: 1fr; gap: 34px; }
  .nav { display: none; }
  .hero { padding: 62px 0 68px; }
  section { padding: 56px 0; }
  .brand-name { font-size: 16.5px; }
  .brand img { height: 40px; }
  .site-foot .wrap { flex-direction: column; }
}

@media (max-width: 420px) {
  .brand-sub { display: none; }
  .site-head .wrap { gap: 10px; }
  .btn { padding: 10px 15px; font-size: 14px; }
}
