/* Auto Drive Team — Sibiu
   Dark and light themes, green + yellow accents. Mono for accents, sans for text. */

:root {
  --a: #0C0C0D;
  --b: #16171A;
  --panel: #1C1E21;
  --ink: #ECEDEB;
  --soft: #9A9D9F;
  --green: #6FCB92;
  --yellow: #E9C449;
  --rule: rgba(236, 237, 235, .13);
  --hover: rgba(236, 237, 235, .05);
  --tint: rgba(111, 203, 146, .12);
  --tint-strong: rgba(111, 203, 146, .18);
  --veil: 12 12 13;
  --btn-ink: #0C0C0D;

  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --bandpad: clamp(3.4rem, 7.5vw, 6rem);
  --gutter: clamp(1.15rem, 5vw, 3.5rem);
}

[data-theme="light"] {
  --a: #F8F8F6;
  --b: #EFEFEB;
  --panel: #FFFFFF;
  --ink: #16181A;
  --soft: #5C6063;
  --green: #1C7A4F;
  --yellow: #8A6A10;
  --rule: rgba(22, 24, 26, .14);
  --hover: rgba(22, 24, 26, .04);
  --tint: rgba(28, 122, 79, .1);
  --tint-strong: rgba(28, 122, 79, .16);
  --veil: 248 248 246;
  --btn-ink: #FFFFFF;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--a);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---------- bands ---------- */

.band { padding: var(--bandpad) var(--gutter); scroll-margin-top: 4.2rem; }
.band--a { background: var(--a); }
.band--b { background: var(--b); }

.wrap { max-width: 62rem; margin-inline: auto; }
.body { max-width: 40rem; margin-inline: auto; }

/* ---------- section headers ---------- */

.head { text-align: center; margin-bottom: clamp(2rem, 5vw, 3rem); }

.head h2 {
  margin: 0;
  font-family: var(--mono);
  font-size: clamp(1.15rem, 2.9vw, 1.7rem);
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--green);
}

.head__sub {
  margin: .8rem auto 0;
  max-width: 46ch;
  color: var(--soft);
  font-size: 1rem;
}

.prose { margin: 0; max-width: 46ch; color: var(--soft); }

.note {
  margin: 1.3rem 0 0;
  font-family: var(--mono);
  font-size: .76rem;
  letter-spacing: .04em;
  color: var(--soft);
}

/* ---------- landing ---------- */

.hero {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100svh;
  padding: 5rem var(--gutter);
  text-align: center;
}

.hero__road {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.hero__road line { stroke: var(--ink); fill: none; vector-effect: non-scaling-stroke; }
.rd-edges line { stroke-width: 1.6; opacity: .38; }
.rd-lanes line { opacity: .34; }
.rd-lanes .d1 { stroke-width: 3.4; stroke-dasharray: 46 34; }
.rd-lanes .d2 { stroke-width: 2.4; stroke-dasharray: 26 20; }
.rd-lanes .d3 { stroke-width: 1.6; stroke-dasharray: 14 12; }

/* keeps the landing text readable where it sits on the road */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 58% 38% at 50% 46%,
    rgb(var(--veil) / .86) 0%, rgb(var(--veil) / .5) 55%, rgb(var(--veil) / 0) 100%);
  pointer-events: none;
}

/* the warm haze reads softer on white */
[data-theme="light"] .hero__road > rect { opacity: .45; }

.hero__in { position: relative; z-index: 1; }

.hero__name {
  margin: 0;
  font-family: var(--mono);
  font-size: clamp(1.85rem, 6vw, 4.1rem);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.045em;
}

.hero__cat {
  margin: 1.4rem 0 0;
  font-family: var(--mono);
  font-size: clamp(.78rem, 1.5vw, .95rem);
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--green);
}

.hero__place {
  margin: .5rem 0 0;
  font-family: var(--mono);
  font-size: clamp(.72rem, 1.4vw, .85rem);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--soft);
}

