/* CrewMando — refined minimalism with editorial confidence
   Last updated: May 11, 2026 */

:root {
  /* Palette */
  --bg:           #faf8f4;   /* warm white, not pure white */
  --bg-alt:       #f1ede4;   /* slightly deeper for sections */
  --ink:          #1a1a1a;   /* near-black for body text */
  --ink-soft:     #4a4a4a;
  --ink-muted:    #8a8a8a;
  --line:         #e6e1d6;   /* subtle dividers */
  --line-soft:    #efeae0;
  --accent:       #1f5a3d;   /* deep forest green */
  --accent-hover: #143d28;
  --accent-soft:  #e8efe9;   /* accent at 8% */
  --warn:         #b8501f;   /* clay orange, only for emphasis */
  --white:        #ffffff;

  /* Typography */
  --serif:  'Cormorant Garamond', 'EB Garamond', Georgia, serif;
  --sans:   'Inter Tight', 'Helvetica Neue', system-ui, sans-serif;
  --mono:   'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  /* Spacing scale */
  --s-1: 0.25rem;
  --s-2: 0.5rem;
  --s-3: 0.75rem;
  --s-4: 1rem;
  --s-5: 1.5rem;
  --s-6: 2rem;
  --s-7: 3rem;
  --s-8: 4rem;
  --s-9: 6rem;
  --s-10: 8rem;

  /* Layout */
  --max-w:   1180px;
  --max-w-prose: 680px;
  --radius:  6px;
  --radius-lg: 12px;

  /* Motion */
  --ease: cubic-bezier(0.2, 0.6, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
  font-size: 17px;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: 'ss01', 'cv11';
}

/* Subtle paper texture via gradient noise */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    radial-gradient(at 20% 10%, rgba(31, 90, 61, 0.025) 0px, transparent 50%),
    radial-gradient(at 80% 80%, rgba(31, 90, 61, 0.02) 0px, transparent 50%);
}

main, header, footer, section { position: relative; z-index: 1; }

a { color: inherit; text-decoration: none; }
a.link { color: var(--accent); border-bottom: 1px solid currentColor; transition: opacity 0.2s var(--ease); }
a.link:hover { opacity: 0.7; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--ink);
}

h1 { font-size: clamp(2.5rem, 5.5vw, 4.75rem); letter-spacing: -0.025em; }
h2 { font-size: clamp(2rem, 3.8vw, 3rem); letter-spacing: -0.02em; }
h3 { font-size: clamp(1.4rem, 2vw, 1.75rem); }
h4 { font-size: 1.15rem; font-family: var(--sans); font-weight: 600; letter-spacing: -0.005em; }

p { color: var(--ink-soft); }
em { font-style: italic; font-family: var(--serif); font-weight: 400; color: var(--ink); }

/* ───── Layout primitives ───── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--s-5);
}

.container-prose {
  max-width: var(--max-w-prose);
  margin: 0 auto;
  padding: 0 var(--s-5);
}

/* ───── Top bar ───── */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 248, 244, 0.85);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}

.topbar-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: var(--s-4) var(--s-5);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-5);
}

.brand {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.brand-dot {
  display: inline-block;
  width: 8px; height: 8px;
  background: var(--accent);
  border-radius: 50%;
  margin-right: 8px;
  vertical-align: middle;
  transform: translateY(-2px);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--s-6);
  font-size: 0.95rem;
  color: var(--ink-soft);
}
.nav-links a { transition: color 0.2s var(--ease); }
.nav-links a:hover { color: var(--accent); }

/* Language toggle */
.lang-toggle {
  display: flex;
  align-items: center;
  gap: var(--s-1);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px;
  background: var(--white);
}
.lang-btn {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  padding: 4px 10px;
  border: none;
  background: transparent;
  color: var(--ink-muted);
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s var(--ease);
}
.lang-btn.active {
  background: var(--accent);
  color: var(--white);
}
.lang-btn:not(.active):hover { color: var(--ink); }

/* ───── Hero ───── */
.hero {
  padding: var(--s-10) 0 var(--s-9);
  position: relative;
}

