/* ============================================
   AXM Partners — Hybrid Operator Design System
   ============================================ */

/* --- CSS Custom Properties --- */
:root {
  /* Surfaces */
  --surface-light: #FAFAF7;
  --surface-dark: #0E0E10;

  /* Text */
  --text-heading-light: #0E0E10;
  --text-body-light: #3A3A3E;
  --text-heading-dark: #F8F8F5;
  --text-body-dark: #B0B0B5;

  /* Accent */
  --accent: #C97A2A;
  --accent-hover: #B06A20;

  /* Borders */
  --border-light: #E8E8E3;
  --border-dark: #1F1F22;

  /* Layout */
  --max-width: 1280px;
  --gutter: 24px;

  /* Typography */
  --font-serif: 'Newsreader', Georgia, serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
}

/* --- Reset & Base --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 18px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  color: var(--text-body-light);
  background-color: var(--surface-light);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s ease;
}

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

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  color: var(--text-heading-light);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 500;
}

h2 {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 500;
}

h3 {
  font-size: 1.33rem;
  font-weight: 500;
}

h4 {
  font-size: 1rem;
  font-family: var(--font-sans);
  font-weight: 600;
}

p {
  margin-bottom: 1rem;
}

.label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
}

/* --- Layout --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section {
  padding: 120px 0;
}

.section--dark {
  background-color: var(--surface-dark);
  color: var(--text-body-dark);
}

.section--dark h1,
.section--dark h2,
.section--dark h3,
.section--dark h4 {
  color: var(--text-heading-dark);
}

.section--dark .label {
  color: var(--accent);
}

/* --- Header / Navigation --- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(250, 250, 247, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.site-logo {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--text-heading-light);
  letter-spacing: -0.01em;
}

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

.site-nav a {
  font-size: 0.88rem;
  color: var(--text-body-light);
  font-weight: 450;
  transition: color 0.2s ease;
}

.site-nav a:hover {
  color: var(--text-heading-light);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 1.2rem;
  background: var(--accent);
  color: #fff !important;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 500;
  transition: background 0.2s ease;
}

.nav-cta:hover {
  background: var(--accent-hover);
  color: #fff !important;
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-heading-light);
  margin: 5px 0;
  transition: all 0.3s ease;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.8rem;
  border-radius: 6px;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
  text-decoration: none;
}

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

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

.btn--secondary {
  background: transparent;
  color: var(--text-body-light);
  border: 1px solid var(--border-light);
}

.btn--secondary:hover {
  border-color: var(--text-body-light);
  color: var(--text-heading-light);
}

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

.btn--dark:hover {
  background: var(--accent-hover);
  color: #fff;
}

.btn-arrow {
  transition: transform 0.2s ease;
}

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

/* --- Hero --- */
.hero {
  padding-top: 160px;
  padding-bottom: 100px;
}

.hero__content {
  max-width: 720px;
}

.hero h1 {
  margin-bottom: 1.2rem;
}

.hero__sub {
  font-size: 1.15rem;
  color: var(--text-body-light);
  margin-bottom: 2.2rem;
  max-width: 560px;
  line-height: 1.7;
}

.hero__actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 3rem;
}

.hero__rule {
  width: 60px;
  height: 2px;
  background: var(--accent);
  border: none;
  margin-top: 2rem;
}

/* --- Problem Section --- */
.problems-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  margin-top: 3rem;
}

.problem-card {
  padding: 2rem 0;
  border-top: 1px solid var(--border-light);
}

.problem-card h3 {
  margin-bottom: 0.8rem;
  font-size: 1.2rem;
}

.problem-card p {
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--text-body-light);
}

.problems-closer {
  margin-top: 3rem;
  font-size: 1.1rem;
  font-style: italic;
  color: var(--text-heading-light);
}

/* --- Offer Section --- */
.offer-card {
  background: var(--surface-light);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 3.5rem;
  max-width: 720px;
  margin-top: 2.5rem;
}

