/* ============================================================================
   FourthBrand Studio — tokens, primitives, header, footer, shared blocks
   Values lifted verbatim from the approved GlennWood design.
   Desktop (>=1240px) renders exactly as designed; breakpoints below that are
   the authored responsive behaviour.
   ========================================================================== */

:root {
  /* surfaces */
  --gw-cream: #fbf7f3;
  --gw-cream-alt: #f2ece3;
  --gw-cream-soft: #f7f3ec;
  --gw-cream-warm: #f7f2ea;
  --gw-cream-card: #fbf8f4;
  --gw-cream-halo: #faf6ee;
  --gw-cream-footer: #f3eee6;
  --gw-surface-card: #fbf9f6;

  /* ink */
  --gw-ink: #1e1e1e;
  --gw-ink-68: rgba(30, 30, 30, 0.68);
  --gw-ink-66: rgba(30, 30, 30, 0.66);
  --gw-ink-64: rgba(30, 30, 30, 0.64);
  --gw-ink-62: rgba(30, 30, 30, 0.62);
  --gw-ink-60: rgba(30, 30, 30, 0.6);
  --gw-ink-58: rgba(30, 30, 30, 0.58);
  --gw-ink-55: rgba(30, 30, 30, 0.55);
  --gw-ink-50: rgba(30, 30, 30, 0.5);
  --gw-ink-45: rgba(30, 30, 30, 0.45);
  --gw-rule: rgba(30, 30, 30, 0.09);
  --gw-rule-soft: rgba(30, 30, 30, 0.07);
  --gw-rule-faint: rgba(30, 30, 30, 0.06);
  --gw-field-border: rgba(30, 30, 30, 0.16);

  /* gold */
  --gw-gold: #b08d4e;
  --gw-gold-line: #b89658;
  --gw-gold-deep: #96762f;
  --gw-gold-link-hover: #9c7b42;
  --gw-gold-30: rgba(184, 150, 88, 0.3);
  --gw-gold-50: rgba(184, 150, 88, 0.5);
  --gw-gold-55: rgba(184, 150, 88, 0.55);
  --gw-gold-glow: rgba(150, 118, 47, 0.7);
  --gw-gold-glow-strong: rgba(150, 118, 47, 0.85);

  /* dark section */
  --gw-dark: #1e1e1e;
  --gw-dark-frame: #141414;
  --gw-on-dark: #fbf7f3;
  --gw-on-dark-48: rgba(251, 247, 243, 0.48);
  --gw-on-dark-45: rgba(251, 247, 243, 0.45);
  --gw-on-dark-40: rgba(251, 247, 243, 0.4);
  --gw-on-dark-16: rgba(251, 247, 243, 0.16);

  /* error / success */
  --gw-error: #a4482f;
  --gw-success: #7c6a31;

  /* layout */
  --gw-container: 1280px;
  --gw-gutter: 48px;

  /* motion */
  --gw-ease-out: cubic-bezier(0.2, 0.7, 0.2, 1);
  --gw-ease-image: cubic-bezier(0.16, 0.84, 0.24, 1);

  /* typography */
  --gw-serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --gw-sans: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

@media (max-width: 1239px) {
  :root { --gw-gutter: 40px; }
}
@media (max-width: 1023px) {
  :root { --gw-gutter: 32px; }
}
@media (max-width: 767px) {
  :root { --gw-gutter: 20px; }
}

/* ---------------------------------------------------------------------- */
/* reset                                                                   */
/* ---------------------------------------------------------------------- */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  background: var(--gw-cream);
  color: var(--gw-ink);
  font-family: var(--gw-sans);
  font-size: 13px;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a { color: var(--gw-gold-line); text-decoration: none; }
a:hover { color: var(--gw-gold-link-hover); }

h1, h2, h3, h4, h5, h6, p, figure, blockquote, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }

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

/* Visible keyboard focus everywhere — the source design had none. */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--gw-gold);
  outline-offset: 3px;
  border-radius: 2px;
}

.gw-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;
}

.gw-skip-link:focus {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  width: auto;
  height: auto;
  clip: auto;
  margin: 0;
  padding: 12px 20px;
  background: var(--gw-cream);
  color: var(--gw-ink);
  border: 1px solid var(--gw-gold);
}

