@import "themes/current.css";

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

:root {
  --serif: 'Playfair Display', Georgia, serif;
  --sans: 'Inter', -apple-system, sans-serif;
  --mono: 'JetBrains Mono', monospace;
  --max-w: 1200px;
  --gutter: clamp(24px, 5vw, 64px);
}

/* ═══════════════════════════════
   RESET / BASE
   ═══════════════════════════════ */
html {
  scroll-behavior: smooth;
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--sans);
  color: var(--ink);
  overflow-x: hidden;
  line-height: 1.5;
}

body.app-loading #app,
body.app-loading .footer,
body.app-loading .nav {
  opacity: 0;
  pointer-events: none;
}

body.app-loaded #app,
body.app-loaded .footer,
body.app-loaded .nav {
  opacity: 1;
  transition: opacity 0.28s ease;
}

body.app-loaded .lang-toggle button {
  opacity: 1;
}

::selection { background: var(--terracotta); color: var(--white); }
a { color: inherit; }
img { display: block; max-width: 100%; }

.back-to-top {
  position: fixed;
  bottom: 32px;
  right: var(--gutter);
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid var(--ink-faint);
  background: var(--surface-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-family: var(--mono);
  font-weight: 600;
  font-size: 16px;
  color: var(--ink);
  z-index: 180;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.back-to-top span { transform: translateY(-1px); }

.back-to-top:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px var(--shadow-strong);
  border-color: var(--ink-mid);
}

.wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ═══════════════════════════════
   NAV
   ═══════════════════════════════ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  height: 64px;
  display: flex;
  align-items: center;
  background: var(--surface-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 0 var(--gutter);
  transition: background 0.3s;
}

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

.nav-brand {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: -0.5px;
  display: inline-flex;
  align-items: center;
  padding-left: 0;
}

.nav-brand i { color: var(--terracotta); font-style: normal; }

.nav-brand img {
  height: 36px;
  width: auto;
  display: block;
}

.footer .nav-brand img {
  height: 44px;
}

.nav-center {
  display: flex;
  gap: 32px;
  list-style: none;
  justify-content: center;
  flex: 1;
}

.nav-center a {
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  color: var(--ink-mid);
  transition: color 0.2s;
  letter-spacing: 0.01em;
}

.nav-center a:hover { color: var(--ink); }
.nav-center a.active { color: var(--terracotta); }

.nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-right: 88px;
}

.nav-lang {
  position: absolute;
  right: var(--gutter);
  top: 50%;
  transform: translateY(-50%);
}

.nav-phone {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-mid);
  text-decoration: none;
  letter-spacing: 0.02em;
}

/* Language Toggle */
.lang-toggle {
  display: flex;
  align-items: center;
  background: var(--bg-sand);
  border: 1px solid var(--ink-faint);
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  padding: 0;
  height: 34px;
}

.lang-toggle button {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 0 12px;
  height: 100%;
  border: none;
  background: transparent;
  color: var(--ink-mid);
  cursor: pointer;
  transition: all 0.2s;
  opacity: 0;
}

.lang-toggle button.active {
  background: var(--ink);
  color: var(--white);
}

.lang-toggle button:hover:not(.active) {
  color: var(--ink);
}


/* Nav Dropdown */
.nav-dropdown-wrap {
  position: relative;
}

.nav-dropdown {
  position: absolute;
  top: 100%;
  left: -17px;
  transform: translateY(8px);
  background: var(--white);
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  padding: 8px 0;
  min-width: 180px;
  box-shadow: 0 8px 32px var(--shadow-pop);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s, visibility 0.2s, transform 0.2s;
  z-index: 300;
}

.nav-dropdown-wrap:hover .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown a {
  display: block;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-mid);
  text-decoration: none;
  transition: color 0.15s, background 0.15s;
}

.nav-dropdown a:hover {
  color: var(--terracotta);
  background: var(--terracotta-glow);
}

.nav-dropdown a.current {
  color: var(--terracotta);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--ink);
  transition: transform 0.3s, opacity 0.3s;
}

