/* BikesOnTheWight — presentation theme */

:root {
  --background: #f6f6f5;
  --foreground: #1b1b1b;
  --card: #ffffff;
  --primary: #5375ad;
  --primary-hover: #456394;
  --primary-soft: rgba(83, 117, 173, 0.12);
  --secondary: #f3f3f2;
  --muted: #ebebea;
  --muted-fg: #6b6b6b;
  --border: rgba(0, 0, 0, 0.09);
  --radius: 0.5rem;
  --font-body: "Nunito Sans", system-ui, sans-serif;
  --font-display: "Barlow", system-ui, sans-serif;
  --container: 80rem;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body.botw-theme {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.5;
  color: var(--foreground);
  background: var(--background);
  -webkit-font-smoothing: antialiased;
}

/* Short pages (e.g. empty bikes archive): keep footer at viewport bottom */
body.botw-theme > .botw-header {
  flex-shrink: 0;
}

body.botw-theme > main {
  flex: 1 0 auto;
}

body.botw-theme > .botw-footer {
  flex-shrink: 0;
  margin-top: auto;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.botw-display {
  font-family: var(--font-display);
}

.botw-container {
  width: 100%;
  max-width: var(--container);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

@media (min-width: 640px) {
  .botw-container {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

/* Header */
.botw-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border);
}

.botw-header__inner {
  height: 60px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  column-gap: 1rem;
}

.botw-logo {
  grid-column: 1;
  justify-self: start;
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--foreground);
}

.botw-logo__text {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.botw-logo__flag {
  flex-shrink: 0;
  display: inline-flex;
  line-height: 0;
}

.botw-logo__flag .botw-iow-flag {
  display: block;
  height: 2.25rem;
  width: calc(2.25rem * 5 / 3);
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08);
}

.botw-logo__accent {
  color: var(--primary);
}

.botw-nav {
  grid-column: 2;
  justify-self: center;
  display: none;
  align-items: center;
  gap: 2rem;
}

@media (min-width: 1024px) {
  .botw-nav {
    display: flex;
  }
}

.botw-nav a {
  position: relative;
  display: inline-block;
  padding: 0.4rem 0;
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--foreground);
  opacity: 0.55;
  transition: opacity 0.2s ease, color 0.2s ease;
}

.botw-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--primary);
  border-radius: 1px;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.botw-nav a:hover,
.botw-nav a:focus-visible {
  opacity: 1;
  color: var(--foreground);
}

.botw-nav a:hover::after,
.botw-nav a:focus-visible::after,
.botw-nav a.is-active::after {
  transform: scaleX(1);
}

.botw-nav a.is-active {
  opacity: 1;
  color: var(--foreground);
  font-weight: 700;
}

@media (prefers-reduced-motion: reduce) {
  .botw-nav a::after,
  .botw-header__actions a:not(.botw-btn):not(.botw-header__cta)::after,
  .botw-nav-panel a::after,
  .botw-nav-panel__links a:not(.botw-btn):not(.botw-header__cta)::after,
.botw-nav-panel__auth a:not(.botw-btn):not(.botw-header__cta)::after {
    transition: none;
  }

  .botw-nav a:not(.is-active)::after,
  .botw-header__actions a:not(.botw-btn):not(.botw-header__cta):not(.is-active):not(:hover):not(:focus-visible)::after,
  .botw-nav-panel a:not(.is-active):not(:hover):not(:focus-visible)::after,
  .botw-nav-panel__auth a:not(.botw-btn):not(.botw-header__cta):not(.is-active):not(:hover):not(:focus-visible)::after {
    transform: scaleX(0);
  }

  .botw-nav a.is-active::after,
  .botw-nav a:hover::after,
  .botw-nav a:focus-visible::after,
  .botw-header__actions a:not(.botw-btn):not(.botw-header__cta).is-active::after,
  .botw-header__actions a:not(.botw-btn):not(.botw-header__cta):hover::after,
  .botw-header__actions a:not(.botw-btn):not(.botw-header__cta):focus-visible::after,
  .botw-nav-panel a.is-active::after,
  .botw-nav-panel a:hover::after,
  .botw-nav-panel a:focus-visible::after,
  .botw-nav-panel__auth a:not(.botw-btn):not(.botw-header__cta).is-active::after,
  .botw-nav-panel__auth a:not(.botw-btn):not(.botw-header__cta):hover::after,
  .botw-nav-panel__auth a:not(.botw-btn):not(.botw-header__cta):focus-visible::after {
    transform: scaleX(1);
  }
}

