/* ==========================================================================
   Base / reset
   ========================================================================== */

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

html {
  scroll-behavior: smooth;
  /* keep in-page anchors clear of the fixed header */
  scroll-padding-top: calc(var(--header-height) + var(--space-md));
}

/* clip (not hidden): hidden turns body into a scroll container */
html,
body {
  overflow-x: clip;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: var(--lh-normal);
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  padding-top: var(--header-height); /* room for the fixed header */
}

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

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

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

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

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  text-wrap: balance;
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: var(--lh-tight);
  color: var(--color-text);
}

p {
  margin: 0;
}

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

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

[hidden] {
  display: none !important;
}

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

/* Eyebrow label pattern used across sections */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--color-gold-deep);
}

.eyebrow::before {
  content: "";
  display: inline-block;
  width: 28px;
  height: 1px;
  background: var(--color-gold);
}

/* Buttons
   Hover sweeps a fill in from the left (and out to the right on leave)
   instead of swapping colours. Kept under 250ms so it answers the pointer
   rather than trailing it. Each variant sets --btn-fill. */
.btn {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2xs);
  padding: 0.9em 1.8em;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  border-radius: 2px;
  border: 1px solid transparent;
  transition: color 220ms ease, border-color 220ms ease, transform 120ms ease;
  white-space: nowrap;
}

.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--btn-fill, transparent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 220ms cubic-bezier(0.3, 0.7, 0.2, 1);
}

.btn:hover::before,
.btn:focus-visible::before {
  transform: scaleX(1);
  transform-origin: left;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  --btn-fill: var(--color-gold-deep);
  background-color: var(--color-charcoal);
  color: var(--color-cream);
}

/* Gold button: flat #EDC05C fill; hover washes a lighter gold across */
.btn-gold {
  --btn-fill: var(--color-gold-button-hover);
  background: linear-gradient(100deg, var(--color-gold-button) 0%, var(--color-gold-button) 45%, var(--color-gold-button-light) 100%);
  color: var(--color-charcoal);
}

.btn-outline {
  --btn-fill: var(--color-text);
  background-color: transparent;
  border-color: currentColor;
  color: inherit;
}

.btn-outline:hover,
.btn-outline:focus-visible {
  border-color: var(--color-text);
  color: var(--color-bg);
}

@media (prefers-reduced-motion: reduce) {
  .btn::before {
    transition-duration: 1ms;
  }

  .btn:active {
    transform: none;
  }
}

/* Placeholder blocks used wherever real photography/content isn't available yet */
.placeholder-block {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: repeating-linear-gradient(
    135deg,
    var(--color-grey-light),
    var(--color-grey-light) 10px,
    var(--color-ivory) 10px,
    var(--color-ivory) 20px
  );
  border: 1px dashed var(--color-grey);
  color: var(--color-grey);
  font-size: var(--fs-sm);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  padding: var(--space-lg);
  border-radius: var(--radius-md);
}

/* Visible keyboard focus everywhere (mouse clicks don't show it) */
:focus-visible {
  outline: 2px solid var(--color-gold-deep);
  outline-offset: 3px;
}

main:focus {
  outline: none; /* skip-link target only; not interactive */
}

a,
button,
summary {
  touch-action: manipulation;
  -webkit-tap-highlight-color: rgba(var(--gold-rgb), 0.2);
}

p {
  text-wrap: pretty;
}

.skip-link {
  position: fixed;
  top: var(--space-sm);
  left: var(--space-sm);
  z-index: 300;
  padding: 0.6em 1em;
  background: var(--color-charcoal);
  color: var(--color-cream);
  border-radius: 2px;
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: none;
}
