/* ==========================================================================
   Indifinit Smart Solutions
   ========================================================================== */

:root {
  /* Brand: navy #001F4E and gold #AE8A1A from the Indifinit logo */
  --ink: #001535;
  --ink-2: #001F4E;
  --ink-3: #0A2C63;
  --text: #13223D;
  --muted: #56627A;
  --muted-light: #A9B4C8;
  --line: #E2E6EE;
  --line-dark: rgba(255, 255, 255, 0.1);
  --bg: #FFFFFF;
  --bg-alt: #F5F6F9;
  --accent: #C9A43A;
  --accent-brand: #AE8A1A;
  --accent-ink: #876A10;
  --blue: #3E73D6;

  --font-head: "Sora", system-ui, sans-serif;
  --font-body: "IBM Plex Sans", system-ui, sans-serif;

  --radius: 14px;
  --radius-sm: 8px;
  --container: 1180px;
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 72px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--font-head);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 .5em;
  color: var(--ink);
}

h1 { font-size: clamp(2.3rem, 5.2vw, 3.9rem); font-weight: 700; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 600; }
h3 { font-size: 1.25rem; font-weight: 600; }

p { margin: 0 0 1em; }
a { color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
svg { display: block; }

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
  border-radius: 4px;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius-sm);
}
.skip-link:focus { top: 12px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  padding: .85em 1.5em;
  border-radius: 999px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .95rem;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform .2s var(--ease), background-color .2s, border-color .2s, color .2s;
}
.btn:hover { transform: translateY(-1px); }

.btn-primary { background: var(--accent); color: var(--ink); }
.btn-primary:hover { background: #D8B654; }

.btn-ghost { color: #fff; border-color: rgba(255, 255, 255, .28); }
.btn-ghost:hover { border-color: #fff; }

.btn-sm { padding: .6em 1.15em; font-size: .875rem; }

/* ---------- Eyebrow ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .6em;
  font-family: var(--font-head);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent-ink);
  margin-bottom: 1rem;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: currentColor;
}
.eyebrow-light { color: var(--accent); }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--header-h);
  color: #fff;
  transition: background-color .3s, box-shadow .3s;
}
.site-header.is-scrolled {
  background: rgba(0, 21, 53, .92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--line-dark);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand { display: inline-flex; align-items: center; }
.brand img { display: block; width: auto; height: 32px; }

.site-nav ul { display: flex; align-items: center; gap: 30px; }
.site-nav a:not(.btn) {
  text-decoration: none;
  font-size: .95rem;
  font-weight: 500;
  opacity: .85;
  transition: opacity .2s;
}
.site-nav a:not(.btn):hover { opacity: 1; }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  position: relative;
}
.nav-toggle span {
  position: absolute;
  left: 11px;
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform .25s var(--ease), opacity .2s;
}
.nav-toggle span:nth-child(1) { top: 15px; }
.nav-toggle span:nth-child(2) { top: 21px; }
.nav-toggle span:nth-child(3) { top: 27px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  color: #fff;
  padding: calc(var(--header-h) + clamp(48px, 9vw, 110px)) 0 clamp(40px, 6vw, 72px);
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 60% at 80% 30%, rgba(174, 138, 26, .16), transparent 70%),
    radial-gradient(50% 50% at 10% 90%, rgba(30, 80, 170, .28), transparent 70%),
    linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px) 0 0 / 56px 56px,
    linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px) 0 0 / 56px 56px;
  mask-image: linear-gradient(to bottom, #000 60%, transparent);
  -webkit-mask-image: linear-gradient(to bottom, #000 60%, transparent);
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}
.hero h1 { color: #fff; max-width: 15ch; }
.hero .lead {
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  color: var(--muted-light);
  max-width: 56ch;
  margin-bottom: 2rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.hero-visual {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}
.hero-loop {
  width: 100%;
  max-width: 440px;
  height: auto;
  overflow: visible;
}
.loop-track {
  fill: none;
  stroke: rgba(255, 255, 255, .1);
  stroke-width: 2.6;
}
.loop-pulse {
  fill: none;
  stroke: url(#loopGrad);
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-dasharray: 22 78;
  animation: loop 6s linear infinite;
  filter: drop-shadow(0 0 1.2px rgba(226, 194, 94, .8));
}
@keyframes loop { to { stroke-dashoffset: -100; } }

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  max-width: 420px;
}
.hero-tags li {
  padding: 6px 12px;
  border: 1px solid var(--line-dark);
  border-radius: 999px;
  font-size: .8rem;
  color: var(--muted-light);
  background: rgba(255, 255, 255, .03);
}

.stats {
  position: relative;
  margin: clamp(48px, 7vw, 88px) 0 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line-dark);
}
.stats > div {
  padding: 24px 24px 0 0;
  display: flex;
  flex-direction: column-reverse;
  gap: 4px;
}
.stats > div + div { padding-left: 24px; border-left: 1px solid var(--line-dark); }
.stats dt { font-size: .875rem; color: var(--muted-light); }
.stats dd {
  margin: 0;
  font-family: var(--font-head);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 600;
  color: #fff;
}

/* ---------- Sections ---------- */
.section { padding: clamp(72px, 10vw, 128px) 0; }
.section-alt { background: var(--bg-alt); }
.section-dark { background: var(--ink); color: var(--muted-light); }
.section-dark h2, .section-dark h3 { color: #fff; }

.section-head { max-width: 720px; margin-bottom: clamp(40px, 5vw, 64px); }
.section-intro { font-size: 1.125rem; color: var(--muted); }

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}
.about-copy { color: var(--muted); font-size: 1.125rem; }
.motto {
  margin: 2rem 0 0;
  padding: 24px 0 0;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--ink);
}
.motto span:nth-child(2) { color: var(--accent-ink); }

/* ---------- Practices ---------- */
.practices {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.practice {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(24px, 3vw, 36px);
  transition: border-color .25s, box-shadow .25s, transform .25s var(--ease);
}
.practice:hover {
  border-color: #CBD3E1;
  box-shadow: 0 18px 40px -24px rgba(10, 15, 28, .25);
  transform: translateY(-2px);
}
.practice p { color: var(--muted); }

.practice-feature {
  grid-column: 1 / -1;
  background: var(--ink-2);
  border-color: var(--ink-2);
  color: var(--muted-light);
}
.practice-feature h3 { color: #fff; font-size: 1.6rem; }
.practice-feature p { color: var(--muted-light); max-width: 62ch; }
.practice-feature:hover { border-color: var(--ink-3); }

.practice-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}
.practice-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(174, 138, 26, .12);
  color: var(--accent-ink);
}
.practice-feature .practice-icon { color: var(--accent); }
.practice-icon svg,
.industries svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.practice-num {
  font-family: var(--font-head);
  font-size: .85rem;
  font-weight: 600;
  color: #9AA3B5;
}

.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.chips li {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--line-dark);
  background: rgba(255, 255, 255, .04);
  color: #E6EAF2;
  font-size: .9rem;
}

.checklist { display: grid; gap: 10px; margin-top: 8px; }
.checklist li {
  position: relative;
  padding-left: 28px;
  font-weight: 500;
  color: var(--text);
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .38em;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.2 2.2 4.8-4.8' fill='none' stroke='%23876A10' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat,
    rgba(174, 138, 26, .16);
}

/* ---------- Industries ---------- */
.industries {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.industries li {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: clamp(22px, 3vw, 34px);
  background: #fff;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--ink);
  transition: background-color .2s;
}
.industries li:hover { background: var(--bg-alt); }
.industries svg { flex: none; color: var(--accent-ink); width: 28px; height: 28px; }

/* ---------- Why ---------- */
.reasons {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  counter-reset: reason;
}
.reasons li {
  counter-increment: reason;
  padding-top: 24px;
  border-top: 1px solid var(--line-dark);
  position: relative;
}
.reasons li::before {
  content: counter(reason, decimal-leading-zero);
  display: block;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .85rem;
  color: var(--accent);
  margin-bottom: 18px;
}
.reasons li::after {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--accent);
}
.reasons h3 { font-size: 1.1rem; }
.reasons p { font-size: .975rem; margin: 0; }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}
.contact-card {
  font-style: normal;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(24px, 3.5vw, 40px);
}
.contact-company {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.2rem;
  color: var(--ink);
  margin-bottom: 20px;
}
.contact-card dl { margin: 0; display: grid; }
.contact-card dl > div {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 16px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}
.contact-card dt { color: var(--muted); font-size: .95rem; }
.contact-card dd { margin: 0; font-weight: 500; color: var(--ink); }
.contact-card dd a { color: var(--accent-ink); text-underline-offset: 3px; }
.contact-card .placeholder { color: #9AA3B5; font-style: italic; font-weight: 400; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: var(--muted-light);
  padding: clamp(56px, 7vw, 80px) 0 32px;
  font-size: .95rem;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--line-dark);
}
.footer-logos {
  display: flex;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 20px 28px;
  margin-bottom: 22px;
}
.footer-logos img { display: block; width: auto; height: 58px; }
.footer-logos img + img { padding-left: 28px; border-left: 1px solid var(--line-dark); }
.footer-brand p { max-width: 38ch; }
.footer-nav h2 {
  font-size: .8rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 16px;
}
.footer-nav ul { display: grid; gap: 10px; }
.footer-nav a { text-decoration: none; transition: color .2s; }
.footer-nav a:hover { color: #fff; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  padding-top: 24px;
  font-size: .85rem;
}
.footer-bottom p { margin: 0; }