.botw-header__actions {
  grid-column: 2;
  justify-self: end;
  display: none;
  align-items: center;
  gap: 1.25rem;
}

@media (min-width: 1024px) {
  .botw-header__actions {
    display: flex;
  }
}

/* Header text links (My Bikes, Log in, Log out) — same hover underline as main nav */
.botw-header__actions a:not(.botw-btn):not(.botw-header__cta) {
  position: relative;
  display: inline-block;
  padding: 0.4rem 0;
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--foreground);
  opacity: 0.55;
  transition: opacity 0.2s ease, color 0.2s ease;
}

.botw-header__actions a:not(.botw-btn):not(.botw-header__cta)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--primary);
  border-radius: 1px;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.botw-header__actions a:not(.botw-btn):not(.botw-header__cta):hover,
.botw-header__actions a:not(.botw-btn):not(.botw-header__cta):focus-visible {
  opacity: 1;
  color: var(--foreground);
}

.botw-header__actions a:not(.botw-btn):not(.botw-header__cta):hover::after,
.botw-header__actions a:not(.botw-btn):not(.botw-header__cta):focus-visible::after,
.botw-header__actions a:not(.botw-btn):not(.botw-header__cta).is-active::after {
  transform: scaleX(1);
}

.botw-header__actions a:not(.botw-btn):not(.botw-header__cta).is-active {
  opacity: 1;
  color: var(--foreground);
  font-weight: 700;
}

.botw-header__actions .botw-header__cta {
  position: relative;
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.25;
  padding: 0.35rem 0.875rem;
  white-space: nowrap;
}

.botw-header__actions .botw-header__cta.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -5px;
  height: 2px;
  background: var(--primary);
  border-radius: 1px;
  transform: scaleX(1);
}

.botw-header__actions .botw-header__link + .botw-header__login,
.botw-header__actions .botw-header__cta + .botw-header__login,
.botw-header__actions .botw-header__login:not(:only-child) {
  margin-left: 1.25rem;
}

.botw-nav-toggle {
  grid-column: 2;
  justify-self: end;
  display: flex;
  padding: 0.5rem;
  margin-right: -0.5rem;
  background: none;
  border: none;
  cursor: pointer;
  color: rgba(27, 27, 27, 0.6);
}

@media (min-width: 1024px) {
  .botw-nav-toggle {
    display: none;
  }
}

.botw-nav-panel {
  display: none;
  border-top: 1px solid var(--border);
  background: #fff;
  padding: 0.75rem 1rem 1.25rem;
}

.botw-nav-panel.is-open {
  display: block;
}

@media (min-width: 1024px) {
  .botw-nav-panel {
    display: none !important;
  }
}

.botw-nav-panel a {
  position: relative;
  display: block;
  padding: 0.75rem 0.75rem 0.85rem;
  border-radius: var(--radius);
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--foreground);
  opacity: 0.7;
  transition: opacity 0.2s ease, background 0.15s ease;
}

.botw-nav-panel a::after {
  content: "";
  position: absolute;
  left: 0.75rem;
  right: 0.75rem;
  bottom: 0.5rem;
  height: 2px;
  background: var(--primary);
  border-radius: 1px;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.botw-nav-panel a:hover,
.botw-nav-panel a:focus-visible {
  opacity: 1;
  background: var(--secondary);
}

.botw-nav-panel a:hover::after,
.botw-nav-panel a:focus-visible::after,
.botw-nav-panel a.is-active::after {
  transform: scaleX(1);
}

.botw-nav-panel a.is-active {
  opacity: 1;
  font-weight: 700;
  background: var(--primary-soft);
}

.botw-nav-panel__links,
.botw-nav-panel__links,
.botw-nav-panel__auth {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.5rem;
}

.botw-nav-panel__auth {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
}

.botw-nav-panel__links .botw-header__cta,
.botw-nav-panel__auth .botw-header__cta {
  width: 100%;
  font-size: 0.9375rem;
  padding: 0.75rem 1rem;
}

.botw-nav-panel__links a:not(.botw-btn):not(.botw-header__cta),
.botw-nav-panel__auth a:not(.botw-btn):not(.botw-header__cta) {
  position: relative;
  display: block;
  padding: 0.75rem 0.75rem 0.85rem;
  border-radius: var(--radius);
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--foreground);
  opacity: 0.7;
  transition: opacity 0.2s ease, background 0.15s ease;
}

