/*
 * inner-pages.css
 * Place at: /assets/css/inner-pages.css
 * Load AFTER main.css — does not modify any main.css rules.
 * Provides all styles needed for product/inner pages.
 */

/* ═══════════════════════════════════════════════════════════════
   BREADCRUMB
═══════════════════════════════════════════════════════════════ */
.ip-breadcrumb {
  background: var(--sw);
  border-bottom: 1px solid var(--border);
  padding: .65rem 0;
  font-size: .8rem;
  color: var(--ink-50);
}
.ip-breadcrumb a {
  color: var(--orange);
  transition: color .2s;
}
.ip-breadcrumb a:hover { color: var(--orange-mid); }
.ip-breadcrumb span { margin: 0 .45rem; opacity: .4; }

/* ═══════════════════════════════════════════════════════════════
   PAGE HERO BANNER  (single-slide, no JS slider)
═══════════════════════════════════════════════════════════════ */
.ip-hero {
  background: var(--sw);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  position: relative;
}
.ip-hero-inner {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 3rem;
  align-items: center;
  padding: 4rem 0 3.5rem;
  position: relative;
  z-index: 1;
}
.ip-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 1rem;
}
.ip-hero-eyebrow::before {
  content: '';
  display: inline-block;
  width: 18px;
  height: 2px;
  background: var(--orange);
}
.ip-hero-eyebrow.blue  { color: var(--blue); }
.ip-hero-eyebrow.blue::before  { background: var(--blue); }
.ip-hero-eyebrow.purple{ color: var(--purple); }
.ip-hero-eyebrow.purple::before{ background: var(--purple); }

.ip-hero-title {
  font-family: var(--fd);
  font-size: clamp(2rem, 4vw, 3.1rem);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.06;
  color: var(--ink);
  margin-bottom: 1rem;
}
.ip-hero-title em {
  font-style: normal;
  color: var(--orange);
}
.ip-hero-title em.blue   { color: var(--blue); }
.ip-hero-title em.purple { color: var(--purple); }

.ip-hero-desc {
  font-size: 1.0625rem;
  color: var(--ink-50);
  max-width: 520px;
  line-height: 1.7;
  margin-bottom: 1.75rem;
}
.ip-hero-cta {
  display: flex;
  gap: .85rem;
  flex-wrap: wrap;
  margin-bottom: 1.6rem;
}
.ip-hero-badges {
  display: flex;
  gap: .6rem;
  flex-wrap: wrap;
}

/* Stats card on right side of hero */
.ip-stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 1.75rem;
  box-shadow: var(--sh-lg);
}
.ip-stat-card-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--r-md);
  background: var(--orange-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1.25rem;
}
.ip-stat-card-icon.blue   { background: var(--blue-faint); }
.ip-stat-card-icon.purple { background: var(--purple-faint); }
.ip-stat-card h3 {
  font-family: var(--fd);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--ink);
  margin-bottom: .4rem;
  line-height: 1.2;
}
.ip-stat-card p {
  font-size: .875rem;
  color: var(--ink-50);
  margin-bottom: 1.4rem;
  line-height: 1.6;
}

/* ═══════════════════════════════════════════════════════════════
   PLANS SECTION  (reuses existing .pgrid .pcard from main.css)
═══════════════════════════════════════════════════════════════ */
.ip-plans {
  background: var(--sw);
  padding: 5rem 0;
}
.ip-plans .plan-tabs {
  margin-bottom: 2.25rem;
}

