/* ============================================================
   page.css — Inner pages (services, blog)
   Supplements styles.css — always loaded together
============================================================ */

/* ── PAGE HERO ──────────────────────────────────────────────── */
.page-hero {
  background: var(--navy-darkest);
  border-bottom: 1px solid var(--navy-border);
  padding: 100px 0 64px;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 60% 40%, rgba(232,89,10,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.page-hero .container { position: relative; z-index: 1; }

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.breadcrumb a { color: var(--text-muted); text-decoration: none; transition: color 0.2s; }
.breadcrumb a:hover { color: var(--orange); }
.breadcrumb-sep { color: var(--navy-border); font-size: 0.7rem; }
.breadcrumb-current { color: var(--text-secondary); }

.page-hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
  max-width: 720px;
}
.page-hero h1 span { color: var(--orange); }

.page-hero-sub {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--text-secondary);
  line-height: 1.65;
  max-width: 560px;
  margin: 0 0 32px;
}
.page-hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
.page-hero-trust {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
}
.page-hero-trust-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.page-hero-trust-item svg { color: var(--orange); flex-shrink: 0; }

/* ── CONTENT SECTIONS ───────────────────────────────────────── */
.content-section {
  padding: 80px 0;
  border-bottom: 1px solid var(--navy-border);
}
.content-section:last-child { border-bottom: none; }
.content-section.bg-dark { background: var(--navy-darkest); }
.content-section.bg-mid  { background: var(--navy-dark); }
.content-section.bg-navy { background: var(--navy); }

.section-intro {
  max-width: 680px;
  margin: 0 auto 56px;
  text-align: center;
}
.section-intro h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.02em;
  margin: 0 0 14px;
}
.section-intro p {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin: 0;
}
.section-intro .section-badge { margin-bottom: 12px; }

/* ── TWO-COLUMN LAYOUT ──────────────────────────────────────── */
.two-col {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
}
@media(min-width:768px) { .two-col { grid-template-columns: 1fr 1fr; } }
@media(min-width:900px) { .two-col { gap: 64px; } }
.two-col.reverse { direction: rtl; }
.two-col.reverse > * { direction: ltr; }

.col-img {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  position: relative;
}
.col-img img {
  display: block;
  width: 100%;
  height: 360px;
  object-fit: cover;
  object-position: center;
}
@media(min-width:768px) { .col-img img { height: 420px; } }

.col-text h2 {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.02em;
  margin: 0 0 16px;
}
.col-text h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  margin: 28px 0 10px;
}
.col-text p {
  color: var(--text-secondary);
  line-height: 1.75;
  margin: 0 0 14px;
}
.col-text ul {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.col-text ul li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}
.col-text ul li::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--orange);
  flex-shrink: 0;
  margin-top: 8px;
}

/* ── BENEFITS GRID ──────────────────────────────────────────── */
.benefits-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media(min-width:600px) { .benefits-grid { grid-template-columns: 1fr 1fr; } }
@media(min-width:900px) { .benefits-grid { grid-template-columns: repeat(3, 1fr); } }

.benefit-card {
  background: var(--navy);
  border: 1px solid var(--navy-border);
  border-radius: 12px;
  padding: 28px 24px;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.benefit-card:hover {
  border-color: rgba(232,89,10,0.4);
  box-shadow: 0 8px 32px rgba(0,0,0,0.35);
}
.benefit-icon {
  width: 44px; height: 44px;
  background: rgba(232,89,10,0.12);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
  color: var(--orange);
}
.benefit-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  margin: 0 0 8px;
}
.benefit-card p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin: 0;
}

/* ── PROCESS STEPS ──────────────────────────────────────────── */
.process-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
  max-width: 700px;
  margin: 0 auto;
}
.process-step {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding-bottom: 40px;
  position: relative;
}
.process-step:last-child { padding-bottom: 0; }
.process-step:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 19px;
  top: 44px;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--orange) 0%, var(--navy-border) 100%);
}
.step-num {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--orange);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}
.step-content h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--white);
  margin: 8px 0 6px;
}
.step-content p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.65;
  margin: 0;
}

/* ── FAQ ────────────────────────────────────────────────────── */
.page-faq { max-width: 720px; margin: 0 auto; }

/* reuse .faq-item/.faq-question from styles.css */

/* ── PHOTO GRID ─────────────────────────────────────────────── */
.photo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
@media(min-width:768px) { .photo-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; } }
.photo-grid img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 10px;
  display: block;
  border: 1px solid var(--navy-border);
  transition: transform 0.3s, box-shadow 0.3s;
}
@media(min-width:768px) { .photo-grid img { height: 260px; } }
.photo-grid img:hover { transform: scale(1.02); box-shadow: 0 12px 32px rgba(0,0,0,0.5); }