.botw-nav-panel__links a:not(.botw-btn):not(.botw-header__cta)::after,
.botw-nav-panel__auth a:not(.botw-btn):not(.botw-header__cta)::after {
  content: "";
  position: absolute;
  left: 0.75rem;
  right: 0.75rem;
  bottom: 0.5rem;
  height: 2px;
  background: var(--primary);
  border-radius: 1px;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.botw-nav-panel__links a:not(.botw-btn):not(.botw-header__cta):hover,
.botw-nav-panel__links a:not(.botw-btn):not(.botw-header__cta):focus-visible,
.botw-nav-panel__auth a:not(.botw-btn):not(.botw-header__cta):hover,
.botw-nav-panel__auth a:not(.botw-btn):not(.botw-header__cta):focus-visible {
  opacity: 1;
  background: var(--secondary);
}

.botw-nav-panel__links a:not(.botw-btn):not(.botw-header__cta):hover::after,
.botw-nav-panel__links a:not(.botw-btn):not(.botw-header__cta):focus-visible::after,
.botw-nav-panel__links a:not(.botw-btn):not(.botw-header__cta).is-active::after,
.botw-nav-panel__auth a:not(.botw-btn):not(.botw-header__cta):hover::after,
.botw-nav-panel__auth a:not(.botw-btn):not(.botw-header__cta):focus-visible::after,
.botw-nav-panel__auth a:not(.botw-btn):not(.botw-header__cta).is-active::after {
  transform: scaleX(1);
}

.botw-nav-panel__links a:not(.botw-btn):not(.botw-header__cta).is-active,
.botw-nav-panel__auth a:not(.botw-btn):not(.botw-header__cta).is-active {
  opacity: 1;
  font-weight: 700;
  background: var(--primary-soft);
}

/* Mobile / tablet menu (below desktop) — centred nav items */
@media (max-width: 1023.98px) {
  .botw-nav-panel {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .botw-nav-panel__links,
  .botw-nav-panel__auth {
    align-items: center;
  }

  .botw-nav-panel a,
  .botw-nav-panel__links a,
  .botw-nav-panel__auth a {
    width: 100%;
    max-width: 16rem;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
  }

  .botw-nav-panel a::after,
  .botw-nav-panel__links a:not(.botw-btn):not(.botw-header__cta)::after,
  .botw-nav-panel__auth a:not(.botw-btn):not(.botw-header__cta)::after {
    left: 0.75rem;
    right: 0.75rem;
    transform-origin: center center;
  }

  .botw-nav-panel__links .botw-header__cta,
  .botw-nav-panel__auth .botw-header__cta {
    width: 100%;
    max-width: 16rem;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
  }
}

/* Buttons */
.botw-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  font-weight: 700;
  font-size: 1rem;
  padding: 0.875rem 1.75rem;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  text-align: center;
}

.botw-btn--primary {
  background: var(--primary);
  color: #fff;
}

.botw-btn--primary:hover {
  background: var(--primary-hover);
  color: #fff;
}

.botw-btn--outline {
  background: transparent;
  border: 1px solid var(--primary);
  color: var(--primary);
  font-weight: 600;
  font-size: 0.875rem;
  padding: 0.75rem 1.5rem;
}

.botw-btn--outline:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.botw-btn--ghost-white {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  font-weight: 600;
  backdrop-filter: blur(4px);
}

.botw-btn--ghost-white:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.botw-btn--link {
  background: none;
  border: none;
  padding: 0;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary);
  cursor: pointer;
}

.botw-btn--link:hover {
  color: var(--primary-hover);
}

