/* ==========================================================================
   Bikeface — base shell
   Loaded on every route. Tokens come from theme.json; this file never
   repeats a value that theme.json already declares.
   Typography and metrics measured from https://bikeface.com/ 2026-09-06 —
   see findings/2026-09-06-font-census-and-design-tokens.md
   ========================================================================== */

/* --- Self-hosted faces. Three families, five faces.
       Anton for display, Barlow for body, Barlow Condensed for labels —
       Barlow and Barlow Condensed are one superfamily, so they share metrics.
       Montserrat (the Elementor kit's body font) was dropped deliberately;
       see the punch list. The source also declared 27 Roboto / Roboto Slab
       faces that never loaded, and fetched Anton and both Barlows
       cross-origin from fonts.gstatic.com. --- */

@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/montserrat-var.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Anton';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/anton-400.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}



@font-face {
  font-family: 'Barlow Condensed';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/barlow-condensed-600.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Barlow Condensed';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/barlow-condensed-700.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}


/* --- Component token aliases -------------------------------------------
   The site's hand-built components (contact, community, footer) were authored
   against --bf-* names in Fluent Snippets. Rather than find/replace thousands
   of bytes of otherwise-good CSS, those names are declared once here as
   references to the theme.json presets. No value is repeated: theme.json stays
   the single source, and the client's existing CSS idiom keeps working.
   -------------------------------------------------------------------- */

:root {
  --bf-white:      var(--wp--preset--color--white);
  --bf-black:      var(--wp--preset--color--black);
  --bf-red:        var(--wp--preset--color--red);
  --bf-red-dark:   var(--wp--preset--color--red-dark);
  --bf-gray-50:    var(--wp--preset--color--gray-50);
  --bf-gray-100:   var(--wp--preset--color--gray-100);
  --bf-gray-200:   var(--wp--preset--color--gray-200);
  --bf-gray-400:   var(--wp--preset--color--gray-400);
  --bf-gray-700:   var(--wp--preset--color--gray-700);
  --bf-font-display:   var(--wp--preset--font-family--display);
  --bf-font-body:      var(--wp--preset--font-family--body);
  --bf-font-condensed: var(--wp--preset--font-family--condensed);
}

/* --- Reset --- */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--wp--preset--color--white);
  color: var(--wp--preset--color--text);
  font-family: var(--wp--preset--font-family--body);
  font-size: var(--wp--preset--font-size--base);
  font-weight: 400;
  line-height: 2;
}

img, svg, video, iframe { display: block; max-width: 100%; }
img, svg, video { height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }

/* --- Headings: Anton, uppercase, tight --- */

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  color: var(--wp--preset--color--black);
  font-family: var(--wp--preset--font-family--display);
  font-weight: 400;
  line-height: var(--wp--custom--heading--line-height);
  letter-spacing: var(--wp--custom--heading--letter-spacing);
  text-transform: var(--wp--custom--heading--text-transform);
}

