/* base.css — Phase 1 (no @layer) */
/* Universal reset and base rules common to all 11 pages. */
/* Covers both product-page and non-product-page variants (superset). */

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

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--c-bg);
  color: var(--c-text);
  font-family: var(--ff-body);  /* canonical name */
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
  object-fit: cover;
}

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

ul {
  list-style: none;
}

button {
  cursor: pointer;
}

a, button, [role="button"], input, select, textarea {
  touch-action: manipulation;
}

/* ── Skip link ── */
/* Product pages use class .skip; non-product pages use .skip-link */
/* Both are defined here so either works on any page after migration. */
.skip,
.skip-link {
  position: absolute;
  top: -100%;
  left: 0;
  padding: 12px 20px;
  background: var(--c-text);
  color: var(--c-bg);
  font-family: var(--ff-body);
  font-size: 12px;
  letter-spacing: 0.08em;
  z-index: 9999;
  transition: top 0.2s;
}

.skip:focus,
.skip-link:focus {
  top: 0;
  position: fixed;
}

/* ── Layout container ── */
/* Both --mw (product pages) and --max-w (non-product pages) resolve to 1280px. */
/* tokens.css defines both. --max-w wins as last declaration but both are identical. */
.wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--gap-container);
}

/* ── Ghost buttons (canonical) ── */
/* Light-bg variant (default) */
.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 28px;
  border: 1px solid var(--c-text);
  font-family: var(--ff-body);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--c-text);
  line-height: 1;
  transition: border-color 0.3s var(--ease-quart), opacity 0.3s;
}
.btn-ghost:hover { border-color: var(--c-accent); opacity: 0.75; }
.btn-ghost:focus-visible { outline: 1px solid var(--c-accent); outline-offset: 4px; }

/* Dark-bg variant */
.btn-ghost--dark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 28px;
  border: 1px solid rgba(201, 168, 124, 0.4);
  font-family: var(--ff-body);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--c-dark-text);
  line-height: 1;
  transition: border-color 0.3s var(--ease-quart), opacity 0.3s;
}
.btn-ghost--dark:hover { border-color: var(--c-accent); opacity: 0.8; }
.btn-ghost--dark:focus-visible { outline: 1px solid var(--c-accent); outline-offset: 4px; }

@media (max-width: 768px) {
  .btn-ghost,
  .btn-ghost--dark { min-height: 44px; justify-content: center; }
}

/* ── 404 Page ── */
.error-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  padding: var(--gap-section) var(--gap-container);
  text-align: center;
}
.error-page__label {
  font-family: var(--ff-display);
  font-size: clamp(48px, 8vw, 96px);
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--c-accent);
  line-height: 1;
  margin-bottom: 16px;
}
.error-page__headline {
  font-family: var(--ff-display);
  font-weight: 400;
  font-size: clamp(24px, 3vw, 36px);
  letter-spacing: 0.02em;
  margin-bottom: 12px;
}
.error-page__body {
  font-family: var(--ff-body);
  color: var(--c-secondary);
  margin-bottom: 32px;
}
.error-page__link {
  font-family: var(--ff-body);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-text);
  border-bottom: 1px solid var(--c-accent);
  padding-bottom: 2px;
  transition: opacity 0.3s;
}
.error-page__link:hover { opacity: 0.7; }

/* ── Visually hidden (a11y) ── */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ── Sticky WhatsApp CTA (mobile only) ── */
.wa-sticky {
  display: none;
}
@media (max-width: 768px) {
  .wa-sticky {
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 52px;
    height: 52px;
    background: var(--c-dark);
    color: var(--c-dark-text);
    border-radius: 50%;
    z-index: 900;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    touch-action: manipulation;
    transition: opacity 0.3s;
  }
  .wa-sticky:hover { opacity: 0.8; }
  .wa-sticky:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 3px; }
  .wa-sticky svg { width: 24px; height: 24px; }
}

@supports (padding: env(safe-area-inset-bottom)) {
  .wa-sticky { bottom: calc(20px + env(safe-area-inset-bottom)); }
  .nav__drawer { padding-bottom: env(safe-area-inset-bottom); }
  .footer { padding-bottom: env(safe-area-inset-bottom); }
}
