/* ─── Reset & Globals ─────────────────────────────────────────────────────── */

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

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

body {
  font-family: var(--poppins);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.65;
  color: var(--black);
  background: var(--white-warm);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
  min-height: 100vh;
  padding-top: var(--header-height);
}

/* Layer 1 — fixed coastal photo behind everything */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  background-image: var(--bg-coastal-image);
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  pointer-events: none;
}

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

.img-pos-center { object-position: center center; }
.img-pos-top { object-position: center top; }
.img-pos-bottom { object-position: center bottom; }
.img-pos-left { object-position: left center; }
.img-pos-right { object-position: right center; }

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

/* ─── Typography ──────────────────────────────────────────────────────────── */

h1 {
  font-family: var(--fahkwang);
  font-weight: 300;
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1.1;
  letter-spacing: -0.01em;
}

h2 {
  font-family: var(--fahkwang);
  font-weight: 300;
  font-size: clamp(28px, 3.5vw, 40px);
  line-height: 1.15;
  letter-spacing: -0.01em;
}

h3 {
  font-family: var(--poppins);
  font-weight: 500;
  font-size: 18px;
  line-height: 1.4;
  color: var(--forest-deep);
}

h1 em, h2 em {
  font-style: italic;
}

/* ─── Utility Classes ─────────────────────────────────────────────────────── */

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

.eyebrow {
  font-family: var(--poppins);
  font-weight: 500;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--stone);
  display: block;
  margin-bottom: 16px;
}

.eyebrow--light,
.section--forest-deep .eyebrow,
.section--forest .eyebrow,
.section--black .eyebrow {
  color: var(--sage);
}

/* Numbered items — DM Mono, Ocean Slate */
.num {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--ocean-slate);
  display: block;
}

.section {
  position: relative;
  z-index: 1;
  padding: clamp(80px, 10vw, 140px) 0;
}

.section--forest-deep { background: var(--forest-deep); }
.section--forest      { background: var(--forest); }
.section--linen       { background: var(--linen); }
.section--white-warm  { background: var(--white-warm); }
.section--white       { background: var(--white); }

/* ─── Buttons ─────────────────────────────────────────────────────────────── */

.btn {
  display: inline-block;
  padding: 14px 28px;
  font-family: var(--poppins);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background 0.2s var(--ease);
  text-align: center;
}

.btn--primary {
  background: var(--ember);
  color: var(--white);
}

.btn--primary:hover {
  background: #d04a09;
}

.btn--secondary {
  background: var(--forest);
  color: var(--white);
}

.btn--secondary:hover {
  background: var(--forest-deep);
}

.btn--ghost {
  background: transparent;
  color: currentColor;
  border: 1px solid currentColor;
}

.btn--ghost:hover {
  opacity: 0.7;
}

.btn--ghost-dark {
  background: transparent;
  color: var(--black);
  border: 1px solid var(--black);
}

.btn--ghost-dark:hover {
  opacity: 0.7;
}

/* Accent bar — hero bottom edge */
.accent-bar {
  height: 4px;
  background: linear-gradient(90deg, var(--forest-deep) 0%, var(--forest-deep) 40%, var(--ember) 100%);
}

.hero {
  position: relative;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--forest-deep) 0%, var(--forest-deep) 40%, var(--ember) 100%);
}

/* Ocean Slate border left — tier cards */
.card--ocean-border {
  border-left: 3px solid var(--ocean-slate);
  padding-left: 24px;
}

.cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}

/* ─── Section gaps — expose body photo between sections ──────────────────── */

.section {
  margin-bottom: 80px;
}

.section:last-child {
  margin-bottom: 0;
}

@media (max-width: 768px) {
  .section {
    margin-bottom: 48px;
  }
}

/* ─── Scroll fade-in ──────────────────────────────────────────────────────── */

.fade-in {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── Two-column layouts ──────────────────────────────────────────────────── */

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}

.two-col--60-40 {
  grid-template-columns: 3fr 2fr;
}

.two-col--40-60 {
  grid-template-columns: 2fr 3fr;
}

/* ─── Status indicators ───────────────────────────────────────────────────── */

.status-dot {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--status-ok);
}

.status-dot::before {
  content: '';
  display: block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--status-ok);
  animation: pulse 2.4s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.4; }
}

/* ─── Image placeholders ──────────────────────────────────────────────────── */

.img-placeholder {
  background: var(--mist);
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.img-placeholder::after {
  content: attr(data-label);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--stone);
}

/* ─── Divider ─────────────────────────────────────────────────────────────── */

.divider {
  border: none;
  border-top: 1px solid rgba(110, 119, 119, 0.2);
  margin: 40px 0;
}

/* ─── Responsive ──────────────────────────────────────────────────────────── */

@media (max-width: 1024px) {
  .two-col,
  .two-col--60-40,
  .two-col--40-60 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .cta-group {
    flex-direction: column;
    align-items: flex-start;
  }

  .btn {
    width: 100%;
    text-align: center;
  }
}