/* ═══════════════════════════════════════════════════════════════
   SECTION HEADER (shared across all inner page sections)
═══════════════════════════════════════════════════════════════ */
.ip-sh {
  text-align: center;
  margin-bottom: 3rem;
}
.ip-sh .stag {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: .85rem;
}
.ip-sh .stag::before {
  content: '';
  display: inline-block;
  width: 18px;
  height: 2px;
  background: var(--orange);
}
.ip-sh h2 {
  font-family: var(--fd);
  font-size: clamp(1.7rem, 3.5vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -.03em;
  color: var(--ink);
  margin-bottom: .7rem;
}
.ip-sh p {
  font-size: 1rem;
  color: var(--ink-50);
  max-width: 620px;
  margin-inline: auto;
  line-height: 1.65;
}

/* ═══════════════════════════════════════════════════════════════
   FEATURES GRID
═══════════════════════════════════════════════════════════════ */
.ip-features {
  background: var(--surface);
  padding: 5rem 0;
  border-top: 1px solid var(--border);
}
.ip-feat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}
.ip-feat-card {
  background: var(--sw);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1.5rem;
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.ip-feat-card:hover {
  border-color: var(--orange);
  box-shadow: var(--sh-sm);
  transform: translateY(-2px);
}
.ip-feat-icon {
  width: 44px;
  height: 44px;
  background: var(--orange-dim);
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  margin-bottom: 1rem;
}
.ip-feat-card h4 {
  font-family: var(--fd);
  font-size: .9375rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: .45rem;
  letter-spacing: -.01em;
}
.ip-feat-card p {
  font-size: .8rem;
  color: var(--ink-50);
  line-height: 1.65;
}

/* ═══════════════════════════════════════════════════════════════
   WHY CHOOSE SECTION
═══════════════════════════════════════════════════════════════ */
.ip-why {
  background: var(--sw);
  padding: 5rem 0;
  border-top: 1px solid var(--border);
}
.ip-why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
}
.ip-why-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 1.75rem;
  position: relative;
  transition: border-color .2s, box-shadow .2s;
}
.ip-why-card:hover {
  border-color: var(--orange);
  box-shadow: var(--sh-md);
}
.ip-why-num {
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  font-family: var(--fd);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--border);
  line-height: 1;
  letter-spacing: -.04em;
  user-select: none;
}
.ip-why-icon {
  font-size: 1.75rem;
  margin-bottom: 1rem;
  display: block;
}
.ip-why-card h4 {
  font-family: var(--fd);
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: .5rem;
  letter-spacing: -.02em;
}
.ip-why-card p {
  font-size: .8rem;
  color: var(--ink-50);
  line-height: 1.65;
}

/* ═══════════════════════════════════════════════════════════════
   TECH SPECS TABLE
═══════════════════════════════════════════════════════════════ */
.ip-specs {
  background: var(--surface);
  padding: 5rem 0;
  border-top: 1px solid var(--border);
}
.ip-specs-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
}
.ip-specs-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 560px;
}
.ip-specs-table tr:last-child td { border-bottom: none; }
.ip-specs-table tr:nth-child(even) td { background: var(--sw); }
.ip-specs-table tr:hover td { background: var(--orange-faint); }
.ip-specs-table td {
  padding: .9rem 1.25rem;
  font-size: .875rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.ip-specs-table td:first-child {
  font-weight: 700;
  color: var(--ink);
  width: 38%;
  white-space: nowrap;
}
.ip-specs-table td:last-child {
  color: var(--ink-75);
}

/* ═══════════════════════════════════════════════════════════════
   FAQ SECTION
═══════════════════════════════════════════════════════════════ */
.ip-faq {
  background: var(--sw);
  padding: 5rem 0;
  border-top: 1px solid var(--border);
}
.ip-faq-list {
  max-width: 860px;
  margin-inline: auto;
}
.ip-faq-item {
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--surface);
  margin-bottom: .6rem;
  overflow: hidden;
  transition: border-color .2s;
}
.ip-faq-item.open { border-color: var(--orange); }
.ip-faq-q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 1.25rem;
  font-size: .9375rem;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  user-select: none;
}
.ip-faq-q:hover { color: var(--orange); }
.ip-faq-arrow {
  font-size: .7rem;
  color: var(--ink-30);
  transition: transform .3s;
  flex-shrink: 0;
}
.ip-faq-item.open .ip-faq-arrow { transform: rotate(180deg); color: var(--orange); }
.ip-faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease;
  font-size: .875rem;
  color: var(--ink-75);
  line-height: 1.7;
}
.ip-faq-item.open .ip-faq-a { max-height: 400px; }
.ip-faq-a-inner { padding: 0 1.25rem 1.25rem; }

