/* ============================================================
   AlHaramRentCar — chrome.css
   Site chrome: the header and footer, redesigned.

   Loaded globally (every page), after ah-theme.css, so it layers on top of
   the existing .ah-header / .ah-topbar rules rather than replacing them —
   the sticky behaviour in main.js (which toggles .is-stuck on #ah-site-header
   and writes --ah-site-header-h) keeps working untouched.

   The footer is rebuilt under a fresh .ah-foot root so it doesn't fight the
   older .ah-footer__* rules in ah-theme.css.
   ============================================================ */

/* ============================================================
   HEADER
   ============================================================ */

.ah-site-header {
  transition: background 0.4s var(--ah-ease), box-shadow 0.4s var(--ah-ease);
}

/* Scrolled state — the bar turns into frosted glass over the page. */
.ah-site-header.is-stuck {
  background: rgba(11, 11, 11, 0.88);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.42);
}
/* The 2px gradient border-image in ah-theme.css is heavy for a scrolled bar;
   at rest it frames the header, stuck it thins to a gold hairline. */
.ah-site-header.is-stuck .ah-header {
  border-image: none;
  border-bottom: 1px solid rgba(var(--ah-gold-rgb), 0.28);
  background: transparent;
}

/* --- Announcement bar --- */
/* NB: no `align-items` here — the base rule uses `stretch` so the status flag
   and the right-hand aside fill the bar's full height. */
.ah-topbar {
  border-bottom: 1px solid rgba(var(--ah-gold-rgb), 0.16);
  font-size: 0.78rem;
}
.ah-topbar__item { letter-spacing: 0.04em; }

/* "Open 24/7" flag pinned to the left of the marquee. */
.ah-topbar__status {
  display: none;
  align-items: center;
  gap: 0.45rem;
  flex-shrink: 0;
  align-self: stretch;
  padding: 0 1.1rem;
  background: rgba(var(--ah-gold-rgb), 0.12);
  border-right: 1px solid rgba(var(--ah-gold-rgb), 0.22);
  font-family: var(--ah-font-display);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ah-gold-light);
  white-space: nowrap;
}
.ah-topbar__status::before {
  content: '';
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--ah-wa);
  box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
  animation: ah-foot-pulse 2s infinite;
}
@media (min-width: 640px) { .ah-topbar__status { display: inline-flex; } }

.ah-topbar__aside { gap: 1.1rem; }

/* --- Header row --- */
.ah-header { transition: padding 0.4s var(--ah-ease); }
.ah-site-header.is-stuck .ah-header { padding-block: 0.35rem; }

.ah-logo img {
  transition: transform 0.5s var(--ah-ease), height 0.4s var(--ah-ease);
}
.ah-logo:hover img { transform: scale(1.04); }
.ah-site-header.is-stuck .ah-logo img { height: 54px; }

/* --- Nav ---
   Deliberately empty: ah-theme.css is the single owner of the primary nav
   (plain text links + a centre-growing gold underline). This file used to add
   a pill rail around the list and a second, competing underline definition —
   both are gone. Style the nav in ah-theme.css, not here. */

/* --- Phone chip — two-line "Call to book / number" block ---
   The number is the point of this control, so it gets the gold and the size;
   the label above sits back in a quiet uppercase grey. Layered surface + inner
   highlight give it a machined-metal edge rather than a flat outlined pill. */
.ah-phone-chip {
  position: relative;
  gap: 0.65rem;
  padding: 0.32rem 1.1rem 0.32rem 0.32rem;
  border: 1px solid rgba(var(--ah-gold-rgb), 0.32);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.015));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.07);
  overflow: hidden;
  transition:
    border-color 0.35s var(--ah-ease),
    background 0.35s var(--ah-ease),
    box-shadow 0.35s var(--ah-ease),
    transform 0.35s var(--ah-ease);
}
/* Gold wash that sweeps in from the left on hover. Sits under the content
   (z-index) and is pointer-transparent so it can never eat the click. */
.ah-phone-chip::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(90deg, rgba(var(--ah-gold-rgb), 0.22), transparent 70%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s var(--ah-ease);
}
.ah-phone-chip > * { position: relative; z-index: 1; }
.ah-phone-chip:hover {
  border-color: rgba(var(--ah-gold-rgb), 0.85);
  transform: translateY(-2px);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.1),
    0 10px 24px rgba(var(--ah-gold-rgb), 0.22);
}
.ah-phone-chip:hover::before { opacity: 1; }
.ah-phone-chip:focus-visible { outline: 2px solid var(--ah-gold); outline-offset: 3px; }

.ah-phone-chip__icon {
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  flex: none;
  border-radius: 50%;
  color: var(--ah-black);
  background: linear-gradient(145deg, var(--ah-gold-light), var(--ah-gold-dark));
  box-shadow: 0 4px 12px rgba(var(--ah-gold-rgb), 0.35);
  transition: transform 0.45s var(--ah-ease), box-shadow 0.35s var(--ah-ease);
}
.ah-phone-chip:hover .ah-phone-chip__icon {
  /* Slight "ringing" tilt — reads as a live phone, not a static badge. */
  transform: rotate(-12deg) scale(1.06);
  box-shadow: 0 6px 18px rgba(var(--ah-gold-rgb), 0.5);
}
.ah-phone-chip__icon i { color: inherit; }

