/* ============================================================
   J & A Detailing Studio — readability + emphasis overrides
   Loaded after the main stylesheet. Bigger type, stronger
   contrast, and clear emphasis on prices and key claims.
   ============================================================ */

:root {
  --ink-strong: rgba(255, 255, 255, .96);
  --ink-body:   rgba(255, 255, 255, .82);
  --ink-muted:  rgba(255, 255, 255, .66);
}

/* ---------- Body copy: larger, heavier, higher contrast ---------- */

.svc-intro-text {
  font-size: 1.3rem;
  line-height: 1.85;
  color: var(--ink-body);
  font-weight: 400;
  max-width: 62ch;
  margin-inline: auto;
}

.section-desc,
.about-block-text p {
  font-size: 1.12rem;
  line-height: 1.8;
  color: var(--ink-body);
  font-weight: 400;
}

.section-desc { max-width: 620px; }

.feature-desc,
.process-step-content p {
  font-size: 1.02rem;
  line-height: 1.72;
  color: var(--ink-muted);
  font-weight: 400;
}

.feature-title {
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--ink-strong);
  letter-spacing: .01em;
}

.process-step-content h3 {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--ink-strong);
}

.svc-section-title {
  font-size: clamp(2.2rem, 3.6vw, 3.1rem);
  font-weight: 400;
  color: var(--ink-strong);
}

.svc-hero-subtitle,
.booking-subtitle,
.gallery-subtitle {
  font-size: 1.35rem;
  color: var(--ink-body);
  font-weight: 400;
  font-style: normal;
}

.svc-hero-label,
.stage-label {
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .28em;
}

/* ---------- Home: hero + stage copy ---------- */

.hero-subtitle {
  font-size: .95rem;
  font-weight: 600;
  letter-spacing: .35em;
}

.stage-subtitle {
  font-size: 1.35rem;
  color: var(--ink-body);
  font-weight: 400;
  font-style: normal;
}

.stage-info { max-width: 560px; }

.stat-value { font-weight: 300; }

.stat-label {
  font-size: .74rem;
  font-weight: 600;
  color: rgba(0, 255, 136, .85);
  letter-spacing: .18em;
}

/* ---------- Service cards on the home page ---------- */

.services-grid { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }

.service-title {
  font-size: 1.45rem !important;
  font-weight: 600 !important;
  color: var(--ink-strong) !important;
}

.service-desc {
  font-size: 1.05rem !important;
  line-height: 1.65 !important;
  color: var(--ink-body) !important;
  font-weight: 400 !important;
}

/* Pull the QAR figure inside each card description forward */
.service-card { padding: 2.25rem; }

/* ---------- Pricing: the part customers actually scan ---------- */

.pricing-grid {
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.75rem;
  max-width: 1150px;
  margin-inline: auto;
}

.pricing-name {
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--ink-strong);
  margin-bottom: .75rem;
  line-height: 1.25;
}

.pricing-price {
  font-size: 3rem;
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -.02em;
  color: var(--neon);
  text-shadow: 0 0 28px var(--neon-glow);
  margin-bottom: 1.5rem;
}

.pricing-features {
  text-align: left;
  max-width: 300px;
  margin-inline: auto;
}

.pricing-features li {
  font-size: 1.05rem;
  font-weight: 400;
  color: var(--ink-body);
  padding: .7rem 0 .7rem 1.6rem;
  position: relative;
  border-bottom: 1px solid rgba(255, 255, 255, .07);
}

.pricing-features li:before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--neon);
  font-size: .95rem;
  font-weight: 700;
}

/* First two rows of a tint card are the per-vehicle prices — make them read as prices */
.pricing-features li:nth-child(-n + 2) {
  color: var(--ink-strong);
  font-weight: 600;
}

.pricing-card {
  padding: 2.5rem 2rem;
}

.pricing-card.highlighted {
  border-color: rgba(0, 255, 136, .45) !important;
  background: rgba(0, 255, 136, .07) !important;
  box-shadow: 0 12px 60px rgba(0, 255, 136, .12);
}

.pricing-card.highlighted:after {
  content: "MOST POPULAR";
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: .62rem;
  letter-spacing: .18em;
  font-weight: 700;
  color: #041a0d;
  background: var(--neon);
  padding: .32rem .6rem;
  border-radius: 3px;
}

.pricing-card { position: relative; }

.pricing-cta {
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .15em;
  padding: .95rem 2.2rem;
}

