/* ==========================================================================
   Philadi Capital — Brand Design System
   Colors:  Deep Navy #0B1D3A · Gold #D4A137 · Teal #008C7A
   Fonts:   Montserrat (headings) · Poppins (body/tagline)
   ========================================================================== */

:root {
  --navy: #0b1d3a;
  --navy-700: #122a4d;
  --navy-600: #16305a;
  --navy-500: #1d3d6e;
  --navy-100: #e7ebf2;
  --gold: #d4a137;
  --gold-600: #b9872a;
  --gold-100: #fbf1de;
  --teal: #008c7a;
  --teal-600: #00705f;
  --teal-100: #e2f5f2;
  --ink: #10202f;
  --body-text: #445064;
  --muted: #6b7686;
  --bg-soft: #f6f8fb;
  --line: #e6ebf1;
  --white: #ffffff;

  --font-head: "Montserrat", sans-serif;
  --font-body: "Poppins", sans-serif;

  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 2px 10px rgba(11, 29, 58, 0.06);
  --shadow-md: 0 10px 30px rgba(11, 29, 58, 0.1);
  --shadow-lg: 0 20px 50px rgba(11, 29, 58, 0.16);
  --transition: all 0.25s ease;
}

/* ---------- Base ---------- */
html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--body-text);
  background: var(--white);
  font-size: 1rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-head);
  color: var(--navy);
  font-weight: 800;
  letter-spacing: -0.01em;
}

p {
  margin-bottom: 1rem;
}

a {
  text-decoration: none;
  color: var(--teal);
  transition: var(--transition);
}

a:hover {
  color: var(--teal-600);
}

::selection {
  background: var(--gold);
  color: var(--navy);
}

.section {
  padding: 5.5rem 0;
}

.section-sm {
  padding: 3.5rem 0;
}

@media (max-width: 767.98px) {
  .section { padding: 3.5rem 0; }
  .section-sm { padding: 2.5rem 0; }
}

