/* ========================================
   KEYMASTER — Shared Inner-Page Styles
   Extends style.css for all sub-pages
   ======================================== */

/* ── Breadcrumb ─────────────────────────────────── */
.breadcrumb {
  background: var(--navy);
  padding: 80px 0 28px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.breadcrumb-inner {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  color: var(--silver);
}
.breadcrumb-inner a {
  color: var(--silver);
  transition: color var(--transition);
}
.breadcrumb-inner a:hover { color: var(--red); }
.breadcrumb-inner .sep { opacity: 0.4; }
.breadcrumb-inner .current { color: var(--white); font-weight: 600; }

/* ── Page Hero (inner pages) ──────────────────── */
.page-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy2) 100%);
  padding: 56px 0 64px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 100%, rgba(212,43,43,0.12) 0%, transparent 70%);
  pointer-events: none;
}
.page-hero .page-icon {
  width: 80px;
  height: 80px;
  border-radius: 20px;
  background: linear-gradient(135deg, var(--red) 0%, #9b1515 100%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--white);
  margin-bottom: 20px;
  box-shadow: 0 8px 32px rgba(212,43,43,0.35);
}
.page-hero h1 {
  font-size: clamp(1.9rem, 5vw, 3rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 14px;
}
.page-hero p {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--silver);
  max-width: 600px;
  margin: 0 auto 28px;
  line-height: 1.7;
}
.page-hero-btns {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── Content Section ────────────────────────────── */
.content-section {
  padding: 72px 0;
  background: var(--white);
}
.content-section.alt-bg {
  background: var(--gray);
}
.content-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 56px;
  align-items: start;
}
.content-body h2 {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 900;
  color: var(--navy);
  margin-bottom: 16px;
  line-height: 1.3;
}
.content-body h3 {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--navy);
  margin: 28px 0 10px;
}
.content-body p {
  font-size: 1rem;
  color: var(--text-lt);
  line-height: 1.8;
  margin-bottom: 16px;
}
.content-body ul, .content-body ol {
  padding-right: 20px;
  margin-bottom: 16px;
}
.content-body li {
  font-size: 1rem;
  color: var(--text-lt);
  line-height: 1.75;
  margin-bottom: 8px;
}
.content-body li::marker { color: var(--red); font-weight: 700; }

/* ── Sidebar CTA ─────────────────────────────────── */
.sidebar-cta {
  position: sticky;
  top: 90px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.sidebar-card {
  background: var(--navy);
  border-radius: 16px;
  padding: 28px 24px;
  color: var(--silver);
  text-align: center;
}
.sidebar-card h3 {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 12px;
}
.sidebar-card p {
  font-size: 0.9rem;
  margin-bottom: 20px;
  line-height: 1.6;
  color: var(--silver);
}
.sidebar-card .btn { width: 100%; justify-content: center; margin-bottom: 10px; }

.price-card {
  background: var(--white);
  border: 2px solid var(--red);
  border-radius: 16px;
  padding: 24px;
  text-align: center;
}
.price-card .price-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--text-lt);
  margin-bottom: 8px;
}
.price-card .price-range {
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--red);
  line-height: 1.2;
}
.price-card .price-note {
  font-size: 0.82rem;
  color: var(--text-lt);
  margin-top: 6px;
}

/* ── Steps / Process ────────────────────────────── */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  margin-top: 40px;
}
.step-item {
  text-align: center;
  padding: 28px 20px;
  background: var(--white);
  border-radius: 14px;
  box-shadow: var(--shadow);
  position: relative;
}
.step-num {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--red) 0%, #9b1515 100%);
  color: var(--white);
  font-weight: 900;
  font-size: 1.1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}
.step-item h4 { font-size: 1rem; font-weight: 800; color: var(--navy); margin-bottom: 8px; }
.step-item p  { font-size: 0.9rem; color: var(--text-lt); line-height: 1.6; }

/* ── FAQ Accordion ───────────────────────────────── */
.faq-list { display: flex; flex-direction: column; gap: 12px; margin-top: 32px; }
.faq-item {
  background: var(--white);
  border-radius: 12px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 20px 24px;
  text-align: right;
  font-family: 'Heebo', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.faq-question .faq-icon { font-size: 0.85rem; color: var(--red); transition: transform var(--transition); flex-shrink: 0; }
.faq-item.open .faq-icon { transform: rotate(180deg); }
.faq-answer {
  padding: 0 24px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
}
.faq-item.open .faq-answer {
  max-height: 400px;
  padding: 0 24px 20px;
}
.faq-answer p { font-size: 0.97rem; color: var(--text-lt); line-height: 1.75; }

/* ── Related Services ───────────────────────────── */
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 32px;
}
.related-card {
  background: var(--white);
  border-radius: 14px;
  padding: 24px 20px;
  box-shadow: var(--shadow);
  border-top: 3px solid transparent;
  transition: transform var(--transition), border-color var(--transition);
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: inherit;
}
.related-card:hover { transform: translateY(-4px); border-top-color: var(--red); }
.related-card .related-icon {
  width: 46px; height: 46px; border-radius: 10px;
  background: linear-gradient(135deg, var(--red) 0%, #9b1515 100%);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; color: var(--white); flex-shrink: 0;
}
.related-card h4 { font-size: 0.97rem; font-weight: 800; color: var(--navy); }

/* ── Blog Article Styles ───────────────────────── */
.article-meta {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 2px solid var(--gray);
}
.article-meta .meta-tag {
  background: rgba(212,43,43,0.1);
  color: var(--red);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 50px;
}
.article-meta .meta-date,
.article-meta .meta-read {
  font-size: 0.87rem;
  color: var(--text-lt);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ── Responsive inner pages ──────────────────────── */
@media (max-width: 900px) {
  .content-grid {
    grid-template-columns: 1fr;
  }
  .sidebar-cta {
    position: static;
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 600px) {
  .sidebar-cta { grid-template-columns: 1fr; }
  .page-hero { padding: 48px 0 52px; }
  .steps-grid { grid-template-columns: 1fr 1fr; }
}