h1 { font-size: clamp(2.75rem, 1.6rem + 4.6vw, var(--wp--preset--font-size--xxl)); }
h2 { font-size: clamp(2rem, 1.3rem + 2.8vw, var(--wp--preset--font-size--xl)); }
h3 { font-size: clamp(1.375rem, 1.1rem + 1.1vw, var(--wp--preset--font-size--lg)); }
h4 { font-size: 1.375rem; }
h5, h6 { font-size: 1.125rem; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a { color: inherit; text-underline-offset: .18em; }
a:hover { color: var(--wp--preset--color--red); }

:focus-visible {
  outline: var(--wp--custom--focus--width) solid var(--wp--preset--color--red);
  outline-offset: var(--wp--custom--focus--offset);
}

/* --- Skip link --- */

.skip-link {
  position: fixed;
  inset: var(--wp--preset--spacing--xs) auto auto var(--wp--preset--spacing--xs);
  z-index: 1000;
  padding: var(--wp--preset--spacing--sm);
  background: var(--wp--preset--color--black);
  color: var(--wp--preset--color--white);
  transform: translateY(-150%);
}
.skip-link:focus { transform: none; }

/* --- Layout: 1280px boxed container, 24px gutter, 80px section rhythm --- */

/* Shells run edge to edge; the INNER wrapper does the boxing.
   The source got that constraint from Elementor's boxed containers, which do
   not exist any more — so a hero or a coloured band was being capped at
   1280px and floated in white margins instead of bleeding full width. */

.site-header,
.site-main,
.site-footer { width: 100%; }

.site-header__inner,
.bf-wrap,
.bf-section__inner,
.services-inner,
.rentals-inner,
.entry-content,
.entry-header {
  width: min(
    calc(100% - (2 * var(--wp--custom--layout--gutter))),
    var(--wp--style--global--wide-size)
  );
  margin-inline: auto;
}


/* The source boxed most sections at Elementor's 1140px default but widened
   three to 1280: the hero, the hero meta strip and the category grid.
   Measured on production 2026-09-08. */
.hero__content,
.hero-meta-inner,
.categories-inner {
  width: min(
    calc(100% - (2 * var(--wp--custom--layout--gutter))),
    var(--wp--custom--layout--wide)
  );
  margin-inline: auto;
}

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

.site-announcement {
  margin: 0;
  padding: 10px var(--wp--custom--layout--gutter);   /* 55px band, as the source */
  background: var(--wp--preset--color--red);
  color: var(--wp--preset--color--white);
  font-family: var(--wp--preset--font-family--body);
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 2;
  text-align: center;
  text-wrap: balance;
}

/* --- Header --- */

.site-header { background: var(--wp--preset--color--header-bg); }

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--wp--preset--spacing--md);
  padding-block: var(--wp--preset--spacing--sm);
}

.site-branding { display: flex; align-items: center; }
.site-branding .custom-logo-link { display: block; }
.site-branding img { width: auto; max-width: min(302px, 60vw); height: auto; }
.site-brand { color: inherit; font-weight: 700; text-decoration: none; }

.site-main { min-height: 55vh; }

/* Fallback routes (page.php) still need the section rhythm main gave up. */
.site-main > article { padding-block: var(--wp--preset--spacing--section); }
.entry-header { margin-bottom: var(--wp--preset--spacing--md); }
.site-footer { padding-block: 0; }

/* A full-bleed band escapes the boxed container without horizontal overflow. */
.bf-bleed {
  width: 100vw;
  margin-inline: calc(50% - 50vw);
}

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

/* ==========================================================================
   Footer — measured from the source 2026-09-07.
   Bands: visit/map grid, newsletter #d42128, partners #000, colophon #1d1d1d.
   ========================================================================== */

.site-footer { width: 100%; padding-block: 0; background: var(--wp--preset--color--black); }