.bg-soft { background: var(--bg-soft); }
.bg-navy { background: var(--navy); }
.bg-navy-grad {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-600) 55%, var(--navy-500) 100%);
}
.text-navy { color: var(--navy) !important; }
.text-gold { color: var(--gold) !important; }
.text-teal { color: var(--teal) !important; }
.text-muted-soft { color: var(--muted); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 0.9rem;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 3px;
  border-radius: 2px;
  background: var(--gold);
  display: inline-block;
}
.eyebrow.on-dark { color: #7fd9ca; }

.section-title {
  font-size: clamp(1.7rem, 2.6vw, 2.5rem);
  margin-bottom: 1rem;
}

.section-lede {
  color: var(--muted);
  font-size: 1.08rem;
  max-width: 62ch;
}

.underline-gold {
  display: inline-block;
  width: 64px;
  height: 4px;
  border-radius: 3px;
  background: var(--gold);
  margin: 0.35rem 0 1.25rem;
}

/* ---------- Buttons ---------- */
.btn {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.92rem;
  border-radius: 999px;
  padding: 0.75rem 1.6rem;
  transition: var(--transition);
  letter-spacing: 0.01em;
}

.btn-gold {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--navy);
}
.btn-gold:hover, .btn-gold:focus {
  background: var(--gold-600);
  border-color: var(--gold-600);
  color: var(--navy);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline-light-custom {
  background: transparent;
  border: 1.5px solid rgba(255,255,255,0.55);
  color: #fff;
}
.btn-outline-light-custom:hover {
  background: rgba(255,255,255,0.12);
  border-color: #fff;
  color: #fff;
  transform: translateY(-2px);
}

.btn-navy {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}
.btn-navy:hover {
  background: var(--navy-600);
  border-color: var(--navy-600);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline-navy {
  background: transparent;
  border: 1.5px solid var(--navy);
  color: var(--navy);
}
.btn-outline-navy:hover {
  background: var(--navy);
  color: #fff;
  transform: translateY(-2px);
}

.btn-teal {
  background: var(--teal);
  border-color: var(--teal);
  color: #fff;
}
.btn-teal:hover {
  background: var(--teal-600);
  border-color: var(--teal-600);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* ---------- Navbar ---------- */
/* Default state: transparent, overlaying the dark hero/slider directly beneath it */
.navbar-philadi {
  background: linear-gradient(to bottom, rgba(11,29,58,0.55), rgba(11,29,58,0));
  backdrop-filter: none;
  padding-top: 1.1rem;
  padding-bottom: 1.1rem;
  transition: background 0.3s ease, padding 0.3s ease, box-shadow 0.3s ease;
  box-shadow: none;
}
/* Scrolled state: solid white chrome, like a normal app header */
.navbar-philadi.scrolled {
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: saturate(180%) blur(8px);
  padding-top: 0.45rem;
  padding-bottom: 0.45rem;
  box-shadow: var(--shadow-sm);
}

.navbar-brand-logo {
  height: 42px;
  width: auto;
  transition: var(--transition);
}
.navbar-philadi.scrolled .navbar-brand-logo {
  height: 34px;
}

.navbar-philadi .nav-link {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.92rem;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0,0,0,0.25);
  padding: 0.55rem 0.95rem !important;
  position: relative;
  transition: color 0.2s ease;
}
.navbar-philadi .nav-link.active,
.navbar-philadi .nav-link:hover {
  color: var(--gold);
}
.navbar-philadi .nav-link.active::after {
  content: "";
  position: absolute;
  left: 0.95rem;
  right: 0.95rem;
  bottom: 0.15rem;
  height: 3px;
  border-radius: 2px;
  background: var(--gold);
}
.navbar-philadi.scrolled .nav-link {
  color: var(--navy);
  text-shadow: none;
}
.navbar-philadi.scrolled .nav-link.active,
.navbar-philadi.scrolled .nav-link:hover {
  color: var(--teal);
}

.navbar-philadi .btn-gold {
  padding: 0.6rem 1.35rem;
}

/* Hamburger icon: light lines by default (over photo), dark once scrolled */
.navbar-toggler {
  border: none;
  padding: 0.35rem 0.5rem;
}
.navbar-toggler:focus { box-shadow: none; }
.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255,255,255,0.95)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2.5' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}
.navbar-philadi.scrolled .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(11,29,58,0.9)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2.5' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Mobile menu drawer: give it a solid backing when the navbar itself is still transparent */
@media (max-width: 991.98px) {
  .navbar-collapse {
    transition: background 0.25s ease;
  }
  .navbar-philadi:not(.scrolled) .navbar-collapse.show {
    background: rgba(11, 29, 58, 0.97);
    margin: 0.75rem -0.75rem -1.1rem;
    padding: 1rem 1.5rem 1.5rem;
    border-radius: 0 0 18px 18px;
  }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  padding: 7.5rem 0 6rem;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 15% 20%, rgba(212,161,55,0.16), transparent 45%),
    radial-gradient(circle at 85% 80%, rgba(0,140,122,0.28), transparent 50%);
  pointer-events: none;
}
.hero-circuit {
  position: absolute;
  inset: 0;
  opacity: 0.12;
  background-image: radial-gradient(rgba(255,255,255,0.5) 1.4px, transparent 1.4px);
  background-size: 26px 26px;
  pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }

.hero-title {
  color: #fff;
  font-size: clamp(2.1rem, 4.2vw, 3.4rem);
  line-height: 1.15;
  margin-bottom: 1.1rem;
}
.hero-title .accent { color: var(--gold); }
.hero-title .accent-teal { color: #6fe0cd; }

.hero-lede {
  color: rgba(255,255,255,0.86);
  font-size: 1.15rem;
  max-width: 56ch;
}

.hero-badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.75rem;
}
.hero-mini-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  color: #fff;
  font-size: 0.8rem;
  font-family: var(--font-head);
  font-weight: 600;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
}
.hero-mini-badge i { color: var(--gold); }

.hero-visual {
  position: relative;
  z-index: 1;
}
.hero-visual img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  width: 100%;
  height: auto;
}
.hero-visual-frame {
  position: relative;
  padding: 14px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: calc(var(--radius) + 14px);
}