/* ═══════════════════════════════
   BUTTONS
   ═══════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--sans);
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  border-radius: 10px;
  transition: all 0.25s ease;
  letter-spacing: 0.01em;
}

.btn-sm { font-size: 13px; padding: 10px 22px; }
.btn-md { font-size: 15px; padding: 14px 32px; }
.btn-lg { font-size: 16px; padding: 18px 40px; }

.btn-primary { background: var(--terracotta); color: var(--white); }
.btn-primary:hover {
  background: var(--terracotta-light);
  transform: translateY(-1px);
  box-shadow: 0 6px 24px var(--shadow-accent);
}

.btn-outline { background: transparent; color: var(--ink); border: 1.5px solid var(--ink-faint); }
.btn-outline:hover { border-color: var(--ink); background: var(--btn-outline-hover); }

.btn-white { background: var(--white); color: var(--ink); }
.btn-white:hover {
  background: var(--bg);
  transform: translateY(-1px);
  box-shadow: 0 6px 24px var(--shadow-strong);
}

.btn-ghost {
  background: transparent;
  color: var(--terracotta);
  padding: 0;
  font-weight: 600;
  font-size: 15px;
  gap: 6px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  transition: gap 0.2s;
}

.btn-ghost:hover { gap: 10px; }

/* ═══════════════════════════════
   SECTION SCAFFOLDING
   ═══════════════════════════════ */
.section { padding: 100px 0; }
.section-lg { padding: 120px 0; }

.section-eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 16px;
}

.section-heading {
  font-family: var(--serif);
  font-size: clamp(32px, 3.5vw, 48px);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.section-sub {
  font-size: 17px;
  color: var(--ink-mid);
  line-height: 1.65;
  max-width: 540px;
}

.section-sub.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

/* ═══════════════════════════════
   HOME — HERO
   ═══════════════════════════════ */
.hero {
  padding: calc(64px + 80px) 0 60px;
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}

.hero-brand {
  font-family: var(--serif);
  font-size: clamp(40px, 7.5vw, 86px);
  font-weight: 600;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
  display: inline-flex;
  align-items: center;
  gap: 16px;
}

.hero-brand i {
  color: var(--terracotta);
  font-style: normal;
}

.hero-brand-logo {
  height: clamp(36px, 6vw, 72px);
  width: auto;
  display: block;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 28px;
  padding: 6px 14px 6px 10px;
  background: var(--terracotta-glow);
  border-radius: 100px;
  width: fit-content;
}

.hero-eyebrow-dot {
  width: 6px; height: 6px;
  background: var(--terracotta);
  border-radius: 50%;
}

.hero h1 {
  font-family: var(--serif);
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}

.hero h1 em {
  font-style: italic;
  color: var(--terracotta);
}

.hero-desc {
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink-mid);
  max-width: 520px;
  margin-bottom: 36px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.hero-proof {
  display: flex;
  align-items: center;
  gap: 16px;
}

.hero-avatars {
  display: flex;
}

.hero-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 2px solid var(--bg);
  margin-left: -10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
  color: var(--white);
}

.hero-avatar:first-child { margin-left: 0; }
.hero-avatar.a1 { background: var(--terracotta); }
.hero-avatar.a2 { background: var(--amber); }
.hero-avatar.a3 { background: var(--emerald); }
.hero-avatar.a4 { background: var(--ink); }

.hero-proof-text {
  font-size: 13px;
  color: var(--ink-mid);
  line-height: 1.4;
}

.hero-proof-text strong {
  color: var(--ink);
  font-weight: 600;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--ink-faint);
  background: var(--bg-sand);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-mid);
  width: fit-content;
}

.hero-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--terracotta);
}

/* Hero visual — dashboard mockup */
.hero-visual {
  position: relative;
  background: var(--white);
  border-radius: 16px;
  padding: 28px;
  box-shadow:
    0 1px 2px var(--shadow-soft),
    0 4px 16px var(--shadow-soft),
    0 16px 64px var(--shadow-soft-2);
  border: 1px solid var(--border-muted);
}

