/* styles.css
   Infinite Frameworks · Layout & Theme
   ------------------------------------ */

/* 1. Design Tokens & Base Reset
   ----------------------------- */

:root {
  --if-blue: #0069bb;
  --if-blue-soft: #1b87d2;
  --if-ink: #1c252f;
  --if-bg: #f5f6fb;
  --if-surface: #ffffff;
  --if-border-subtle: #dde1ea;
  --if-text-main: #1f2933;
  --if-text-muted: #6b7280;
  --if-radius-sm: 4px;
  --if-radius-md: 6px;
  --if-radius-lg: 10px;
  --if-shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.12);
  --if-transition-fast: 150ms ease-out;
  --if-transition-med: 220ms ease-out;
}

/* Reset / Base */

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--if-text-main);
  background-color: var(--if-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--if-blue);
  text-decoration: none;
  transition: color var(--if-transition-fast);
}

a:hover {
  text-decoration: underline;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--if-blue);
  outline-offset: 3px;
}

/* Layout helper */

.container {
  width: min(1120px, 100% - 2.5rem);
  margin: 0 auto;
}

/* 2. Header & Navigation
   ---------------------- */

.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: rgba(245, 246, 251, 0.92); /* var(--if-bg) with a hint of transparency */
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--if-border-subtle);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 0.85rem;
}

.logo {
  width: 400px;
  margin: 0;
}

.nav {
  width: 100%;
  display: flex;
  justify-content: flex-end;
  margin-right: 1rem;
}

.nav-list {
  list-style: none;
  display: flex;
  gap: 1.75rem;
  margin: 0;
  padding: 0 10px;
}

.nav-link {
  position: relative;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--if-ink);
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.35rem;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--if-blue), var(--if-blue-soft));
  transition: width var(--if-transition-med);
}

.nav-link:hover::after {
  width: 100%;
}

/* Hamburger (mobile only) */

.hamburger {
  display: none;
  margin-left: auto;
  padding-inline: 0.25rem;
  padding-block: 0.25rem;
  font-size: 1.7rem;
  line-height: 1;
  background: none;
  border: none;
  cursor: pointer;
  padding-right: 10px;
}

/* 3. Hero Section
   --------------- */

.hero {
  position: relative;
  isolation: isolate;
  text-align: center;
  padding: 5rem 1.5rem 4rem;
  background: radial-gradient(circle at top left, #0f172a 0%, #020617 45%, #020617 100%);
  color: #ffffff;
  overflow: hidden;
}

.hero-inner {
  max-width: 720px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: clamp(2.4rem, 4vw + 1rem, 3.6rem);
  line-height: 1.1;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.05rem;
  margin-bottom: 2rem;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
  color: rgba(248, 250, 252, 0.9);
}

.hero-eyebrow {
  font-size: 0.9rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(248, 250, 252, 0.75);
  margin-bottom: 0.9rem;
}

.hero-tagline {
  font-size: 1.1rem;
}

/* Hero visual texture */

.spotlight {
  position: absolute;
  inset: -40%;
  pointer-events: none;
  background:
    radial-gradient(circle at 20% 0%, rgba(148, 163, 253, 0.15) 0, transparent 55%),
    radial-gradient(circle at 80% 20%, rgba(56, 189, 248, 0.18) 0, transparent 60%),
    radial-gradient(circle at 50% 100%, rgba(59, 130, 246, 0.3) 0, transparent 65%);
  mix-blend-mode: screen;
  opacity: 0.9;
  z-index: 0;
}

.shimmer-overlay {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(
    120deg,
    transparent 0%,
    rgba(255, 255, 255, 0.04) 35%,
    rgba(255, 255, 255, 0.08) 50%,
    rgba(255, 255, 255, 0.04) 65%,
    transparent 100%
  );
  background-size: 220% 100%;
  mix-blend-mode: soft-light;
  animation: shimmer 7s linear infinite;
  opacity: 0.75;
  z-index: 0;
}

@keyframes shimmer {
  0% {
    background-position: -120% 0;
  }
  100% {
    background-position: 120% 0;
  }
}

/* Hero CTA */

.hero-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  color: var(--if-blue);
  padding: 0.85rem 1.9rem;
  font-size: 1rem;
  font-weight: 700;
  border-radius: 999px;
  border: none;
  box-shadow: var(--if-shadow-soft);
  cursor: pointer;
  transition:
    transform var(--if-transition-med),
    box-shadow var(--if-transition-med),
    background-color var(--if-transition-fast),
    color var(--if-transition-fast);
}

