/* ════════════════════════════════════════════════════════════════
   css/inner-page.css
   Modern layout system for Services / Tools / Resources / Locations /
   Industries sub-pages. Every color, radius, and font token below is
   reused from the existing :root variables in style.css — no new
   design language, no new colors are introduced.
   ──────────────────────────────────────────────────────────────── */

/* ──────────────────────────────────────────────────────────────
   1. SIMPLE HERO (breadcrumb banner) — used by index/listing pages
      (Tools index, Industries index, Locations index, and any page
      without a lead-capture form)
   ────────────────────────────────────────────────────────────── */
.ip-hero {
  position: relative;
  padding: 150px 0 64px;
  overflow: hidden;
  text-align: center;
}
.ip-hero__blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
}
.ip-hero__blob--1 {
  width: 480px; height: 480px;
  background: radial-gradient(circle, rgba(255,107,26,0.18) 0%, transparent 70%);
  top: -160px; right: -100px;
}
.ip-hero__blob--2 {
  width: 320px; height: 320px;
  background: radial-gradient(circle, rgba(255,107,26,0.08) 0%, transparent 70%);
  bottom: -60px; left: -100px;
}
.ip-hero__noise {
  position: absolute;
  inset: 0;
  background-image: url("../assets/bg-about.png");
  background-repeat: no-repeat;
  background-size: cover;
  opacity: 0.25;
  pointer-events: none;
}
.ip-hero__inner {
  position: relative;
  z-index: 2;
  max-width: 760px;
  margin: 0 auto;
  padding: 0 20px;
}
.ip-hero__title {
  font-family: var(--about-font-display);
  font-size: clamp(2rem, 4.4vw, 3.2rem);
  line-height: 1.12;
  color: var(--fg);
  margin-bottom: 16px;
}
.ip-hero__sub {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--fg-sub);
  max-width: 600px;
  margin: 0 auto;
}

/* ──────────────────────────────────────────────────────────────
   2. BREADCRUMB — shared by every inner page, simple or split-hero
   ────────────────────────────────────────────────────────────── */
.ip-crumb {
  font-family: 'Inter', sans-serif;
  font-size: 12.5px;
  color: var(--about-text-dim);
  margin-bottom: 22px;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.ip-hero .ip-crumb { justify-content: center; }
.ip-crumb a { color: var(--about-text-dim); text-decoration: none; transition: color 0.2s; }
.ip-crumb a:hover { color: var(--orange-lt); }
.ip-crumb__sep { font-size: 9px; color: var(--about-text-dim); opacity: 0.6; }
.ip-crumb__current { color: var(--orange-lt); font-weight: 500; }

.ip-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--about-orange-dim);
  border: 1px solid var(--about-orange-glow);
  color: var(--about-orange);
  font-size: 14px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 22px;
}
.ip-hero .ip-hero__badge { margin: 0 auto 22px; }
.ip-hero__badge-dot {
  width: 6px; height: 6px;
  background: var(--about-orange);
  border-radius: 50%;
  display: none;
}

/* ──────────────────────────────────────────────────────────────
   3. SPLIT HERO — left content column + right lead-capture form.
      Used by every service-style page (SEO, Custom SEO, Link
      Building, etc.) that needs to convert a visitor on arrival.
   ────────────────────────────────────────────────────────────── */
.ip-split-hero {
  position: relative;
  padding: 140px 0 60px;
  overflow: hidden;
}
.ip-split-hero__blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
}
.ip-split-hero__blob--1 {
  width: 520px; height: 520px;
  background: radial-gradient(circle, rgba(255,107,26,0.16) 0%, transparent 70%);
  top: -180px; right: -140px;
}
.ip-split-hero__blob--2 {
  width: 360px; height: 360px;
  background: radial-gradient(circle, rgba(255,107,26,0.08) 0%, transparent 70%);
  bottom: -100px; left: -120px;
}
.ip-split-hero__noise {
  position: absolute;
  inset: 0;
  background-image: url("../assets/bg-services.png");
  background-repeat: no-repeat;
  background-size: cover;
  opacity: 0.2;
  pointer-events: none;
}
.ip-split-hero__inner {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: start;
}
.ip-split-hero__title {
  font-family: var(--about-font-display);
  font-size: clamp(1.9rem, 3.6vw, 2.85rem);
  line-height: 1.18;
  color: var(--fg);
  margin-bottom: 18px;
}
.ip-split-hero__title em {
  font-style: normal;
  color: var(--about-orange);
}
.ip-split-hero__text {
  font-family: 'Inter', sans-serif;
  font-size: 17px;
  line-height: 1.75;
  color: var(--fg-sub);
  margin-bottom: 24px;
  max-width: 560px;
}
.ip-split-hero__points {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
.ip-split-hero__point {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 18px;
  color: var(--fg);
  line-height: 1.45;
}
.ip-split-hero__point svg {
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--about-orange);
  background: var(--about-orange-dim);
  border-radius: 50%;
  padding: 3px;
  width: 22px; 
  height: 22px;
  box-sizing: border-box;
}

