/* ============================================================
   EMERALD MOUNTAIN RESORT — Shared design system
   ============================================================ */

@font-face {
  font-family: "Factor A";
  src: url("assets/fonts/Factor-A-Variable.ttf") format("truetype-variations");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Righthand";
  src: url("assets/fonts/Righthand-Signature.otf") format("opentype");
  font-display: swap;
}

:root {
  /* Brand colors lifted from the EMR logo + render palette */
  --emerald: #2d5f3f;          /* primary brand green */
  --emerald-deep: #1f4730;     /* hover / pressed */
  --emerald-soft: #5a7e63;     /* tint */
  --ink: #2c2c2c;              /* primary text */
  --ink-soft: #555149;         /* secondary text */
  --stone: #8a8275;            /* meta / muted */
  --paper: #f6f3ed;            /* cream page bg */
  --paper-warm: #efeae0;       /* section bg variation */
  --paper-deep: #e6e0d2;       /* card bg variation */
  --line: #d8d2c4;             /* hairline */
  --char: #1a1a1a;             /* near-black for hero */

  /* Type */
  --serif: "Cormorant Garamond", "EB Garamond", Georgia, serif;
  --sans: "Factor A", "Helvetica Neue", Arial, sans-serif;
  --hand: "Righthand", "Brush Script MT", cursive;

  /* Motion */
  --ease: cubic-bezier(.2,.7,.2,1);

  /* Layout */
  --maxw: 1440px;
  --gutter: clamp(24px, 5vw, 80px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { background: var(--paper); color: var(--ink); }
body {
  font-family: var(--sans);
  font-weight: 380;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; border: 0; background: transparent; cursor: pointer; color: inherit; }

/* Typography scale ---------------------------------------- */
.eyebrow {
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: .22em;
  font-size: 11px;
  font-weight: 500;
  color: var(--emerald);
}
.eyebrow--ink { color: var(--ink-soft); }
.eyebrow--paper { color: rgba(246,243,237,.7); }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -.01em;
  color: var(--ink);
}
.display {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(42px, 6.4vw, 96px);
  line-height: 1.02;
  letter-spacing: -.02em;
}
.h1 { font-size: clamp(38px, 4.6vw, 64px); line-height: 1.06; letter-spacing: -.015em; }
.h2 { font-size: clamp(30px, 3.2vw, 46px); line-height: 1.1; }
.h3 { font-size: clamp(22px, 2vw, 28px); line-height: 1.2; }
.lead { font-size: clamp(17px, 1.3vw, 19px); line-height: 1.6; max-width: 62ch; color: var(--ink-soft); }
.body { font-size: 16px; line-height: 1.7; color: var(--ink-soft); max-width: 64ch; }
.body p + p { margin-top: 1em; }
.signature { font-family: var(--hand); color: var(--emerald); font-size: clamp(28px, 2.4vw, 38px); line-height: 1; }

/* Layout primitives --------------------------------------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(80px, 9vw, 140px) 0; }
.section--tight { padding: clamp(60px, 6vw, 96px) 0; }
.section--paper-warm { background: var(--paper-warm); }
.section--paper-deep { background: var(--paper-deep); }
.section--ink {
  background: var(--char);
  color: var(--paper);
}
.section--ink h1, .section--ink h2, .section--ink h3 { color: var(--paper); }
.section--ink .body, .section--ink .lead { color: rgba(246,243,237,.78); }

.divider { height: 1px; background: var(--line); width: 100%; }

/* Buttons -------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 16px 28px;
  border: 1px solid currentColor;
  font-family: var(--sans);
  font-size: 12px; font-weight: 500;
  text-transform: uppercase; letter-spacing: .2em;
  transition: all .35s var(--ease);
  white-space: nowrap;
}
.btn:hover { background: currentColor; }
.btn:hover .btn__label, .btn:hover .btn__arrow { color: var(--paper); }
.btn--solid { background: var(--emerald); color: var(--paper); border-color: var(--emerald); }
.btn--solid:hover { background: var(--emerald-deep); border-color: var(--emerald-deep); color: var(--paper); }
.btn--solid:hover .btn__label, .btn--solid:hover .btn__arrow { color: var(--paper); }
.btn--ghost { color: var(--paper); border-color: rgba(246,243,237,.6); }
.btn--ghost:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.btn--ghost:hover .btn__label, .btn--ghost:hover .btn__arrow { color: var(--ink); }
.btn__arrow { display: inline-block; transition: transform .35s var(--ease); }
.btn:hover .btn__arrow { transform: translateX(4px); }

.link-arrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; font-weight: 500;
  text-transform: uppercase; letter-spacing: .2em;
  color: var(--emerald);
  border-bottom: 1px solid transparent;
  padding-bottom: 4px;
  transition: all .3s var(--ease);
}
.link-arrow:hover { border-bottom-color: var(--emerald); }
.link-arrow svg { transition: transform .3s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }

/* Header --------------------------------------------------- */
.header {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px var(--gutter);
  transition: background .4s var(--ease), box-shadow .4s var(--ease), padding .4s var(--ease);
}
.header--transparent { background: transparent; }
.header--transparent .header__nav a, .header--transparent .header__phone { color: var(--paper); }
.header--solid {
  background: rgba(246,243,237,.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.header.scrolled {
  background: rgba(246,243,237,.94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  padding-top: 14px; padding-bottom: 14px;
}
.header.scrolled .header__nav a, .header.scrolled .header__phone { color: var(--ink); }
.header.scrolled .header__logo-img--white { opacity: 0; }
.header.scrolled .header__logo-img--color { opacity: 1; }

.header__brand { display: flex; align-items: center; gap: 12px; }
.header__logo { position: relative; display: block; height: 56px; width: auto; aspect-ratio: 1414/1000; }
.header.scrolled .header__logo { height: 48px; }
.header__logo { transition: height .3s var(--ease); }
.header__logo-img { position: absolute; inset: 0; height: 100%; width: 100%; object-fit: contain; object-position: left center; transition: opacity .3s var(--ease); }
.header__logo-img--color { opacity: 0; }
/* Solid header (non-transparent pages) shows color logo by default */
.header--solid .header__logo-img--white { opacity: 0; }
.header--solid .header__logo-img--color { opacity: 1; }
.header__logo-text-DEPRECATED {
  font-family: var(--serif);
  font-size: 20px;
  letter-spacing: .04em;
  line-height: 1;
  display: flex; flex-direction: column;
}
.header__logo-text small {
  font-family: var(--sans);
  font-size: 9px;
  letter-spacing: .25em;
  text-transform: uppercase;
  margin-top: 4px;
  opacity: .8;
}

.header__nav { display: flex; gap: 36px; align-items: center; }
.header__nav a {
  font-size: 12px; font-weight: 500;
  text-transform: uppercase; letter-spacing: .2em;
  position: relative; padding: 6px 0;
  transition: color .25s var(--ease);
}
.header__nav a.is-active::after,
.header__nav a:hover::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -2px;
  height: 1px; background: currentColor;
}
.header__nav-item { position: relative; }
.header__dropdown {
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%) translateY(-8px);
  background: var(--paper); color: var(--ink);
  min-width: 280px; padding: 18px 0;
  border: 1px solid var(--line);
  box-shadow: 0 24px 48px -16px rgba(0,0,0,.18);
  opacity: 0; visibility: hidden;
  transition: all .25s var(--ease);
  margin-top: 14px;
}
.header__nav-item:hover .header__dropdown { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.header__dropdown a {
  display: block; padding: 10px 26px;
  font-size: 12px; letter-spacing: .15em; text-transform: uppercase;
  color: var(--ink) !important;
}
.header__dropdown a:hover { background: var(--paper-warm); color: var(--emerald) !important; }
.header__dropdown a::after { display: none; }
.header__dropdown-section {
  padding: 6px 26px 4px;
  font-family: var(--serif); font-style: italic;
  font-size: 11px; color: var(--stone);
  letter-spacing: .05em;
  text-transform: none;
}

.header__phone {
  font-size: 12px; font-weight: 500;
  letter-spacing: .15em;
  display: flex; align-items: center; gap: 8px;
}
.header__phone svg { width: 14px; height: 14px; }

/* Mobile / hamburger (visual only - desktop-first) */
@media (max-width: 980px) {
  .header__nav, .header__phone { display: none; }
}

/* Footer --------------------------------------------------- */
.footer { background: var(--char); color: var(--paper); padding: 96px 0 32px; margin-top: 0; }
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 64px;
  padding-bottom: 64px;
  border-bottom: 1px solid rgba(246,243,237,.12);
}
.footer__brand { max-width: 320px; }
.footer__logo {
  font-family: var(--serif);
  font-size: 28px; letter-spacing: .04em;
  margin-bottom: 8px;
}
.footer__logo small { display: block; font-family: var(--sans); font-size: 10px; letter-spacing: .25em; text-transform: uppercase; color: var(--emerald-soft); margin-top: 6px; }
.footer__tagline { font-family: var(--serif); font-style: italic; color: rgba(246,243,237,.6); margin-top: 24px; font-size: 16px; line-height: 1.5; }
.footer h4 {
  font-family: var(--sans);
  font-size: 11px; font-weight: 500;
  text-transform: uppercase; letter-spacing: .22em;
  color: var(--emerald-soft);
  margin-bottom: 22px;
}
.footer ul { list-style: none; }
.footer li { margin-bottom: 12px; font-size: 14px; color: rgba(246,243,237,.78); }
.footer li a:hover { color: var(--paper); }
.footer__contact { font-size: 14px; color: rgba(246,243,237,.78); }
.footer__contact p { margin-bottom: 10px; }
.footer__contact a:hover { color: var(--paper); }
.footer__bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 32px;
  font-size: 11px; letter-spacing: .15em; text-transform: uppercase;
  color: rgba(246,243,237,.42);
}
.footer__socials { display: flex; gap: 18px; }
.footer__socials a { color: rgba(246,243,237,.6); }
.footer__socials a:hover { color: var(--paper); }

@media (max-width: 900px) {
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 40px; }
}

