/* services.css - Services page styles
 * Owns: hero, stats bento, services bento, process bento, who-this-is-for, CTA
 * Does NOT own: nav, footer, buttons, typography tokens (in styles.css)
 */

/* ── Services Hero (full-width anchor) ────────────────────────── */
.services-hero {
  padding: 120px 24px 100px;
  background: linear-gradient(160deg, var(--bg) 0%, var(--bg-deep) 100%);
  position: relative;
  overflow: hidden;
}

.services-hero::after {
  content: '';
  position: absolute;
  bottom: -80px;
  right: -40px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: var(--accent-bg);
  opacity: 0.4;
  z-index: 0;
}

.services-hero-inner {
  max-width: 1040px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 80px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.services-hero-text .section-label {
  margin-bottom: 16px;
}

.services-hero-text h1 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  line-height: 1.15;
  color: var(--fg);
  letter-spacing: -0.7px;
  margin-bottom: 24px;
}

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

.services-hero-offerings {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.offering-card {
  background: var(--bg);
  border: 1px solid rgba(0,0,0,0.07);
  border-radius: 10px;
  padding: 16px 20px;
  transition: all var(--transition-smooth);
}

.offering-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(0,0,0,0.07);
  border-color: rgba(45, 80, 22, 0.15);
}

.offering-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin-bottom: 4px;
}

.offering-value {
  font-size: 0.9rem;
  color: var(--fg);
  font-weight: 500;
  line-height: 1.4;
}

/* ── Stats Bento (3 impact tiles) ─────────────────────────────── */
.services-stats {
  padding: 80px 24px;
  background: var(--bg);
}

.services-stats-inner {
  max-width: 1040px;
  margin: 0 auto;
}

.stats-bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.stat-tile {
  background: var(--bg-deep);
  border-radius: 16px;
  padding: 44px 40px;
  border: 1px solid rgba(0,0,0,0.05);
  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;
  overflow: hidden;
}

.stat-tile:hover {
  transform: translateY(-5px);
  border-color: rgba(45, 80, 22, 0.12);
  box-shadow: 0 18px 48px rgba(0,0,0,0.08);
}

.stat-tile-num {
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(2.8rem, 5vw, 3.8rem);
  color: var(--accent);
  line-height: 1;
  display: block;
  margin-bottom: 12px;
  letter-spacing: -1px;
}

.stat-tile-label {
  font-size: 0.92rem;
  color: var(--fg-muted);
  line-height: 1.6;
  font-weight: 500;
}

/* Dark featured stat tile */
.stat-tile-dark {
  background: var(--fg);
  border-color: transparent;
}

.stat-tile-dark .stat-tile-num {
  color: var(--accent-bg);
}

.stat-tile-dark .stat-tile-label {
  color: rgba(255,255,255,0.65);
}

.stat-tile-dark:hover {
  border-color: rgba(255,255,255,0.08);
  box-shadow: 0 18px 48px rgba(0,0,0,0.2);
}

/* ── Services Bento Grid ───────────────────────────────────────── */
.services-grid-section {
  padding: 100px 24px;
  background: var(--bg-deep);
}

.services-grid-inner {
  max-width: 1040px;
  margin: 0 auto;
}

.services-grid-header {
  max-width: 620px;
  margin-bottom: 56px;
}

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

.services-grid-header p {
  color: var(--fg-muted);
  font-size: 1.05rem;
  line-height: 1.8;
}

/* Asymmetric bento: large tile left + 2 stacked right */
.services-bento {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 20px;
  align-items: stretch;
}

.services-bento-stack {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 20px;
}

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

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

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

/* Featured (large) tile */
.service-tile-featured .service-tile-inner {
  padding: 64px 60px;
  min-height: 480px;
}

/* Decoration circle behind featured tile */
.service-tile-deco {
  position: absolute;
  bottom: -60px;
  right: -60px;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: var(--accent-bg);
  opacity: 0.5;
  z-index: 1;
  pointer-events: none;
}

.service-tile-num {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--accent-light);
  opacity: 0.45;
  display: block;
  margin-bottom: 16px;
}

.service-tile h3 {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--fg);
  letter-spacing: -0.3px;
  line-height: 1.25;
  margin-bottom: 16px;
}

.service-tile-featured h3 {
  font-size: 2rem;
  margin-bottom: 20px;
}

.service-tile p {
  color: var(--fg-muted);
  font-size: 0.93rem;
  line-height: 1.75;
  margin-bottom: 12px;
  flex-grow: 1;
}

.service-tile-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 16px;
  border-top: 1px solid rgba(0,0,0,0.06);
  margin-top: auto;
}

.service-tag {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  color: var(--accent);
  background: var(--accent-bg);
  padding: 5px 12px;
  border-radius: 20px;
}

/* ── Process Bento Grid ────────────────────────────────────────── */
.services-process {
  padding: 100px 24px;
  background: var(--bg);
}

.services-process-inner {
  max-width: 1040px;
  margin: 0 auto;
}

