/* ============================================
   Axelrod Technologies — Stylesheet
   Refined editorial minimalism
   ============================================ */

:root {
  --paper:        #fafaf7;
  --paper-2:      #f3f1ea;
  --ink:          #14140f;
  --ink-2:        #2a2a24;
  --muted:        #6e6e63;
  --rule:         #e2dfd5;
  --accent:       #b8470b;     /* warm ember accent */
  --accent-soft:  #f5e9df;

  --font-serif:   'Fraunces', Georgia, 'Times New Roman', serif;
  --font-sans:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --max:          1200px;
  --gutter:       clamp(1.25rem, 4vw, 2.5rem);

  --ease:         cubic-bezier(.2, .7, .2, 1);
}

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

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

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

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

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: var(--paper);
  padding: .75rem 1rem; z-index: 100;
}
.skip-link:focus { left: 1rem; top: 1rem; }

/* =========================
   HEADER
   ========================= */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 250, 247, 0.85);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease);
}
.site-header.scrolled { border-bottom-color: var(--rule); }

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

.brand { display: flex; align-items: center; gap: .65rem; }
.brand-mark {
  width: 34px; height: 34px;
  background: var(--ink); color: var(--paper);
  display: grid; place-items: center;
  font-family: var(--font-serif);
  font-size: 1.15rem; font-weight: 600;
  border-radius: 4px;
}
.brand-name {
  font-family: var(--font-serif);
  font-size: 1.2rem; font-weight: 500;
  letter-spacing: -.01em;
}
.brand-dot { color: var(--accent); }

.nav { display: flex; gap: 2rem; }
.nav a {
  font-size: .95rem; color: var(--ink-2);
  position: relative; padding: .25rem 0;
  transition: color .2s var(--ease);
}
.nav a::after {
  content: ''; position: absolute; left: 0; bottom: -2px;
  width: 0; height: 1px; background: var(--accent);
  transition: width .25s var(--ease);
}
.nav a:hover { color: var(--ink); }
.nav a:hover::after { width: 100%; }

.nav-cta { display: inline-flex; }

.menu-toggle {
  display: none;
  width: 40px; height: 40px;
  flex-direction: column; gap: 5px;
  align-items: center; justify-content: center;
}
.menu-toggle span {
  width: 22px; height: 1.5px; background: var(--ink);
  transition: transform .3s var(--ease), opacity .3s var(--ease);
}
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* =========================
   BUTTONS
   ========================= */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .85rem 1.5rem;
  font-size: .95rem; font-weight: 500;
  border-radius: 999px;
  transition: all .25s var(--ease);
  white-space: nowrap;
}
.btn-primary {
  background: var(--ink); color: var(--paper);
}
.btn-primary:hover { background: var(--accent); transform: translateY(-1px); }

.btn-ghost {
  color: var(--ink); border: 1px solid var(--rule);
  background: transparent;
}
.btn-ghost:hover { border-color: var(--ink); }

.btn-block { width: 100%; justify-content: center; padding: 1rem; }

/* =========================
   TYPOGRAPHY HELPERS
   ========================= */
.eyebrow {
  font-size: .8rem; font-weight: 500;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.5rem;
}

h1, h2, h3 {
  font-family: var(--font-serif);
  font-weight: 400;
  letter-spacing: -.025em;
  line-height: 1.05;
  color: var(--ink);
}
h1 em, h2 em, h3 em {
  font-style: italic;
  font-weight: 300;
  color: var(--accent);
}

/* =========================
   HERO
   ========================= */
.hero {
  padding: clamp(4rem, 10vw, 8rem) 0 clamp(4rem, 8vw, 6rem);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; top: -200px; right: -200px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, var(--accent-soft) 0%, transparent 70%);
  opacity: .55;
  pointer-events: none;
  z-index: 0;
}
.hero-inner { position: relative; z-index: 1; max-width: 960px; }

.hero-title {
  font-size: clamp(2.5rem, 7vw, 5.25rem);
  margin-bottom: 1.75rem;
}
.hero-sub {
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  color: var(--ink-2);
  max-width: 620px;
  margin-bottom: 2.5rem;
  line-height: 1.55;
}

.hero-ctas {
  display: flex; gap: 1rem; flex-wrap: wrap;
  margin-bottom: 4rem;
}

.hero-meta {
  display: grid;
  grid-template-columns: repeat(3, max-content);
  gap: clamp(2rem, 6vw, 4rem);
  padding-top: 2.5rem;
  border-top: 1px solid var(--rule);
  max-width: 600px;
}
.hero-meta div span {
  display: block;
  font-family: var(--font-serif);
  font-size: 2rem; font-weight: 400;
  color: var(--ink);
  margin-bottom: .25rem;
  letter-spacing: -.03em;
}
.hero-meta div p {
  font-size: .85rem;
  color: var(--muted);
  letter-spacing: .02em;
}

/* =========================
   SECTION HEADER
   ========================= */
.section-head {
  max-width: 720px;
  margin-bottom: clamp(3rem, 6vw, 5rem);
}
.section-head h2 {
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  margin-bottom: 1.25rem;
}
.section-lede {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 580px;
}

/* =========================
   SERVICES
   ========================= */
.services {
  padding: clamp(4rem, 8vw, 7rem) 0;
  border-top: 1px solid var(--rule);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  border-radius: 4px;
  overflow: hidden;
}