.ah-phone-chip__text { display: grid; gap: 0.1rem; line-height: 1.1; text-align: left; }
.ah-phone-chip__text small {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  transition: color 0.35s var(--ah-ease);
}
.ah-phone-chip__text strong {
  font-family: var(--ah-font-display);
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--ah-gold-light);
  font-variant-numeric: tabular-nums;
  transition: color 0.35s var(--ah-ease);
}
.ah-phone-chip:hover .ah-phone-chip__text small { color: rgba(255, 255, 255, 0.7); }
.ah-phone-chip:hover .ah-phone-chip__text strong { color: #fff; }

@media (prefers-reduced-motion: reduce) {
  .ah-phone-chip,
  .ah-phone-chip__icon { transition: none; }
  .ah-phone-chip:hover { transform: none; }
  .ah-phone-chip:hover .ah-phone-chip__icon { transform: none; }
}

/* --- Burger --- */
.ah-burger {
  width: 2.75rem;
  height: 2.75rem;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  transition: background 0.3s var(--ah-ease), border-color 0.3s var(--ah-ease);
}
.ah-burger:hover { background: rgba(var(--ah-gold-rgb), 0.14); border-color: rgba(var(--ah-gold-rgb), 0.5); }
.ah-burger span { width: 20px; }

/* ============================================================
   FOOTER
   ============================================================ */

.ah-foot {
  position: relative;
  background: var(--ah-black);
  color: rgba(255, 255, 255, 0.72);
  overflow: hidden;
  isolation: isolate;
}
/* Gold hairline + soft glow along the top edge */
.ah-foot::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--ah-gold), transparent);
}
.ah-foot::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(80% 60% at 50% 0%, rgba(var(--ah-gold-rgb), 0.13), transparent 62%);
  pointer-events: none;
}

/* --- CTA strip across the top of the footer --- */
.ah-foot__cta {
  display: grid;
  gap: 1.5rem;
  align-items: center;
  padding-block: clamp(2.25rem, 5vw, 3.5rem);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
@media (min-width: 900px) {
  .ah-foot__cta { grid-template-columns: 1fr auto; gap: 2.5rem; }
}
.ah-foot__cta-title {
  margin: 0;
  font-family: var(--ah-font-display);
  font-weight: 800;
  font-size: var(--ah-fs-h2-sm);
  line-height: 1.18;
  color: #fff;
  text-wrap: balance;
}
.ah-foot__cta-title em {
  font-style: normal;
  background: linear-gradient(120deg, var(--ah-gold-light), var(--ah-gold-dark));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.ah-foot__cta-sub { margin: 0.6rem 0 0; font-size: 0.95rem; color: rgba(255, 255, 255, 0.6); }
.ah-foot__cta-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* --- Main columns --- */
.ah-foot__main {
  display: grid;
  gap: clamp(2rem, 4vw, 3rem);
  padding-block: clamp(2.5rem, 5vw, 4rem);
}
@media (min-width: 700px) { .ah-foot__main { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .ah-foot__main { grid-template-columns: 1.6fr 1fr 1fr 1.3fr; } }

.ah-foot__logo { display: inline-block; }
.ah-foot__logo img { height: 72px; width: auto; max-width: 210px; display: block; }
.ah-foot__tagline {
  margin: 1.1rem 0 1.5rem;
  max-width: 30ch;
  font-size: 0.92rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.62);
}

/* Social pills */
.ah-foot__social { display: flex; gap: 0.6rem; }
.ah-foot__social a {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.14);
  transition: color 0.35s var(--ah-ease), border-color 0.35s var(--ah-ease), background 0.35s var(--ah-ease), transform 0.35s var(--ah-ease);
}
.ah-foot__social a:hover {
  color: var(--ah-black);
  background: var(--ah-gold);
  border-color: var(--ah-gold);
  transform: translateY(-3px);
}
.ah-foot__social i { width: 18px; height: 18px; }

.ah-foot__col h4 {
  position: relative;
  margin: 0 0 1.35rem;
  padding-bottom: 0.7rem;
  font-family: var(--ah-font-display);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #fff;
}
.ah-foot__col h4::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 2rem;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--ah-gold-light), var(--ah-gold-dark));
}
.ah-foot__col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.7rem; }
.ah-foot__col li { font-size: 0.9rem; line-height: 1.5; }
.ah-foot__col a {
  color: rgba(255, 255, 255, 0.68);
  text-decoration: none;
  transition: color 0.3s var(--ah-ease), padding-left 0.3s var(--ah-ease);
}
.ah-foot__col a:hover { color: var(--ah-gold-light); padding-left: 0.3rem; }

/* Contact column */
.ah-foot__contact { display: grid; gap: 1.05rem; list-style: none; margin: 0; padding: 0; }
.ah-foot__contact li { display: flex; gap: 0.8rem; align-items: flex-start; }
.ah-foot__contact i { color: var(--ah-gold); width: 18px; height: 18px; flex-shrink: 0; margin-top: 0.15rem; }
.ah-foot__contact strong {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.42);
  margin-bottom: 0.2rem;
  font-weight: 700;
}
.ah-foot__contact a,
.ah-foot__contact span {
  display: block;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
}
.ah-foot__contact a:hover { color: var(--ah-gold-light); }

/* Open-now badge */
.ah-foot__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.25rem;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ah-wa);
  background: rgba(37, 211, 102, 0.12);
  border: 1px solid rgba(37, 211, 102, 0.3);
}
.ah-foot__badge::before {
  content: '';
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--ah-wa);
  box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
  animation: ah-foot-pulse 2s infinite;
}
@keyframes ah-foot-pulse {
  70% { box-shadow: 0 0 0 8px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .ah-foot__badge::before { animation: none; }
}

/* --- Bottom bar — single centred copyright line --- */
.ah-foot__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  justify-content: center;
  padding-block: 1.35rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.8rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.42);
}
.ah-foot__bottom p { margin: 0; }
