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

html {
  scroll-behavior: smooth;
}

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

body {
  margin: 0;
  background: var(--color-white);
  color: var(--color-ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
button { font-family: inherit; cursor: pointer; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  margin: 0;
  line-height: 1.15;
  letter-spacing: 0.01em;
}

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 0.72rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--color-gold-dark);
  font-weight: 500;
}

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

.section {
  padding: clamp(64px, 10vw, 140px) 0;
}

.section--tight { padding: clamp(48px, 7vw, 96px) 0; }

@media (max-width: 600px) {
  .section { padding: 52px 0; }
  .section--tight { padding: 40px 0; }
}

.section--dark {
  background: var(--color-stone);
  color: var(--color-ink);
}

.section--stone {
  background: var(--color-stone);
}

.text-center { text-align: center; }

.lead {
  font-size: clamp(1rem, 1.1vw, 1.15rem);
  color: var(--color-slate);
  font-weight: 300;
}

.section--dark .lead { color: var(--color-slate); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 34px;
  font-size: 0.82rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
  border: 1px solid transparent;
  border-radius: 2px;
  transition: transform var(--dur-fast) var(--ease-out),
              background var(--dur-fast) var(--ease-out),
              color var(--dur-fast) var(--ease-out),
              border-color var(--dur-fast) var(--ease-out),
              box-shadow var(--dur-fast) var(--ease-out);
  white-space: nowrap;
}

.btn:active { transform: translateY(1px); }

.btn--primary {
  background: var(--color-white);
  color: var(--color-ink);
  border-color: var(--color-gold);
}
.btn--primary:hover {
  background: var(--color-gold);
  color: var(--color-white);
  border-color: var(--color-gold);
  box-shadow: 0 8px 24px rgba(165, 145, 113, 0.28);
  transform: translateY(-2px);
}

.btn--ghost-dark {
  background: transparent;
  color: var(--color-ink);
  border-color: var(--color-gold);
}
.btn--ghost-dark:hover {
  border-color: var(--color-gold-dark);
  background: var(--color-gold);
  color: var(--color-white);
  transform: translateY(-2px);
}

.btn--ghost-light {
  background: transparent;
  color: var(--color-ink);
  border-color: rgba(10,10,10,0.25);
}
.btn--ghost-light:hover {
  border-color: var(--color-gold);
  color: var(--color-gold-dark);
  background: rgba(165,145,113,0.08);
  transform: translateY(-2px);
}

.btn--gold {
  background: var(--color-white);
  color: var(--color-gold-dark);
  border-color: var(--color-gold);
}
.btn--gold:hover {
  background: var(--color-gold);
  color: var(--color-white);
  border-color: var(--color-gold);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(165,145,113,0.25);
}

/* Reveal-on-scroll */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-stagger > * {
  transition-delay: calc(var(--i, 0) * 0.09s);
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ===== Page hero (Services, Gallery, Team) ===== */
.page-hero {
  position: relative;
  background: linear-gradient(160deg, #ffffff 0%, #f6f2e7 100%);
  color: var(--color-ink);
  padding: 130px var(--gutter) 90px;
  text-align: center;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(165,145,113,0.14), transparent 60%);
}
.page-hero__inner { position: relative; z-index: 1; max-width: 760px; margin: 0 auto; }
.page-hero h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); margin: 20px 0 0; color: var(--color-ink); }
.page-hero p { color: var(--color-slate); margin-top: 20px; font-size: 1.05rem; }

@media (max-width: 600px) {
  .page-hero { padding: 100px var(--gutter) 56px; }
}

::selection {
  background: var(--color-gold);
  color: var(--color-white);
}
