/* ═══════════════════════════════════════════════════════════════
   Merkur Corporation — Minimalist Style
   ═══════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* ── Tokens ─────────────────────────────────────────────────── */
:root {
  --bg: #f4f7f1;
  --panel: #ffffff;
  --panel-alpha: rgb(255 255 255 / 92%);
  --ink: #17251c;
  --muted: #607162;
  --line: #d7dfd2;
  --accent: #18834f;
  --accent-dark: #0d5f38;
  --accent-bright: #42d187;
  --soft: #eef6e9;
  --dark: #1f3025;
  --row: #f8faf5;
  --good: #d7f0dc;
  --grid-x: rgb(118 124 121 / 8%);
  --grid-y: rgb(118 124 121 / 6%);
  --intro-ink: #f6fff7;
  --intro-muted: #cfe1d2;
  --field: #fbfdf8;
  --divider: rgb(23 37 28 / 18%);
  --shadow: rgb(31 48 37 / 8%);
  --card: rgba(0,0,0,0.03);
  color-scheme: light;
}

:root[data-theme="dark"] {
  --bg: #0f1111;
  --panel: #1b1f1e;
  --panel-alpha: rgb(27 31 30 / 94%);
  --ink: #edf7ee;
  --muted: #a7afab;
  --line: #353c3a;
  --accent: #42d187;
  --accent-dark: #7ee5aa;
  --accent-bright: #8cf0b4;
  --soft: #151918;
  --dark: #0a0c0c;
  --row: #202523;
  --good: #173d27;
  --grid-x: rgb(178 184 181 / 10%);
  --grid-y: rgb(178 184 181 / 7%);
  --intro-ink: #f6fff7;
  --intro-muted: #b8d6c0;
  --field: #121615;
  --divider: rgb(178 184 181 / 20%);
  --shadow: rgb(0 0 0 / 24%);
  --card: rgba(255,255,255,0.04);
  color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
  :root[data-theme="system"] {
    --bg: #0f1111;
    --panel: #1b1f1e;
    --panel-alpha: rgb(27 31 30 / 94%);
    --ink: #edf7ee;
    --muted: #a7afab;
    --line: #353c3a;
    --accent: #42d187;
    --accent-dark: #7ee5aa;
    --accent-bright: #8cf0b4;
    --soft: #151918;
    --dark: #0a0c0c;
    --row: #202523;
    --good: #173d27;
    --grid-x: rgb(178 184 181 / 10%);
    --grid-y: rgb(178 184 181 / 7%);
    --intro-ink: #f6fff7;
    --intro-muted: #b8d6c0;
    --field: #121615;
    --divider: rgb(178 184 181 / 20%);
    --shadow: rgb(0 0 0 / 24%);
    --card: rgba(255,255,255,0.04);
    color-scheme: dark;
  }
}

/* ── Reset ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  min-height: 100vh;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--ink);
  background:
    linear-gradient(90deg, var(--grid-x) 1px, transparent 1px),
    linear-gradient(0deg, var(--grid-y) 1px, transparent 1px),
    var(--bg);
  background-size: 28px 28px;
  -webkit-font-smoothing: antialiased;
}

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

/* ── Layout ─────────────────────────────────────────────────── */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Sticky Nav ─────────────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 8px 24px;
  background: transparent;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: background 0.3s, box-shadow 0.3s;
}

.navbar.scrolled {
  background: transparent;
  border-bottom: 1px solid transparent;
  box-shadow: none;
}

:root[data-theme="light"] .navbar.scrolled {
  background: transparent;
}

.navbar-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo-img {
  height: 36px;
  width: auto;
  transition: transform 0.3s ease;
}

.logo-img:hover {
  transform: scale(1.02);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.2s;
  letter-spacing: 0.01em;
}

.nav-links a:hover {
  color: var(--ink);
}

.theme-btn {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  font-size: 16px;
  cursor: pointer;
  transition: all 0.2s;
}

.theme-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: transparent;
  color: var(--ink);
  font-size: 18px;
  cursor: pointer;
  place-items: center;
}

/* ── Hero ───────────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 24px 80px;
}

.hero-label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 24px;
}

.hero h1 {
  font-size: clamp(48px, 10vw, 96px);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.04em;
  margin-bottom: 28px;
}

.hero h1 span {
  color: var(--accent);
}

.hero-sub {
  max-width: 520px;
  font-size: 17px;
  line-height: 1.65;
  color: var(--muted);
  font-weight: 400;
  margin-bottom: 40px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border: 1px solid var(--line);
  border-radius: 100px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  background: transparent;
  cursor: pointer;
  transition: all 0.25s;
  font-family: inherit;
}

.btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-1px);
}

.btn-filled {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.btn-filled:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  color: #fff;
  transform: translateY(-1px);
}

/* ── Section ────────────────────────────────────────────────── */
.section {
  padding: 120px 24px;
  scroll-margin-top: 64px;
}