.hero-eyebrow {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--s-5);
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
}
.hero-eyebrow::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 1px;
  background: var(--accent);
}

.hero-title {
  margin-bottom: var(--s-6);
  max-width: 14ch;
}
.hero-title em { color: var(--accent); }

.hero-lede {
  font-size: clamp(1.1rem, 1.5vw, 1.3rem);
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: 56ch;
  margin-bottom: var(--s-7);
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-4);
  align-items: center;
}

/* ───── Buttons ───── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  padding: var(--s-4) var(--s-6);
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: -0.005em;
  cursor: pointer;
  transition: all 0.2s var(--ease);
  text-align: center;
  line-height: 1.2;
}
.btn-primary {
  background: var(--accent);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px -8px rgba(31, 90, 61, 0.4);
}
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover {
  border-color: var(--ink);
}
.btn-arrow::after {
  content: '→';
  transition: transform 0.2s var(--ease);
}
.btn:hover .btn-arrow::after { transform: translateX(3px); }

/* ───── Section system ───── */
.section {
  padding: var(--s-9) 0;
  position: relative;
}
.section-alt {
  background: var(--bg-alt);
}

.section-eyebrow {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: var(--s-4);
}
.section-title {
  margin-bottom: var(--s-5);
  max-width: 22ch;
}
.section-intro {
  font-size: 1.1rem;
  color: var(--ink-soft);
  max-width: 60ch;
  margin-bottom: var(--s-7);
}

/* ───── Process steps ───── */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-7);
  margin-top: var(--s-7);
}
@media (max-width: 760px) {
  .steps { grid-template-columns: 1fr; gap: var(--s-6); }
}
.step {
  position: relative;
}
.step-num {
  font-family: var(--serif);
  font-size: 3.5rem;
  font-weight: 400;
  font-style: italic;
  color: var(--accent);
  line-height: 1;
  margin-bottom: var(--s-4);
}
.step h3 {
  margin-bottom: var(--s-3);
}
.step p {
  font-size: 0.97rem;
}

/* ───── Service categories ───── */
.categories {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  margin-top: var(--s-7);
}
@media (max-width: 700px) {
  .categories { grid-template-columns: 1fr; }
}

.category {
  border-bottom: 1px solid var(--line);
  padding: var(--s-6) 0;
  padding-right: var(--s-5);
  display: flex;
  gap: var(--s-5);
  align-items: baseline;
}
.category:nth-child(odd) {
  padding-right: var(--s-7);
}
.category:nth-child(even) {
  padding-left: var(--s-7);
  border-left: 1px solid var(--line);
}
@media (max-width: 700px) {
  .category:nth-child(even) {
    padding-left: 0;
    border-left: none;
  }
}

.category-num {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--ink-muted);
  letter-spacing: 0.1em;
  flex-shrink: 0;
  min-width: 30px;
}
.category-text h4 {
  margin-bottom: var(--s-2);
}
.category-text p {
  font-size: 0.9rem;
  color: var(--ink-muted);
  line-height: 1.5;
}

/* ───── Two-column split (translation pitch / network pitch) ───── */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-8);
  align-items: start;
}
@media (max-width: 800px) {
  .split { grid-template-columns: 1fr; gap: var(--s-7); }
}
.split-card {
  padding: var(--s-6);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.split-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 40px -16px rgba(0, 0, 0, 0.08);
}
.split-card .icon-bar {
  width: 32px;
  height: 2px;
  background: var(--accent);
  margin-bottom: var(--s-5);
}
.split-card h3 {
  margin-bottom: var(--s-3);
}
.split-card p {
  font-size: 0.97rem;
  line-height: 1.55;
}

/* ───── CTA band ───── */
.cta-band {
  background: var(--ink);
  color: var(--bg);
  padding: var(--s-9) 0;
  text-align: center;
}
.cta-band h2 {
  color: var(--bg);
  margin-bottom: var(--s-5);
  max-width: 24ch;
  margin-left: auto;
  margin-right: auto;
}
.cta-band p {
  color: rgba(250, 248, 244, 0.7);
  margin-bottom: var(--s-7);
  max-width: 48ch;
  margin-left: auto;
  margin-right: auto;
}
.cta-band .btn-primary {
  background: var(--bg);
  color: var(--ink);
}
.cta-band .btn-primary:hover {
  background: var(--white);
}