/* ---------------------------------------------------------------------- */
/* typography primitives                                                   */
/* ---------------------------------------------------------------------- */

.gw-serif { font-family: var(--gw-serif); font-weight: 400; }
.gw-gold-text { color: var(--gw-gold); }

.gw-eyebrow {
  display: inline-block;
  font-size: 9.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gw-gold);
  padding-bottom: 8px;
  border-bottom: 1px solid var(--gw-gold-55);
}

.gw-eyebrow--plain {
  border-bottom: 0;
  padding-bottom: 0;
  color: var(--gw-ink);
  font-weight: 500;
}

.gw-eyebrow--muted {
  border-bottom: 0;
  padding-bottom: 0;
  color: var(--gw-ink-55);
}

.gw-rule {
  width: 56px;
  height: 1px;
  background: var(--gw-gold-line);
  border: 0;
}

/* ---------------------------------------------------------------------- */
/* layout primitives                                                       */
/* ---------------------------------------------------------------------- */

.gw-container {
  max-width: var(--gw-container);
  margin-inline: auto;
  padding-inline: var(--gw-gutter);
  width: 100%;
}

/* ---------------------------------------------------------------------- */
/* buttons & links                                                         */
/* ---------------------------------------------------------------------- */

.gw-btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  background: var(--gw-gold);
  color: var(--gw-cream);
  border: 0;
  padding: 17px 28px;
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  transition: background 320ms ease, transform 320ms var(--gw-ease-out), box-shadow 320ms ease;
}

.gw-btn:hover {
  background: var(--gw-gold-deep);
  color: var(--gw-cream);
  transform: translateY(-3px);
  box-shadow: 0 16px 30px -16px var(--gw-gold-glow-strong);
}

.gw-btn--lg { padding: 18px 28px; }
.gw-btn__arrow { font-size: 13px; line-height: 1; }

.gw-btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--gw-gold-line);
  color: var(--gw-gold-line);
  padding: 13px 22px;
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 500;
  white-space: nowrap;
  transition: background 320ms ease, color 320ms ease, box-shadow 320ms ease;
}

.gw-btn-outline:hover {
  background: var(--gw-gold-line);
  color: var(--gw-cream);
  box-shadow: 0 10px 24px -12px var(--gw-gold-glow);
}

.gw-arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--gw-gold-line);
  padding-bottom: 4px;
  border-bottom: 1px solid transparent;
  transition: gap 300ms ease, border-color 300ms ease, color 300ms ease;
}

.gw-arrow-link:hover { gap: 18px; border-color: var(--gw-gold-line); }

.gw-arrow-link--on-dark {
  color: var(--gw-on-dark);
  border-bottom-color: var(--gw-on-dark-40);
}

.gw-arrow-link--on-dark:hover {
  gap: 20px;
  color: var(--gw-gold);
  border-color: var(--gw-gold);
}

.gw-arrow-link__arrow { font-size: 13px; line-height: 1; }

/* ---------------------------------------------------------------------- */
/* scroll reveal — see assets/js/theme.js                                  */
/* ---------------------------------------------------------------------- */

[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 850ms var(--gw-ease-out), transform 850ms var(--gw-ease-out);
}

[data-reveal="shown"] { opacity: 1; transform: none; }

/* ---------------------------------------------------------------------- */
/* branded background motif                                                */
/* ---------------------------------------------------------------------- */

/* A faded GlennWood mark, used in place of the abstract hexagon outlines.
   Always decorative: aria-hidden and never interactive. */
/* Strength is driven by Customizer → Logo & style; 0 hides them entirely. */
.gw-watermark {
  position: absolute;
  pointer-events: none;
  user-select: none;
  height: auto;
  z-index: 0;
  opacity: var(--gw-watermark-opacity, 0.1);
}

.gw-watermark--pagehero {
  right: 48px;
  top: -40px;
  width: 380px;
}

.gw-watermark--materials {
  left: -80px;
  top: 30px;
  width: 340px;
  opacity: calc(var(--gw-watermark-opacity, 0.1) * 0.7);
}

.gw-watermark--diff {
  left: -60px;
  top: 40px;
  width: 300px;
  opacity: calc(var(--gw-watermark-opacity, 0.1) * 0.9);
}

/* Sits on top of a dark photo, so the mark is knocked out to white and needs
   more strength to register at all. */
