/* ==========================================================================
   WUMITH STORE — BASE STYLES
   Colour, type, layout, header, footer, buttons, forms.
   Page-specific styles live in pages.css
   ========================================================================== */

:root {
  --bone:      #FAF3E9;
  --linen:     #F2E5D3;
  --sand:      #E7D3B7;
  --white:     #FFFCF7;
  --ink:       #241A12;
  --ink-soft:  #55443A;
  --muted:     #8A7666;
  --clay:      #BF5B33;
  --clay-deep: #98431F;
  --honey:     #E0A03C;
  --olive:     #4E5B3B;
  --line:      rgba(36, 26, 18, 0.13);
  --line-soft: rgba(36, 26, 18, 0.07);

  --r-sm: 8px;
  --r:    14px;
  --r-lg: 24px;
  --r-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(36, 26, 18, 0.05);
  --shadow:    0 10px 30px -18px rgba(36, 26, 18, 0.5);

  --font-display: "Fraunces", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --font-body: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --wrap: 1180px;
  --gutter: clamp(1.1rem, 4vw, 2.75rem);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }

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

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

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  font-variation-settings: "SOFT" 30, "WONK" 1;
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin: 0 0 0.5em;
  color: var(--ink);
}

h1 { font-size: clamp(2.3rem, 5.4vw, 4rem); }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); }
h3 { font-size: clamp(1.15rem, 1.8vw, 1.4rem); }

p { margin: 0 0 1rem; }

a { color: var(--clay-deep); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--clay); }

ul, ol { margin: 0 0 1rem; padding-left: 1.15rem; }

button { font: inherit; color: inherit; }

:focus-visible {
  outline: 3px solid var(--clay);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection { background: var(--honey); color: var(--ink); }

.skip-link {
  position: absolute;
  left: 1rem; top: -100px;
  background: var(--ink); color: var(--white);
  padding: 0.7rem 1.1rem; border-radius: var(--r-sm);
  z-index: 200; transition: top 0.15s ease;
}
.skip-link:focus { top: 1rem; color: var(--white); }

/* ---------- layout ---------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: clamp(3rem, 7vw, 6rem); }
.section--tight { padding-block: clamp(2.2rem, 4.5vw, 3.5rem); }

.section-head { max-width: 640px; margin-bottom: clamp(1.6rem, 3vw, 2.6rem); }
.section-head p { color: var(--ink-soft); margin: 0; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--clay-deep);
  font-weight: 600;
  margin-bottom: 0.9rem;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 1px;
  background: currentColor;
}

.rule { height: 1px; background: var(--line); border: 0; margin: 0; }

/* ---------- buttons ---------- */
.btn {
  --btn-bg: var(--clay);
  --btn-fg: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.85rem 1.5rem;
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.btn:hover {
  background: var(--clay-deep);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}
.btn:active { transform: translateY(0); }

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  border-color: var(--line);
}
.btn--ghost:hover {
  background: var(--linen);
  color: var(--ink);
  border-color: var(--sand);
  box-shadow: none;
}

.btn--olive { --btn-bg: var(--olive); }
.btn--olive:hover { background: #3d4830; }

.btn--block { width: 100%; }
.btn--sm { padding: 0.6rem 1.05rem; font-size: 0.86rem; }

.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; box-shadow: none; }

.btn svg { width: 18px; height: 18px; flex: none; }

/* ---------- forms ---------- */
.field { display: grid; gap: 0.4rem; margin-bottom: 1.1rem; }
.field label { font-size: 0.88rem; font-weight: 600; color: var(--ink-soft); }

.input, .select, .textarea {
  width: 100%;
  font: inherit;
  font-size: 0.97rem;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 0.8rem 1rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.input::placeholder, .textarea::placeholder { color: #A08C7B; }
.input:focus, .select:focus, .textarea:focus {
  outline: none;
  border-color: var(--clay);
  box-shadow: 0 0 0 3px rgba(191, 91, 51, 0.14);
}
.textarea { min-height: 140px; resize: vertical; }

.select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%2355443A' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.4rem;
}

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 243, 233, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line-soft);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  min-height: 74px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--ink);
  margin-right: auto;
}
.brand:hover { color: var(--ink); }
.brand__mark { width: 34px; height: 34px; flex: none; color: var(--clay); }
.brand__name {
  font-family: var(--font-display);
  font-size: 1.32rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1;
}
.brand__name small {
  display: block;
  font-family: var(--font-body);
  font-size: 0.58rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
  margin-top: 3px;
}

