/* ================================================================
   EMERGE GLOBAL — INNER PAGES
   Loads after main.css, so every token and base style is available.
   Covers: inner hero, page content scope, landing-page section classes,
   contact layout, pagination.
================================================================ */

/* ── Inner page shell ─────────────────────────────────────────── */
.ip { display: block; }

.page-hero {
  position: relative;
  background: var(--blue-dark);
  color: #fff;
  padding: clamp(90px, 12vw, 150px) 0 clamp(56px, 7vw, 90px);
  overflow: hidden;
  isolation: isolate;
}
.page-hero .wrap { position: relative; z-index: 2; }
.page-hero h1 {
  font-family: var(--font-title); font-weight: 700;
  font-size: clamp(42px, 7vw, 84px); line-height: .98;
  text-transform: uppercase; letter-spacing: .5px;
  max-width: 18ch;
}
.page-hero .lead {
  margin-top: 18px; max-width: 62ch;
  font-size: clamp(16px, 1.5vw, 19px); line-height: 1.65;
  color: rgba(255,255,255,.82); font-weight: 300;
}
.page-hero .eyebrow { color: var(--blue-light); }

/* Decorative grid backdrop (parts/hero-grid.php). Purely visual. */
.hero-grid {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.055) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 90% 70% at 70% 0%, #000 25%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 70% 0%, #000 25%, transparent 75%);
}
.hero-grid::after {
  content: ""; position: absolute; inset: -30% -10% auto auto;
  width: 60%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, rgba(24,164,218,.38), transparent 62%);
  filter: blur(8px);
}

