/* MGL Demo Course  a deliberately ordinary public-course website.
   Written the way a small agency would build one in 2019 and patch since:
   a reset, a couple of Google-ish font stacks, its own grid, its own buttons.
   That is the point. The booking widget has to survive THIS, not a blank page. */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: #2b2b28;
  background: #fbf9f4;
  font-size: 17px;
  line-height: 1.65;
}
img, svg { max-width: 100%; display: block; }
a { color: #1d5136; }

h1, h2, h3, h4 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
  line-height: 1.2;
  color: #14311f;
  margin: 0 0 .5em;
}
h2 { font-size: 2.1rem; }
h3 { font-size: 1.3rem; }

.wrap { max-width: 1140px; margin: 0 auto; padding: 0 22px; }
.section { padding: 72px 0; scroll-margin-top: 78px; }
.section--alt { background: #f2eee4; }
.section--dark { background: #14311f; color: #e8e4d9; }
.section--dark h2, .section--dark h3 { color: #fff; }
.eyebrow {
  text-transform: uppercase; letter-spacing: .18em; font-size: .72rem;
  font-weight: 700; color: #8a7b42; margin: 0 0 .6em;
}
.section--dark .eyebrow { color: #c9b775; }
.lede { font-size: 1.12rem; color: #4a4a44; max-width: 62ch; }

/* ---------- buttons ---------- */
.btn {
  display: inline-block; padding: 13px 26px; border-radius: 3px;
  font-weight: 700; font-size: .93rem; letter-spacing: .04em;
  text-transform: uppercase; text-decoration: none; cursor: pointer;
  border: 2px solid transparent; transition: all .18s ease;
}
.btn--primary { background: #1d5136; color: #fff; border-color: #1d5136; }
.btn--primary:hover { background: #16402a; border-color: #16402a; }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.75); }
.btn--ghost:hover { background: rgba(255,255,255,.14); }
.btn--gold { background: #c9a227; color: #14311f; border-color: #c9a227; }
.btn--gold:hover { background: #b6911f; border-color: #b6911f; }

/* ---------- top bar + nav ---------- */
.topbar {
  background: #14311f; color: #cfc9b8; font-size: .82rem;
  padding: 7px 0; letter-spacing: .02em;
}
.topbar .wrap { display: flex; gap: 22px; flex-wrap: wrap; justify-content: space-between; }
.topbar a { color: #cfc9b8; text-decoration: none; }
.topbar a:hover { color: #fff; }

.nav { background: #fff; border-bottom: 1px solid #e3ddcd; position: sticky; top: 0; z-index: 50; }
.nav .wrap { display: flex; align-items: center; gap: 26px; padding-top: 14px; padding-bottom: 14px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; }
.brand__mark { width: 42px; height: 42px; flex: none; border-radius: 7px; display: block; }
.brand__name { font-family: Georgia, serif; font-size: 1.16rem; font-weight: 700; color: #14311f; line-height: 1.1; }
.brand__sub { font-size: .66rem; letter-spacing: .2em; text-transform: uppercase; color: #8a7b42; }
.nav__links { display: flex; gap: 24px; list-style: none; margin: 0; padding: 0; }
.nav__links a {
  text-decoration: none; color: #3a3a34; font-size: .88rem; font-weight: 600;
  letter-spacing: .03em; text-transform: uppercase; padding: 6px 0;
  border-bottom: 2px solid transparent;
}
.nav__links a:hover { color: #1d5136; border-bottom-color: #c9a227; }
.nav__toggle { display: none; background: none; border: 1px solid #d5cdb8; border-radius: 3px; padding: 8px 11px; font-size: 1.1rem; cursor: pointer; }

/* ---------- hero ---------- */
.hero { position: relative; background: #14311f; overflow: hidden; }
.hero__art { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__art svg { width: 100%; height: 100%; object-fit: cover; }
.hero__inner { position: relative; padding: 112px 0 124px; text-align: center; }
.hero__badge {
  display: inline-block; border: 1px solid rgba(255,255,255,.45); color: #f0ebd8;
  text-transform: uppercase; letter-spacing: .22em; font-size: .68rem; font-weight: 700;
  padding: 7px 16px; border-radius: 2px; margin-bottom: 22px;
  background: rgba(0,0,0,.22); backdrop-filter: blur(2px);
}
.hero h1 {
  color: #fff; font-size: clamp(2.4rem, 6vw, 4.1rem); margin: 0 0 .25em;
  text-shadow: 0 2px 22px rgba(0,0,0,.45);
}
.hero__tag {
  color: #ece7d5; font-size: 1.16rem; max-width: 54ch; margin: 0 auto 12px;
  text-shadow: 0 1px 12px rgba(0,0,0,.5);
}
.hero__stats {
  display: flex; gap: 30px; justify-content: center; flex-wrap: wrap;
  color: #d9d2ba; font-size: .82rem; letter-spacing: .14em; text-transform: uppercase;
  margin: 26px 0 34px; font-weight: 600;
}
.hero__stats span { text-shadow: 0 1px 10px rgba(0,0,0,.5); }
.hero__cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- generic grid + cards ---------- */
.grid { display: grid; gap: 26px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.card {
  background: #fff; border: 1px solid #e6e0cf; border-radius: 4px; padding: 26px;
}
.section--alt .card { background: #fff; }
.card__stat { font-family: Georgia, serif; font-size: 2.2rem; color: #1d5136; line-height: 1; }
.card__label { font-size: .78rem; text-transform: uppercase; letter-spacing: .14em; color: #7d7768; margin-top: 8px; font-weight: 700; }

/* ---------- booking section (the widget's host) ---------- */
.booking { background: #f2eee4; border-top: 3px solid #c9a227; }
.booking__head { text-align: center; max-width: 68ch; margin: 0 auto 34px; }
.booking__head .lede { margin: 0 auto; }
/* The widget lives in an ordinary white content card, the way it would on a
   real site  narrower than the page, with our own padding and border. */
.booking__panel {
  background: #fff; border: 1px solid #e0d9c6; border-radius: 5px;
  padding: 26px; box-shadow: 0 2px 18px rgba(20,49,31,.07);
}
.booking__note {
  text-align: center; font-size: .87rem; color: #6f6a5c; margin-top: 20px;
}
.booking__note strong { color: #1d5136; }

/* ---------- rates ---------- */
.rates-table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid #e6e0cf; }
.rates-table caption { text-align: left; font-size: .8rem; color: #7d7768; padding: 0 0 10px; }
.rates-table th, .rates-table td { padding: 13px 16px; text-align: left; border-bottom: 1px solid #eee7d6; }
.rates-table thead th {
  background: #14311f; color: #f0ebd8; font-size: .74rem;
  text-transform: uppercase; letter-spacing: .12em;
}
.rates-table tbody tr:last-child td { border-bottom: 0; }
.rates-table td:not(:first-child) { font-variant-numeric: tabular-nums; }
.rates-table tbody tr:nth-child(even) { background: #faf8f2; }

/* ---------- scorecard ---------- */
.scorecard { overflow-x: auto; }
.scorecard table { border-collapse: collapse; width: 100%; min-width: 720px; font-size: .84rem; }
.scorecard th, .scorecard td { border: 1px solid #d8d0bb; padding: 8px 6px; text-align: center; }
.scorecard thead th { background: #1d5136; color: #fff; font-size: .72rem; letter-spacing: .06em; }
.scorecard tbody th { background: #f2eee4; text-align: left; font-size: .78rem; white-space: nowrap; padding-left: 12px; }
.scorecard .tot { background: #f7f2e3; font-weight: 700; }

/* ---------- membership ---------- */
.tier { background: #fff; border: 1px solid #e6e0cf; border-radius: 4px; padding: 30px 26px; display: flex; flex-direction: column; }
.tier--feature { border: 2px solid #c9a227; box-shadow: 0 6px 26px rgba(20,49,31,.1); }
.tier__price { font-family: Georgia, serif; font-size: 2.5rem; color: #1d5136; line-height: 1; margin: 6px 0 2px; }
.tier__per { font-size: .8rem; color: #7d7768; text-transform: uppercase; letter-spacing: .1em; }
.tier ul { list-style: none; padding: 0; margin: 20px 0 26px; font-size: .93rem; }
.tier li { padding: 7px 0 7px 24px; position: relative; border-bottom: 1px dotted #e8e2d1; }
.tier li::before { content: "\2713"; position: absolute; left: 0; color: #c9a227; font-weight: 700; }
.tier .btn { margin-top: auto; text-align: center; }

/* ---------- contact ---------- */
.hours { list-style: none; padding: 0; margin: 0; }
.hours li { display: flex; justify-content: space-between; gap: 18px; padding: 9px 0; border-bottom: 1px dotted rgba(255,255,255,.22); font-size: .95rem; }
.hours li:last-child { border-bottom: 0; }
.hours span:last-child { color: #c9b775; font-weight: 600; }

/* ---------- footer ---------- */
.footer { background: #0e2416; color: #9fa396; font-size: .87rem; padding: 44px 0 30px; }
.footer a { color: #c9b775; text-decoration: none; }
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 34px; margin-bottom: 30px; }
.footer h4 { color: #fff; font-size: .8rem; text-transform: uppercase; letter-spacing: .14em; margin-bottom: 14px; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { padding: 4px 0; }
.footer__bar { border-top: 1px solid rgba(255,255,255,.12); padding-top: 20px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .8rem; }

/* ---------- responsive ---------- */

/* The nav runs out of horizontal room long before the page does, so it
   collapses to a hamburger on its own breakpoint, ahead of the layout ones. */
@media (max-width: 1000px) {
  .nav__links {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; flex-direction: column; gap: 0; padding: 8px 22px 18px;
    border-bottom: 1px solid #e3ddcd; box-shadow: 0 12px 22px rgba(0,0,0,.09);
  }
  .nav__links.is-open { display: flex; }
  .nav__links li { border-bottom: 1px solid #f0ebdd; }
  .nav__links a { display: block; padding: 13px 0; }
  .nav__toggle { display: block; }
}

@media (max-width: 900px) {
  .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  .section { padding: 52px 0; }
  h2 { font-size: 1.7rem; }
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .hero__inner { padding: 74px 0 84px; }
  .hero__stats { gap: 16px; font-size: .74rem; }
  .booking__panel { padding: 14px; }
  .footer__grid { grid-template-columns: 1fr; }
}

/* Phones: the brand lockup, hamburger and Book Now all have to share one row,
   so tighten everything rather than letting the course name wrap to 3 lines. */
@media (max-width: 560px) {
  .topbar { font-size: .7rem; }
  .topbar .wrap { gap: 4px; justify-content: center; text-align: center; }
  .nav .wrap { gap: 10px; padding-top: 10px; padding-bottom: 10px; }
  .brand { gap: 9px; }
  .brand__mark { width: 32px; height: 32px; }
  .brand__name { font-size: .95rem; white-space: nowrap; }
  .brand__sub { font-size: .55rem; letter-spacing: .13em; }
  .nav__toggle { padding: 6px 9px; }
  .nav .btn { padding: 9px 12px; font-size: .72rem; letter-spacing: .02em; }
  .hero h1 { font-size: 2rem; }
  .hero__tag { font-size: 1rem; }
}

/* MyGolfLinks lockup in the footer credit line. The artwork is light-on-transparent,
   which is why it only ever sits on the dark footer. */
.footer__powered { display: inline-flex; align-items: center; gap: 11px; }
.footer__powered img { height: 30px; width: auto; display: block; opacity: .95; }