.cta-button:hover {
  background-color: #f0f8ff;
  transform: translateY(-1px);
  box-shadow: 0 22px 55px rgba(15, 23, 42, 0.24);
}

.cta-button:active {
  transform: translateY(0);
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.3);
}

.hero-cta-note {
  font-size: 0.9rem;
  color: rgba(226, 232, 240, 0.9);
}

/* 4. Global Sections
   ------------------ */

section {
  padding: 3.5rem 1.5rem;
  text-align: center;
}

section h2 {
  font-size: 1.8rem;
  margin-bottom: 0.75rem;
  letter-spacing: 0.03em;
}

.section-intro {
  max-width: 640px;
  margin: 0.75rem auto 2.25rem;
  color: var(--if-text-muted);
  font-size: 1.02rem;
}

/* 5. Services
   ----------- */

.services {
  background-color: var(--if-surface);
}

.services .container {
  max-width: 820px;
}

.services ul {
  list-style: none;
  padding-left: 0;
  margin-top: 1.75rem;
  text-align: left;
}

.services li {
  margin-bottom: 1.35rem;
  font-size: 1.02rem;
  line-height: 1.7;
  padding: 1rem 1.1rem;
  border-radius: var(--if-radius-lg);
  border: 1px solid rgba(148, 163, 184, 0.25);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(249, 250, 251, 0.96));
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
  transition:
    transform var(--if-transition-med),
    box-shadow var(--if-transition-med),
    border-color var(--if-transition-fast);
}

.services li strong {
  display: block;
  font-size: 0.95rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--if-blue);
  margin-bottom: 0.35rem;
}

.services li:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 40px rgba(15, 23, 42, 0.12);
  border-color: rgba(37, 99, 235, 0.45);
}

/* 6. About & Contact
   ------------------ */

.about,
.contact {
  background-color: transparent;
}

.about .container,
.contact .container {
  max-width: 760px;
}

.about p,
.contact p {
  max-width: 700px;
  margin: 0.75rem auto;
  font-size: 1.02rem;
  color: var(--if-text-main);
}

.about p + p {
  margin-top: 1rem;
}

.about-pillars {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2rem;
  list-style: none;
  padding: 0;
}

.about-pillars li {
  padding: 1.2rem 1rem;
  border-radius: var(--if-radius-md);
  border: 1px dashed rgba(148, 163, 184, 0.7);
  font-size: 0.95rem;
  background-color: rgba(255, 255, 255, 0.85);
}

.about-pillars strong {
  display: block;
  margin-bottom: 0.25rem;
}

.contact-reassurance {
  font-size: 0.95rem;
  color: var(--if-text-muted);
  margin-top: 0.75rem;
}

/* 7. Footer
   --------- */

.footer {
  text-align: center;
  padding: 2rem 1.5rem 3rem;
  border-top: 1px solid var(--if-border-subtle);
  font-size: 0.9rem;
  color: var(--if-text-muted);
  background-color: rgba(248, 250, 252, 0.95);
}

/* 8. Responsive Tweaks
   -------------------- */

@media (max-width: 960px) {
  .about-pillars {
    grid-template-columns: 1fr;
  }

  .services li {
    padding-inline: 1rem;
  }
}