/* A lone package shouldn't stretch the full grid width */
.pricing-grid:has(> .pricing-card:only-child) {
  grid-template-columns: minmax(320px, 480px);
  justify-content: center;
}

/* ---------- Buttons ---------- */

.cta-button {
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .15em;
  padding: 1.1rem 2.8rem;
}

/* ---------- Footer: contact details need to be legible ---------- */

.footer-heading {
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .18em;
}

.footer-link {
  font-size: 1rem;
  font-weight: 400;
  color: var(--ink-muted);
}

.footer-link:hover { color: var(--neon); }

.footer-text {
  font-size: 1.05rem;
  font-weight: 400;
  color: var(--ink-body);
  line-height: 1.7;
}

/* The phone number is the single most important line in the footer */
.footer-col:last-child .footer-text:nth-of-type(3) {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--neon);
  text-shadow: 0 0 20px var(--neon-glow);
  letter-spacing: .01em;
}

.footer-tagline {
  font-size: 1rem;
  color: var(--ink-muted);
  font-style: normal;
  font-weight: 400;
}

/* ---------- Booking form ---------- */

.booking-form label {
  font-size: .95rem !important;
  font-weight: 600 !important;
  color: var(--ink-body) !important;
}

.booking-form input,
.booking-form select,
.booking-form textarea {
  font-size: 1.05rem !important;
}

@media (max-width: 640px) {
  .pricing-price { font-size: 2.5rem; }
  .svc-intro-text { font-size: 1.15rem; }
}

/* ---------- Closing call-to-action ---------- */

.svc-cta-inner h2,
.cta-title {
  font-weight: 400;
}

.svc-cta-inner p,
.cta-desc {
  font-size: 1.15rem !important;
  color: var(--ink-body) !important;
  font-weight: 400 !important;
  line-height: 1.7 !important;
}

/* ============================================================
   Round 2 — navigation, brand mark, two-branch footer, contacts
   ============================================================ */

/* ---------- Brand mark (official logo file drops in here) ---------- */

.brand-mark {
  height: 34px;
  width: auto;
  max-width: 150px;
  object-fit: contain;
  display: block;
  flex: 0 0 auto;
}

.nav-logo,
.footer-logo,
.preloader-logo {
  align-items: center !important;
  gap: .75rem !important;
}

.nav-wordmark {
  display: flex;
  gap: .5rem;
  align-items: baseline;
  flex-wrap: wrap;
}

.footer-logo .brand-mark { height: 42px; max-width: 180px; }
.preloader-logo .brand-mark { height: 48px; max-width: 200px; }

/* ---------- Navigation ---------- */

.nav {
  padding: 1rem 2.5rem !important;
  gap: 2rem;
}

.nav.scrolled {
  padding: .7rem 2.5rem !important;
  background: rgba(5, 5, 5, .9) !important;
  border-bottom: 1px solid rgba(0, 255, 136, .14) !important;
}

.nav-logo-link { flex: 0 0 auto; }

.nav-desktop {
  display: flex;
  align-items: center;
  gap: .35rem;
  margin-left: auto;
}

.nav-link {
  position: relative;
  padding: .55rem .85rem;
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .72);
  text-decoration: none;
  border-radius: 4px;
  transition: color .25s, background .25s;
  white-space: nowrap;
}

.nav-link:hover {
  color: var(--neon);
  background: rgba(0, 255, 136, .07);
}

.nav-link:after {
  content: "";
  position: absolute;
  left: .85rem;
  right: .85rem;
  bottom: .3rem;
  height: 1px;
  background: var(--neon);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s cubic-bezier(.16, 1, .3, 1);
}

.nav-link:hover:after { transform: scaleX(1); }

.nav-actions {
  display: flex;
  align-items: center;
  gap: .6rem;
  flex: 0 0 auto;
}

.nav-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .16);
  color: rgba(255, 255, 255, .8);
  text-decoration: none;
  transition: all .28s cubic-bezier(.16, 1, .3, 1);
}

.nav-icon-btn:hover {
  color: #041a0d;
  background: var(--neon);
  border-color: var(--neon);
  transform: translateY(-2px);
}

.nav-icon-wa {
  color: var(--neon);
  border-color: rgba(0, 255, 136, .4);
}

.nav-icon { width: 18px; height: 18px; }

.nav-cta {
  display: inline-flex;
  align-items: center;
  padding: .68rem 1.4rem;
  border-radius: 999px;
  background: var(--neon);
  color: #041a0d;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  transition: transform .25s cubic-bezier(.16, 1, .3, 1), box-shadow .25s;
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 26px rgba(0, 255, 136, .38);
}