/* Image placeholder (striped) ------------------------------ */
.placeholder {
  position: relative; overflow: hidden;
  background:
    repeating-linear-gradient(135deg,
      rgba(45,95,63,.06) 0 14px,
      rgba(45,95,63,.10) 14px 28px),
    var(--paper-deep);
  display: flex; align-items: center; justify-content: center;
  color: var(--emerald-deep);
  font-family: "Courier New", monospace;
  font-size: 11px; letter-spacing: .2em;
  text-transform: uppercase;
}
.placeholder::after {
  content: ''; position: absolute; inset: 16px;
  border: 1px dashed rgba(45,95,63,.25);
  pointer-events: none;
}
.placeholder span { position: relative; z-index: 1; padding: 12px 18px; background: rgba(246,243,237,.8); }
.placeholder--ink {
  background:
    repeating-linear-gradient(135deg,
      rgba(255,255,255,.04) 0 14px,
      rgba(255,255,255,.08) 14px 28px),
    #2a2a28;
  color: rgba(246,243,237,.8);
}
.placeholder--ink span { background: rgba(0,0,0,.45); color: rgba(246,243,237,.9); }

/* Hero patterns ------------------------------------------ */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end;
  color: var(--paper);
  overflow: hidden;
}
.hero__media { position: absolute; inset: 0; z-index: 0; }
.hero__media img, .hero__media video { width: 100%; height: 100%; object-fit: cover; }
.hero__media::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.35) 0%, rgba(0,0,0,0) 35%, rgba(0,0,0,.65) 100%);
}
.hero__content {
  position: relative; z-index: 2;
  padding: 0 var(--gutter) clamp(60px, 8vw, 120px);
  max-width: var(--maxw); margin: 0 auto; width: 100%;
}
.hero__eyebrow { color: rgba(246,243,237,.85); }
.hero__title { font-family: var(--serif); font-weight: 300; line-height: 1; letter-spacing: -.02em; color: var(--paper); margin: 24px 0 28px; }
.hero__sub { max-width: 56ch; color: rgba(246,243,237,.85); margin-bottom: 36px; }
.hero__actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero__scroll {
  position: absolute; left: 50%; bottom: 32px; transform: translateX(-50%);
  z-index: 3;
  font-size: 10px; letter-spacing: .25em; text-transform: uppercase;
  color: rgba(246,243,237,.7);
  display: flex; flex-direction: column; align-items: center; gap: 12px;
}
.hero__scroll::after { content: ''; width: 1px; height: 36px; background: rgba(246,243,237,.5); animation: scroll-line 2s var(--ease) infinite; }
@keyframes scroll-line {
  0%, 100% { transform: scaleY(.4); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
}

.hero--page {
  min-height: 70vh; min-height: 70svh;
}
.hero--page .hero__content {
  padding-top: clamp(120px, 14vw, 180px);
}

/* Page intro band (used as breadcrumbs / page label) ------- */
.crumbs {
  display: flex; gap: 12px; align-items: center;
  font-size: 11px; letter-spacing: .2em; text-transform: uppercase;
  color: rgba(246,243,237,.72);
}
.crumbs span { opacity: .6; }
.crumbs a:hover { color: var(--paper); }

/* Card system --------------------------------------------- */
.card {
  background: var(--paper);
  display: flex; flex-direction: column;
  text-decoration: none;
  transition: transform .5s var(--ease);
}
.card:hover { transform: translateY(-4px); }
.card:hover .card__media img { transform: scale(1.04); }
.card:hover .card__cta svg { transform: translateX(6px); }
.card__media { position: relative; aspect-ratio: 4/3; overflow: hidden; }
.card__media img, .card__media .placeholder {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .8s var(--ease);
}
.card__index {
  position: absolute; top: 16px; left: 16px;
  background: var(--paper); color: var(--ink);
  font-family: var(--sans); font-size: 10px; letter-spacing: .25em;
  padding: 8px 12px;
  text-transform: uppercase;
}
.card__body { padding: 24px 0 0; }
.card__meta {
  font-size: 11px; letter-spacing: .25em; text-transform: uppercase;
  color: var(--stone);
  margin-bottom: 10px;
  display: flex; gap: 12px; align-items: center;
}
.card__meta span:not(:last-child)::after { content: '·'; margin-left: 12px; color: var(--stone); opacity: .5; }
.card__title {
  font-family: var(--serif); font-size: 24px; font-weight: 400;
  line-height: 1.2;
  margin-bottom: 8px;
}
.card__teaser { font-size: 14px; color: var(--ink-soft); line-height: 1.5; max-width: 38ch; }
.card__cta { margin-top: 18px; display: inline-flex; align-items: center; gap: 10px; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--emerald); }
.card__cta svg { transition: transform .3s var(--ease); }

/* Spec table ---------------------------------------------- */
.specs {
  display: grid; grid-template-columns: 1fr 1fr;
  column-gap: clamp(32px, 5vw, 64px);
  border-top: 1px solid var(--line);
}
.specs > div {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 24px;
}
.specs dt { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--stone); }
.specs dd { font-family: var(--serif); font-size: 18px; color: var(--ink); }
@media (max-width: 720px) { .specs { grid-template-columns: 1fr; } }

/* Bullet list --------------------------------------------- */
.bullets { list-style: none; padding: 0; }
.bullets li {
  position: relative;
  padding: 14px 0 14px 32px;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
  color: var(--ink);
}
.bullets li::before {
  content: ''; position: absolute; left: 0; top: 22px;
  width: 14px; height: 1px; background: var(--emerald);
}

/* Reveal on scroll (used selectively) --------------------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }
.reveal[data-delay="4"] { transition-delay: .32s; }
