/* ============================================================
   PAGES-STYLES.CSS
   Custom components for: How It Works, FAQ, Transit Time,
   Reviews, About Us, Contact, Blog/Resources
   ============================================================ */

/* === PAGE HERO (compact, branded) === */
.page-hero {
  background: linear-gradient(135deg, var(--ink) 0%, var(--charcoal) 60%, #2a1018 100%);
  color: var(--white);
  padding: 80px 0 100px;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  top: 0;
  right: -100px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(200, 16, 46, 0.15) 0%, transparent 60%);
  pointer-events: none;
}
.page-hero__inner {
  position: relative;
  z-index: 1;
  max-width: 880px;
}
.page-hero__breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 24px;
}
.page-hero__breadcrumb a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.2s;
}
.page-hero__breadcrumb a:hover { color: var(--white); }
.page-hero__breadcrumb-sep { color: rgba(255, 255, 255, 0.35); }
.page-hero__breadcrumb-current { color: var(--white); }

.page-hero__eyebrow {
  display: inline-block;
  background: rgba(200, 16, 46, 0.18);
  border: 1px solid rgba(200, 16, 46, 0.4);
  color: var(--white);
  padding: 7px 16px;
  border-radius: 100px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.page-hero h1 {
  font-size: clamp(2.4rem, 4.5vw, 3.8rem);
  line-height: 1.05;
  color: var(--white);
  margin-bottom: 20px;
}
.page-hero h1 .accent { color: var(--red-bright); }
.page-hero__lede {
  font-size: 1.18rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.85);
  max-width: 720px;
  margin-bottom: 32px;
}
.page-hero__actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* === SECTION HEADERS === */
.page-section {
  padding: 80px 0;
}
.page-section--light { background: var(--bone); }
.page-section--white { background: var(--white); }
.page-section--dark { background: var(--ink); color: var(--white); }
.page-section__head {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 56px;
}
.page-section__head--left {
  text-align: left;
  margin-left: 0;
}
.page-section__eyebrow {
  display: inline-block;
  color: var(--red);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 12px;
  position: relative;
  padding-left: 32px;
}
.page-section__eyebrow::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 22px;
  height: 2px;
  background: var(--red);
}
.page-section__head--center .page-section__eyebrow { padding-left: 0; }
.page-section__head--center .page-section__eyebrow::before { display: none; }
.page-section__sub {
  color: var(--slate);
  font-size: 1.08rem;
  line-height: 1.6;
  margin-top: 14px;
}
.page-section--dark .page-section__sub { color: rgba(255, 255, 255, 0.75); }

/* === PROSE (for body content blocks) === */
.page-prose {
  max-width: 820px;
  margin: 0 auto;
}
.page-prose h2 {
  font-size: 2rem;
  margin-top: 48px;
  margin-bottom: 18px;
}
.page-prose h2:first-child { margin-top: 0; }
.page-prose h3 {
  font-size: 1.4rem;
  margin-top: 32px;
  margin-bottom: 12px;
}
.page-prose p {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--slate);
  margin-bottom: 18px;
}
.page-prose ul, .page-prose ol {
  margin-bottom: 18px;
  padding-left: 24px;
}
.page-prose ul li, .page-prose ol li {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--slate);
  margin-bottom: 10px;
}
.page-prose strong { color: var(--ink); }
.page-prose a { color: var(--red); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.page-prose a:hover { color: var(--red-deep); }
.page-prose blockquote {
  margin: 28px 0;
  padding: 24px 28px;
  background: var(--bone);
  border-left: 4px solid var(--red);
  border-radius: var(--radius);
  font-size: 1.08rem;
  font-style: italic;
  color: var(--ink);
}
.page-prose blockquote p:last-child { margin-bottom: 0; }

/* === PROCESS TIMELINE (How It Works) === */
.process-timeline {
  position: relative;
  max-width: 920px;
  margin: 0 auto;
}
.process-timeline::before {
  content: '';
  position: absolute;
  left: 31px;
  top: 30px;
  bottom: 30px;
  width: 2px;
  background: linear-gradient(to bottom, var(--red) 0%, rgba(200, 16, 46, 0.2) 100%);
}
.process-step {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 32px;
  margin-bottom: 40px;
  position: relative;
}
.process-step:last-child { margin-bottom: 0; }
.process-step__num {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--white);
  border: 3px solid var(--red);
  color: var(--red);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
  box-shadow: 0 6px 18px rgba(200, 16, 46, 0.18);
}
.process-step__body {
  padding-top: 8px;
}
.process-step__body h3 {
  font-size: 1.45rem;
  margin-bottom: 10px;
  color: var(--ink);
}
.process-step__body p {
  color: var(--slate);
  line-height: 1.7;
  margin-bottom: 14px;
}
.process-step__body p:last-child { margin-bottom: 0; }
.process-step__meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(200, 16, 46, 0.08);
  color: var(--red-deep);
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-top: 8px;
}

