/* ==========================================================
   Info & Legal pages — Buena Park Auto Glass
   about-us · contact-us · privacy-policy · terms-and-conditions · wiki

   Loaded via $EXTRA_CSS = 'info'; after homepage.css, so it inherits
   the homepage design system (--hp-* tokens, .hero-section,
   .intro-form-section, .section-head, .quote-form) and only adds the
   pieces those pages need.
   ========================================================== */

/* ==========================================================
   Hero — H1 + a moved-up leading block on the left, quote form right
   ========================================================== */
#hero.info-hero {
  padding-bottom: 8.5rem !important;
}

.info-hero .hero-content h1 {
  font-size: clamp(1.9rem, 1.1rem + 1.9vw, 2.7rem);
}

.info-hero .info-hero-sub {
  font-size: 1.18rem;
  font-weight: 600;
  letter-spacing: -0.2px;
  color: #ffffff;
  margin: 0 0 0.9rem;
}

.info-hero .hero-lead + .info-hero-sub {
  margin-top: 1.75rem;
}

.info-hero .info-hero-text {
  font-size: 1rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 1rem;
}

.info-hero .info-hero-text:last-of-type {
  margin-bottom: 1.9rem;
}

.info-hero .info-hero-text a {
  color: #ffffff;
  font-weight: 600;
  border-bottom: 1px solid rgba(var(--primary-color-rgb), 0.7);
  transition: color 0.25s ease;
}

.info-hero .info-hero-text a:hover {
  color: var(--hp-accent);
}

/* The form card sits on the dark hero, so it needs the glass frame
   treatment rather than the plain white card used on light sections. */
.info-hero .quote-form {
  box-shadow: 0 34px 70px rgba(0, 0, 0, 0.45);
}

/* ==========================================================
   Content sections
   ========================================================== */
.info-section {
  position: relative;
  overflow: hidden;
  padding: 5rem 0 5.5rem;
  background:
    radial-gradient(65% 45% at 100% 0%, rgba(79, 195, 240, 0.06) 0%, rgba(79, 195, 240, 0) 60%),
    linear-gradient(180deg, #ffffff 0%, var(--hp-light-bg) 100%);
}

.info-section-alt {
  background:
    radial-gradient(60% 45% at 0% 0%, rgba(var(--primary-color-rgb), 0.05) 0%, rgba(var(--primary-color-rgb), 0) 60%),
    linear-gradient(180deg, var(--hp-light-bg) 0%, #ffffff 100%);
}

.info-section .section-head {
  margin-bottom: 2.5rem;
}

/* Left-aligned heading for body sections (the centred .section-head is
   kept for the ones that head a grid). */
.info-head {
  margin-bottom: 1.5rem;
}

.info-head h2 {
  font-size: clamp(1.45rem, 1.05rem + 1vw, 1.9rem);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.4px;
  color: var(--hp-lead-strong);
  margin-bottom: 0;
  padding-left: 1rem;
  border-left: 4px solid transparent;
  border-image: linear-gradient(180deg, var(--hp-accent), var(--hp-ice)) 1;
}

.info-body p {
  font-size: 1rem;
  line-height: 1.85;
  color: var(--hp-slate);
  margin-bottom: 1.15rem;
}

.info-body p:last-child {
  margin-bottom: 0;
}

.info-body a {
  color: var(--hp-accent);
  font-weight: 600;
  transition: color 0.25s ease;
}

.info-body a:hover {
  color: var(--hp-accent-deep);
}

/* ==========================================================
   Image + copy row (About Us)
   ========================================================== */
/* Source photos vary between landscape and portrait. Left to their own
   intrinsic ratio, a portrait shot renders roughly 880px tall in a
   half-width column and towers over the two short paragraphs beside it.
   A fixed ratio on the frame keeps every paired section the same height;
   object-fit: cover crops rather than distorts. */
.info-media {
  position: relative;
  aspect-ratio: 3 / 2;
  border-radius: var(--hp-radius-lg);
  overflow: hidden;
  border: 1px solid rgba(8, 11, 18, 0.07);
  box-shadow: 0 26px 55px rgba(8, 11, 18, 0.13);
}

.info-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  transition: transform 0.6s ease;
}

.info-media:hover img {
  transform: scale(1.04);
}

.info-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 11, 18, 0) 60%, rgba(8, 11, 18, 0.3) 100%);
  pointer-events: none;
}

/* ==========================================================
   Bullet list (services offered)
   ========================================================== */
.info-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 1.5rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.info-list li {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.85rem 1.1rem;
  border-radius: var(--hp-radius);
  background: #ffffff;
  border: 1px solid rgba(8, 11, 18, 0.07);
  box-shadow: var(--hp-shadow-sm);
  font-size: 0.94rem;
  font-weight: 500;
  line-height: 1.45;
  color: var(--hp-graphite);
  transition: transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
}

