/* ==========================================================
   AminoLoop -- styles.css
   Desert palette, Inter, science-forward minimal
   No em dashes in this file.
========================================================== */

/* -- Variables -- */
:root {
  --navy:         #0B1A2B;
  --navy-mid:     #102236;
  --sand:         #C4965A;
  --sage:         #3E6B4F;
  --sage-light:   #4E7D60;

  --cream:        #F5F1EB;
  --cream-mid:    #EDE8DF;
  --cream-dark:   #DDD5C8;
  --white:        #FAFAF8;

  --text:         #18110A;
  --text-mid:     #5A4F44;
  --text-light:   #8C8278;
  --text-ghost:   #BAB2AA;

  --on-dark:      #E8E2D8;
  --on-dark-mid:  rgba(232, 226, 216, 0.60);
  --on-dark-faint:rgba(232, 226, 216, 0.35);

  --font:   'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --max-w:  1100px;
  --nav-h:  60px;
  --px:     40px;
  --sec-v:  96px;
}

/* -- Reset -- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font);
  color: var(--text);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
ul { list-style: none; }

/* -- Container -- */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--px);
}

/* ==========================================================
   NAV
========================================================== */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(245, 241, 235, 0.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--cream-dark);
  transition: box-shadow 0.25s ease;
}

.nav.scrolled {
  box-shadow: 0 2px 20px rgba(11, 26, 43, 0.08);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
  gap: 20px;
}

/* Wordmark */
.wordmark {
  text-decoration: none;
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1;
  flex-shrink: 0;
}
.wm-a { color: var(--text); }
.wm-l { color: var(--sage); }

/* Desktop nav links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-link {
  font-size: 13px;
  font-weight: 400;
  color: var(--text-mid);
  text-decoration: none;
  letter-spacing: 0.01em;
  transition: color 0.2s ease;
}
.nav-link:hover { color: var(--text); }
.nav-link.active { color: var(--text); font-weight: 500; }

/* Mobile toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px 2px;
  flex-shrink: 0;
}
.nav-toggle span {
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--text);
  transition: all 0.25s ease;
  transform-origin: center;
}
.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); }

/* Mobile drawer */
.nav-drawer {
  background: var(--cream);
  border-top: 1px solid var(--cream-dark);
  padding: 8px var(--px) 20px;
  display: flex;
  flex-direction: column;
}
.nav-drawer[hidden] { display: none; }

.drawer-link {
  font-size: 15px;
  font-weight: 400;
  color: var(--text-mid);
  text-decoration: none;
  padding: 13px 0;
  border-bottom: 1px solid var(--cream-dark);
  transition: color 0.2s ease;
}
.drawer-link:last-child { border-bottom: none; }
.drawer-link:hover,
.drawer-link.active { color: var(--text); }
.drawer-link.active { font-weight: 500; }
.drawer-cta { color: var(--sage); font-weight: 500; }
.drawer-cta:hover { color: var(--sage-light); }

/* ==========================================================
   BUTTONS
========================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font);
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: filter 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
  letter-spacing: 0.01em;
}

/* Nav CTA button */
.btn-nav {
  font-size: 12px;
  font-weight: 500;
  padding: 8px 18px;
  background: var(--navy);
  color: var(--cream);
  border-radius: 2px;
  letter-spacing: 0.02em;
}
.btn-nav:hover { background: var(--navy-mid); filter: brightness(1.1); }

/* Hero primary */
.btn-primary {
  font-size: 14px;
  padding: 13px 28px;
  background: var(--sage);
  color: var(--white);
  border-radius: 2px;
}
.btn-primary:hover { filter: brightness(1.1); }

/* Hero ghost */
.btn-ghost {
  font-size: 14px;
  padding: 12px 28px;
  background: transparent;
  color: rgba(232, 226, 216, 0.82);
  border: 1px solid rgba(232, 226, 216, 0.28);
  border-radius: 2px;
}
.btn-ghost:hover {
  color: var(--cream);
  border-color: rgba(232, 226, 216, 0.60);
}

/* ==========================================================
   HOMEPAGE HERO
========================================================== */
.hero {
  min-height: calc(100vh - var(--nav-h));
  background: var(--navy);
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
}

/* Subtle grid texture on dark bg */
.hero-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(245, 241, 235, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(245, 241, 235, 0.028) 1px, transparent 1px);
  background-size: 72px 72px;
  pointer-events: none;
}

