/* =============================================
   PAGES.CSS — Inner page styles
   Product pillars, location pages, etc.
   The Stairlift Company
   ============================================= */

/* ===== BREADCRUMB ===== */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: var(--fs-xs);
  color: rgba(255,255,255,0.65);
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.breadcrumb a {
  color: rgba(255,255,255,0.65);
  transition: color 0.15s;
}
.breadcrumb a:hover { color: var(--white); }
.breadcrumb-sep { color: rgba(255,255,255,0.30); }
.breadcrumb-current { color: rgba(255,255,255,0.90); font-weight: 600; }

/* ===== PAGE HERO ===== */
.page-hero {
  background: linear-gradient(135deg, #001f5b 0%, #003087 55%, #0040b0 100%);
  padding: 60px 0 72px;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 440px; height: 440px;
  border-radius: 50%;
  background: rgba(255,255,255,0.04);
  pointer-events: none;
}
.page-hero-grid {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 56px;
  align-items: center;
  position: relative;
  z-index: 2;
}
.page-hero h1 {
  font-family: var(--font-head);
  font-size: var(--fs-2xl);
  font-weight: 900;
  line-height: 1.15;
  color: var(--white);
  margin-bottom: 20px;
}
.page-hero h1 em {
  font-style: normal;
  color: #ffb07a;
}
.page-hero-sub {
  font-size: var(--fs-base);
  color: rgba(255,255,255,0.85);
  line-height: 1.75;
  margin-bottom: 32px;
  max-width: 520px;
}
.page-hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.page-hero-phone {
  font-size: var(--fs-base);
  color: rgba(255,255,255,0.90);
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}
.page-hero-phone a { color: #ffb07a; font-weight: 700; }
.page-hero-phone svg { width: 20px; height: 20px; fill: var(--orange); flex-shrink: 0; }
.page-hero-img {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.30);
}
.page-hero-img img {
  width: 100%;
  height: 340px;
  object-fit: cover;
  display: block;
}

/* ===== SPECS BAR ===== */
.specs-bar { background: var(--navy-dark); }
.specs-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.spec-item {
  padding: 24px 28px;
  border-right: 1px solid rgba(255,255,255,0.10);
  text-align: center;
}
.spec-item:last-child { border-right: none; }
.spec-value {
  font-family: var(--font-head);
  font-size: var(--fs-lg);
  font-weight: 900;
  color: #ffb07a;
  line-height: 1;
  margin-bottom: 6px;
}
.spec-label {
  font-size: var(--fs-xs);
  color: rgba(255,255,255,0.75);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ===== FOR / NOT FOR ===== */
.for-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
.for-col {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--border);
}

/* Coloured top accent bar */
.for-col--yes::before,
.for-col--no::before {
  content: '';
  display: block;
  height: 6px;
  width: 100%;
}
.for-col--yes::before { background: #1a7a4a; }
.for-col--no::before  { background: #c0392b; }

.for-col-inner { padding: 32px 32px 28px; }

.for-col-title {
  font-family: var(--font-head);
  font-size: var(--fs-base);
  font-weight: 700;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  line-height: 1.3;
}
.for-col--yes .for-col-title { color: #1a7a4a; }
.for-col--no  .for-col-title { color: #c0392b; }

/* Icon badge */
.for-col-icon {
  width: 40px; height: 40px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.for-col--yes .for-col-icon { background: #e8f5ee; }
.for-col--no  .for-col-icon { background: #fdecea; }
.for-col-icon svg { width: 22px; height: 22px; }
.for-col--yes .for-col-icon svg { fill: #1a7a4a; }
.for-col--no  .for-col-icon svg  { fill: #c0392b; }

.for-list { list-style: none; }
.for-item {
  font-size: var(--fs-base);
  color: var(--text);
  line-height: 1.55;
  padding: 13px 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.for-item:last-child { border-bottom: none; }

/* Tick / Cross pill */
.for-item-icon {
  width: 26px; height: 26px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}
.for-col--yes .for-item-icon { background: #e8f5ee; }
.for-col--no  .for-item-icon  { background: #fdecea; }
.for-item-icon svg { width: 14px; height: 14px; }
.for-col--yes .for-item-icon svg { fill: #1a7a4a; }
.for-col--no  .for-item-icon svg  { fill: #c0392b; }

.for-note {
  margin: 0;
  padding: 16px 32px 20px;
  background: var(--navy-light);
  font-size: var(--fs-sm);
  color: var(--navy);
  line-height: 1.65;
  border-top: 1px solid var(--border);
}
.for-note a { color: var(--orange); font-weight: 700; }

/* ===== FEATURE GRID ===== */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.feature-card {
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  display: flex;
  gap: 18px;
  align-items: flex-start;
  transition: box-shadow 0.2s, border-color 0.2s;
}
.feature-card:hover {
  border-color: var(--navy);
  box-shadow: var(--shadow);
}
.feature-icon {
  width: 52px; height: 52px;
  background: var(--navy-light);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.feature-icon svg { width: 26px; height: 26px; fill: var(--navy); }
.feature-card-title {
  font-family: var(--font-head);
  font-size: var(--fs-base);
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
  line-height: 1.3;
}
.feature-card-text {
  font-size: var(--fs-sm);
  color: var(--text-muted);
  line-height: 1.7;
}

/* ===== PERSONA CALLOUT STRIP ===== */
/* Who is this product designed for — 3 persona tiles */
.persona-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 60px;
}
.persona-tile {
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  display: flex;
  gap: 18px;
  align-items: flex-start;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.persona-tile:hover { border-color: var(--navy); box-shadow: var(--shadow); }
.persona-tile-icon {
  width: 56px; height: 56px;
  background: var(--navy);
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.persona-tile-icon svg { width: 28px; height: 28px; fill: var(--white); }
.persona-tile-title {
  font-family: var(--font-head);
  font-size: var(--fs-base);
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 6px;
  line-height: 1.3;
}
.persona-tile-text {
  font-size: var(--fs-xs);
  color: var(--text-muted);
  line-height: 1.7;
}

/* ===== FEATURE ROWS (horizontal alternating layout) ===== */
.feature-rows { display: flex; flex-direction: column; gap: 0; }
.feature-row {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 28px;
  align-items: flex-start;
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
}
.feature-row:first-child { border-top: 1px solid var(--border); }
.feature-row-icon {
  width: 60px; height: 60px;
  background: var(--navy-light);
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.feature-row-icon svg { width: 28px; height: 28px; fill: var(--navy); }
.feature-row-title {
  font-family: var(--font-head);
  font-size: var(--fs-base);
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
}
.feature-row-text {
  font-size: var(--fs-sm);
  color: var(--text-muted);
  line-height: 1.75;
}

/* ===== STEPS WITH IMAGE ===== */
.steps-with-img {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}

/* Left: image */
.steps-img-wrap {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,48,135,0.18);
}
.steps-img-wrap img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  display: block;
}
/* Orange accent bar on top */
.steps-img-wrap::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 5px;
  background: var(--orange);
  z-index: 1;
}

/* Right: step list */
.steps-list {
  list-style: none;
  position: relative;
}
/* Dashed vertical connector line */
.steps-list::before {
  content: '';
  position: absolute;
  left: 23px;
  top: 56px;
  bottom: 24px;
  width: 2px;
  background: repeating-linear-gradient(
    to bottom,
    var(--border) 0, var(--border) 10px,
    transparent 10px, transparent 18px
  );
}

.steps-list-item {
  display: flex;
  gap: 28px;
  align-items: flex-start;
  padding-bottom: 44px;
  position: relative;
}
.steps-list-item:last-child { padding-bottom: 0; }

.steps-num {
  width: 48px; height: 48px;
  background: var(--navy);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-family: var(--font-head);
  font-size: var(--fs-xs);
  font-weight: 700;
  color: var(--white);
  position: relative;
  z-index: 1;
  box-shadow: 0 4px 16px rgba(0,48,135,0.25);
  letter-spacing: 0.5px;
}

.steps-list-body { padding-top: 8px; }
.steps-list-title {
  font-family: var(--font-head);
  font-size: var(--fs-md);
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
  line-height: 1.3;
}
.steps-list-text {
  font-size: var(--fs-base);
  color: var(--text-muted);
  line-height: var(--lh-body);
}

/* Reversed: image right, steps left */
.steps-with-img--reverse { direction: rtl; }
.steps-with-img--reverse > * { direction: ltr; }

/* ===== GALLERY ===== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.gallery-img {
  border-radius: 12px;
  overflow: hidden;
}
.gallery-img img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}
.gallery-img:hover img { transform: scale(1.04); }
.gallery-placeholder {
  height: 260px;
  background: var(--navy-light);
  border-radius: 12px;
  border: 2px dashed var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.gallery-placeholder svg { width: 40px; height: 40px; fill: var(--navy); opacity: 0.3; }
.gallery-placeholder span {
  font-size: var(--fs-xs);
  color: var(--text-muted);
  font-weight: 600;
}

/* ===== PRICE CARDS ===== */
.price-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-bottom: 40px;
}
.price-card {
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 40px 36px;
  position: relative;
  transition: box-shadow 0.2s;
}
.price-card--featured { border-color: var(--navy); box-shadow: var(--shadow); }
.price-card-badge {
  position: absolute;
  top: -14px; left: 32px;
  background: var(--orange);
  color: var(--white);
  font-size: var(--fs-xs);
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 50px;
}
.price-card-name {
  font-family: var(--font-head);
  font-size: var(--fs-md);
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
}
.price-card-range {
  font-family: var(--font-head);
  font-size: var(--fs-xl);
  font-weight: 900;
  color: var(--navy);
  line-height: 1;
  margin-bottom: 20px;
}
.price-card-range span {
  font-size: var(--fs-sm);
  font-weight: 400;
  color: var(--text-muted);
  font-family: var(--font-body);
}
.price-card-list { list-style: none; margin-bottom: 28px; }
.price-card-list li {
  font-size: var(--fs-sm);
  color: var(--text-muted);
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 10px;
}
.price-card-list li:last-child { border-bottom: none; }
.price-card-list svg { width: 18px; height: 18px; fill: var(--green); flex-shrink: 0; }
.price-note {
  text-align: center;
  font-size: var(--fs-sm);
  color: var(--text-muted);
  line-height: 1.7;
}
.price-note a { color: var(--navy); font-weight: 700; }

/* ===== WARRANTY STRIP ===== */
.warranty-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.warranty-item {
  text-align: center;
  padding: 32px 24px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--radius);
}
.warranty-icon {
  width: 60px; height: 60px;
  background: rgba(255,255,255,0.10);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
}
.warranty-icon svg { width: 28px; height: 28px; fill: #ffb07a; }
.warranty-value {
  font-family: var(--font-head);
  font-size: var(--fs-lg);
  font-weight: 900;
  color: var(--white);
  margin-bottom: 6px;
}
.warranty-label {
  font-size: var(--fs-sm);
  color: rgba(255,255,255,0.75);
  line-height: 1.5;
}

/* ===== FAQ ===== */
.faq-list { list-style: none; }
.faq-item { border-bottom: 2px solid var(--border); }
.faq-item:first-child { border-top: 2px solid var(--border); }
.faq-question {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  padding: 24px 0;
  font-family: var(--font-body);
  font-size: var(--fs-base);
  font-weight: 700;
  color: var(--navy);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  line-height: 1.4;
}
.faq-question:hover { color: var(--orange); }
.faq-toggle {
  width: 34px; height: 34px;
  background: var(--navy-light);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: background 0.2s;
}
.faq-toggle svg { width: 16px; height: 16px; fill: var(--navy); transition: transform 0.25s; }
.faq-item--open .faq-toggle { background: var(--navy); }
.faq-item--open .faq-toggle svg { fill: var(--white); transform: rotate(45deg); }
.faq-answer {
  display: none;
  padding: 0 48px 24px 0;
  font-size: var(--fs-base);
  color: var(--text-muted);
  line-height: var(--lh-body);
  max-width: 740px;
}
.faq-item--open .faq-answer { display: block; }

/* ===== RELATED PAGES ===== */
.related-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.related-card {
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.related-card:hover {
  border-color: var(--navy);
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}
.related-card-img {
  width: 100%;
  height: 130px;
  object-fit: cover;
  border-radius: 8px;
  display: block;
  margin-bottom: 4px;
}
.related-card-title {
  font-family: var(--font-head);
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.3;
}
.related-card-text {
  font-size: var(--fs-xs);
  color: var(--text-muted);
  line-height: 1.65;
  flex: 1;
}
.related-card-link {
  font-size: var(--fs-xs);
  font-weight: 700;
  color: var(--navy);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: color 0.15s, gap 0.15s;
}
.related-card-link:hover { color: var(--orange); gap: 8px; }
.related-card-link svg { width: 16px; height: 16px; fill: currentColor; }

/* ===== PAGES RESPONSIVE ===== */

/* --- 1024px: Tablet Landscape --- */
@media (max-width: 1024px) {
  .persona-strip   { grid-template-columns: 1fr 1fr; }
  .persona-strip > :last-child { grid-column: 1 / -1; max-width: 480px; margin: 0 auto; }
  .steps-with-img  { gap: 48px; }
  .steps-img-wrap img { height: 400px; }
  .page-hero-grid  { grid-template-columns: 1fr 320px; gap: 36px; }
  .page-hero h1    { font-size: var(--fs-xl); }
  .feature-grid    { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid    { grid-template-columns: repeat(2, 1fr); }
  .warranty-grid   { grid-template-columns: repeat(2, 1fr); }
  .warranty-grid > :last-child { grid-column: 1 / -1; max-width: 420px; margin: 0 auto; }
  .related-grid    { grid-template-columns: repeat(2, 1fr); }
  .for-col         { padding: 28px 24px; }
}

/* --- 768px: Tablet Portrait / Mobile --- */
@media (max-width: 768px) {
  /* Steps with image */
  .steps-with-img            { grid-template-columns: 1fr; gap: 40px; }
  .steps-with-img--reverse   { direction: ltr; }
  .steps-img-wrap img        { height: 280px; }
  .steps-list::before        { display: none; }

  /* Persona + feature rows */
  .persona-strip             { grid-template-columns: 1fr; }
  .persona-strip > :last-child { grid-column: auto; max-width: 100%; }
  .feature-row               { grid-template-columns: 56px 1fr; gap: 20px; padding: 22px 0; }

  /* Page hero */
  .page-hero         { padding: 40px 0 52px; }
  .page-hero-grid    { grid-template-columns: 1fr; gap: 0; }
  .page-hero h1      { font-size: 32px; }
  .page-hero-sub     { font-size: var(--fs-sm); }
  .page-hero-img     { display: none; }
  .page-hero-actions { flex-direction: column; align-items: stretch; }
  .page-hero-actions .btn { justify-content: center; }

  /* Specs bar */
  .specs-grid              { grid-template-columns: repeat(2, 1fr); }
  .spec-item               { padding: 18px 16px; }
  .spec-item:nth-child(2)  { border-right: none; }
  .spec-item:nth-child(3),
  .spec-item:nth-child(4)  { border-top: 1px solid rgba(255,255,255,0.10); }
  .spec-value              { font-size: var(--fs-md); }

  /* For / Not for */
  .for-grid  { grid-template-columns: 1fr; }
  .for-col   { padding: 24px 20px; }
  .for-item  { font-size: var(--fs-sm); }

  /* Feature cards */
  .feature-grid { grid-template-columns: 1fr; }
  .feature-card { padding: 22px 20px; }

  /* Gallery */
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-img img,
  .gallery-placeholder { height: 220px; }

  /* Pricing */
  .price-grid        { grid-template-columns: 1fr; }
  .price-card        { padding: 28px 24px; }
  .price-card-range  { font-size: var(--fs-lg); }

  /* Warranty */
  .warranty-grid { grid-template-columns: 1fr; }
  .warranty-grid > :last-child { grid-column: auto; max-width: 100%; margin: 0; }
  .warranty-item { padding: 24px 20px; }
  .warranty-value { font-size: var(--fs-md); }

  /* FAQ */
  .faq-answer   { padding-right: 0; }
  .faq-question { font-size: var(--fs-sm); padding: 20px 0; }

  /* Related */
  .related-grid { grid-template-columns: repeat(2, 1fr); }
}

/* --- 480px: Small Phones --- */
@media (max-width: 480px) {
  /* Page hero */
  .page-hero    { padding: 32px 0 44px; }
  .page-hero h1 { font-size: 26px; }

  /* Specs: single column */
  .specs-grid          { grid-template-columns: 1fr; }
  .spec-item           { border-right: none !important; border-top: 1px solid rgba(255,255,255,0.10); padding: 14px 16px; }
  .spec-item:first-child { border-top: none; }
  .spec-value          { font-size: var(--fs-base); }

  /* Feature cards: stack icon above text */
  .feature-card        { flex-direction: column; gap: 14px; padding: 20px 18px; }
  .feature-icon        { width: 46px; height: 46px; }
  .feature-icon svg    { width: 22px; height: 22px; }

  /* For / Not for */
  .for-col       { padding: 20px 16px; }
  .for-col-title { font-size: var(--fs-base); }
  .for-item      { font-size: var(--fs-xs); }

  /* Pricing */
  .price-card       { padding: 24px 18px; }
  .price-card-range { font-size: var(--fs-md); }
  .price-card-name  { font-size: var(--fs-base); }

  /* Warranty */
  .warranty-item  { padding: 20px 16px; }
  .warranty-value { font-size: var(--fs-base); }

  /* Related: single column */
  .related-grid { grid-template-columns: 1fr; }
  .related-card-img { height: 180px; }
}
