/* =============================================================
   Diamoond Drive Car Wash — shared styles (every page)
   Light sky-blue theme with a serif display face for headlines.
   ONE bright accent (--color-accent) and it is reserved for the
   "Book a wash" action — don't use it for anything else.
   tokens → reset → layout → buttons → header → page head → banner →
   footer → mobile bar
   ============================================================= */

/* ---------- Design tokens ---------- */
:root {
  --color-bg: #f4f9fe;           /* page background */
  --color-bg-alt: #e6f1fc;       /* alternate section band */
  --color-surface: #ffffff;      /* cards */
  --color-surface-2: #eef6fe;
  --color-border: #d3e4f4;
  --color-text: #0c2440;         /* deep navy ink */
  --color-muted: #4a6380;
  --color-accent: #0a6fd8;       /* Book only */
  --color-accent-hover: #075bb4;
  --color-accent-ink: #ffffff;
  --color-highlight: #1a86e8;    /* second line of display headlines */
  --color-sky: #cde6ff;
  --color-sun: #ffd25c;          /* small "Wash menu" tag */
  --color-outline: rgba(12, 36, 64, 0.32);
  --color-focus: #0a6fd8;
  --color-open: #1f9d5c;
  --color-closed: #c77700;
  --color-whatsapp: #1f9d5c;
  --color-navy: #0c2440;         /* footer */

  --shadow-card: 0 1px 2px rgba(12, 36, 64, 0.05), 0 14px 34px -16px rgba(16, 82, 150, 0.28);
  --shadow-float: 0 2px 8px rgba(12, 36, 64, 0.08), 0 34px 70px -24px rgba(16, 82, 150, 0.45);
  --hero-wash: radial-gradient(55% 70% at 88% 8%, #cfe7ff 0%, rgba(207, 231, 255, 0) 70%),
               radial-gradient(45% 60% at 0% 100%, #dff0ff 0%, rgba(223, 240, 255, 0) 70%),
               linear-gradient(180deg, #edf6ff 0%, var(--color-bg) 100%);

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --text-sm: 0.875rem;
  --text-base: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  --text-lead: clamp(1.05rem, 1rem + 0.3vw, 1.2rem);
  --text-h3: 1.2rem;
  --text-h2: clamp(1.8rem, 1.4rem + 1.6vw, 2.7rem);
  --text-h1: clamp(2.3rem, 1.6rem + 3vw, 4rem);
  --text-hero: clamp(2.6rem, 1.4rem + 4.6vw, 5.4rem);

  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 32px;

  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2.5rem;
  --space-5: 4rem;
  --space-section: clamp(3.5rem, 2.5rem + 4vw, 6.5rem);
  --gutter: clamp(1rem, 3vw, 2rem);

  --duration-fast: 150ms;
  --duration-normal: 300ms;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --header-h: 72px;
  color-scheme: light;
}

/* Arabic pages load Cairo (the Latin font has no Arabic glyphs). */
html[lang="ar"] { --font-body: "Cairo", "Tahoma", sans-serif; --font-display: "Cairo", "Tahoma", sans-serif; }

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, picture { max-width: 100%; display: block; }
[hidden] { display: none !important; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 var(--space-2); font-weight: 800; letter-spacing: -0.02em; }
h1, h2 { font-family: var(--font-display); font-weight: 700; line-height: 1.05; letter-spacing: -0.025em; font-variation-settings: "opsz" 120; }
html[lang="ar"] h1, html[lang="ar"] h2 { font-weight: 800; }
.hl { color: var(--color-highlight); }
html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3 { line-height: 1.35; letter-spacing: 0; }
p { margin: 0 0 var(--space-2); }
a { color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
svg { width: 1.2em; height: 1.2em; fill: currentColor; flex: none; }
input, select, textarea, button { font: inherit; color: inherit; }
table { border-collapse: collapse; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; inset-inline-start: var(--space-2); top: -100px; z-index: 100;
  background: var(--color-navy); color: #fff; padding: 0.75em 1.25em; border-radius: var(--radius-sm); font-weight: 700;
}
.skip-link:focus { top: var(--space-2); }
:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 3px; }

/* ---------- Layout ---------- */
.wrap { max-width: 1180px; margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--space-section); }
.section--alt { background: var(--color-bg-alt); }
section[id] { scroll-margin-top: calc(var(--header-h) + 0.5rem); } /* anchors clear the sticky header */
.section-head { max-width: 680px; margin-bottom: var(--space-4); }
.section-title { font-size: var(--text-h2); }
.section-sub { color: var(--color-muted); font-size: var(--text-lead); }
.eyebrow { font-size: 0.8rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--color-accent-hover); margin-bottom: var(--space-2); }
html[lang="ar"] .eyebrow { letter-spacing: 0; font-size: 0.95rem; }
.muted { color: var(--color-muted); }
.text-link { font-weight: 700; text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.text-link:hover { text-decoration-thickness: 2px; }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  min-height: 48px; padding: 0.75em 1.5em; border-radius: 999px; border: 1.5px solid transparent;
  font-weight: 700; line-height: 1.2; text-align: center; text-decoration: none; cursor: pointer;
  transition: background-color var(--duration-fast), border-color var(--duration-fast), color var(--duration-fast), transform var(--duration-fast), box-shadow var(--duration-fast);
}
.btn:active { transform: translateY(1px); }
.btn-sm { min-height: 40px; padding: 0.5em 1.1em; font-size: 0.92rem; }
.btn-block { width: 100%; }
/* The ONE primary action. */
.btn-book { background: var(--color-accent); color: var(--color-accent-ink); box-shadow: 0 10px 24px -10px rgba(10, 111, 216, 0.7); }
.btn-book:hover { background: var(--color-accent-hover); transform: translateY(-1px); box-shadow: 0 14px 28px -10px rgba(10, 111, 216, 0.75); }
/* Every secondary action, WhatsApp included: outline only. */
.btn-outline { background: rgba(255, 255, 255, 0.6); border-color: var(--color-outline); color: var(--color-text); }
.btn-outline:hover { border-color: var(--color-text); background: #fff; }
.btn-outline svg { color: var(--color-whatsapp); }
.btn:disabled { opacity: 0.6; cursor: progress; }
html[dir="rtl"] .icon-arrow { transform: scaleX(-1); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--color-surface); border-bottom: 1px solid var(--color-border); }
.header-inner { display: flex; align-items: center; gap: var(--space-3); min-height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 0.6rem; flex: none; text-decoration: none; }
.brand-mark { width: 38px; height: 38px; }
.brand-name { color: var(--color-text); }
.brand-name { display: flex; flex-direction: column; font-family: "Plus Jakarta Sans", sans-serif; font-weight: 800; font-size: 1.15rem; line-height: 1.05; }
.brand-name small { font-family: var(--font-body); font-weight: 600; font-size: 0.66rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--color-muted); margin-top: 0.3em; }
html[lang="ar"] .brand-name small { letter-spacing: 0; font-size: 0.78rem; }