/* small page hero (interior pages) */
.page-hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  padding: 6.5rem 0 4rem;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 90% 10%, rgba(212,161,55,0.18), transparent 45%),
    radial-gradient(circle at 5% 90%, rgba(0,140,122,0.25), transparent 45%);
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { color: #fff; font-size: clamp(1.9rem, 3.6vw, 2.9rem); }
.page-hero p { color: rgba(255,255,255,0.85); max-width: 60ch; }

.breadcrumb-philadi {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.65);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.breadcrumb-philadi a { color: rgba(255,255,255,0.65); }
.breadcrumb-philadi a:hover { color: #fff; }
.breadcrumb-philadi .sep { margin: 0 0.5rem; opacity: 0.5; }

/* ---------- Pillars (Modular / API / Impact) ---------- */
.pillar-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--radius-sm);
  padding: 1.5rem 1.25rem;
  height: 100%;
  transition: var(--transition);
}
.pillar-card:hover {
  background: rgba(255,255,255,0.1);
  transform: translateY(-4px);
}
.pillar-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(212,161,55,0.15);
  color: var(--gold);
  font-size: 1.35rem;
  margin-bottom: 0.9rem;
}
.pillar-card h5 {
  color: var(--gold);
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}
.pillar-card p {
  color: rgba(255,255,255,0.78);
  font-size: 0.9rem;
  margin-bottom: 0;
}

/* ---------- Feature / Why cards ---------- */
.feature-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  height: 100%;
  transition: var(--transition);
}
.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}
.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--teal-100);
  color: var(--teal);
  font-size: 1.4rem;
  margin-bottom: 1.1rem;
}
.feature-card h5 {
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
}
.feature-card p {
  font-size: 0.92rem;
  color: var(--muted);
  margin-bottom: 0;
}

/* ---------- Solution cards / accordion ---------- */
.solution-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem 1.4rem;
  height: 100%;
  transition: var(--transition);
  display: flex;
  gap: 1rem;
}
.solution-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
  border-color: transparent;
}
.solution-badge {
  flex: none;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--teal), var(--teal-600));
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 1.2rem;
  box-shadow: 0 6px 16px rgba(0,140,122,0.28);
}
.solution-card h3, .solution-card h5 {
  font-size: 1rem;
  margin-bottom: 0.35rem;
}
.solution-card p {
  font-size: 0.88rem;
  color: var(--muted);
  margin-bottom: 0;
}

.solution-nav-pill {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.82rem;
  color: var(--navy);
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.5rem 1rem;
  margin: 0.25rem;
  transition: var(--transition);
}
.solution-nav-pill:hover, .solution-nav-pill.active {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}

.accordion-philadi .accordion-item {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm) !important;
  margin-bottom: 0.85rem;
  overflow: hidden;
}
.accordion-philadi .accordion-button {
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--navy);
  background: #fff;
  font-size: 1rem;
  padding: 1.15rem 1.35rem;
  gap: 0.9rem;
}
.accordion-philadi .accordion-button:not(.collapsed) {
  color: var(--teal-600);
  background: var(--teal-100);
  box-shadow: none;
}
.accordion-philadi .accordion-button:focus {
  box-shadow: none;
  border-color: var(--line);
}
.accordion-philadi .accordion-button::after {
  background-size: 1.1rem;
  flex: none;
  margin-left: auto;
}
.accordion-philadi .accordion-body {
  padding: 0.25rem 1.35rem 1.5rem 1.35rem;
  color: var(--body-text);
}
.acc-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--teal);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 1.05rem;
  flex: none;
}
.accordion-philadi .accordion-button:not(.collapsed) .acc-icon {
  background: var(--gold);
  color: var(--navy);
}
.acc-feature-list {
  list-style: none;
  padding: 0;
  margin: 0.75rem 0 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 0.5rem 1rem;
}
.acc-feature-list li {
  font-size: 0.9rem;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}
.acc-feature-list li i {
  color: var(--teal);
  margin-top: 0.28rem;
}

/* ---------- Badge pills (industries / partners) ---------- */
.pill-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.pill-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.55rem 1.1rem;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--navy);
  transition: var(--transition);
}
.pill-chip:hover {
  border-color: var(--teal);
  color: var(--teal-600);
  transform: translateY(-2px);
}
.pill-chip i { color: var(--gold); }

.industry-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem 1.2rem;
  text-align: center;
  height: 100%;
  transition: var(--transition);
}
.industry-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}
.industry-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  margin: 0 auto 1rem;
  display: grid;
  place-items: center;
  background: var(--navy-100);
  color: var(--navy);
  font-size: 1.5rem;
}
.industry-card:hover .industry-icon {
  background: var(--gold);
  color: var(--navy);
}
.industry-card h5 {
  font-size: 0.98rem;
  margin-bottom: 0;
}