/* ---------- Reveal on scroll (only when JS is running) ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .reasons { grid-template-columns: repeat(3, 1fr); row-gap: 40px; }
}

@media (max-width: 900px) {
  .nav-toggle { display: block; }

  .site-nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    background: var(--ink);
    border-top: 1px solid var(--line-dark);
    padding: 12px var(--gutter) 28px;
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .2s, transform .25s var(--ease), visibility .2s;
  }
  .site-nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav li a:not(.btn) {
    display: block;
    padding: 14px 0;
    border-bottom: 1px solid var(--line-dark);
    font-size: 1.05rem;
  }
  .nav-cta-item { margin-top: 20px; }
  .nav-cta-item .btn { width: 100%; padding: .85em 1.5em; font-size: .95rem; }
  .site-header.menu-open { background: var(--ink); }

  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
  .hero-loop { max-width: 300px; }
  .hero-tags { display: none; }

  .about-grid,
  .contact-grid { grid-template-columns: 1fr; gap: 24px; }

  .practices { grid-template-columns: 1fr; }
  .industries { grid-template-columns: repeat(2, 1fr); }
  .reasons { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 600px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stats > div { padding: 20px 16px 0 0; }
  .stats > div + div { padding-left: 0; border-left: 0; }
  .stats > div:nth-child(even) { padding-left: 16px; border-left: 1px solid var(--line-dark); }

  .hero-visual { align-items: flex-start; }
  .hero-loop { max-width: 150px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .industries { grid-template-columns: 1fr; }
  .reasons { grid-template-columns: 1fr; }
  .contact-card dl > div { grid-template-columns: 1fr; gap: 2px; }
  .footer-inner { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .js .reveal { opacity: 1; transform: none; }
}
