/* ==========================================================================
   ER Auto Service — Riverview concept (web2)
   About Us page. Loaded alongside home.css and shares .eyebrow/.hero-split/
   .hero-features/.btn--white/.btn--ink/.quote-highlight/.hero--cta from
   styles.css. This file only holds what's new to this page.
   ========================================================================== */

/* ---------- Hero ---------------------------------------------------------- */

.about-hero .hero-media::before {
  background-image:
    linear-gradient(100deg, rgba(10,10,11,0.75) 0%, rgba(10,10,11,0.15) 55%),
    url('../assets/img/aboutus/HeroeAboutus.png');
  background-position: 70% 30%;
}
.about-hero .hero-lede { max-width: 44ch; }

.about-hero-quote {
  position: absolute; z-index: 1;
  right: clamp(1.5rem, 5vw, 4rem); top: clamp(5.5rem, 12vw, 8rem);
  font-family: 'Caveat', cursive;
  font-weight: 700;
  font-size: clamp(1.5rem, 1rem + 2vw, 2.2rem);
  color: #fff;
  line-height: 1.15;
  text-align: right;
  transform: rotate(2deg);
  max-width: 15ch;
}
@media (max-width: 700px) { .about-hero-quote { display: none; } }
@media (max-width: 600px) {
  .about-hero .hero-media::before { background-position: 49% 30%; }
}

/* ---------- About ER Auto Service ------------------------------------------ */

.about-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 4rem);
}
@media (max-width: 900px) { .about-grid { grid-template-columns: 1fr; } }

.about-copy .lede { margin-bottom: 1.1rem; }

.about-collage { position: relative; }

.about-collage-main {
  aspect-ratio: 4 / 3.9;
  background-size: cover;
  background-position: center;
}

/* Pinned to the photo's bottom-right corner instead of sitting beside it. */
.about-collage-badge {
  position: absolute; right: 0; bottom: 0; z-index: 1;
  background: var(--ember);
  color: #fff;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
  padding: 1.1rem 1.4rem;
}
.about-collage-badge .display {
  margin: 0;
  font-size: clamp(1.3rem, 1rem + 1.4vw, 1.8rem);
}
.about-collage-badge span {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.58rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  line-height: 1.4;
  margin-top: 0.35rem;
  opacity: 0.9;
}

/* ---------- Shop tour banner ------------------------------------------------ */

/* Real walkthrough video, native controls (not the muted-autoplay-loop
   pattern used on Tires' .used-tires-video — this one's meant to be played
   deliberately, with sound). */
.shop-tour { position: relative; overflow: hidden; min-height: 34rem; display: flex; align-items: center; background: #000; }
.shop-tour-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
/* Only darkens the top strip the quote sits on — left clear at the bottom so
   it never dims the video's own native controls bar. pointer-events:none
   throughout this layer (and the two captions) so clicks reach the video
   controls underneath instead of the decorative text on top of them. */
.shop-tour-scrim {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(10,10,11,0.55) 0%, rgba(10,10,11,0) 35%);
  pointer-events: none;
}
.shop-tour-quote {
  position: absolute; z-index: 1; pointer-events: none;
  left: clamp(1.5rem, 5vw, 4rem); top: clamp(1.5rem, 5vw, 3rem);
  font-family: 'Caveat', cursive;
  font-weight: 700;
  font-size: clamp(1.6rem, 1.1rem + 2vw, 2.4rem);
  color: #fff;
  transform: rotate(-2deg);
}
.shop-tour-caption {
  position: absolute; z-index: 1; pointer-events: none;
  right: var(--gutter); top: clamp(1.75rem, 5vw, 3.25rem);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
}

/* ---------- What sets us apart — hub and spoke ------------------------------ */

/* Faint tire-tread arcs in the top corners, fading to plain paper-dim toward
   the bottom — the image itself already fades to white, so cover + top
   position is all it needs. */
#why-choose {
  background-image: url('../assets/img/aboutus/fondollanta.jpg');
  background-repeat: no-repeat;
  background-position: top center;
  background-size: cover;
}

