/* ==========================================================
   MiniGolf — stylesheet
   ========================================================== */

:root {
  --paper: #EEF1EC;
  --paper-raised: #F8F9F6;
  --ink: #172520;
  --ink-soft: #45564D;
  --line: #C9D0C6;
  --turf: #2E6B3E;
  --turf-dark: #1F4C2C;
  --red: #A93226;

  --font-display: "Space Grotesk", sans-serif;
  --font-body: "Work Sans", sans-serif;
  --font-mono: "JetBrains Mono", monospace;

  --wrap: 1500px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

  * {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

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

h1,
h2 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.1;
  margin: 0 0 0.5em;
}

h1 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
}

h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 700;
}

p {
  margin: 0 0 1em;
  color: var(--ink-soft);
}

a {
  color: var(--turf-dark);
}

.mono {
  font-family: var(--font-mono);
}

code {
  font-family: var(--font-mono);
  background: var(--paper-raised);
  padding: 0.1em 0.4em;
  border: 1px solid var(--line);
  font-size: 0.9em;
}

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 28px;
}

.eyebrow-line {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--turf-dark);
  margin: 0 0 0.6em;
}


/* ---------- buttons ---------- */

.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.75em 1.4em;
  border: 1.5px solid var(--ink);
  text-decoration: none;
  cursor: pointer;
  background: transparent;
  color: var(--ink);
  transition:
    background 0.15s ease,
    color 0.15s ease,
    transform 0.1s ease;
}

.btn-primary {
  background: var(--turf);
  border-color: var(--turf);
  color: #fff;
}

.btn-primary:hover {
  background: var(--turf-dark);
  border-color: var(--turf-dark);
}

.btn-line:hover {
  background: var(--ink);
  color: var(--paper);
}

.btn:active {
  transform: translateY(1px);
}


/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--paper);
  border-bottom: 1.5px solid var(--ink);
}

.header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
  padding: 8px 28px;
}

.logo {
  justify-self: center;
  display: flex;
  align-items: center;
}

.logo-img {
  width: 280px;
  height: 58px;
  object-fit: contain;
  display: block;
}

.nav-side {
  display: flex;
  gap: 28px;
}

.nav-left {
  justify-self: start;
}

.nav-right {
  justify-self: end;
}

.nav-side a {
  text-decoration: none;
  color: var(--ink);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 4px 2px;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}

.nav-side a:hover {
  border-bottom-color: var(--red);
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  min-height: 680px;
  padding: 100px 0;
  display: flex;
  align-items: center;

  background-image:
    linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.12) 0%,
      rgba(255, 255, 255, 0.68) 36%,
      rgba(255, 255, 255, 0.60) 64%,
      rgba(255, 255, 255, 0.10) 100%
    ),
    url("../images/Banner.png");

background-size: cover;
background-repeat: no-repeat;
background-position: center;
background-color: #1f241f;
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
}

.hero h1 {
  max-width: 800px;
  margin-bottom: 28px;
}

.hero-sub {
  font-size: 1.05rem;
  max-width: 60ch;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 24px;
}

@media (max-width: 900px) {
  .hero {
    min-height: 600px;
    padding: 80px 0;
  }
}

@media (max-width: 560px) {
  .hero {
    min-height: 620px;
    padding: 70px 0;
  }
}


/* ---------- course sections ---------- */

.collection {
  padding: 82px 0 72px;
  border-top: 1.5px solid var(--ink);
}

.collection.alt {
  background: var(--paper-raised);
}

.collection-inner {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 72px;
  align-items: start;
}

.collection-inner.reverse {
  grid-template-columns: 1.08fr 0.92fr;
}

.collection-inner.reverse .collection-info {
  order: 2;
}

.collection-inner.reverse .collection-viewer {
  order: 1;
}


/* ---------- course information ---------- */

.collection-info > p:not(.eyebrow-line) {
  max-width: 58ch;
  font-size: 1rem;
}

.hole-list {
  list-style: none;
  margin: 18px 0 28px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px 28px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--ink-soft);
}


