/* ============================================================
   Richard's Window Tinting — pages.css
   Page-specific patterns. Loaded after components.css.
   Owner: Coder B.
   Covers: Automotive, Gallery, About, Warranty.
   ============================================================ */


/* ============================================================
   === Container width variants (for narrow reading columns) ===
   ============================================================ */

.container--reading {
  max-width: 720px;
}


/* ============================================================
   === Shared photo placeholder utility ===
   Used on Gallery cards and About story/bio photo blocks until
   real photos drop in. One CSS background swap to upgrade later.
   ============================================================ */

.placeholder-photo {
  position: relative;
  background:
    linear-gradient(180deg, var(--bg-charcoal) 0%, var(--bg-black) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: var(--text-muted);
}

.placeholder-photo--res {
  background:
    linear-gradient(180deg, #1a1a22 0%, var(--bg-black) 100%);
}

.placeholder-photo--com {
  background:
    linear-gradient(180deg, #1a221a 0%, var(--bg-black) 100%);
}

.placeholder-photo--auto {
  background:
    linear-gradient(180deg, #221a1a 0%, var(--bg-black) 100%);
}

.placeholder-photo--story,
.placeholder-photo--bio {
  background:
    linear-gradient(180deg, var(--bg-slate) 0%, var(--bg-black) 100%);
}

.placeholder-photo__label {
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  letter-spacing: var(--ls-h3);
  color: var(--text-muted);
  text-transform: uppercase;
}


/* ============================================================
   === Automotive page: benefits row ===
   Four icon+text blocks. Single col mobile, 2x2 tablet,
   4 across desktop. Text-forward, no card backgrounds.
   ============================================================ */

.automotive-benefits {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
  margin-top: var(--space-6);
}

@media (min-width: 768px) {
  .automotive-benefits {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-7);
  }
}

@media (min-width: 1024px) {
  .automotive-benefits {
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-6);
  }
}

.automotive-benefit__icon {
  color: var(--red);
  margin-bottom: var(--space-4);
}

.automotive-benefit__title {
  font-size: var(--fs-h3);
  margin-bottom: var(--space-3);
  color: var(--text-headline);
}

.automotive-benefit__body {
  color: var(--text-primary);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
}


/* ============================================================
   === Automotive page: film tier cards (Ceramic / Standard) ===
   ============================================================ */

.automotive-films {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
  margin-top: var(--space-6);
}

@media (min-width: 768px) {
  .automotive-films {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-7);
  }
}

.automotive-film {
  background: var(--bg-slate);
  border-radius: var(--radius-sm);
  padding: var(--space-5);
}

@media (min-width: 768px) {
  .automotive-film { padding: var(--space-6); }
}

.automotive-film__title {
  color: var(--text-headline);
  margin-bottom: var(--space-3);
}

.automotive-film__body {
  color: var(--text-primary);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
}

.automotive-films__note {
  margin-top: var(--space-6);
  color: var(--text-muted);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
}

.automotive-films__note strong {
  color: var(--text-primary);
}


/* ============================================================
   === Gallery page ===
   ============================================================ */

/* === Filter chips (above grid). Active = red fill, inactive = outlined === */

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-3);
  margin-top: var(--space-5);
}

.filter-chip {
  font-family: var(--font-body);
  font-size: var(--fs-button);
  font-weight: 600;
  letter-spacing: var(--ls-uppercase);
  text-transform: uppercase;
  color: var(--text-headline);
  background: transparent;
  border: 1.5px solid var(--bg-edge);
  border-radius: var(--radius-sm);
  padding: 0 var(--space-4);
  height: 36px;
  min-width: var(--tap-target-min);
  cursor: pointer;
  transition: background var(--transition-fast),
              border-color var(--transition-fast),
              color var(--transition-fast);
}

.filter-chip:hover {
  border-color: var(--text-headline);
}

.filter-chip.is-active {
  background: var(--red);
  border-color: var(--red);
  color: var(--text-headline);
}

.filter-chip.is-active:hover {
  background: var(--red-hover);
  border-color: var(--red-hover);
}

/* === Gallery grid: 4 cols desktop, 3 tablet, 2 mobile === */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-3);
}

@media (min-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-4);
  }
}

@media (min-width: 1024px) {
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-5);
  }
}

/* === Gallery card. Image-first card with caption beneath === */

.gallery-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-slate);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: transform var(--transition-default),
              box-shadow var(--transition-default);
}

