/* =========================================================
   Helm & Hide — Brand Design System v2
   Direction: quiet, editorial, premium-minimal — modeled on the
   "expensive because it's simple" school (large confident type,
   generous whitespace, near-monochrome palette, no badges/boxes/
   drop-shadows doing the talking instead of the words and space).
   Explicitly retires the v1 "tannery stamp" direction (shield seal,
   Special Elite typewriter font, dashed stitching, colored cards) —
   that read as rustic-craft, not premium-minimal. Wordmark-only
   identity now; revisit with a designer once there's revenue.
   ========================================================= */

:root {
  --ink: #141311;
  --ink-soft: #5B584F;
  --ink-faint: #8A8678;
  --paper: #FDFCFA;
  --paper-alt: #F3F0E8;
  --line: #E4DFD1;
  --accent: #9C7A4E;        /* muted camel — used sparingly: links, one hover state */
  --accent-deep: #7C5F3A;
  --success: #3E6B4A;
  --whatsapp-green: #25D366;

  --font-display: 'Fraunces', 'Iowan Old Style', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --container: 1180px;
  --radius: 2px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  font-size: 16px;
}

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

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--ink);
  line-height: 1.12;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.4rem, 5.2vw, 4.4rem); margin: 0 0 0.5em; font-weight: 450; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); margin: 0 0 0.6em; font-weight: 450; }
h3 { font-size: 1.15rem; font-family: var(--font-body); font-weight: 600; margin: 0 0 0.5em; letter-spacing: 0; }
p  { margin: 0 0 1.2em; color: var(--ink-soft); }
a  { color: var(--ink); text-decoration-color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-deep); }

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

.hh-section { padding: 108px 0; }
.hh-section--tight { padding: 72px 0; }
.hh-section--alt { background: var(--paper-alt); }
.hh-section--dark {
  background: var(--ink);
  color: var(--paper);
}
.hh-section--dark h1, .hh-section--dark h2, .hh-section--dark h3 { color: var(--paper); }
.hh-section--dark p { color: #C9C4B4; }

.hh-eyebrow {
  display: block;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 22px;
}
.hh-section--dark .hh-eyebrow { color: #B9B4A2; }

/* ---------- Buttons ---------- */
.hh-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 15px 28px;
  border-radius: var(--radius);
  border: 1px solid var(--ink);
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}

.hh-btn--primary { background: var(--ink); color: var(--paper); }
.hh-btn--primary:hover { background: var(--accent-deep); border-color: var(--accent-deep); color: var(--paper); }

.hh-btn--outline { background: transparent; border-color: var(--ink); color: var(--ink); }
.hh-btn--outline:hover { background: var(--ink); color: var(--paper); }
.hh-section--dark .hh-btn--outline { border-color: var(--paper); color: var(--paper); }
.hh-section--dark .hh-btn--outline:hover { background: var(--paper); color: var(--ink); }

.hh-btn--whatsapp { background: transparent; border-color: var(--ink); color: var(--ink); }
.hh-btn--whatsapp:hover { border-color: var(--whatsapp-green); }
.hh-btn--whatsapp svg { flex-shrink: 0; }

.hh-btn--b2b { background: transparent; border-color: var(--ink); color: var(--ink); }
.hh-btn--b2b:hover { background: var(--ink); color: var(--paper); }

.hh-cta-row { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 28px; }

/* ---------- Header ---------- */
.hh-header {
  background: rgba(253, 252, 250, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid var(--line);
}
.hh-header__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 20px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.hh-brand { text-decoration: none; color: var(--ink); }
.hh-brand__wordmark {
  font-family: var(--font-display);
  font-size: 1.3rem;
  letter-spacing: 0.02em;
}
.hh-brand__wordmark small {
  display: block;
  font-family: var(--font-body);
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-faint);
  font-weight: 600;
  margin-top: 3px;
}

.hh-nav { display: flex; align-items: center; gap: 30px; flex-wrap: wrap; }
.hh-nav a {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.72;
}
.hh-nav a:hover, .hh-nav a[aria-current="page"] { opacity: 1; }

.hh-header__actions { display: flex; align-items: center; gap: 14px; }
.hh-header__phone { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 0.82rem; white-space: nowrap; }

.hh-nav-toggle {
  display: none;
  position: relative;
  width: 40px;
  height: 36px;
  padding: 0 !important;
  background: transparent;
  border: none;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}
.hh-nav-toggle span,
.hh-nav-toggle span::before,
.hh-nav-toggle span::after {
  content: "";
  position: absolute;
  left: 50%;
  width: 20px;
  height: 1px;
  background: var(--ink);
  transform: translateX(-50%);
}
.hh-nav-toggle span { top: 50%; margin-top: 0; }
.hh-nav-toggle span::before { top: -6px; }
.hh-nav-toggle span::after { top: 6px; }

@media (max-width: 900px) {
  .hh-nav { display: none; }
  .hh-nav-toggle { display: inline-block; }
  .hh-nav.hh-nav--open {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--paper);
    padding: 8px 32px 28px;
    border-bottom: 1px solid var(--line);
    gap: 18px;
  }
}