.nav { display: flex; align-items: center; gap: 0.35rem; }

.nav a {
  position: relative;
  padding: 0.5rem 0.8rem;
  border-radius: var(--r-pill);
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 0.94rem;
  font-weight: 500;
  transition: color 0.15s ease, background-color 0.15s ease;
}
.nav a:hover { color: var(--ink); background: var(--linen); }
.nav a[aria-current="page"] { color: var(--ink); font-weight: 600; }
.nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0.8rem; right: 0.8rem; bottom: 0.18rem;
  height: 2px; background: var(--clay); border-radius: 2px;
}

.header-actions { display: flex; align-items: center; gap: 0.5rem; }

.icon-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px; height: 42px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}
.icon-btn:hover { background: var(--linen); color: var(--ink); border-color: var(--sand); }
.icon-btn svg { width: 20px; height: 20px; }

.cart-count {
  position: absolute;
  top: -3px; right: -3px;
  min-width: 19px; height: 19px;
  padding: 0 5px;
  border-radius: var(--r-pill);
  background: var(--clay);
  color: var(--white);
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 19px;
  text-align: center;
  font-family: var(--font-body);
}
.cart-count[hidden] { display: none; }

.nav-toggle { display: none; }

@media (max-width: 860px) {
  .nav {
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem var(--gutter) 1rem;
    background: var(--bone);
    border-bottom: 1px solid var(--line);
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 0.85rem 0.25rem; border-radius: var(--r-sm); }
  .nav a[aria-current="page"]::after { left: 0.25rem; right: auto; width: 22px; }
  .nav-toggle { display: inline-flex; }
  .site-header { position: relative; }
}

/* ---------- footer ---------- */
.site-footer {
  margin-top: clamp(3rem, 7vw, 6rem);
  background: var(--ink);
  color: #E7DACB;
  padding-block: clamp(2.6rem, 5vw, 4rem) 1.5rem;
}
.site-footer a { color: #E7DACB; text-decoration: none; }
.site-footer a:hover { color: var(--honey); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.3fr;
  gap: 2rem;
}
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

.site-footer .brand__name { color: var(--white); }
.site-footer .brand__mark { color: var(--honey); }
.site-footer .brand__name small { color: #A08C7B; }

.footer-about { max-width: 30ch; font-size: 0.92rem; color: #BFB0A1; margin-top: 1rem; }

.footer-title {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--honey);
  font-weight: 600;
  margin-bottom: 1rem;
  font-family: var(--font-body);
}
.footer-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.55rem; font-size: 0.93rem; }

.footer-bottom {
  margin-top: 2.6rem;
  padding-top: 1.3rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.5rem;
  justify-content: space-between;
  font-size: 0.82rem;
  color: #9C8B7B;
}

/* ---------- whatsapp float ---------- */
.wa-float {
  position: fixed;
  right: clamp(1rem, 3vw, 1.75rem);
  bottom: clamp(1rem, 3vw, 1.75rem);
  z-index: 90;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.8rem 1.2rem 0.8rem 1rem;
  border-radius: var(--r-pill);
  background: #1F8F5F;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: 0 12px 28px -12px rgba(20, 90, 60, 0.9);
  transition: transform 0.18s ease, background-color 0.18s ease;
}
.wa-float:hover { background: #17754D; color: #fff; transform: translateY(-2px); }
.wa-float svg { width: 21px; height: 21px; }
@media (max-width: 560px) {
  .wa-float { padding: 0.85rem; }
  .wa-float span { display: none; }
}

/* ---------- utilities ---------- */
.muted { color: var(--muted); }
.center { text-align: center; }
.stack-lg > * + * { margin-top: 1.4rem; }
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}