.gallery-card__image {
  aspect-ratio: 4 / 3;
  width: 100%;
  background: var(--bg-mid);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.gallery-card__category {
  font-family: var(--font-body);
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: var(--ls-eyebrow);
  color: var(--red);
  padding: var(--space-2) var(--space-3);
}

.gallery-card__caption {
  font-size: var(--fs-body-small);
  color: var(--text-muted);
  padding: var(--space-3) var(--space-4) var(--space-4);
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .gallery-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  }
}

.gallery-empty {
  display: none;
  text-align: center;
  padding: var(--space-7) 0;
  color: var(--text-muted);
  font-size: var(--fs-body-large);
  margin-top: var(--space-6);
}


/* ============================================================
   === About page ===
   ============================================================ */

/* === Story: hero photo + 720px-wide column of paragraphs === */

.about-story .container {
  max-width: 720px;
}

.about-story__photo {
  aspect-ratio: 16 / 9;
  width: 100%;
  border-radius: var(--radius-sm);
  margin-bottom: var(--space-7);
}

.about-story__body p {
  font-size: var(--fs-body-large);
  line-height: var(--lh-body);
  margin-bottom: var(--space-6);
}

.about-story__body p:last-child {
  margin-bottom: 0;
}

/* === Team: bio cards side-by-side desktop, stacked mobile === */

.bio-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
  margin-top: var(--space-6);
}

@media (min-width: 768px) {
  .bio-cards {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-7);
  }
}

.bio-card {
  background: var(--bg-slate);
  border-radius: var(--radius-sm);
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
}

@media (min-width: 768px) {
  .bio-card { padding: var(--space-6); }
}

.bio-card__photo {
  aspect-ratio: 4 / 3;
  width: 100%;
  border-radius: var(--radius-sm);
  margin-bottom: var(--space-5);
}

.bio-card__name {
  font-size: var(--fs-h3);
  color: var(--text-headline);
  margin-bottom: var(--space-2);
}

.bio-card__role {
  font-family: var(--font-body);
  font-size: var(--fs-body-small);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: var(--ls-uppercase);
  color: var(--red);
  margin-bottom: var(--space-4);
}

.bio-card__body {
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--text-primary);
}

/* === Location: address + map two-column on desktop === */

.about-location__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
  margin-top: var(--space-6);
}

@media (min-width: 1024px) {
  .about-location__grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-7);
    align-items: stretch;
  }
}

.about-location__address {
  font-style: normal;
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.about-location__line {
  display: block;
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--text-primary);
}

.about-location__line strong {
  font-family: var(--font-body);
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: var(--ls-eyebrow);
  color: var(--red);
}

.about-location__line a {
  color: var(--text-headline);
  text-decoration: underline;
}

.about-location__map {
  height: 240px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--bg-slate);
}

@media (min-width: 1024px) {
  .about-location__map {
    height: 320px;
  }
}

.about-location__map iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}


/* ============================================================
   === Warranty page ===
   Document-first layout: legibility beats visual flourish.
   Body text bumped up one notch (18px / 21px / h2 44/32).
   No sticky bar, no quote CTAs, stripped header + footer.
   ============================================================ */

.warranty-page {
  background: var(--bg-black);
}

.warranty-page p,
.warranty-page li {
  font-size: 18px;
  line-height: 1.65;
}

.warranty-page h2 {
  font-size: 44px;
}

@media (max-width: 767px) {
  .warranty-page h2 {
    font-size: 32px;
  }
}

.warranty-page .warranty-section__subtitle {
  font-size: 21px;
  color: var(--text-primary);
  line-height: 1.5;
}

/* === Stripped header variant === */

.site-header--stripped .site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height-mobile);
}

@media (min-width: 768px) {
  .site-header--stripped .site-header__inner {
    height: var(--header-height-desktop);
  }
}

.site-header--stripped {
  border-bottom: 1px solid var(--bg-edge);
  background: var(--bg-black);
}

.site-header__phone--standalone {
  font-family: var(--font-body);
  font-size: var(--fs-body-small);
  font-weight: 600;
  color: var(--text-headline);
  text-transform: uppercase;
  letter-spacing: var(--ls-uppercase);
}

@media (min-width: 768px) {
  .site-header__phone--standalone {
    font-size: var(--fs-body);
  }
}

.site-header__phone--standalone:hover {
  color: var(--red);
}

/* Warranty section padding (tighter than the rest of the site) */

.warranty-section {
  padding-block: var(--space-7);
}

@media (min-width: 768px) {
  .warranty-section {
    padding-block: var(--space-8);
  }
}

