/* ============================================================
   Allemis — design system
   ============================================================ */

:root {
  /* Palette */
  --bg: #fcfdfc;
  --surface: #ffffff;
  --ink: #11140f;
  --ink-2: #2c302a;
  --muted: #5e6b60;
  --border: #e6e9e4;
  --accent: #0e5c3a;
  --accent-hover: #0a4a2e;
  --accent-soft: #e6f1ec;

  /* Type */
  --font-display: "Instrument Serif", "Times New Roman", Georgia, serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;

  /* Sizing */
  --max-w: 1200px;
  --max-prose: 760px;

  /* Radii / shadows */
  --r-sm: 2px;
  --r-md: 2px;
  --r-lg: 3px;
  --shadow-sm: 0 1px 2px rgba(15, 15, 14, 0.04);
  --shadow-md: 0 8px 30px rgba(15, 15, 14, 0.06);
}

/* ============================================================
   Reset / base
   ============================================================ */

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }

a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color .15s ease, color .15s ease;
}

a:hover { border-bottom-color: var(--ink); }

button { font-family: inherit; cursor: pointer; }

/* ============================================================
   Typography
   ============================================================ */

h1, h2, h3, h4 {
  font-family: var(--font-sans);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 0 0.5em;
  line-height: 1.1;
}

h1 { font-size: clamp(2.25rem, 4.5vw, 3.25rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); line-height: 1.1; }
h3 { font-size: clamp(1.35rem, 2.2vw, 1.75rem); line-height: 1.2; }
h4 { font-family: var(--font-sans); font-size: 1rem; font-weight: 600; letter-spacing: 0; line-height: 1.3; }

p { margin: 0 0 1.2em; color: var(--ink-2); }

.eyebrow {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

.kicker {
  display: block;
  width: 44px;
  height: 3px;
  background: var(--accent);
  border: 0;
  margin: 0 0 1.5rem;
}

.lead { font-size: 1.2rem; color: var(--ink-2); max-width: 60ch; }

/* ============================================================
   Layout primitives
   ============================================================ */

.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section { padding: 6rem 0; }
.section-tight { padding: 4rem 0; }

@media (max-width: 720px) {
  .section { padding: 4rem 0; }
}

.divider { height: 1px; background: var(--border); border: 0; margin: 0; }

/* ============================================================
   Nav
   ============================================================ */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(252, 253, 252, 0.85);
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease;
}

.nav.scrolled { border-bottom-color: var(--border); }

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand {
  font-family: var(--font-display);
  font-size: 1.6rem;
  letter-spacing: -0.01em;
  color: var(--ink);
  border-bottom: none;
}

.brand:hover { border-bottom: none; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links a {
  font-size: 0.95rem;
  color: var(--ink-2);
  border-bottom: none;
}

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

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

.nav-links a.nav-cta {
  padding: 0.55rem 1.1rem;
  border: 1px solid var(--ink);
  border-radius: var(--r-md);
  color: var(--ink) !important;
  transition: background .15s ease, color .15s ease;
}

.nav-cta:hover {
  background: var(--ink);
  color: var(--bg) !important;
  border-bottom: 1px solid var(--ink) !important;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 0;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--ink);
  position: relative;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: '';
  position: absolute;
  left: 0;
  width: 22px;
  height: 1.5px;
  background: var(--ink);
}

.nav-toggle span::before { top: -7px; }
.nav-toggle span::after { top: 7px; }

@media (max-width: 720px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--bg);
    flex-direction: column;
    padding: 1.5rem;
    gap: 1.25rem;
    border-bottom: 1px solid var(--border);
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: flex; }
}

/* ============================================================
   Buttons
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.4rem;
  border-radius: var(--r-md);
  font-size: 0.97rem;
  font-weight: 500;
  border: 1px solid transparent;
  transition: background .15s ease, color .15s ease, border-color .15s ease, transform .15s ease;
  cursor: pointer;
  line-height: 1;
}

.btn:hover { transform: translateY(-1px); border-bottom: 1px solid transparent; }

.btn-primary {
  background: var(--ink);
  color: var(--bg);
}

.btn-primary:hover { background: var(--accent); color: var(--bg); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--border);
}

.btn-ghost:hover { border-color: var(--ink); }

.btn-arrow::after {
  content: '→';
  display: inline-block;
  transition: transform .15s ease;
}

.btn:hover .btn-arrow::after,
.btn-arrow:hover::after { transform: translateX(3px); }

/* ============================================================
   Hero
   ============================================================ */

