/* ================================================================
   HOME PAGE COMPONENTS
   Uses only tokens and type classes from brand.css.
   Component names, not page names, so they carry to other pages.
   ================================================================ */

/* HEADER: logo left, menu and phone right */
.header { position: sticky; top: 0; z-index: 100; background: var(--color-charcoal); color: var(--color-text-on-dark); height: var(--header-h); }
.header__inner { height: 100%; display: flex; align-items: center; gap: var(--space-md); }
.header__badge { position: relative; flex: none; width: 136px; align-self: flex-start; margin-top: 8px; z-index: 2; }
.header__badge img { width: 136px; height: 136px; filter: drop-shadow(0 6px 14px rgba(0,0,0,.35)); }
.header__nav { margin-left: auto; }
.nav { display: flex; align-items: center; gap: 32px; font-size: var(--nav-size); font-weight: 600; }
.nav a { position: relative; display: inline-block; padding: 8px 0; }
.nav a:hover { color: var(--color-white); }
.nav a.is-active { color: var(--color-white); }
.nav a.is-active::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--color-green); border-radius: 2px; }
.nav .has-menu { position: relative; }
.chev { display: inline-block; width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); margin-left: 8px; }
.menu { position: absolute; top: 100%; left: -16px; min-width: 260px; background: var(--color-white); color: var(--color-text); border-radius: var(--radius); box-shadow: var(--shadow); padding: 10px 0; opacity: 0; visibility: hidden; transform: translateY(6px); transition: all .15s ease; z-index: 5; }
.has-menu:hover .menu, .has-menu:focus-within .menu { opacity: 1; visibility: visible; transform: translateY(0); }
.menu a { display: block; padding: 9px 20px; font-weight: 600; font-size: var(--p-small-size); }
.menu a:hover { background: var(--color-light-grey); color: var(--color-text); }
.menu hr { border: 0; border-top: 1px solid var(--color-border); margin: 6px 0; }
.header__phone { display: flex; align-items: center; gap: 12px; white-space: nowrap; }
.header__phone .ico { width: 40px; height: 40px; border-radius: 50%; background: var(--color-green); color: var(--color-charcoal-deep); display: flex; align-items: center; justify-content: center; flex: none; }
.header__phone .ico svg { width: 20px; height: 20px; }
.header__phone small { display: block; font-family: var(--font-body); font-size: var(--label-size); font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--color-text-on-dark-secondary); margin-bottom: 4px; }
.burger { display: none; width: 44px; height: 44px; border: 0; background: transparent; color: var(--color-white); align-items: center; justify-content: center; }
.burger span, .burger span::before, .burger span::after { display: block; width: 24px; height: 2px; background: currentColor; border-radius: 2px; position: relative; }
.burger span::before, .burger span::after { content: ''; position: absolute; left: 0; }
.burger span::before { top: -7px; } .burger span::after { top: 7px; }

/* HERO: full-width photo with a left-to-right dark gradient */
.hero { position: relative; display: flex; align-items: center; min-height: 420px; overflow: hidden; color: var(--color-white); background: var(--color-charcoal-deep); }
.hero__img { position: absolute; top: 0; left: 9%; width: 91%; height: 100%; object-fit: cover; object-position: 20% 48%; z-index: 0; }
.hero::before { z-index: 1; content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgb(38,39,35) 0%, rgb(38,39,35) 9%, rgba(38,39,35,.86) 30%, rgba(38,39,35,.4) 60%, rgba(38,39,35,.05) 100%); }
.hero__inner { position: relative; z-index: 2; padding-top: 72px; padding-bottom: 56px; }
.hero__copy { max-width: 640px; }
.hero__rule { display: block; width: 190px; height: 6px; margin: 14px 0 0; background: var(--color-green); border-radius: 3px; transform: skewX(-18deg); }
.hero .p-lead { color: var(--color-text-on-dark); margin-top: 20px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }

/* TAGLINE STRIP */
.strip { display: flex; align-items: center; justify-content: center; gap: 22px; padding: 14px var(--gutter); color: var(--color-charcoal-deep); text-align: center; }
.strip::before, .strip::after { content: ''; flex: 1 1 40px; max-width: 120px; height: 4px; background: var(--color-green); border-radius: 2px; }

/* SECTION HEAD */
.section__head { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--space-md); margin-bottom: 24px; flex-wrap: wrap; }
.section__head--center { display: block; text-align: center; margin-bottom: var(--space-md); }
.section__head .h2, .section__head--center .h2 { margin-top: 10px; }
.section__head--center .h2 { max-width: 26em; margin-left: auto; margin-right: auto; }