.offer-card .label {
  margin-bottom: 0.5rem;
  display: block;
}

.offer-card h3 {
  font-size: 1.6rem;
  margin-bottom: 1rem;
}

.offer-card__promise {
  font-size: 1.05rem;
  margin-bottom: 2rem;
  color: var(--text-body-light);
}

.offer-card__deliverables {
  list-style: none;
  margin-bottom: 2rem;
}

.offer-card__deliverables li {
  padding: 0.5rem 0;
  padding-left: 1.5rem;
  position: relative;
  font-size: 0.95rem;
}

.offer-card__deliverables li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--accent);
}

.offer-card__meta {
  display: flex;
  gap: 2.5rem;
  margin-bottom: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-light);
}

.offer-card__meta-item {
  font-size: 0.85rem;
}

.offer-card__meta-item span {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  margin-bottom: 0.3rem;
}

/* --- Process / How it works --- */
.process-list {
  margin-top: 3rem;
  max-width: 680px;
}

.process-step {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 1.5rem;
  padding: 2rem 0;
  border-bottom: 1px solid var(--border-light);
}

.process-step:last-child {
  border-bottom: none;
}

.process-step__number {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--accent);
  padding-top: 0.2rem;
}

.process-step h3 {
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.process-step p {
  font-size: 0.95rem;
  line-height: 1.65;
}

/* --- Proof / Work Section --- */
.work-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  margin-top: 3rem;
}

.work-card {
  padding: 2.5rem;
  border: 1px solid var(--border-dark);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
}

.work-card .label {
  margin-bottom: 1rem;
  display: block;
}

.work-card h3 {
  margin-bottom: 0.8rem;
  font-size: 1.2rem;
}

.work-card p {
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--text-body-dark);
}

/* --- Frameworks --- */
.frameworks-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 2.5rem;
}

.framework-item {
  padding: 2rem;
  border: 1px solid var(--border-dark);
  border-radius: 8px;
  text-align: left;
}

.framework-item h4 {
  color: var(--text-heading-dark);
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.framework-item p {
  font-size: 0.82rem;
  color: var(--text-body-dark);
  line-height: 1.5;
}

/* --- About Teaser --- */
.about-teaser {
  max-width: 640px;
}

.about-teaser p {
  font-size: 1.05rem;
  line-height: 1.75;
  margin-bottom: 1.2rem;
}

/* --- FAQ --- */
.faq-list {
  max-width: 720px;
  margin-top: 3rem;
}

.faq-item {
  padding: 1.8rem 0;
  border-bottom: 1px solid var(--border-light);
}

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

.faq-item h3 {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.6rem;
  color: var(--text-heading-light);
}

.faq-item p {
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--text-body-light);
}

/* --- Closing CTA --- */
.closing-cta {
  text-align: left;
  padding: 100px 0;
}

.closing-cta h2 {
  margin-bottom: 1rem;
}

.closing-cta p {
  font-size: 1.05rem;
  color: var(--text-body-dark);
  margin-bottom: 2rem;
  max-width: 560px;
}

/* --- Footer --- */
.site-footer {
  padding: 3rem 0;
  border-top: 1px solid var(--border-light);
}

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

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-links a {
  font-size: 0.82rem;
  color: var(--text-body-light);
}

.footer-copy {
  font-size: 0.82rem;
  color: var(--text-body-light);
}

/* --- Page Header (inner pages) --- */
.page-header {
  padding-top: 140px;
  padding-bottom: 60px;
  border-bottom: 1px solid var(--border-light);
}

.page-header h1 {
  font-size: clamp(2rem, 4vw, 3rem);
}

.page-header p {
  margin-top: 1rem;
  font-size: 1.1rem;
  max-width: 560px;
  color: var(--text-body-light);
}

/* --- Article / Thinking --- */
.articles-list {
  margin-top: 3rem;
}

