/* home.css - Home page specific styles
 * Owns: hero, problem, method, pillars bento, who-for bento, closing sections
 * Does NOT own: nav, footer, buttons, typography tokens (in styles.css)
 */

/* ── Hero ────────────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 80px 0;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-color: #1e1c18;
  background-image: url('https://pub-629428d185ca4960a0a73c850d32294b.r2.dev/generated-images/company_117113/b395edef-ae43-47b4-9c9f-9647df684993.jpg');
  background-size: cover;
  background-position: center;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to right, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.15) 55%, transparent 100%);
}

.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 60px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 80px;
  align-items: center;
  width: 100%;
  position: relative;
  z-index: 2;
}

/* Left: copy */
.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero-label {
  font-family: var(--body);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 28px;
}

.hero h1 {
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(2.8rem, 5vw, 4.2rem);
  line-height: 1.08;
  color: #fff;
  margin-bottom: 28px;
  letter-spacing: -0.8px;
}

.hero-sub {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.85;
  max-width: 480px;
}

.hero .btn-primary {
  margin-top: 40px;
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  padding: 16px 36px;
  font-size: 1rem;
}

.hero .btn-primary:hover {
  background: var(--accent-light);
  border-color: var(--accent-light);
  box-shadow: 0 16px 40px rgba(45, 80, 22, 0.35);
}

/* ── Client Logo Band ────────────────────────────────────────── */
.logo-band {
  padding: 60px 24px 72px;
  background: #1e1c18;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.logo-band-inner {
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}

.logo-band-label {
  font-size: 12px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.3);
  margin-bottom: 40px;
}

.logo-row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 48px 64px;
}

.client-logo {
  display: inline-flex;
  align-items: center;
  color: rgba(255, 255, 255, 0.28);
  transition: color 0.35s ease;
  cursor: default;
}

.client-logo svg {
  height: 28px;
  width: auto;
}

.client-logo:hover {
  color: rgba(255, 255, 255, 0.75);
}

/* ── Problem ─────────────────────────────────────────────────── */
.problem {
  padding: 140px 24px;
  background: var(--bg);
}

.problem-inner {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 60px;
  align-items: start;
}

.stat-block {
  display: flex;
  flex-direction: column;
  border-left: 4px solid var(--accent);
  padding-left: 32px;
}

.stat-number {
  font-family: var(--display);
  font-weight: 900;
  font-size: 4rem;
  color: var(--accent);
  line-height: 1;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--fg-muted);
  margin-top: 12px;
  line-height: 1.5;
}

.problem-text h2 {
  font-family: var(--display);
  font-weight: 700;
  font-size: 2.2rem;
  margin-bottom: 20px;
  color: var(--fg);
  letter-spacing: -0.5px;
}

.problem-text p {
  color: var(--fg-muted);
  margin-bottom: 16px;
}

.problem-highlight {
  color: var(--accent) !important;
  font-weight: 600;
  font-size: 1.1rem;
}

/* ── Method ──────────────────────────────────────────────────── */
.method {
  padding: 140px 24px;
  background: var(--accent);
  color: #fff;
}

.method-inner {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
}

.method-label {
  font-size: 12px;
  letter-spacing: 3px;
  text-transform: uppercase;
  opacity: 0.7;
  margin-bottom: 20px;
}

.method h2 {
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  margin-bottom: 28px;
  line-height: 1.1;
  letter-spacing: -0.6px;
}

.method-desc {
  font-size: 1.15rem;
  opacity: 0.9;
  line-height: 1.9;
}

/* ── Pillars Bento Grid ──────────────────────────────────────── */
.pillars {
  padding: 100px 24px;
  background: var(--bg-deep);
}

/* Container: constrainted max-width, centers grid */
.pillars-bento {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: stretch;
}

/* Right side stack holds two smaller tiles */
.bento-stack {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 20px;
}

/* Shared tile base */
.bento-tile {
  border-radius: 18px;
  border: 1px solid rgba(0,0,0,0.06);
  background: var(--bg);
  position: relative;
  overflow: hidden;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
              border-color 0.3s ease;
}

.bento-tile:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 56px rgba(0,0,0,0.09);
  border-color: rgba(45, 80, 22, 0.14);
}

/* Inner padding wrapper */
.bento-tile-inner {
  padding: 52px 48px;
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 2;
}

/* Large tile: taller, richer */
.bento-large .bento-tile-inner {
  min-height: 400px;
  padding: 64px 60px;
}

/* Decorative circle behind large tile content */
.bento-decoration {
  position: absolute;
  bottom: -60px;
  right: -60px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: var(--accent-bg);
  opacity: 0.55;
  z-index: 1;
  pointer-events: none;
}

/* Accent tile (Sustainability) — subtle green tint */
.bento-accent {
  background: linear-gradient(135deg, var(--bg) 0%, #eef4e8 100%);
  border-color: rgba(45, 80, 22, 0.1);
}

.pillar-num {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.6rem;
  color: var(--accent-light);
  display: block;
  margin-bottom: 20px;
  opacity: 0.55;
}

.bento-tile h3 {
  font-family: var(--display);
  font-weight: 700;
  font-size: 2rem;
  margin-bottom: 16px;
  color: var(--fg);
  letter-spacing: -0.4px;
}

/* Large tile gets bigger heading */
.bento-large h3 {
  font-size: 2.6rem;
  margin-bottom: 20px;
}

.bento-tile p {
  color: var(--fg-muted);
  font-size: 0.97rem;
  line-height: 1.75;
}

/* ── Who This Is For — Bento Grid ────────────────────────────── */
.who-for {
  padding: 100px 24px;
  background: var(--bg);
}

.who-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.who-header {
  margin-bottom: 60px;
}

.who-header h2 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  line-height: 1.2;
  color: var(--fg);
  margin-top: 12px;
  letter-spacing: -0.5px;
}