.warranty-section--head {
  padding-top: var(--space-7);
  text-align: center;
}

@media (min-width: 768px) {
  .warranty-section--head {
    padding-top: var(--space-8);
  }
}

.warranty-section--head h1 {
  margin-bottom: var(--space-4);
}

/* === Coverage grid: 3 service blocks stacked vertically === */

.warranty-coverage-grid {
  display: flex;
  flex-direction: column;
  gap: var(--space-7);
  margin-top: var(--space-6);
}

.warranty-coverage-block {
  border-top: 1px solid var(--bg-edge);
  padding-top: var(--space-6);
}

.warranty-coverage-block:first-child {
  border-top: none;
  padding-top: 0;
}

.warranty-coverage-block__service {
  font-size: var(--fs-h3);
  color: var(--text-headline);
  margin-bottom: var(--space-3);
}

.warranty-coverage-block__period {
  margin-bottom: var(--space-4);
  color: var(--text-primary);
}

.warranty-coverage-block__period strong {
  color: var(--red);
  font-weight: 600;
}

.warranty-coverage-block__details p {
  margin-bottom: var(--space-3);
}

.warranty-coverage-block__details ul {
  list-style: disc;
  padding-left: var(--space-5);
  margin-bottom: var(--space-4);
  color: var(--text-primary);
}

.warranty-coverage-block__details li {
  margin-bottom: var(--space-2);
}

/* === Exclusions === */

.warranty-exclusions {
  margin-top: var(--space-5);
}

.warranty-exclusions p {
  margin-bottom: var(--space-4);
}

.warranty-exclusions ul {
  list-style: disc;
  padding-left: var(--space-5);
}

.warranty-exclusions li {
  margin-bottom: var(--space-3);
  color: var(--text-primary);
}

/* === Claim steps section (charcoal background) === */

.warranty-section--claim {
  background: var(--bg-charcoal);
}

.warranty-section--claim h2 {
  text-align: center;
  margin-bottom: var(--space-6);
}

.warranty-claim-steps {
  list-style: decimal;
  padding-left: var(--space-6);
  margin: 0 auto var(--space-7);
  max-width: 600px;
}

.warranty-claim-steps li {
  margin-bottom: var(--space-4);
  font-size: 19px;
  line-height: 1.6;
  color: var(--text-primary);
}

.warranty-claim-ctas {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  align-items: stretch;
  max-width: 480px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .warranty-claim-ctas {
    flex-direction: row;
    justify-content: center;
    max-width: none;
  }
}

/* === Contact block at bottom === */

.warranty-section--contact h2 {
  font-size: var(--fs-h3);
  margin-bottom: var(--space-5);
}

.warranty-contact {
  font-style: normal;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.warranty-contact__line {
  display: block;
  font-size: 19px;
  line-height: 1.5;
  color: var(--text-primary);
}

.warranty-contact__line a {
  color: var(--text-headline);
  text-decoration: underline;
}

/* === Stripped footer (warranty page) === */

.site-footer--stripped {
  background: var(--bg-charcoal);
  padding-block: var(--space-5);
  border-top: 1px solid var(--bg-edge);
}

.site-footer__stripped-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  text-align: center;
}

@media (min-width: 768px) {
  .site-footer__stripped-inner {
    flex-direction: row;
    text-align: left;
  }
}

.site-footer__back {
  font-size: var(--fs-body-small);
  color: var(--text-muted);
}

.site-footer__back:hover {
  color: var(--text-headline);
}

/* Warranty page hides the sticky bar (operational page, not marketing) */
.warranty-page .sticky-bar {
  display: none;
}


/* ============================================================
   === Reduced-motion respect ===
   ============================================================ */

@media (prefers-reduced-motion: reduce) {
  .gallery-card,
  .filter-chip {
    transition: none;
  }
  .gallery-card:hover {
    transform: none;
    box-shadow: none;
  }
}

/* ============================================================
   Home: Visit Us map section
   Embedded Google Maps iframe with rounded corners + subtle shadow.
   Lazy-loaded for LCP performance.
   ============================================================ */

.home-map {
  width: 100%;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  margin-top: var(--space-6);
}

.home-map iframe {
  display: block;
  width: 100%;
  height: 450px;
  border: 0;
}

@media (max-width: 767px) {
  .home-map iframe {
    height: 320px;
  }
}

/* === Gallery card with real <img> (vs placeholder div) === */
img.gallery-card__image {
  display: block;
  object-fit: cover;
  height: 100%;
  width: 100%;
}