.screen-reader-text {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* --- Visit the shop + map --- */

.visit { display: grid; grid-template-columns: 1fr 1fr; }

.visit__info {
  background: var(--wp--preset--color--black);
  color: var(--wp--preset--color--white);
  padding: clamp(2.5rem, 1.5rem + 3vw, 4.5rem);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.75rem;
}

.visit__title { margin: 0; font-size: clamp(2.25rem, 1.4rem + 3vw, 3.75rem); color: var(--wp--preset--color--white); }
.visit__title-accent { color: var(--wp--preset--color--red); }

.visit__blocks { display: flex; flex-direction: column; gap: 1.5rem; width: 100%; }

.visit__label {
  margin: 0 0 .4rem;
  color: var(--wp--preset--color--red);
  font-family: var(--wp--preset--font-family--condensed);
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: .14em;
  line-height: 1;
  text-transform: uppercase;
}

.visit__info p { margin: 0; line-height: 1.55; }
.visit__info a { color: inherit; text-decoration: none; }
.visit__info a:hover { color: var(--wp--preset--color--red); }
.visit__note { color: rgb(255 255 255 / .6); font-size: .875rem; }

.visit__hours {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: .55rem 1.5rem;
  margin: 0;
}
.visit__hours dt { color: rgb(255 255 255 / .85); }
.visit__hours dd {
  margin: 0;
  font-family: var(--wp--preset--font-family--condensed);
  font-weight: 700;
  letter-spacing: .04em;
  text-align: right;
}
.visit__hours dd.is-closed { color: var(--wp--preset--color--red); }

.visit__map { background: var(--wp--preset--color--gray-100); }
/* The map fills its grid cell — on the Elementor site it was locked at 480px
   inside a 731px cell, leaving a grey band. */
.visit__map iframe { width: 100%; height: 100%; min-height: 480px; border: 0; display: block; }

/* --- Buttons --- */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 28px;
  border: 0;
  font-family: var(--wp--preset--font-family--condensed);
  font-size: .9375rem;
  font-weight: 700;
  letter-spacing: .12em;
  line-height: 1;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
}
.button--red { background: var(--wp--preset--color--red); color: var(--wp--preset--color--white); }
.button--red:hover { background: var(--wp--preset--color--red-dark); color: var(--wp--preset--color--white); }

/* --- Newsletter ---
   Ported from the source's .elementor-element.newsletter rules: the diagonal
   stripe wash is a ::before overlay (the band itself has no background-image),
   the inner is 720px, and the field/button styling was written against
   Elementor's form markup — retargeted here at Fluent Forms. */

.newsletter {
  position: relative;
  overflow: hidden;
  background: var(--wp--preset--color--red);
  color: var(--wp--preset--color--white);
  padding: 64px 24px;
  text-align: center;
}

.newsletter::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: repeating-linear-gradient(
    -45deg,
    transparent 0,
    transparent 30px,
    rgba(255, 255, 255, .05) 30px,
    rgba(255, 255, 255, .05) 32px
  );
}

.newsletter .bf-wrap { position: relative; z-index: 2; max-width: 720px; width: 100%; padding-block: 60px; }

.newsletter__title {
  color: var(--wp--preset--color--white);
  font-size: clamp(2rem, 1.3rem + 2.2vw, 3rem);
  line-height: 1;
  margin-bottom: 12px;
}

.newsletter__blurb {
  margin: 0 auto 24px;
  max-width: 46ch;
  font-size: 1rem;
  color: rgba(255, 255, 255, .92);
}

/* Fluent Forms, laid out as the source did: field and button on one row. */
.newsletter .fluentform { position: relative; z-index: 2; }
.newsletter .fluentform form,
.newsletter .frm-fluent-form { margin: 0; }

/* Fluent Forms nests the field and the submit in two sibling .ff-el-group
   elements inside a fieldset, so the fieldset is the row — not each group. */
.newsletter fieldset {
  display: flex;
  justify-content: center;
  /* The source bottom-aligns the 47px button against the 54px field; with
     flex-start the button floated above it. */
  align-items: flex-end;
  gap: 0;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
  border: 0;
}
.newsletter .ff-el-group { margin: 0; }
.newsletter fieldset > .ff-el-group:not(.ff_submit_btn_wrapper) { flex: 0 1 487px; max-width: 487px; }
.newsletter .ff_submit_btn_wrapper { flex: 0 0 223px; display: flex; justify-content: center; }
.newsletter .ff-el-input--content { margin: 0; }

/* The source hides the field label — the placeholder carries it. */
.newsletter .ff-el-input--label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.newsletter .fluentform .ff-el-group .ff-el-form-control,
.newsletter input[type="email"],
.newsletter input[type="text"] {
  width: 100%;
  min-height: 0;
  border: 2px solid var(--wp--preset--color--white);
  background: rgba(255, 255, 255, .1);
  color: var(--wp--preset--color--white);
  padding: 14px 18px;
  border-radius: 0;
  font-family: var(--wp--preset--font-family--body);
  font-size: 1rem;
  line-height: 1.375;
}
.newsletter .ff-el-form-control::placeholder,
.newsletter input[type="email"]::placeholder { color: rgba(255, 255, 255, .7); }
.newsletter .fluentform .ff-el-group .ff-el-form-control:focus,
.newsletter input[type="email"]:focus {
  outline: none;
  border-color: var(--wp--preset--color--white);
  background: rgba(255, 255, 255, .15);
  box-shadow: none;
}