/* Hero — mobile-first; tablet/desktop override below */
.botw-hero {
  position: relative;
  display: flex;
  overflow: hidden;
  background: #374151;
  min-height: 460px;
  height: 72vh;
  max-height: 640px;
  align-items: flex-end;
  padding-bottom: 15.77rem;
}

@media (min-width: 640px) and (max-width: 1023px) {
  .botw-hero {
    align-items: center;
    padding-bottom: 12rem;
  }
}

@media (min-width: 1024px) {
  .botw-hero {
    height: 82vh;
    min-height: 520px;
    max-height: 820px;
    align-items: center;
    padding-bottom: 0;
  }
}

.botw-hero__picture {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}

.botw-hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Coastal hero (iow-coast.jpg): keep cliffs and bay in frame; sky stays clear for copy. */
  object-position: center 42%;
}

@media (min-width: 1024px) {
  .botw-hero__bg {
    object-position: 55% 45%;
  }
}

.botw-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.5), transparent);
}

.botw-hero__overlay2 {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.5), transparent, transparent);
}

.botw-hero__wrap {
  position: relative;
  width: 100%;
}

.botw-hero__content {
  max-width: 540px;
  text-align: left;
}

.botw-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 0.75rem;
  margin-bottom: 1.25rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
}

.botw-hero__badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #34d399;
}

.botw-hero__badge-count {
  color: inherit;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.15em;
  text-decoration-thickness: 1px;
}

.botw-hero__badge-count:hover,
.botw-hero__badge-count:focus-visible {
  color: #fff;
}

.botw-hero__title {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  color: #fff;
}

.botw-hero__subtitle {
  margin: 0 0 2rem;
  font-size: 1rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.75);
  max-width: 420px;
}

@media (min-width: 640px) {
  .botw-hero__subtitle {
    font-size: 1.125rem;
  }
}

.botw-hero__ctas {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

@media (min-width: 640px) {
  .botw-hero__ctas {
    flex-direction: row;
  }
}

/* Trust bar */
.botw-trust {
  background: #fff;
  border-bottom: 1px solid var(--border);
  padding: 1.5rem 0;
}

@media (min-width: 640px) {
  .botw-trust {
    padding: 2rem 0;
  }
}

.botw-trust__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .botw-trust__grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
  }
}

.botw-trust__item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.botw-trust__icon {
  width: 2rem;
  height: 2rem;
  flex-shrink: 0;
  margin-top: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  background: var(--primary-soft);
  color: var(--primary);
}

.botw-trust__title {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.35;
}

.botw-trust__sub {
  margin: 0.125rem 0 0;
  font-size: 0.75rem;
  color: var(--muted-fg);
}

/* Section */
.botw-section {
  padding: 3rem 0;
}

@media (min-width: 640px) {
  .botw-section {
    padding: 4rem 0;
  }
}

.botw-section--muted {
  background: var(--secondary);
}

.botw-section--white {
  background: #fff;
}

.botw-section__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 1.75rem;
}

.botw-section__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
}

@media (min-width: 640px) {
  .botw-section__title {
    font-size: 1.875rem;
  }
}

.botw-section__subtitle {
  margin: 0.25rem 0 0;
  font-size: 0.875rem;
  color: var(--muted-fg);
}

.botw-dealers-enquiry .botw-accent-text,
.botw-dealers-enquiry .botw-btn--link {
  margin-left: 0.25rem;
  color: var(--primary);
  font-weight: 700;
}

.botw-dealers-enquiry .botw-btn--link:hover {
  color: var(--primary-hover);
}

.botw-dealers-enquiry strong.botw-accent-text {
  font-weight: 700;
}

.botw-section__view-all {
  display: none;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary);
}

@media (min-width: 640px) {
  .botw-section__view-all {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
  }
}

.botw-section__view-all:hover {
  color: var(--primary-hover);
}

/* Listing grid */
.botw-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .botw-grid--listings {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .botw-grid--listings {
    grid-template-columns: repeat(3, 1fr);
  }
}

.botw-grid--dealers {
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .botw-grid--dealers {
    grid-template-columns: repeat(3, 1fr);
  }
}