/* ── SERVICE PAGE CTA BANNER ────────────────────────────────── */
.cta-banner {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 100%);
  border: 1px solid var(--navy-border);
  border-radius: 16px;
  padding: 48px 40px;
  text-align: center;
}
.cta-banner h2 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 800;
  color: var(--white);
  margin: 0 0 12px;
}
.cta-banner p {
  color: var(--text-secondary);
  font-size: 1rem;
  margin: 0 0 28px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}
.cta-banner-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

/* ── BLOG STYLES ────────────────────────────────────────────── */
.blog-hero { padding: 80px 0 56px; }

/* Blog article layout wrapper — constrains article width for readability */
.article-layout {
  max-width: 800px;
  margin: 0 auto;
}

.article-body {
  max-width: 760px;
  margin: 0 auto;
}
.article-body h2 {
  font-size: clamp(1.35rem, 2.5vw, 1.85rem);
  font-weight: 800;
  color: var(--white);
  margin: 52px 0 16px;
  letter-spacing: -0.02em;
  line-height: 1.25;
}
.article-body h3 {
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  font-weight: 700;
  color: var(--white);
  margin: 32px 0 12px;
}
.article-body p {
  color: var(--text-secondary);
  line-height: 1.85;
  margin: 0 0 22px;
  font-size: 1rem;
}
.article-body ul, .article-body ol {
  padding-left: 0;
  list-style: none;
  margin: 0 0 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.article-body ul li, .article-body ol li {
  display: flex;
  gap: 12px;
  color: var(--text-secondary);
  line-height: 1.7;
  font-size: 0.97rem;
  align-items: flex-start;
}
.article-body ul li::before {
  content: '';
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--orange);
  flex-shrink: 0;
  margin-top: 8px;
}
.article-body ol { counter-reset: ol-counter; }
.article-body ol li { counter-increment: ol-counter; }
.article-body ol li::before {
  content: counter(ol-counter);
  background: var(--orange);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
  width: 22px; height: 22px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  margin-top: 3px;
}
.article-body strong { color: var(--white); font-weight: 700; }

/* ── ARTICLE IMAGES ─────────────────────────────────────────── */
/*
  Root-cause fix: the original .article-img rule set height: 320px on
  the <figure> element but did NOT set overflow: hidden. The <img>
  inside rendered at its natural height (often 400px+), overflowed the
  320px figure box, and the next sibling <h2> started at 320px from
  figure-top — landing directly ON TOP of the photo.

  Fix: set the container styles on the figure, then target the img and
  figcaption as children for height / object-fit / caption display.
*/

/* Shared container — works for both <figure> and <img> */
.article-img {
  width: 100%;
  border-radius: 14px;
  margin: 40px 0;
  border: 1px solid var(--navy-border);
  overflow: hidden;         /* ← prevents child overflow into siblings */
  display: block;
  background: var(--navy-dark);
}

/* <img class="article-img"> — direct image element */
img.article-img {
  height: 280px;
  object-fit: cover;
  object-position: center;
}
@media(min-width:600px) { img.article-img { height: 340px; } }
@media(min-width:900px) { img.article-img { height: 420px; } }

/* <figure class="article-img"> — figure wrapping img + figcaption */
figure.article-img { padding: 0; }

figure.article-img img {
  display: block;
  width: 100%;
  height: 260px;
  object-fit: cover;
  object-position: center;
  margin: 0;          /* critical: no margin so it touches figure edges */
}
@media(min-width:600px) { figure.article-img img { height: 320px; } }
@media(min-width:900px) { figure.article-img img { height: 400px; } }

figure.article-img figcaption {
  display: block;
  padding: 12px 18px;
  font-size: 0.78rem;
  color: var(--text-muted);
  text-align: center;
  font-style: italic;
  line-height: 1.5;
  border-top: 1px solid var(--navy-border);
  background: var(--navy-dark);
}

.article-callout {
  background: var(--navy);
  border-left: 3px solid var(--orange);
  border-radius: 0 8px 8px 0;
  padding: 20px 24px;
  margin: 28px 0;
}
.article-callout p {
  margin: 0;
  color: var(--text-primary);
  font-size: 0.97rem;
}

.blog-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  margin-bottom: 32px;
}
.blog-meta-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.blog-meta-item svg { color: var(--orange); }

.blog-card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media(min-width:600px) { .blog-card-grid { grid-template-columns: 1fr 1fr; } }
@media(min-width:900px) { .blog-card-grid { grid-template-columns: repeat(3, 1fr); } }

