/* =========================
   The Reclamation Co. — Soul Reset
   Poster / apothecary-inspired, modern readable
   CLEAN + RESPONSIVE FOUNDATION (FULL UPDATED)
   ========================= */

/* ---------- Tokens ---------- */
:root {
  --bg: #ece1ca; /* parchment */
  --surface: #e6d8be; /* warm sand */
  --surface-2: #dcccad; /* deeper sand */
  --ink: #1d1b15; /* near-black */
  --wood: #54321d; /* deep brown */
  --clay: #917355; /* accent brown */
  --sage: #6f7c63; /* muted sage */
  --sage-deep: #394731; /* deep sage */
  --line: rgba(29, 27, 21, 0.18);
  --shadow: 0 14px 30px rgba(29, 27, 21, 0.14);
  --radius: 18px;
  --max: 1120px;

  --focus: rgba(111, 124, 99, 0.35);
  --tap: 44px;
}

/* ---------- Reset / Base ---------- */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  min-height: 100vh;
  margin: 0;
  display: flex;
  flex-direction: column;

  font-family: ui-serif, Georgia, "Times New Roman", Times, serif;
  color: var(--ink);

  background: linear-gradient(180deg, #F6F0E3 0%, #917355 85%);
}

main { flex: 1; }

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

#logo {
  width: 44px;
  height: 44px;
  object-fit: contain;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 12px;
}