/* ---------- Stat strip ---------- */
.stat-strip {
  background: var(--navy);
  border-radius: var(--radius);
  padding: 2.25rem 1.5rem;
  color: #fff;
}
.stat-item { text-align: center; }
.stat-num {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  color: var(--gold);
  margin-bottom: 0.15rem;
}
.stat-label {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.75);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ---------- Connect banner ---------- */
.connect-banner {
  border: 1.5px solid var(--gold);
  border-radius: var(--radius);
  padding: 1.75rem 2rem;
  background: linear-gradient(135deg, #fff, var(--gold-100));
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.connect-banner .cb-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--navy);
  color: var(--gold);
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  flex: none;
}

/* ---------- Vision / Mission ---------- */
.vm-card {
  border-radius: var(--radius);
  padding: 2.25rem;
  height: 100%;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.vm-card.vision { background: linear-gradient(135deg, var(--navy), var(--navy-500)); }
.vm-card.mission { background: linear-gradient(135deg, var(--teal-600), var(--teal)); }
.vm-card i.vm-quote {
  font-size: 2.25rem;
  color: rgba(255,255,255,0.35);
  margin-bottom: 0.75rem;
  display: block;
}
.vm-card h3 {
  color: #fff;
  font-size: 1.3rem;
}
.vm-card p {
  color: rgba(255,255,255,0.88);
  margin-bottom: 0;
  font-size: 1.02rem;
}

/* ---------- CTA section ---------- */
.cta-section {
  border-radius: 24px;
  padding: 3.5rem 2.5rem;
  color: #fff;
  position: relative;
  overflow: hidden;
  background: linear-gradient(120deg, var(--navy) 0%, var(--navy-600) 60%, var(--teal-600) 130%);
}
.cta-section::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 85% 20%, rgba(212,161,55,0.22), transparent 45%);
}
.cta-section .container-inner { position: relative; z-index: 1; }
.cta-section h2 { color: #fff; }
.cta-section p { color: rgba(255,255,255,0.85); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.75);
  padding: 4rem 0 0;
}
.footer-logo-badge {
  display: inline-flex;
  align-items: center;
  background: #fff;
  border-radius: 14px;
  padding: 0.6rem 1rem;
  margin-bottom: 1.1rem;
}
.footer-logo-badge img { height: 34px; width: auto; }
.site-footer h6 {
  color: #fff;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.92rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1.15rem;
}
.site-footer a {
  color: rgba(255,255,255,0.72);
  font-size: 0.92rem;
}
.site-footer a:hover { color: var(--gold); }
.footer-links li { margin-bottom: 0.6rem; }
.footer-contact-item {
  display: flex;
  gap: 0.7rem;
  margin-bottom: 0.9rem;
  font-size: 0.92rem;
}
.footer-contact-item i {
  color: var(--gold);
  margin-top: 0.2rem;
}
.footer-social a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.2);
  display: grid;
  place-items: center;
  color: #fff;
  margin-right: 0.5rem;
}
.footer-social a:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--navy);
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  margin-top: 2.5rem;
  padding: 1.25rem 0;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.55);
}
.footer-bottom a { color: rgba(255,255,255,0.65); }

/* ---------- Contact page ---------- */
.contact-info-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  height: 100%;
}
.contact-info-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--teal-100);
  color: var(--teal);
  display: grid;
  place-items: center;
  font-size: 1.2rem;
  flex: none;
}
.contact-form-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2.25rem;
  box-shadow: var(--shadow-sm);
}
.form-control, .form-select {
  border-radius: 10px;
  border: 1px solid var(--line);
  padding: 0.7rem 1rem;
  font-size: 0.95rem;
}
.form-control:focus, .form-select:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 0.2rem rgba(0,140,122,0.15);
}
.form-label {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--navy);
  margin-bottom: 0.4rem;
}
.map-frame {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  height: 100%;
  min-height: 320px;
}
.map-frame iframe { width: 100%; height: 100%; min-height: 320px; border: 0; display: block; }

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Back to top ---------- */
.back-to-top {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: var(--transition);
  z-index: 999;
}
.back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.back-to-top:hover { background: var(--teal); color: #fff; }

/* ---------- Misc ---------- */
.divider-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  display: inline-block;
  margin: 0 0.5rem;
  vertical-align: middle;
}

.impact-list li {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  margin-bottom: 0.75rem;
  font-size: 0.98rem;
}
.impact-list li i { color: var(--teal); margin-top: 0.3rem; flex: none; }

.numbered-badge {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--navy);
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 0.9rem;
  display: grid;
  place-items: center;
  flex: none;
}