/* ── Page content scope ───────────────────────────────────────── */
.lp-content {
  padding: clamp(48px, 6vw, 84px) 0 clamp(56px, 7vw, 96px);
  font-size: 17px; line-height: 1.75; color: #4a5462;
}
.lp-content > * + * { margin-top: 1.1em; }
.lp-content h2 {
  font-family: var(--font-title); font-weight: 700;
  font-size: clamp(30px, 4vw, 46px); line-height: 1.05;
  text-transform: uppercase; letter-spacing: .5px;
  color: var(--charcoal); margin-top: 1.6em;
}
.lp-content h3 {
  font-family: var(--font-title); font-weight: 700;
  font-size: clamp(22px, 2.6vw, 30px); line-height: 1.15;
  text-transform: uppercase; color: var(--charcoal); margin-top: 1.5em;
}
.lp-content h4 { font-size: 19px; font-weight: 700; color: var(--charcoal); margin-top: 1.4em; }
.lp-content a { color: var(--blue-dark); text-decoration: underline; text-underline-offset: 3px; }
.lp-content a:hover { color: var(--blue-light); }
.lp-content ul, .lp-content ol { padding-left: 1.3em; }
.lp-content li + li { margin-top: .45em; }
.lp-content img { border-radius: 12px; height: auto; }
.lp-content blockquote {
  margin: 1.6em 0; padding: 22px 26px;
  border-left: 3px solid var(--blue-light);
  background: var(--off-white); border-radius: 0 10px 10px 0;
  font-size: 18px; color: var(--charcoal);
}
.lp-content table { width: 100%; border-collapse: collapse; font-size: 15px; }
.lp-content th, .lp-content td { padding: 12px 14px; border-bottom: 1px solid var(--grey-mid); text-align: left; }
.lp-content th { font-weight: 700; color: var(--charcoal); }
.lp-content figure { margin: 1.6em 0; }
.lp-content figcaption { font-size: 14px; color: #6b7685; margin-top: 8px; }

/* ── Landing page section classes (authored in the editor) ────── */
.pg-grid { display: grid; gap: 22px; margin: 2em 0; }
.pg-grid.c2 { grid-template-columns: repeat(2, 1fr); }
.pg-grid.c3 { grid-template-columns: repeat(3, 1fr); }
.pg-grid.c4 { grid-template-columns: repeat(4, 1fr); }

.pg-card {
  background: #fff; border: 1px solid var(--grey-mid); border-radius: 14px;
  padding: 26px 24px; display: flex; flex-direction: column;
  transition: box-shadow var(--t), transform var(--t);
}
.pg-card:hover { box-shadow: 0 14px 40px rgba(22,94,150,.12); transform: translateY(-3px); }
.pg-card .top { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.pg-card .pg-ic { width: 40px; height: 40px; flex: 0 0 40px; display: grid; place-items: center;
  border-radius: 10px; background: var(--blue-dark); color: #fff; }
.pg-card .pg-ic svg { width: 20px; height: 20px; }
.pg-card .pg-num { font-family: var(--font-title); font-size: 30px; color: var(--blue-light); line-height: 1; }
.pg-card h3 { margin: 0 0 8px; font-size: 21px; text-transform: none; letter-spacing: 0; }
.pg-card p { margin: 0; font-size: 15px; line-height: 1.65; color: #6b7685; }
.pg-card .out { margin-top: auto; padding-top: 16px; font-weight: 700; font-size: 14px; color: var(--blue-dark); }
.pg-card .pg-media { margin: -26px -24px 18px; border-radius: 14px 14px 0 0; overflow: hidden; aspect-ratio: 16/10; background: var(--off-white); }
.pg-card .pg-media img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; display: block; }
.pg-card .pg-media.is-placeholder { background: linear-gradient(135deg, var(--blue-dark), var(--blue-light)); }

.pg-steps { counter-reset: step; display: grid; gap: 18px; margin: 2em 0; }
.pg-step {
  position: relative; padding: 22px 24px 22px 74px;
  background: var(--off-white); border-radius: 12px;
}
.pg-step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  position: absolute; left: 24px; top: 20px;
  font-family: var(--font-title); font-size: 30px; color: var(--blue-light); line-height: 1;
}
.pg-step h3 { margin: 0 0 6px; font-size: 20px; text-transform: none; letter-spacing: 0; }
.pg-step p { margin: 0; font-size: 15px; color: #6b7685; }

.pg-banner {
  margin: 2.4em 0; padding: clamp(30px, 5vw, 54px);
  background: var(--blue-dark); color: #fff; border-radius: 16px; text-align: center;
}
.pg-banner h2, .pg-banner h3 { color: #fff; margin-top: 0; }
.pg-banner p { color: rgba(255,255,255,.82); max-width: 60ch; margin: 12px auto 0; }
.pg-banner .btn-primary { margin-top: 22px; background: #fff; color: var(--blue-dark); }
.pg-banner .btn-primary:hover { background: var(--blue-light); color: #fff; }

.pg-quote {
  margin: 2.2em 0; padding: 28px 30px; border-radius: 14px;
  background: var(--off-white); border-left: 3px solid var(--blue-light);
  font-size: 19px; line-height: 1.6; color: var(--charcoal);
}
.pg-quote cite { display: block; margin-top: 14px; font-size: 14px; font-style: normal; color: #6b7685; }

/* ── FAQ accordion (progressively enhanced) ───────────────────── */
.faq-list { margin: 1.6em 0; border-top: 1px solid var(--grey-mid); }
.faq-item { border-bottom: 1px solid var(--grey-mid); }
.faq-q {
  width: 100%; background: none; border: 0; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 20px 0; text-align: left;
  font-family: var(--font-body); font-size: 18px; font-weight: 700; color: var(--charcoal);
}
.faq-q::after {
  content: ""; flex: 0 0 12px; width: 12px; height: 12px;
  border-right: 2px solid var(--blue-light); border-bottom: 2px solid var(--blue-light);
  transform: rotate(45deg) translateY(-3px); transition: transform var(--t);
}
.faq-item.open .faq-q::after { transform: rotate(-135deg) translateY(-3px); }
.faq-a { overflow: hidden; height: 0; transition: height var(--t); }
.faq-a > div { padding: 0 0 22px; color: #6b7685; font-size: 16px; line-height: 1.7; }

/* ── Carousel (progressively enhanced from .pg-grid) ──────────── */
.car { position: relative; margin: 2em 0; }
.car-track {
  display: flex; gap: 22px; overflow-x: auto;
  scroll-snap-type: x mandatory; scrollbar-width: none;
  padding-bottom: 6px;
}
.car-track::-webkit-scrollbar { display: none; }
.car-track > .pg-card { flex: 0 0 auto; width: clamp(260px, 78vw, 340px); scroll-snap-align: start; }
.car-track.drag { scroll-snap-type: none; cursor: grabbing; }
.car-nav { display: flex; gap: 10px; justify-content: flex-end; margin-bottom: 14px; }
.car-btn {
  width: 42px; height: 42px; border-radius: 50%; cursor: pointer;
  border: 1px solid var(--grey-mid); background: #fff; color: var(--blue-dark);
  display: grid; place-items: center; transition: background var(--t), color var(--t);
}
.car-btn:hover { background: var(--blue-dark); color: #fff; }
.car-btn svg { width: 16px; height: 16px; }
.car-dots { display: flex; gap: 8px; justify-content: center; margin-top: 18px; }
.car-dot {
  width: 8px; height: 8px; padding: 0; border: 0; border-radius: 50%; cursor: pointer;
  background: var(--grey-mid); transition: background var(--t), width var(--t);
}
.car-dot.active { background: var(--blue-dark); width: 22px; border-radius: 4px; }

/* ── Contact ──────────────────────────────────────────────────── */
.contact-grid {
  display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(30px, 5vw, 64px);
  padding: clamp(48px, 6vw, 84px) 0;
}
.contact-meta h2 { font-family: var(--font-title); text-transform: uppercase; font-size: 30px; color: var(--charcoal); }
.contact-meta dl { margin-top: 24px; display: grid; gap: 20px; }
.contact-meta dt { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--blue-light); }
.contact-meta dd { margin: 4px 0 0; font-size: 17px; line-height: 1.65; color: var(--charcoal); }
.contact-meta a { color: var(--blue-dark); }

/* ── Pagination ───────────────────────────────────────────────── */
.pagination { display: flex; justify-content: center; gap: 8px; padding: 48px 0 0; }
.pagination .page-numbers {
  min-width: 42px; height: 42px; padding: 0 12px; border-radius: 8px;
  display: grid; place-items: center; text-decoration: none;
  border: 1px solid var(--grey-mid); color: var(--charcoal); font-weight: 600;
}
.pagination .page-numbers:hover { border-color: var(--blue-light); color: var(--blue-dark); }
.pagination .page-numbers.current { background: var(--blue-dark); border-color: var(--blue-dark); color: #fff; }

/* ── Responsive ───────────────────────────────────────────────── */
@media (max-width: 1000px) {
  .pg-grid.c3, .pg-grid.c4 { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .pg-grid.c2, .pg-grid.c3, .pg-grid.c4 { grid-template-columns: 1fr; }
  .pg-step { padding: 20px 20px 20px 64px; }
}

@media (prefers-reduced-motion: reduce) {
  .car-track { scroll-behavior: auto; }
  .faq-a { transition: none; }
}
