/* =========================================================
   RC Automotive Solutions — Prospect SA
   bold service-centre: navy + azure blue + safety orange,
   heavy semi-condensed type. Skin pulled from their real
   orange-container shopfront and azure RC logo.
   ========================================================= */

:root {
  --ink:       oklch(0.205 0.035 256);   /* deep navy base */
  --ink-2:     oklch(0.255 0.042 256);
  --ink-3:     oklch(0.31 0.045 256);
  --paper:     oklch(0.976 0.005 250);   /* cool off-white */
  --paper-2:   oklch(0.928 0.009 250);
  --steel:     oklch(0.64 0.022 250);
  --steel-d:   oklch(0.47 0.025 256);
  --line:      oklch(0.34 0.03 256);     /* dark divider */
  --line-lt:   oklch(0.88 0.012 250);    /* light divider */

  --orange:    oklch(0.685 0.18 47);     /* brand safety orange */
  --orange-d:  oklch(0.61 0.172 45);
  --blue:      oklch(0.63 0.135 244);    /* brand azure */
  --blue-d:    oklch(0.535 0.13 246);
  --blue-deep: oklch(0.40 0.10 250);
  --white:     oklch(0.99 0 0);

  --display: "Barlow Semi Condensed", "Arial Narrow", sans-serif;
  --body:    "Barlow", "Helvetica Neue", Arial, sans-serif;

  --gutter: clamp(20px, 5vw, 72px);
  --section-y: clamp(64px, 9vw, 124px);
  --max: 1280px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
::selection { background: var(--orange); color: #fff; }

.accent { color: var(--orange); }
.accent-b { color: var(--blue); }
.skip { position: absolute; left: -9999px; top: 0; background: var(--orange); color: #fff; padding: 12px 16px; z-index: 200; }
.skip:focus { left: 14px; top: 14px; }

/* ---------- brand mark (recreated RC logo) ---------- */
.brand { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; }
.brand__logo { height: 46px; width: auto; display: block; }
.foot__logo { height: 72px; width: auto; display: block; }
.brand__txt { display: none; }
.hero__title, .sec-title, .trust__big, .visit__block address,
.visit__phone, .rev__big, .callbar { font-weight: 800; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 40;
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 28px;
  padding: 11px var(--gutter);
  background: color-mix(in oklab, var(--ink) 95%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  box-shadow: inset 0 -3px 0 var(--orange);
}
.nav__links { display: flex; gap: 26px; justify-content: center; font-weight: 600; font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; }
.nav__links a { color: color-mix(in oklab, var(--white) 78%, transparent); text-decoration: none; padding: 6px 0; position: relative; }
.nav__links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--orange); transform: scaleX(0); transform-origin: left; transition: transform 0.4s var(--ease); }
.nav__links a:hover { color: #fff; }
.nav__links a:hover::after { transform: scaleX(1); }
.nav__call {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 700; font-size: 14px; letter-spacing: 0.01em; text-decoration: none;
  color: #fff; background: var(--orange); padding: 11px 18px; border-radius: 3px;
  transition: background 0.25s var(--ease), transform 0.25s var(--ease); white-space: nowrap;
}
.nav__call svg { width: 17px; height: 17px; fill: none; stroke: #fff; stroke-width: 1.9; }
.nav__call:hover { background: var(--orange-d); transform: translateY(-1px); }
.nav__toggle {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 40px; padding: 0 10px; background: transparent;
  border: 1px solid var(--line); border-radius: 4px; cursor: pointer;
}
.nav__toggle span { display: block; height: 2px; background: #fff; transition: transform .3s var(--ease), opacity .3s var(--ease); }
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@media (max-width: 860px) {
  .nav { grid-template-columns: 1fr auto; gap: 12px; }
  .nav__links, .nav__call { display: none; }
  .nav__toggle { display: flex; }
  .brand__logo { height: 40px; }
}

/* ---------- mobile menu drawer ---------- */
.mobile-menu { position: fixed; inset: 0; z-index: 80; visibility: hidden; }
.mobile-menu.is-open { visibility: visible; }
.mobile-menu__backdrop { position: absolute; inset: 0; background: rgba(8,12,20,.64); opacity: 0; transition: opacity .35s var(--ease); }
.mobile-menu.is-open .mobile-menu__backdrop { opacity: 1; }
.mobile-menu__panel {
  position: absolute; top: 0; right: 0; height: 100%; width: min(330px, 86vw);
  background: var(--ink-2); border-left: 1px solid var(--line);
  padding: 78px 28px calc(28px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 26px;
  transform: translateX(100%); transition: transform .4s var(--ease);
}
.mobile-menu.is-open .mobile-menu__panel { transform: none; }
.mobile-menu__close { position: absolute; top: 16px; right: 18px; width: 42px; height: 42px; background: transparent; border: none; color: #fff; font-size: 32px; line-height: 1; cursor: pointer; }
.mobile-menu__links { display: flex; flex-direction: column; gap: 2px; }
.mobile-menu__links a {
  font-family: var(--display); font-weight: 800; font-size: 26px; text-transform: uppercase;
  letter-spacing: .01em; color: #fff; text-decoration: none; padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.mobile-menu__links a:hover { color: var(--orange); }
.mobile-menu__cta { display: flex; flex-direction: column; gap: 10px; margin-top: auto; }
.mobile-menu__cta .btn { justify-content: center; }
@media (prefers-reduced-motion: reduce) {
  .mobile-menu__backdrop, .mobile-menu__panel, .nav__toggle span { transition: none !important; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--body); font-weight: 700; font-size: 15px; letter-spacing: 0.01em;
  text-decoration: none; padding: 15px 26px; border-radius: 3px; border: 2px solid transparent;
  transition: background 0.25s var(--ease), transform 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.btn svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.9; }
.btn--orange { background: var(--orange); color: #fff; }
.btn--orange:hover { background: var(--orange-d); transform: translateY(-2px); }
.btn--ghost { background: transparent; color: #fff; border-color: color-mix(in oklab, #fff 40%, transparent); }
.btn--ghost:hover { border-color: #fff; background: color-mix(in oklab, #fff 9%, transparent); }
.btn--blue { background: var(--blue); color: #fff; }
.btn--blue:hover { background: var(--blue-d); transform: translateY(-2px); }
.btn--big { font-size: 17px; padding: 18px 32px; }

/* ---------- section heads ---------- */
.sec-head { max-width: var(--max); margin: 0 auto clamp(36px, 5vw, 56px); }
.sec-eyebrow {
  font-family: var(--body); font-weight: 700; font-size: 12px; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--orange); margin: 0 0 14px; display: inline-flex; align-items: center; gap: 8px;
}
.eyebrow-ico { width: 14px; height: 14px; flex: none; color: var(--orange); }
.sec-title {
  font-family: var(--display); font-weight: 800;
  font-size: clamp(32px, 5.2vw, 62px); line-height: 0.98; letter-spacing: 0.005em;
  text-transform: uppercase; margin: 0; max-width: 18ch; color: var(--ink);
}
.sec-title--light { color: #fff; }

/* ---------- hero ---------- */
.hero { position: relative; background: var(--ink); color: #fff; min-height: min(92vh, 780px); display: flex; align-items: flex-end; overflow: hidden; }
.hero__media { position: absolute; inset: 0; z-index: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(to top, var(--ink) 3%, color-mix(in oklab, var(--ink) 42%, transparent) 42%, transparent 76%),
    linear-gradient(to right, color-mix(in oklab, var(--ink) 82%, transparent), color-mix(in oklab, var(--ink) 18%, transparent) 58%, transparent 80%);
}
.hero__inner { position: relative; z-index: 2; width: 100%; max-width: var(--max); margin: 0 auto; padding: clamp(40px, 7vw, 92px) var(--gutter) clamp(40px, 6vw, 76px); }
.hero__eyebrow { font-weight: 700; font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase; color: color-mix(in oklab, #fff 78%, transparent); margin: 0 0 18px; display: inline-flex; align-items: center; gap: 8px; }
.hero__title {
  font-family: var(--display); font-weight: 800;
  font-size: clamp(46px, 8.6vw, 112px); line-height: 0.9; letter-spacing: 0.005em;
  text-transform: uppercase; margin: 0 0 22px; text-shadow: 0 2px 34px color-mix(in oklab, var(--ink) 66%, transparent);
}
.hero__lede { max-width: 52ch; font-size: clamp(15.5px, 1.4vw, 18px); color: color-mix(in oklab, #fff 88%, transparent); margin: 0 0 30px; line-height: 1.62; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 26px; }
.hero__rating { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; color: color-mix(in oklab, #fff 86%, transparent); margin: 0; flex-wrap: wrap; }
.hero__rating strong { font-size: 17px; color: #fff; }
.stars, .rev__stars { color: var(--orange); letter-spacing: 2px; }

/* ---------- trust bar ---------- */
.trust {
  background: var(--ink-2); color: #fff;
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--line);
}
.trust__item { padding: clamp(22px, 3vw, 34px) var(--gutter); border-left: 1px solid var(--line); display: flex; flex-direction: column; gap: 3px; }
.trust__item:first-child { border-left: none; }
.trust__big { font-family: var(--display); font-weight: 800; font-size: clamp(22px, 2.4vw, 31px); text-transform: uppercase; letter-spacing: 0.01em; }
.trust__item:nth-child(4) .trust__big { color: var(--orange); }
.trust__sm { font-size: 13px; color: var(--steel); font-weight: 500; }
@media (max-width: 760px) {
  .trust { grid-template-columns: 1fr 1fr; }
  .trust__item:nth-child(odd) { border-left: none; }
  .trust__item:nth-child(n+3) { border-top: 1px solid var(--line); }
}

/* ---------- services ---------- */
.services { padding: var(--section-y) var(--gutter); background: var(--paper); }
.svc-grid { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line-lt); border: 1px solid var(--line-lt); }
.svc { background: var(--paper); padding: clamp(26px, 3.5vw, 44px); display: flex; flex-direction: column; gap: 10px; transition: background 0.3s var(--ease); position: relative; }
.svc::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--blue); transform: scaleY(0); transform-origin: top; transition: transform 0.35s var(--ease); }
.svc:hover { background: #fff; }
.svc:hover::before { transform: scaleY(1); }
.svc__no { font-family: var(--display); font-weight: 800; font-size: 28px; color: var(--orange); line-height: 1; }
.svc__name { font-family: var(--body); font-weight: 800; font-size: clamp(19px, 1.8vw, 23px); margin: 4px 0 0; letter-spacing: -0.01em; }
.svc__desc { margin: 0; font-size: 15px; color: var(--steel-d); line-height: 1.6; max-width: 46ch; }
.svc-note { max-width: var(--max); margin: clamp(28px, 4vw, 40px) auto 0; text-align: center; font-size: 15px; color: var(--steel-d); }
.svc-note a { color: var(--orange); font-weight: 700; text-decoration: none; white-space: nowrap; }
.svc-note a:hover { text-decoration: underline; }
@media (max-width: 680px) { .svc-grid { grid-template-columns: 1fr; } }

/* ---------- why (dark, image + text) ---------- */
.why { background: var(--ink); color: #fff; padding: var(--section-y) var(--gutter); }
.why { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: clamp(32px, 5vw, 72px); align-items: center; max-width: var(--max); margin: 0 auto; }
.why__media { margin: 0; overflow: hidden; border-radius: 4px; aspect-ratio: 4 / 4.4; border: 1px solid var(--line); position: relative; }
.why__media img { width: 100%; height: 100%; object-fit: cover; }
.why__media::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 5px; background: linear-gradient(to right, var(--orange) 50%, var(--blue) 50%); }
.why__para { color: color-mix(in oklab, #fff 86%, transparent); font-size: 16px; line-height: 1.7; margin: 22px 0 24px; max-width: 54ch; }
.why__list { list-style: none; padding: 0; margin: 0 0 30px; display: grid; gap: 12px; }
.why__list li { position: relative; padding-left: 30px; color: color-mix(in oklab, #fff 90%, transparent); font-weight: 500; }
.why__list li::before { content: ""; position: absolute; left: 0; top: 7px; width: 14px; height: 14px; background: var(--orange); clip-path: polygon(0 0, 100% 50%, 0 100%); }
@media (max-width: 820px) { .why { grid-template-columns: 1fr; } .why__media { aspect-ratio: 16 / 11; } }

/* ---------- work gallery ---------- */
.work { padding: var(--section-y) var(--gutter); background: var(--paper); }
.work-grid { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: 1.4fr 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 14px; }
.work__item { margin: 0; overflow: hidden; border-radius: 4px; background: var(--paper-2); }
.work__item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.work__item:hover img { transform: scale(1.04); }
.work__item--tall { grid-row: 1 / 3; }
@media (max-width: 760px) {
  .work-grid { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
  .work__item { aspect-ratio: 4 / 3; }
  .work__item--tall { grid-column: 1 / -1; grid-row: auto; aspect-ratio: 16 / 9; }
}

/* ---------- reviews ---------- */
.reviews { padding: var(--section-y) var(--gutter); background: var(--paper-2); text-align: center; }
.reviews .sec-head, .reviews .rev-grid { text-align: left; }
.reviews .sec-title { margin-left: auto; margin-right: auto; text-align: center; max-width: none; }
.reviews .sec-eyebrow { justify-content: center; }
.rev-grid { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.rev { margin: 0; background: #fff; border: 1px solid var(--line-lt); border-top: 3px solid var(--orange); padding: clamp(24px, 3vw, 34px); display: flex; flex-direction: column; gap: 14px; text-align: left; }
.rev__stars { font-size: 16px; }
.rev p { margin: 0; font-size: clamp(16px, 1.5vw, 19px); font-weight: 500; line-height: 1.5; flex: 1; }
.rev cite { font-style: normal; font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--steel); }
.rev--stat { background: var(--ink); border-top-color: var(--orange); }
.rev--stat .rev__stars { color: var(--orange); }
.rev--stat p { color: #fff; display: flex; align-items: baseline; gap: 12px; font-weight: 600; }
.rev--stat cite { color: var(--steel); }
.rev__big { font-family: var(--display); font-weight: 800; font-size: 58px; line-height: 0.8; color: var(--orange); }
.rev-link { display: inline-block; margin: clamp(28px, 4vw, 40px) auto 0; text-align: center; font-weight: 700; color: var(--ink); text-decoration: none; border-bottom: 2px solid var(--orange); padding-bottom: 3px; width: max-content; }
.rev-link:hover { color: var(--orange); }
@media (max-width: 820px) { .rev-grid { grid-template-columns: 1fr; } }

/* ---------- visit (dark + image) ---------- */
.visit { background: var(--ink); color: #fff; padding: var(--section-y) var(--gutter); }
.visit__wrap { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.visit__text { min-width: 0; }
.visit__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(22px, 3vw, 38px); margin: clamp(28px, 4vw, 44px) 0 clamp(28px,4vw,40px); }
.visit__block { display: flex; flex-direction: column; gap: 10px; padding-top: 18px; border-top: 2px solid var(--orange); }
.visit__block:nth-child(even) { border-top-color: var(--blue); }
.visit__label { font-weight: 700; font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--steel); }
.visit__block address { font-style: normal; font-family: var(--display); font-size: clamp(19px, 1.9vw, 24px); text-transform: uppercase; line-height: 1.2; letter-spacing: 0.01em; }
.hours { margin: 0; }
.hours > div { display: flex; justify-content: space-between; gap: 16px; padding: 7px 0; border-bottom: 1px solid var(--line); font-weight: 500; }
.hours > div:last-child { border-bottom: none; }
.hours dt, .hours dd { margin: 0; }
.hours dd { color: var(--steel); }
.visit__phone { font-family: var(--display); font-weight: 800; font-size: clamp(26px, 3vw, 36px); color: #fff; text-decoration: none; letter-spacing: 0.01em; }
.visit__phone:hover { color: var(--orange); }
.link-arrow { font-weight: 700; font-size: 14px; color: var(--orange); text-decoration: none; }
.link-arrow:hover { text-decoration: underline; }
.visit__cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 6px; }
.visit__media { margin: 0; overflow: hidden; border-radius: 4px; aspect-ratio: 4 / 3.4; border: 1px solid var(--line); position: relative; }
.visit__media img { width: 100%; height: 100%; object-fit: cover; }
.visit__media::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 5px; background: linear-gradient(to right, var(--orange) 50%, var(--blue) 50%); }
@media (max-width: 880px) { .visit__wrap { grid-template-columns: 1fr; } .visit__media { aspect-ratio: 16 / 10; order: -1; } }
@media (max-width: 520px) { .visit__grid { grid-template-columns: 1fr; gap: 24px; } }

/* ---------- footer ---------- */
.foot { background: color-mix(in oklab, var(--ink) 96%, #000); color: #fff; padding: clamp(48px, 6vw, 80px) var(--gutter) calc(72px + env(safe-area-inset-bottom)); text-align: center; }
.foot__brand { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.foot__line { margin: 0; font-size: 14px; color: color-mix(in oklab, #fff 82%, transparent); }
.foot__line a { color: var(--orange); font-weight: 700; text-decoration: none; }
.foot__social { display: inline-flex; align-items: center; gap: 9px; margin: 18px 0 0; color: color-mix(in oklab, #fff 82%, transparent); text-decoration: none; font-size: 14px; font-weight: 600; }
.foot__social svg { width: 22px; height: 22px; fill: currentColor; transition: color 0.25s var(--ease); }
.foot__social:hover { color: var(--orange); }
.foot__fine { margin: 20px 0 0; font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--steel-d); }
.jtn-credit { margin: 14px 0 0; font-size: 12px; color: var(--steel-d); }
.jtn-credit a { color: var(--steel); text-decoration: none; border-bottom: 1px solid color-mix(in oklab, var(--steel) 50%, transparent); transition: color 0.25s var(--ease), border-color 0.25s var(--ease); }
.jtn-credit a:hover { color: var(--orange); border-color: var(--orange); }

/* ---------- mobile sticky call bar ---------- */
.callbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  display: none; align-items: center; justify-content: center; gap: 10px;
  background: var(--orange); color: #fff; text-decoration: none;
  font-family: var(--display); font-weight: 800; font-size: 17px; letter-spacing: 0.03em; text-transform: uppercase;
  padding: 15px 16px calc(15px + env(safe-area-inset-bottom));
  box-shadow: 0 -8px 24px color-mix(in oklab, var(--ink) 45%, transparent);
}
.callbar svg { width: 19px; height: 19px; fill: none; stroke: #fff; stroke-width: 2; }
@media (max-width: 860px) { .callbar { display: flex; } }

/* ---------- reveals ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(16px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.js [data-reveal-img] { opacity: 0; transform: translateY(12px) scale(0.99); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
[data-delay="1"] { transition-delay: 70ms; } [data-delay="2"] { transition-delay: 140ms; }
[data-delay="3"] { transition-delay: 210ms; } [data-delay="4"] { transition-delay: 280ms; }
.is-in[data-reveal], .is-in[data-reveal-img] { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { [data-reveal], [data-reveal-img] { opacity: 1 !important; transform: none !important; transition: none !important; } }