/* === TRANSIT TIME TABLE === */
.transit-table-wrap {
  max-width: 1000px;
  margin: 0 auto;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  border: 1px solid var(--cloud);
}
.transit-table {
  width: 100%;
  border-collapse: collapse;
}
.transit-table th {
  background: var(--ink);
  color: var(--white);
  padding: 18px 22px;
  text-align: left;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.transit-table td {
  padding: 16px 22px;
  border-bottom: 1px solid var(--cloud);
  font-size: 1rem;
  color: var(--slate);
}
.transit-table td:first-child {
  font-weight: 600;
  color: var(--ink);
}
.transit-table tr:last-child td { border-bottom: none; }
.transit-table tr:hover td { background: var(--bone); }
.transit-table .badge-fast {
  display: inline-block;
  background: rgba(46, 160, 67, 0.12);
  color: #1f7a32;
  padding: 4px 10px;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
}
.transit-table .badge-standard {
  display: inline-block;
  background: rgba(200, 16, 46, 0.1);
  color: var(--red-deep);
  padding: 4px 10px;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
}

/* === FAQ SEARCH + ACCORDION === */
.faq-search {
  max-width: 640px;
  margin: 0 auto 40px;
  position: relative;
}
.faq-search input {
  width: 100%;
  padding: 18px 56px 18px 24px;
  font-family: var(--font-body);
  font-size: 1.05rem;
  border: 2px solid var(--cloud);
  border-radius: 100px;
  background: var(--white);
  color: var(--ink);
  transition: border-color 0.2s;
}
.faq-search input:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 4px rgba(200, 16, 46, 0.1);
}
.faq-search__icon {
  position: absolute;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--slate);
  pointer-events: none;
}

.faq-cat {
  max-width: 880px;
  margin: 0 auto 40px;
}
.faq-cat__title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--red);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.faq-cat__title::before {
  content: '';
  width: 6px;
  height: 24px;
  background: var(--red);
  border-radius: 3px;
}
.faq-cat__desc {
  color: var(--slate);
  margin-bottom: 20px;
  margin-left: 18px;
  font-size: 0.98rem;
}