.info-list li:hover {
  transform: translateY(-3px);
  border-color: rgba(var(--primary-color-rgb), 0.28);
  box-shadow: 0 14px 28px rgba(8, 11, 18, 0.1);
}

/* ==========================================================
   Contact details card
   ========================================================== */
.info-contact-card {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  padding: 1.85rem 1.75rem;
  border-radius: var(--hp-radius-lg);
  background: #ffffff;
  border: 1px solid rgba(8, 11, 18, 0.07);
  box-shadow: 0 24px 50px rgba(8, 11, 18, 0.1);
}

.info-contact-row {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  margin: 0;
}

.info-contact-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 12px;
  font-size: 0.95rem;
  color: #fff;
  background: linear-gradient(140deg, var(--hp-accent) 0%, var(--hp-accent-deep) 100%);
  box-shadow: 0 8px 18px rgba(var(--primary-color-rgb), 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.info-contact-body {
  font-size: 0.98rem;
  line-height: 1.55;
  color: var(--hp-graphite);
  word-break: break-word;
}

.info-contact-label {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: rgba(89, 97, 111, 0.85);
  margin-bottom: 0.15rem;
}

.info-contact-body a {
  color: var(--hp-lead-strong);
  font-weight: 700;
  transition: color 0.25s ease;
}

.info-contact-body a:hover {
  color: var(--hp-accent);
}

/* ==========================================================
   Trust banner (Contact Us) — photo + dark caption overlay
   ========================================================== */
.info-banner {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: var(--hp-radius-lg);
  min-height: 300px;
  display: flex;
  align-items: flex-end;
  box-shadow: 0 30px 65px rgba(8, 11, 18, 0.28);
}

.info-banner img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

.info-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(8, 11, 18, 0.82) 0%, rgba(8, 11, 18, 0.55) 45%, rgba(8, 11, 18, 0.86) 100%);
  z-index: -1;
}

.info-banner-inner {
  padding: 2.25rem 2.25rem 2rem;
  width: 100%;
}

.info-banner-text {
  font-size: clamp(1.15rem, 0.95rem + 0.9vw, 1.6rem);
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: -0.3px;
  color: #ffffff;
  margin-bottom: 1.4rem;
  max-width: 34rem;
}

/* ==========================================================
   Closing CTA band
   ========================================================== */
.info-cta {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 4.5rem 0 5rem;
  color: #fff;
  background:
    radial-gradient(110% 85% at 50% 0%, rgba(var(--primary-color-rgb), 0.22) 0%, rgba(var(--primary-color-rgb), 0) 58%),
    radial-gradient(80% 70% at 8% 95%, rgba(79, 195, 240, 0.14) 0%, rgba(79, 195, 240, 0) 62%),
    linear-gradient(160deg, var(--hp-ink-3) 0%, var(--hp-ink-2) 45%, var(--hp-ink) 100%);
}

.info-cta-grid {
  position: absolute;
  inset: 0;
  background-image: var(--hp-grid);
  background-size: var(--hp-grid-size);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 18%, transparent 80%);
  mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 18%, transparent 80%);
  pointer-events: none;
  z-index: -1;
}

.info-cta .container {
  position: relative;
  z-index: 1;
}

.info-cta-text {
  max-width: 52rem;
  margin: 0 auto 2rem;
  text-align: center;
  font-size: 1.04rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.72);
}

.info-cta-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
}

/* ==========================================================
   Legal / wiki body (privacy-policy · terms · wiki)
   ========================================================== */
.legal-section {
  position: relative;
  overflow: hidden;
  padding: 4.5rem 0 5.5rem;
  background:
    radial-gradient(60% 40% at 100% 0%, rgba(79, 195, 240, 0.05) 0%, rgba(79, 195, 240, 0) 60%),
    linear-gradient(180deg, #ffffff 0%, var(--hp-light-bg) 100%);
}

/* The card used to stretch to the full Bootstrap container (~1140px) while
   its copy was capped at 46rem, so the card carried wide empty margins on
   both sides. Pull the container in to just past the measure + the card's
   own padding, so the card wraps the text instead of framing empty space. */
.legal-section .container {
  max-width: 52rem;
}

.legal-card {
  padding: 2.75rem 2.5rem;
  border-radius: var(--hp-radius-lg);
  background: #ffffff;
  border: 1px solid rgba(8, 11, 18, 0.07);
  box-shadow: 0 26px 60px rgba(8, 11, 18, 0.09);
}

/* Comfortable measure for long legal copy, centred in the card — capped
   at 46rem without auto margins it sat flush left and left a wide empty
   gutter down the right-hand side of the card. */
.legal-card .legal-body {
  max-width: 46rem;
  margin-left: auto;
  margin-right: auto;
}

.legal-card h2 {
  font-size: clamp(1.3rem, 1rem + 0.85vw, 1.65rem);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.3px;
  color: var(--hp-lead-strong);
  margin: 2.5rem 0 1rem;
  padding-left: 0.95rem;
  border-left: 4px solid transparent;
  border-image: linear-gradient(180deg, var(--hp-accent), var(--hp-ice)) 1;
}

.legal-card h2:first-child,
.legal-card .legal-body > h2:first-child {
  margin-top: 0;
}

.legal-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.2px;
  color: var(--hp-graphite);
  margin: 1.9rem 0 0.75rem;
}