.article-item {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: baseline;
  padding: 1.8rem 0;
  border-bottom: 1px solid var(--border-light);
  gap: 2rem;
}

.article-item:first-child {
  border-top: 1px solid var(--border-light);
}

.article-item h3 {
  font-size: 1.15rem;
  font-family: var(--font-sans);
  font-weight: 500;
}

.article-item h3 a {
  color: var(--text-heading-light);
}

.article-item h3 a:hover {
  color: var(--accent);
}

.article-item__meta {
  font-size: 0.78rem;
  font-family: var(--font-mono);
  color: var(--text-body-light);
  white-space: nowrap;
}

.article-item p {
  margin-top: 0.4rem;
  font-size: 0.9rem;
  color: var(--text-body-light);
  grid-column: 1;
}

/* --- About Page --- */
.about-content {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: 4rem;
  margin-top: 3rem;
}

.about-bio p {
  font-size: 1rem;
  line-height: 1.75;
  margin-bottom: 1.2rem;
}

.about-sidebar {
  padding-top: 0.5rem;
}

.about-principles {
  list-style: none;
  margin-top: 1.5rem;
}

.about-principles li {
  padding: 0.6rem 0;
  padding-left: 1.2rem;
  position: relative;
  font-size: 0.92rem;
  border-bottom: 1px solid var(--border-light);
}

.about-principles li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--accent);
}

.about-personal {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-light);
  font-size: 0.9rem;
  color: var(--text-body-light);
  line-height: 1.7;
}

/* --- Form (Start page) --- */
.intake-form {
  max-width: 600px;
  margin-top: 3rem;
}

.form-group {
  margin-bottom: 1.8rem;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: var(--text-heading-light);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid var(--border-light);
  border-radius: 6px;
  font-size: 0.95rem;
  font-family: var(--font-sans);
  background: #fff;
  color: var(--text-heading-light);
  transition: border-color 0.2s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

/* --- Legal page --- */
.legal-content {
  max-width: 680px;
  margin-top: 3rem;
}

.legal-content h2 {
  font-size: 1.4rem;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

.legal-content p {
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 1rem;
}

/* --- 404 --- */
.page-404 {
  padding-top: 200px;
  padding-bottom: 200px;
  text-align: left;
}

.page-404 h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.page-404 p {
  font-size: 1.1rem;
}

/* --- Scroll Reveal --- */
.reveal {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.4s ease-out, transform 0.4s ease-out;
}

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

/* --- Responsive --- */
@media (max-width: 1024px) {
  .problems-grid {
    grid-template-columns: 1fr 1fr;
  }

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

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

  .about-content {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

@media (max-width: 768px) {
  html {
    font-size: 16px;
  }

  .section {
    padding: 80px 0;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--surface-light);
    flex-direction: column;
    padding: 1.5rem var(--gutter);
    border-bottom: 1px solid var(--border-light);
    gap: 1rem;
  }

  .site-nav.active {
    display: flex;
  }

  .nav-toggle {
    display: block;
  }

  .hero {
    padding-top: 120px;
    padding-bottom: 60px;
  }

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

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

  .offer-card {
    padding: 2rem;
  }

  .offer-card__meta {
    flex-direction: column;
    gap: 1rem;
  }

  .process-step {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .process-step__number {
    padding-top: 0;
  }

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

  .article-item {
    grid-template-columns: 1fr;
    gap: 0.3rem;
  }

  .site-footer .container {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
  }

  /* Sticky mobile CTA */
  .mobile-cta {
    display: block;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1rem var(--gutter);
    background: var(--surface-dark);
    border-top: 1px solid var(--border-dark);
    z-index: 999;
    text-align: center;
  }

  .mobile-cta .btn {
    width: 100%;
    justify-content: center;
  }
}

@media (min-width: 769px) {
  .mobile-cta {
    display: none;
  }
}