.hero {
  padding: 3rem 0 5.5rem;
}

.hero h1 { max-width: none; margin-bottom: 1.5rem; }

.hero .lead { margin-bottom: 2.5rem; max-width: 56ch; }

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-meta {
  margin-top: 4rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.hero-meta .item .num {
  font-family: var(--font-display);
  font-size: 1.85rem;
  color: var(--accent);
  display: block;
  line-height: 1.1;
  letter-spacing: -0.005em;
}

.hero-meta .item .label {
  font-size: 0.92rem;
  color: var(--ink-2);
  margin-top: 0.6rem;
  display: block;
  line-height: 1.5;
}

@media (max-width: 720px) {
  .hero { padding: 2rem 0 3rem; }
  .hero-meta { grid-template-columns: 1fr; gap: 1.5rem; }
}

/* ============================================================
   Dual-track (for brands / for agencies)
   ============================================================ */

.dual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--surface);
}

.dual-col {
  padding: 3rem;
  border-right: 1px solid var(--border);
}

.dual-col:last-child { border-right: 0; }

.dual-col h3 { margin-bottom: 1rem; }

.dual-col ul {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
}

.dual-col ul li {
  position: relative;
  padding-left: 1.25rem;
  margin-bottom: 0.65rem;
  color: var(--ink-2);
  font-size: 0.97rem;
}

.dual-col ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
}

.dual-col .col-cta {
  margin-top: 2rem;
  font-size: 0.95rem;
  color: var(--accent);
  border-bottom: 1px solid var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.dual-col .col-cta:hover { color: var(--accent-hover); border-bottom-color: var(--accent-hover); }

@media (max-width: 800px) {
  .dual { grid-template-columns: 1fr; }
  .dual-col { border-right: 0; border-bottom: 1px solid var(--border); padding: 2rem; }
  .dual-col:last-child { border-bottom: 0; }
}

/* ============================================================
   Section heading
   ============================================================ */

.section-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 4rem;
  align-items: start;
}

.section-head h2 { margin-bottom: 0; max-width: none; font-size: clamp(1.5rem, 2.4vw, 1.85rem); line-height: 1.2; }

.section-head .right { color: var(--ink-2); max-width: 50ch; font-size: 1.0625rem; line-height: 1.6; }

@media (max-width: 800px) {
  .section-head { grid-template-columns: 1fr; gap: 1.5rem; margin-bottom: 2.5rem; }
}

/* ============================================================
   Capability grid
   ============================================================ */

.cap-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.cap {
  padding: 2rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  transition: border-color .2s ease, transform .2s ease;
}

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

.cap h3 { font-size: 1.4rem; margin-bottom: 0.65rem; }
.cap p { margin-bottom: 0; color: var(--ink-2); font-size: 0.97rem; }

.cap .cap-num {
  font-family: var(--font-display);
  color: var(--accent);
  font-size: 1.25rem;
  display: block;
  margin-bottom: 1.5rem;
}

@media (max-width: 720px) {
  .cap-grid { grid-template-columns: 1fr; }
  .cap { padding: 1.5rem; }
}

/* ============================================================
   How it works (process)
   ============================================================ */

.process {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  counter-reset: step;
}

.step {
  padding: 2rem 0 0;
  border-top: 1px solid var(--ink);
}

.step .step-num {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--muted);
  margin-bottom: 1.25rem;
  display: block;
}

.step h3 { margin-bottom: 0.5rem; font-size: 1.5rem; }
.step p { color: var(--ink-2); font-size: 0.97rem; margin-bottom: 0; }

@media (max-width: 720px) {
  .process { grid-template-columns: 1fr; }
}

/* ============================================================
   Why section
   ============================================================ */