.dash-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--ink-faint);
}

.dash-title {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-mid);
}

.dash-period {
  font-size: 12px;
  color: var(--ink-light);
  background: var(--bg);
  padding: 4px 12px;
  border-radius: 6px;
}

.dash-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 20px;
  margin-bottom: 24px;
}

.dash-metric {
  padding: 16px;
  background: var(--bg);
  border-radius: 10px;
}

.dash-metric-label {
  font-size: 11px;
  color: var(--ink-mid);
  margin-bottom: 6px;
  font-weight: 500;
}

.dash-metric-value {
  font-family: var(--mono);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.dash-metric-change {
  font-family: var(--mono);
  font-size: 11px;
  margin-top: 4px;
}

.dash-metric-change.up { color: var(--emerald); }

/* Chart bars */
.dash-chart {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 80px;
  padding-top: 8px;
}

.dash-bar {
  flex: 1;
  background: var(--ink-faint);
  border-radius: 4px 4px 0 0;
  position: relative;
  transition: background 0.2s;
  min-height: 8px;
}

.dash-bar.accent { background: var(--terracotta); }
.dash-bar.amber { background: var(--amber); }
.dash-bar:hover { opacity: 0.8; }

/* ═══════════════════════════════
   HOME — PARTNERS STRIP
   ═══════════════════════════════ */
.partners {
  padding: 48px 0;
  border-top: 1px solid var(--border-muted);
  border-bottom: 1px solid var(--border-muted);
}

.partners-inner {
  display: flex;
  align-items: center;
  gap: 48px;
}

.partners-label {
  font-size: 12px;
  color: var(--ink-light);
  white-space: nowrap;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.partners-logos {
  display: flex;
  align-items: center;
  gap: 40px;
  overflow: hidden;
  flex: 1;
}

.partner-name {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 500;
  color: var(--ink-light);
  white-space: nowrap;
  transition: color 0.2s;
  cursor: default;
}

.partner-name:hover { color: var(--ink); }

/* ═══════════════════════════════
   HOME — INTRO / ABOUT
   ═══════════════════════════════ */
.intro {
  background: var(--bg-sand);
}

.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.intro-right {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.intro-stat {
  background: var(--white);
  border-radius: 14px;
  padding: 28px 24px;
  box-shadow: 0 1px 3px var(--shadow-soft);
  border: 1px solid var(--border-faint);
  transition: transform 0.2s, box-shadow 0.2s;
}

.intro-stat:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px var(--shadow-soft-2);
}

.intro-stat-value {
  font-family: var(--serif);
  font-size: 36px;
  font-weight: 500;
  line-height: 1;
  margin-bottom: 6px;
}

.intro-stat-value span { color: var(--terracotta); }

.intro-stat-label {
  font-size: 13px;
  color: var(--ink-mid);
  line-height: 1.4;
}

/* ═══════════════════════════════
   HOME — SERVICES
   ═══════════════════════════════ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 56px;
}

.service-card {
  background: var(--white);
  border-radius: 16px;
  padding: 36px 32px 40px;
  border: 1px solid var(--border-muted);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--terracotta);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-card:hover::before { transform: scaleX(1); }

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 48px var(--shadow-med);
}

.service-icon-wrap {
  width: 48px; height: 48px;
  background: var(--terracotta-glow);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.service-icon-wrap svg {
  width: 22px; height: 22px;
  stroke: var(--terracotta);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.service-card h3 {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 500;
  margin-bottom: 12px;
}

.service-card p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-mid);
  margin-bottom: 24px;
}

.service-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--terracotta);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.2s;
}

.service-link:hover { gap: 10px; }

/* ═══════════════════════════════
   HOME — PROCESS
   ═══════════════════════════════ */
.process-section {
  background: var(--bg-dark);
  color: var(--white);
}

.process-section .section-eyebrow { color: var(--terracotta-light); }
.process-section .section-sub { color: var(--text-on-dark-muted); }

.process-timeline {
  margin-top: 64px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  position: relative;
}

.process-timeline::before {
  content: '';
  position: absolute;
  top: 19px;
  left: 5%;
  right: 5%;
  height: 1px;
  background: var(--line-on-dark-strong);
}

.proc-step {
  text-align: center;
  padding: 0 12px;
  position: relative;
}

.proc-dot {
  width: 10px; height: 10px;
  border: 2px solid var(--terracotta-light);
  background: var(--bg-dark);
  border-radius: 50%;
  margin: 0 auto 20px;
  position: relative;
  z-index: 1;
  transition: all 0.3s;
}

.proc-step:hover .proc-dot {
  background: var(--terracotta-light);
  box-shadow: 0 0 0 6px var(--accent-ring);
}

.proc-num {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--terracotta-light);
  margin-bottom: 10px;
}

.proc-step h3 {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 500;
  margin-bottom: 10px;
}

.proc-step p {
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-on-dark-soft);
}