.apart-wheel {
  position: relative;
  max-width: 1320px;
  margin: clamp(2.5rem, 5vw, 4rem) auto 0;
}
.apart-hub {
  position: absolute; top: 50%; left: 50%; z-index: 2;
  transform: translate(-50%, -50%);
  width: clamp(120px, 14vw, 160px); height: clamp(120px, 14vw, 160px);
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--ember);
  box-shadow: 0 0 0 10px #fff, 0 10px 30px rgba(10, 10, 11, 0.12);
  display: flex; align-items: center; justify-content: center;
  padding: 0.6rem;
}
.apart-hub img { width: 100%; height: auto; }

.apart-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  /* Must clear the hub's own footprint (up to 160px + a 20px shadow ring =
     180px) at every width down to the 700px breakpoint, or the hub overlaps
     the items on either side instead of sitting cleanly between them. */
  column-gap: clamp(11rem, 21vw, 18rem);
  row-gap: clamp(2rem, 5vw, 3.5rem);
}
/* align-items: flex-start (not center) so the badge lines up with the top
   of the title consistently — centering against the whole icon+text block
   looked fine for a one-line title, but a two-line title ("Honest
   Recommendations", "Tires for Every Need & Budget") makes that block
   taller, so a centered badge floats noticeably higher than the title text
   instead of sitting next to it. */
.apart-item { position: relative; display: flex; gap: 1rem; align-items: flex-start; }
/* Left-column items hug the center gap (justify-self:end); right-column
   items hug it from their own side (justify-self:start) instead of
   stretching to fill the column — so every item is sized to its own
   icon+text content, and "the item's right edge" always means "where the
   text ends" for the dash below, on both sides. */