/* ═══════════════════════════════════════════════════════════════
   CTA BANNER
═══════════════════════════════════════════════════════════════ */
.ip-cta {
  background: linear-gradient(135deg, var(--navy) 0%, #1a2540 100%);
  padding: 5rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.ip-cta::before {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(255,77,0,.12) 0%, transparent 70%);
  pointer-events: none;
}
.ip-cta-inner { position: relative; z-index: 1; }
.ip-cta h2 {
  font-family: var(--fd);
  font-size: clamp(1.8rem, 4vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -.04em;
  color: #fff;
  margin-bottom: .75rem;
}
.ip-cta p {
  font-size: 1rem;
  color: rgba(255,255,255,.55);
  max-width: 560px;
  margin-inline: auto;
  margin-bottom: 2rem;
  line-height: 1.65;
}
.ip-cta-btns {
  display: flex;
  gap: .85rem;
  justify-content: center;
  flex-wrap: wrap;
}
.btn-white {
  padding: .72rem 1.65rem;
  font-size: .9375rem;
  font-weight: 600;
  border-radius: var(--r-md);
  background: #fff;
  color: var(--ink);
  transition: opacity .2s;
}
.btn-white:hover { opacity: .85; }
.btn-outline-white {
  padding: .72rem 1.65rem;
  font-size: .9375rem;
  font-weight: 600;
  border-radius: var(--r-md);
  background: transparent;
  color: rgba(255,255,255,.8);
  border: 1px solid rgba(255,255,255,.25);
  transition: opacity .2s;
}
.btn-outline-white:hover { opacity: .85; }

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .ip-hero-inner {
    grid-template-columns: 1fr;
    padding: 3rem 0 2.5rem;
    gap: 2rem;
  }
  .ip-stat-card { max-width: 420px; }
}
@media (max-width: 768px) {
  .ip-hero-inner { padding: 2.5rem 0 2rem; }
  .ip-hero-title { font-size: 1.9rem; }
  .ip-hero-desc  { font-size: .9375rem; }
  .ip-feat-grid  { grid-template-columns: 1fr; }
  .ip-why-grid   { grid-template-columns: 1fr; }
  .ip-features, .ip-why, .ip-specs, .ip-faq, .ip-cta, .ip-plans { padding: 3.5rem 0; }
  .ip-sh { margin-bottom: 2rem; }
  .ip-cta h2 { font-size: 1.7rem; }
  .ip-cta-btns { flex-direction: column; align-items: center; }
  .btn-white, .btn-outline-white { width: 100%; max-width: 320px; text-align: center; }
}
@media (max-width: 480px) {
  .ip-specs-table td:first-child { white-space: normal; }
}

/* Override main.css pcard hover — inner pages only */
.ip-plans .pcard:not(.feat) .pcta:hover { border-color: var(--border-mid); color: var(--ink); opacity: .85; }
.ip-plans .pcard.feat .pcta:hover { background: var(--orange); box-shadow: none; opacity: .85; }
.ip-plans .pcard.feat-pu .pcta.purple-cta:hover { background: var(--purple); box-shadow: none; opacity: .85; }

/* Override main.css pcta hover — pgrid plan cards (VPS/Cloud sub-pages) */
.pgrid .pcard:not(.feat) .pcta:hover { border-color: var(--border-mid); color: var(--ink); opacity: .85; }
.pgrid .pcard.feat .pcta:hover { background: var(--orange); box-shadow: none; opacity: .85; }
.pgrid .pcard.feat-pu .pcta.purple-cta:hover { background: var(--purple); box-shadow: none; opacity: .85; }