/* ── Lead form card (reuses .contact-form* primitives) ── */
.ip-lead-card {
  background: var(--about-bg-card);
  border: 1px solid var(--about-border);
  border-radius: var(--about-radius);
  padding: 32px 28px;
  position: sticky;
  top: 110px;
}
.ip-lead-card__heading {
  font-family: var(--about-font-display);
  font-size: 1.5rem;
  color: var(--fg);
  margin-bottom: 6px;
}
.ip-lead-card__heading em { font-style: normal; color: var(--about-orange); }
.ip-lead-card__sub {
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  color: var(--about-text-dim);
  margin-bottom: 22px;
  line-height: 1.55;
}

/* ──────────────────────────────────────────────────────────────
   4. TICKER STRIP — directly below every inner-page hero.
      Reuses the existing .our-services-ticker animation/track,
      just allows a custom item list per page via .ip-ticker.
   ────────────────────────────────────────────────────────────── */
.ip-ticker {
  overflow: hidden;
  border-top: 1px solid var(--our-services-border);
  border-bottom: 1px solid var(--our-services-border);
  background: var(--our-services-bg-card);
  padding: 16px 0;
}
.ip-ticker__track {
  display: flex;
  width: max-content;
  animation: ourServicesTickerScroll 32s linear infinite;
}
.ip-ticker__item {
  white-space: nowrap;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--our-services-text-dim);
  padding: 0 28px;
  display: flex;
  align-items: center;
  gap: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.ip-ticker__item em { font-style: normal; color: var(--our-services-orange); font-size: 0.75rem; }

/* ──────────────────────────────────────────────────────────────
   5. WHY CHOOSE US — feature grid (icon + label cards)
   ────────────────────────────────────────────────────────────── */
.ip-why {
  padding: 60px 0;
  position: relative;
}
.ip-why__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
}
.ip-why__head { max-width: 720px; margin-bottom: 44px; }
.ip-why__label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--about-font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--about-orange);
  margin-bottom: 14px;
}
.ip-why__label::before {
  content: '';
  width: 22px; height: 1px;
  background: var(--about-orange);
}
.ip-why__title {
  font-family: var(--about-font-display);
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  color: var(--fg);
  line-height: 1.2;
  margin-bottom: 14px;
}
.ip-why__title em { font-style: normal; color: var(--about-orange); }
.ip-why__text {
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--fg-sub);
}
.ip-why__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.ip-why__card {
  background: var(--about-bg-card);
  border: 1px solid var(--about-border);
  border-radius: var(--about-radius-sm);
  padding: 24px 20px;
  transition: border-color 0.25s, transform 0.25s;
  display: flex;
  align-items: center;
  gap: 12px;
}
.ip-why__card:hover {
  border-color: var(--about-border-hover);
  transform: translateY(-3px);
}
.ip-why__card-icon {
  width: 42px; height: 42px;
  border-radius: 12px;
  background: var(--about-orange-dim);
  border: 1px solid var(--about-orange-glow);
  color: var(--about-orange);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}
.ip-why__card-title {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--fg);
  line-height: 1.4;
}

/* ──────────────────────────────────────────────────────────────
   6. CONTENT SECTION — used for plain content pages (e.g. Link
      Building's long bullet list) and for the article+sidebar
      layout on the long-tail generated sub-pages.
   ────────────────────────────────────────────────────────────── */
.ip-content {
  position: relative;
  padding: 50px;
}
.ip-content__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
}
.ip-content .bd-prose p { margin-bottom: 18px; }
.ip-content .bd-prose h2 { margin-top: 8px; }

.ip-tag-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 28px;
}
.ip-tag {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--about-bg-card);
  border: 1px solid var(--about-border);
  border-radius: var(--about-radius-sm);
  padding: 14px 16px;
  font-family: 'Inter', sans-serif;
  font-size: 0.86rem;
  color: var(--fg);
  transition: border-color 0.2s, transform 0.2s;
}
.ip-tag:hover { border-color: var(--about-border-hover); transform: translateY(-2px); }
.ip-tag svg { flex-shrink: 0; color: var(--about-orange); }