.botw-section__footer-cta {
  margin-top: 2rem;
  text-align: center;
}

.botw-empty {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--muted-fg);
  font-size: 0.875rem;
}

/* Bike card */
.botw-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow 0.2s;
}

.botw-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.botw-card__link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.botw-card__media {
  position: relative;
  aspect-ratio: 4 / 3;
  background: #e5e7eb;
  overflow: hidden;
}

.botw-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.botw-card:hover .botw-card__media img {
  transform: scale(1.04);
}

.botw-card__badge {
  position: absolute;
  top: 0.625rem;
  left: 0.625rem;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius);
}

.botw-card__badge--dealer {
  background: var(--foreground);
  color: var(--card);
}

.botw-card__badge--private {
  background: rgba(255, 255, 255, 0.95);
  color: var(--foreground);
}

.botw-card__badge--featured {
  position: absolute;
  bottom: 0.625rem;
  left: 0.625rem;
  top: auto;
  background: var(--primary);
  color: #fff;
}

.botw-card__body {
  padding: 1rem;
}

.botw-card__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.35;
}

.botw-card__location {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin: 0.25rem 0 0.75rem;
  font-size: 0.75rem;
  color: var(--muted-fg);
}

.botw-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding-bottom: 0.875rem;
  margin-bottom: 0.875rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.75rem;
  color: var(--muted-fg);
}

.botw-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.botw-card__price {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
}

.botw-card__view {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

/* Dealer card */
.botw-dealer-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: box-shadow 0.2s;
}

.botw-dealer-card:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.botw-dealer-card__avatar {
  width: 2.75rem;
  height: 2.75rem;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  background: var(--muted);
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--muted-fg);
}

.botw-dealer-card__name {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 600;
}

.botw-dealer-card__loc {
  margin: 0.125rem 0 0;
  font-size: 0.75rem;
  color: var(--muted-fg);
}

.botw-dealer-card__desc {
  margin: 0.375rem 0 0;
  font-size: 0.75rem;
  color: var(--muted-fg);
}

/* Sell CTA */
.botw-section--sell {
  background: #191919;
  color: #fff;
}

.botw-sell__layout {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  align-items: center;
}

.botw-sell__copy {
  flex: 1;
  width: 100%;
  max-width: 28rem;
  text-align: center;
}

@media (min-width: 768px) {
  .botw-sell__layout {
    flex-direction: row;
    align-items: center;
    gap: 4rem;
    justify-content: flex-start;
    max-width: none;
  }

  .botw-sell__copy {
    text-align: left;
    max-width: none;
  }
}

/* Laptop: tighter copy + panel, centred as a pair (wide desktop unchanged below). */
@media (min-width: 768px) and (max-width: 1279px) {
  .botw-sell__layout {
    justify-content: center;
    gap: 2rem;
    max-width: 46rem;
    margin-left: auto;
    margin-right: auto;
  }

  .botw-sell__copy {
    flex: 0 1 18.5rem;
    max-width: 18.5rem;
  }

  .botw-sell__body {
    max-width: 100%;
  }

  .botw-sell__panel {
    flex: 0 0 16.5rem;
    min-width: 0;
    max-width: 16.5rem;
  }
}

@media (min-width: 1280px) {
  .botw-sell__layout {
    justify-content: flex-start;
    gap: 4rem;
    max-width: none;
    margin-left: 0;
    margin-right: 0;
  }

  .botw-sell__copy {
    flex: 1;
    max-width: none;
  }

  .botw-sell__panel {
    flex: 0 0 auto;
    width: auto;
    min-width: 17.5rem;
    max-width: none;
  }
}

.botw-sell__eyebrow {
  margin: 0 0 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary);
}

.botw-sell__title {
  margin: 0 0 0.75rem;
  font-size: 1.875rem;
  font-weight: 700;
  line-height: 1.2;
  color: #fff;
}

@media (min-width: 640px) {
  .botw-sell__title {
    font-size: 2.25rem;
  }
}

.botw-sell__body {
  margin: 0 auto;
  max-width: 28rem;
  font-size: 1rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.65);
}

@media (min-width: 768px) {
  .botw-sell__body {
    margin-left: 0;
    margin-right: 0;
  }
}