.main-nav { margin-inline: auto; }
.main-nav ul { display: flex; gap: 0.25rem; }
.main-nav a {
  display: block; padding: 0.5em 0.85em; white-space: nowrap; text-decoration: none;
  font-weight: 600; color: var(--color-muted);
  text-decoration-thickness: 2px; text-underline-offset: 10px;
  transition: color var(--duration-fast);
}
.main-nav a:hover { color: var(--color-text); }
/* Active page: plain colour + underline, no pill. */
.main-nav a[aria-current="page"] { color: var(--color-text); text-decoration-line: underline; }

.header-actions { display: flex; align-items: center; gap: 0.6rem; margin-inline-start: auto; }
.main-nav + .header-actions { margin-inline-start: 0; }
.lang-switch {
  display: inline-grid; place-items: center; min-height: 40px; min-width: 44px; padding-inline: 0.7rem; border-radius: var(--radius-sm);
  font-weight: 700; font-size: 0.9rem; color: var(--color-muted); text-decoration: none;
}
.lang-switch:hover { color: var(--color-text); }
.menu-toggle {
  display: none; place-items: center; width: 44px; height: 44px; padding: 0; cursor: pointer;
  background: transparent; border: 1px solid var(--color-border); border-radius: var(--radius-sm); color: var(--color-text);
}
.menu-icon { display: grid; }
.menu-icon svg { width: 1.4em; height: 1.4em; }
.menu-icon--close, .site-header.is-open .menu-icon--open { display: none; }
.site-header.is-open .menu-icon--close { display: grid; }