.gw-watermark--hero {
  right: 44px;
  bottom: 40px;
  width: 190px;
  opacity: calc(var(--gw-watermark-opacity, 0.1) * 3);
  filter: brightness(0) invert(1);
}

.gw-watermark--contact {
  right: 10px;
  bottom: -60px;
  width: 220px;
  opacity: calc(var(--gw-watermark-opacity, 0.1) * 1.6);
}

@media (max-width: 1239px) {
  .gw-watermark--pagehero { width: 300px; right: 20px; }
  .gw-watermark--materials { width: 260px; left: -110px; }
  .gw-watermark--hero { width: 150px; }
  .gw-watermark--contact { width: 170px; bottom: -44px; }
}

@media (max-width: 1023px) {
  .gw-watermark--pagehero { width: 240px; opacity: 0.08; }
  .gw-watermark--diff { width: 220px; left: -90px; }
  .gw-watermark--hero { right: 24px; bottom: 24px; width: 130px; }
  .gw-watermark--contact { display: none; }
}

@media (max-width: 767px) {
  .gw-watermark--pagehero,
  .gw-watermark--hero { display: none; }
  .gw-watermark--materials { width: 200px; }
}

/* ---------------------------------------------------------------------- */
/* keyframes                                                               */
/* ---------------------------------------------------------------------- */

@keyframes gwPulse {
  0% { transform: scale(1); opacity: 0.5; }
  70%, 100% { transform: scale(1.75); opacity: 0; }
}

@keyframes gwDrift {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* ======================================================================== */
/* HEADER                                                                   */
/* ======================================================================== */

.gw-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(251, 247, 243, 0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.gw-header__inner {
  max-width: var(--gw-container);
  margin-inline: auto;
  padding: 18px var(--gw-gutter);
  display: flex;
  align-items: center;
  gap: 40px;
}

.gw-header__logo {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: none;
  transition: opacity 300ms ease;
}

.gw-header__logo:hover { opacity: 0.72; }
.gw-header__mark { height: var(--gw-logo-height, 46px); width: auto; }
.gw-header__wordmark { height: calc(var(--gw-logo-height, 46px) * 0.83); width: auto; }

.gw-header__nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 34px;
  white-space: nowrap;
}

.gw-header__nav ul { display: flex; align-items: center; gap: 34px; }

.gw-header__nav a {
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gw-ink);
  font-weight: 500;
  padding-bottom: 4px;
  border-bottom: 1px solid transparent;
  transition: color 260ms ease, border-color 260ms ease;
}

.gw-header__nav a:hover { color: var(--gw-gold-line); border-color: var(--gw-gold-line); }

.gw-header__nav .current-menu-item > a,
.gw-header__nav .current_page_item > a,
.gw-header__nav .current-menu-ancestor > a {
  color: var(--gw-gold-line);
  padding-bottom: 5px;
  border-bottom-color: var(--gw-gold-line);
}

.gw-header__cta { flex: none; }

.gw-header__toggle {
  display: none;
  margin-left: auto;
  width: 44px;
  height: 44px;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  color: var(--gw-ink);
  place-items: center;
}

.gw-header__bars {
  display: block;
  position: relative;
  width: 22px;
  height: 1px;
  background: currentColor;
  transition: background 220ms ease;
}

.gw-header__bars::before,
.gw-header__bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 22px;
  height: 1px;
  background: currentColor;
  transition: transform 300ms var(--gw-ease-out);
}

.gw-header__bars::before { transform: translateY(-7px); }
.gw-header__bars::after { transform: translateY(7px); }

.gw-header__toggle[aria-expanded="true"] .gw-header__bars { background: transparent; }
.gw-header__toggle[aria-expanded="true"] .gw-header__bars::before { transform: rotate(45deg); }
.gw-header__toggle[aria-expanded="true"] .gw-header__bars::after { transform: rotate(-45deg); }

.gw-header__drawer {
  display: none;
  border-top: 1px solid var(--gw-rule-soft);
  background: var(--gw-cream);
  overflow: hidden;
}

.gw-header__drawer[hidden] { display: none; }

.gw-header__drawer-inner {
  padding: 12px var(--gw-gutter) 28px;
  display: flex;
  flex-direction: column;
}