.botw-sell__panel {
  flex-shrink: 0;
  width: 100%;
}

@media (min-width: 768px) {
  .botw-sell__panel {
    width: auto;
    min-width: 17.5rem;
  }
}

.botw-sell__benefits-box {
  margin: 0 0 1rem;
  padding: 1.25rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
}

.botw-sell__benefits {
  list-style: none;
  margin: 0;
  padding: 0;
}

.botw-sell__benefit {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  margin: 0;
  padding: 0.3125rem 0;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.75);
}

.botw-sell__benefit + .botw-sell__benefit {
  margin-top: 0.125rem;
}

.botw-sell__check {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.125rem;
  color: #34d399;
}

.botw-sell__check svg {
  width: 14px;
  height: 14px;
}

@media (max-width: 767px) {
  /* Panel caps width so benefits box and CTA match; list centred inside the box. */
  .botw-sell__panel {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    max-width: 20rem;
    margin-left: auto;
    margin-right: auto;
  }

  .botw-sell__benefits-box {
    width: 100%;
    margin: 0 0 1.5rem;
    box-sizing: border-box;
  }

  .botw-sell__benefits {
    width: fit-content;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
  }

  .botw-sell__benefit {
    justify-content: flex-start;
    text-align: left;
  }

  .botw-sell__cta {
    width: 100%;
    max-width: none;
    box-sizing: border-box;
  }
}

.botw-sell__cta {
  display: block;
  width: 100%;
  text-align: center;
  padding-top: 0.875rem;
  padding-bottom: 0.875rem;
  font-size: 1rem;
}

/* Community */
.botw-community {
  max-width: 42rem;
  margin: 0 auto;
  text-align: center;
}

.botw-community__title {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
}

@media (min-width: 640px) {
  .botw-community__title {
    font-size: 1.875rem;
  }
}

.botw-community__body {
  margin: 0;
  color: var(--muted-fg);
  line-height: 1.65;
}

.botw-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.botw-stats__num {
  margin: 0;
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--primary);
}

.botw-stats__label {
  margin: 0.25rem 0 0;
  font-size: 0.875rem;
  color: var(--muted-fg);
}

/* Homepage — centred copy & headings on mobile and tablet (desktop unchanged) */
@media (max-width: 1023px) {
  body.home #main .botw-hero__content {
    margin-left: auto;
    margin-right: auto;
    max-width: 32rem;
    text-align: center;
  }

  body.home #main .botw-hero__subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  body.home #main .botw-hero__ctas {
    align-items: center;
  }

  body.home #main .botw-hero__ctas .botw-btn {
    width: 100%;
    max-width: 18rem;
  }

  body.home #main .botw-trust__grid {
    justify-items: center;
  }

  body.home #main .botw-trust__item {
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 14rem;
  }

  body.home #main .botw-section__head {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 0.75rem;
  }

  body.home #main .botw-section__head > div {
    width: 100%;
  }

  body.home #main .botw-section__subtitle {
    margin-left: auto;
    margin-right: auto;
    max-width: 28rem;
  }

  body.home #main .botw-section__view-all {
    justify-content: center;
  }

  body.home #main .botw-dealers-enquiry {
    text-align: center;
    max-width: 28rem;
    margin-left: auto;
    margin-right: auto;
  }

  body.home #main .botw-dealer-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  body.home #main .botw-section--sell .botw-sell__copy {
    text-align: center;
  }

  body.home #main .botw-stats > div {
    text-align: center;
  }
}

@media (min-width: 640px) and (max-width: 1023px) {
  body.home #main .botw-hero__ctas {
    flex-direction: row;
    justify-content: center;
  }

  body.home #main .botw-hero__ctas .botw-btn {
    width: auto;
    max-width: none;
  }
}

/* Homepage — centred listing & dealer cards on mobile */
@media (max-width: 767px) {
  body.home #main .botw-grid--listings,
  body.home #main .botw-grid--dealers {
    justify-items: center;
  }

  body.home #main .botw-card,
  body.home #main .botw-dealer-card {
    width: 100%;
    max-width: 22rem;
  }

  body.home #main .botw-card__body {
    text-align: center;
  }

  body.home #main .botw-card__location {
    justify-content: center;
  }

  body.home #main .botw-card__meta {
    justify-content: center;
  }

  body.home #main .botw-card__meta span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
  }

  body.home #main .botw-card__footer {
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
  }

  body.home #main .botw-card__view {
    justify-content: center;
  }

  body.home #main .botw-dealer-card__loc {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
  }
}