.newsletter button,
.newsletter .fluentform .ff-btn.ff-btn-submit {
  background: var(--wp--preset--color--black) !important;
  color: var(--wp--preset--color--white) !important;
  border: 2px solid var(--wp--preset--color--black);
  padding: 14px 28px;   /* 118x47, as the source */
  font-family: var(--wp--preset--font-family--condensed);
  font-weight: 700;
  font-size: .9375rem;
  line-height: 1;          /* 17+16+17+4 = 54px, matching the source */
  letter-spacing: .15em;
  text-transform: uppercase;
  border-radius: 0;
  cursor: pointer;
}
.newsletter button:hover,
.newsletter .fluentform .ff-btn.ff-btn-submit:hover { background: var(--wp--preset--color--gray-700); border-color: var(--wp--preset--color--gray-700); }

.newsletter .ff-el-form-check,
.newsletter .ff-el-is-error .text-danger { color: var(--wp--preset--color--white); }

/* --- Partner logos --- */

.partners { background: #000; padding-block: 60px; }
.partners__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 20px;
}
.partners__logo { width: 200px; height: auto; max-height: 200px; object-fit: contain; }

/* --- Colophon --- */

.colophon { background: #1d1d1d; color: rgb(255 255 255 / .7); padding-block: 50px; }
.colophon__row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 10px;
}
.colophon__copy { order: 2; margin: 0; padding-top: 15px; font-size: .875rem; text-align: center; }
.colophon__social { order: 1; display: flex; gap: 1rem; margin: 0; padding: 0; list-style: none; }
.colophon__social a { display: block; color: inherit; }
.colophon__social svg { width: 1.5rem; height: 1.5rem; }
.colophon__social a:hover { color: var(--wp--preset--color--red); }

@media (max-width: 48rem) {
  .visit { grid-template-columns: 1fr; }
  .visit__map iframe { min-height: 320px; }
}

/* ==========================================================================
   Interior page hero — shared by trade-in, services, rentals, news.
   Measured from source object 1035: 500px min-height, background photo with a
   flat 25% black overlay, centred white type. The photo ships as an <img>
   positioned to behave like a background, per the house image rule.
   ========================================================================== */

/* The shell only. The source gives each page hero its own height and its own
   heading size — trade-in runs 47.5, rentals 40 — so the
   geometry lives in the route stylesheets, not here. */
.bf-page-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--wp--preset--color--black);
  text-align: center;
}

.bf-page-hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
  z-index: 0;
}

.bf-page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(0, 0, 0, .25);
}

.bf-page-hero__content { position: relative; z-index: 2; }

.bf-page-hero h1 { color: var(--wp--preset--color--white); margin: 0; }

.bf-page-hero__sub { margin: 0; color: var(--wp--preset--color--white); }

/* ============================================================
   SECTIONS — the shared rhythm every inner-page route relies on.
   These were missing: templates emitted .bf-section and
   .bf-section--gray but nothing styled them, so sections butted
   straight into each other with no padding and no grey band.
   ============================================================ */

.bf-section { padding-block: var(--wp--custom--layout--section); }

/* The source stacks a section's blocks with a 20px gap — heading, then map,
   then cards. Without it the map sat flush against the location cards. */
