/* ========================================
   IMI 3.0 — Style
   ======================================== */

/* --- Reset & Base --- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: 18px; scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body { font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; color: #1A1A1A; background: #fff; line-height: 1.6; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* --- Tokens --- */
:root {
  --color-black: #0A0A0A;
  --color-white: #FFFFFF;
  --color-surface: #F5F2EE;
  --color-text: #1A1A1A;
  --color-text-muted: #6B6B6B;
  --color-text-faint: #A0A0A0;
  --color-border: #E0E0E0;
  --color-accent: #C8B8A0;
  --font-base: 1rem;
  --font-sm: 0.85rem;
  --font-xs: 0.75rem;
  --font-lg: 1.15rem;
  --font-xl: 1.5rem;
  --font-2xl: 2.2rem;
  --font-3xl: 3rem;
  --font-hero: 3.3rem;
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;
  --space-3xl: 8rem;
  --max-width: 1200px;
  --nav-height: 64px;
}

/* --- Nav --- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-height);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 var(--space-lg);
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  transition: transform 0.3s ease;
}
.nav--hidden { transform: translateY(-100%); }
.nav__logo { display: flex; align-items: center; }
.nav__logo svg { height: 28px; width: auto; }
.nav__links { display: flex; gap: var(--space-lg); }
.nav__links a {
  font-size: var(--font-sm); font-weight: 500;
  color: var(--color-text-muted); letter-spacing: 0.01em;
  transition: color 0.2s;
}
.nav__links a:hover { color: var(--color-text); }

/* Mobile nav toggle */
.nav__toggle {
  display: none; background: none; border: none; cursor: pointer;
  width: 24px; height: 24px; position: relative;
  flex-direction: column; justify-content: center; align-items: center;
}
.nav__toggle span {
  display: block; width: 20px; height: 1.5px; background: var(--color-text);
  transition: all 0.3s ease; position: absolute;
}
.nav__toggle span:first-child { transform: translateY(-5px); }
.nav__toggle span:last-child { transform: translateY(5px); }
.nav__toggle.active span:first-child { transform: rotate(45deg); }
.nav__toggle.active span:nth-child(2) { opacity: 0; }
.nav__toggle.active span:last-child { transform: rotate(-45deg); }

/* Mobile overlay */
.nav__overlay {
  display: none; position: fixed; inset: 0; z-index: 99;
  background: var(--color-white);
  flex-direction: column; justify-content: center; align-items: center;
  gap: var(--space-lg);
}
.nav__overlay.active { display: flex; }
.nav__overlay a {
  font-size: var(--font-2xl); font-weight: 600;
  letter-spacing: -0.02em; color: var(--color-text);
  transition: opacity 0.2s;
}
.nav__overlay a:hover { opacity: 0.5; }

/* --- Hero --- */
.hero {
  min-height: 100vh;
  display: flex; flex-direction: column; justify-content: center;
  background: var(--color-black); color: var(--color-white);
  padding: calc(var(--nav-height) + var(--space-xl)) var(--space-lg) var(--space-xl);
}
.hero__inner {
  max-width: 820px; margin: 0 auto; width: 100%;
}
.hero__logo {
  width: 88px; height: auto;
  margin-bottom: 40px;
  opacity: 0.9;
}
.hero__logo svg {
  width: 100%; height: auto; display: block;
}
.hero__title {
  font-size: var(--font-hero); font-weight: 700;
  letter-spacing: -0.04em; line-height: 1.08;
  margin-bottom: var(--space-md);
}
.hero__subtitle {
  font-size: var(--font-lg); line-height: 1.7;
  color: var(--color-text-faint);
  max-width: 560px; margin-bottom: var(--space-xl);
}
.hero__cta {
  display: inline-block; font-weight: 500; font-size: var(--font-sm);
  color: var(--color-white); border-bottom: 1px solid rgba(255,255,255,0.4);
  padding-bottom: 3px; transition: border-color 0.2s;
}
.hero__cta:hover { border-color: var(--color-white); }

/* --- Section utilities --- */
.section {
  padding: var(--space-2xl) var(--space-lg);
  max-width: var(--max-width); margin: 0 auto;
}
.section--full {
  padding: var(--space-2xl) var(--space-lg);
  max-width: 100%;
}
.section__label {
  font-size: var(--font-xs); font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--color-text-muted); margin-bottom: var(--space-lg);
}

/* --- Services Grid --- */
.services {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 1px; background: var(--color-border);
  border: 1px solid var(--color-border);
}
.service {
  background: var(--color-white); padding: var(--space-lg) var(--space-lg) var(--space-xl);
}
.service__num {
  font-size: var(--font-xs); font-weight: 600;
  color: var(--color-accent); margin-bottom: var(--space-sm);
  font-variant-numeric: tabular-nums;
}
.service__title {
  font-size: 1.2rem; font-weight: 600;
  letter-spacing: -0.02em; line-height: 1.3;
  margin-bottom: 0.65rem;
}
.service__desc {
  font-size: var(--font-sm); color: var(--color-text-muted); line-height: 1.65;
}

