/* Brightwork Detailing — workshop black, signal yellow, condensed type. Built around comparing and booking. */
:root {
  --bw-black: #121316;
  --bw-charcoal: #1c1e22;
  --bw-steel: #8b919a;
  --bw-grey: #eef0f2;
  --bw-line: #d8dce1;
  --bw-yellow: #ffc61a;
  --bw-ink: #15171a;
  --bw-muted: #5b616a;
  --bw-cond: "Barlow Condensed", "Arial Narrow", sans-serif;
  --bw-sans: "Barlow", system-ui, sans-serif;
  --bw-header-h: 4rem;
  --gutter: clamp(1rem, 4.5vw, 3.5rem);

  --ui-font: var(--bw-sans);
  --ui-ink: var(--bw-ink);
  --ui-muted: var(--bw-muted);
  --ui-accent: #15171a;
  --ui-accent-ink: #ffffff;
  --ui-tint: #fff6d6;
  --ui-line: #cfd4da;
  --ui-radius: 4px;
}

body {
  background: #fff;
  color: var(--bw-ink);
  font-family: var(--bw-sans);
  font-size: 1.0625rem;
}

h1,
h2,
h3 {
  font-family: var(--bw-cond);
  font-weight: 800;
  text-transform: uppercase;
  line-height: 0.95;
  letter-spacing: 0.005em;
}

h2 {
  font-size: clamp(2.3rem, 6vw, 3.6rem);
}

.btn--primary {
  background: var(--bw-yellow);
  color: var(--bw-black);
}

.btn--primary:hover {
  background: #ffd54d;
}

/* Header ------------------------------------------------------------------ */
.bw-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  height: var(--bw-header-h);
  padding: 0 var(--gutter);
  background: var(--bw-black);
  color: #fff;
}

.bw-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--bw-cond);
  font-size: 1.7rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-decoration: none;
}

.bw-logo__mark {
  width: 1.1rem;
  height: 1.1rem;
  background: var(--bw-yellow);
  transform: skewX(-14deg);
}

.bw-nav {
  display: flex;
  gap: 1.5rem;
  margin-left: auto;
  font-weight: 600;
  font-size: 0.97rem;
}

.bw-nav a,
.bw-header__phone {
  text-decoration: none;
  color: #d6d9de;
}

.bw-nav a:hover,
.bw-header__phone:hover {
  color: #fff;
}

.bw-header__phone {
  font-weight: 700;
}

.bw-header__cta {
  min-height: 2.5rem;
  padding: 0.45em 1em;
}

@media (max-width: 62rem) {
  .bw-nav,
  .bw-header__phone {
    display: none;
  }

  .bw-header__cta {
    margin-left: auto;
    font-size: 0.92rem;
  }
}

/* Hero -------------------------------------------------------------------- */
.bw-hero {
  display: grid;
  background: var(--bw-black);
  color: #fff;
}

.bw-hero__photo {
  order: -1;
}

.bw-hero__photo img {
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.bw-hero__text {
  display: grid;
  align-content: center;
  gap: 1.1rem;
  padding: 1.75rem var(--gutter) 2.5rem;
}

.bw-kicker {
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bw-yellow);
}

.bw-hero h1 {
  font-size: clamp(3rem, 10vw, 6rem);
  max-width: 10ch;
}

.bw-hero__lede {
  max-width: 30rem;
  font-size: 1.15rem;
  color: #c9cdd3;
}

.bw-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.bw-hero .btn--secondary {
  color: #fff;
}

.bw-hero__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.75rem;
  margin-top: 0.75rem;
  padding-top: 1.1rem;
  border-top: 1px solid #33363c;
  font-size: 0.95rem;
  color: #b9bec5;
}

.bw-hero__facts strong {
  color: #fff;
}

@media (min-width: 60rem) {
  .bw-hero {
    grid-template-columns: 1fr 1.1fr;
    min-height: min(78vh, 720px);
  }

  .bw-hero__photo {
    order: 0;
  }

  .bw-hero__photo img {
    aspect-ratio: auto;
  }

  .bw-hero__text {
    padding: 3rem var(--gutter);
  }
}

/* Packages / comparison ---------------------------------------------------- */
.bw-packages {
  padding: clamp(2.5rem, 6vw, 5rem) var(--gutter);
  background: var(--bw-grey);
}

.bw-packages__head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 1.25rem 2rem;
  margin-bottom: 1.75rem;
}

.bw-packages__head p {
  margin-top: 0.6rem;
  color: var(--bw-muted);
}

.bw-segment {
  margin: 0;
  padding: 0;
  border: 0;
}

.bw-segment legend {
  margin-bottom: 0.4rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--bw-muted);
}

.bw-segment__options {
  display: inline-flex;
  padding: 0.25rem;
  border-radius: 6px;
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--bw-line);
}

.bw-segment label {
  position: relative;
  padding: 0.55rem 0.9rem;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  white-space: nowrap;
}

.bw-segment input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.bw-segment label:has(input:checked) {
  background: var(--bw-black);
  color: #fff;
}