/* Hamburger only exists below the desktop breakpoint */
.nav-menu-btn { display: none !important; }

@media (max-width: 1180px) {
  .nav-desktop { display: none; }
  .nav-menu-btn { display: flex !important; }
  .nav-actions { margin-left: auto; }
}

@media (max-width: 720px) {
  .nav { padding: .85rem 1.1rem !important; }
  .nav-cta { display: none; }
  .nav-icon-btn { width: 36px; height: 36px; }
  .brand-mark { height: 28px; }
  .nav-detail, .nav-niagara { font-size: .58rem; letter-spacing: .22em; }
}

@media (max-width: 400px) {
  .nav-wordmark { display: none; }
}

/* ---------- Mobile menu: contact block ---------- */

.menu-contact {
  margin-top: 2.5rem;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(255, 255, 255, .1);
  display: flex;
  flex-direction: column;
  gap: .2rem;
  max-width: 460px;
}

.menu-contact-row {
  display: flex;
  align-items: center;
  gap: .85rem;
  padding: .7rem 0;
  color: rgba(255, 255, 255, .82);
  font-size: 1.02rem;
  font-weight: 500;
  text-decoration: none;
  transition: color .25s;
}

.menu-contact-row:hover { color: var(--neon); }

.menu-contact-icon {
  width: 19px;
  height: 19px;
  flex: 0 0 auto;
  color: var(--neon);
}

.menu-inner { overflow-y: auto; }

/* ---------- Footer ---------- */

.footer-social {
  display: flex;
  gap: .6rem;
  margin-top: 1.25rem;
}

.footer-social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(0, 255, 136, .25);
  color: var(--neon);
  transition: all .28s cubic-bezier(.16, 1, .3, 1);
}

.footer-social-btn:hover {
  background: var(--neon);
  color: #041a0d;
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 255, 136, .3);
}

.footer-social-icon { width: 18px; height: 18px; }

.footer-col-contact { gap: 1.1rem; max-width: 320px; }

.footer-branch {
  display: flex;
  flex-direction: column;
  gap: .18rem;
  padding: .85rem 1rem;
  border: 1px solid rgba(255, 255, 255, .09);
  border-left: 2px solid var(--neon);
  border-radius: 4px;
  background: rgba(0, 255, 136, .03);
  text-decoration: none;
  transition: all .3s cubic-bezier(.16, 1, .3, 1);
}

.footer-branch:hover {
  background: rgba(0, 255, 136, .08);
  border-color: rgba(0, 255, 136, .3);
  border-left-color: var(--neon);
  transform: translateX(3px);
}

.footer-branch-name {
  font-size: 1rem;
  font-weight: 600;
  color: rgba(255, 255, 255, .95);
}

.footer-branch-addr {
  font-size: .9rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, .62);
}

.footer-branch-cta {
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--neon);
  margin-top: .3rem;
}

.footer-phone {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--neon);
  text-decoration: none;
  text-shadow: 0 0 20px var(--neon-glow);
  letter-spacing: .01em;
}

.footer-phone:before {
  content: "☎ ";
  font-size: 1.1rem;
}

.footer-ig { font-size: 1rem !important; }

