/* ============================================================
   WhiskeyRiver.io — Main Stylesheet
   Brand: Warm cream paper, near-black ink, whiskey amber accent
   Typography: Clean, condensed, weighted
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Zilla+Slab:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400;1,600&display=swap');

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

:root {
  --ink-deep:     #17120D;   /* deepest ink — text on amber buttons, darkest sections */
  --brown-dark:   #221C16;   /* BRAND INK — primary dark background */
  --brown-mid:    #2E2620;
  --brown-warm:   #3A3028;
  --amber:        #B87333;   /* BRAND AMBER — accent, fills, logo */
  --amber-light:  #CE9455;   /* lighter amber — small text on dark + hovers (AA safe) */
  --cream:        #F4ECDD;   /* BRAND CREAM — warm paper */
  --cream-dark:   #E4D8C4;
  --sage:         #7A8C72;
  --sage-light:   #9BAF92;
  --slate:        #5A6470;
  --slate-light:  #8A9AA8;
  --white:        #FFFFFF;
  --text-dark:    #1E1208;
  --text-mid:     #3D2B18;
  --text-light:   #7A6A58;

  --font-head:    'Zilla Slab', Georgia, serif;
  --font-body:    'Zilla Slab', Georgia, serif;

  --max-width:    1160px;
  --section-pad:  80px 24px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.75;
  color: var(--text-dark);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ── Typography ── */
h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;   /* Zilla Slab is wider than Barlow Condensed — tighten */
}

h1 { font-size: clamp(2.3rem, 5vw, 4rem); }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.6rem); }
h3 { font-size: clamp(1.3rem, 2.2vw, 1.75rem); }
h4 { font-size: 1.2rem; font-weight: 700; }

p { margin-bottom: 1.2em; }
p:last-child { margin-bottom: 0; }

.label {
  font-family: var(--font-head);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--amber);
}

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

section { padding: var(--section-pad); }

.section-dark {
  background: var(--brown-dark);
  color: var(--cream);
}

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

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

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

/* ── Buttons ── */
.btn {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 14px 32px;
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--amber);
  color: var(--ink-deep);
  border-color: var(--amber);
}
.btn-primary:hover {
  background: var(--amber-light);
  border-color: var(--amber-light);
}

.btn-outline {
  background: transparent;
  color: var(--cream);
  border-color: var(--cream);
}
.btn-outline:hover {
  background: var(--cream);
  color: var(--brown-dark);
}

.btn-outline-dark {
  background: transparent;
  color: var(--brown-dark);
  border-color: var(--brown-dark);
}
.btn-outline-dark:hover {
  background: var(--brown-dark);
  color: var(--cream);
}

.btn-sm {
  font-size: 0.8rem;
  padding: 9px 20px;
  letter-spacing: 0.08em;
}

/* ── Navigation ── */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(244,236,221, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--cream-dark);
}

.nav-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-size: 1.4rem;
  font-weight: 700;              /* Zilla Slab tops out at 700 — 800 forced a fake bold */
  letter-spacing: 0.02em;
  color: var(--text-dark);
  text-transform: uppercase;
  line-height: 1;
}

.nav-logo img {
  width: 34px;
  height: 34px;
  flex: none;
  display: block;
}

.nav-logo span { color: var(--amber); }
.nav-logo .nav-logo-text { color: inherit; }

@media (max-width: 480px) {
  .nav-logo { font-size: 1.15rem; gap: 8px; }
  .nav-logo img { width: 30px; height: 30px; }
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-mid);
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--amber); }

.nav-links .nav-cta a {
  color: var(--amber);
  border: 1px solid var(--amber);
  padding: 7px 18px;
  border-radius: 2px;
}
.nav-links .nav-cta a:hover {
  background: var(--amber);
  color: var(--brown-dark);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-dark);
  transition: all 0.3s;
}

/* ── Hero ── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--brown-dark);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('../images/hero-bg.jpg.png'); /* matches actual filename in /images */
  background-size: cover;
  background-position: center 40%;
  opacity: 0.35;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 120px 24px 80px;
}

.hero-label {
  margin-bottom: 20px;
}

.hero h1 {
  color: var(--cream);
  max-width: 820px;
  margin-bottom: 24px;
  text-transform: uppercase;
}

.hero-sub {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  color: var(--cream-dark);
  max-width: 560px;
  margin-bottom: 40px;
  font-weight: 300;
  line-height: 1.6;
}

/* ── Divider ── */
.divider {
  width: 48px;
  height: 3px;
  background: var(--amber);
  margin: 24px 0;
}

.divider-center { margin: 24px auto; }

/* ── Cards ── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 48px;
}

.card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(184,115,51,0.2);
  padding: 32px;
  border-radius: 2px;
}

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

/* ── Tool Stack specific ── */
.stack-section {
  padding: 64px 0;
  border-bottom: 1px solid var(--cream-dark);
}
.stack-section:last-of-type { border-bottom: none; }