.gw-header__drawer-inner ul { display: flex; flex-direction: column; }

.gw-header__drawer-inner a {
  display: block;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gw-ink);
  font-weight: 500;
  padding: 16px 0;
  border-bottom: 1px solid var(--gw-rule-faint);
}

.gw-header__drawer-inner a:hover,
.gw-header__drawer-inner .current-menu-item > a,
.gw-header__drawer-inner .current_page_item > a { color: var(--gw-gold-line); }

.gw-header__drawer-cta { margin-top: 26px; justify-content: center; }

@media (max-width: 1239px) {
  .gw-header__inner { gap: 28px; }
  .gw-header__nav, .gw-header__nav ul { gap: 24px; }
  .gw-header__nav a { font-size: 10.5px; letter-spacing: 0.1em; }
}

@media (max-width: 1023px) {
  .gw-header__nav, .gw-header__cta { display: none; }
  .gw-header__toggle { display: grid; }
  .gw-header__drawer { display: block; }
  .gw-header__inner { padding-block: 14px; }
  .gw-header__mark { height: 40px; }
  .gw-header__wordmark { height: 32px; }
}

@media (max-width: 479px) {
  .gw-header__mark { height: 34px; }
  .gw-header__wordmark { height: 26px; }
  .gw-header__logo { gap: 10px; }
}

/* ======================================================================== */
/* FOOTER                                                                   */
/* ======================================================================== */

.gw-footer {
  background: var(--gw-cream-footer);
  color: var(--gw-ink);
  border-top: 1px solid var(--gw-rule-soft);
}

.gw-footer__top {
  max-width: var(--gw-container);
  margin-inline: auto;
  padding: 64px var(--gw-gutter) 0;
  display: grid;
  grid-template-columns: 336px repeat(3, minmax(150px, 1fr));
  gap: 46px;
  align-items: start;
}

.gw-footer__logo { width: 196px; height: auto; }

.gw-footer__blurb {
  font-size: 12px;
  line-height: 2.05;
  color: var(--gw-ink-60);
  margin-top: 28px;
  max-width: 300px;
  text-wrap: pretty;
}

.gw-footer__socials { display: flex; gap: 12px; margin-top: 30px; }

.gw-footer__social {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(30, 30, 30, 0.22);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--gw-ink);
  transition: border-color 280ms ease, color 280ms ease, transform 280ms var(--gw-ease-out);
}

.gw-footer__social:hover {
  border-color: var(--gw-gold-line);
  color: var(--gw-gold);
  transform: translateY(-3px);
}

.gw-footer__col-title {
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gw-ink);
  margin: 4px 0 22px;
  font-weight: 600;
}

.gw-footer__list {
  display: flex;
  flex-direction: column;
  gap: 13px;
  align-items: flex-start;
  font-size: 12px;
  color: var(--gw-ink-62);
  font-style: normal;
}

.gw-footer__list a {
  font-size: 12px;
  color: var(--gw-ink-62);
  transition: color 240ms ease, transform 240ms ease;
}

.gw-footer__list a:hover { color: var(--gw-gold); transform: translateX(4px); }
.gw-footer__list--contact a:hover { transform: none; }
.gw-footer__hours { color: var(--gw-ink-45); margin-top: 4px; }

.gw-footer__bottom-wrap {
  max-width: var(--gw-container);
  margin-inline: auto;
  padding-inline: var(--gw-gutter);
}