.bw-segment label:has(input:focus-visible) {
  outline: 2px solid var(--bw-black);
  outline-offset: 2px;
}

.bw-compare {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 0 0 1px var(--bw-line);
}

.bw-compare th,
.bw-compare td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--bw-line);
  text-align: center;
  vertical-align: middle;
}

.bw-compare th[scope="row"] {
  text-align: left;
  font-weight: 500;
}

.bw-compare thead th {
  position: sticky;
  top: var(--bw-header-h);
  z-index: 2;
  vertical-align: top;
  padding: 1.1rem 0.75rem;
  background: #fff;
  border-bottom: 2px solid var(--bw-black);
}

.bw-compare__corner {
  text-align: left !important;
  vertical-align: bottom !important;
  font-family: var(--bw-cond);
  font-size: 1.2rem;
  text-transform: uppercase;
}

.bw-pkg {
  display: grid;
  gap: 0.25rem;
  justify-items: center;
}

.bw-pkg__name {
  font-family: var(--bw-cond);
  font-size: 1.35rem;
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1;
}

.bw-pkg__short {
  display: none;
}

.bw-pkg__price {
  font-family: var(--bw-cond);
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1;
}

.bw-pkg__summary {
  max-width: 13rem;
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--bw-muted);
}

.bw-pkg__choose {
  margin-top: 0.4rem;
  min-height: 2.3rem;
  padding: 0.35em 0.9em;
  font-size: 0.9rem;
}

.bw-compare__group th {
  padding-top: 1.25rem;
  background: #f7f8f9;
  font-family: var(--bw-cond);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-align: left;
  text-transform: uppercase;
  color: var(--bw-muted);
}

.bw-yes {
  display: inline-grid;
  place-items: center;
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 50%;
  background: var(--bw-yellow);
  color: var(--bw-black);
  font-weight: 800;
  font-size: 0.9rem;
}

.bw-no {
  color: #b3b8bf;
}

.bw-val {
  font-weight: 700;
  font-size: 0.95rem;
}

.bw-compare tbody tr:last-child > * {
  border-bottom: 0;
}

.bw-packages__note {
  margin-top: 1rem;
  font-size: 0.92rem;
  color: var(--bw-muted);
}

/* Phone layout: feature name on its own line, four compact columns under it, header stays pinned. */
@media (max-width: 47.99rem) {
  .bw-compare,
  .bw-compare thead,
  .bw-compare tbody {
    display: block;
  }

  .bw-compare {
    border-radius: 6px;
  }

  .bw-compare tr {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
  }

  .bw-compare thead {
    position: sticky;
    top: var(--bw-header-h);
    z-index: 3;
  }

  .bw-compare thead th {
    position: static;
    padding: 0.7rem 0.25rem 0.6rem;
  }

  .bw-compare__corner {
    display: none;
  }

  .bw-pkg__name,
  .bw-pkg__summary,
  .bw-pkg__choose {
    display: none;
  }

  .bw-pkg__short {
    display: block;
    font-family: var(--bw-cond);
    font-size: 1.05rem;
    font-weight: 700;
    text-transform: uppercase;
    line-height: 1;
  }

  .bw-pkg__price {
    font-size: 1.5rem;
  }

  .bw-compare th[scope="row"] {
    grid-column: 1 / -1;
    padding: 0.7rem 0.75rem 0.1rem;
    border-bottom: 0;
    font-size: 0.95rem;
  }

  .bw-compare td {
    padding: 0.35rem 0.25rem 0.7rem;
  }

  .bw-compare__group th {
    grid-column: 1 / -1;
    padding: 0.9rem 0.75rem 0.5rem;
  }

  .bw-yes {
    width: 1.4rem;
    height: 1.4rem;
    font-size: 0.8rem;
  }

  .bw-val {
    font-size: 0.85rem;
  }
}

/* Add-ons and gallery ------------------------------------------------------- */
.bw-extras {
  display: grid;
  gap: 2.5rem;
  padding: clamp(2.5rem, 6vw, 5rem) var(--gutter);
}

@media (min-width: 60rem) {
  .bw-extras {
    grid-template-columns: 0.8fr 1.2fr;
    align-items: start;
  }
}

.bw-extras__menu > p {
  margin: 0.6rem 0 1.5rem;
  color: var(--bw-muted);
}

.bw-menu li {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--bw-line);
  font-weight: 600;
}

.bw-menu li::after {
  content: "";
  order: 1;
  flex: 1;
  border-bottom: 2px dotted #c3c8ce;
}

.bw-menu__price {
  order: 2;
  font-family: var(--bw-cond);
  font-size: 1.3rem;
  font-weight: 700;
}

.bw-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
}

.bw-gallery figure {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  aspect-ratio: 4 / 3;
}

.bw-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bw-gallery figcaption {
  position: absolute;
  left: 0.5rem;
  bottom: 0.5rem;
  padding: 0.2rem 0.5rem;
  background: var(--bw-black);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
}

/* Shop or mobile ------------------------------------------------------------ */
.bw-where {
  padding: clamp(2.5rem, 6vw, 5rem) var(--gutter);
  background: var(--bw-charcoal);
  color: #fff;
}

