/* ArthaMerge M&A Advisory — main stylesheet */

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

:root {
  --bg:     oklch(97% 0.008 78);
  --ink:    oklch(15% 0.010 60);
  --muted:  oklch(48% 0.010 60);
  --accent: oklch(56% 0.080 68);
  --rule:   oklch(87% 0.010 75);
  --serif:  'Cormorant Garamond', Georgia, serif;
  --sans:   'DM Sans', system-ui, sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  color: var(--accent);
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal.d1 { transition-delay: 0.1s; }
.reveal.d2 { transition-delay: 0.2s; }
.reveal.d3 { transition-delay: 0.3s; }
.reveal.d4 { transition-delay: 0.4s; }
.reveal.d5 { transition-delay: 0.5s; }

/* When JS hasn't run (no-js / reduced motion), never hide content permanently. */
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal.d1, .reveal.d2, .reveal.d3, .reveal.d4, .reveal.d5 {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ─── Layout helpers ─────────────────────────────────────────── */

.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 60px;
}

.section {
  padding: 120px 60px;
  max-width: 960px;
  margin: 0 auto;
}

.divider-wrap {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 60px;
}

.divider {
  height: 1px;
  background: var(--rule);
}

.section-head {
  display: flex;
  gap: 80px;
  align-items: flex-start;
  flex-wrap: wrap;
  margin-bottom: 64px;
}

.section-head--tight {
  margin-bottom: 0;
}

.section-head--wide {
  margin-bottom: 72px;
}

.section-head-label {
  flex: 0 0 200px;
}

.section-head-rule {
  width: 32px;
  height: 1px;
  background: var(--accent);
  margin-bottom: 12px;
}

.eyebrow {
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
}

.section-head-body {
  flex: 1;
  min-width: 280px;
}

.section-title {
  font-family: var(--serif);
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 300;
  line-height: 1.2;
}

/* ─── Nav ─────────────────────────────────────────── */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 60px;
  background: var(--bg);
  border-bottom: 1px solid var(--rule);
  backdrop-filter: blur(4px);
}

.nav-logo {
  height: 40px;
  width: auto;
  display: block;
}

.nav-cta {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  border-bottom: 1px solid var(--accent);
  padding-bottom: 2px;
}

/* ─── Hero ─────────────────────────────────────────── */

.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 120px 40px 160px;
  position: relative;
}

.hero-eyebrow {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 28px;
  animation: fadeUp 0.9s ease both;
}

.hero-title {
  font-family: var(--serif);
  font-size: clamp(52px, 8vw, 100px);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--ink);
  max-width: 800px;
  animation: fadeUp 0.9s ease 0.15s both;
}

.hero-title em {
  font-style: italic;
  color: var(--accent);
}

.hero-sub {
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 300;
  color: var(--muted);
  max-width: 480px;
  margin-top: 28px;
  line-height: 1.8;
  animation: fadeUp 0.9s ease 0.3s both;
}

.hero-stats {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  border-top: 1px solid var(--rule);
  display: flex;
  justify-content: center;
  animation: fadeUp 0.9s ease 0.5s both;
}

.hero-stats-inner {
  display: flex;
  align-items: stretch;
  max-width: 720px;
  width: 100%;
}

.hero-stat {
  flex: 1;
  padding: 24px 32px;
  border-right: 1px solid var(--rule);
  text-align: center;
}

.hero-stat:last-child {
  border-right: none;
}

.hero-stat-value {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 500;
  color: var(--accent);
}

.hero-stat-label {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 4px;
}

/* ─── Overview ─────────────────────────────────────────── */

.overview-lede {
  font-family: var(--serif);
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 300;
  line-height: 1.55;
  color: var(--ink);
}

.overview-body {
  font-size: 15px;
  color: var(--muted);
  margin-top: 24px;
  line-height: 1.8;
}

/* ─── What We Do ─────────────────────────────────────────── */

.services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}

.service-card {
  background: var(--bg);
  padding: 48px 40px;
}

.card-index {
  font-family: var(--serif);
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.04em;
  margin-bottom: 16px;
}

.service-card h3 {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 400;
  line-height: 1.3;
  margin-bottom: 14px;
}

.service-card p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.8;
}

/* ─── Our Approach ─────────────────────────────────────────── */