.ip-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 24px;
  margin-top: 18px;
}
.ip-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-family: 'Inter', sans-serif;
  font-size: 0.92rem;
  color: var(--fg-sub);
  line-height: 1.5;
}
.ip-list li svg { 
  flex-shrink: 0; 
  margin-top: 7px; 
  width: 18px;
  height: 18px;
  color: var(--orange-lt); 
}

/* ──────────────────────────────────────────────────────────────
   7. FAQ SECTION wrapper (reuses .faq-item/.faq-question/.faq-answer)
  ────────────────────────────────────────────────────────────── */
.ip-faq {
  padding: 70px 0 90px;
  position: relative;
}
.ip-faq__inner {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 20px;
}
.ip-faq__head { margin-bottom: 8px; }

/* ──────────────────────────────────────────────────────────────
   8. RELATED LINKS — generic listing page sidebar / footer block
   ────────────────────────────────────────────────────────────── */
.ip-content-layout {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 48px;
  align-items: start;
}
.post-content {
  h1, h2, h3, h4, h5, h6 {
    margin: 15px 0 0;
    font-weight: 600;
  }
  h2 {font-size: 32px;}
  h2 {font-size: 28px;}
  h3 {font-size: 24px;}
  h5 {font-size: 20px;}
  h6 {font-size: 18px;}
  p {padding: 5px 0 15px;}
}
.ip-content-layout--full { 
  grid-template-columns: 1fr; 
  gap: 0;
}
.ip-locations-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.ip-sidebar { display: flex; flex-direction: column; gap: 20px; position: sticky; top: 110px; }
.ip-sidebar__card.ip-sidebar__cta { text-align: left; }
.ip-sidebar__cta-title {
  font-family: var(--about-font-display);
  font-size: 1.05rem;
  color: var(--fg);
  margin-bottom: 8px;
}
.ip-sidebar__cta-text {
  font-family: 'Inter', sans-serif;
  font-size: 0.83rem;
  color: var(--fg-sub);
  line-height: 1.6;
  margin-bottom: 16px;
}
.ip-sidebar__cta-btn { display: inline-flex; }

.ip-related { display: flex; flex-direction: column; gap: 2px; }
.ip-related__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  color: var(--about-text);
  text-decoration: none;
  padding: 9px 4px;
  border-radius: 8px;
  transition: color 0.18s, background 0.18s, padding-left 0.18s;
}
.ip-related__link i { font-size: 11px; opacity: 0; transition: opacity 0.18s, transform 0.18s; transform: translateX(-4px); }
.ip-related__link:hover { color: var(--fg); background: rgba(255,106,26,0.07); padding-left: 10px; }
.ip-related__link:hover i { opacity: 1; transform: translateX(0); }

/* ══════════════════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .ip-split-hero__inner { grid-template-columns: 1fr; gap: 36px; }
  .ip-lead-card { position: static; }
  .ip-why__grid { grid-template-columns: repeat(2, 1fr); }
  .ip-tag-grid { grid-template-columns: repeat(2, 1fr); }
  .ip-content-layout { grid-template-columns: 1fr; }
  .ip-sidebar { position: static; }
  .ip-locations-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .ip-hero { padding: 130px 0 48px; }
  .ip-hero__title { font-size: clamp(1.7rem, 7vw, 2.2rem); }
  .ip-split-hero { padding: 120px 0 40px; }
  .ip-split-hero__points { grid-template-columns: 1fr; }
  .ip-why { padding: 56px 0; }
  .ip-why__grid { grid-template-columns: 1fr; }
  .ip-tag-grid { grid-template-columns: 1fr; }
  .ip-list { grid-template-columns: 1fr; }
  .ip-crumb { font-size: 11px; }
  .ip-lead-card { padding: 26px 20px; }
  .ip-locations-grid { grid-template-columns: 1fr; }
}

/* ══════════════════════════════════════════════════════════════════
   ISSUE FIXES (Task 3, 4, 5)
   ──────────────────────────────────────────────────────────────── */

/* 3. Split-hero: badge always left-aligned (it's inside the left col)
      but the hero section itself uses the same badge in ip-hero (centred).
      On ip-split-hero the badge is already left-aligned inside the content
      column — that's correct design. No change needed for split-hero.
      The ip-hero (simple hero / index pages) centres the badge via:
      .ip-hero .ip-hero__badge { margin: 0 auto 22px; } (already set)
   ── */

/* 4. Ensure split-hero (with form) is ABOVE ticker, not below.
      The page order is: split-hero → ticker → why → faq → cta.
      This is already the correct order in all pages.
      No structural change needed in CSS.
   ── */