.section-label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}

.section-title {
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}

.section-title span {
  color: var(--accent);
}

/* ── About ──────────────────────────────────────────────────── */
.about-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.about-text p {
  font-size: 16px;
  line-height: 1.75;
  color: var(--muted);
  margin-bottom: 20px;
}

.about-text p:last-child { margin-bottom: 0; }

.stats-list {
  display: flex;
  flex-direction: column;
  gap: 40px;
  padding-top: 8px;
}

.stat-item {
  border-bottom: 1px solid var(--line);
  padding-bottom: 40px;
}

.stat-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.stat-number {
  display: block;
  font-size: 48px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ── Services ───────────────────────────────────────────────── */
.services-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 60px;
}

.service-card {
  padding: 36px 28px;
  border-radius: 16px;
  background: var(--card);
  border: 1px solid var(--line);
  transition: all 0.3s;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.service-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px var(--shadow);
}

.service-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--good);
  font-size: 20px;
}

.service-card h3 {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

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

.service-tag {
  display: inline-block;
  margin-top: auto;
  padding: 6px 14px;
  border-radius: 100px;
  background: var(--soft);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  width: fit-content;
}

/* ── Values ─────────────────────────────────────────────────── */
.values-wrap {
  max-width: 1100px;
  margin: 0 auto;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 60px;
}

.value-card {
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--card);
  transition: all 0.3s;
}

.value-card:hover {
  border-color: var(--accent);
}

.value-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

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

/* ── Team ───────────────────────────────────────────────────── */
.team-wrap {
  max-width: 1100px;
  margin: 0 auto;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 60px;
}

.team-card {
  text-align: center;
  padding: 40px 24px 32px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--card);
  transition: all 0.3s;
}

.team-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
}

.team-avatar {
  width: 72px;
  height: 72px;
  margin: 0 auto 20px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--good);
  color: var(--accent-dark);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.team-card h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 4px;
}

.team-role {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
  display: block;
}

.team-card p {
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
}

/* ── Contact ────────────────────────────────────────────────── */
.contact-section {
  text-align: center;
  padding: 160px 24px;
}

.contact-sub {
  font-size: 17px;
  color: var(--muted);
  margin-bottom: 40px;
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.65;
}

.contact-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 48px;
  flex-wrap: wrap;
}

.contact-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border: 1px solid var(--line);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  transition: all 0.2s;
}

.contact-pill:hover {
  border-color: var(--accent);
  color: var(--ink);
}

/* ── Footer ─────────────────────────────────────────────────── */
.footer {
  padding: 64px 24px 32px;
  border-top: 1px solid var(--line);
  background: var(--card);
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 2fr;
  gap: 48px;
  align-items: start;
}

.footer-brand {
  max-width: 280px;
}

.footer-logo {
  display: inline-block;
  margin-bottom: 16px;
}

.footer-logo-img {
  height: 40px;
  width: auto;
  transition: transform 0.3s ease;
}

.footer-logo:hover .footer-logo-img {
  transform: scale(1.05);
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 48px;
}

.footer-column h4 {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}

.footer-column a,
.footer-column span {
  display: block;
  font-size: 14px;
  line-height: 2.2;
  color: var(--muted);
  transition: color 0.2s;
}

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

.footer-bottom {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 32px;
  margin-top: 16px;
  border-top: 1px solid var(--line);
}

.footer-copy {
  font-size: 13px;
  color: var(--muted);
}

/* ── Fade animations ────────────────────────────────────────── */
.fade-in {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Scroll indicator ───────────────────────────────────────── */
.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 500;
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: var(--accent);
  animation: pulse-line 2s ease-in-out infinite;
}

@keyframes pulse-line {
  0%, 100% { opacity: 0.3; transform: scaleY(0.6); }
  50% { opacity: 1; transform: scaleY(1); }
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 900px) {
  .services-grid,
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 680px) {
  .nav-links { display: none; }
  .nav-links.is-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 56px;
    left: 0;
    right: 0;
    background: var(--panel-alpha);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
    padding: 20px 24px;
    gap: 16px;
    box-shadow: 0 4px 24px var(--shadow);
  }
  .menu-toggle { display: grid; }

  .hero { min-height: 90vh; padding: 100px 20px 60px; }
  .hero h1 { font-size: clamp(40px, 12vw, 72px); }

  .section { padding: 80px 20px; }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .stats-list {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 24px;
  }

  .stat-item {
    border-bottom: none;
    padding-bottom: 0;
    flex: 1;
    min-width: 120px;
  }

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

  .contact-section { padding: 100px 20px; }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }

  .footer-brand {
    max-width: none;
  }

  .footer-nav {
    grid-template-columns: 1fr 1fr;
    gap: 32px 48px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
}