/* ───── Footer ───── */
.footer {
  padding: var(--s-7) 0 var(--s-5);
  border-top: 1px solid var(--line);
  font-size: 0.88rem;
  color: var(--ink-muted);
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-5);
  justify-content: space-between;
  align-items: center;
}
.footer-links {
  display: flex;
  gap: var(--s-5);
}
.footer-links a:hover { color: var(--accent); }

/* ───── Form pages ───── */
.form-page {
  padding: var(--s-8) 0 var(--s-9);
}
.form-intro {
  text-align: left;
  margin-bottom: var(--s-7);
}
.form-intro h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: var(--s-4);
}
.form-intro p {
  font-size: 1.05rem;
  max-width: 58ch;
}

.form-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(var(--s-5), 4vw, var(--s-7));
}

.form-group {
  margin-bottom: var(--s-5);
}
.form-group:last-child { margin-bottom: 0; }

.form-label {
  display: block;
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: -0.003em;
  color: var(--ink);
  margin-bottom: var(--s-2);
}
.form-label .req {
  color: var(--warn);
  margin-left: 2px;
}
.form-hint {
  display: block;
  font-size: 0.8rem;
  color: var(--ink-muted);
  margin-top: var(--s-1);
  font-style: italic;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 12px 14px;
  font-family: var(--sans);
  font-size: 0.98rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--ink);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.form-textarea {
  min-height: 110px;
  resize: vertical;
  font-family: var(--sans);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-4);
}
@media (max-width: 600px) {
  .form-row { grid-template-columns: 1fr; }
}

.checkbox-group {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: var(--s-2);
  margin-top: var(--s-2);
}
.checkbox-label {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 0.92rem;
  color: var(--ink-soft);
  background: var(--bg);
  transition: all 0.15s var(--ease);
  user-select: none;
}
.checkbox-label:hover {
  border-color: var(--ink-muted);
  color: var(--ink);
}
.checkbox-label input {
  accent-color: var(--accent);
}
.checkbox-label input:checked + span,
.checkbox-label:has(input:checked) {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 500;
}

.radio-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
}
.radio-label {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.92rem;
  color: var(--ink-soft);
  background: var(--bg);
  transition: all 0.15s var(--ease);
  user-select: none;
}
.radio-label:has(input:checked) {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 500;
}
.radio-label input {
  accent-color: var(--accent);
  margin: 0;
}

.submit-row {
  margin-top: var(--s-7);
  padding-top: var(--s-6);
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-4);
  justify-content: space-between;
  align-items: center;
}

.form-success {
  display: none;
  padding: var(--s-6);
  background: var(--accent-soft);
  border: 1px solid var(--accent);
  border-radius: var(--radius-lg);
  text-align: center;
}
.form-success.active { display: block; }
.form-success h3 {
  color: var(--accent);
  margin-bottom: var(--s-3);
}
.form-success p {
  color: var(--ink);
}

.form-error {
  display: none;
  padding: var(--s-4);
  background: rgba(184, 80, 31, 0.08);
  border: 1px solid var(--warn);
  border-radius: var(--radius);
  color: var(--warn);
  font-size: 0.9rem;
  margin-top: var(--s-4);
}
.form-error.active { display: block; }

/* ───── Animation: subtle stagger on hero load ───── */
@keyframes reveal {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-eyebrow { animation: reveal 0.7s var(--ease) 0.1s both; }
.hero-title    { animation: reveal 0.7s var(--ease) 0.25s both; }
.hero-lede     { animation: reveal 0.7s var(--ease) 0.4s both; }
.hero-cta-row  { animation: reveal 0.7s var(--ease) 0.55s both; }

/* ───── Utility ───── */
.hidden { display: none !important; }
.text-mono { font-family: var(--mono); font-size: 0.85em; letter-spacing: 0.05em; }