.apart-grid > .apart-item:nth-child(odd)  { justify-self: end; }
.apart-grid > .apart-item:nth-child(even) { justify-self: start; }
.apart-badge {
  position: relative; z-index: 2;
  flex: none;
  width: 68px; height: 68px;
  border-radius: 50%;
  background: var(--ember);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.7rem;
}
.apart-title {
  margin: 0 0 0.3rem;
  font-family: var(--font-display); font-weight: 800; text-transform: uppercase;
  font-size: 0.95rem;
}
.apart-desc { margin: 0; color: #4B4F57; font-size: 0.85rem; max-width: 26ch; }

/* "Dependable Auto Care" nudged right, off the column's default edge. */
.apart-grid > .apart-item:nth-child(4) { margin-left: 3rem; }

@media (max-width: 700px) {
  .apart-wheel { max-width: 420px; }
  .apart-hub { position: static; transform: none; margin: 0 auto 2rem; }
  .apart-grid { grid-template-columns: 1fr; row-gap: 1.75rem; }
  .apart-grid > .apart-item { justify-self: stretch; }
  /* The base rule's :nth-child(odd)/(even) selector out-specifies the plain
     .apart-item rule above, so odd items (1, 3) kept the desktop
     justify-self:end — right-aligned instead of stretched — even here.
     Reset just the odd items back to stretch to match. */
  .apart-grid > .apart-item:nth-child(odd) { justify-self: stretch; }
  /* The base rule's nudge-right only made sense next to the desktop 2-column
     layout — stacked to one column here, it just throws this item out of
     alignment with the other three. */
  .apart-grid > .apart-item:nth-child(4) { margin-left: 0; }
  .apart-item::before { display: none; }
}

/* ---------- Proud to serve our Riverview community -------------------------- */

.community-grid {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: clamp(1.5rem, 4vw, 3rem);
}
@media (max-width: 900px) {
  .community-grid { grid-template-columns: 1fr; justify-items: start; }
  /* The badge is the one item in this stacked column that reads better
     centered than left-aligned with the copy — override just this item's
     position instead of the container's justify-items. */
  .community-badge { justify-self: center; }
}

.community-copy .lede { margin-bottom: 1.1rem; }
.community-cta { margin-top: 0.5rem; }

/* A styled rosette instead of a real award-seal graphic — no asset supplied
   for the actual "Top 3 in Riverview" badge yet. */
.community-badge {
  width: clamp(140px, 16vw, 170px); height: clamp(140px, 16vw, 170px);
  border-radius: 50%;
  background: radial-gradient(circle, #fff 0%, #fff 62%, var(--ember) 63%, var(--ember) 100%);
  border: 2px solid var(--paper-dim);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
  padding: 0.75rem;
  flex: none;
}
.community-badge .stars { margin: 0 0 0.3rem; font-size: 0.7rem; }
.community-badge strong {
  display: block;
  font-family: var(--font-display); font-weight: 800; text-transform: uppercase;
  font-size: 1rem; line-height: 1.15; color: var(--ink);
}
.community-badge span {
  display: block;
  font-family: var(--font-mono); font-weight: 700; font-size: 0.55rem;
  letter-spacing: 0.05em; text-transform: uppercase; color: var(--chrome-dim);
  margin-top: 0.3rem;
}

.community-media {
  position: relative;
  width: clamp(260px, 32vw, 380px);
  aspect-ratio: 4 / 4.5;
  flex: none;
}
.community-media-photo {
  width: 100%; height: 100%;
  background-color: var(--iron);
  background-size: cover;
  background-position: center;
}
.community-quote {
  position: absolute; z-index: 1;
  left: -0.5rem; bottom: -1.25rem;
  font-family: 'Caveat', cursive;
  font-weight: 700;
  font-size: clamp(1.1rem, 0.9rem + 0.8vw, 1.4rem);
  color: var(--ink);
  transform: rotate(-3deg);
}
@media (max-width: 900px) {
  /* The clamp() above caps this at 260-380px regardless of viewport — fine
     next to the badge on desktop's 3-column row, but once the grid stacks
     to one column here the photo should fill that column like every other
     full-bleed photo on this page instead of staying pinned to its old
     desktop-row width. */
  .community-media { margin-top: 1rem; width: 100%; }
}

/* ---------- Comfortable while you wait -------------------------------------- */

.comfort-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(2rem, 5vw, 4rem);
}
@media (max-width: 900px) { .comfort-grid { grid-template-columns: 1fr; } }

.comfort-photo {
  aspect-ratio: 4 / 3;
  background-color: var(--paper-dim);
  background-size: cover;
  background-position: center;
}

.comfort-copy .lede { margin-bottom: 1.25rem; }
.comfort-amenities { display: flex; gap: clamp(1.5rem, 3vw, 2.5rem); list-style: none; margin: 0; padding: 0; }
.comfort-amenities li { display: flex; align-items: center; gap: 0.6rem; }
.comfort-amenities i { color: var(--ember); font-size: 1.3rem; }
.comfort-amenities span {
  font-family: var(--font-mono); font-weight: 700; font-size: 0.72rem;
  letter-spacing: 0.03em; text-transform: uppercase; color: var(--ink);
}

/* ---------- Se Habla Español band -------------------------------------------- */

.language-band { position: relative; overflow: hidden; background: var(--ember); color: #fff; }
.language-band::before {
  content: '';
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(115deg, rgba(255,255,255,0.06) 0 2px, transparent 2px 16px);
  pointer-events: none;
}
.language-band-inner {
  position: relative; z-index: 1;
  display: flex; align-items: center; gap: clamp(1rem, 3vw, 1.75rem);
  flex-wrap: wrap;
  padding-block: clamp(1.5rem, 3vw, 2rem);
}
.language-band-inner i { font-size: 1.9rem; flex: none; }
.language-band-title {
  font-family: var(--font-display); font-weight: 800; text-transform: uppercase;
  font-size: 1.2rem; margin: 0; flex: none;
}
.language-band-divider { width: 1px; align-self: stretch; background: rgba(255,255,255,0.35); flex: none; }
.language-band-inner p { margin: 0; color: rgba(255,255,255,0.92); max-width: 52ch; }
@media (max-width: 700px) { .language-band-divider { display: none; } }

/* ---------- Closing CTA — compact hero variant ------------------------------- */

.about-cta .hero-media::before {
  background-image: url('../assets/img/banprincipal.jpeg');
  background-position: 60% 45%;
  background-size: cover;
}
.about-cta .hero-scrim {
  background: linear-gradient(100deg, rgba(10,10,11,0.92) 0%, rgba(10,10,11,0.7) 45%, rgba(10,10,11,0.3) 100%);
}
.about-cta-quote {
  position: absolute; z-index: 1;
  right: clamp(1.5rem, 5vw, 4rem); bottom: clamp(1.5rem, 4vw, 2.5rem);
  font-family: 'Caveat', cursive;
  font-weight: 700;
  font-size: clamp(1.4rem, 1rem + 1.6vw, 2rem);
  color: #fff;
  text-align: right;
  line-height: 1.2;
  transform: rotate(-2deg);
}
@media (max-width: 700px) { .about-cta-quote { display: none; } }