/* BROWSE TILES */
.browse { padding: 24px 0 var(--space-lg); }
.tiles { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.tile { position: relative; display: block; border-radius: var(--radius); overflow: hidden; aspect-ratio: 5 / 4; background: var(--color-charcoal); box-shadow: var(--shadow); }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.tile::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(38,39,35,0) 40%, rgba(38,39,35,.9) 100%); }
.tile:hover img { transform: scale(1.06); }
.tile__label { position: absolute; left: 14px; right: 12px; bottom: 12px; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 8px; color: var(--color-white); }
.tile__label svg { flex: none; width: 20px; height: 20px; transition: transform .15s ease; }
.tile:hover .tile__label svg { transform: translateX(4px); }

/* INTRO STATEMENT */
.intro { background: var(--color-light-grey); padding: var(--space-lg) 0; }
.intro__inner { display: grid; grid-template-columns: 1fr auto; gap: var(--space-lg); align-items: center; }
.intro__line { border-left: 5px solid var(--color-green); padding-left: 28px; }
.intro__line .p-lead { margin-bottom: 8px; }
.intro__line .h2 { color: var(--color-charcoal-deep); }

/* LISTING CARDS */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card { background: var(--color-white); border: 1px solid var(--color-border); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .2s ease, transform .2s ease; }
.card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.card__img { aspect-ratio: 4 / 3; overflow: hidden; background: var(--color-charcoal); }
.card__img img { width: 100%; height: 100%; object-fit: cover; }
.card__body { padding: 18px 22px 22px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card__meta { display: flex; justify-content: space-between; gap: 12px; font-weight: 600; }
.card__meta .loc { display: inline-flex; align-items: center; gap: 6px; }
.card__meta svg { width: 14px; height: 14px; color: var(--color-charcoal); }
.card .price { margin-top: auto; padding-top: 10px; color: var(--color-charcoal); }
.center { text-align: center; margin-top: var(--space-md); }

/* WHAT IF: a handwritten note on the dark section. The hand and arm are pinned to the right edge of the page
   and the bottom of the section (the photo is cut off on those two sides), and never sit over text. */
.whatif-section { --hand-w: clamp(240px, 34vw, 580px); position: relative; overflow: hidden; }
.note { position: relative; max-width: 760px; margin: 0 auto; background: var(--color-white); color: var(--color-charcoal-deep); border-radius: 4px; padding: 36px 48px max(36px, calc(var(--hand-w) * 0.305 - var(--space-xl) - 10px)); transform: rotate(-1deg); box-shadow: 0 22px 48px rgba(0,0,0,.38); }
.note__title { margin-bottom: 14px; }
.note__list { display: grid; gap: 8px; margin-bottom: 20px; }
.note__list li { position: relative; padding-left: 26px; }
.note__list li::before { content: ''; position: absolute; left: 4px; top: .62em; width: .3em; height: .3em; border-radius: 50%; background: var(--color-charcoal-deep); }
.note mark { color: inherit; background: linear-gradient(transparent 80%, var(--color-green) 80%, var(--color-green) 95%, transparent 95%); -webkit-box-decoration-break: clone; box-decoration-break: clone; padding: 0 .1em; margin: 0 -.1em; }
.note__hand { position: absolute; right: 0; bottom: 0; z-index: 2; width: var(--hand-w); height: auto; max-width: none; pointer-events: none; filter: drop-shadow(0 12px 16px rgba(0,0,0,.35)); }
/* STEPS */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.step { background: var(--color-white); border: 1px solid var(--color-border); border-radius: var(--radius); padding: 28px 24px 26px; }
.step__num { width: 48px; height: 48px; border-radius: 50%; background: var(--color-green); color: var(--color-charcoal-deep); font-family: var(--font-display); font-weight: 800; font-size: var(--numeral-size); display: flex; align-items: center; justify-content: center; margin-bottom: 18px; }
.step .h3 { margin-bottom: 8px; }
.steps-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 18px 28px; margin-top: var(--space-md); }
.steps-cta a:not(.btn) { font-weight: 700; text-decoration: underline; text-decoration-color: var(--color-green); text-decoration-thickness: 3px; text-underline-offset: 4px; }

/* ABOUT + SERVICE AREA */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-lg); align-items: center; }
.split .h2 { margin-top: 10px; }
.split .p-lead { margin-top: 16px; }
.areas { display: grid; gap: 12px; }
.area { display: flex; align-items: center; gap: 16px; padding: 18px 22px; border: 1px solid var(--color-border); border-left: 5px solid var(--color-green); border-radius: var(--radius); background: var(--color-white); }
.area svg { width: 22px; height: 22px; color: var(--color-charcoal); flex: none; }