/* === REVIEW CARDS === */
.review-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  max-width: 1000px;
  margin: 0 auto 60px;
}
.review-stat {
  text-align: center;
  padding: 32px 20px;
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--cloud);
}
.review-stat__big {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 700;
  color: var(--red);
  line-height: 1;
  margin-bottom: 8px;
}
.review-stat__label {
  color: var(--slate);
  font-size: 0.92rem;
  letter-spacing: 0.04em;
}
.review-stat__stars {
  color: var(--gold);
  font-size: 1.2rem;
  margin-top: 6px;
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  max-width: 1200px;
  margin: 0 auto;
}
.review-card {
  background: var(--white);
  border: 1px solid var(--cloud);
  border-radius: var(--radius-lg);
  padding: 30px 28px;
  display: flex;
  flex-direction: column;
  transition: all 0.25s ease;
}
.review-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--silver);
}
.review-card__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 14px;
}
.review-card__stars {
  color: var(--gold);
  font-size: 1.1rem;
  letter-spacing: 1px;
}
.review-card__source {
  font-size: 0.78rem;
  color: var(--slate);
  background: var(--bone);
  padding: 4px 10px;
  border-radius: 4px;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.review-card__title {
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 10px;
  line-height: 1.3;
}
.review-card__body {
  color: var(--slate);
  font-size: 0.98rem;
  line-height: 1.65;
  margin-bottom: 18px;
  flex: 1;
}
.review-card__author {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid var(--cloud);
  font-size: 0.88rem;
}
.review-card__name {
  font-weight: 600;
  color: var(--ink);
}
.review-card__meta {
  color: var(--slate);
}

/* === ABOUT US === */
.story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}
.story-grid__visual {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(135deg, var(--ink), var(--charcoal));
  aspect-ratio: 4/5;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 40px;
  color: var(--white);
  text-align: center;
}
.story-grid__visual::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 30%, rgba(200, 16, 46, 0.25) 0%, transparent 60%);
}
.story-grid__visual-content {
  position: relative;
  z-index: 1;
}
.story-grid__visual .stat-big {
  font-family: var(--font-display);
  font-size: 5rem;
  font-weight: 700;
  color: var(--red-bright);
  line-height: 1;
  margin-bottom: 8px;
}
.story-grid__visual .stat-label {
  font-family: var(--font-display);
  font-size: 1.1rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 32px;
}
.story-grid__visual .stat-sub {
  font-size: 1rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.75);
  max-width: 280px;
  margin: 0 auto;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  max-width: 1200px;
  margin: 0 auto;
}
.value-card {
  background: var(--white);
  padding: 36px 32px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--cloud);
  transition: all 0.25s ease;
}
.value-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--silver);
}
.value-card__icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(200, 16, 46, 0.12), rgba(200, 16, 46, 0.04));
  color: var(--red);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.value-card h3 {
  font-size: 1.25rem;
  margin-bottom: 10px;
}
.value-card p {
  color: var(--slate);
  line-height: 1.65;
  font-size: 0.98rem;
}

.timeline-list {
  max-width: 760px;
  margin: 0 auto;
  position: relative;
  padding-left: 32px;
}
.timeline-list::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: var(--cloud);
}
.timeline-item {
  position: relative;
  padding-bottom: 32px;
}
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: '';
  position: absolute;
  left: -32px;
  top: 8px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--white);
  border: 3px solid var(--red);
  z-index: 1;
}
.timeline-item__year {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--red);
  margin-bottom: 6px;
}
.timeline-item__title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
}
.timeline-item__body {
  color: var(--slate);
  line-height: 1.6;
}

/* === CONTACT === */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  max-width: 1200px;
  margin: 0 auto;
}
.contact-info-card {
  background: var(--white);
  padding: 36px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--cloud);
  margin-bottom: 20px;
}
.contact-info-card__icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(200, 16, 46, 0.12), rgba(200, 16, 46, 0.04));
  color: var(--red);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.contact-info-card h3 {
  font-size: 1.2rem;
  margin-bottom: 8px;
}
.contact-info-card p {
  color: var(--slate);
  font-size: 0.98rem;
  margin-bottom: 12px;
  line-height: 1.6;
}
.contact-info-card a {
  color: var(--red);
  font-weight: 600;
  text-decoration: none;
}
.contact-info-card a:hover { color: var(--red-deep); }

