/* ============================================================
   HTG HOMEPAGE PORTALS — v2 (pure CSS, zero JS, scroll-friendly)
   Static cards, no WebGL, no animations, no IntersectionObserver.
   Works on every device, light + dark mode.
   ============================================================ */

.htg-portals2 {
  position: relative;
  padding: clamp(3rem, 6vw, 5.5rem) clamp(1rem, 3vw, 2rem);
}

.htg-portals2-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.htg-portals2-head {
  text-align: center;
  margin-bottom: 2.5rem;
}

.htg-portals2-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.95rem;
  border-radius: 999px;
  background: rgba(0, 194, 203, 0.08);
  border: 1px solid rgba(0, 194, 203, 0.25);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: currentColor;
  margin-bottom: 1rem;
}

.htg-portals2-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ddc217;
  box-shadow: 0 0 8px #ddc217;
}

.htg-portals2-title {
  font-family: var(--htg-font-display, Georgia, serif);
  font-size: clamp(1.8rem, 4.5vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 0.9rem;
}

.htg-portals2-title-accent {
  color: #ef9623;
  font-style: italic;
}

.htg-portals2-sub {
  font-size: clamp(0.95rem, 1.6vw, 1.05rem);
  line-height: 1.6;
  max-width: 540px;
  margin: 0 auto;
  opacity: 0.78;
}

/* ============ Grid ============ */
.htg-portals2-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(1rem, 2.5vw, 1.75rem);
}
@media (max-width: 860px) {
  .htg-portals2-grid { grid-template-columns: 1fr; }
}

/* ============ Card base ============ */
.htg-pcard {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 460px;
  padding: 1.8rem 1.9rem 1.6rem;
  border-radius: 24px;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  isolation: isolate;
  /* Static design: layered radial gradients = depth without animation */
  background:
    radial-gradient(ellipse 90% 60% at 50% 0%, rgba(255,255,255,0.06) 0%, transparent 60%),
    linear-gradient(160deg, rgba(255,255,255,0.04) 0%, rgba(0,0,0,0.18) 100%);
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow:
    0 12px 36px -12px rgba(0,0,0,0.5),
    inset 0 1px 0 rgba(255,255,255,0.08);
}

/* Subtle desktop hover only (no cost on mobile, no animation on touch) */
@media (hover: hover) {
  .htg-pcard {
    transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
  }
  .htg-pcard:hover {
    transform: translateY(-4px);
    box-shadow:
      0 22px 56px -14px rgba(0,0,0,0.55),
      inset 0 1px 0 rgba(255,255,255,0.12);
  }
}

/* Teal variant */
.htg-pcard--teal {
  background:
    radial-gradient(ellipse 90% 60% at 50% 0%, rgba(0,194,203,0.18) 0%, transparent 65%),
    radial-gradient(ellipse 60% 50% at 100% 100%, rgba(0,194,203,0.09) 0%, transparent 60%),
    linear-gradient(160deg, rgba(0,40,46,0.55) 0%, rgba(0,18,22,0.4) 100%);
  border-color: rgba(0,194,203,0.30);
}
@media (hover: hover) {
  .htg-pcard--teal:hover { border-color: rgba(0,194,203,0.55); }
}

/* Orange variant */
.htg-pcard--orange {
  background:
    radial-gradient(ellipse 90% 60% at 50% 0%, rgba(239,150,35,0.20) 0%, transparent 65%),
    radial-gradient(ellipse 60% 50% at 100% 100%, rgba(239,150,35,0.10) 0%, transparent 60%),
    linear-gradient(160deg, rgba(50,28,0,0.55) 0%, rgba(28,16,0,0.4) 100%);
  border-color: rgba(239,150,35,0.30);
}
@media (hover: hover) {
  .htg-pcard--orange:hover { border-color: rgba(239,150,35,0.55); }
}

/* ============ Art block (the SVG globe) ============ */
.htg-pcard-art {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-bottom: 1.1rem;
}
.htg-pcard-art svg {
  width: clamp(140px, 38vw, 200px);
  height: auto;
  display: block;
  filter: drop-shadow(0 8px 24px rgba(0,0,0,0.45));
}

/* ============ Body ============ */
.htg-pcard-body { flex: 1; }