.service-card {
  background: var(--paper);
  padding: 2.25rem 2rem;
  transition: background .3s var(--ease);
  position: relative;
}
.service-card:hover { background: #fff; }

.service-num {
  font-family: var(--font-serif);
  font-size: .9rem;
  color: var(--muted);
  margin-bottom: 2.5rem;
  letter-spacing: .05em;
}

.service-card h3 {
  font-size: 1.65rem;
  margin-bottom: .85rem;
}

.service-card p {
  color: var(--ink-2);
  font-size: .98rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.service-tags {
  display: flex; flex-wrap: wrap; gap: .4rem;
  list-style: none;
}
.service-tags li {
  font-size: .75rem;
  color: var(--muted);
  padding: .25rem .65rem;
  border: 1px solid var(--rule);
  border-radius: 999px;
  letter-spacing: .02em;
}

/* =========================
   PROCESS
   ========================= */
.process {
  padding: clamp(4rem, 8vw, 7rem) 0;
  background: var(--paper-2);
  border-top: 1px solid var(--rule);
}

.process-list {
  list-style: none;
  display: grid;
  gap: 0;
}
.process-list li {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 2rem;
  padding: 2rem 0;
  border-top: 1px solid var(--rule);
  align-items: baseline;
}
.process-list li:last-child { border-bottom: 1px solid var(--rule); }

.step-num {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.5rem;
  color: var(--accent);
}

.step-body h3 {
  font-size: 1.5rem;
  margin-bottom: .5rem;
}
.step-body p {
  color: var(--ink-2);
  max-width: 600px;
}

/* =========================
   WHY US
   ========================= */
.why {
  padding: clamp(4rem, 8vw, 7rem) 0;
  border-top: 1px solid var(--rule);
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(2rem, 4vw, 3.5rem) 3rem;
}

.why-item h3 {
  font-size: 1.4rem;
  margin-bottom: .85rem;
}
.why-item p {
  color: var(--ink-2);
  font-size: .98rem;
}

/* =========================
   CONTACT
   ========================= */
.contact {
  padding: clamp(4rem, 8vw, 7rem) 0;
  background: var(--ink);
  color: var(--paper);
}
.contact .eyebrow { color: rgba(250, 250, 247, .55); }
.contact h2 { color: var(--paper); }
.contact .section-lede { color: rgba(250, 250, 247, .7); }
.contact h2 em { color: var(--accent); }

.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}

.contact-email {
  display: inline-block;
  margin-top: 1.5rem;
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  border-bottom: 1px solid rgba(250, 250, 247, .25);
  padding-bottom: .25rem;
  transition: border-color .25s var(--ease);
}
.contact-email:hover { border-color: var(--accent); }

.contact-form {
  display: grid;
  gap: 1.25rem;
}
.field { display: grid; gap: .5rem; }
.field label {
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: rgba(250, 250, 247, .65);
}
.field input,
.field select,
.field textarea {
  font-family: inherit;
  font-size: 1rem;
  padding: .85rem 1rem;
  background: rgba(250, 250, 247, .06);
  border: 1px solid rgba(250, 250, 247, .15);
  color: var(--paper);
  border-radius: 6px;
  transition: border-color .2s var(--ease), background .2s var(--ease);
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(250, 250, 247, .1);
}
.field select option { background: var(--ink); color: var(--paper); }
.field textarea { resize: vertical; min-height: 100px; }

.form-status {
  font-size: .9rem;
  color: var(--accent);
  min-height: 1.2em;
}

/* =========================
   FOOTER
   ========================= */
.site-footer {
  padding: 3rem 0 2rem;
  border-top: 1px solid var(--rule);
  background: var(--paper);
}
.footer-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 2rem;
  align-items: center;
}

.footer-brand { display: flex; align-items: center; gap: .85rem; }
.footer-name {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 500;
}
.footer-tag {
  font-size: .8rem;
  color: var(--muted);
  font-style: italic;
}

.footer-nav {
  display: flex; gap: 1.75rem; flex-wrap: wrap;
  justify-content: center;
}
.footer-nav a {
  font-size: .9rem;
  color: var(--muted);
  transition: color .2s var(--ease);
}
.footer-nav a:hover { color: var(--ink); }

.footer-copy {
  font-size: .8rem;
  color: var(--muted);
  text-align: right;
}

/* =========================
   REVEAL ANIMATION
   ========================= */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}
.reveal:nth-child(2) { transition-delay: .1s; }
.reveal:nth-child(3) { transition-delay: .2s; }
.reveal:nth-child(4) { transition-delay: .3s; }
.reveal:nth-child(5) { transition-delay: .4s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* =========================
   RESPONSIVE
   ========================= */
@media (max-width: 860px) {
  .nav, .nav-cta { display: none; }
  .menu-toggle { display: flex; }

  .nav.open {
    display: flex; flex-direction: column;
    position: absolute; top: 76px; left: 0; right: 0;
    background: var(--paper);
    padding: 1.5rem var(--gutter);
    border-bottom: 1px solid var(--rule);
    gap: 1.25rem;
  }

  .contact-inner { grid-template-columns: 1fr; }

  .footer-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .footer-brand, .footer-nav { justify-content: center; }
  .footer-copy { text-align: center; }

  .hero-meta { gap: 1.5rem; }
  .hero-meta div span { font-size: 1.5rem; }

  .process-list li { grid-template-columns: 50px 1fr; gap: 1rem; }
}

@media (max-width: 480px) {
  .hero-ctas { flex-direction: column; align-items: stretch; }
  .hero-ctas .btn { justify-content: center; }
  .hero-meta { grid-template-columns: 1fr 1fr; }
}