@media (max-width: 600px) {
  .hh-header__phone { display: none; }
  .hh-header__inner { padding: 16px 20px; }
}

@media (max-width: 480px) {
  .hh-btn { white-space: normal; text-align: center; max-width: 100%; }
}

/* ---------- Hero ---------- */
.hh-hero { padding: 88px 0 96px; border-bottom: 1px solid var(--line); }
.hh-hero--page { padding: 64px 0 72px; }
.hh-hero__grid { display: grid; grid-template-columns: 1.3fr 0.7fr; gap: 64px; align-items: start; }
@media (max-width: 860px) { .hh-hero__grid { grid-template-columns: 1fr; gap: 40px; } }
.hh-hero p.lead { font-size: 1.2rem; color: var(--ink-soft); max-width: 46ch; line-height: 1.6; }
.hh-hero__panel {
  border-top: 1px solid var(--line);
  padding-top: 24px;
}
.hh-hero__panel h3 { font-family: var(--font-body); font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-faint); font-weight: 600; }
.hh-hero__panel ul { margin: 0; padding: 0; list-style: none; }
.hh-hero__panel li {
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
}
.hh-hero__panel li:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }

/* ---------- Grids (plain, no card chrome) ---------- */
.hh-grid { display: grid; gap: 48px; }
.hh-grid--2 { grid-template-columns: repeat(2, 1fr); }
.hh-grid--3 { grid-template-columns: repeat(3, 1fr); }
.hh-grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .hh-grid--3, .hh-grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .hh-grid--2, .hh-grid--3, .hh-grid--4 { grid-template-columns: 1fr; } }

.hh-card {
  padding-top: 28px;
  border-top: 1px solid var(--ink);
}
.hh-card--b2b { border-top-color: var(--ink); }
.hh-card p:last-child { margin-bottom: 0; }

.hh-badge {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--ink-faint);
  margin-bottom: 14px;
}
.hh-badge--b2c { color: var(--success); }
.hh-badge--b2b { color: var(--accent-deep); }

/* ---------- Divider ---------- */
.hh-stitch { border: none; border-top: 1px solid var(--line); margin: 0; }

/* ---------- Areas list ---------- */
.hh-area {
  padding: 40px 0;
  border-bottom: 1px solid var(--line);
}
.hh-area:first-child { padding-top: 0; }
.hh-area:last-child { border-bottom: none; }
.hh-area h3 { font-family: var(--font-display); font-size: 1.5rem; font-weight: 500; color: var(--ink); }

/* ---------- Forms ---------- */
.hh-form {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px;
}
.hh-form label { display: block; font-weight: 600; font-size: 0.78rem; letter-spacing: 0.03em; margin-bottom: 8px; color: var(--ink-soft); }
.hh-form .hh-field { margin-bottom: 22px; }
.hh-form input, .hh-form select, .hh-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.95rem;
  background: var(--paper);
  color: var(--ink);
}
.hh-form input:focus, .hh-form select:focus, .hh-form textarea:focus { outline: none; border-color: var(--ink); }
.hh-form textarea { min-height: 110px; resize: vertical; }
.hh-form .hh-hint { font-size: 0.8rem; color: var(--ink-faint); margin-top: 6px; }
.hh-form-status { margin-top: 16px; font-weight: 600; font-size: 0.9rem; }

/* ---------- Footer ---------- */
.hh-footer {
  background: var(--ink);
  color: #A9A493;
  padding: 72px 0 32px;
  font-size: 0.9rem;
}
.hh-footer a { color: var(--paper); text-decoration: none; }
.hh-footer a:hover { color: var(--accent); }
.hh-footer__grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 40px; margin-bottom: 56px; }
@media (max-width: 800px) { .hh-footer__grid { grid-template-columns: repeat(2, 1fr); } }
.hh-footer h4 { font-family: var(--font-body); color: #A9A493; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 18px; font-weight: 600; }
.hh-footer ul { list-style: none; margin: 0; padding: 0; }
.hh-footer li { margin-bottom: 10px; }
.hh-footer__brand { font-family: var(--font-display); font-size: 1.2rem; color: var(--paper); margin-bottom: 14px; }
.hh-footer__bottom {
  border-top: 1px solid #3A3831;
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.78rem;
  color: var(--ink-faint);
}

/* ---------- Utility ---------- */
.hh-center { text-align: center; }
.hh-muted { color: var(--ink-faint); }
.hh-note {
  border-left: 2px solid var(--ink);
  padding-left: 22px;
  font-size: 0.98rem;
  color: var(--ink-soft);
}
.hh-max-60 { max-width: 60ch; }
.hh-mt-0 { margin-top: 0; }