.why {
  background: var(--ink);
  color: var(--bg);
  border-radius: var(--r-lg);
  padding: 4rem 3rem;
}

.why h2 { color: var(--bg); max-width: 18ch; }

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  margin-top: 3rem;
}

.why-item h3 { color: var(--bg); font-size: 1.35rem; }
.why-item p { color: rgba(250, 248, 243, 0.7); margin-bottom: 0; font-size: 0.97rem; }

@media (max-width: 800px) {
  .why { padding: 2.5rem 1.75rem; }
  .why-grid { grid-template-columns: 1fr; gap: 2rem; margin-top: 2rem; }
}

/* ============================================================
   CTA band
   ============================================================ */

.cta-band {
  text-align: center;
  padding: 6rem 0;
}

.cta-band h2 { max-width: 22ch; margin: 0 auto 1.5rem; }
.cta-band p { max-width: 50ch; margin: 0 auto 2rem; }

/* ============================================================
   About page
   ============================================================ */

.page-head {
  padding: 6rem 0 4rem;
  border-bottom: 1px solid var(--border);
}

.page-head h1 { max-width: 18ch; margin-bottom: 1.5rem; }
.page-head .lead { max-width: 56ch; }

.prose {
  max-width: var(--max-prose);
}

.prose h2 { margin-top: 3rem; }
.prose h3 { margin-top: 2rem; }
.prose p, .prose ul { color: var(--ink-2); font-size: 1.05rem; line-height: 1.7; }
.prose ul { padding-left: 1.25rem; }
.prose ul li { margin-bottom: 0.5rem; }

.principles {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  margin-top: 2rem;
}

.principle {
  padding: 1.75rem;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: var(--r-lg);
}

.principle h4 { margin-bottom: 0.5rem; color: var(--accent); }
.principle p { margin-bottom: 0; font-size: 0.97rem; }

@media (max-width: 720px) { .principles { grid-template-columns: 1fr; } }

/* ============================================================
   Services page
   ============================================================ */

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

.service-row {
  display: grid;
  grid-template-columns: 220px 1fr 1fr;
  gap: 2rem;
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--border);
  align-items: start;
}

.service-row .label {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.service-row h3 { font-size: 1.65rem; margin-bottom: 0.75rem; }
.service-row .desc { color: var(--ink-2); margin-bottom: 0.5rem; }
.service-row .tags { font-size: 0.85rem; color: var(--muted); }

@media (max-width: 800px) {
  .service-row { grid-template-columns: 1fr; gap: 0.75rem; padding: 2rem 0; }
}

.engagement {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 3rem;
}

.engagement-card {
  padding: 2rem;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: var(--r-lg);
}

.engagement-card h4 { color: var(--accent); margin-bottom: 0.5rem; font-size: 0.85rem; letter-spacing: 0.1em; text-transform: uppercase; }
.engagement-card h3 { font-size: 1.4rem; margin-bottom: 0.75rem; }
.engagement-card p { margin-bottom: 0; font-size: 0.95rem; }

@media (max-width: 800px) { .engagement { grid-template-columns: 1fr; } }

/* ============================================================
   Contact / Form
   ============================================================ */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}

@media (max-width: 800px) {
  .contact-grid { grid-template-columns: 1fr; gap: 3rem; }
}

.contact-info p { margin-bottom: 0.5rem; }

.contact-info .email-link {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--accent);
  border-bottom: 1px solid var(--accent);
}

.contact-info .label-sm {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 2.5rem;
  margin-bottom: 0.5rem;
  display: block;
}

form.contact-form {
  display: grid;
  gap: 1.1rem;
}

.field { display: grid; gap: 0.4rem; }

.field label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--ink);
}

.field label .req { color: var(--accent); }

.field input,
.field select,
.field textarea {
  font-family: var(--font-sans);
  font-size: 1rem;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 0.85rem 1rem;
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.field textarea { min-height: 140px; resize: vertical; }

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem;
}

@media (max-width: 600px) { .field-row { grid-template-columns: 1fr; } }

.radio-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.radio-row label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--surface);
  cursor: pointer;
  font-size: 0.95rem;
  transition: border-color .15s ease, background .15s ease;
}