/* ==========================================================================
   Hero Slider
   ========================================================================== */
.philadi-slider {
  position: relative;
  height: 92vh;
  min-height: 620px;
  max-height: 900px;
  overflow: hidden;
  background: var(--navy);
}

.slider-track { position: relative; width: 100%; height: 100%; }

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.7s ease;
  z-index: 1;
}
.slide.active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
}

.slide-media {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.slide-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.08);
  transition: transform 5s linear;
  filter: saturate(1.02);
}
.slide.active .slide-media img {
  transform: scale(1);
}

.slide-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(11,29,58,0.94) 0%, rgba(11,29,58,0.78) 32%, rgba(11,29,58,0.42) 62%, rgba(11,29,58,0.55) 100%),
    linear-gradient(0deg, rgba(11,29,58,0.55) 0%, rgba(11,29,58,0) 38%);
}

.slider-content {
  position: relative;
  z-index: 3;
  height: 100%;
  display: flex;
  align-items: flex-start;
  overflow-y: auto;
  /* Top-anchored with viewport-scaled padding, not vertical centering: centering
     a variable-height text block (title/lede length differs per slide) inside a
     fixed-height box silently breaks the moment content exceeds half the
     container height, pushing the top of the text above the fixed navbar. That
     isn't just a narrow-mobile problem — it reproduces on plenty of common
     laptop screens too (1280x720, 1366x768). A fixed floor plus a viewport-
     relative ceiling gives the same roughly-centered feel on tall screens
     while guaranteeing navbar clearance at every size. */
  padding-top: clamp(7rem, 16vh, 11rem);
  padding-bottom: clamp(4rem, 10vh, 6rem);
}

.slide-eyebrow, .slide-title, .slide-lede, .slide-cta-row {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.slide.active .slide-eyebrow { transition-delay: 0.15s; }
.slide.active .slide-title { transition-delay: 0.25s; }
.slide.active .slide-lede { transition-delay: 0.35s; }
.slide.active .slide-cta-row { transition-delay: 0.45s; }
.slide.active .slide-eyebrow,
.slide.active .slide-title,
.slide.active .slide-lede,
.slide.active .slide-cta-row {
  opacity: 1;
  transform: translateY(0);
}

.slide-title {
  color: #fff;
  font-size: clamp(2rem, 4.4vw, 3.5rem);
  line-height: 1.13;
  max-width: 14ch;
  margin-bottom: 1.1rem;
  text-shadow: 0 2px 24px rgba(0,0,0,0.25);
}
.slide-title .accent { color: var(--gold); }
.slide-title .accent-teal { color: #6fe0cd; }

.slide-lede {
  color: rgba(255,255,255,0.88);
  font-size: 1.15rem;
  max-width: 46ch;
  margin-bottom: 1.75rem;
}

.slide-number-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: rgba(255,255,255,0.7);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.slide-number-tag .num-current { color: var(--gold); font-size: 1rem; }

/* Controls
   Arrows live in the bottom control bar (flanking the progress dots) rather
   than vertically centered on the slide: at 50% of the slide height they sat
   fine when content was vertically centered, but once content is top-anchored
   (see .slider-content) that same 50% mark falls inside the lede paragraph on
   plenty of common screen sizes, overlapping the text. */
.slider-arrow {
  position: absolute;
  top: auto;
  bottom: clamp(1.1rem, 3vw, 2.1rem);
  z-index: 5;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.35);
  background: rgba(11,29,58,0.35);
  backdrop-filter: blur(6px);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 1.1rem;
  transition: var(--transition);
}
.slider-arrow:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--navy);
  transform: scale(1.06);
}
.slider-arrow.prev { left: clamp(0.75rem, 3vw, 2.5rem); }
.slider-arrow.next { right: clamp(4.75rem, 3vw + 3.5rem, 6.5rem); }

.slider-progress-row {
  position: absolute;
  left: 0; right: 0;
  bottom: clamp(1.25rem, 3vw, 2.25rem);
  z-index: 5;
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  padding: 0 1.5rem;
}
.slider-progress-btn {
  position: relative;
  width: 56px;
  height: 4px;
  border-radius: 3px;
  background: rgba(255,255,255,0.25);
  overflow: hidden;
  border: 0;
  padding: 0;
  cursor: pointer;
}
.slider-progress-btn .fill {
  position: absolute;
  inset: 0;
  width: 0%;
  background: var(--gold);
  border-radius: 3px;
}
.slider-progress-btn.active .fill {
  animation: slideFill var(--slide-duration, 4.5s) linear forwards;
}
.philadi-slider.paused .slider-progress-btn.active .fill {
  animation-play-state: paused;
}
.slider-progress-btn.done .fill { width: 100%; }
@keyframes slideFill {
  from { width: 0%; }
  to { width: 100%; }
}