.approach-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.approach-step {
  display: flex;
  align-items: flex-start;
  gap: 48px;
  padding: 40px 0;
  border-top: 1px solid var(--rule);
}

.approach-step:last-child {
  border-bottom: 1px solid var(--rule);
}

.approach-step-index {
  flex: 0 0 200px;
  font-family: var(--serif);
  font-size: 13px;
  color: var(--accent);
  font-weight: 500;
  letter-spacing: 0.04em;
  padding-top: 4px;
}

.approach-step-body {
  flex: 1;
}

.approach-step-body h3 {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 400;
  margin-bottom: 8px;
}

.approach-step-body p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.8;
}

/* ─── Deal Profile ─────────────────────────────────────────── */

.profile-columns {
  display: flex;
  gap: 80px;
  flex-wrap: wrap;
  align-items: flex-start;
}

.profile-col {
  flex: 1;
  min-width: 260px;
}

.profile-col-label {
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 28px;
}

.metric-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.metric-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 16px 0;
  border-top: 1px solid var(--rule);
}

.metric-row:last-child {
  border-bottom: 1px solid var(--rule);
}

.metric-row-label {
  font-size: 13px;
  color: var(--muted);
}

.metric-row-value {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 400;
}

.sector-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sector-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  border: 1px solid var(--rule);
}

.sector-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

.sector-item span {
  font-size: 15px;
  font-weight: 300;
}

/* ─── Why ArthaMerge ─────────────────────────────────────────── */

.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 48px 64px;
}

.why-item-rule {
  width: 24px;
  height: 1px;
  background: var(--accent);
  margin-bottom: 20px;
}

.why-item h3 {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 400;
  margin-bottom: 10px;
  line-height: 1.3;
}

.why-item p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.8;
}

/* ─── Contact ─────────────────────────────────────────── */

.contact-section {
  background: var(--ink);
  padding: 120px 60px;
}

.contact-inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  gap: 80px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.contact-left {
  flex: 1;
  min-width: 300px;
}

.contact-eyebrow {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 28px;
}

.contact-title {
  font-family: var(--serif);
  font-size: clamp(36px, 5vw, 60px);
  font-weight: 300;
  line-height: 1.15;
  color: var(--bg);
}

.contact-title em {
  font-style: italic;
  color: var(--accent);
}

.contact-body {
  font-size: 15px;
  color: oklch(72% 0.008 60);
  margin-top: 28px;
  line-height: 1.8;
  max-width: 380px;
}

.contact-right {
  flex: 0 0 280px;
  min-width: 240px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 60px;
}

.contact-detail {
  padding: 24px 0;
  border-top: 1px solid oklch(28% 0.008 60);
}

.contact-detail:last-child {
  border-bottom: 1px solid oklch(28% 0.008 60);
}

.contact-detail-label {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: oklch(50% 0.008 60);
  margin-bottom: 8px;
}

.contact-detail-value {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 300;
  color: var(--bg);
  letter-spacing: 0.01em;
}

.contact-detail-value--email {
  font-size: 18px;
}

/* ─── Footer ─────────────────────────────────────────── */

.site-footer {
  background: var(--ink);
  padding: 32px 60px;
  border-top: 1px solid oklch(22% 0.008 60);
}

.footer-inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-copy,
.footer-tag {
  font-size: 12px;
  color: oklch(40% 0.008 60);
  letter-spacing: 0.04em;
}

.footer-tag {
  font-style: italic;
  font-family: var(--serif);
}

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

@media (max-width: 720px) {
  .nav {
    padding: 16px 24px;
  }

  .hero {
    padding: 100px 24px 200px;
  }

  .hero-stats-inner {
    flex-direction: column;
    max-width: 320px;
  }

  .hero-stat {
    border-right: none;
    border-bottom: 1px solid var(--rule);
    padding: 18px 24px;
  }

  .hero-stat:last-child {
    border-bottom: none;
  }

  .section,
  .divider-wrap,
  .contact-section,
  .site-footer {
    padding-left: 24px;
    padding-right: 24px;
  }

  .section-head,
  .section-head--wide {
    gap: 24px;
    margin-bottom: 40px;
  }

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

  .why-grid {
    grid-template-columns: 1fr;
  }

  .profile-columns {
    gap: 48px;
  }

  .contact-inner {
    gap: 48px;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}
