/* 828 Golf SIM
   Brand green sampled from the SIM lettering in the logo: #74C043.
   Near-black grounds, white / light gray type, green for actions and marks. */

:root {
  --bg: #0a0a0a;
  --raise: #111111;
  --text: #f3f3f3;
  --muted: #c6c6c6;
  --quiet: #a3a3a3;
  --line: rgba(255, 255, 255, 0.1);
  --green: #74c043;
  --ink: #0a0a0a;
  --radius: 16px;
  --header: 76px;
  --max: 1120px;
  --sans: Inter, "Segoe UI", system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

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

h1, h2, h3, p {
  text-wrap: balance;
}

h1, h2, h3 {
  line-height: 1.12;
  letter-spacing: -0.03em;
  font-weight: 600;
}

a {
  color: var(--green);
}

code {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.86em;
  color: var(--text);
}

::selection {
  background: var(--green);
  color: var(--ink);
}

:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -3rem;
  background: var(--green);
  color: var(--ink);
  padding: 0.5rem 0.8rem;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  z-index: 50;
}

.skip:focus {
  top: 0.75rem;
}

.wrap {
  width: min(var(--max), calc(100% - 2.5rem));
  margin-inline: auto;
}

@media (min-width: 800px) {
  .wrap {
    width: min(var(--max), calc(100% - 5rem));
  }
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(10, 10, 10, 0.9);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: var(--header);
}

.brand {
  display: flex;
  flex: 0 0 auto;
}

.brand img,
.footer-brand img {
  height: 42px;
  width: auto;
  display: block;
}

.nav {
  display: none;
  align-items: center;
  gap: 1.15rem;
  margin-left: auto;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
}

.nav a:hover {
  color: var(--green);
}

.header-inner > .btn {
  margin-left: auto;
  flex: 0 0 auto;
}

.btn-long {
  display: none;
}

@media (min-width: 980px) {
  .brand img {
    height: 50px;
  }

  .nav {
    display: flex;
  }

  .header-inner > .btn {
    margin-left: 0;
  }

  .btn-short {
    display: none;
  }

  .btn-long {
    display: inline;
  }
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  background: var(--green);
  color: var(--ink);
  font: inherit;
  font-weight: 600;
  font-size: 0.98rem;
  letter-spacing: -0.01em;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  border: 0;
  border-radius: 999px;
  padding: 0.9rem 1.2rem;
  cursor: pointer;
  max-width: 100%;
}

.btn:hover {
  background: #86cc55;
}

.btn-small {
  padding: 0.55rem 0.85rem;
  font-size: 0.86rem;
  white-space: nowrap;
}

.btn-ghost {
  background: transparent;
  color: var(--green);
  box-shadow: inset 0 0 0 1.5px var(--green);
}

.btn-ghost:hover {
  background: rgba(116, 192, 67, 0.12);
}

/* Hero */

.hero {
  padding: 2.75rem 0 4.25rem;
}

.hero-logo {
  width: min(440px, 100%);
  height: auto;
  display: block;
  margin: 0 0 1.75rem;
}

.kicker {
  margin: 0 0 0.85rem;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  max-width: 16em;
  font-size: clamp(1.6rem, 4.5vw, 3.4rem);
  line-height: 1.08;
}

.hero-line {
  display: block;
  text-wrap: balance;
}

.lede {
  margin: 1.1rem 0 1.6rem;
  max-width: 36rem;
  color: var(--muted);
  font-size: 1.125rem;
}

.hero .btn {
  width: 100%;
}

@media (min-width: 640px) {
  .hero {
    padding: 3.5rem 0 5.5rem;
  }

  .hero .btn {
    width: auto;
  }
}

/* Sections */

.section {
  padding: 4rem 0;
  border-top: 1px solid var(--line);
}

.section-head {
  margin-bottom: 1.6rem;
  max-width: 40rem;
}

.section-head h2 {
  margin: 0;
  font-size: clamp(1.7rem, 3vw, 2.35rem);
}

.section h2::after {
  content: "";
  display: block;
  width: 2.25rem;
  height: 3px;
  margin-top: 0.8rem;
  border-radius: 99px;
  background: var(--green);
}

.section-head p {
  margin: 0.9rem 0 0;
  color: var(--muted);
}

.subhead {
  margin: 0 0 0.75rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green);
}

.tbd {
  display: inline-block;
  padding: 0.12rem 0.5rem;
  border: 1px solid rgba(116, 192, 67, 0.55);
  border-radius: 999px;
  color: var(--green);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1.4;
  vertical-align: 0.05em;
}

/* Gallery */

.gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

.photo-slot {
  margin: 0;
  aspect-ratio: 4 / 5;
  background: var(--raise);
  border-radius: var(--radius);
  overflow: hidden;
}