.legal-card p {
  font-size: 1rem;
  line-height: 1.85;
  color: var(--hp-slate);
  margin-bottom: 1.15rem;
}

.legal-card ul,
.legal-card ol {
  margin: 0 0 1.4rem;
  padding-left: 0;
  list-style: none;
}

.legal-card ul li,
.legal-card ol li {
  position: relative;
  padding-left: 1.6rem;
  margin-bottom: 0.65rem;
  font-size: 1rem;
  line-height: 1.8;
  color: var(--hp-slate);
}

.legal-card ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: linear-gradient(140deg, var(--hp-accent), var(--hp-accent-deep));
}

.legal-card ol {
  counter-reset: legal-ol;
}

.legal-card ol li {
  counter-increment: legal-ol;
}

.legal-card ol li::before {
  content: counter(legal-ol) ".";
  position: absolute;
  left: 0;
  top: 0;
  font-weight: 700;
  color: var(--hp-accent);
}

.legal-card a {
  color: var(--hp-accent);
  font-weight: 600;
}

.legal-card a:hover {
  color: var(--hp-accent-deep);
}

.legal-card strong {
  color: var(--hp-graphite);
}

/* The footer address is deliberately left visible on these pages too —
   the footer is the one place the business address is meant to appear. */

/* ==========================================================
   Sitemap list
   ========================================================== */
/* Sitemap is the only info-hero carrying an image instead of the quote
   form; the source photos are portrait, so cap the height. */
.info-hero .hero-img-frame .hero-img {
  width: 100%;
  max-height: 380px;
  object-fit: cover;
}

.sitemap-list {
  padding: 0;
  margin: 0;
  columns: 2;
  column-gap: 2.5rem;
}

.sitemap-list li {
  break-inside: avoid;
  margin-bottom: 0.7rem;
}

.sitemap-list li a {
  display: inline-block;
  font-size: 0.97rem;
  line-height: 1.5;
  color: var(--hp-slate);
  text-decoration: none;
  transition: color 0.25s ease, transform 0.25s ease;
}

/* The bullet comes from .legal-card ul li::before — don't add a second. */

.sitemap-list li a:hover {
  color: var(--hp-accent);
  transform: translateX(3px);
}

/* ==========================================================
   Responsive
   ========================================================== */
@media (max-width: 991px) {
  #hero.info-hero {
    padding-bottom: 7rem !important;
  }

  .legal-card {
    padding: 2.25rem 1.75rem;
  }
}

@media (max-width: 767px) {
  #hero.info-hero {
    padding-bottom: 5.5rem !important;
    text-align: left;
  }

  /* homepage.css centres hero content on phones; these pages read as
     documents, so keep the copy ranged left. */
  .info-hero .hero-content h1::before {
    margin-left: 0;
    margin-right: 0;
  }

  .info-section,
  .info-section-alt,
  .legal-section {
    padding: 3.25rem 0 3.75rem;
  }

  .info-cta {
    padding: 3.25rem 0 3.5rem;
  }

  .info-list {
    grid-template-columns: 1fr;
  }

  /* Slightly taller crop on phones, where a stacked 3:2 band reads thin.
     The frame's aspect-ratio drives the height — no min-height on the img,
     which would override it. */
  .info-media {
    aspect-ratio: 4 / 3;
  }

  .info-banner {
    min-height: 260px;
  }

  .info-banner-inner {
    padding: 1.6rem 1.35rem 1.5rem;
  }

  .legal-card {
    padding: 1.75rem 1.25rem;
  }

  .sitemap-list {
    columns: 1;
  }

  .info-contact-card {
    padding: 1.5rem 1.25rem;
  }

  .info-cta-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .info-cta-actions .btn-hero-cta,
  .info-cta-actions .btn-hero-call {
    justify-content: center;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .info-media img,
  .info-list li {
    transition: none;
  }
}