.radio-row label:hover { border-color: var(--ink); }

.radio-row input[type=radio] {
  appearance: none;
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  border: 1.5px solid var(--border);
  border-radius: 50%;
  position: relative;
  margin: 0;
  cursor: pointer;
}

.radio-row input[type=radio]:checked {
  border-color: var(--accent);
}

.radio-row input[type=radio]:checked::after {
  content: '';
  position: absolute;
  inset: 3px;
  background: var(--accent);
  border-radius: 50%;
}

.radio-row label:has(input:checked) {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.form-message {
  padding: 1rem 1.2rem;
  border-radius: var(--r-md);
  font-size: 0.95rem;
  display: none;
}

.form-message.success {
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid var(--accent);
  display: block;
}

.form-message.error {
  background: #fdecec;
  color: #8a1f1f;
  border: 1px solid #f5c2c2;
  display: block;
}

/* ============================================================
   FAQ (common questions)
   ============================================================ */

.faq {
  max-width: 880px;
  margin: 0 auto;
}

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

.faq-item:first-of-type { border-top: 1px solid var(--border); }

.faq-item summary {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  color: var(--ink);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.6rem 0;
  letter-spacing: -0.005em;
  line-height: 1.3;
  transition: color .15s ease;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: '+';
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 1.5rem;
  color: var(--accent);
  flex-shrink: 0;
  line-height: 1.1;
  transition: transform .2s ease;
}

.faq-item[open] summary::after { content: '−'; }

.faq-item summary:hover { color: var(--accent); }

.faq-item .answer {
  padding: 0 3rem 1.75rem 0;
  color: var(--ink-2);
  font-size: 1.0rem;
  line-height: 1.7;
}

.faq-item .answer p { margin: 0 0 0.8em; }
.faq-item .answer p:last-child { margin-bottom: 0; }

/* ============================================================
   Service timeline (services page)
   ============================================================ */

.service-row .timeline,
.service-row .best-for {
  font-size: 0.92rem;
  color: var(--ink);
  margin: 0.75rem 0 0;
  line-height: 1.5;
}

.service-row .timeline { margin-bottom: 0.85rem; }
.service-row .best-for { color: var(--ink-2); }

.label-mini {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-right: 0.35rem;
}

/* ============================================================
   Pillars (3-column)
   ============================================================ */

.pillars {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem;
}

.pillar {
  border-top: 1px solid var(--border);
  padding-top: 1.35rem;
}

.pillar .p-label {
  font-family: var(--font-sans);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--ink);
  display: block;
  margin-bottom: 0.6rem;
  line-height: 1.2;
}

.pillar p {
  margin: 0;
  color: var(--ink-2);
  font-size: 1.0625rem;
  line-height: 1.6;
}

@media (max-width: 720px) {
  .pillars { grid-template-columns: 1fr; gap: 1.25rem; }
}

/* ============================================================
   Leadership points
   ============================================================ */

.lead-points { margin-top: 1rem; }

.lead-point {
  border-top: 1px solid var(--border);
  padding: 1.4rem 0;
}

.lead-point:last-child { border-bottom: 1px solid var(--border); }

.lead-point strong {
  display: block;
  color: var(--ink);
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.lead-point p {
  margin: 0;
  color: var(--ink-2);
  font-size: 0.97rem;
}

/* ============================================================
   Footer
   ============================================================ */

.footer {
  padding: 2rem 0 2.5rem;
  margin-top: 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
}

.footer .brand-block .brand {
  font-size: 2rem;
  display: inline-block;
  margin-bottom: 0.5rem;
}

.footer .brand-block p {
  color: var(--muted);
  font-size: 0.95rem;
  max-width: 56ch;
}

.footer-col h4 {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1rem;
}

.footer-col a {
  display: block;
  color: var(--ink-2);
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
  border-bottom: none;
}

.footer-col a:hover { color: var(--ink); border-bottom: none; }

.footer-bottom {
  margin-top: 0;
  padding-top: 0;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--muted);
}

@media (max-width: 720px) {
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; }
}