/* --- Difference --- */
.difference {
  background: var(--color-surface);
  padding: var(--space-3xl) var(--space-lg);
}
.difference__inner {
  max-width: var(--max-width); margin: 0 auto;
}
.difference__quote {
  font-size: 1.65rem; font-weight: 300;
  letter-spacing: -0.02em; line-height: 1.45;
  font-style: italic; color: var(--color-text);
  max-width: 680px; margin-bottom: var(--space-xl);
}
.difference__lead {
  font-size: 1.15rem; font-weight: 400;
  line-height: 1.75; color: var(--color-text);
  max-width: 640px; margin-bottom: var(--space-xl);
}
.pillars {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-xl);
}
.pillar__title {
  font-size: 0.95rem; font-weight: 600;
  margin-bottom: var(--space-xs); letter-spacing: -0.01em;
}
.pillar__desc {
  font-size: var(--font-sm); color: var(--color-text-muted); line-height: 1.65;
}

/* --- Proof image --- */
.proof-image {
  max-width: var(--max-width); margin: 0 auto;
  padding: 0 var(--space-lg);
}
.proof-image img {
  width: 100%; height: 360px;
  object-fit: cover; object-position: center 30%;
  filter: grayscale(20%);
}
@media (max-width: 768px) {
  .proof-image img { height: 240px; }
}

/* --- Trust --- */
.trust {
  padding: var(--space-2xl) var(--space-lg);
  max-width: var(--max-width); margin: 0 auto;
  text-align: center;
}
.trust__label {
  font-size: var(--font-sm); color: var(--color-text-muted);
  margin-bottom: var(--space-lg);
}
.trust__logos {
  display: flex; justify-content: center; align-items: center;
  gap: clamp(2rem, 5vw, 4.5rem); flex-wrap: wrap;
  margin-bottom: var(--space-xl);
}
.trust__logos img {
  height: 24px; width: auto;
  filter: grayscale(1) brightness(0.4);
  opacity: 0.5;
  transition: opacity 0.3s ease;
}
.trust__logos img:hover {
  opacity: 0.8;
}
/* Per-logo optical size adjustments */
.trust__logos img.logo-amazon { height: 22px; }
.trust__logos img.logo-porsche { height: 20px; }
.trust__logos img.logo-kelloggs { height: 26px; }
.trust__logos img.logo-tmobile { height: 28px; }
/* Fallback text clients (hidden when logos load) */
.trust__clients {
  display: none;
}

/* --- Testimonial --- */
.testimonial {
  padding: var(--space-xl) var(--space-lg) var(--space-2xl);
  max-width: 780px; margin: 0 auto; text-align: center;
  border-top: 1px solid var(--color-border);
}
.testimonial__quote {
  font-size: var(--font-lg); font-weight: 400;
  line-height: 1.8; font-style: italic;
  color: var(--color-text); margin-bottom: var(--space-md);
}
.testimonial__cite {
  font-size: var(--font-sm); font-weight: 600;
  color: var(--color-text-muted); font-style: normal;
  letter-spacing: 0.02em;
}

/* --- CTA --- */
.cta {
  background: var(--color-black); color: var(--color-white);
  padding: var(--space-3xl) var(--space-lg);
  text-align: center;
}
.cta__title {
  font-size: var(--font-2xl); font-weight: 600;
  letter-spacing: -0.03em; margin-bottom: var(--space-md);
}
.cta__button {
  display: inline-block; font-weight: 500; font-size: var(--font-sm);
  color: var(--color-white); border: 1px solid rgba(255,255,255,0.5);
  padding: 0.85rem 2.2rem; transition: all 0.25s ease;
  letter-spacing: 0.01em;
}
.cta__button:hover {
  background: var(--color-white); color: var(--color-black);
  border-color: var(--color-white);
}

/* --- Footer --- */
.footer {
  padding: var(--space-lg); max-width: var(--max-width); margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center;
  border-top: 1px solid var(--color-border);
  font-size: 0.8rem; color: var(--color-text-muted);
}
.footer__links { display: flex; gap: var(--space-md); }
.footer__links a { color: var(--color-text-muted); transition: color 0.2s; }
.footer__links a:hover { color: var(--color-text); }

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 1024px) {
  :root {
    --font-hero: 3rem;
    --font-2xl: 1.8rem;
  }
  .pillars { gap: var(--space-lg); }
}

@media (max-width: 768px) {
  :root {
    --font-hero: 2.4rem;
    --font-2xl: 1.6rem;
    --space-2xl: 4rem;
    --space-3xl: 5rem;
  }
  .nav__links { display: none; }
  .nav__toggle { display: flex; }
  .services { grid-template-columns: 1fr; }
  .pillars { grid-template-columns: 1fr; gap: var(--space-lg); }
  .difference__quote { font-size: 1.3rem; }
  .trust__logos { gap: var(--space-lg); }
  .trust__logos img { height: 20px; }
  .trust__logos img.logo-tmobile { height: 24px; }
  .trust__logos img.logo-kelloggs { height: 22px; }
  .footer { flex-direction: column; gap: var(--space-sm); text-align: center; }
}

@media (max-width: 480px) {
  :root {
    --font-hero: 2rem;
    --space-lg: 2rem;
  }
  .hero { padding-left: 1.25rem; padding-right: 1.25rem; }
  .service { padding: var(--space-md); }
}

/* --- IMI signature line --- */
.imi-rule {
  display: block; width: 48px; height: 2px;
  background: var(--color-accent); border: none;
  margin: 0 0 var(--space-lg) 0;
}
.imi-rule--center { margin-left: auto; margin-right: auto; }

/* --- Fade-in on scroll --- */
.fade-in {
  opacity: 0; transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible {
  opacity: 1; transform: translateY(0);
}
