:root {
  --green-950: #172416;
  --green-900: #20351f;
  --green-800: #2f4a2a;
  --green-700: #415b36;
  --green-500: #78936a;
  --cream-100: #f8f4e9;
  --cream-200: #efe6d0;
  --cream-300: #e5d7bc;
  --linen: #fbf8ef;
  --brass: #b5955e;
  --brass-600: #9a7842;
  --terracotta: #b95f47;
  --ink: #1e261d;
  --muted: #5c6559;
  --line: rgba(32, 53, 31, 0.16);
  --soft-line: rgba(181, 149, 94, 0.2);
  --shadow: 0 22px 60px rgba(23, 36, 22, 0.14);
  --shadow-soft: 0 14px 34px rgba(23, 36, 22, 0.09);
  --max: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 120px;
  overflow-x: clip;
}

body {
  margin: 0;
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(181, 149, 94, 0.12), transparent 34rem),
    linear-gradient(180deg, var(--linen), #f6efe0);
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 17px;
  line-height: 1.62;
}

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

a {
  color: inherit;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--terracotta);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 100;
  padding: 10px 14px;
  color: var(--cream-100);
  background: var(--green-950);
  text-decoration: none;
  transform: translateY(-140%);
}

.skip-link:focus {
  transform: translateY(0);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(251, 248, 239, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.42);
}