/* Subtle colored gradients -- organic desert feel */
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 65% 55% at 78% 25%, rgba(62, 107, 79, 0.14) 0%, transparent 60%),
    radial-gradient(ellipse 45% 40% at 10% 80%, rgba(196, 150, 90, 0.07) 0%, transparent 55%);
  pointer-events: none;
}

.hero-container {
  position: relative;
  z-index: 2;
  padding-top: 88px;
  padding-bottom: 108px;
}

.overline {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sand);
  margin-bottom: 26px;
}

.hero-h1 {
  font-size: clamp(44px, 7.5vw, 88px);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.03em;
  color: var(--cream);
  margin-bottom: 28px;
  max-width: 700px;
}

.hero-sub {
  font-size: clamp(16px, 1.9vw, 19px);
  font-weight: 300;
  line-height: 1.65;
  color: var(--on-dark);
  max-width: 560px;
  margin-bottom: 14px;
}

.hero-support {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.65;
  color: var(--on-dark-mid);
  max-width: 500px;
  margin-bottom: 48px;
}

.cta-row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* ==========================================================
   SHARED SECTION STYLES
========================================================== */
.section {
  padding: var(--sec-v) 0;
  background: var(--cream);
}

.section-alt {
  background: var(--cream-mid);
}

/* Text column widths */
.col-text       { max-width: 620px; }
.col-text-wide  { max-width: 820px; }

/* Section heading */
.s-heading {
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 500;
  letter-spacing: -0.022em;
  line-height: 1.12;
  color: var(--text);
  margin-bottom: 20px;
}

/* Section body */
.s-body {
  font-size: 16px;
  font-weight: 300;
  line-height: 1.82;
  color: var(--text-mid);
}

/* Eyebrow (process page section labels) */
.eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 14px;
}

/* ==========================================================
   PROVENANCE BAND (homepage)
========================================================== */
.prov-band {
  background: var(--navy);
  padding: 80px 0;
}

.prov-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: start;
}

.prov-heading {
  font-size: clamp(22px, 3vw, 34px);
  font-weight: 500;
  letter-spacing: -0.022em;
  line-height: 1.15;
  color: var(--cream);
}

.prov-right { }

.prov-body {
  font-size: 15px;
  font-weight: 300;
  line-height: 1.8;
  color: var(--on-dark-mid);
  margin-bottom: 22px;
}

.arrow-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--sand);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: gap 0.2s ease;
}
.arrow-link:hover { gap: 13px; }

/* ==========================================================
   WHO IT SERVES -- CARDS
========================================================== */
.cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 40px;
}

.card {
  background: var(--white);
  border: 1px solid var(--cream-dark);
  padding: 36px 32px;
}

.card-h {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
  margin-bottom: 12px;
}

.card-body {
  font-size: 15px;
  font-weight: 300;
  line-height: 1.78;
  color: var(--text-mid);
}

/* ==========================================================
   IN DEVELOPMENT -- STATUS LIST
========================================================== */
.dev-header {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

/* Remove default margin from s-heading inside dev-header */
.dev-header .s-heading { margin-bottom: 0; }

.dev-badge {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--sand);
  border: 1px solid rgba(196, 150, 90, 0.38);
  padding: 3px 9px;
  border-radius: 2px;
  white-space: nowrap;
  flex-shrink: 0;
}

.status-list {
  margin-top: 32px;
  border-top: 1px solid var(--cream-dark);
}

.status-list li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--cream-dark);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
}

.status-list li::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.s-done {
  color: var(--text);
}
.s-done::before {
  background: var(--sage);
}

.s-active {
  color: var(--text-mid);
}
.s-active::before {
  background: transparent;
  border: 1.5px solid var(--sand);
}

/* ==========================================================
   CONTACT
========================================================== */
.email-link {
  display: inline-block;
  font-size: 21px;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--sage);
  text-decoration: none;
  margin-top: 10px;
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.email-link:hover {
  color: var(--sage-light);
  border-bottom-color: var(--sage-light);
}

/* ==========================================================
   FOOTER
========================================================== */
.footer {
  background: var(--navy);
  padding: 64px 0 32px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(232, 226, 216, 0.09);
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.footer-name {
  font-size: 16px;
  font-weight: 500;
  color: var(--cream);
  letter-spacing: -0.01em;
}

.footer-tag {
  font-size: 13px;
  font-weight: 300;
  color: var(--on-dark-faint);
}

.footer-email {
  font-size: 13px;
  font-weight: 400;
  color: rgba(232, 226, 216, 0.50);
  text-decoration: none;
  margin-top: 4px;
  transition: color 0.2s ease;
}
.footer-email:hover { color: var(--cream); }

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-end;
}