.htg-pcard-eyebrow {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 0.45rem;
}
.htg-pcard--teal   .htg-pcard-eyebrow { color: #5fd8de; }
.htg-pcard--orange .htg-pcard-eyebrow { color: #ffb24c; }

.htg-pcard-title {
  font-family: var(--htg-font-display, Georgia, serif);
  font-size: clamp(1.2rem, 2.6vw, 1.55rem);
  font-weight: 700;
  line-height: 1.22;
  margin: 0 0 0.7rem;
}

.htg-pcard-text {
  font-size: 0.96rem;
  line-height: 1.6;
  opacity: 0.78;
  margin: 0 0 1.1rem;
}

.htg-pcard-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.4rem;
}
.htg-pcard-list li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.92rem;
  padding: 0.3rem 0;
  opacity: 0.88;
}
.htg-pcard-tick {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  font-size: 0.72rem;
  font-weight: 700;
  color: #fff;
}
.htg-pcard--teal   .htg-pcard-tick { background: rgba(0,194,203,0.95); }
.htg-pcard--orange .htg-pcard-tick { background: rgba(239,150,35,0.95); }

/* ============ Foot (CTA row) ============ */
.htg-pcard-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  padding-top: 1rem;
  border-top: 1px dashed rgba(255,255,255,0.16);
}
.htg-pcard-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 0.96rem;
}
.htg-pcard--teal   .htg-pcard-cta { color: #7fe9ee; }
.htg-pcard--orange .htg-pcard-cta { color: #ffc36b; }

.htg-pcard-chip {
  padding: 0.32rem 0.7rem;
  border-radius: 999px;
  font-family: var(--htg-font-mono, ui-monospace, monospace);
  font-size: 0.78rem;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  opacity: 0.85;
}

/* ============ LIGHT MODE ============ */
:root[data-theme="light"] .htg-pcard,
:root:not([data-theme]) .htg-pcard {
  background:
    radial-gradient(ellipse 90% 60% at 50% 0%, rgba(0,0,0,0.025) 0%, transparent 60%),
    linear-gradient(160deg, rgba(255,255,255,0.85) 0%, rgba(255,255,255,0.7) 100%);
  border-color: rgba(0,0,0,0.10);
  box-shadow:
    0 12px 30px -14px rgba(0,0,0,0.18),
    inset 0 1px 0 rgba(255,255,255,0.8);
  color: #1a3328;
}
:root[data-theme="light"] .htg-pcard--teal,
:root:not([data-theme]) .htg-pcard--teal {
  background:
    radial-gradient(ellipse 90% 60% at 50% 0%, rgba(0,194,203,0.16) 0%, transparent 60%),
    linear-gradient(160deg, rgba(230,253,254,0.95) 0%, rgba(255,255,255,0.75) 100%);
  border-color: rgba(0,139,145,0.28);
}
:root[data-theme="light"] .htg-pcard--orange,
:root:not([data-theme]) .htg-pcard--orange {
  background:
    radial-gradient(ellipse 90% 60% at 50% 0%, rgba(239,150,35,0.18) 0%, transparent 60%),
    linear-gradient(160deg, rgba(255,243,228,0.95) 0%, rgba(255,255,255,0.75) 100%);
  border-color: rgba(178,88,15,0.28);
}
:root[data-theme="light"] .htg-pcard-text,
:root:not([data-theme]) .htg-pcard-text { color: #2d4a3a; opacity: 0.85; }
:root[data-theme="light"] .htg-pcard-foot,
:root:not([data-theme]) .htg-pcard-foot { border-top-color: rgba(0,0,0,0.10); }
:root[data-theme="light"] .htg-pcard--teal   .htg-pcard-eyebrow,
:root:not([data-theme]) .htg-pcard--teal   .htg-pcard-eyebrow { color: #008b91; }
:root[data-theme="light"] .htg-pcard--orange .htg-pcard-eyebrow,
:root:not([data-theme]) .htg-pcard--orange .htg-pcard-eyebrow { color: #b2580f; }
:root[data-theme="light"] .htg-pcard--teal   .htg-pcard-cta,
:root:not([data-theme]) .htg-pcard--teal   .htg-pcard-cta { color: #008b91; }
:root[data-theme="light"] .htg-pcard--orange .htg-pcard-cta,
:root:not([data-theme]) .htg-pcard--orange .htg-pcard-cta { color: #b2580f; }
:root[data-theme="light"] .htg-pcard-chip,
:root:not([data-theme]) .htg-pcard-chip {
  background: rgba(0,0,0,0.04);
  border-color: rgba(0,0,0,0.10);
  color: #1a3328;
}

/* ============ Force visible (defeats any stale reveal CSS) ============ */
.htg-pcard {
  opacity: 1 !important;
  transform: none !important;
  visibility: visible !important;
}