.bf-section__inner { display: flex; flex-direction: column; gap: 20px; }
.bf-section__inner > .bf-section-heading { margin-bottom: 0; }
.bf-section--gray { background: #f0f0f0; }
.bf-section--black { background: var(--wp--preset--color--black); color: var(--wp--preset--color--white); }
.bf-section--flush { padding-block: 0; }

/* Section heading, from the source's .bf-section-heading: centred, title
   case, with a two-bar rule beneath — a short dark dash then a longer red
   one. The source keeps this in Elementor's kit typography rather than the
   stylesheet, which is why it did not survive the first pass. */
.bf-section-heading {
  position: relative;
  margin: 0 0 32px;
  padding-bottom: 22px;
  /* The source uses a wide geometric face here. Anton is condensed and reads
     as a different thing entirely, so this takes bold Montserrat instead — a
     weight of a family the theme already ships, at no extra download. */
  font-family: var(--wp--preset--font-family--body);
  font-size: clamp(1.75rem, 1.2rem + 1.7vw, 2.5rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: normal;
  text-align: center;
  text-transform: none;
  color: var(--wp--preset--color--text);
}
.bf-section-heading::before,
.bf-section-heading::after {
  content: "";
  position: absolute;
  bottom: 0;
  height: 3px;
  border-radius: 2px;
}
.bf-section-heading::before { left: calc(50% - 50px); width: 20px; background: #1a1a1a; }
.bf-section-heading::after  { left: calc(50% - 24px); width: 70px; background: var(--wp--preset--color--red); }

.bf-section--black .bf-section-heading { color: var(--wp--preset--color--white); }
.bf-section--black .bf-section-heading::before { background: var(--wp--preset--color--white); }

/* The lede that follows a section heading on the source. */
.bf-section-description {
  max-width: 1000px;
  margin: 0 auto 2rem;
  text-align: center;
  font-size: 1.1rem;
  line-height: 2;
}

/* ============================================================
   FLUENT FORMS ADAPTER
   Every form rule captured from the source was written against
   Elementor's markup (.elementor-field-textual, .elementor-button).
   Migrating to Fluent Forms left those selectors matching nothing,
   so forms fell back to the plugin's own look — 7px radii, system
   font, grey submit. This maps the source's treatment onto .ff-*
   once, site-wide, instead of per route.
   ============================================================ */

.fluentform .ff-el-group { margin-bottom: 20px; }

.fluentform .ff-el-input--label label {
  font-family: var(--wp--preset--font-family--condensed);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--wp--preset--color--gray-700);
}
.fluentform .ff-el-input--label.ff-el-is-required label:after { color: var(--wp--preset--color--red); }

.fluentform .ff-el-group .ff-el-form-control {
  border: 1px solid var(--wp--preset--color--gray-200);
  border-radius: 0;                       /* square, as the source */
  background: var(--wp--preset--color--gray-50);
  padding: 15px 16px;
  min-height: 54px;
  font-family: var(--wp--preset--font-family--body);
  font-size: 16px;
  line-height: 1.375;   /* 15+22+15+2 = 54px, as the source */
  color: var(--wp--preset--color--black);
  box-shadow: none;
  transition: border-color .18s, background .18s, box-shadow .18s;
}
.fluentform .ff-el-group textarea.ff-el-form-control { min-height: 150px; }

.fluentform .ff-el-group .ff-el-form-control:focus {
  border-color: var(--wp--preset--color--red);
  background: var(--wp--preset--color--white);
  outline: none;
  box-shadow: 0 0 0 3px rgb(212 33 40 / .12);
}

.fluentform .ff-btn-submit,
.fluentform .ff-btn.ff-btn-submit {
  background: var(--wp--preset--color--red);
  color: var(--wp--preset--color--white);
  border: 2px solid var(--wp--preset--color--red);
  border-radius: 0;                       /* square, as the source */
  padding: 17px 34px;
  font-family: var(--wp--preset--font-family--condensed);
  font-size: 16px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: .09em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .18s, border-color .18s;
}
.fluentform .ff-btn-submit:hover,
.fluentform .ff-btn.ff-btn-submit:hover {
  background: var(--wp--preset--color--red-dark);
  border-color: var(--wp--preset--color--red-dark);
}