.hero__phone {
  margin: 2.2rem 0 0;
  font-family: var(--mono);
  font-size: clamp(1.05rem, 2.4vw, 1.5rem);
}
.hero__phone a {
  text-decoration: none;
  border-bottom: 2px solid var(--yellow);
  padding-bottom: .2rem;
  letter-spacing: .02em;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}
.hero__name, .hero__cat, .hero__place, .hero__phone {
  animation: rise .85s cubic-bezier(.2, .7, .2, 1) both;
}
.hero__cat { animation-delay: .1s; }
.hero__place { animation-delay: .18s; }
.hero__phone { animation-delay: .26s; }

@media (prefers-reduced-motion: reduce) {
  .hero__name, .hero__cat, .hero__place, .hero__phone { animation: none; }
}

@media (max-width: 30rem) {
  .hero__cat { font-size: .7rem; letter-spacing: .12em; }
  .hero__place { font-size: .66rem; letter-spacing: .1em; }
}

/* ---------- price / next group cards ---------- */

.cards { display: grid; gap: 1rem; }
@media (min-width: 44rem) {
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.2rem; }
}

.card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--panel);
  border: 1px solid var(--rule);
  border-radius: 3px;
  padding: clamp(1.4rem, 4vw, 2rem) 1.2rem;
  text-align: center;
}
.card__label {
  margin: 0;
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--soft);
}
.card__val {
  margin: .9rem 0 0;
  font-family: var(--mono);
  font-size: clamp(1.55rem, 4.2vw, 2.05rem);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1.1;
}
.card__note {
  margin: .7rem 0 0;
  font-family: var(--mono);
  font-size: .74rem;
  letter-spacing: .08em;
  color: var(--soft);
}

/* ---------- label / value rows ---------- */

.grid { margin: 1.8rem 0 0; border-top: 1px solid var(--rule); }

.grid > div {
  display: grid;
  grid-template-columns: 10.5rem minmax(0, 1fr);
  gap: 1rem;
  padding: .85rem 0;
  border-bottom: 1px solid var(--rule);
}

dt {
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--soft);
  padding-top: .3rem;
}
dd { margin: 0; }
dd a { text-decoration: none; border-bottom: 1px solid var(--rule); }
dd a:hover { border-bottom-color: var(--yellow); }

@media (max-width: 30rem) {
  .grid > div { grid-template-columns: minmax(0, 1fr); gap: .1rem; }
}

/* ---------- stages, as an accordion ---------- */

.stage { border-top: 1px solid var(--rule); }
.stage:last-of-type { border-bottom: 1px solid var(--rule); }

/* an open stage becomes a panel, so it is clear where it ends */
.stage[open] { background: var(--panel); border-radius: 3px; }

/* the row of an open stage is tinted, so it reads as its header */
.stage[open] > summary {
  background: var(--tint);
  border-bottom: 1px solid var(--rule);
  border-radius: 3px 3px 0 0;
}
.stage[open] > summary .stage__name { color: var(--green); }
.stage[open] > summary:hover { background: var(--tint-strong); }

.stage summary {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.15rem 1.1rem;
  cursor: pointer;
  list-style: none;
}
.stage summary::-webkit-details-marker { display: none; }
.stage summary:hover { background: var(--hover); }
.stage summary:hover .sign { border-color: var(--green); }

.stage__no {
  font-family: var(--mono);
  font-size: .95rem;
  color: var(--yellow);
  flex: none;
}
.stage__name {
  font-family: var(--mono);
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-right: auto;
}

.sign {
  position: relative;
  width: 1.5rem;
  height: 1.5rem;
  flex: none;
  border: 1px solid var(--rule);
  border-radius: 2px;
  transition: border-color .2s ease;
}
.sign::before,
.sign::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: .65rem;
  height: 1px;
  background: var(--green);
  transform: translate(-50%, -50%);
  transition: transform .25s ease, opacity .25s ease;
}
.sign::after { transform: translate(-50%, -50%) rotate(90deg); }
.stage[open] .sign::after { opacity: 0; transform: translate(-50%, -50%) rotate(0deg); }