.proc-step:hover p { color: var(--text-on-dark-bright); }

/* ═══════════════════════════════
   HOME — RESULTS BANNER
   ═══════════════════════════════ */
.results-banner {
  background: var(--bg-dark);
  padding: 0 0 100px;
}

.results-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--overlay-light);
  border-radius: 16px;
  overflow: hidden;
}

.result-cell {
  background: var(--bg-dark-raised);
  padding: 40px 28px;
  text-align: center;
  transition: background 0.3s;
}

.result-cell:hover { background: var(--bg-dark-hover); }

.result-value {
  font-family: var(--serif);
  font-size: clamp(32px, 3.5vw, 48px);
  font-weight: 500;
  color: var(--white);
  margin-bottom: 6px;
}

.result-value span { color: var(--terracotta-light); }

.result-label {
  font-size: 13px;
  color: var(--text-on-dark-subtle);
}

/* ═══════════════════════════════
   HOME — TESTIMONIAL
   ═══════════════════════════════ */
.testimonial {
  background: var(--bg-sand);
}

.testimonial-grid {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 64px;
  align-items: center;
}

.testimonial-mark {
  font-family: var(--serif);
  font-size: 160px;
  line-height: 1;
  color: var(--terracotta);
  opacity: 0.15;
  user-select: none;
}

.testimonial blockquote {
  font-family: var(--serif);
  font-size: clamp(22px, 2.5vw, 30px);
  font-weight: 400;
  line-height: 1.5;
  font-style: italic;
  margin-bottom: 28px;
}

.testimonial cite {
  font-style: normal;
  font-family: var(--sans);
  font-size: 14px;
  color: var(--ink-mid);
}

.testimonial cite strong {
  color: var(--ink);
  font-weight: 600;
}

/* ═══════════════════════════════
   HOME — TEAM
   ═══════════════════════════════ */
.team-row {
  display: flex;
  gap: 20px;
  margin-top: 48px;
}

.team-card {
  flex: 1;
  background: var(--white);
  border-radius: 14px;
  padding: 32px 28px;
  border: 1px solid var(--border-muted);
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
}

.team-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 32px var(--shadow-soft-2);
}

.team-avatar {
  width: 56px; height: 56px;
  border-radius: 50%;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 600;
  color: var(--white);
}

.team-card:nth-child(1) .team-avatar { background: var(--terracotta); }
.team-card:nth-child(2) .team-avatar { background: var(--amber); }
.team-card:nth-child(3) .team-avatar { background: var(--emerald); }

.team-name {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 4px;
}

.team-role {
  font-size: 13px;
  color: var(--ink-mid);
}

/* ═══════════════════════════════
   HOME — CTA
   ═══════════════════════════════ */
.cta-section {
  background: var(--terracotta);
  color: var(--white);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -30%;
  left: -10%;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: var(--overlay-light);
}

.cta-section::after {
  content: '';
  position: absolute;
  bottom: -20%;
  right: -5%;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: var(--overlay-dark);
}

.cta-inner {
  position: relative;
  z-index: 1;
}