.f-link {
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(232, 226, 216, 0.38);
  text-decoration: none;
  transition: color 0.2s ease;
}
.f-link:hover { color: var(--cream); }

.footer-legal {
  font-size: 11px;
  font-weight: 300;
  color: rgba(232, 226, 216, 0.22);
  line-height: 1.6;
  max-width: 580px;
}

/* ==========================================================
   PAGE HERO (process.html)
========================================================== */
.page-hero {
  background: var(--navy);
  position: relative;
  overflow: hidden;
}

.page-hero-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(245, 241, 235, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(245, 241, 235, 0.028) 1px, transparent 1px);
  background-size: 72px 72px;
  pointer-events: none;
}

.page-hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 50% at 65% 25%, rgba(62, 107, 79, 0.11) 0%, transparent 60%);
  pointer-events: none;
}

.page-hero-container {
  position: relative;
  z-index: 2;
  padding-top: 80px;
  padding-bottom: 88px;
}

.breadcrumb {
  font-size: 12px;
  font-weight: 400;
  color: var(--on-dark-faint);
  margin-bottom: 28px;
  letter-spacing: 0.01em;
}
.breadcrumb a {
  color: var(--on-dark-faint);
  text-decoration: none;
  transition: color 0.2s ease;
}
.breadcrumb a:hover { color: rgba(232, 226, 216, 0.75); }
.breadcrumb a::after { content: ' /'; margin-right: 4px; }

.page-hero-title {
  font-size: clamp(36px, 5.5vw, 64px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.04;
  color: var(--cream);
  margin-bottom: 22px;
  max-width: 620px;
}

.page-hero-body {
  font-size: clamp(15px, 1.9vw, 18px);
  font-weight: 300;
  line-height: 1.68;
  color: var(--on-dark-mid);
  max-width: 560px;
}

/* ==========================================================
   CONDITIONING PROCESS TABLE (process.html)
========================================================== */
.proc-table {
  margin-top: 44px;
  border-top: 1px solid var(--cream-dark);
}

.proc-row {
  display: grid;
  grid-template-columns: 36px 190px 1fr;
  gap: 20px;
  padding: 18px 0;
  border-bottom: 1px solid var(--cream-dark);
  align-items: baseline;
}

.proc-num {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--text-ghost);
  line-height: 1.5;
}

.proc-label {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  line-height: 1.5;
}

.proc-desc {
  font-size: 14px;
  font-weight: 300;
  color: var(--text-mid);
  line-height: 1.6;
}

/* ==========================================================
   PULL QUOTE BAND (process.html)
========================================================== */
.pullquote-band {
  background: var(--navy);
  padding: 100px 0;
  text-align: center;
}

.pullquote {
  font-size: clamp(26px, 3.8vw, 48px);
  font-weight: 300;
  font-style: italic;
  color: var(--cream);
  letter-spacing: -0.02em;
  max-width: 540px;
  margin: 0 auto;
  line-height: 1.28;
}

/* ==========================================================
   RESPONSIVE -- tablet (max 860px)
========================================================== */
@media (max-width: 860px) {
  :root {
    --sec-v: 72px;
    --px:    28px;
  }

  .nav-links    { display: none; }
  .nav-toggle   { display: flex; }

  .prov-grid    { grid-template-columns: 1fr; gap: 28px; }
  .cards        { grid-template-columns: 1fr; gap: 16px; }

  .footer-inner { flex-direction: column; gap: 36px; }
  .footer-nav   { align-items: flex-start; flex-direction: row; gap: 28px; }
}

/* ==========================================================
   RESPONSIVE -- mobile (max 540px)
========================================================== */
@media (max-width: 540px) {
  :root {
    --sec-v: 56px;
    --px:    20px;
  }

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

  .cta-row { flex-direction: column; align-items: flex-start; }
  .btn-primary,
  .btn-ghost { width: 100%; justify-content: center; }

  .dev-header { flex-direction: column; gap: 10px; align-items: flex-start; }

  .page-hero-container { padding-top: 56px; padding-bottom: 64px; }

  /* Process table: stack label and desc */
  .proc-row { grid-template-columns: 32px 1fr; row-gap: 4px; }
  .proc-desc { grid-column: 2; }

  .footer-nav { flex-direction: column; gap: 12px; }
}