/* Responsive stacking for ip-split-hero */
@media (max-width: 768px) {
  .ip-split-hero__inner { grid-template-columns: 1fr; gap: 28px; }
  .ip-lead-card { position: static; top: auto; }
}

/* ──────────────────────────────────────────────────────────────────
   LOCATIONS — destination cards (index/listing page)
   One card per country/region. Cities live one level down on the
   country detail page (see ip-city-card below), so this card only
   needs to communicate: where, how many cities, and "go look".
   ────────────────────────────────────────────────────────────────── */
.ip-section-head {
  max-width: 720px;
  margin: 0 auto 36px;
  text-align: center;
}
.ip-section-head__label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--about-font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--about-orange);
  margin-bottom: 12px;
}
.ip-section-head__label::before {
  content: '';
  width: 22px; height: 1px;
  background: var(--about-orange);
}
.ip-section-head__title {
  font-family: var(--about-font-display);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  color: var(--fg);
  line-height: 1.2;
  margin-bottom: 10px;
}
.ip-section-head__text {
  font-family: 'Inter', sans-serif;
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--fg-sub);
}

.ip-dest-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.ip-dest-card {
  display: flex;
  flex-direction: column;
  background: var(--about-bg-card);
  border: 1px solid var(--about-border);
  border-radius: var(--about-radius);
  padding: 26px 24px;
  text-decoration: none;
  transition: border-color 0.25s, transform 0.25s, background 0.25s;
}
.ip-dest-card:hover {
  border-color: var(--about-border-hover);
  transform: translateY(-4px);
  background: var(--about-bg-card-2);
}
.ip-dest-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}
.ip-dest-card__flag {
  font-size: 1.9rem;
  line-height: 1;
}
.ip-dest-card__count {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'Inter', sans-serif;
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--about-orange);
  background: var(--about-orange-dim);
  border: 1px solid var(--about-orange-glow);
  border-radius: 100px;
  padding: 4px 10px;
}
.ip-dest-card__name {
  font-family: var(--about-font-display);
  font-size: 1.3rem;
  color: var(--fg);
  margin-bottom: 6px;
}
.ip-dest-card__region {
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  color: var(--fg-muted);
  margin-bottom: 16px;
}
.ip-dest-card__foot {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid var(--about-border);
  font-family: 'Inter', sans-serif;
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--fg-sub);
}
.ip-dest-card__foot i {
  font-size: 12px;
  color: var(--about-orange);
  transition: transform 0.2s;
}
.ip-dest-card:hover .ip-dest-card__foot i { transform: translateX(4px); }
.ip-dest-card:hover .ip-dest-card__foot { color: var(--fg); }

/* ──────────────────────────────────────────────────────────────────
   COUNTRY DETAIL PAGE — cities grid
   ────────────────────────────────────────────────────────────────── */
.ip-city-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.ip-city-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--about-bg-card);
  border: 1px solid var(--about-border);
  border-radius: var(--about-radius-sm);
  padding: 16px 16px;
  text-decoration: none;
  transition: border-color 0.22s, transform 0.22s, background 0.22s;
}
.ip-city-card:hover {
  border-color: var(--about-border-hover);
  transform: translateY(-3px);
  background: var(--about-bg-card-2);
}
.ip-city-card__pin {
  flex-shrink: 0;
  width: 34px; height: 34px;
  border-radius: 10px;
  background: var(--about-orange-dim);
  border: 1px solid var(--about-orange-glow);
  color: var(--about-orange);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
}
.ip-city-card__body { min-width: 0; }
.ip-city-card__name {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--fg);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ip-city-card__tag {
  font-family: 'Inter', sans-serif;
  font-size: 0.74rem;
  color: var(--fg-muted);
}

/* ──────────────────────────────────────────────────────────────────
   COUNTRY DETAIL PAGE — related content grid (full width, not sidebar)
   ────────────────────────────────────────────────────────────────── */
.ip-related-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.ip-related-grid .ip-related__link {
  background: var(--about-bg-card);
  border: 1px solid var(--about-border);
  border-radius: var(--about-radius-sm);
  padding: 13px 16px;
}
.ip-related-grid .ip-related__link:hover { padding-left: 18px; }

@media (max-width: 1024px) {
  .ip-dest-grid { grid-template-columns: repeat(2, 1fr); }
  .ip-city-grid { grid-template-columns: repeat(3, 1fr); }
  .ip-related-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .ip-dest-grid { grid-template-columns: 1fr; }
  .ip-city-grid { grid-template-columns: repeat(2, 1fr); }
  .ip-related-grid { grid-template-columns: 1fr; }
}