.cta-heading {
  font-family: var(--serif);
  font-size: clamp(36px, 4.5vw, 56px);
  font-weight: 500;
  line-height: 1.15;
  margin-bottom: 16px;
}

.cta-sub {
  font-size: 17px;
  opacity: 0.8;
  max-width: 480px;
  margin: 0 auto 36px;
  line-height: 1.6;
}

.cta-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ═══════════════════════════════
   ABOUT PAGE
   ═══════════════════════════════ */
.about-intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.about-intro-visual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.about-visual-card {
  background: var(--bg-sand);
  border-radius: 16px;
  padding: 32px 24px;
  text-align: center;
}

.about-visual-stat {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
  color: var(--ink);
  line-height: 1.1;
}

.about-visual-stat span {
  color: var(--terracotta);
}

.about-visual-label {
  font-size: 0.85rem;
  color: var(--ink-mid);
  margin-top: 8px;
}

.about-values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.about-partners-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 48px;
}

.about-partner-name {
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--ink);
  background: var(--white);
  border-radius: 12px;
  padding: 24px 20px;
  text-align: center;
  transition: background 0.2s;
}

.about-partner-name:hover {
  background: var(--ink-faint);
}

.nav-center > li > a.active {
  color: var(--terracotta);
}

/* ═══════════════════════════════
   CASUS PAGE
   ═══════════════════════════════ */
.casus-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  margin-top: 48px;
}

.casus-card {
  background: var(--white);
  border: 1px solid var(--ink-faint);
  border-radius: 20px;
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: box-shadow 0.3s, transform 0.3s;
}

.casus-card:hover {
  box-shadow: 0 12px 40px var(--shadow-med);
  transform: translateY(-4px);
}

.casus-card-top {
  display: flex;
  align-items: center;
  gap: 14px;
}

.casus-avatar {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--bg-dark);
  color: var(--white);
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.casus-client {
  font-weight: 600;
  font-size: 1rem;
  color: var(--ink);
}

.casus-author {
  font-size: 0.85rem;
  color: var(--ink-light);
}

.casus-media {
  border-radius: 16px;
  overflow: hidden;
  background: var(--bg-sand);
  padding: 14px;
  border: 1px solid var(--ink-faint);
}

.casus-media img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
}

.casus-ig-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-decoration: none;
  border-radius: 12px;
  padding: 18px;
  background: var(--white);
  border: 1px dashed var(--ink-faint);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.casus-ig-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px var(--shadow-med);
}

.casus-ig-label {
  font-weight: 600;
  color: var(--ink);
}

.casus-ig-url {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-light);
}

.casus-body {
  font-family: var(--sans);
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--ink-mid);
  flex: 1;
}

.casus-body p {
  margin: 0 0 12px;
}

.casus-body p:last-child {
  margin-bottom: 0;
}

.casus-body ul {
  margin: 12px 0 16px;
  padding-left: 18px;
}

.casus-body li {
  margin-bottom: 6px;
}

.casus-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.casus-tags span {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: var(--terracotta);
  background: var(--terracotta-glow);
  padding: 5px 12px;
  border-radius: 20px;
}

/* ═══════════════════════════════
   CONTACT PAGE
   ═══════════════════════════════ */
.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 64px;
  align-items: start;
}

.contact-form-wrap {
  background: var(--white);
  border-radius: 20px;
  padding: 48px;
  border: 1px solid var(--ink-faint);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-hidden {
  display: none;
}

.contact-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.contact-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.contact-field label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--ink-mid);
  letter-spacing: 0.02em;
}

.contact-field input,
.contact-field textarea {
  font-family: var(--sans);
  font-size: 0.95rem;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--ink-faint);
  border-radius: 10px;
  padding: 12px 16px;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  resize: vertical;
}

.contact-field input:focus,
.contact-field textarea:focus {
  border-color: var(--terracotta);
  box-shadow: 0 0 0 3px var(--terracotta-glow);
}

.contact-field input::placeholder,
.contact-field textarea::placeholder {
  color: var(--ink-light);
}