.top-strip {
  background: linear-gradient(90deg, var(--green-950), var(--green-800));
  color: var(--cream-100);
  font-family: "Cabin Condensed", Arial, sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.top-strip .wrap,
.nav-wrap,
.section-inner,
.footer-inner {
  width: min(var(--max), calc(100% - 32px));
  max-width: calc(100vw - 32px);
  margin-inline: auto;
}

.top-strip .wrap {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 7px 0;
}

.nav-wrap {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  min-height: 88px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  text-decoration: none;
}

.brand img {
  width: 64px;
  height: 66px;
  object-fit: contain;
}

.brand span {
  display: block;
  font-family: "Cabin Condensed", Arial, sans-serif;
  font-size: 1.18rem;
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
}

.nav-toggle {
  display: none;
}

.nav-button {
  position: relative;
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: transparent;
  cursor: pointer;
}

.nav-button span:first-child,
.nav-button span:first-child::before,
.nav-button span:first-child::after {
  display: block;
  position: absolute;
  top: 50%;
  left: 50%;
  width: 19px;
  height: 2px;
  background: var(--green-800);
  content: "";
  transition: transform 160ms ease, opacity 160ms ease;
  transform: translate(-50%, -50%);
  transform-origin: center;
}

.nav-button span:first-child::before {
  transform: translate(-50%, calc(-50% - 7px));
}

.nav-button span:first-child::after {
  transform: translate(-50%, calc(-50% + 7px));
}

.nav-button[aria-expanded="true"] span:first-child {
  background: transparent;
}

.nav-button[aria-expanded="true"] span:first-child::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.nav-button[aria-expanded="true"] span:first-child::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.main-nav {
  display: flex;
  justify-content: center;
  gap: clamp(14px, 2vw, 26px);
  font-family: "Cabin Condensed", Arial, sans-serif;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.main-nav a {
  position: relative;
  text-decoration: none;
}

.main-nav a::after {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -7px;
  height: 2px;
  background: var(--brass);
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.main-nav a:hover::after,
.main-nav a:focus-visible::after,
.main-nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

.account-link,
.button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  font-family: "Cabin Condensed", Arial, sans-serif;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-decoration: none;
  text-transform: uppercase;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.account-link,
.button {
  color: var(--cream-100);
  background: var(--green-800);
}

.button:hover,
.account-link:hover {
  background: var(--green-950);
  transform: translateY(-1px);
}

.ghost-button {
  border: 1px solid color-mix(in srgb, currentColor 78%, transparent);
  color: var(--green-800);
  background: transparent;
}

.ghost-button:hover {
  color: var(--green-950);
  border-color: var(--brass-600);
  background: rgba(181, 149, 94, 0.08);
  transform: translateY(-1px);
}

.hero {
  min-height: 78svh;
  display: grid;
  align-items: end;
  color: var(--cream-100);
  background:
    linear-gradient(90deg, rgba(15, 28, 15, 0.88), rgba(15, 28, 15, 0.48) 54%, rgba(15, 28, 15, 0.14)),
    var(--hero-image, url("img/course-fairway.jpg")) center / cover;
}

.hero-content {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  padding: clamp(88px, 15vh, 168px) 0 clamp(58px, 10vh, 90px);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--cream-300);
  font-family: "Cabin Condensed", Arial, sans-serif;
  font-size: 0.96rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: "Cabin Condensed", Arial, sans-serif;
  line-height: 0.96;
  color: var(--green-950);
}

.hero h1 {
  max-width: 780px;
  color: var(--cream-100);
  font-size: clamp(4rem, 8.5vw, 8.4rem);
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.hero p {
  max-width: 680px;
  margin: 22px 0 0;
  font-size: clamp(1.15rem, 2vw, 1.45rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.hero .ghost-button {
  color: var(--cream-100);
}

.section {
  padding: clamp(54px, 8vw, 104px) 0;
}

.section.alt {
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--cream-100), #fff 32%), var(--cream-100));
}

.section.dark {
  color: var(--cream-100);
  background: var(--green-950);
}

.section.dark h2,
.section.dark h3 {
  color: var(--cream-100);
}

.section-kicker {
  margin: 0 0 10px;
  color: var(--terracotta);
  font-family: "Cabin Condensed", Arial, sans-serif;
  font-weight: 800;
  text-transform: uppercase;
}

.section-title {
  max-width: 820px;
  margin-bottom: 26px;
  font-size: clamp(2.6rem, 5vw, 5.1rem);
  text-transform: uppercase;
}

.lead {
  max-width: 780px;
  margin: 0 0 30px;
  color: var(--muted);
  font-size: 1.18rem;
}

.dark .lead {
  color: rgba(248, 244, 233, 0.78);
}

.facility-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.facility {
  min-height: 174px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(251, 248, 239, 0.78);
  box-shadow: var(--shadow-soft);
}

.facility h3 {
  font-size: 1.55rem;
  text-transform: uppercase;
}

.facility p {
  margin: 10px 0 0;
  color: var(--muted);
}

.fact-list,
.membership-list,
.contact-list {
  display: grid;
  gap: 14px;
  padding: 0;
  margin: 24px 0 0;
  list-style: none;
}

.fact-list li,
.membership-list li,
.contact-list li {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(251, 248, 239, 0.72);
  box-shadow: var(--shadow-soft);
}

.fact-list strong,
.membership-list strong,
.contact-list strong {
  display: block;
  margin-bottom: 4px;
  font-family: "Cabin Condensed", Arial, sans-serif;
  font-size: 1.24rem;
  line-height: 1;
  text-transform: uppercase;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(28px, 5vw, 76px);
  align-items: center;
}

.split.reverse {
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
}

.image-frame {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 10px;
  box-shadow: var(--shadow);
}

.image-frame img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.copy-block h2 {
  margin-bottom: 18px;
  font-size: clamp(2.2rem, 4vw, 4rem);
  text-transform: uppercase;
}

.copy-block p {
  margin: 0 0 15px;
}

.gallery-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 34px;
}

.gallery-strip img {
  width: 100%;
  aspect-ratio: 16 / 11;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: var(--shadow-soft);
}

.membership-grid,
.menu-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.membership-card,
.menu-item,
.event-panel,
.contact-panel {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(251, 248, 239, 0.78);
  box-shadow: var(--shadow-soft);
}

.membership-card,
.menu-item {
  padding: 24px;
}

.membership-card h3,
.menu-item h3 {
  margin-bottom: 8px;
  font-size: 1.72rem;
  text-transform: uppercase;
}

.price {
  color: var(--green-700);
  font-family: "Cabin Condensed", Arial, sans-serif;
  font-size: 1.65rem;
  font-weight: 800;
}

.small-note {
  color: var(--muted);
  font-size: 0.96rem;
}

.source-note {
  max-width: 760px;
  color: var(--muted);
  font-size: 0.94rem;
}

.menu-section {
  margin-top: 38px;
}

.menu-section h2 {
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  font-size: clamp(2rem, 4vw, 3.6rem);
  text-transform: uppercase;
}

.menu-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px 18px;
}

.menu-item p {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--muted);
}

.hours-list {
  display: grid;
  gap: 8px;
  max-width: 560px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.hours-list li {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(248, 244, 233, 0.18);
}

.event-panel,
.contact-panel {
  padding: clamp(24px, 4vw, 42px);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

label {
  display: grid;
  gap: 6px;
  color: var(--green-950);
  font-family: "Cabin Condensed", Arial, sans-serif;
  font-weight: 800;
  text-transform: uppercase;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 13px 14px;
  background: #fffdf6;
  color: var(--ink);
  font: inherit;
}

input:invalid,
select:invalid,
textarea:invalid {
  box-shadow: none;
}

textarea {
  min-height: 150px;
  resize: vertical;
}

.span-2 {
  grid-column: 1 / -1;
}

.site-footer {
  color: rgba(248, 244, 233, 0.84);
  background: var(--green-950);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 28px;
  padding: 44px 0;
}

.footer-inner h2,
.footer-inner h3 {
  margin-bottom: 12px;
  color: var(--cream-100);
  text-transform: uppercase;
}

.footer-inner p {
  margin: 0 0 8px;
}

.footer-bottom {
  padding: 14px 0;
  border-top: 1px solid rgba(248, 244, 233, 0.14);
  font-size: 0.9rem;
  text-align: center;
}

@media (max-width: 900px) {
  .nav-wrap {
    grid-template-columns: minmax(0, 1fr) 44px;
    grid-template-rows: 82px auto auto;
    min-height: 0;
    column-gap: 16px;
    align-content: start;
  }

  .brand {
    grid-column: 1;
    grid-row: 1;
  }

  .brand img {
    width: 56px;
    height: 58px;
  }

  .nav-button {
    grid-column: 2;
    grid-row: 1;
    display: grid;
    align-self: center;
    justify-self: end;
  }

  .main-nav,
  .account-link {
    display: none;
  }

  .main-nav.is-open,
  .account-link.is-open,
  .site-header.nav-open .main-nav,
  .site-header.nav-open .account-link {
    display: flex;
    grid-column: 1 / -1;
  }

  .main-nav.is-open,
  .site-header.nav-open .main-nav {
    grid-row: 2;
    flex-direction: column;
    align-items: flex-start;
    padding: 0 0 18px;
  }

  .account-link.is-open,
  .site-header.nav-open .account-link {
    grid-row: 3;
    width: max-content;
    margin-bottom: 18px;
  }

  .hero {
    min-height: 72svh;
  }

  .facility-grid,
  .membership-grid,
  .menu-grid {
    grid-template-columns: 1fr 1fr;
  }

  .split,
  .split.reverse,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .gallery-strip {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  body {
    font-size: 16px;
  }

  .top-strip .wrap {
    flex-direction: column;
    gap: 2px;
  }

  .hero h1 {
    font-size: clamp(2.8rem, 14vw, 4rem);
  }

  .facility-grid,
  .membership-grid,
  .menu-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .menu-item {
    grid-template-columns: 1fr;
  }

  .span-2 {
    grid-column: auto;
  }
}

/* Modern polish pass */
:root {
  --paper: #fffdf6;
  --radius: 10px;
  --line-strong: rgba(32, 53, 31, 0.24);
}

body {
  text-rendering: optimizeLegibility;
}

a {
  text-decoration-color: color-mix(in srgb, currentColor 34%, transparent);
  text-underline-offset: 0.18em;
}

.site-header {
  background: rgba(251, 248, 239, 0.9);
  box-shadow: 0 1px 0 rgba(255, 253, 246, 0.68) inset, 0 8px 28px rgba(23, 36, 22, 0.06);
}

.brand,
.main-nav a,
.nav-button,
.button,
.account-link,
.ghost-button {
  transition: background 180ms ease, border-color 180ms ease, box-shadow 180ms ease, color 180ms ease, transform 180ms ease;
}

.brand:hover,
.main-nav a:hover {
  color: var(--green-700);
}

.nav-button {
  border-radius: 8px;
  background: rgba(255, 253, 246, 0.72);
}

.nav-button:hover {
  border-color: var(--line-strong);
  background: var(--paper);
}

.account-link,
.button,
.ghost-button {
  border: 1px solid transparent;
  border-radius: 8px;
}

.button:hover,
.account-link:hover,
.ghost-button:hover {
  box-shadow: 0 10px 24px rgba(23, 36, 22, 0.14);
}

.button:active,
.account-link:active,
.ghost-button:active {
  transform: translateY(0);
}

.hero {
  position: relative;
  background:
    radial-gradient(circle at 78% 18%, rgba(181, 149, 94, 0.18), transparent 26rem),
    linear-gradient(90deg, rgba(15, 28, 15, 0.9), rgba(15, 28, 15, 0.56) 54%, rgba(15, 28, 15, 0.2)),
    var(--hero-image, url("img/course-fairway.jpg")) center / cover;
  isolation: isolate;
}

.hero::after {
  position: absolute;
  inset: auto 0 0;
  z-index: -1;
  height: 36%;
  background: linear-gradient(180deg, transparent, rgba(15, 28, 15, 0.34));
  content: "";
}

.hero h1,
.section-title,
.copy-block h2,
.facility h3 {
  text-wrap: balance;
}

.hero h1 {
  max-width: 820px;
  filter: drop-shadow(0 16px 38px rgba(15, 28, 15, 0.3));
}

.hero p {
  line-height: 1.5;
}

.hero .ghost-button {
  background: rgba(248, 244, 233, 0.08);
  backdrop-filter: blur(8px);
}

.hero .ghost-button:hover {
  color: var(--cream-100);
  background: rgba(248, 244, 233, 0.16);
}

.section {
  padding: clamp(64px, 8vw, 112px) 0;
}

.section.dark {
  background:
    radial-gradient(circle at 18% 0%, rgba(181, 149, 94, 0.14), transparent 24rem),
    var(--green-950);
}

.section-kicker {
  letter-spacing: 0.07em;
}

.dark .section-kicker {
  color: var(--brass);
}

.facility,
.fact-list li,
.membership-list li,
.contact-list li,
.membership-card,
.menu-item,
.event-panel,
.contact-panel {
  border-radius: var(--radius);
  background: rgba(255, 253, 246, 0.76);
}

.facility,
.membership-card,
.menu-item {
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.facility:hover,
.membership-card:hover,
.menu-item:hover {
  border-color: rgba(181, 149, 94, 0.48);
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.image-frame {
  border-radius: var(--radius);
  background: var(--green-950);
}

.image-frame img {
  transition: transform 420ms ease;
}

.image-frame:hover img {
  transform: scale(1.025);
}

.copy-block p {
  color: color-mix(in srgb, var(--ink) 86%, var(--muted));
}

.dark .copy-block p {
  color: rgba(248, 244, 233, 0.8);
}

.section.dark .ghost-button {
  color: var(--cream-100);
  background: rgba(248, 244, 233, 0.06);
}

.section.dark .ghost-button:hover {
  color: var(--cream-100);
  border-color: var(--brass);
  background: rgba(248, 244, 233, 0.13);
}

input,
select,
textarea {
  border-radius: 8px;
  background: var(--paper);
  transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

input:hover,
select:hover,
textarea:hover {
  border-color: var(--line-strong);
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--brass);
  background: #fffefb;
  box-shadow: 0 0 0 4px rgba(181, 149, 94, 0.14);
}

.site-footer {
  background:
    linear-gradient(180deg, rgba(23, 36, 22, 0), rgba(0, 0, 0, 0.12)),
    var(--green-950);
}

@media (max-width: 900px) {
  .nav-wrap {
    position: relative;
    grid-template-rows: 78px;
    align-content: center;
  }

  .main-nav,
  .account-link {
    display: flex;
    position: absolute;
    inset-inline: 0;
    z-index: 35;
    width: 100%;
    max-width: 100%;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 180ms ease, transform 180ms ease, visibility 0s linear 180ms;
  }

  .main-nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    overflow: clip;
  }

  .main-nav.is-open,
  .account-link.is-open,
  .site-header.nav-open .main-nav,
  .site-header.nav-open .account-link {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
    transition-delay: 0s;
  }

  .main-nav.is-open,
  .site-header.nav-open .main-nav {
    top: calc(100% + 8px);
    padding: 10px 10px 62px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--paper);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
  }

  .main-nav a {
    width: 100%;
    padding: 11px 10px;
    border-radius: 7px;
  }

  .main-nav a:hover {
    background: rgba(32, 53, 31, 0.06);
  }

  .main-nav a::after {
    display: none;
  }

  .account-link.is-open,
  .site-header.nav-open .account-link {
    top: calc(100% + 270px);
    right: auto;
    left: 10px;
    width: max-content;
    max-width: calc(100% - 20px);
    margin-bottom: 0;
  }
}

@media (max-width: 620px) {
  .top-strip .wrap,
  .nav-wrap,
  .section-inner,
  .footer-inner,
  .hero-content {
    width: calc(100% - 28px);
    max-width: calc(100vw - 28px);
  }

  .top-strip {
    font-size: 0.78rem;
  }

  .hero-content {
    padding-block: 86px 56px;
  }

  .hero h1 {
    font-size: clamp(2.8rem, 13vw, 4rem);
  }

  .section-title {
    font-size: clamp(2.35rem, 12vw, 3.6rem);
  }
}

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