/* Footer */
.botw-footer {
  background: #111;
  color: rgba(255, 255, 255, 0.55);
}

.botw-footer a:hover {
  color: #fff;
}

.botw-footer__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  padding: 2.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

@media (min-width: 768px) {
  .botw-footer__grid {
    grid-template-columns: 2fr 1fr 1fr;
    padding: 3rem 0;
  }
}

.botw-footer__brand {
  grid-column: span 2;
}

@media (min-width: 768px) {
  .botw-footer__brand {
    grid-column: span 1;
  }
}

.botw-footer__logo {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 800;
  color: #fff;
}

.botw-footer__tagline {
  margin: 0 0 1rem;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.4);
  line-height: 1.5;
}

.botw-footer__heading {
  margin: 0 0 0.75rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #fff;
}

.botw-footer__links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.botw-footer__links li {
  margin-bottom: 0.5rem;
}

.botw-footer__links a {
  font-size: 0.875rem;
}

.botw-footer__bar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1.5rem 0;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.3);
}

@media (min-width: 1024px) {
  .botw-footer__bar {
    flex-direction: row;
    justify-content: space-between;
  }
}

.botw-footer__bar-links {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Copyright + legal links centred on phone and tablet. */
@media (max-width: 1023px) {
  .botw-footer__bar {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
  }

  .botw-footer__bar-links {
    justify-content: center;
    flex-wrap: wrap;
  }
}

@media (max-width: 767px) {
  .botw-footer__grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
    text-align: center;
    justify-items: center;
  }

  .botw-footer__brand {
    grid-column: auto;
    max-width: 20rem;
  }

  .botw-footer__tagline {
    margin-left: auto;
    margin-right: auto;
  }

  .botw-footer__links {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
}

/* Inner page */
.botw-page-hero {
  background: #fff;
  border-bottom: 1px solid var(--border);
  padding: 2rem 0;
}

@media (min-width: 640px) {
  .botw-page-hero {
    padding: 2.5rem 0;
  }
}

.botw-page-hero__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
}

@media (min-width: 640px) {
  .botw-page-hero__title {
    font-size: 2rem;
  }
}

.botw-page-hero__lead {
  margin: 0.5rem 0 0;
  color: var(--muted-fg);
  font-size: 1rem;
  max-width: 40rem;
}

.botw-page-content {
  padding: 2rem 0 3rem;
}

.botw-page-content__inner {
  max-width: 48rem;
}

.botw-page-hero__lead--meta {
  font-size: 0.95rem;
  color: var(--botw-muted, #64748b);
  margin-top: 0.5rem;
}

.botw-page-content__inner--wide {
  max-width: 56rem;
}

.botw-prose--policy h2 {
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  font-size: 1.25rem;
}

.botw-prose--policy h2:first-child {
  margin-top: 0;
}

.botw-prose {
  margin: 0 0 1rem;
  color: var(--muted-fg);
  line-height: 1.65;
}

/* Body copy links — plain anchors only; .botw-btn--link keeps brand accent */
.botw-prose a:not(.botw-btn--link),
.botw-community__body a:not(.botw-btn--link),
.botw-page-editor a:not(.botw-btn--link) {
  color: var(--foreground);
  font-weight: 600;
}

.botw-prose a:not(.botw-btn--link):hover,
.botw-community__body a:not(.botw-btn--link):hover,
.botw-page-editor a:not(.botw-btn--link):hover {
  color: var(--muted-fg);
}

.botw-page-image {
  border-radius: var(--radius);
  margin-bottom: 2rem;
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.botw-icon {
  display: inline-block;
  vertical-align: -0.125em;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Icons without explicit width/height attributes fall back to 1em. */
svg.botw-icon:not([width]) {
  width: 1em;
  height: 1em;
}

.botw-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