.services-process-header {
  max-width: 600px;
  margin-bottom: 56px;
}

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

.services-process-header p {
  color: var(--fg-muted);
  font-size: 1.05rem;
  line-height: 1.8;
}

/* 2x2 bento process grid */
.process-bento {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.process-tile {
  background: var(--bg-deep);
  border-radius: 16px;
  padding: 44px 40px;
  border: 1px solid rgba(0,0,0,0.05);
  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;
  overflow: hidden;
}

.process-tile:hover {
  transform: translateY(-4px);
  border-color: rgba(45, 80, 22, 0.12);
  box-shadow: 0 16px 44px rgba(0,0,0,0.08);
}

/* First step tile gets the dark treatment */
.process-tile-featured {
  background: var(--accent);
  border-color: transparent;
  color: #fff;
}

.process-tile-featured:hover {
  border-color: rgba(255,255,255,0.1);
  box-shadow: 0 16px 44px rgba(45, 80, 22, 0.3);
}

.process-step-num {
  font-family: var(--display);
  font-weight: 900;
  font-size: 3rem;
  line-height: 1;
  display: block;
  margin-bottom: 20px;
  color: var(--accent-light);
  opacity: 0.55;
}

.process-tile-featured .process-step-num {
  color: rgba(255,255,255,0.35);
  opacity: 1;
}

.process-tile h4 {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.2rem;
  margin-bottom: 12px;
  color: var(--fg);
  letter-spacing: -0.2px;
}

.process-tile-featured h4 {
  color: #fff;
}

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

.process-tile-featured p {
  color: rgba(255,255,255,0.8);
}

/* ── Who This Is For + CTA (full-width split) ─────────────────── */
.services-who {
  padding: 100px 24px;
  background: var(--bg-deep);
}

.services-who-inner {
  max-width: 1040px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.services-who-text .section-label {
  margin-bottom: 16px;
}

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

.services-who-text > p {
  color: var(--fg-muted);
  line-height: 1.8;
  margin-bottom: 24px;
  font-size: 1rem;
}

.services-who-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.services-who-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.97rem;
  color: var(--fg-muted);
  line-height: 1.6;
}

.services-who-list li::before {
  content: '→';
  color: var(--accent);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

.services-cta {
  background: var(--fg);
  border-radius: 20px;
  padding: 56px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.services-cta::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: rgba(74, 122, 46, 0.12);
  pointer-events: none;
}

.services-cta h3 {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.7rem;
  color: #fff;
  margin-bottom: 16px;
  letter-spacing: -0.3px;
  position: relative;
  z-index: 1;
}

.services-cta p {
  color: rgba(255,255,255,0.65);
  font-size: 0.97rem;
  line-height: 1.7;
  margin-bottom: 32px;
  position: relative;
  z-index: 1;
}

.services-cta .btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  position: relative;
  z-index: 1;
}

.services-cta .btn-primary:hover {
  background: var(--accent-light);
  border-color: var(--accent-light);
}

/* ── Responsive ─────────────────────────────────────────────────── */

/* Tablet: 768–1199px */
@media (max-width: 1199px) {
  .services-hero-inner {
    grid-template-columns: 1fr 280px;
    gap: 56px;
  }

  .services-bento {
    grid-template-columns: 1fr 1fr;
  }

  .service-tile-featured .service-tile-inner {
    min-height: 400px;
    padding: 52px 44px;
  }

  .service-tile-featured h3 {
    font-size: 1.7rem;
  }
}

/* Tablet narrow + small: collapse two-column grids to single or two */
@media (max-width: 900px) {
  .services-hero-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .services-hero-offerings {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .offering-card {
    flex: 1;
    min-width: 160px;
  }

  .stats-bento {
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
  }

  .services-bento {
    grid-template-columns: 1fr;
  }

  .services-bento-stack {
    grid-template-rows: auto;
    grid-template-columns: 1fr 1fr;
  }

  .service-tile-featured .service-tile-inner {
    min-height: unset;
    padding: 48px 40px;
  }

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

  .services-who-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .services-cta {
    padding: 48px 40px;
  }
}

/* Mobile: < 768px */
@media (max-width: 767px) {
  .services-hero {
    padding: 80px 20px 60px;
  }

  .services-stats {
    padding: 60px 20px;
  }

  .services-grid-section {
    padding: 72px 20px;
  }

  .services-process {
    padding: 72px 20px;
  }

  .services-who {
    padding: 72px 20px;
  }

  .services-hero-offerings {
    flex-direction: column;
  }

  .stats-bento {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .stat-tile {
    padding: 36px 32px;
  }

  .services-bento {
    grid-template-columns: 1fr;
  }

  .services-bento-stack {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }

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

  .service-tile-featured .service-tile-inner {
    padding: 40px 32px;
    min-height: unset;
  }

  .process-bento {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .process-tile {
    padding: 36px 32px;
  }

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

  .services-cta {
    padding: 40px 28px;
  }
}