.photo-slot picture,
.photo-slot img {
  width: 100%;
  height: 100%;
  display: block;
}

.photo-slot img {
  object-fit: cover;
  object-position: center 40%;
}

.photo-slot--dusk img {
  object-position: center 45%;
}

.photo-slot__placeholder {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.75rem;
  text-align: center;
}

.photo-slot__index {
  color: var(--green);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
}

.photo-slot__label {
  color: var(--text);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

@media (min-width: 640px) {
  .gallery {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 900px) {
  .gallery {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }
}

/* Who */

.audiences {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
}

.audiences li {
  padding: 0.95rem 0;
  border-top: 1px solid var(--line);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.audiences li:last-child {
  border-bottom: 1px solid var(--line);
}

@media (min-width: 700px) {
  .audiences {
    grid-template-columns: 1fr 1fr;
    column-gap: 2.5rem;
  }

  .audiences li:nth-last-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }
}

@media (min-width: 980px) {
  .audiences {
    grid-template-columns: 1fr 1fr 1fr;
  }

  .audiences li:nth-last-child(-n + 2) {
    border-bottom: 0;
  }

  .audiences li:nth-last-child(-n + 3) {
    border-bottom: 1px solid var(--line);
  }
}

/* Steps */

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.5rem;
}

.steps li {
  padding-top: 0.25rem;
}

.step-num {
  display: block;
  margin-bottom: 0.55rem;
  color: var(--green);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
}

.steps h3 {
  margin: 0 0 0.35rem;
  font-size: 1.3rem;
}

.steps p {
  margin: 0;
  color: var(--muted);
  max-width: 28ch;
}

@media (min-width: 800px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }

  .steps li {
    border-top: 1px solid var(--line);
    padding-top: 1.1rem;
  }
}

/* Mid-page CTA */

.cta-band {
  background: var(--raise);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.cta-band__inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.6rem 0;
}

.cta-band p {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

@media (min-width: 800px) {
  .cta-band__inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 1.8rem 0;
    gap: 2rem;
  }
}

/* Specs */

.specs {
  margin: 0;
}

.spec {
  display: grid;
  gap: 0.15rem;
  padding: 0.95rem 0;
  border-top: 1px solid var(--line);
}

.spec:last-child {
  border-bottom: 1px solid var(--line);
}

.spec dt {
  color: var(--quiet);
  font-size: 0.92rem;
}

.spec dd {
  margin: 0;
  font-size: 1.05rem;
}

@media (min-width: 720px) {
  .spec {
    grid-template-columns: 220px 1fr;
    gap: 1.5rem;
    align-items: baseline;
  }
}

/* Games */

.games {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 0 0 1.6rem;
  padding: 0;
}

.games li {
  padding: 0.5rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--raise);
}

.rules {
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: 36rem;
}

.rules li {
  padding: 0.8rem 0;
  border-top: 1px solid var(--line);
}

.rules li:last-child {
  border-bottom: 1px solid var(--line);
}

.rules li::before {
  content: "";
  display: inline-block;
  width: 0.45rem;
  height: 0.45rem;
  margin-right: 0.7rem;
  border-radius: 99px;
  background: var(--green);
  transform: translateY(-0.08rem);
}

/* Pricing */

.nowrap {
  white-space: nowrap;
}

.pricing-head h2 {
  max-width: 8.5em;
}

.pricing-head h2 {
  font-size: clamp(2rem, 4.6vw, 3.2rem);
}

.pricing-head .btn {
  margin-top: 1.35rem;
}

/* Testimonials */

.quotes {
  display: grid;
  gap: 0.85rem;
}