.bw-where__grid {
  display: grid;
  gap: 1.25rem;
  margin-top: 1.75rem;
}

@media (min-width: 48rem) {
  .bw-where__grid {
    grid-template-columns: 1fr 1fr;
  }
}

.bw-place {
  display: grid;
  grid-template-columns: 9rem 1fr;
  gap: 1rem;
  align-items: center;
  padding: 0.75rem;
  border: 1px solid #34373d;
  border-radius: 6px;
}

.bw-place img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 4px;
}

.bw-place h3 {
  font-size: 1.6rem;
}

.bw-place p {
  margin-top: 0.4rem;
  color: #c3c7cd;
  font-size: 0.97rem;
}

.bw-place__fee {
  display: inline-block;
  margin-top: 0.6rem;
  font-weight: 700;
  color: var(--bw-yellow);
}

/* Booking --------------------------------------------------------------------- */
.bw-book {
  padding: clamp(2.5rem, 6vw, 5rem) var(--gutter);
  background: var(--bw-grey);
}

.bw-book__head {
  margin-bottom: 1.75rem;
}

.bw-book__head p {
  margin-top: 0.6rem;
  color: var(--bw-muted);
}

.bw-book__layout {
  display: grid;
  gap: 1.5rem;
  align-items: start;
}

@media (min-width: 60rem) {
  .bw-book__layout {
    grid-template-columns: 1fr 21rem;
  }

  .bw-estimate {
    position: sticky;
    top: calc(var(--bw-header-h) + 1.25rem);
  }
}

.bw-form {
  display: grid;
  gap: 1rem;
}

.bw-step {
  display: grid;
  gap: 1rem;
  margin: 0;
  padding: clamp(1rem, 3vw, 1.5rem);
  border: 0;
  border-radius: 6px;
  background: #fff;
}

.bw-step--sub {
  margin-top: -0.5rem;
}

.bw-step__title {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0;
  font-family: var(--bw-cond);
  font-size: 1.5rem;
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1;
}

.bw-step__title span {
  display: inline-grid;
  place-items: center;
  width: 1.8rem;
  height: 1.8rem;
  border-radius: 50%;
  background: var(--bw-black);
  color: var(--bw-yellow);
  font-size: 1.05rem;
}

.bw-step__title--minor {
  font-size: 1.2rem;
}

.bw-step .field {
  gap: 0.6rem;
}

.choice__price {
  margin-left: auto;
  font-family: var(--bw-cond);
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1;
}

.choice__status {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--bw-muted);
}

.bw-date {
  max-width: 16rem;
}

.bw-form__submit {
  justify-self: start;
  min-width: 15rem;
  min-height: 3.2rem;
  font-size: 1.1rem;
}

/* Estimate panel */
.bw-estimate {
  display: grid;
  gap: 0.9rem;
  padding: 1.4rem;
  border-radius: 6px;
  background: var(--bw-black);
  color: #fff;
}

.bw-estimate h3 {
  font-size: 1.5rem;
}

.bw-estimate__lines {
  display: grid;
  gap: 0.55rem;
  font-size: 0.97rem;
}

.bw-estimate__lines div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.bw-estimate__lines dt {
  color: #c3c7cd;
}

.bw-estimate__lines dd {
  margin: 0;
  font-weight: 600;
  text-align: right;
}

.bw-estimate__total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-top: 0.9rem;
  border-top: 1px solid #3a3d43;
}

.bw-estimate__total strong {
  font-family: var(--bw-cond);
  font-size: 2.6rem;
  line-height: 1;
  color: var(--bw-yellow);
}

.bw-estimate__fine {
  font-size: 0.85rem;
  color: #a9aeb5;
}

.bw-estimate__empty {
  color: #c3c7cd;
}

.bw-book .summary {
  border: 0;
}

/* FAQ ------------------------------------------------------------------------- */
.bw-faq {
  padding: clamp(2.5rem, 6vw, 5rem) var(--gutter);
}

.bw-faq__list {
  max-width: 50rem;
  margin-top: 1.5rem;
}

.bw-faq details {
  border-bottom: 1px solid var(--bw-line);
}

.bw-faq summary {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 0;
  font-weight: 700;
  font-size: 1.1rem;
  cursor: pointer;
  list-style: none;
}

.bw-faq summary::-webkit-details-marker {
  display: none;
}

.bw-faq summary::after {
  content: "+";
  font-family: var(--bw-cond);
  font-size: 1.6rem;
  line-height: 1;
}

.bw-faq details[open] summary::after {
  content: "–";
}

.bw-faq details p {
  padding-bottom: 1.2rem;
  color: var(--bw-muted);
  max-width: 42rem;
}

/* Footer ---------------------------------------------------------------------- */
.bw-footer {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
  gap: 1rem 2rem;
  padding: 2.25rem var(--gutter) 2.75rem;
  background: var(--bw-black);
  color: #b9bec5;
  font-size: 0.95rem;
}

.bw-footer .bw-logo {
  color: #fff;
}

.bw-footer a {
  color: #fff;
  font-weight: 700;
}