.inline-link {
  color: var(--neon);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* The bespoke phone rule from round 1 no longer applies — the number is an <a> now */
.footer-col:last-child .footer-text:nth-of-type(3) {
  font-size: 1.05rem;
  font-weight: 400;
  color: var(--ink-body);
  text-shadow: none;
}

/* ---------- Booking form: branch + service selects ---------- */

.booking-form select {
  width: 100%;
  color: #fff;
}

.booking-form select option { background: #0b0b0b; color: #fff; }

/* ============================================================
   Floating contact widget — WhatsApp first, expands to
   call / both branches / Instagram
   ============================================================ */

.jna-widget {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  z-index: 400;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: .85rem;
  pointer-events: none;
}

.jna-widget > * { pointer-events: auto; }

/* ---- the trigger ---- */

.jna-widget-fab {
  position: relative;
  width: 58px;
  height: 58px;
  border: none;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: 0 10px 30px rgba(37, 211, 102, .42);
  transition: transform .3s cubic-bezier(.16, 1, .3, 1), box-shadow .3s;
}

.jna-widget-fab:hover {
  transform: scale(1.06);
  box-shadow: 0 14px 40px rgba(37, 211, 102, .58);
}

.jna-fab-icon {
  grid-area: 1 / 1;
  width: 29px;
  height: 29px;
  transition: opacity .25s, transform .3s cubic-bezier(.16, 1, .3, 1);
}

.jna-fab-close { opacity: 0; transform: rotate(-90deg) scale(.6); width: 24px; height: 24px; }

.jna-widget.open .jna-fab-open  { opacity: 0; transform: rotate(90deg) scale(.6); }
.jna-widget.open .jna-fab-close { opacity: 1; transform: rotate(0) scale(1); }
.jna-widget.open .jna-widget-fab { background: #1f2421; box-shadow: 0 10px 30px rgba(0, 0, 0, .5); }

/* One-time attention pulse */
.jna-widget.nudge .jna-widget-fab { animation: jnaPulse 1.6s ease-out 2; }

@keyframes jnaPulse {
  0%   { box-shadow: 0 10px 30px rgba(37, 211, 102, .42), 0 0 0 0 rgba(37, 211, 102, .55); }
  70%  { box-shadow: 0 10px 30px rgba(37, 211, 102, .42), 0 0 0 18px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 10px 30px rgba(37, 211, 102, .42), 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* ---- the panel ---- */

.jna-widget-panel {
  width: 290px;
  border-radius: 14px;
  overflow: hidden;
  background: rgba(10, 12, 11, .96);
  -webkit-backdrop-filter: blur(22px);
  backdrop-filter: blur(22px);
  border: 1px solid rgba(0, 255, 136, .18);
  box-shadow: 0 22px 70px rgba(0, 0, 0, .6);
  opacity: 0;
  transform: translateY(14px) scale(.94);
  transform-origin: bottom right;
  pointer-events: none !important;
  transition: opacity .28s, transform .28s cubic-bezier(.16, 1, .3, 1);
}

.jna-widget.open .jna-widget-panel {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto !important;
}

.jna-widget-head {
  padding: 1rem 1.1rem .9rem;
  background: linear-gradient(135deg, rgba(0, 255, 136, .16), rgba(0, 255, 136, .04));
  border-bottom: 1px solid rgba(255, 255, 255, .07);
  display: flex;
  flex-direction: column;
  gap: .15rem;
}

.jna-widget-title {
  font-size: .95rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: .01em;
}

.jna-widget-sub {
  font-size: .78rem;
  color: rgba(255, 255, 255, .58);
  display: flex;
  align-items: center;
  gap: .4rem;
}

.jna-widget-sub:before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #25d366;
  box-shadow: 0 0 8px #25d366;
}

.jna-widget-item {
  display: flex;
  align-items: center;
  gap: .85rem;
  padding: .8rem 1.1rem;
  text-decoration: none;
  color: rgba(255, 255, 255, .88);
  border-bottom: 1px solid rgba(255, 255, 255, .05);
  transition: background .22s, padding-left .22s;
}

.jna-widget-item:last-child { border-bottom: none; }

.jna-widget-item:hover {
  background: rgba(0, 255, 136, .09);
  padding-left: 1.35rem;
}

.jna-widget-item svg {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  color: var(--neon);
}

.jna-widget-item-wa svg { color: #25d366; }

.jna-widget-item span {
  display: flex;
  flex-direction: column;
  line-height: 1.35;
  min-width: 0;
}

.jna-widget-item strong {
  font-size: .95rem;
  font-weight: 600;
}

.jna-widget-item em {
  font-style: normal;
  font-size: .8rem;
  color: rgba(255, 255, 255, .55);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 640px) {
  .jna-widget { right: 1rem; bottom: 1rem; }
  .jna-widget-fab { width: 54px; height: 54px; }
  .jna-widget-panel { width: min(300px, calc(100vw - 2rem)); }
}

@media (prefers-reduced-motion: reduce) {
  .jna-widget.nudge .jna-widget-fab { animation: none; }
}

/* ---------- Mobile menu fit & layering ---------- */

/* The widget must not float over the open navigation */
body:has(.menu-overlay.open) .jna-widget {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: none;
}

@media (max-width: 900px) {
  .menu-inner {
    padding: 4.5rem 1.6rem 1.5rem;
    justify-content: flex-start;
  }

  .menu-links { gap: 0; }

  .menu-link {
    font-size: 1.6rem !important;
    line-height: 1.5;
    padding: .1rem 0;
  }

  .menu-label { font-size: .62rem; }

  .menu-label {
    margin-bottom: .75rem;
  }

  .menu-contact {
    margin-top: 1.5rem;
    padding-top: 1.25rem;
  }

  .menu-contact-row {
    padding: .42rem 0;
    font-size: .95rem;
  }
}

@media (max-width: 900px) and (max-height: 720px) {
  .menu-link { font-size: 1.5rem !important; }
  .menu-contact-row { padding: .45rem 0; font-size: .92rem; }
}

/* ============================================================
   Round 3 — official badge logo, brighter service heroes,
   scrollable studio strip, footer icons
   ============================================================ */

/* ---------- The badge is circular: give it a square box ---------- */

.brand-mark {
  height: 42px;
  width: 42px;
  max-width: none;
  border-radius: 50%;
  object-fit: contain;
}

.footer-logo .brand-mark { height: 60px; width: 60px; }
.preloader-logo .brand-mark { height: 84px; width: 84px; }

.preloader-logo {
  flex-direction: column;
  gap: 1.1rem !important;
}

@media (max-width: 720px) {
  .brand-mark { height: 36px; width: 36px; }
}

@media (max-width: 400px) {
  .nav-wordmark { display: none; }
  .brand-mark { height: 38px; width: 38px; }
}

/* ---------- Service hero: let the photograph show ---------- */

.svc-hero {
  min-height: 78vh;
  background-attachment: scroll;
  background-position: center 35%;
}

/* The stock rule stacked a second near-opaque scrim on top of the
   inline gradient. Soften it to a bottom-edge fade only. */
.svc-hero:before {
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, .18) 0%,
    rgba(0, 0, 0, .10) 45%,
    rgba(10, 10, 10, .80) 88%,
    #0a0a0a 100%
  ) !important;
}

/* Keep the headline readable over a bright photo without dimming it */
.svc-hero-inner {
  max-width: 780px;
}

.svc-hero-title,
.svc-hero-subtitle,
.svc-hero-label {
  text-shadow: 0 2px 24px rgba(0, 0, 0, .85), 0 1px 4px rgba(0, 0, 0, .7);
}

.svc-hero-glow { opacity: .18; }

/* ---------- Horizontally scrollable studio strip ---------- */

.svc-strip {
  padding: 4rem 0 4.5rem;
  position: relative;
  z-index: 1;
}

.svc-strip-inner { max-width: 1200px; margin: 0 auto; }

.svc-strip .svc-section-title { margin-bottom: .6rem; }

.svc-strip-note {
  text-align: center;
  font-size: 1rem;
  color: var(--ink-muted);
  margin-bottom: 2.25rem;
}

.svc-scroller {
  display: flex;
  gap: 1.1rem;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: .25rem 5% 1.5rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 255, 136, .45) rgba(255, 255, 255, .06);
}

.svc-scroller::-webkit-scrollbar { height: 6px; }
.svc-scroller::-webkit-scrollbar-track { background: rgba(255, 255, 255, .06); border-radius: 99px; }
.svc-scroller::-webkit-scrollbar-thumb { background: rgba(0, 255, 136, .45); border-radius: 99px; }
.svc-scroller::-webkit-scrollbar-thumb:hover { background: var(--neon); }

.svc-shot {
  flex: 0 0 clamp(230px, 26vw, 320px);
  margin: 0;
  scroll-snap-align: center;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .09);
  background: rgba(255, 255, 255, .02);
  transition: transform .35s cubic-bezier(.16, 1, .3, 1), border-color .35s;
}

.svc-shot:hover {
  transform: translateY(-5px);
  border-color: rgba(0, 255, 136, .35);
}

.svc-shot img {
  display: block;
  width: 100%;
  height: clamp(300px, 34vw, 420px);
  object-fit: cover;
  /* no dimming filter — these are the selling images */
}

.svc-shot figcaption {
  padding: .85rem 1rem 1rem;
  font-size: .95rem;
  font-weight: 500;
  color: var(--ink-body);
  line-height: 1.45;
}

@media (max-width: 640px) {
  .svc-scroller { padding-inline: 1.1rem; gap: .85rem; }
  .svc-shot { flex-basis: 78vw; }
  .svc-shot img { height: 62vw; }
  .svc-hero { min-height: 66vh; }
}

/* ---------- About + gallery photos should not be dimmed ---------- */

.about-block-image img {
  aspect-ratio: 3 / 4;
  max-height: 560px;
  border: 1px solid rgba(255, 255, 255, .1);
}

@media (min-width: 900px) {
  .about-block-image img { aspect-ratio: 4 / 5; }
}

/* ---------- Footer icons ---------- */

.footer-link {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
}

.footer-link-icon {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  color: var(--neon);
  opacity: .8;
  transition: opacity .25s, transform .25s;
}

.footer-link:hover .footer-link-icon {
  opacity: 1;
  transform: translateX(2px);
}

.footer-branch-name {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
}

.footer-branch-icon {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  color: var(--neon);
}

/* ---------- Bilingual signage line + CR number ---------- */

.footer-ar {
  margin-top: .5rem;
  font-size: 1.02rem;
  line-height: 1.9;
  color: var(--ink-muted);
  direction: rtl;
  text-align: right;
  max-width: 320px;
}

.footer-cr {
  display: inline-block;
  margin-left: .5rem;
  padding: .15rem .5rem;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 3px;
  font-size: .78rem;
  letter-spacing: .06em;
  color: rgba(255, 255, 255, .6);
}

@media (max-width: 720px) {
  .footer-ar { text-align: left; max-width: none; }
}

/* ============================================================
   Round 4 — smooth scrolling + low-end mobile performance
   ============================================================ */

/* ---------- Smooth, momentum-friendly scrolling ---------- */

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

body {
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: none;   /* kills the rubber-band flash on iOS */
}

/* Anchor targets clear the fixed nav */
:target { scroll-margin-top: 90px; }

/* Offscreen sections skip layout+paint until they approach the viewport.
   The size hint prevents scrollbar jumping as they get promoted. */
.svc-features,
.svc-process,
.svc-strip,
.svc-pricing,
.svc-cta,
.about-block,
.gallery-grid-section {
  content-visibility: auto;
  contain-intrinsic-size: auto 600px;
}

/* ---------- Touch devices: drop the expensive compositing ---------- */

@media (pointer: coarse), (max-width: 900px) {
  /* backdrop-filter is the biggest GPU cost on mid-range Android */
  .nav.scrolled {
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
    background: rgba(5, 5, 5, .96) !important;
  }

  .jna-widget-panel {
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
    background: rgba(10, 12, 11, .985);
  }

  .menu-backdrop {
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
  }

  /* Large blur radii are fill-rate killers; a soft radial reads the same */
  .svc-hero-glow {
    filter: none;
    opacity: .12;
  }

  /* Hover lifts do nothing on touch but still allocate layers */
  .svc-shot:hover,
  .service-card:hover,
  .footer-branch:hover,
  .jna-widget-fab:hover {
    transform: none;
  }

  /* The custom cursor never shows on touch — make sure it costs nothing */
  .cursor, .cursor-dot { display: none !important; }
}

/* ---------- Genuinely low-end: strip the remaining flourishes ---------- */

.is-lowend .svc-hero-glow,
.is-lowend .hero-glow { display: none; }

.is-lowend .pricing-card.highlighted { box-shadow: none; }

.is-lowend .jna-widget.nudge .jna-widget-fab { animation: none; }

.is-lowend .svc-shot { transition: none; }

/* Text shadows on huge type are surprisingly costly to repaint */
.is-lowend .svc-hero-title,
.is-lowend .stage-title,
.is-lowend .hero-title { text-shadow: 0 2px 10px rgba(0, 0, 0, .9); }

/* ---------- Respect the OS setting ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }

  .svc-scroller { scroll-snap-type: none; }
}

/* ---------- iOS specifics ---------- */

/* 100vh on iOS Safari includes the toolbar; dvh tracks the visible area */
@supports (height: 100dvh) {
  .svc-hero { min-height: 78dvh; }
  .menu-overlay { height: 100dvh; }
}

@media (max-width: 640px) {
  @supports (height: 100dvh) {
    .svc-hero { min-height: 66dvh; }
  }
}

/* Keep the widget clear of the iOS home indicator */
.jna-widget {
  bottom: calc(1.5rem + env(safe-area-inset-bottom, 0px));
  right: calc(1.5rem + env(safe-area-inset-right, 0px));
}

@media (max-width: 640px) {
  .jna-widget {
    bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
    right: calc(1rem + env(safe-area-inset-right, 0px));
  }
}

/* iOS zooms the page when a font-size < 16px input is focused */
.booking-form input,
.booking-form select,
.booking-form textarea {
  font-size: 16px !important;
}

/* Tap targets: 44px minimum */
.nav-icon-btn,
.footer-social-btn,
.jna-widget-item,
.menu-contact-row {
  min-height: 44px;
}

/* Kill the grey tap flash */
a, button, .service-card, .pricing-cta, .cta-button {
  -webkit-tap-highlight-color: transparent;
}
