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

*, *::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;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--text-primary);
  background: var(--bg-page);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--text-heading);
  line-height: var(--lh-heading);
  font-weight: 500;
  margin: 0 0 var(--space-sm);
}
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
h4 { font-size: var(--fs-h4); font-family: var(--font-body); font-weight: 600; }

p { margin: 0 0 var(--space-sm); max-width: 62ch; }
p:last-child { margin-bottom: 0; }

a { color: inherit; }
img { max-width: 100%; display: block; height: auto; }

ul, ol { padding-left: 1.25rem; }

.container {
  max-width: var(--content-max);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
}

.narrow { max-width: var(--content-narrow); }

.section {
  padding-block: var(--space-xl);
}
.section--alt { background: var(--bg-section-alt); }
.section--forest {
  background: var(--pacific-forest);
  color: var(--text-on-dark);
}
.section--forest h2, .section--forest h3 { color: var(--text-on-dark); }

.eyebrow {
  font-family: var(--font-body);
  font-size: var(--fs-eyebrow);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-brass);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  margin-bottom: var(--space-sm);
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--accent-brass);
  display: inline-block;
}

.section-head {
  max-width: 46rem;
  margin-bottom: var(--space-lg);
}
.section-head.center { margin-inline: auto; text-align: center; }

/* Skip link */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--deep-forest);
  color: var(--white);
  padding: 0.85rem 1.25rem;
  z-index: 1000;
  border-radius: 0 0 var(--radius-sm) 0;
  font-weight: 600;
}
.skip-link:focus {
  left: 0;
}

/* Focus visibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 3px;
  border-radius: 2px;
}

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--fs-small);
  padding: 0.95rem 1.65rem;
  min-height: 44px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  flex: none;
  transition: transform var(--dur-fast) var(--ease-standard), background var(--dur-fast) var(--ease-standard), border-color var(--dur-fast) var(--ease-standard);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--pacific-forest);
  color: var(--porcelain);
  border-color: var(--pacific-forest);
}
.btn--primary:hover { background: var(--deep-forest); }

.btn--secondary {
  background: transparent;
  color: var(--pacific-forest);
  border-color: var(--pacific-forest);
}
.btn--secondary:hover { background: rgba(23, 61, 53, 0.06); }

.btn--on-dark {
  background: var(--porcelain);
  color: var(--deep-forest);
  border-color: var(--porcelain);
}
.btn--on-dark:hover { background: var(--white); }

.btn--ghost-on-dark {
  background: transparent;
  color: var(--porcelain);
  border-color: rgba(247, 243, 234, 0.5);
}
.btn--ghost-on-dark:hover { border-color: var(--porcelain); }

.btn[disabled], .btn[aria-disabled="true"] {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none !important;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

/* Reveal-on-scroll */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity var(--dur-base) var(--ease-standard), transform var(--dur-base) var(--ease-standard);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
}

/* Pacific line motif — a calm horizon line */
.pacific-line {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--soft-sage) 20%, var(--muted-brass) 50%, var(--soft-sage) 80%, transparent);
  border: none;
  margin: 0;
}

.frame {
  position: relative;
  border-radius: var(--radius-lg) var(--radius-md) var(--radius-lg) var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}
.frame img { width: 100%; height: 100%; object-fit: cover; }
.frame::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.35);
  pointer-events: none;
}
.frame-offset {
  position: absolute;
  inset: 14px -14px -14px 14px;
  background: var(--soft-sage);
  border-radius: var(--radius-lg) var(--radius-md) var(--radius-lg) var(--radius-md);
  z-index: -1;
}
.frame-wrap { position: relative; }

.location-signature {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-size: var(--fs-small);
  color: var(--eucalyptus);
  font-weight: 600;
  letter-spacing: 0.02em;
}