.quote {
  position: relative;
  margin: 0;
  padding: 1.2rem 1.15rem 1.15rem;
  background: var(--raise);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.sample-flag {
  margin: 0 0 0.8rem;
  color: var(--green);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.quote blockquote {
  margin: 0;
}

.quote blockquote p {
  margin: 0;
  font-size: 1.08rem;
  letter-spacing: -0.02em;
}

.quote-who {
  margin: 1.1rem 0 0;
  font-weight: 600;
}

.quote-meta {
  margin: 0.1rem 0 0;
  color: var(--quiet);
  font-size: 0.92rem;
}

@media (min-width: 800px) {
  .quotes {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }
}

/* FAQ */

.faq-wrap {
  max-width: 760px;
}

.faq details {
  border-top: 1px solid var(--line);
}

.faq details:last-child {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.05rem 0;
  cursor: pointer;
  font-weight: 600;
  letter-spacing: -0.02em;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  flex: 0 0 auto;
  color: var(--green);
  font-size: 1.35rem;
  font-weight: 500;
  line-height: 1;
}

.faq details[open] summary::after {
  content: "–";
}

.faq details p {
  margin: 0 0 1.1rem;
  max-width: 62ch;
  color: var(--muted);
}

/* Calendar + form */

.plan {
  display: grid;
  gap: 1rem;
  align-items: start;
}

.calendar,
.form-panel {
  background: var(--raise);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.1rem;
}

.cal-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.85rem;
}

.cal-nav button {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  cursor: pointer;
}

.cal-nav button:hover:not(:disabled) {
  border-color: var(--green);
  color: var(--green);
}

.cal-nav button:disabled {
  opacity: 0.35;
  cursor: default;
}

.cal-label {
  margin: 0;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.cal-dow,
.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

.cal-dow {
  margin-bottom: 4px;
}

.cal-dow span {
  text-align: center;
  color: var(--quiet);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.day {
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 0.92rem;
  padding: 0;
}

button.day {
  cursor: pointer;
}

button.day:hover {
  border-color: var(--green);
}

.day.is-today {
  border-color: var(--green);
}

.day.is-selected {
  background: var(--green);
  border-color: var(--green);
  color: var(--ink);
  font-weight: 700;
}

.day.is-booked {
  background: repeating-linear-gradient(
    -45deg,
    #161616,
    #161616 4px,
    #1c1c1c 4px,
    #1c1c1c 8px
  );
  color: #9a9a9a;
  text-decoration: line-through;
}

.day.is-past {
  color: #5e5e5e;
}

.day-empty {
  pointer-events: none;
}

.legend {
  display: flex;
  gap: 1.1rem;
  margin: 0.9rem 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.legend span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.swatch {
  width: 0.8rem;
  height: 0.8rem;
  border-radius: 3px;
  display: inline-block;
}

.swatch-open {
  border: 1px solid var(--green);
}

.swatch-booked {
  background: repeating-linear-gradient(
    -45deg,
    #2a2a2a,
    #2a2a2a 2px,
    #3a3a3a 2px,
    #3a3a3a 4px
  );
}

.date-live {
  min-height: 1.4em;
  margin: 0.55rem 0 0;
  color: var(--green);
  font-size: 0.92rem;
  font-weight: 600;
}

.fine {
  margin: 0.45rem 0 0;
  color: var(--quiet);
  font-size: 0.84rem;
}

@media (min-width: 900px) {
  .plan {
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
  }

  .calendar,
  .form-panel {
    padding: 1.35rem;
  }
}

/* Form */

.form-panel h3,
.thanks h3 {
  margin: 0 0 1rem;
  font-size: 1.25rem;
}

.form-panel {
  container-type: inline-size;
}

.fields {
  display: grid;
  gap: 0.85rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 0;
}

.field label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--muted);
}

.opt {
  font-weight: 500;
  color: var(--quiet);
}

input,
select,
textarea {
  width: 100%;
  margin: 0;
  padding: 0.8rem 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  background: var(--bg);
  color: var(--text);
  font: inherit;
  font-size: 16px;
  color-scheme: dark;
}

textarea {
  resize: vertical;
  min-height: 7rem;
}

input::placeholder,
textarea::placeholder {
  color: #8d8d8d;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(116, 192, 67, 0.22);
}

input.just-filled {
  border-color: var(--green);
}

select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%2374C043' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 1rem;
  padding-right: 2.2rem;
}

.field-note {
  min-height: 0;
  margin: 0;
  color: var(--green);
  font-size: 0.84rem;
}

.field-note:empty {
  display: none;
}

.form-error {
  margin: 0.9rem 0 0;
  color: #f0d3d3;
  font-size: 0.92rem;
}

.form-panel .btn {
  margin-top: 1rem;
  width: 100%;
}

@container (min-width: 480px) {
  .fields {
    grid-template-columns: 1fr 1fr;
  }

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

.thanks[hidden],
form[hidden] {
  display: none;
}

.thanks p {
  margin: 0 0 1.1rem;
  color: var(--muted);
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 2.4rem 0 3rem;
}

.footer-grid {
  display: grid;
  gap: 1.75rem;
}

.footer-label {
  margin: 0 0 0.55rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green);
}

.footer-label::after {
  display: none;
}

.contact-list,
.socials {
  list-style: none;
  margin: 0;
  padding: 0;
}

.contact-list li {
  margin: 0.25rem 0;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.contact-list a {
  color: var(--text);
  text-decoration: none;
}

.contact-list a:hover {
  color: var(--green);
}

.socials {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.7rem;
}

.socials a {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
}

.socials a:hover {
  border-color: var(--green);
  color: var(--green);
}

@media (min-width: 800px) {
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
    align-items: start;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