/* ---------- pricing ---------- */

.tier-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.tier-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
  border: 1.5px solid var(--line);
  background: var(--paper-raised);
  padding: 18px;
}

.collection.alt .tier-card {
  background: var(--paper);
}

.tier-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--ink-soft);
  text-transform: uppercase;
}

.tier-price {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--ink);
}

.tier-card .btn {
  width: 100%;
  text-align: center;
  font-size: 0.82rem;
  padding: 0.6em 0.6em;
}


/* ---------- viewer ---------- */

.collection-viewer {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.viewer-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 0;
}

.view-tab {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  background: none;
  border: 1.5px solid var(--ink);
  padding: 0.5em 1em;
  cursor: pointer;
  color: var(--ink);
}

.view-tab.active {
  background: var(--ink);
  color: var(--paper);
}

.viewer-frame {
  position: relative;
  border: 1.5px solid var(--ink);
  background: #fff;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.viewer-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  pointer-events: none;
  cursor: zoom-in;
  transition: opacity 0.15s ease;
}

.viewer-img.active {
  opacity: 1;
  pointer-events: auto;
}

.viewer-hint {
  font-size: 0.8rem;
  margin: 0;
  color: var(--ink-soft);
}


/* ---------- at a glance ---------- */

.course-features {
  margin-top: 58px;
  border: 1.5px solid var(--line);
  background: rgba(248, 249, 246, 0.55);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.collection.alt .course-features {
  background: var(--paper);
}

.feature-item {
  padding: 26px 28px;
  min-height: 145px;
  border-right: 1px solid var(--line);
}

.feature-item:last-child {
  border-right: none;
}

.feature-number {
  display: block;
  width: 30px;
  height: 30px;
  border: 1.5px solid var(--turf);
  color: var(--turf-dark);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  line-height: 27px;
  text-align: center;
  margin-bottom: 18px;
}

.feature-title {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--ink);
  text-transform: uppercase;
  margin-bottom: 5px;
}

.feature-main {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 5px;
}

.feature-text {
  display: block;
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--ink-soft);
}


/* ---------- contact ---------- */

.contact {
  padding: 82px 0 100px;
  border-top: 1.5px solid var(--ink);
}

.contact-inner {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 72px;
}

.quote-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: var(--paper-raised);
  border: 1.5px solid var(--ink);
  padding: 28px;
}

.quote-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink);
}

.quote-form input,
.quote-form textarea,
.quote-form select {
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 0.7em 0.8em;
  border: 1.5px solid var(--line);
  background: #fff;
  color: var(--ink);
}

.quote-form select {
  cursor: pointer;
}

.quote-form input:focus,
.quote-form textarea:focus,
.quote-form select:focus {
  outline: 2px solid var(--turf);
  outline-offset: 1px;
  border-color: var(--turf);
}


/* ---------- footer ---------- */

.site-footer {
  border-top: 1.5px solid var(--ink);
  padding-top: 40px;
  background: var(--paper-raised);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  padding-bottom: 32px;
}

.footer-inner p {
  font-size: 0.9rem;
  max-width: 32ch;
}

.footer-cols {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.footer-cols a {
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.footer-bottom {
  border-top: 1px solid var(--line);
  padding: 18px 24px;
  font-size: 0.8rem;
  color: var(--ink-soft);
}

.footer-bottom p {
  margin: 0;
}


/* ---------- lightbox ---------- */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(23, 37, 32, 0.85);
  padding: 24px;
}

.lightbox.show {
  display: flex;
}

.lightbox img {
  max-width: 100%;
  max-height: 100%;
  border: 1px solid var(--line);
}

#lightboxClose {
  position: fixed;
  top: 20px;
  right: 28px;
  background: none;
  border: none;
  font-size: 2.2rem;
  cursor: pointer;
  color: #fff;
}


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