.stack-section-header {
  margin-bottom: 40px;
}

.stack-section-number {
  font-family: var(--font-head);
  font-size: 4rem;
  font-weight: 800;
  color: var(--cream-dark);
  line-height: 1;
  margin-bottom: 4px;
}

.stack-section-title {
  font-family: var(--font-head);
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 4px;
}

.stack-section-sub {
  font-size: 0.95rem;
  color: var(--text-light);
  font-style: italic;
}

.tool-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  padding: 24px 0;
  border-bottom: 1px solid var(--cream-dark);
}
.tool-item:last-child { border-bottom: none; }

.tool-info { flex: 1; }

.tool-name {
  font-family: var(--font-head);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 4px;
}

.tool-name span {
  font-weight: 400;
  color: var(--text-light);
  font-size: 1rem;
}

.tool-desc {
  font-size: 0.95rem;
  color: var(--text-mid);
  line-height: 1.6;
  margin: 0;
}

.tool-link {
  flex-shrink: 0;
}

/* ── Forms ── */
.subscribe-form {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.subscribe-form input[type="email"],
.subscribe-form input[type="text"] {
  flex: 1;
  min-width: 220px;
  padding: 14px 18px;
  font-family: var(--font-body);
  font-size: 1rem;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(184,115,51,0.4);
  border-radius: 2px;
  color: var(--cream);
  outline: none;
  transition: border-color 0.2s;
}

.subscribe-form input[type="email"]::placeholder,
.subscribe-form input[type="text"]::placeholder {
  color: rgba(244,236,221,0.4);
}

.subscribe-form input[type="email"]:focus,
.subscribe-form input[type="text"]:focus {
  border-color: var(--amber);
}

.subscribe-form-light input[type="email"],
.subscribe-form-light input[type="text"] {
  background: var(--white);
  border-color: var(--cream-dark);
  color: var(--text-dark);
}

.subscribe-form-light input::placeholder {
  color: var(--text-light);
}

.form-message {
  width: 100%;
  font-size: 0.9rem;
  margin-top: 4px;
  min-height: 1.2em;
}

/* ── Footer ── */
.site-footer {
  background: var(--brown-dark);
  color: var(--cream-dark);
  padding: 64px 24px 32px;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.footer-top {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(184,115,51,0.2);
  margin-bottom: 32px;
}

.footer-brand .nav-logo {
  font-size: 1.6rem;
  margin-bottom: 16px;
  display: block;
}

.footer-brand p {
  font-size: 0.9rem;
  color: var(--slate-light);
  line-height: 1.6;
}

.footer-col h4 {
  font-family: var(--font-head);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 16px;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col ul a {
  font-size: 0.9rem;
  color: var(--slate-light);
  transition: color 0.2s;
}

.footer-col ul a:hover { color: var(--cream); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom p {
  font-size: 0.8rem;
  color: var(--slate-light);
  margin: 0;
}

.footer-tagline {
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--amber);
  text-transform: uppercase;
}

/* ── Page Hero (inner pages) ── */
.page-hero {
  background: var(--brown-dark);
  padding: 140px 24px 80px;
  text-align: center;
}

.page-hero h1 { color: var(--cream); text-transform: uppercase; }
.page-hero p { color: var(--cream-dark); max-width: 600px; margin: 16px auto 0; font-size: 1.1rem; }

/* ── Utility ── */
.text-center { text-align: center; }
.text-amber { color: var(--amber); }
.text-cream { color: var(--cream); }
.text-light-muted { color: var(--text-light); }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }
.mb-0 { margin-bottom: 0; }

hr.section-rule {
  border: none;
  border-top: 1px solid rgba(184,115,51,0.25);
  margin: 64px 0;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  :root { --section-pad: 56px 20px; }

  .nav-links { display: none; flex-direction: column; gap: 0; }
  .nav-links.open {
    display: flex;
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--cream);
    padding: 24px;
    border-top: 1px solid var(--cream-dark);
    gap: 4px;
  }
  .nav-links.open li { width: 100%; }
  .nav-links.open a { display: block; padding: 12px 0; font-size: 1.1rem; }
  .nav-links .nav-cta a { border: none; padding: 12px 0; }
  .nav-toggle { display: flex; }

  .footer-top { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }

  .tool-item { flex-direction: column; gap: 12px; }
  .tool-link { align-self: flex-start; }

  .subscribe-form { flex-direction: column; }
  .subscribe-form input { min-width: 100%; }

  .hero-content { padding: 100px 20px 60px; }
}

@media (max-width: 480px) {
  h1 { font-size: 2.4rem; }
  h2 { font-size: 1.8rem; }
}

/* shared base */


.nav-caret {
  width: 0; height: 0;
  border-left: 4px solid transparent; border-right: 4px solid transparent;
  border-top: 5px solid currentColor; transition: transform .18s ease;
}