@media (max-width: 1023px) {
  .menu-toggle { display: inline-grid; }
  .main-nav {
    display: none; position: absolute; inset-inline: 0; top: 100%;
    background: var(--color-surface); border-bottom: 1px solid var(--color-border); box-shadow: var(--shadow-card);
    padding: var(--space-1) var(--gutter) var(--space-3);
  }
  .site-header.is-open .main-nav { display: block; }
  .main-nav ul { flex-direction: column; gap: 0; }
  .main-nav a { padding: 0.9em 0; font-size: 1.1rem; border-bottom: 1px solid var(--color-border); text-underline-offset: 6px; }
  .header-actions { margin-inline-start: auto; }
}
@media (max-width: 639px) {
  :root { --header-h: 64px; }
  .header-book { display: none; }  /* the bottom bar carries Book on phones */
  .brand-mark { width: 32px; height: 32px; }
  .brand-name { font-size: 1.05rem; }
}

/* ---------- Inner-page head ---------- */
.page-head { padding-block: clamp(2.5rem, 2rem + 3vw, 4.5rem) clamp(2rem, 1.5rem + 2vw, 3rem); background: var(--hero-wash); }
.page-head h1 { font-size: var(--text-h1); max-width: 20ch; text-wrap: balance; }
/* A thin rule closes the page title: a short blue stroke running into a hairline. */
.page-head .wrap::after { content: ""; display: block; height: 2px; margin-top: clamp(1.5rem, 1rem + 1.5vw, 2.25rem);
  background: linear-gradient(to right, var(--color-highlight) 0 56px, transparent 56px 68px, var(--color-border) 68px 100%); border-radius: 2px; }
html[dir="rtl"] .page-head .wrap::after { background: linear-gradient(to left, var(--color-highlight) 0 56px, transparent 56px 68px, var(--color-border) 68px 100%); }
.page-head + .section { padding-top: clamp(2rem, 1.5rem + 2vw, 3rem); }
.page-head .lead { font-size: var(--text-lead); color: var(--color-muted); max-width: 58ch; margin: 0; }

/* ---------- Closing Book banner ---------- */
.banner { padding-block: 0 var(--space-section); }
.section--alt + .banner { background: linear-gradient(var(--color-bg-alt) 50%, var(--color-bg) 50%); }
.banner-inner {
  padding: clamp(2rem, 1.4rem + 3vw, 3.5rem); border-radius: var(--radius-lg);
  background: radial-gradient(60% 120% at 100% 0%, #b9dcff 0%, rgba(185, 220, 255, 0) 70%), linear-gradient(120deg, #ffffff 0%, #e3f1ff 100%);
  border: 1px solid var(--color-border); box-shadow: var(--shadow-card);
 display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-3); }
.banner-title { font-size: var(--text-h2); margin-bottom: 0.35rem; }
.banner-text { color: var(--color-muted); margin: 0; font-size: var(--text-lead); }

/* "Next page" — sits under the banner and walks visitors through the menu order. */
.page-next { margin-top: clamp(1.5rem, 1rem + 1.5vw, 2.25rem); display: flex; justify-content: flex-end; }
.page-next-link {
  display: flex; align-items: center; gap: clamp(1rem, 0.6rem + 1.5vw, 1.75rem);
  padding: 0.9rem 0.9rem 0.9rem 1.5rem; border-radius: var(--radius-md);
  background: var(--color-surface); border: 1px solid var(--color-border);
  color: var(--color-text); text-decoration: none; max-width: 100%;
  transition: border-color var(--duration-fast) ease, box-shadow var(--duration-normal) var(--ease-out), transform var(--duration-normal) var(--ease-out); }
html[dir="rtl"] .page-next-link { padding: 0.9rem 1.5rem 0.9rem 0.9rem; }
.page-next-text { display: grid; gap: 0.1rem; }
.page-next-label { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-highlight); }
.page-next-title { font-family: var(--font-display); font-variation-settings: "opsz" 72; font-size: clamp(1.25rem, 1.05rem + 0.8vw, 1.6rem); font-weight: 700; line-height: 1.2; }
.page-next-hint { color: var(--color-muted); font-size: 0.95rem; }
.page-next-arrow {
  flex: none; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%;
  background: var(--color-surface-2); border: 1px solid var(--color-border); color: var(--color-highlight);
  transition: background-color var(--duration-fast) ease, color var(--duration-fast) ease, transform var(--duration-normal) var(--ease-out); }
