/* Carthago Cars — design system
   Light, bright, showroom-clean. Navy and white do the structural work;
   the yellow rear-plate price tag stays as the one signature device. */

@import url('https://fonts.googleapis.com/css2?family=Archivo:wght@500;600;700;800;900&family=Public+Sans:wght@400;500;600&family=IBM+Plex+Mono:wght@400;500&display=swap');

:root {
  --navy:      #1A1F4D;
  --navy-deep: #0E1235;
  --navy-soft: #EEF0F7;
  --page:      #F6F6F9;
  --white:     #FFFFFF;
  --line:      #E2E3EC;
  --line-firm: #C7C9D8;
  --ink:       #1B1D2E;
  --mute:      #64667E;
  --mute-light:#A6A8BD;
  --plate:     #F3CD00;
  --plate-ink: #17181A;
  --action:    #C07810;
  --action-hi: #A96609;
  --danger:    #B4321F;
  --save:      #C0392B;

  --display: 'Archivo', system-ui, sans-serif;
  --body:    'Public Sans', system-ui, sans-serif;
  --mono:    'IBM Plex Mono', ui-monospace, monospace;

  --shell: 1240px;
  --r: 4px;
  --shadow: 0 1px 2px rgba(14,18,53,.06), 0 6px 18px rgba(14,18,53,.07);
  --shadow-lift: 0 4px 10px rgba(14,18,53,.09), 0 16px 36px rgba(14,18,53,.12);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body { margin: 0; background: var(--page); color: var(--ink); font-family: var(--body);
  font-size: 16px; line-height: 1.62; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--navy); }
.shell { width: min(100% - 40px, var(--shell)); margin-inline: auto; }
:focus-visible { outline: 3px solid var(--action-hi); outline-offset: 2px; }

h1, h2, h3, h4 { font-family: var(--display); margin: 0; line-height: 1.08;
  letter-spacing: -0.022em; color: var(--navy-deep); }
h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3vw, 2.15rem); font-weight: 800; }
h3 { font-size: 1.1rem; font-weight: 700; letter-spacing: -0.01em; }

.eyebrow { font-family: var(--mono); font-size: .71rem; letter-spacing: .2em;
  text-transform: uppercase; color: var(--action); margin: 0 0 11px; }
.eyebrow--light { color: var(--plate); }
.lede { font-size: 1.05rem; color: var(--mute); max-width: 64ch; }

/* the signature: a UK rear number plate */
.plate { display: inline-flex; align-items: center; gap: 2px;
  background: var(--plate); color: var(--plate-ink);
  font-family: var(--display); font-weight: 900; font-size: 1.24rem;
  letter-spacing: .03em; padding: 6px 13px 5px; border-radius: var(--r);
  box-shadow: inset 0 0 0 1.5px rgba(0,0,0,.34);
  white-space: nowrap; font-variant-numeric: tabular-nums; }
.plate--lg { font-size: 1.95rem; padding: 9px 18px 8px; }
.plate--sm { font-size: .95rem; padding: 4px 10px 3px; }
.plate .vat { font-size: .6em; font-weight: 700; letter-spacing: .06em; margin-left: 5px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--display); font-weight: 700; font-size: .83rem;
  letter-spacing: .08em; text-transform: uppercase;
  padding: 13px 22px; border-radius: var(--r); border: 1.5px solid transparent;
  cursor: pointer; text-decoration: none; transition: background .15s, color .15s, border-color .15s; }