.contact-info-wrap {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-info-card {
  background: var(--bg-sand);
  border-radius: 20px;
  padding: 40px;
}

.contact-info-card .section-eyebrow {
  margin-bottom: 12px;
}

.contact-info-card h3 {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 500;
  margin-bottom: 16px;
}

.contact-info-card p {
  color: var(--ink-mid);
  line-height: 1.7;
}

.contact-details-card {
  background: var(--white);
  border-radius: 20px;
  padding: 32px 40px;
  border: 1px solid var(--ink-faint);
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-detail {
  display: flex;
  align-items: center;
  gap: 16px;
}

.contact-detail-icon {
  width: 44px;
  height: 44px;
  background: var(--terracotta-glow);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-detail-icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: var(--terracotta);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contact-detail-label {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--ink-light);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.contact-detail-value {
  font-size: 1rem;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
}

a.contact-detail-value:hover {
  color: var(--terracotta);
}

.contact-cta-card {
  background: var(--bg-dark);
  border-radius: 20px;
  padding: 32px 40px;
  text-align: center;
}

.contact-cta-card p {
  color: var(--text-on-dark-cta);
  margin-bottom: 20px;
  line-height: 1.6;
}

/* ═══════════════════════════════
   SERVICE PAGES — HERO
   ═══════════════════════════════ */
.service-hero {
  padding: calc(64px + 90px) 0 56px;
  position: relative;
  overflow: hidden;
}

.service-hero::before {
  content: '';
  position: absolute;
  top: -200px; right: -200px;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: var(--terracotta-glow);
  filter: blur(80px);
  pointer-events: none;
}

.service-hero-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--ink-light);
  margin-bottom: 32px;
}

.service-hero-breadcrumb a {
  text-decoration: none;
  color: var(--ink-mid);
  transition: color 0.2s;
}

.service-hero-breadcrumb a:hover { color: var(--terracotta); }
.service-hero-breadcrumb span { color: var(--ink-faint); }

.service-hero h1 {
  font-family: var(--serif);
  font-size: clamp(44px, 5.5vw, 72px);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.025em;
  margin-bottom: 24px;
  max-width: 700px;
}

.service-hero h1 em { font-style: italic; color: var(--terracotta); }

.service-hero-desc {
  font-size: 18px;
  line-height: 1.7;
  color: var(--ink-mid);
  max-width: 580px;
  margin-bottom: 40px;
}

.service-hero-actions {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
}

/* ═══════════════════════════════
   SERVICE PAGES — PILLARS
   ═══════════════════════════════ */
.pillars { background: var(--bg-sand); }

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 56px;
}

.pillar-card {
  background: var(--white);
  border-radius: 16px;
  padding: 40px 32px;
  border: 1px solid var(--border-subtle);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.pillar-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--terracotta);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.pillar-card:hover::before { transform: scaleX(1); }
.pillar-card:hover { transform: translateY(-4px); box-shadow: 0 12px 48px var(--shadow-med); }

.pillar-icon {
  width: 48px; height: 48px;
  background: var(--terracotta-glow);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.pillar-icon svg {
  width: 22px; height: 22px;
  stroke: var(--terracotta);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.pillar-card h3 {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
  margin-bottom: 12px;
}

.pillar-card p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-mid);
}

/* ═══════════════════════════════
   SERVICE PAGES — OTHER SERVICES
   ═══════════════════════════════ */
.other-services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 48px;
}

.other-service-card {
  background: var(--white);
  border-radius: 16px;
  padding: 36px 32px;
  border: 1px solid var(--border-muted);
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

.other-service-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 48px var(--shadow-med);
}

.other-service-icon {
  width: 44px; height: 44px;
  background: var(--terracotta-glow);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.other-service-icon svg {
  width: 20px; height: 20px;
  stroke: var(--terracotta);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.other-service-card h3 {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 500;
  margin-bottom: 8px;
}

.other-service-card p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-mid);
}

/* ═══════════════════════════════
   SERVICE PAGES — FAQ
   ═══════════════════════════════ */