.contact-form {
  background: var(--white);
  padding: 40px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--cloud);
  box-shadow: var(--shadow-md);
}
.contact-form h2 {
  margin-bottom: 8px;
  font-size: 1.8rem;
}
.contact-form__sub {
  color: var(--slate);
  margin-bottom: 28px;
  font-size: 1rem;
}
.contact-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}
.contact-form__field {
  margin-bottom: 16px;
}
.contact-form label {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 8px;
}
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 14px 16px;
  font-family: var(--font-body);
  font-size: 1rem;
  border: 2px solid var(--cloud);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(200, 16, 46, 0.1);
}
.contact-form textarea {
  resize: vertical;
  min-height: 120px;
}
.contact-form button {
  width: 100%;
}

/* === BLOG / RESOURCES === */
.blog-featured {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 32px;
  margin-bottom: 56px;
}
.blog-card {
  background: var(--white);
  border: 1px solid var(--cloud);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.25s ease;
  text-decoration: none;
  color: inherit;
}
.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--silver);
}
.blog-card__visual {
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, var(--ink), var(--charcoal));
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  overflow: hidden;
}
.blog-card__visual::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 50%, rgba(200, 16, 46, 0.3) 0%, transparent 60%);
}
.blog-card__visual svg {
  position: relative;
  z-index: 1;
  width: 72px;
  height: 72px;
  color: var(--red-bright);
  opacity: 0.9;
}
.blog-card--featured .blog-card__visual { aspect-ratio: 4/3; }
.blog-card__body {
  padding: 26px 28px 28px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.blog-card__cat {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 10px;
}
.blog-card__title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.3;
  margin-bottom: 12px;
}
.blog-card--featured .blog-card__title { font-size: 1.7rem; }
.blog-card__excerpt {
  color: var(--slate);
  font-size: 0.98rem;
  line-height: 1.6;
  margin-bottom: 16px;
  flex: 1;
}
.blog-card__meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--slate);
  padding-top: 14px;
  border-top: 1px solid var(--cloud);
}
.blog-card__readmore {
  color: var(--red);
  font-weight: 600;
  font-family: var(--font-display);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.85rem;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.resource-categories {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
}
.resource-cat {
  text-align: center;
  background: var(--white);
  padding: 32px 20px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--cloud);
  text-decoration: none;
  color: inherit;
  transition: all 0.25s ease;
}
.resource-cat:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--red);
}
.resource-cat__icon {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(200, 16, 46, 0.12), rgba(200, 16, 46, 0.04));
  color: var(--red);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}
.resource-cat h3 {
  font-size: 1.05rem;
  margin-bottom: 6px;
}
.resource-cat p {
  color: var(--slate);
  font-size: 0.88rem;
  line-height: 1.5;
}

/* === SCHEMA / RATING DISPLAY === */
.rating-bar {
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(255, 255, 255, 0.1);
  padding: 8px 14px;
  border-radius: 100px;
  font-size: 0.92rem;
  color: var(--white);
}
.rating-bar__stars { color: var(--gold); letter-spacing: 1px; }

/* === RESPONSIVE === */
@media (max-width: 1100px) {
  .reviews-grid { grid-template-columns: repeat(2, 1fr); }
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .blog-featured { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: 1fr; }
  .review-stats { grid-template-columns: repeat(2, 1fr); }
  .story-grid { grid-template-columns: 1fr; gap: 40px; }
  .story-grid__visual { aspect-ratio: 16/10; }
  .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .resource-categories { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 800px) {
  .page-hero { padding: 60px 0 70px; }
  .reviews-grid, .blog-grid { grid-template-columns: 1fr; }
  .process-step { grid-template-columns: 48px 1fr; gap: 20px; }
  .process-step__num { width: 48px; height: 48px; font-size: 1.2rem; }
  .process-timeline::before { left: 23px; }
  .contact-form__row { grid-template-columns: 1fr; gap: 0; }
  .contact-form { padding: 28px 22px; }
  .transit-table th, .transit-table td { padding: 12px 14px; font-size: 0.9rem; }
}

@media (max-width: 500px) {
  .review-stats { grid-template-columns: 1fr; }
  .resource-categories { grid-template-columns: 1fr; }
}