.btn--primary { background: var(--action); color: #fff; }
.btn--primary:focus-visible { outline-color: var(--navy-deep); }
.btn--primary:hover { background: var(--action-hi); }
.btn--dark { background: var(--navy); color: #fff; }
.btn--dark:hover { background: var(--navy-deep); }
.btn--ghost { background: var(--white); color: var(--navy); border-color: var(--line-firm); }
.btn--ghost:hover { border-color: var(--navy); background: var(--navy-soft); }
.btn--onDark { background: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.4); }
.btn--onDark:hover { background: #fff; color: var(--navy-deep); border-color: #fff; }
.btn--full { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

.masthead { background: var(--white); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 60; }
.masthead__strip { background: var(--navy-deep); color: #fff; font-family: var(--mono);
  font-size: .72rem; letter-spacing: .05em; }
.masthead__strip .shell { display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 7px 0; flex-wrap: wrap; }
.masthead__strip a { color: #fff; text-decoration: none; font-weight: 500; }
.masthead__strip a:hover { color: var(--plate); }
.masthead__bar { display: flex; align-items: center; gap: 26px; height: 74px; }

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; }
.brand__logo { height: 48px; width: auto; display: block; }
.footer__logo { height: 74px; width: auto; margin-bottom: 16px; }
@media (max-width: 600px) { .brand__logo { height: 38px; } }
.brand__name { font-family: var(--display); font-weight: 900; font-size: 1.2rem;
  letter-spacing: .15em; color: var(--navy-deep); }
.brand__tag { font-family: var(--mono); font-size: .58rem; letter-spacing: .18em;
  color: var(--action); text-transform: uppercase; }

.nav { display: flex; gap: 26px; align-items: center; }
.nav a { font-family: var(--display); font-size: .81rem; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase; text-decoration: none;
  color: var(--mute); padding: 26px 0; border-bottom: 3px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--navy-deep); border-bottom-color: var(--plate); }

.masthead__tools { display: flex; align-items: center; gap: 12px; }
.basket-link { display: inline-flex; align-items: center; gap: 7px; color: var(--navy-deep);
  text-decoration: none; font-family: var(--mono); font-size: .78rem; font-weight: 500; }
.basket-count { min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px;
  background: var(--plate); color: var(--plate-ink); font-weight: 700; font-size: .7rem;
  display: grid; place-items: center; }
.menu-toggle { display: none; background: var(--white); border: 1.5px solid var(--line-firm);
  color: var(--navy-deep); border-radius: var(--r); padding: 9px 12px; cursor: pointer; font-size: .85rem; }

@media (max-width: 940px) {
  .menu-toggle { display: block; }
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0; background: var(--white);
    border-bottom: 1px solid var(--line); padding: 4px 20px 16px; box-shadow: var(--shadow); }
  .nav.is-open { display: flex; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); }
}

.hero { background: var(--white); border-bottom: 1px solid var(--line); }
.hero__inner { display: grid; grid-template-columns: 1fr 1.05fr; gap: 52px;
  align-items: center; padding: clamp(40px, 6vw, 76px) 0; }
@media (max-width: 940px) { .hero__inner { grid-template-columns: 1fr; gap: 30px; } }
.hero h1 { max-width: 14ch; }
.hero h1 em { font-style: normal; color: var(--action); }
.hero__lede { color: var(--mute); font-size: 1.06rem; max-width: 46ch; margin: 20px 0 28px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 11px; }
.hero__media { position: relative; border-radius: 6px; overflow: hidden; box-shadow: var(--shadow-lift); }
.hero__media img { width: 100%; aspect-ratio: 7/5; object-fit: contain; background: #fff; }
.hero__tag { position: absolute; left: 16px; bottom: 16px; display: flex; align-items: center; gap: 10px; }
.hero__tagname { background: rgba(255,255,255,.95); border-radius: var(--r); padding: 6px 12px;
  font-family: var(--display); font-weight: 700; font-size: .85rem; color: var(--navy-deep); }

.hero__stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  border-top: 1px solid var(--line); background: var(--white); }
.hero__stats div { padding: 18px 22px; border-right: 1px solid var(--line); }
.hero__stats div:last-child { border-right: 0; }
.hero__stats dt { font-family: var(--mono); font-size: .67rem; letter-spacing: .15em;
  text-transform: uppercase; color: var(--mute); margin-bottom: 5px; }
.hero__stats dd { margin: 0; font-family: var(--display); font-weight: 800;
  font-size: 1.45rem; color: var(--navy-deep); }