.faq-section { background: var(--bg-dark); color: var(--white); }
.faq-section .section-eyebrow { color: var(--terracotta-light); }
.faq-section .section-sub { color: var(--text-on-dark-muted); }

.faq-list {
  margin-top: 56px;
  max-width: 800px;
}

.faq-item {
  border-bottom: 1px solid var(--line-on-dark);
}

.faq-q {
  width: 100%;
  background: none;
  border: none;
  color: var(--white);
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 500;
  text-align: left;
  padding: 24px 40px 24px 0;
  cursor: pointer;
  position: relative;
  transition: color 0.2s;
  line-height: 1.5;
}

.faq-q:hover { color: var(--terracotta-light); }

.faq-q::after {
  content: '+';
  position: absolute;
  right: 0; top: 50%;
  transform: translateY(-50%);
  font-family: var(--mono);
  font-size: 20px;
  color: var(--terracotta-light);
  transition: transform 0.3s;
}

.faq-item.open .faq-q::after {
  transform: translateY(-50%) rotate(45deg);
}

.faq-a {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-on-dark-strong);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
  padding: 0;
}

.faq-item.open .faq-a {
  max-height: 600px;
  padding: 0 0 24px 0;
}

.faq-a p {
  margin: 0 0 12px;
}

.faq-a p:last-child {
  margin-bottom: 0;
}

.faq-a ul {
  margin: 0 0 12px;
  padding-left: 18px;
}

.faq-a li {
  margin-bottom: 6px;
}

/* ═══════════════════════════════
   FOOTER
   ═══════════════════════════════ */
.footer {
  background: var(--bg-dark);
  color: var(--text-on-dark-muted);
  padding: 64px 0 40px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--line-on-dark);
  margin-bottom: 32px;
}

.footer-brand-block .nav-brand {
  color: var(--white);
  display: block;
  margin-bottom: 16px;
}

.footer-tagline {
  font-size: 14px;
  line-height: 1.6;
  max-width: 280px;
  color: var(--text-on-dark-subtle);
}

.footer-col h4 {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-on-dark-faint);
  margin-bottom: 16px;
}

.footer-col a {
  display: block;
  font-size: 14px;
  color: var(--text-on-dark-muted);
  text-decoration: none;
  padding: 4px 0;
  transition: color 0.2s;
}