@media (max-width: 768px) {
  .header-inner {
    padding-block: 0.65rem;
  }

  .nav {
    display: none;
    width: 100%;
  }

  .nav.open {
    display: block;
  }

  .nav-list {
    flex-direction: column;
    gap: 0.75rem;
    padding: 0.75rem 0 0.5rem;
    border-top: 1px solid var(--if-border-subtle);
    padding-left: 10px;;
  }

  .nav-link {
    font-size: 0.9rem;
  }

  .hamburger {
    display: block;
  }

  .hero {
    padding: 4rem 1.25rem 3rem;
  }

  .hero h1 {
    font-size: clamp(2.1rem, 8vw, 2.6rem);
  }

  .hero p {
    font-size: 1rem;
  }

  section {
    padding: 3rem 1.25rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Holdco Practices Section
   ======================== */

.practices {
  padding: 4rem 1.5rem 5rem;
}

.practice-list {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  max-width: 600px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.practice-card {
  display: block;
  padding: 1.5rem 1.75rem;
  border-radius: var(--if-radius-lg);
  border: 1px solid var(--if-border-subtle);
  background-color: var(--if-surface);
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
  color: var(--if-text-main);
  text-decoration: none;
  transition:
    transform var(--if-transition-med),
    box-shadow var(--if-transition-med),
    border-color var(--if-transition-fast);
}

.practice-card strong {
  display: block;
  font-size: 1.05rem;
  color: var(--if-blue);
  margin-bottom: 0.3rem;
  font-family: 'SF Mono', 'Fira Code', ui-monospace, monospace;
  font-weight: 600;
}

.practice-card span {
  font-size: 0.97rem;
  color: var(--if-text-muted);
  line-height: 1.5;
}

.practice-card:hover {
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 12px 36px rgba(15, 23, 42, 0.12);
  border-color: rgba(37, 99, 235, 0.35);
}

.practices-subhead {
  text-align: center;
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--if-text-muted);
  margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
  .practices {
    padding: 3rem 1.25rem 4rem;
  }
}

/* About Page Sections
   =================== */

/* Shared baseline for about-page sections */
.our-story,
.our-values,
.team,
.cta {
  padding: 3.5rem 1.5rem;
}

.our-story .container,
.our-values .container,
.team .container,
.cta .container {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

/* Headings for about sections */
.our-story h2,
.our-values h2,
.team h2,
.cta h2 {
  font-size: 1.8rem;
  margin-bottom: 0.75rem;
  letter-spacing: 0.03em;
}

/* Our Story
   --------- */

.our-story {
  background-color: var(--if-surface);
  border-top: 1px solid var(--if-border-subtle);
  border-bottom: 1px solid var(--if-border-subtle);
}

.our-story p {
  font-size: 1.02rem;
  color: var(--if-text-main);
  max-width: 680px;
  margin: 0.75rem auto;
}

.our-story p + p {
  margin-top: 0.75rem;
}

/* Our Values
   ---------- */

.our-values {
  background: radial-gradient(circle at top, rgba(15, 23, 42, 0.03), transparent 55%),
              linear-gradient(180deg, #f9fafb 0%, #f3f4f6 100%);
}

.our-values .container {
  max-width: 840px;
}

.our-values ul {
  list-style: none;
  padding: 0;
  margin: 2rem auto 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  text-align: left;
}

.our-values li {
  padding: 1.1rem 1rem;
  border-radius: var(--if-radius-lg);
  border: 1px solid rgba(148, 163, 184, 0.35);
  background-color: #ffffff;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  font-size: 0.98rem;
  line-height: 1.7;
  transition:
    transform var(--if-transition-med),
    box-shadow var(--if-transition-med),
    border-color var(--if-transition-fast);
}

.our-values li strong {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--if-blue);
}

.our-values li:hover {
  transform: translateY(-3px);
  border-color: rgba(37, 99, 235, 0.55);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.16);
}

/* Team
   ---- */

.team {
  background-color: transparent;
}

.team p {
  max-width: 700px;
  margin: 0.75rem auto;
  font-size: 1.02rem;
  color: var(--if-text-main);
}

.team p strong {
  font-weight: 700;
}

/* CTA
   --- */

.cta {
  background: radial-gradient(circle at top left, rgba(37, 99, 235, 0.08), transparent 55%),
              linear-gradient(135deg, #0f172a, #020617);
  color: #f9fafb;
  text-align: center;
}

.cta .container {
  max-width: 640px;
}

.cta h2 {
  margin-bottom: 1rem;
}

.cta p {
  font-size: 1.03rem;
  max-width: 560px;
  margin: 0.75rem auto 0;
  color: rgba(226, 232, 240, 0.95);
}

.cta a {
  color: #e5f0ff;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.cta a:hover {
  color: #ffffff;
}

/* Responsive tweaks for About page
   -------------------------------- */

@media (max-width: 960px) {
  .our-values ul {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .our-story,
  .our-values,
  .team,
  .cta {
    padding: 3rem 1.25rem;
  }
}

/* Contact Page
   ============ */

.contact-methods {
  padding: 3.5rem 1.5rem;
  background-color: var(--if-surface);
  border-top: 1px solid var(--if-border-subtle);
  border-bottom: 1px solid var(--if-border-subtle);
}

.contact-methods .container {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.contact-methods h2 {
  font-size: 1.8rem;
  margin-bottom: 0.75rem;
  letter-spacing: 0.03em;
}

.contact-methods .section-intro {
  max-width: 560px;
  margin: 0.75rem auto 2rem;
  font-size: 1.02rem;
  color: var(--if-text-muted);
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  display: grid;
  gap: 1.25rem;
  text-align: left;
  max-width: 520px;
}

.contact-list li {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 0.5rem 1.5rem;
  align-items: baseline;
  padding: 0.9rem 1rem;
  border-radius: var(--if-radius-lg);
  border: 1px solid rgba(148, 163, 184, 0.35);
  background-color: #ffffff;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
  font-size: 0.98rem;
}

.contact-label {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--if-blue);
}

.contact-list a {
  font-weight: 600;
}

/* Responsive tweaks */

@media (max-width: 600px) {
  .contact-list li {
    grid-template-columns: 1fr;
  }
}


/* Services Page
   ============= */

.service-list {
  padding: 3.5rem 1.5rem;
  background-color: var(--if-surface);
  border-top: 1px solid var(--if-border-subtle);
  border-bottom: 1px solid var(--if-border-subtle);
}

.service-list .container {
  max-width: 960px;
  margin: 0 auto;
  text-align: center;
}

.service-list h2 {
  font-size: 1.9rem;
  margin-bottom: 0.75rem;
  letter-spacing: 0.03em;
}

.service-list .section-intro {
  max-width: 640px;
  margin: 0.75rem auto 2.25rem;
  font-size: 1.02rem;
  color: var(--if-text-muted);
}

/* Service grid */

.service-grid {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1.75rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  text-align: left;
}

.service-card {
  padding: 1.5rem 1.4rem;
  border-radius: var(--if-radius-lg);
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: linear-gradient(135deg, #ffffff, #f9fafb);
  box-shadow: 0 12px 34px rgba(15, 23, 42, 0.08);
  transition:
    transform var(--if-transition-med),
    box-shadow var(--if-transition-med),
    border-color var(--if-transition-fast),
    background-color var(--if-transition-fast);
}

.service-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.25rem;
}

.service-tagline {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--if-text-muted);
  margin-bottom: 0.75rem;
}

.service-card p {
  font-size: 0.99rem;
  line-height: 1.7;
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: rgba(37, 99, 235, 0.55);
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.16);
}

/* Process section */

.process {
  padding: 3.75rem 1.5rem 3.5rem;
  background: radial-gradient(circle at top, rgba(15, 23, 42, 0.04), transparent 55%),
              linear-gradient(180deg, #f9fafb 0%, #eef2f7 100%);
}

.process .container {
  max-width: 840px;
  margin: 0 auto;
  text-align: center;
}

.process h2 {
  font-size: 1.85rem;
  margin-bottom: 0.75rem;
  letter-spacing: 0.03em;
}

.process p {
  max-width: 640px;
  margin: 0.75rem auto 2rem;
  font-size: 1.02rem;
  color: var(--if-text-main);
}

/* Process steps */

.process-steps {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  max-width: 700px;
  display: grid;
  gap: 1rem;
  text-align: left;
}

.process-steps li {
  position: relative;
  padding: 0.85rem 0.75rem 0.85rem 2.5rem;
  border-radius: var(--if-radius-md);
  background-color: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.5);
  font-size: 0.96rem;
  line-height: 1.6;
}

.process-steps li::before {
  content: counter(step);
  counter-increment: step;
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: #ffffff;
  background: linear-gradient(135deg, var(--if-blue), var(--if-blue-soft));
  box-shadow: 0 2px 7px rgba(37, 99, 235, 0.45);
}

.process-steps strong {
  display: block;
  margin-bottom: 0.2rem;
  padding-left: 10px;
}

.process-steps span {
  display: block;
  padding-left: 10px;
}

/* Ensure counter reset in scope */
.process-steps {
  counter-reset: step;
}

/* Responsive tweaks */

@media (max-width: 960px) {
  .service-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .service-list,
  .process {
    padding: 3rem 1.25rem;
  }
}