.slider-play-toggle {
  position: absolute;
  right: clamp(0.75rem, 3vw, 2.5rem);
  bottom: clamp(1.25rem, 3vw, 2.25rem);
  z-index: 5;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.35);
  background: rgba(11,29,58,0.35);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 0.9rem;
}
.slider-play-toggle:hover { border-color: var(--gold); color: var(--gold); }

@media (max-width: 767.98px) {
  .philadi-slider {
    height: 100vh;
    min-height: 640px;
    max-height: none;
  }
  /* Alignment/padding/overflow-safety live on the base .slider-content rule now
     (applies at every viewport size, not just mobile). This block only holds
     the genuinely mobile-specific trims: smaller type and hidden controls that
     have nowhere collision-free to sit over variable-height wrapped text. */
  .slide-number-tag { font-size: 0.7rem; }
  .slide-eyebrow { font-size: 0.68rem; margin-top: 0.65rem !important; }
  .slide-title {
    font-size: 1.65rem;
    max-width: 100%;
    margin-bottom: 0.65rem;
  }
  .slide-lede {
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 1.15rem;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
    overflow: hidden;
  }
  .slide-cta-row .btn {
    padding: 0.6rem 1.1rem;
    font-size: 0.85rem;
  }
  /* Arrows land wherever they land vertically-centered on the whole slide,
     which on mobile is guaranteed to collide with text; rely on swipe instead. */
  .slider-arrow { display: none; }
  .slider-play-toggle { display: none; }
  .slider-progress-row { bottom: 1rem; }
}

/* ==========================================================================
   Solutions Mega-Menu
   ========================================================================== */
.philadi-mega { position: static; }

.philadi-mega-menu {
  display: block !important;
  position: absolute !important;
  left: 50% !important;
  top: 100% !important;
  right: auto !important;
  bottom: auto !important;
  margin: 0 !important;
  transform: translateX(-50%) translateY(10px);
  width: min(780px, 94vw);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow-lg);
  padding: 1.5rem 1.5rem 1.15rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
}
.philadi-mega-menu.show {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.mega-menu-eyebrow {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.85rem;
}

.philadi-mega-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.35rem 0.5rem;
}

.mega-link {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.55rem 0.6rem;
  border-radius: 10px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.84rem;
  color: var(--navy);
  line-height: 1.25;
}
.mega-link:hover {
  background: var(--teal-100);
  color: var(--teal-600);
}
.mega-icon {
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: var(--bg-soft);
  color: var(--teal);
  display: grid;
  place-items: center;
  font-size: 0.95rem;
}
.mega-link:hover .mega-icon {
  background: var(--gold);
  color: var(--navy);
}

.philadi-mega-footer {
  margin-top: 1.1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.philadi-mega-footer p {
  margin: 0;
  font-size: 0.82rem;
  color: var(--muted);
  max-width: 32ch;
}

@media (max-width: 991.98px) {
  .philadi-mega-menu {
    position: static !important;
    left: auto !important;
    top: auto !important;
    transform: none;
    width: 100%;
    box-shadow: none;
    border: 0;
    border-radius: 0;
    padding: 0.5rem 0 0.5rem 0.75rem;
    margin-top: 0.25rem;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    display: none !important;
  }
  .philadi-mega-menu.show {
    display: block !important;
    transform: none !important;
  }
  .philadi-mega-grid { grid-template-columns: 1fr; gap: 0.15rem; }
  .mega-menu-eyebrow { display: none; }
}

/* Solution detail page extras */
.solution-hero-icon {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background: rgba(212,161,55,0.15);
  color: var(--gold);
  display: grid;
  place-items: center;
  font-size: 1.7rem;
  margin-bottom: 1.25rem;
}
.step-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  height: 100%;
  position: relative;
}
.step-card .step-num {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 2rem;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--gold);
  line-height: 1;
  margin-bottom: 0.75rem;
  display: block;
}
.related-solutions-strip { border-top: 1px solid var(--line); }