.footer-col a:hover { color: var(--white); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-copy {
  font-size: 12px;
  color: var(--text-on-dark-faint);
}

.footer-socials {
  display: flex;
  gap: 20px;
}

.footer-socials a {
  font-size: 13px;
  color: var(--text-on-dark-subtle);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-socials a:hover { color: var(--white); }

/* ═══════════════════════════════
   ANIMATIONS
   ═══════════════════════════════ */
.sr {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.sr.vis {
  opacity: 1;
  transform: translateY(0);
}

.sr-d1 { transition-delay: 0.06s; }
.sr-d2 { transition-delay: 0.12s; }
.sr-d3 { transition-delay: 0.18s; }
.sr-d4 { transition-delay: 0.24s; }
.sr-d5 { transition-delay: 0.30s; }

/* SPA TRANSITION */
.app-container {
  opacity: 1;
  transition: opacity 0.15s ease;
}

.app-container.transitioning {
  opacity: 0;
}

/* ═══════════════════════════════
   RESPONSIVE
   ═══════════════════════════════ */
@media (min-width: 1025px) {
  .nav-brand { padding-left: 45px; }
}

@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { max-width: 560px; }
  .intro-grid { grid-template-columns: 1fr; gap: 48px; }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .process-timeline { grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .process-timeline .proc-step:nth-child(n+4) { margin-top: 32px; }
  .process-timeline::before { display: none; }
  .results-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonial-grid { grid-template-columns: 1fr; }
  .testimonial-mark { display: none; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .pillars-grid { grid-template-columns: repeat(2, 1fr); }
  .other-services-grid { grid-template-columns: 1fr; }
  .about-intro-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-values-grid { grid-template-columns: repeat(2, 1fr); }
  .about-partners-grid { grid-template-columns: repeat(3, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .casus-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  /* Mobile Nav Panel */
  .nav-center {
    display: flex;
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    width: 100%;
    background: var(--bg);
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 22px;
    z-index: 190;
    padding: 24px 40px 40px;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-6px);
    pointer-events: none;
    transition: max-height 0.28s ease, opacity 0.2s ease, transform 0.2s ease;
  }
  .nav-center.open {
    max-height: calc(100vh - 64px);
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    overflow-y: auto;
  }
  .nav-center a { font-size: 18px; }
  .nav-center > li {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .nav-center > li > a {
    width: 100%;
    text-align: center;
  }
  .nav-dropdown-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
  }
  .nav-dropdown-wrap.open { gap: 6px; }
  .nav-dropdown-trigger {
    text-align: center;
    width: 100%;
  }

  /* Dropdown collapsed on mobile, toggled via JS */
  .nav-dropdown {
    position: static;
    transform: none;
    opacity: 0;
    visibility: hidden;
    box-shadow: none;
    border: none;
    background: transparent;
    padding: 0;
    min-width: 0;
    width: 100%;
    max-height: 0;
    overflow: hidden;
    transition: opacity 0.2s, visibility 0.2s, max-height 0.25s ease;
  }
  .nav-dropdown-wrap:hover .nav-dropdown {
    opacity: 0;
    visibility: hidden;
    transform: none;
  }
  .nav-dropdown-wrap.open .nav-dropdown {
    opacity: 1;
    visibility: visible;
    max-height: 360px;
  }
  .nav-dropdown a {
    text-align: center;
    font-size: 16px;
    padding: 8px 0;
    width: 100%;
  }

  /* Hamburger animation */
  .nav-toggle { display: flex; }
  .nav-toggle.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

  /* Hide CTA button in nav-right on mobile */
  .nav-right .btn-sm { display: none; }

  .nav-phone { display: none; }
  .hero-visual { display: none; }

  /* Section padding reduction */
  .section { padding: 60px 0; }
  .section-lg { padding: 80px 0; }
  .service-hero { padding: calc(64px + 60px) 0 48px; }
  .cta-section { padding: 80px 0; }

  /* Grid fixes */
  .services-grid { grid-template-columns: 1fr; margin-top: 36px; }
  .process-timeline { grid-template-columns: repeat(2, 1fr); gap: 24px; margin-top: 40px; }
  .process-timeline .proc-step:nth-child(n+4) { margin-top: 0; }
  .process-timeline::before { display: none; }
  .pillars-grid { grid-template-columns: 1fr; }
  .casus-grid { grid-template-columns: 1fr; }
  .team-row { flex-direction: column; }
  .partners-inner { flex-direction: column; gap: 24px; }
  .partners-logos { flex-wrap: wrap; justify-content: center; }

  /* Card padding reduction */
  .service-card { padding: 28px 24px 32px; }
  .pillar-card { padding: 28px 24px; }
  .casus-card { padding: 28px; }
  .result-cell { padding: 28px 20px; }

  /* Footer mobile fix */
  .footer { padding: 48px 0 32px; }
  .footer-top { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }
  .footer-tagline { max-width: none; }
  .footer-socials a { padding: 8px 0; }

  .lang-toggle { order: -1; }
  .service-hero h1 { font-size: clamp(36px, 8vw, 56px); }
  .about-values-grid { grid-template-columns: 1fr; }
  .about-partners-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-form-wrap { padding: 28px; }
  .contact-form-row { grid-template-columns: 1fr; }
  .contact-info-card, .contact-details-card, .contact-cta-card { padding: 28px; }
  .nav-lang {
    right: calc(var(--gutter) + 52px);
  }
  .back-to-top {
    bottom: 24px;
    width: 36px;
    height: 36px;
  }
}

@media (max-width: 480px) {
  .results-grid { grid-template-columns: 1fr; }
  .process-timeline { grid-template-columns: 1fr; }
  .intro-right { grid-template-columns: 1fr; }
  .about-partners-grid { grid-template-columns: 1fr; }
}