.page-next-arrow svg { width: 22px; height: 22px; }
.page-next-link:hover { border-color: var(--color-highlight); box-shadow: var(--shadow-card); transform: translateY(-2px); }
.page-next-link:hover .page-next-arrow { background: var(--color-highlight); color: var(--color-accent-ink); transform: translateX(4px); }
html[dir="rtl"] .page-next-link:hover .page-next-arrow { transform: translateX(-4px); }
.page-next-link:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 3px; }
.page-next-link:active { transform: translateY(0); }
@media (max-width: 640px) { .page-next { justify-content: stretch; } .page-next-link { width: 100%; justify-content: space-between; } }
@media (prefers-reduced-motion: reduce) { .page-next-link, .page-next-arrow { transition: none; } .page-next-link:hover, .page-next-link:hover .page-next-arrow { transform: none; } }

/* ---------- Open-now status (filled in by js/main.js) ---------- */
.open-status { display: inline-flex; align-items: center; gap: 0.55em; font-weight: 600; }
.open-dot { width: 0.6em; height: 0.6em; border-radius: 50%; background: var(--color-muted); }
.open-status.is-open .open-dot { background: var(--color-open); }
.open-status.is-closed .open-dot { background: var(--color-closed); }

/* ---------- Footer ---------- */
.site-footer {
  --color-text: #eef4fb; --color-muted: #a9bdd3; --color-border: rgba(255, 255, 255, 0.12); --color-focus: #ffffff;
  background: var(--color-navy); color: var(--color-muted); padding-bottom: calc(var(--space-3) + 72px); }
.footer-grid {
  display: grid; gap: var(--space-3) var(--space-4); padding-block: var(--space-4) var(--space-3);
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) minmax(0, 1.2fr) minmax(0, 0.9fr);
  grid-template-areas: "brand pages contact hours";
}
.footer-brand { grid-area: brand; }
.footer-col--pages { grid-area: pages; }
.footer-col--contact { grid-area: contact; }
.footer-col--hours { grid-area: hours; }
.footer-logo { display: flex; align-items: center; gap: 0.6rem; font-weight: 800; font-size: 1.15rem; color: var(--color-text); margin-bottom: 0.6rem; }
.footer-logo small { display: block; font-size: var(--text-sm); font-weight: 600; color: var(--color-muted); }
.footer-note { font-size: var(--text-sm); max-width: 34ch; margin: 0; }
.footer-col h2 { font-family: var(--font-body); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--color-muted); margin-bottom: 0.75rem; }
html[lang="ar"] .footer-col h2 { letter-spacing: 0; font-size: 0.9rem; }
.footer-col ul { display: flex; flex-direction: column; gap: 0.4rem; }
.footer-col--pages ul { display: grid; grid-template-columns: repeat(2, max-content); gap: 0.4rem 1.5rem; }
.footer-col a { display: inline-flex; align-items: center; gap: 0.6rem; text-decoration: none; }
.footer-col a:hover { color: var(--color-text); text-decoration: underline; text-underline-offset: 4px; }
.footer-hours { color: var(--color-text); font-weight: 700; margin-bottom: 0.4rem; }
.footer-small { font-size: var(--text-sm); margin: 0.4rem 0 0; }
.footer-base { border-top: 1px solid var(--color-border); padding-top: var(--space-2); font-size: var(--text-sm); }
.footer-base p { margin: 0; }
@media (min-width: 640px) { .site-footer { padding-bottom: var(--space-2); } }
@media (max-width: 1023px) {
  .footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-areas: "brand brand brand" "pages contact hours"; }
}
@media (max-width: 640px) {
  .footer-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "brand brand" "pages hours" "contact contact"; gap: var(--space-3) var(--space-2); }
  .footer-col--pages ul { grid-template-columns: max-content; }
}

/* ---------- Mobile bottom bar (Call · WhatsApp · Book) ---------- */
.mobile-bar {
  position: fixed; inset-inline: 0; bottom: 0; z-index: 60; display: flex; gap: 0.4rem;
  padding: 0.5rem 0.6rem calc(0.5rem + env(safe-area-inset-bottom, 0px));
  background: var(--color-surface); border-top: 1px solid var(--color-border); box-shadow: 0 -8px 24px -16px rgba(16, 82, 150, 0.35);
}
.mobile-bar a {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 0.15rem; min-height: 48px; justify-content: center;
  border-radius: var(--radius-sm); font-size: 0.78rem; font-weight: 700; color: var(--color-text); text-decoration: none;
}
.mobile-bar svg { width: 1.35em; height: 1.35em; }
.mobile-bar a:nth-child(2) svg { color: var(--color-whatsapp); }
.mobile-bar .mobile-bar-book { background: var(--color-accent); color: var(--color-accent-ink); }
@media (min-width: 640px) { .mobile-bar { display: none; } }