.gw-footer__bottom {
  margin-top: 56px;
  border-top: 1px solid var(--gw-rule);
  padding: 22px 0 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.gw-footer__copyright { font-size: 10.5px; color: var(--gw-ink-45); }
.gw-footer__legal { display: flex; gap: 28px; }

.gw-footer__legal a {
  font-size: 10.5px;
  letter-spacing: 0.06em;
  color: var(--gw-ink-50);
  white-space: nowrap;
  transition: color 240ms ease;
}

.gw-footer__legal a:hover { color: var(--gw-gold); }

@media (max-width: 1023px) {
  .gw-footer__top {
    grid-template-columns: 1fr 1fr;
    gap: 44px 36px;
    padding-top: 56px;
  }
  .gw-footer__brand { grid-column: 1 / -1; }
  .gw-footer__blurb { max-width: 520px; }
}

@media (max-width: 599px) {
  .gw-footer__top { grid-template-columns: 1fr; gap: 36px; padding-top: 48px; }
  .gw-footer__bottom {
    margin-top: 40px;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .gw-footer__legal { gap: 20px; flex-wrap: wrap; }
}

/* ======================================================================== */
/* CTA BANNER (vase band) — Home, Werk, Werkwijze                           */
/* ======================================================================== */

.gw-cta {
  position: relative;
  background: var(--gw-cream-warm);
  display: grid;
  grid-template-columns: 244px minmax(364px, 440px) minmax(324px, 400px) 136px;
  align-items: center;
  gap: 30px;
  min-height: 250px;
  padding-right: var(--gw-gutter);
  overflow: hidden;
}

.gw-cta__vase-wrap { align-self: stretch; overflow: hidden; }

/* The original still-life was a 270x300 cut-out, framed off-centre to sit the
   vase in view. This slot now takes a real photograph, so it crops from the
   middle at full height. */
.gw-cta__vase {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
}

.gw-cta__heading { font-size: 38px; line-height: 1.26; }

.gw-cta__body {
  font-size: 12.5px;
  line-height: 1.95;
  color: var(--gw-ink-66);
  margin-bottom: 28px;
}

.gw-cta__mark {
  justify-self: end;
  width: 136px;
  height: auto;
  opacity: 0.16;
  animation: gwDrift 9s ease-in-out infinite;
}

@media (max-width: 1239px) {
  .gw-cta {
    grid-template-columns: 200px minmax(0, 1fr) minmax(280px, 360px);
    gap: 28px;
  }
  .gw-cta__mark { display: none; }
  .gw-cta__heading { font-size: 34px; }
}

@media (max-width: 1023px) {
  .gw-cta {
    grid-template-columns: 168px minmax(0, 1fr);
    grid-template-rows: auto auto;
    gap: 22px 28px;
    padding-block: 40px;
  }
  .gw-cta__vase-wrap { grid-row: 1 / span 2; }
  .gw-cta__heading { font-size: 30px; }
}

@media (max-width: 639px) {
  .gw-cta {
    grid-template-columns: 1fr;
    grid-template-rows: none;
    gap: 24px;
    padding: 0 0 40px;
  }
  .gw-cta__vase-wrap { grid-row: auto; height: 200px; }
  .gw-cta__vase { object-position: center 30%; }
  .gw-cta__heading, .gw-cta__copy { padding-inline: var(--gw-gutter); }
  .gw-cta__heading { font-size: 28px; }
}

/* ======================================================================== */
/* PAGE HERO — Werk, Werkwijze                                              */
/* ======================================================================== */

.gw-pagehero { position: relative; padding: 72px 0 44px; overflow: hidden; }

.gw-pagehero--bordered {
  border-bottom: 1px solid var(--gw-rule-soft);
  padding-bottom: 62px;
}


.gw-pagehero__inner {
  position: relative;
  max-width: var(--gw-container);
  margin-inline: auto;
  padding-inline: var(--gw-gutter);
}

.gw-pagehero__eyebrow {
  font-size: 9.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gw-ink);
  font-weight: 500;
}

.gw-pagehero__heading {
  font-size: 56px;
  line-height: 1.14;
  margin-top: 26px;
  max-width: 700px;
}

.gw-pagehero__rule { margin: 32px 0 28px; width: 48px; }

.gw-pagehero__body {
  font-size: 13px;
  line-height: 2.05;
  color: var(--gw-ink-66);
  max-width: 430px;
  text-wrap: pretty;
}

.gw-pagehero__body--tight { margin-top: 30px; max-width: 400px; }

@media (max-width: 1239px) {
  .gw-pagehero__heading { font-size: 46px; }
}

@media (max-width: 1023px) {
  .gw-pagehero { padding-top: 56px; }
  .gw-pagehero__heading { font-size: 40px; }
  .gw-pagehero__body { max-width: 560px; }
}

@media (max-width: 767px) {
  .gw-pagehero__heading { font-size: 32px; margin-top: 20px; }
  .gw-pagehero--bordered { padding-bottom: 44px; }
}

@media (max-width: 479px) {
  .gw-pagehero__heading { font-size: 28px; }
}

/* ---------------------------------------------------------------------- */
/* reduced motion                                                          */
/* ---------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
}