@media (max-width: 1100px) {
  .collection-inner,
  .collection-inner.reverse {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .collection-inner.reverse .collection-info,
  .collection-inner.reverse .collection-viewer {
    order: initial;
  }

  .collection-viewer {
    max-width: 900px;
  }

  .course-features {
    grid-template-columns: repeat(2, 1fr);
  }

  .feature-item:nth-child(2) {
    border-right: none;
  }

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

@media (max-width: 900px) {
  .contact-inner {
    grid-template-columns: 1fr;
  }

  .hole-list {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 700px) {
  .header-inner {
    grid-template-columns: 1fr;
    justify-items: center;
    row-gap: 10px;
    padding: 14px 24px;
  }

  .nav-left {
    order: 2;
    justify-self: center;
  }

  .logo {
    order: 1;
  }

  .nav-right {
    order: 3;
    justify-self: center;
  }

  .course-features {
    grid-template-columns: 1fr;
  }

  .feature-item {
    border-right: none;
    border-bottom: 1px solid var(--line);
  }

  .feature-item:last-child {
    border-bottom: none;
  }
}

@media (max-width: 560px) {
  .tier-grid {
    grid-template-columns: 1fr;
  }

  .hole-list {
    grid-template-columns: 1fr;
  }

  .wrap {
    padding-left: 20px;
    padding-right: 20px;
  }

  .collection {
    padding: 60px 0;
  }

  .course-features {
    margin-top: 42px;
  }
}
/* =========================================================
   COURSE CORNER TREES
   Bottom corners only
   ========================================================= */

.collection {
  position: relative;
  overflow: hidden;
}

.collection-inner,
.collection > .wrap:not(.collection-inner) {
  position: relative;
  z-index: 2;
}

.course-trees {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.course-tree {
  position: absolute;
  width: 210px;
  height: 150px;
  opacity: 0.38;
}

.course-tree svg {
  display: block;
  width: 100%;
  height: 100%;
}

/* BOTTOM LEFT */
.course-tree.bottom-left {
  bottom: 0;
  left: 0;
}

/* BOTTOM RIGHT */
.course-tree.bottom-right {
  bottom: 0;
  right: 0;
}

/* Keep information panel above the trees */
.course-features {
  position: relative;
  z-index: 3;
}

@media (max-width: 900px) {
  .course-tree {
    width: 150px;
    height: 110px;
    opacity: 0.30;
  }
}

@media (max-width: 560px) {
  .course-tree {
    width: 100px;
    height: 75px;
    opacity: 0.20;
  }
}
/* =========================================================
   FINAL COURSE TREE POSITIONING
   ========================================================= */

.course-tree {
  position: absolute;
  width: 210px;
  height: 150px;
  opacity: 0.38;
}

.course-tree svg {
  display: block;
  width: 100%;
  height: 100%;
}

/* BOTTOM TREES
   Keep the artwork upright and move it slightly
   upward so the trees grow from the bottom edge. */
.course-tree.bottom-left {
  bottom: -20px;
  left: 0;
}

.course-tree.bottom-right {
  bottom: -20px;
  right: 0;
}

@media (max-width: 900px) {
  .course-tree {
    width: 150px;
    height: 110px;
    opacity: 0.30;
  }

  .course-tree.bottom-left,
  .course-tree.bottom-right {
    bottom: -15px;
  }
}

@media (max-width: 560px) {
  .course-tree {
    width: 100px;
    height: 75px;
    opacity: 0.20;
  }

  .course-tree.bottom-left,
  .course-tree.bottom-right {
    bottom: -10px;
  }
}
/* =========================================================
   MINI GOLF SCROLLBAR
   ========================================================= */

html {
  scrollbar-width: none;
}

html::-webkit-scrollbar {
  display: none;
}

/* The whole scrollbar */
.golf-scrollbar {
  position: fixed;
  top: 0;
  right: 0;
  width: 22px;
  height: 100vh;
  z-index: 100;
  pointer-events: none;
}

.golf-scroll-track {
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: 9px;
  width: 6px;
  background: rgba(203, 209, 203, 0.4);
  border-radius: 10px;
}
.golf-ball {
  position: absolute;
  left: 50%;
  top: 0;

  width: 18px;
  height: 18px;

  transform: translateX(-50%);
  border-radius: 50%;

  background: #ffffff;
  border: 2px solid #4f8a5b;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);

  pointer-events: auto;
  cursor: grab;
  touch-action: none;
}

.golf-ball:active {
  cursor: grabbing;
}

/* Golf-ball dimples */
.golf-ball::before,
.golf-ball::after,
.golf-ball span {
  content: "";
  position: absolute;
  width: 3px;
  height: 3px;
  background: #c9c9c9;
  border-radius: 50%;
}

.golf-ball::before {
  top: 3px;
  left: 4px;
  box-shadow:
    7px 1px 0 #c9c9c9,
    2px 7px 0 #c9c9c9,
    9px 8px 0 #c9c9c9,
    5px 12px 0 #c9c9c9;
}

.golf-ball::after {
  top: 5px;
  left: 11px;
  box-shadow:
    -8px 5px 0 #c9c9c9,
    -3px 9px 0 #c9c9c9;
}

/* Hide it on small screens */
@media (max-width: 700px) {
  .golf-scrollbar {
    display: none;
  }
}
/* =========================================================
   COMPLETED WORK PAGE
   FULL SCREEN PROJECT SLIDER
   ========================================================= */

.completed-work-page {
  background: #f4f5f0;
}

.completed-work-intro {
  position: relative;

  height: calc(100vh - var(--completed-header-height, 75px));
  min-height: calc(100vh - var(--completed-header-height, 75px));

  display: flex;
  align-items: center;
  justify-content: center;

  text-align: center;
  padding: 80px 28px;

  overflow: hidden;

  scroll-margin-top: var(--completed-header-height, 75px);
}

.completed-work-intro::before {
  content: "";
  position: absolute;
  inset: 0;

  background-image: url("../images/banner2.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  filter: blur(1px);
  transform: scale(1.02);

  z-index: 0;
}

.completed-work-intro::after {
  content: "";
  position: absolute;
  inset: 0;

  background: rgba(0, 0, 0, 0.18);

  z-index: 1;
}

.completed-work-intro .wrap {
  position: relative;
  z-index: 2;

  max-width: 850px;
  padding: 20px 30px;

  background: transparent;
}

.completed-work-intro h1 {
  margin: 10px 0 20px;
  color: #ffffff;

  text-shadow:
    0 2px 6px rgba(0, 0, 0, 0.7);
}

.completed-work-intro p {
  color: #ffffff;

  text-shadow:
    0 2px 5px rgba(0, 0, 0, 0.7);
}

.completed-work-intro p:last-child {
  max-width: 650px;
  margin: 0 auto;
}


/* ---------- completed projects ---------- */

.completed-projects {
  position: relative;
  width: 100%;
}

.completed-project {
  width: 100%;
  height: calc(100vh - var(--completed-header-height, 75px));
  min-height: calc(100vh - var(--completed-header-height, 75px));

  display: grid;
  grid-template-columns: 1fr 1fr;

  margin: 0;
  padding: 0;

  scroll-margin-top: var(--completed-header-height, 75px);
}

.completed-project.reverse .completed-image {
  order: 2;
}

.completed-project.reverse .completed-text {
  order: 1;
}


/* ---------- project images ---------- */

.completed-image {
  width: 100%;
  height: 100%;

  overflow: hidden;

  background: #ffffff;
}

.completed-image img {
  display: block;

  width: 100%;
  height: 100%;

  object-fit: cover;

  cursor: pointer;
}


/* ---------- project text ---------- */

.completed-text {
  width: 100%;
  height: 100%;

  display: flex;
  flex-direction: column;
  justify-content: center;

  padding: 70px;

  box-sizing: border-box;
}

.completed-text h2 {
  margin: 10px 0 20px;
}

.completed-text p:last-child {
  max-width: 500px;
  line-height: 1.7;
}


/* ---------- project navigation dots ---------- */

/* Hidden visually — one-screen scrolling stays unchanged. */
.completed-dots {
  display: none;
}


/* =========================================================
   COURSE INFORMATION BOXES
   ========================================================= */

.collection-inner > .course-features {
  grid-column: 1 / -1;
  width: 100%;
  order: 3;
}

/* =========================================================
   COMPLETED WORK IMAGE GALLERY
   ========================================================= */

.completed-gallery {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #ffffff;
}

.gallery-images {
  position: absolute;
  inset: 0;

  display: flex;
  width: 100%;
  height: 100%;

  transform: translateX(-100%);
  transition: transform 0.45s ease;
  will-change: transform;
}

.completed-gallery-img {
  position: relative;
  flex: 0 0 100%;

  width: 100%;
  height: 100%;

  object-fit: cover;

  opacity: 1;
  visibility: visible;
}


/* Arrows sit inside the image,
   centered vertically on the left and right */

.gallery-arrow {
  position: absolute;

  top: 50%;
  transform: translateY(-50%);

  z-index: 10;

  width: 48px;
  height: 48px;

  border: none;
  border-radius: 50%;

  background: rgba(255, 255, 255, 0.35);

  color: #1d2923;

  font-size: 28px;
  line-height: 1;

  display: flex;
  align-items: center;
  justify-content: center;

  cursor: pointer;

  padding: 0;

  transition:
    background 0.2s ease,
    transform 0.2s ease;
}

.gallery-arrow:hover {
  background: #ffffff;
}

.gallery-prev {
  left: 12px;
}

.gallery-next {
  right: 12px;
}


/* Mobile */

@media (max-width: 700px) {

  .gallery-arrow {
    width: 42px;
    height: 42px;
    font-size: 24px;
  }

  .gallery-prev {
    left: 8px;
  }

  .gallery-next {
    right: 8px;
  }

}

/* ---------- mobile ---------- */
/* =========================================================
   MOBILE COURSE ORDER
   ========================================================= */

@media (max-width: 700px) {

  .collection {
    display: flex;
    flex-direction: column;
  }

  .collection-inner {
    display: contents;
  }

  .collection-info {
    display: contents;
  }

  /* 1. Course title + description */
  .course-heading {
    order: 1;
    width: 100%;
    padding: 0 20px 32px;
  }

  /* 2. Plan / 3D viewer */
  .collection-viewer {
    order: 2;
    width: 100%;
    max-width: none;
    padding: 0 20px;
    margin-bottom: 42px;
  }

  /* Hide the 1–18 hole list on mobile */
  .hole-list {
    display: none;
  }

  /* 3. Four information boxes */
  .course-features {
    order: 3;
    width: calc(100% - 40px);
    margin: 0 20px 42px;
  }

  /* 4. Prices last */
  .tier-grid {
    order: 4;
    width: calc(100% - 40px);
    margin: 0 20px;
  }

}

@media (max-width: 700px) {

  /* Wood Park mobile order */
  .collection-inner.reverse .collection-info {
    display: contents;
  }

  .collection-inner.reverse .course-heading {
    order: 1;
  }

  .collection-inner.reverse .collection-viewer {
    order: 2;
  }

  .collection-inner.reverse .course-features {
    order: 3;
  }

  .collection-inner.reverse .tier-grid {
    order: 4;
  }

}
/* ---------- completed work mobile layout ---------- */

@media (max-width: 700px) {

  .completed-project {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 1fr 1fr;

    height: calc(100vh - var(--completed-header-height, 75px));
    min-height: calc(100vh - var(--completed-header-height, 75px));
  }

  /* Text always comes first on mobile */
  .completed-project .completed-text {
    order: 1;
    width: 100%;
    height: 100%;
    padding: 30px 24px;

    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  /* Gallery always comes second */
  .completed-project .completed-image {
    order: 2;
    width: 100%;
    height: 100%;
  }

  /* Override the desktop alternating layout */
  .completed-project.reverse .completed-text {
    order: 1;
  }

  .completed-project.reverse .completed-image {
    order: 2;
  }
}

/* ---------- completed work mobile footer ---------- */

@media (max-width: 700px) {
  .completed-work-page .site-footer {
    display: none !important;
  }
}