.stage__body { padding: .4rem 1.1rem 1.8rem; }
.stage__body .grid { margin-top: 1.4rem; }
.stage__body .grid > div:last-child { border-bottom: 0; }

/* ---------- checklist ---------- */

.checks { margin: 1.4rem 0 0; padding: 0; list-style: none; border-top: 1px solid var(--rule); }
.checks li {
  display: grid;
  grid-template-columns: 1.7rem minmax(0, 1fr);
  padding: .8rem 0;
  border-bottom: 1px solid var(--rule);
  font-size: .98rem;
}
.checks li:last-child { border-bottom: 0; }
.checks li::before {
  content: "✓";
  font-family: var(--mono);
  font-size: .85rem;
  color: var(--yellow);
  padding-top: .15rem;
}

/* ---------- buttons ---------- */

.actions { display: flex; justify-content: center; margin: 2rem 0 0; }

.btn {
  display: inline-block;
  padding: .85rem 1.5rem;
  background: var(--green);
  color: var(--btn-ink);
  font-family: var(--mono);
  font-weight: 500;
  font-size: .95rem;
  letter-spacing: -0.01em;
  text-decoration: none;
  border-radius: 2px;
  transition: opacity .2s ease;
}
.btn:hover { opacity: .88; }

/* ---------- bar ---------- */

.bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 6;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background .3s ease, border-color .3s ease;
}
.bar.is-on {
  background: rgb(var(--veil) / .93);
  backdrop-filter: blur(10px);
  border-bottom-color: var(--rule);
}

.bar__in {
  display: flex;
  align-items: center;
  gap: .9rem;
  min-height: 3.6rem;
  padding: 0 var(--gutter);
}

.bar__section {
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--green);
  margin-right: auto;
}

.burger, .theme {
  width: 2.3rem;
  height: 2.3rem;
  flex: none;
  display: grid;
  place-content: center;
  gap: 4px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--rule);
  border-radius: 2px;
  color: var(--ink);
  cursor: pointer;
  transition: border-color .2s ease;
}
.burger:hover, .theme:hover { border-color: var(--green); }
.burger span { display: block; width: 15px; height: 1px; background: currentColor; }

.theme svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; }
.theme__moon { display: none; }
[data-theme="light"] .theme__sun { display: none; }
[data-theme="light"] .theme__moon { display: block; }

.menu { border-top: 1px solid var(--rule); background: var(--panel); padding: .3rem var(--gutter) .8rem; }
.menu .wrap { display: grid; }
.menu a {
  font-family: var(--mono);
  font-size: .88rem;
  text-decoration: none;
  padding: .75rem 0;
  border-bottom: 1px solid var(--rule);
  color: var(--soft);
  transition: color .2s ease;
}
.menu a:last-child { border-bottom: 0; }
.menu a:hover { color: var(--ink); }

@media (max-width: 26rem) {
  .bar__section { font-size: .64rem; letter-spacing: .1em; }
}

/* ---------- voices ---------- */

.voices__grid { display: grid; gap: 2rem; }
@media (min-width: 56rem) {
  .voices__grid { grid-template-columns: repeat(3, 1fr); gap: 3rem; }
}

blockquote { margin: 0; }
blockquote p { margin: 0; font-size: 1.05rem; line-height: 1.6; }
cite {
  display: block;
  margin-top: .8rem;
  font-family: var(--mono);
  font-style: normal;
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--soft);
}

/* ---------- footer ---------- */

.foot {
  padding-top: clamp(2.4rem, 6vw, 3.4rem);
  padding-bottom: clamp(2.4rem, 6vw, 3.4rem);
  border-top: 1px solid var(--rule);
  text-align: center;
}
.foot p { margin: 0; font-size: .9rem; color: var(--soft); }
.foot__legal { margin-top: .4rem; font-family: var(--mono); font-size: .74rem; opacity: .85; }