.container {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

@media (max-width: 520px) {
  .container {
    width: min(var(--max), calc(100% - 26px));
  }
}

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(236, 225, 202, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 18px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 220px;
  min-width: 0; /* allow wrap without overflow */
}

.brand-text { line-height: 1.05; }

.brand-text .name {
  font-weight: 900;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  font-size: 14px;
}

.brand-text .tag {
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-size: 12px;
  letter-spacing: 0.02em;
  opacity: 0.8;
}

/* Desktop nav */
.main-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.main-nav a {
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-size: 14px;
  letter-spacing: 0.02em;
  padding: 10px 10px;
  border-radius: 12px;
  transition: 0.2s ease;
  white-space: nowrap;
}

.main-nav a:hover {
  background: rgba(111, 124, 99, 0.08);
}

/* Mobile nav toggle button */
.nav-toggle {
  display: none;
  min-height: var(--tap);
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(29, 27, 21, 0.22);
  background: rgba(236, 225, 202, 0.55);
  box-shadow: 0 10px 22px rgba(29, 27, 21, 0.10);
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-weight: 800;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: transform 0.15s ease;
}

.nav-toggle:hover { transform: translateY(-1px); }
.nav-toggle:active { transform: translateY(0); }

/* =========================
   Mobile behavior: collapse menu (FIXED)
   - Nav drops below header row
   - Prevents “side panel” look
   ========================= */
@media (max-width: 860px) {
  .nav-container {
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
  }

  .brand {
    flex: 1 1 auto;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    margin-left: auto;
  }

  .main-nav {
    display: none;
    flex-basis: 100%;
    width: 100%;
    order: 3;

    flex-direction: column;
    align-items: stretch;
    gap: 10px;

    padding: 12px;
    margin-top: 10px;

    background: rgba(236, 225, 202, 0.96);
    border: 1px solid rgba(29, 27, 21, 0.16);
    border-radius: 14px;
    box-shadow: 0 14px 30px rgba(29, 27, 21, 0.12);
  }

  .main-nav.is-open { display: flex; }

  .main-nav a {
    width: 100%;
    padding: 12px 12px;
    border-radius: 12px;
    white-space: normal;
  }

  .main-nav .btn {
    width: 100%;
    justify-content: center;
  }
}

/* Tiny brand tightening */
@media (max-width: 520px) {
  #logo { width: 38px; height: 38px; }
  .brand-text .name { font-size: 13px; }
  .brand-text .tag { font-size: 11px; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: var(--tap);
  border-radius: 999px;
  padding: 12px 18px;
  border: 1px solid rgba(29, 27, 21, 0.22);
  background: rgba(236, 225, 202, 0.55);
  box-shadow: 0 10px 22px rgba(29, 27, 21, 0.12);
  cursor: pointer;

  transition: 0.25s ease, border-color 0.25s ease, transform 0.15s ease;

  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: linear-gradient(180deg, rgba(83, 50, 29, 0.98), rgba(29, 27, 21, 0.98));
  color: #f5eedd;
  border-color: rgba(255, 255, 255, 0.14);
}

.btn-primary:hover {
  background: linear-gradient(180deg, #6f7c63, #394731);
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-ghost {
  background: rgba(236, 225, 202, 0.35);
}

.btn-ghost:hover {
  background: linear-gradient(180deg, #6f7c63, #394731);
  color: #f5eedd;
}

/* ---------- Typography ---------- */
.h1 {
  margin: 10px 0 12px;
  font-size: clamp(26px, 4.6vw, 48px);
  letter-spacing: -0.02em;
  line-height: 1.04;
  text-transform: uppercase;
  font-weight: 650;
}

.h2 {
  margin: 0 0 10px;
  font-size: clamp(24px, 3vw, 36px);
  letter-spacing: -0.01em;
  line-height: 1.1;
  font-weight: 900;
}

.h2-tight {
  font-size: clamp(22px, 2.4vw, 30px);
}

.kicker {
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 12px;
  opacity: 0.75;
  color: var(--sage-deep);
}

.lead,
.small {
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.65;
  opacity: 0.92;
}

.lead { max-width: 62ch; }

/* keep these class names supported if you still use them anywhere */
.about-h1,
.about-h2,
.contact-h1,
.contact-h2,
.appsoul-h1,
.appsoul-h2,
.services-h1 {
  font-size: clamp(24px, 3.5vw, 36px);
  font-weight: 650;
}

/* ---------- Layout blocks ---------- */
.section { padding: 54px 0; }

.section-tight {
  padding-top: 24px;
  padding-bottom: 0;
}

.card {
  background: linear-gradient(180deg, rgba(230, 216, 190, 0.8), rgba(230, 216, 190, 0.62));
  border: 2px double rgba(29, 27, 21, 0.18);
  border-radius: var(--radius);
  box-shadow: 0 30px 30px rgba(29, 27, 21, 0.14);
}

.card-pad { padding: 26px; }

.card-flat {
  background: rgba(236, 225, 202, 0.42);
  border: 1px solid rgba(29, 27, 21, 0.14);
  box-shadow: none;
}

.card-title {
  margin: 6px 0 8px;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 0.01em;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 26px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

/* Default responsive collapse */
@media (max-width: 920px) {
  .grid-2 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .card-pad { padding: 20px; }
  .section { padding: 42px 0; }
}

/* Fix nested grid inside the "patterns" card */
.grid-2 .grid-3 { margin-top: 16px; }

@media (min-width: 921px) {
  .grid-2 .grid-3 { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 920px) and (min-width: 641px) {
  .grid-2 .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .grid-2 .grid-3 { grid-template-columns: 1fr; }
}

/* List utility used across pages */
.list {
  margin: 0;
  padding-left: 18px;
}

.list li { margin: 6px 0; }

/* HR utility */
.hr {
  height: 1px;
  width: 100%;
  margin: 22px 0;
  background: linear-gradient(90deg, transparent, rgba(111,124,99,0.35), transparent);
}

/* ---------- Hero ---------- */
.hero { padding: 44px 0 24px; }

.hero-inner {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 22px;
  align-items: stretch;
}

@media (max-width: 920px) {
  .hero-inner { grid-template-columns: 1fr; }
}

.hero-panel {
  border-radius: var(--radius);
  border: 1px solid rgba(29, 27, 21, 0.18);
  background:
    radial-gradient(900px 420px at 20% 0%, rgba(145, 115, 85, 0.25), transparent 55%),
    linear-gradient(180deg, rgba(236, 225, 202, 0.85), rgba(230, 216, 190, 0.55));
  padding: 34px;
  box-shadow: var(--shadow);
}

@media (max-width: 520px) {
  .hero-panel { padding: 22px; }
}

.hero-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 18px;
}

/* CTA stacking on tiny screens */
@media (max-width: 520px) {
  .hero-cta {
    flex-direction: column;
    align-items: stretch;
  }

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

.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(29, 27, 21, 0.18);
  background: rgba(236, 225, 202, 0.45);
  padding: 10px 12px;
  border-radius: 999px;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-size: 13px;
  letter-spacing: 0.02em;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--sage);
  box-shadow: 0 0 0 4px rgba(111, 124, 99, 0.18);
}

.poster {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 26px;
  background: linear-gradient(180deg, rgba(29, 27, 21, 0.92), rgba(83, 50, 29, 0.92));
  color: #f5eedd;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: var(--shadow);
}

@media (max-width: 520px) {
  .poster { padding: 20px; }
  .poster h3 { font-size: 20px; }
}

.poster h3 {
  margin: 0 0 10px;
  font-size: 22px;
  letter-spacing: 0.01em;
  font-weight: 900;
  text-transform: uppercase;
}

.poster .poster-copy {
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  opacity: 0.92;
  line-height: 1.6;
}

.poster .poster-points {
  margin: 18px 0 0;
  padding-left: 18px;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  line-height: 1.6;
  opacity: 0.95;
}

.poster .poster-cta { margin-top: 18px; }

/* ---------- Icon cards ---------- */
.icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  border: 1px solid rgba(29, 27, 21, 0.18);
  background: radial-gradient(circle at 30% 30%, rgba(111, 124, 99, 0.32), rgba(236, 225, 202, 0.22));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex: 0 0 auto;
}

.icon-row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.icon-card h4 {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 900;
}

/* ---------- Forms (Contact page) ---------- */
.form {
  display: grid;
  gap: 12px;
  margin-top: 10px;
}

.field {
  display: grid;
  gap: 6px;
}

.field-label {
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.input,
.select,
.textarea {
  width: 100%;
  padding: 12px 12px;
  border-radius: 12px;
  border: 1px solid rgba(29, 27, 21, 0.22);
  background: rgba(236, 225, 202, 0.55);
  color: var(--ink);
  font: inherit;
}

.textarea { resize: vertical; }

.help {
  margin: 0;
  opacity: 0.75;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-size: 13px;
  line-height: 1.5;
}

/* ---------- Footer ---------- */
.footer {
  padding: 34px 0 44px;
  color: var(--wood);
  background-color: var(--bg);
  border-top: 1px solid rgba(29, 27, 21, 0.18);
  margin-top: auto;
}

.footer-inner {
  display: flex;
  gap: 16px;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
}

.footer a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Footer nav row: links + icons aligned */
.footer-nav {
  display: inline-flex;
  align-items: center; /* <-- this centers text with icons */
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* Make the dot separators behave nicely */
.footer-nav .dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.35;
  margin: 0 0.25rem;
  transform: translateY(-1px);
}

/* Social icon links */
.footer-nav .social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.footer-nav .social-link:hover {
  opacity: 0.75;
  transform: translateY(-1px);
}

/* Icon images */
.footer-nav .social-link img {
  height: 30px;
  width: auto;
  display: block; /* removes baseline weirdness */
}

@media (max-width: 768px) {
  .footer-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
  }

  .footer-nav {
    justify-content: center;
  }
}

/* ---------- Tiny utilities ---------- */
.center { text-align: center; }
.mt-0 { margin-top: 0; }
.mt-2 { margin-top: 12px; }
.mt-3 { margin-top: 18px; }
.mt-4 { margin-top: 24px; }

.appal-card-pad {
  text-align: center; /* remove whole block when Appalachian Soul Provisions goes live! */
}