.band { padding: clamp(44px, 6.5vw, 78px) 0; }
.band--tint { background: var(--navy-soft); }
.band--dark { background: var(--navy-deep); color: rgba(255,255,255,.82); }
.band--dark h2, .band--dark h3 { color: #fff; }
.band--dark .lede { color: rgba(255,255,255,.74); }
.band--dark .panel { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.14); box-shadow: none; }
.band--dark .panel h3 { color: #fff; }
.band--dark .note { color: rgba(255,255,255,.72); }
.band__head { display: flex; align-items: flex-end; justify-content: space-between;
  gap: 24px; flex-wrap: wrap; margin-bottom: 30px; }

.grid { display: grid; gap: 22px; }
.grid--cars { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.grid--acc  { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }

.card { background: var(--white); border-radius: 6px; overflow: hidden;
  display: flex; flex-direction: column; text-decoration: none; color: inherit;
  border: 1px solid var(--line); box-shadow: var(--shadow);
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); border-color: var(--line-firm); }
.card__media { position: relative; aspect-ratio: 7 / 5; background: #fff; overflow: hidden;
  border-bottom: 1px solid var(--line); }
.card__media img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.card--acc .card__media { aspect-ratio: 7 / 5; background: var(--white); border-bottom: 1px solid var(--line); }
.card--acc .card__media img { object-fit: contain; padding: 12px; }
.card__price { position: absolute; left: 12px; bottom: 12px; z-index: 2; }
.card__body { padding: 15px 17px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card__title { font-family: var(--display); font-weight: 700; font-size: 1.08rem;
  line-height: 1.28; color: var(--navy-deep); }
.card__desc { font-size: .88rem; color: var(--mute); line-height: 1.55;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card__foot { margin-top: auto; padding-top: 10px; }

.spec { display: flex; flex-wrap: wrap; gap: 7px; }
.spec span { display: inline-flex; align-items: baseline; gap: 5px;
  font-family: var(--mono); font-size: .75rem; font-weight: 500; color: var(--navy-deep);
  background: var(--navy-soft); border-radius: 3px; padding: 5px 9px; }
.spec b { font-weight: 500; color: var(--mute); font-size: .93em; }

.tag { display: inline-block; font-family: var(--mono); font-size: .65rem;
  letter-spacing: .12em; text-transform: uppercase; padding: 3px 8px;
  border-radius: 3px; background: var(--navy-soft); color: var(--navy); }
.tag--save { background: #FCEBE8; color: var(--save); }
.tag--review { background: var(--plate); color: var(--plate-ink); font-weight: 600; }
.was { font-family: var(--mono); font-size: .8rem; color: var(--mute); text-decoration: line-through; }

.filters { display: grid; grid-template-columns: repeat(auto-fit, minmax(165px, 1fr));
  gap: 14px; background: var(--white); border: 1px solid var(--line);
  border-radius: 6px; padding: 18px; margin-bottom: 24px; box-shadow: var(--shadow); }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label, .field > span { font-family: var(--mono); font-size: .67rem;
  letter-spacing: .13em; text-transform: uppercase; color: var(--mute); }
input, select, textarea { font-family: var(--body); font-size: .95rem; color: var(--ink);
  padding: 11px 12px; border: 1.5px solid var(--line-firm); border-radius: var(--r);
  background: var(--white); width: 100%; }
input:focus, select:focus, textarea:focus { border-color: var(--action); outline: none; }
textarea { min-height: 130px; resize: vertical; }
.checkbox { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; }
.checkbox input { width: 18px; height: 18px; flex: none; margin-top: 2px; }
.result-count { font-family: var(--mono); font-size: .8rem; color: var(--mute); margin-bottom: 18px; }

.detail { display: grid; grid-template-columns: 1.35fr 1fr; gap: 40px; align-items: start; }
@media (max-width: 940px) { .detail { grid-template-columns: 1fr; gap: 24px; } }
.detail__media { border-radius: 6px; overflow: hidden; border: 1px solid var(--line);
  background: var(--white); box-shadow: var(--shadow); }
.detail__media img { width: 100%; height: auto; display: block; background: var(--white); }
.detail__media--contain img { object-fit: contain; padding: 30px; background: var(--white); }

.panel { background: var(--white); border: 1px solid var(--line); border-radius: 6px;
  padding: 24px; box-shadow: var(--shadow); }
.panel + .panel { margin-top: 18px; }
.panel h3 { margin-bottom: 12px; }

.speclist { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 1px; background: var(--line);
  border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; margin: 18px 0; }
.speclist div { background: var(--white); padding: 13px 15px; }
.speclist dt { font-family: var(--mono); font-size: .67rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--mute); margin-bottom: 4px; }
.speclist dd { margin: 0; font-weight: 600; color: var(--navy-deep); }

.note { font-size: .87rem; color: var(--mute); line-height: 1.6; }
.qty { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.qty input { width: 78px; text-align: center; font-family: var(--mono); }

.paylist { display: flex; flex-direction: column; gap: 10px; margin: 4px 0 0; }
.payway { display: flex; gap: 12px; align-items: flex-start;
  border: 1.5px solid var(--line); border-radius: var(--r); padding: 13px 14px;
  background: var(--white); cursor: pointer; transition: border-color .14s, background .14s; }
.payway:hover { border-color: var(--line-firm); background: #FBFDFE; }
.payway.is-picked { border-color: var(--action); background: #FDF6EB; }
.payway input { width: 18px; height: 18px; flex: none; margin-top: 3px; }
.payway__name { font-family: var(--display); font-weight: 700; font-size: .93rem; color: var(--navy-deep); }
.payway__desc { font-size: .83rem; color: var(--mute); line-height: 1.5; margin-top: 3px; }

.notice { border-radius: var(--r); padding: 13px 16px; font-size: .9rem; margin-bottom: 16px; line-height: 1.55; }
.notice--info  { background: var(--navy-soft); border-left: 3px solid var(--navy); }
.notice--warn  { background: #FDF5D8; border-left: 3px solid #C9A200; }
.notice--error { background: #FBEAE6; border-left: 3px solid var(--danger); }
.notice--ok    { background: #EAF4EE; border-left: 3px solid #2E7D4F; }
.notice:empty  { display: none; }

.table { width: 100%; border-collapse: collapse; font-size: .89rem; background: var(--white); }
.table th, .table td { text-align: left; padding: 11px 13px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { font-family: var(--mono); font-size: .67rem; letter-spacing: .11em;
  text-transform: uppercase; color: var(--mute); background: var(--navy-soft); }
.table tbody tr:hover { background: #F8FBFD; }
.table__scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 6px; background: var(--white); }

.slim { max-width: 470px; margin-inline: auto; }
.stack { display: flex; flex-direction: column; gap: 15px; }

.tabs { display: flex; gap: 4px; flex-wrap: wrap; border-bottom: 1px solid var(--line); margin-bottom: 24px; }
.tabs button { background: none; border: 0; border-bottom: 3px solid transparent; cursor: pointer;
  font-family: var(--display); font-size: .81rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--mute); padding: 12px 15px; }
.tabs button[aria-selected="true"] { color: var(--navy-deep); border-bottom-color: var(--action); }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; margin-bottom: 26px; }
.stat { background: var(--white); border: 1px solid var(--line); border-radius: 6px;
  padding: 16px 18px; box-shadow: var(--shadow); }
.stat dt { font-family: var(--mono); font-size: .65rem; letter-spacing: .13em;
  text-transform: uppercase; color: var(--mute); margin-bottom: 6px; }
.stat dd { margin: 0; font-family: var(--display); font-weight: 800; font-size: 1.65rem;
  line-height: 1; color: var(--navy-deep); }

.assistant-toggle { position: fixed; right: 20px; bottom: 20px; z-index: 80;
  display: inline-flex; align-items: center; gap: 9px; background: var(--navy); color: #fff;
  border: 0; border-radius: 40px; padding: 13px 20px; cursor: pointer;
  font-family: var(--display); font-size: .79rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase; box-shadow: 0 6px 22px rgba(14,18,53,.3); }
.assistant-toggle:hover { background: var(--navy-deep); }
.assistant-toggle .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--plate); }

.assistant { position: fixed; right: 20px; bottom: 20px; z-index: 90;
  width: min(384px, calc(100vw - 40px)); height: min(560px, calc(100vh - 40px));
  background: var(--white); border-radius: 8px; overflow: hidden; display: none;
  flex-direction: column; box-shadow: 0 18px 54px rgba(14,18,53,.28); border: 1px solid var(--line); }
.assistant.is-open { display: flex; }
.assistant__head { background: var(--navy-deep); color: #fff; padding: 14px 17px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.assistant__head strong { font-family: var(--display); font-size: .9rem; letter-spacing: .05em; color: #fff; }
.assistant__head p { margin: 3px 0 0; font-family: var(--mono); font-size: .64rem;
  letter-spacing: .09em; text-transform: uppercase; color: var(--mute-light); }
.assistant__close { background: none; border: 0; color: #fff; font-size: 1.4rem;
  cursor: pointer; line-height: 1; padding: 0 4px; }
.assistant__log { flex: 1; overflow-y: auto; padding: 16px; display: flex;
  flex-direction: column; gap: 11px; background: var(--page); }
.msg { max-width: 87%; padding: 11px 13px; border-radius: 10px; font-size: .89rem;
  line-height: 1.55; white-space: pre-wrap; }
.msg--bot { background: var(--white); border: 1px solid var(--line); border-bottom-left-radius: 2px; }
.msg--me  { background: var(--navy); color: #fff; align-self: flex-end; border-bottom-right-radius: 2px; }
.assistant__chips { display: flex; gap: 7px; flex-wrap: wrap; padding: 0 16px 12px; background: var(--page); }
.chip { background: var(--white); border: 1px solid var(--line-firm); border-radius: 20px;
  padding: 7px 12px; font-size: .78rem; cursor: pointer; color: var(--navy); }
.chip:hover { border-color: var(--action); color: var(--action); }
.assistant__form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); background: var(--white); }
.assistant__form input { flex: 1; }
.assistant__form button { flex: none; padding: 11px 15px; }

.footer { background: var(--navy-deep); color: rgba(255,255,255,.72); padding: 52px 0 24px; font-size: .9rem; }
.footer__grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 34px; margin-bottom: 34px; }
@media (max-width: 820px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
.footer h4 { font-family: var(--display); font-size: .77rem; letter-spacing: .14em;
  text-transform: uppercase; color: #fff; margin: 0 0 13px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.footer a { text-decoration: none; color: rgba(255,255,255,.72); }
.footer a:hover { color: #fff; }
.footer__phone { font-family: var(--display); font-weight: 800; font-size: 1.25rem; color: #fff; }
.footer__legal { border-top: 1px solid rgba(255,255,255,.14); padding-top: 20px;
  display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap;
  font-family: var(--mono); font-size: .69rem; letter-spacing: .05em; }
.signup-inline { display: flex; gap: 8px; margin-top: 12px; }
.signup-inline input { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.22); color: #fff; }
.signup-inline input::placeholder { color: rgba(255,255,255,.5); }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 10px; z-index: 200; background: var(--plate);
  color: var(--plate-ink); padding: 10px 16px; border-radius: var(--r); }
.empty { text-align: center; padding: 52px 20px; color: var(--mute); }
.hidden { display: none !important; }

/* ------------------------------------------------------- opening hours */

.footer__grid--five { grid-template-columns: 1.5fr repeat(4, 1fr); }
@media (max-width: 1060px) { .footer__grid--five { grid-template-columns: 1fr 1fr 1fr; } }
@media (max-width: 720px)  { .footer__grid--five { grid-template-columns: 1fr 1fr; } }

.hours li { display: flex; justify-content: space-between; gap: 14px;
  font-size: .85rem; border-bottom: 1px solid rgba(255,255,255,.09); padding-bottom: 7px; }
.hours li:last-child { border-bottom: 0; }
.hours li span:last-child { color: #fff; font-family: var(--mono); font-size: .78rem; white-space: nowrap; }

.dot-open { display: inline-block; width: 8px; height: 8px; border-radius: 50%;
  background: var(--mute-light); margin-right: 5px; vertical-align: 1px; }
.dot-open.is-open { background: #3FBF6C; box-shadow: 0 0 0 3px rgba(63,191,108,.25); }

.hours-panel { display: grid; gap: 0; }
.hours-panel div { display: flex; justify-content: space-between; gap: 16px;
  padding: 9px 0; border-bottom: 1px solid var(--line); font-size: .9rem; }
.hours-panel div:last-child { border-bottom: 0; }
.hours-panel dt { color: var(--mute); }
.hours-panel dd { margin: 0; font-family: var(--mono); font-size: .84rem; color: var(--navy-deep); }
.hours-panel div.is-today { background: var(--navy-soft); margin-inline: -12px;
  padding-inline: 12px; border-radius: var(--r); }
.hours-panel div.is-today dt { color: var(--navy-deep); font-weight: 600; }

.footer__address { font-style: normal; line-height: 1.6; color: rgba(255,255,255,.72); }
.address-card { display: grid; gap: 4px; font-style: normal; line-height: 1.65; }
.address-card strong { color: var(--navy-deep); }