.blog-card {
  background: var(--navy);
  border: 1px solid var(--navy-border);
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s;
}
.blog-card:hover {
  border-color: rgba(232,89,10,0.4);
  box-shadow: 0 12px 40px rgba(0,0,0,0.5);
  transform: translateY(-4px);
}
.blog-card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}
.blog-card-body { padding: 20px; flex: 1; display: flex; flex-direction: column; gap: 8px; }
.blog-card-tag {
  font-size: 0.65rem;
  font-weight: 800;
  color: var(--orange);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.blog-card-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.4;
  margin: 0;
}
.blog-card-excerpt {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
  flex: 1;
}
.blog-card-read {
  font-size: 0.78rem;
  color: var(--orange);
  font-weight: 700;
  margin-top: 4px;
}

/* ── RELATED SERVICES SIDEBAR ───────────────────────────────── */
.related-services {
  background: var(--navy);
  border: 1px solid var(--navy-border);
  border-radius: 12px;
  padding: 24px;
  margin-top: 48px;
}
.related-services h3 {
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin: 0 0 14px;
}
.related-services ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.related-services ul li a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s;
}
.related-services ul li a::before {
  content: '→';
  color: var(--orange);
  font-size: 0.8rem;
}
.related-services ul li a:hover { color: var(--orange); }

/* ── SERVICE PAGE INLINE CTA ────────────────────────────────── */
.inline-cta {
  background: linear-gradient(135deg, rgba(232,89,10,0.12) 0%, transparent 100%);
  border: 1px solid rgba(232,89,10,0.25);
  border-radius: 12px;
  padding: 32px 28px;
  margin: 40px 0;
  text-align: center;
}
.inline-cta h3 {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--white);
  margin: 0 0 8px;
}
.inline-cta p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin: 0 0 20px;
}
.inline-cta-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

/* ── SECTION-TITLE-CENTER ───────────────────────────────────── */
/* Used on standalone <h2> elements that need centered section heading style */
.section-title-center {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.02em;
  margin: 0 0 16px;
  text-align: center;
  line-height: 1.2;
}

/* ── INLINE-CTA AS SECTION ──────────────────────────────────── */
/* When .inline-cta is used as a <section> (full-width), remove card chrome */
section.inline-cta {
  border-radius: 0;
  border-left: none;
  border-right: none;
  border-top: 1px solid var(--navy-border);
  border-bottom: 1px solid var(--navy-border);
  background: linear-gradient(135deg, rgba(232,89,10,0.1) 0%, transparent 70%);
  margin: 0;
  padding: 56px 0;
}

/* ── BENEFIT ICON — EMOJI SUPPORT ───────────────────────────── */
/* Emoji icons in benefit-icon render at default font size;
   this ensures they fill the 44px container consistently */
.benefit-icon { font-size: 1.45rem; }

/* ── COL-IMG MOBILE HEIGHT ──────────────────────────────────── */
/* Prevent images from being excessively tall on small screens */
@media(max-width:767px) {
  .col-img img { height: 220px; }
}

/* ── FAQ LIST IN ARTICLE BODY ───────────────────────────────── */
/* <details>/<summary> used in blog FAQ sections */
.faq-list details.faq-item {
  border-bottom: 1px solid var(--navy-border);
}
.faq-list details.faq-item summary.faq-question {
  cursor: pointer;
  padding: 16px 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--white);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  user-select: none;
}
.faq-list details.faq-item summary.faq-question::-webkit-details-marker { display: none; }
.faq-list details.faq-item summary.faq-question::after {
  content: '+';
  color: var(--orange);
  font-size: 1.2rem;
  font-weight: 400;
  flex-shrink: 0;
  transition: transform 0.2s;
}
.faq-list details[open].faq-item summary.faq-question::after {
  transform: rotate(45deg);
}
.faq-list details.faq-item .faq-answer {
  padding: 0 0 20px;
}
.faq-list details.faq-item .faq-answer p {
  color: var(--text-secondary);
  line-height: 1.75;
  font-size: 0.95rem;
  margin: 0;
}

/* ── RESPONSIVE FIXES ───────────────────────────────────────── */
@media(max-width:600px) {
  .page-hero { padding: 90px 0 48px; }
  .content-section { padding: 56px 0; }
  .cta-banner { padding: 32px 20px; }
  .inline-cta { padding: 24px 20px; }
  section.inline-cta { padding: 40px 0; }
  .two-col { gap: 32px; }
  .section-intro { margin-bottom: 36px; }
  .article-body h2 { margin-top: 40px; }
  .process-steps { max-width: 100%; }
}