/* 3-column bento: wide tile takes 2 cols on row 1, 3 tiles on row 2 */
.who-bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto;
  gap: 18px;
}

/* Base who-tile */
.who-tile {
  background: var(--bg-deep);
  border-radius: 16px;
  padding: 44px 40px;
  border: 1px solid transparent;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
              border-color 0.3s ease,
              box-shadow 0.3s ease;
  position: relative;
}

.who-tile:hover {
  transform: translateY(-4px);
  border-color: rgba(45, 80, 22, 0.12);
  box-shadow: 0 14px 40px rgba(0,0,0,0.07);
}

/* Wide tile spans first 2 columns on row 1 */
.who-tile-wide {
  grid-column: span 2;
  background: var(--fg);
  color: rgba(255,255,255,0.85);
  border-color: transparent;
}

.who-tile-wide:hover {
  border-color: rgba(255,255,255,0.08);
  box-shadow: 0 14px 40px rgba(0,0,0,0.2);
}

/* "Most common" badge on wide tile */
.who-tile-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent-light);
  background: rgba(74, 122, 46, 0.15);
  border: 1px solid rgba(74, 122, 46, 0.3);
  border-radius: 100px;
  padding: 4px 14px;
  margin-bottom: 20px;
}

.who-tile strong {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.25rem;
  display: block;
  margin-bottom: 14px;
  color: var(--fg);
  letter-spacing: -0.3px;
}

/* Override strong color on dark tile */
.who-tile-wide strong {
  color: #fff;
  font-size: 1.5rem;
}

.who-tile p {
  font-size: 0.95rem;
  color: var(--fg-muted);
  line-height: 1.75;
}

.who-tile-wide p {
  color: rgba(255,255,255,0.7);
}

/* ── Closing ─────────────────────────────────────────────────── */
.closing {
  padding: 140px 24px;
  background: var(--bg);
  text-align: center;
}

.closing-inner {
  max-width: 650px;
  margin: 0 auto;
}

.closing h2 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  line-height: 1.2;
  margin-bottom: 32px;
  color: var(--fg);
  letter-spacing: -0.5px;
}

.closing p {
  color: var(--fg-muted);
  font-size: 1.1rem;
  line-height: 1.8;
}

.closing-cta {
  margin-top: 40px;
}

/* ── Responsive: Tablet (768px - 1199px) ────────────────────── */
@media (max-width: 1199px) and (min-width: 768px) {
  /* Hero: tighter two-column */
  .hero-inner {
    gap: 40px;
    padding: 0 40px;
  }

  .hero h1 {
    font-size: clamp(2.4rem, 4.5vw, 3.2rem);
  }

  /* Pillars: 2 columns, stack at natural height */
  .pillars-bento {
    gap: 16px;
  }

  .bento-large .bento-tile-inner {
    min-height: 340px;
    padding: 48px 44px;
  }

  .bento-tile h3 {
    font-size: 1.75rem;
  }

  .bento-large h3 {
    font-size: 2.1rem;
  }

  /* Who-for: 2 columns, wide tile spans both */
  .who-bento {
    grid-template-columns: repeat(2, 1fr);
  }

  .who-tile-wide {
    grid-column: span 2;
  }

  /* Logo band */
  .logo-row {
    gap: 36px 48px;
  }
}

/* ── Responsive: Mobile (< 768px) ───────────────────────────── */
@media (max-width: 767px) {
  /* Problem: single column */
  .problem {
    padding: 80px 20px;
  }

  .problem-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  /* Method */
  .method {
    padding: 80px 20px;
  }

  /* Hero: single column */
  .hero {
    min-height: auto;
    padding: 72px 24px 80px;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 0;
    padding: 0 24px;
  }

  .hero-copy {
    align-items: center;
    text-align: center;
  }

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

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

  .hero .btn-primary {
    margin-top: 32px;
    padding: 14px 28px;
    font-size: 0.95rem;
  }

  /* Logo band */
  .logo-band {
    padding: 48px 20px 60px;
  }

  .logo-row {
    gap: 32px 40px;
  }

  .client-logo svg {
    height: 22px;
  }

  /* Pillars: single column stack */
  .pillars {
    padding: 72px 16px;
  }

  .pillars-bento {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .bento-stack {
    grid-template-rows: auto auto;
    gap: 14px;
  }

  .bento-tile-inner {
    padding: 40px 32px;
  }

  .bento-large .bento-tile-inner {
    min-height: auto;
    padding: 44px 32px;
  }

  .bento-tile h3 {
    font-size: 1.6rem;
  }

  .bento-large h3 {
    font-size: 1.8rem;
  }

  /* Who-for: single column, all tiles full width */
  .who-for {
    padding: 72px 16px;
  }

  .who-header {
    margin-bottom: 40px;
  }

  .who-bento {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .who-tile-wide {
    grid-column: span 1;
  }

  .who-tile {
    padding: 36px 28px;
  }

  .who-tile-wide strong {
    font-size: 1.25rem;
  }

  /* Closing */
  .closing {
    padding: 80px 20px;
  }
}

/* ── Responsive: Large desktop (1200px+) — extra breathing room */
@media (min-width: 1200px) {
  .pillars-bento {
    gap: 24px;
  }

  .who-bento {
    gap: 20px;
  }

  .bento-large .bento-tile-inner {
    min-height: 440px;
  }
}
