/* base.css — Wood Fired Designs — woodfireddesigns.com */

/* ─────────────────────────────────────────────────────────────
   base.css
   Global reset, typography base, grid utilities, utility classes.
   All values via brand.css variables only.
   ───────────────────────────────────────────────────────────── */


/* ── RESET ────────────────────────────────────────────────── */

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

::selection {
  background-color: var(--color-accent);
  color: var(--color-bg-inverse);
}

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

body {
  font-family: var(--font-body);
  font-size: var(--type-body);
  font-weight: var(--weight-regular);
  line-height: var(--leading-normal);
  color: var(--color-text-primary);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Nav overlay open — lock body scroll */
body.nav--open {
  overflow: hidden;
}

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

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

ul,
ol {
  list-style: none;
}

button {
  cursor: pointer;
  background: none;
  border: none;
  font: inherit;
  color: inherit;
}

input,
textarea,
select {
  font: inherit;
  color: inherit;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: var(--weight-regular);
  line-height: var(--leading-tight);
}

blockquote {
  font-style: normal;
}

cite {
  font-style: normal;
}


/* ── TYPOGRAPHY BASE ──────────────────────────────────────── */

.label-text {
  font-family: var(--font-label);
  font-size: var(--type-label);
  font-weight: var(--weight-medium);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--color-text-secondary);
}

/* "/" prefix accent — used on kicker labels */
.label-text .slash,
.kicker-slash {
  color: var(--color-accent);
}


/* ── SECTION WRAPPER ──────────────────────────────────────── */

.section-inner,
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--section-pad-x);
}


/* ── GRID UTILITIES ───────────────────────────────────────── */

.grid {
  display: grid;
  gap: var(--col-gap);
}

.grid--12 {
  grid-template-columns: repeat(var(--grid-cols), 1fr);
}

/* Two-column split used throughout: 30/70 */
.col-split {
  display: grid;
  gap: var(--col-gap);
  grid-template-columns: 1fr;
}

@media (min-width: 1024px) {
  .col-split {
    grid-template-columns: 3fr 7fr;
  }
}


/* ── CLONE-HOVER LINK SYSTEM ──────────────────────────────── */
/* Used in nav, footer, inline text links throughout. */

.link__inner {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  height: var(--link-inner-h);
  position: relative;
}

.link__label {
  display: block;
  transition: transform var(--duration-mid) var(--ease-in-out);
  white-space: nowrap;
}

.link__label--clone {
  position: absolute;
  top: 100%;
  left: 0;
}

a:hover .link__label,
button:hover .link__label {
  transform: translateY(-100%);
}


/* ── SCROLL REVEAL UTILITIES ──────────────────────────────── */
/* Managed by js/reveals.js */

.scroll-reveal {
  opacity: 0;
  transform: translateY(var(--space-lg));
  transition:
    opacity var(--duration-slow) var(--ease-out-expo),
    transform var(--duration-slow) var(--ease-out-expo);
}

.scroll-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger group — children get increasing delay via JS */
.stagger-group > .scroll-reveal {
  transition-delay: 0s; /* overridden by JS inline style */
}


/* ── WORD REVEAL SYSTEM ───────────────────────────────────── */
/* Managed by js/reveals.js — these are base styles. */

.wr-outer {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
}

.wr-inner {
  display: block;
  transform: translateY(110%);
  transition:
    transform var(--duration-reveal) var(--ease-out-expo);
}

.wr-inner.is-visible {
  transform: translateY(0);
}


/* ── BUTTON COMPONENTS ────────────────────────────────────── */
/* Detailed styles in css/components/buttons.css */
/* Base reset only here */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  font-family: var(--font-label);
  font-size: var(--type-label);
  font-weight: var(--weight-medium);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition:
    background-color var(--duration-fast) var(--ease-out-expo),
    color var(--duration-fast) var(--ease-out-expo),
    border-color var(--duration-fast) var(--ease-out-expo),
    transform var(--duration-fast) var(--ease-out-expo);
}


/* ── SCROLL-TO-TOP BUTTON ─────────────────────────────────── */

.scroll-top-btn {
  position: fixed;
  bottom: var(--space-lg);
  right: var(--space-lg);
  width: clamp(2.5rem, 4vw, 3rem);
  height: clamp(2.5rem, 4vw, 3rem);
  border-radius: var(--radius-pill);
  background-color: var(--color-text-primary);
  color: var(--color-bg);
  font-size: var(--type-label);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: var(--z-nav);
  opacity: 0;
  pointer-events: none;
  border: 1px solid var(--color-border);
  transform: translateY(var(--space-sm));
  transition:
    opacity var(--duration-mid) var(--ease-out-expo),
    transform var(--duration-mid) var(--ease-out-expo),
    background-color var(--duration-fast) var(--ease-out-expo),
    border-color var(--duration-fast) var(--ease-out-expo),
    scale var(--duration-fast) var(--ease-out-expo);
}

.scroll-top-btn.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.scroll-top-btn:hover {
  background-color: var(--color-accent);
  border-color: var(--color-accent);
  scale: 1.05;
}


/* ── DISPLAY UPPERCASE UTILITY ───────────────────────────── */
/* Use on --font-display elements that are uppercase.
   Pairs with Owners XNarrow XBlack (weight 950). */

.display-uppercase {
  font-weight: var(--weight-xblack);
  text-transform: uppercase;
  font-style: normal;
  letter-spacing: var(--tracking-wide);
}


/* ── ACCESSIBILITY ────────────────────────────────────────── */

:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Skip link — visible only on keyboard focus */
.sr-only--focusable:focus {
  position: fixed;
  top: var(--space-sm);
  left: 50%;
  transform: translateX(-50%);
  z-index: calc(var(--z-modal) + 10);
  width: auto;
  height: auto;
  padding: var(--space-sm) var(--space-lg);
  margin: 0;
  overflow: visible;
  clip: auto;
  white-space: nowrap;
  border: 2px solid var(--color-accent);
  border-radius: var(--radius-pill);
  background: var(--color-bg-inverse);
  color: var(--color-text-inverse);
  font-family: var(--font-label);
  font-size: var(--type-label);
  font-weight: var(--weight-medium);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  text-decoration: none;
  outline: none;
}


/* ── CUSTOM CURSOR ────────────────────────────────────────── */

.custom-cursor,
.custom-cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0;
  transition: opacity var(--duration-mid) var(--ease-out-expo);
}

.custom-cursor.is-active,
.custom-cursor-dot.is-active {
  opacity: 1;
}

.custom-cursor {
  width: 38px;
  height: 38px;
  border: 1.5px solid var(--color-accent);
  border-radius: var(--radius-pill);
  transform: translate(-50%, -50%);
  mix-blend-mode: difference;
}

.custom-cursor-dot {
  width: 5px;
  height: 5px;
  background-color: var(--color-accent);
  border-radius: var(--radius-pill);
  transform: translate(-50%, -50%);
}

@media (max-width: 768px) {
  .custom-cursor,
  .custom-cursor-dot { display: none; }
}