/* CONTACT BAND */
.contact__inner { display: grid; grid-template-columns: 1.2fr 1fr; gap: var(--space-lg); align-items: center; }
.contact .h2 { margin: 12px 0 14px; }
.contact__phone { display: flex; align-items: center; gap: 14px; font-size: var(--phone-large-size); color: var(--color-white); }
.contact__phone .ico { width: 52px; height: 52px; border-radius: 50%; background: var(--color-green); color: var(--color-charcoal-deep); display: flex; align-items: center; justify-content: center; flex: none; }
.contact__phone .ico svg { width: 26px; height: 26px; }
.contact__lines { display: grid; gap: 8px; margin-top: 18px; color: var(--color-text-on-dark); }
.contact__name { color: var(--color-white); }
.contact__lines a { text-decoration: underline; text-decoration-color: var(--color-green); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.contact__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 26px; }

/* FOOTER: icon and contact left, inventory (all types) and company right */
.footer { background: var(--color-charcoal); color: var(--color-text-on-dark-secondary); padding: var(--space-lg) 0 var(--space-md); font-size: var(--p-small-size); }
.footer__grid { display: grid; grid-template-columns: 1.2fr 1.5fr 1fr; gap: var(--space-lg); }
.footer__logo { width: 150px; height: 150px; margin-bottom: 20px; }
.footer .h4 { color: var(--color-white); margin-bottom: 14px; }
.footer li { margin-bottom: 8px; }
.footer a:hover { color: var(--color-white); }
.footer__list--cols { columns: 2; column-gap: var(--space-md); }
.footer__list--cols li { break-inside: avoid; }
.footer__contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer__contact svg { width: 16px; height: 16px; margin-top: 4px; color: var(--color-green); flex: none; }
.footer__legal { margin-top: var(--space-lg); padding-top: 20px; border-top: 1px solid rgba(255,255,255,.12); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: var(--caption-size); }

/* TABLET */
@media (max-width: 1080px) {
  .nav { gap: 22px; }
  .header__phone .phone { font-size: var(--phone-compact-size); }
  .header__phone .ico { width: 34px; height: 34px; }
  .tiles { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
}

/* MOBILE */
@media (max-width: 900px) {
  .header__nav { display: none; }
  .burger { display: inline-flex; }
  .header__inner { gap: var(--space-sm); }
  .header__badge { width: 92px; margin-top: 6px; }
  .header__badge img { width: 92px; height: 92px; }
  .header__phone { margin-left: auto; }
  .header__phone .phone, .header__phone small { display: none; }
  .header__phone .ico { width: 40px; height: 40px; }
  .hero { min-height: 0; background-position: 66% center; }
  .hero__img { position: absolute; top: 0; left: 9%; width: 91%; height: 100%; object-fit: cover; object-position: 20% 48%; z-index: 0; }
.hero::before { z-index: 1; background: linear-gradient(180deg, rgba(38,39,35,.62) 0%, rgba(38,39,35,.92) 62%); }
  .hero__inner { padding-top: 96px; padding-bottom: 40px; }
  .hero__actions .btn { width: 100%; }
  .strip::before, .strip::after { display: none; }
  .tiles { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .tile { aspect-ratio: 1 / 1; }
  .intro__inner, .split, .contact__inner { grid-template-columns: 1fr; gap: var(--space-md); }
  .intro__line { padding-left: 18px; }
  .intro__inner .btn, .steps-cta .btn, .contact__actions .btn { width: 100%; }
  .cards, .steps { grid-template-columns: 1fr; }
  .whatif-section { --hand-w: 240px; padding-bottom: 36px; }
  .note { padding: 28px 22px 140px; }
  .note__list li { padding-left: 24px; }
  .footer__grid { grid-template-columns: 1fr; gap: var(--space-md); }
}

/* Tagline strip on phones: break after "No Auctions. No Dealers." */
@media (max-width: 700px) { .strip__text > span { display: block; } .strip__text > span:first-child { margin-bottom: 2px; } }

/* Hero on phones: the photo sits above the text instead of behind it */
@media (max-width: 900px) {
  .hero { display: block; min-height: 0; }
  .hero::before { display: none; }
  .hero__img { position: static; display: block; width: 100%; height: 260px; object-fit: cover; object-position: 62% 30%; }
  .hero__inner { padding-top: 28px; padding-bottom: 36px; }
}