:root {
  --forest: #173a2c;
  --forest-soft: #284b39;
  --moss: #738460;
  --sage: #aeb59f;
  --ink: #24372d;
  --cream: #f7f3ea;
  --paper: #fbf9f4;
  --line: #ddd8cd;
  --gold: #d49d32;
  --body: #525852;
  --serif: "Iowan Old Style", Baskerville, Georgia, "Times New Roman", serif;
  --sans: "Avenir Next", Avenir, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--body);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

button, input, textarea { font: inherit; }
a { color: inherit; }
svg { fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 8px 14px;
  background: var(--forest);
  color: #fff;
  transform: translateY(-150%);
}
.skip-link:focus { transform: translateY(0); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.site-header {
  position: absolute;
  z-index: 10;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px clamp(28px, 4vw, 64px);
}

.brand {
  width: max-content;
  display: grid;
  justify-items: center;
  color: var(--ink);
  text-decoration: none;
  line-height: 1;
}
.brand-mark { width: 38px; height: 34px; color: var(--moss); margin-bottom: 4px; }
.brand-name { font: 400 clamp(22px, 2.2vw, 34px)/1 var(--serif); letter-spacing: .18em; text-transform: uppercase; }
.brand-tagline { margin-top: 8px; color: #969c8c; font-size: 8px; letter-spacing: .28em; text-transform: uppercase; }

.site-nav { display: flex; align-items: center; gap: clamp(22px, 3vw, 46px); }
.site-nav > a:not(.button) {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  border: 1px solid rgba(23,58,44,.16);
  color: var(--ink);
  background: rgba(251,249,244,.9);
  box-shadow: 0 3px 14px rgba(23,58,44,.07);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  text-decoration: none;
  text-transform: uppercase;
  backdrop-filter: blur(6px);
  transition: background .2s ease, color .2s ease;
}
.site-nav > a:not(.button):hover { color: #fff; background: var(--forest); }
.menu-toggle { display: none; }

.button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 22px;
  padding: 0 38px;
  border: 1px solid transparent;
  border-radius: 0;
  cursor: pointer;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
  text-decoration: none;
  text-transform: uppercase;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}
.button:hover { transform: translateY(-2px); }
.button-solid { background: var(--forest-soft); color: #fff; }
.button-solid:hover { background: var(--forest); }
.button-small { min-height: 36px; padding: 0 26px; font-size: 10px; }
.button-outline { border-color: var(--gold); background: transparent; color: var(--gold); }
.button-outline:hover { background: var(--gold); color: var(--forest); }
.button:disabled { cursor: not-allowed; opacity: .52; transform: none; }

.hero {
  position: relative;
  min-height: clamp(610px, 61.4vw, 820px);
  overflow: hidden;
  background: var(--cream);
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(70, 65, 45, .05) .7px, transparent .8px);
  background-size: 5px 5px;
  mix-blend-mode: multiply;
}
.hero-image {
  position: absolute;
  top: 0;
  right: -2%;
  width: 87%;
  height: 100%;
  background: url("assets/mercer-isle-hero.png") center / cover no-repeat;
  filter: saturate(.9) contrast(.96) brightness(1.03);
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 16%, #000 92%, transparent 100%), linear-gradient(to bottom, #000 0, #000 88%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to right, transparent 0, #000 16%, #000 92%, transparent 100%), linear-gradient(to bottom, #000 0, #000 88%, transparent 100%);
  mask-composite: intersect;
}
.hero-content {
  position: relative;
  z-index: 2;
  width: min(360px, 38vw);
  padding-top: clamp(215px, 21.5vw, 290px);
  margin-left: clamp(40px, 6vw, 84px);
}
h1, h2 { margin: 0; color: var(--ink); font-family: var(--serif); font-weight: 400; }
h1 { font-size: clamp(52px, 5vw, 76px); line-height: .98; letter-spacing: -.035em; }
h2 { font-size: clamp(32px, 3vw, 44px); line-height: 1.12; letter-spacing: -.025em; }
.hero-content p { max-width: 235px; margin: 22px 0 0; font-size: 14px; }
.gold-rule { display: block; width: 52px; height: 1px; margin-top: 26px; background: var(--gold); }

.section-pad { padding-right: clamp(40px, 6vw, 96px); padding-left: clamp(40px, 6vw, 96px); }
.community {
  display: grid;
  grid-template-columns: minmax(390px, 1.12fr) 1.3fr;
  gap: clamp(35px, 5vw, 80px);
  align-items: center;
  height: 272px;
  min-height: 0;
  padding-top: 42px;
  padding-bottom: 42px;
  border-top: 1px solid #fff;
  background: rgba(251,249,244,.96);
}
.eyebrow { margin: 0 0 10px; color: var(--moss); font-size: 10px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
.community h2 { font-size: clamp(28px, 2.7vw, 38px); }
.section-copy .gold-rule, .contact-details .gold-rule { margin: 20px 0; }
.section-copy > p:not(.eyebrow) { max-width: 520px; margin: 0 0 10px; font-size: 13px; line-height: 1.55; }

.features { display: grid; grid-template-columns: repeat(4, 1fr); }
.feature { position: relative; min-width: 0; padding: 0 10px; text-align: center; }
.feature + .feature::before { content: ""; position: absolute; top: 35px; bottom: 5px; left: 0; width: 1px; background: #e4e1d7; }
.feature-icon {
  width: 68px;
  height: 68px;
  display: grid;
  place-items: center;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: #efeee7;
  color: var(--forest-soft);
}
.feature-icon svg { width: 41px; height: 41px; }
.feature h3 { margin: 0; color: var(--ink); font-size: 11px; line-height: 1.4; letter-spacing: .03em; text-transform: uppercase; }

.portal {
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 72% 10%, rgba(126, 151, 108, .16), transparent 30%),
    linear-gradient(110deg, #193b2d, #294c38 58%, #1a392d);
}
.portal::after { content: ""; position: absolute; inset: 0; opacity: .16; background-image: radial-gradient(#fff .5px, transparent .7px); background-size: 5px 5px; }
.portal-inner { position: relative; z-index: 1; min-height: 176px; display: grid; grid-template-columns: 40px minmax(330px, 380px) 232px; gap: 28px; align-items: center; }
.portal-lock { color: var(--gold); }
.portal-lock svg { width: 43px; height: 50px; }
.portal-copy { padding-right: 48px; border-right: 1px solid rgba(255,255,255,.25); }
.portal h2 { margin-bottom: 6px; color: #fff; font-size: clamp(26px, 2.4vw, 36px); }
.portal p { max-width: 580px; margin: 0; color: rgba(255,255,255,.82); font-size: 14px; }
.portal .button { width: 232px; }

.contact {
  position: relative;
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 72px;
  align-items: center;
  min-height: 440px;
  padding-top: 48px;
  padding-bottom: 48px;
  overflow: hidden;
  background: var(--cream);
}
.contact-details { position: relative; z-index: 1; padding-right: 40px; padding-left: 22px; border-right: 1px solid var(--line); }
.contact-details h2 { font-size: clamp(29px, 2.7vw, 38px); }
.contact-details > p:not(.eyebrow) { margin: 0 0 25px; font-size: 14px; }
.contact address { display: grid; gap: 18px; font-style: normal; }
.contact address a { display: flex; gap: 18px; align-items: center; color: var(--ink); font-size: 14px; font-weight: 600; }
.contact address svg { width: 24px; height: 24px; flex: 0 0 auto; }
.contact-form { position: relative; z-index: 1; display: grid; gap: 10px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.contact-form label { display: block; }
.contact-form label > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.contact-form input, .contact-form textarea {
  width: 100%;
  border: 1px solid #dedbd3;
  outline: 0;
  background: rgba(255,255,255,.62);
  color: var(--ink);
  font-size: 14px;
  transition: border-color .2s, box-shadow .2s;
}
.contact-form input { height: 38px; padding: 0 15px; }
.contact-form textarea { min-height: 105px; padding: 12px 15px; resize: vertical; }
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--moss); box-shadow: 0 0 0 3px rgba(115,132,96,.12); }
.contact-form [aria-invalid="true"] { border-color: #a9473e; }
.contact-form .button { width: 100%; min-height: 42px; }
.form-honeypot { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.turnstile-wrap { min-height: 65px; display: flex; align-items: center; }
.form-status { min-height: 22px; margin: 0; color: var(--forest-soft); font-size: 13px; }
.form-status:empty { display: none; }
.form-status.is-error { color: #8a3029; }
.form-status.is-success { color: var(--forest); font-weight: 600; }

.site-footer {
  min-height: 56px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 50px;
  align-items: center;
  padding: 10px clamp(40px, 10vw, 160px);
  background: var(--forest);
  color: rgba(255,255,255,.65);
  font-size: 12px;
}
.site-footer p { margin: 0; }
.site-footer p:last-child { text-align: right; }
.footer-mark { width: 34px; color: var(--gold); }

@media (max-width: 900px) {
  .site-header { padding: 22px 26px; }
  .brand-mark { width: 30px; height: 27px; }
  .brand-name { font-size: 22px; }
  .brand-tagline { font-size: 6px; }
  .hero { min-height: 740px; }
  .hero-image { top: 85px; right: -18%; width: 105%; height: 72%; background-position: 53% center; }
  .hero-content { width: 340px; padding-top: 440px; margin-left: 38px; }
  .hero-content::before { content: ""; position: absolute; z-index: -1; inset: 400px -30px -40px -38px; background: linear-gradient(90deg, var(--cream) 70%, transparent); }
  h1 { font-size: 54px; }
  .community { grid-template-columns: 1fr; gap: 45px; }
  .community { height: auto; min-height: 0; }
  .features { max-width: 680px; width: 100%; margin: 0 auto; }
  .feature { padding: 0 10px; }
  .portal-inner { grid-template-columns: 60px 1fr; padding-top: 38px; padding-bottom: 38px; }
  .portal-copy { padding-right: 0; border-right: 0; }
  .portal .button { grid-column: 2; justify-self: start; }
  .contact { grid-template-columns: 1fr; gap: 42px; }
  .contact { height: auto; }
  .contact-details { padding: 0 0 36px; border-right: 0; border-bottom: 1px solid var(--line); }
  .site-footer { grid-template-columns: 1fr; gap: 8px; padding: 24px; text-align: center; }
  .site-footer .footer-mark { grid-row: 1; margin: 0 auto 4px; }
  .site-footer p:last-child { text-align: center; }
}

@media (max-width: 650px) {
  .menu-toggle { position: relative; z-index: 2; width: 42px; height: 42px; display: grid; align-content: center; gap: 5px; padding: 10px; border: 1px solid rgba(23,58,44,.12); background: var(--forest); color: #fff; box-shadow: 0 4px 18px rgba(23,58,44,.12); }
  .menu-toggle span:not(.sr-only) { display: block; height: 1px; background: currentColor; transition: transform .2s, opacity .2s; }
  .menu-toggle[aria-expanded="true"] span:nth-child(2) { transform: translateY(6px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:nth-child(3) { opacity: 0; }
  .menu-toggle[aria-expanded="true"] span:nth-child(4) { transform: translateY(-6px) rotate(-45deg); }
  .site-nav { position: absolute; top: 0; right: 0; width: min(340px, 100%); min-height: 100vh; display: flex; flex-direction: column; align-items: stretch; padding: 110px 30px 30px; background: var(--cream); box-shadow: -20px 0 60px rgba(25,59,45,.18); transform: translateX(110%); transition: transform .25s ease; }
  .site-nav.is-open { transform: translateX(0); }
  .site-nav > a:not(.button) { min-height: 48px; padding: 0 16px; font-size: 13px; }
  .hero { min-height: 700px; }
  .hero-image { top: 100px; right: -30%; width: 135%; height: 55%; background-position: 48% center; }
  .hero-content { width: auto; padding: 390px 27px 60px; margin: 0; }
  .hero-content::before { inset: 350px 0 0; background: linear-gradient(0deg, var(--cream) 80%, transparent); }
  h1 { font-size: clamp(44px, 14vw, 58px); }
  .section-pad { padding-right: 26px; padding-left: 26px; }
  .community { padding-top: 55px; padding-bottom: 55px; }
  .features { grid-template-columns: 1fr 1fr; gap: 38px 0; }
  .feature:nth-child(3)::before { display: none; }
  .feature-icon { width: 70px; height: 70px; }
  .portal-inner { grid-template-columns: 45px 1fr; gap: 20px; }
  .portal-lock { padding-right: 16px; }
  .portal-lock svg { width: 34px; }
  .portal .button { grid-column: 1 / -1; width: 100%; }
  .form-row { grid-template-columns: 1fr; }
  .contact { padding-top: 54px; padding-bottom: 45px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
