/* CostaSol Golf: fairway green, the red of the pin flag, the white of the ball. */
:root {
  --ground: #eef2ef;
  --ground-2: #dde5e0;
  --ink: #0d1410;
  --ink-soft: #3d4640;
  --fairway: #0f3d2e;
  --fairway-2: #14513c;
  --turf: #2f8a57;
  --turf-dark: #1e6a40;
  --flag: #d7141f;
  --flag-ink: #fff;
  --night: #0a0f0c;
  --sky: #9fd6f5;
  --tent: #151a17;
  --tent-in: #26302b;
  --screen: #f4f4f4;
  --light: #ffffff;
  --m: clamp(16px, 4vw, 40px);
  --gap: clamp(96px, 14vw, 200px);
  --display: clamp(3.4rem, 10.5vw, 10rem);
  --h2: clamp(2.2rem, 5.2vw, 4.6rem);
  --h3: clamp(1.4rem, 2.2vw, 1.9rem);
  --statement: clamp(1.2rem, 2vw, 1.75rem);
  --ease: cubic-bezier(.2, .7, .1, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: "Archivo", system-ui, sans-serif;
  font-size: 18px;
  line-height: 1.5;
  font-variation-settings: "wdth" 100;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
::selection { background: var(--flag); color: var(--flag-ink); }
:focus-visible { outline: 3px solid var(--flag); outline-offset: 3px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: 12px 16px; z-index: 20; }
.skip:focus { left: 16px; }

/* ---------- type */
.display {
  font-size: var(--display);
  font-weight: 800;
  font-variation-settings: "wdth" 72;
  line-height: .9;
  letter-spacing: -.035em;
  margin: 0;
  text-wrap: balance;
}
.h2 {
  font-size: var(--h2);
  font-weight: 800;
  font-variation-settings: "wdth" 78;
  line-height: .95;
  letter-spacing: -.03em;
  margin: 0 0 .5em;
  max-width: 20ch;
  text-wrap: balance;
}
.h3 { font-size: var(--h3); font-weight: 700; line-height: 1.1; letter-spacing: -.01em; margin: 0 0 .35em; }
.h3 a { text-decoration: none; }
.statement { font-size: var(--statement); line-height: 1.3; max-width: 42ch; margin: .6em 0 0; }
.lede { font-size: clamp(1.1rem, 1.6vw, 1.35rem); line-height: 1.45; max-width: 52ch; margin: 0; }
.note { font-size: 15px; color: var(--ink-soft); margin: 1.2em 0 0; }
.more { font-weight: 700; text-decoration: none; display: inline-block; transition: transform .25s var(--ease); }
.more:hover { transform: translateX(6px); }

/* ---------- buttons: square, flat */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 52px; padding: 0 26px;
  font: inherit; font-weight: 700; font-size: 17px; text-decoration: none;
  border: 0; border-radius: 0; cursor: pointer;
  transition: transform .2s var(--ease), background-color .2s, color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(1px) scale(.98); }
.btn--flag { background: var(--flag); color: var(--flag-ink); }
.btn--flag:hover { background: #b10f18; }
.btn--line { background: transparent; color: inherit; border: 2px solid currentColor; }
.btn--line:hover { background: currentColor; }
.btn--line:hover { color: var(--ground); }
.hero .btn--line:hover, .card .btn--line:hover, .games .btn--line:hover { color: var(--ink); background: #fff; }

/* ---------- bar */
.bar {
  position: absolute; inset: 0 0 auto; z-index: 10;
  display: flex; align-items: center; gap: 28px;
  padding: 18px var(--m);
  color: #fff;
}
.bar__mark { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-size: 21px; font-weight: 600; letter-spacing: -.01em; }
.bar__mark b { font-weight: 800; }
.mark { width: 26px; height: 30px; }
.bar__nav { display: flex; gap: 24px; margin-left: auto; }
.bar__nav a { text-decoration: none; font-weight: 600; position: relative; }
.bar__nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease); }
.bar__nav a:hover::after { transform: scaleX(1); }
.bar__cta { min-height: 44px; padding: 0 18px; }
.page-light .bar { color: var(--ink); position: relative; }

/* ---------- pictures */
.pic { position: relative; margin: 0; background: var(--fairway); overflow: hidden; }
.pic img { width: 100%; height: 100%; object-fit: cover; }
.pic__flag { display: none; position: absolute; width: 22%; max-width: 160px; left: 50%; top: 50%; transform: translate(-50%, -55%); color: #fff; }
.pic--missing img { display: none; }
.pic--missing .pic__flag { display: block; }
.hero .pic__flag { left: auto; right: 8%; top: 22%; transform: none; opacity: .5; }

/* ---------- hero: full-bleed photo, neutral scrim, text bottom-left */
.hero { position: relative; min-height: 100svh; background: var(--fairway); display: flex; align-items: flex-end; color: #fff; isolation: isolate; }
.hero__pic { position: absolute; inset: 0; z-index: -2; }
.hero__pic img { transform: scale(1.06); animation: drift 18s var(--ease) forwards; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(5, 10, 7, .52); }
.hero__text { padding: 140px var(--m) clamp(40px, 7vw, 90px); width: 100%; }
.hero .display { max-width: 9ch; }
.hero__price { margin: 1.4em 0 0; font-size: 18px; }
.hero__price strong { font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 800; letter-spacing: -.02em; margin: 0 .15em; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 1.4em 0 0; }
@keyframes drift { to { transform: scale(1); } }

/* ---------- section rhythm */
main > section { padding: var(--gap) var(--m) 0; }
main > section.hero { padding: 0; }
main > section:last-child { padding-bottom: var(--gap); }

/* ---------- bay drawing */
.bay { display: grid; gap: 40px; }
.bay__head { display: grid; gap: 24px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .bay__head { grid-template-columns: 1.2fr 1fr; align-items: end; } }
.bay__draw { background: var(--ground-2); padding: clamp(16px, 3vw, 48px); }
.bay__draw svg { width: 100%; height: auto; display: block; }
.bay__parts { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 28px; margin: 0; }
.bay__parts dt { font-weight: 800; font-size: 20px; }
.bay__parts dd { margin: .3em 0 0; }
.bay-ball { animation: shot 3.6s var(--ease) infinite; transform-box: fill-box; }
.bay-club { transform-origin: 312px 255px; animation: swing 3.6s var(--ease) infinite; }
.bay-sky { animation: sky 3.6s ease-in-out infinite; }
@keyframes shot {
  0%, 22% { transform: translate(0, 0); opacity: 1; }
  48% { transform: translate(296px, -190px); opacity: 1; }
  50%, 100% { transform: translate(296px, -190px); opacity: 0; }
}
@keyframes swing { 0% { transform: rotate(0); } 12% { transform: rotate(-62deg); } 22% { transform: rotate(18deg); } 34%, 100% { transform: rotate(0); } }
@keyframes sky { 0%, 45% { opacity: 1; } 50% { opacity: .55; } 60%, 100% { opacity: 1; } }

/* ---------- events: alternating picture and text */
.events { display: grid; gap: clamp(56px, 8vw, 120px); }
.ev { display: grid; gap: 28px; align-items: center; }
.ev__pic { aspect-ratio: 4 / 3; }
.ev__text p { font-size: 19px; max-width: 46ch; }
@media (min-width: 900px) {
  .ev { grid-template-columns: 1.35fr 1fr; gap: 64px; }
  .ev--flip .ev__pic { order: 2; }
}

/* ---------- games: night field with the leaderboard */
.games { background: var(--night); color: #fff; margin-top: var(--gap); padding-bottom: var(--gap) !important; display: grid; gap: 48px; }
@media (min-width: 900px) { .games { grid-template-columns: 1.1fr 1fr; align-items: start; } }
.games__list { display: grid; gap: 26px; margin: 0; }
.games__list dt { font-size: 22px; font-weight: 800; }
.games__list dd { margin: .25em 0 0; color: #d7ddd9; max-width: 44ch; }
.board { background: var(--fairway); padding: 28px; font-variant-numeric: tabular-nums; }
.board__title { margin: 0 0 18px; font-weight: 800; font-size: 22px; }
.board__rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.board__rows li { display: flex; justify-content: space-between; padding: 12px 16px; background: var(--fairway-2); font-size: 19px; }
.board__rows li:first-child { background: var(--flag); }
.board__rows b { font-weight: 800; }
.board__note { font-size: 14px; color: #b9c9bf; margin: 14px 0 0; }

/* ---------- scorecard: the fairway field */
.card { background: var(--fairway); color: #fff; padding-bottom: var(--gap) !important; margin-top: 0; }
.games + .card { margin-top: 0; }
.card__head { display: grid; gap: 24px; margin-bottom: 40px; }
@media (min-width: 900px) { .card__head { grid-template-columns: 1.2fr 1fr; align-items: end; } }
.card__scroll { overflow-x: auto; }
.score { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
@media (max-width: 640px) { .score th:nth-child(4), .score td:nth-child(4) { display: none; } }
.score th, .score td { text-align: left; padding: 16px 14px; border-bottom: 2px solid rgba(255, 255, 255, .18); vertical-align: top; }
.score thead th { font-size: 15px; font-weight: 600; color: #cfe0d6; }
.score tbody th { font-size: clamp(1.3rem, 2.4vw, 2rem); font-weight: 800; letter-spacing: -.01em; }
.score tbody th a { text-decoration: none; display: inline-block; transition: transform .25s var(--ease); }
.score tbody tr:hover th a { transform: translateX(8px); }
.score__hole { font-size: clamp(1.3rem, 2.4vw, 2rem); font-weight: 800; width: 3ch; color: var(--sky); }
.score tr.is-here { background: var(--flag); }
.score tr.is-here .score__hole { color: #fff; }
.card .note { color: #cfe0d6; }

/* ---------- our own photos */
.team { display: grid; gap: 40px; }
.team__pics { display: grid; gap: 8px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 900px) { .team { grid-template-columns: .8fr 1.6fr; align-items: center; } .team__pics { grid-template-columns: repeat(4, 1fr); } }
.team__pics .pic { aspect-ratio: 3 / 4; }

/* ---------- packs */
.packs__row { display: grid; gap: 16px; }
@media (min-width: 900px) { .packs__row { grid-template-columns: 1.2fr 1fr 1fr; } }
.pack { background: var(--ground-2); padding: 32px; transition: transform .3s var(--ease); }
.pack:hover { transform: translateY(-4px); }
.pack--main { background: var(--turf-dark); color: #fff; }
.pack__d { margin: 0; font-weight: 600; }
.pack__p { font-size: clamp(2.4rem, 4.5vw, 3.6rem); font-weight: 800; letter-spacing: -.03em; margin: .3em 0 .4em; font-variation-settings: "wdth" 80; }
.pack ul, .points__list, .local ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.pack li, .points__list li { padding-left: 26px; position: relative; }
.pack li::before, .points__list li::before { content: ""; position: absolute; left: 0; top: .45em; width: 12px; height: 12px; border-radius: 50%; background: currentColor; opacity: .85; }

/* ---------- day line */
.day__line { list-style: none; margin: 0; padding: 0; display: grid; gap: 28px; }
@media (min-width: 900px) { .day__line { grid-template-columns: repeat(4, 1fr); } }
.day__line li { background: var(--ground-2); padding: 28px; }
.day__line b { display: block; font-size: clamp(2.2rem, 4vw, 3.4rem); font-weight: 800; letter-spacing: -.03em; color: var(--turf-dark); font-variation-settings: "wdth" 75; }
.day__line p { margin: .5em 0 0; }

/* ---------- needs */
.needs__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
@media (min-width: 900px) { .needs__list { grid-template-columns: repeat(4, 1fr); } }
.needs__list li { background: var(--turf); color: #fff; padding: 28px; display: grid; gap: 6px; }
.needs__list b { font-size: clamp(2rem, 3.6vw, 3rem); font-weight: 800; letter-spacing: -.03em; font-variation-settings: "wdth" 78; }

/* ---------- booking ticket (the live thing) */
.book { display: grid; gap: 40px; }
@media (min-width: 1000px) { .book { grid-template-columns: .9fr 1.3fr; align-items: start; } }
.tix { display: grid; grid-template-columns: 56px 1fr; background: #fff; color: var(--ink); }
.tix__stub { background: var(--flag); color: #fff; writing-mode: vertical-rl; transform: rotate(180deg); display: flex; justify-content: space-between; padding: 18px 0; font-weight: 800; font-size: 18px; text-align: center; align-items: center; }
.tix__body { padding: clamp(20px, 3vw, 36px); display: grid; gap: 16px; grid-template-columns: 1fr 1fr; }
.tix label { display: grid; gap: 6px; font-weight: 600; font-size: 15px; }
.tix__wide, .tix__total, .tix__actions { grid-column: 1 / -1; }
.tix input, .tix select { font: inherit; font-size: 17px; min-height: 50px; padding: 0 12px; border: 2px solid var(--ground-2); border-radius: 0; background: var(--ground); color: var(--ink); width: 100%; }
.tix input:focus, .tix select:focus { border-color: var(--turf); outline: none; }
.tix input[type="range"] { padding: 0; border: 0; background: transparent; accent-color: var(--turf); min-height: 36px; }
.tix output[name="hoursOut"] { font-weight: 800; color: var(--turf-dark); }
.tix__total { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin: 6px 0 0; background: var(--ground); padding: 16px 18px; }
.tix__total output { font-size: clamp(2.4rem, 5vw, 3.8rem); font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums; display: inline-block; }
.tix__total output.bump { animation: bump .35s var(--ease); }
@keyframes bump { 40% { transform: scale(1.06); } }
.tix__actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; }
@media (max-width: 560px) {
  .tix { grid-template-columns: 1fr; }
  .tix__stub { writing-mode: horizontal-tb; transform: none; padding: 10px 18px; }
  .tix__body { grid-template-columns: 1fr; }
}

/* ---------- faq */
.faq__list { display: grid; gap: 4px; max-width: 920px; }
.faq details { background: var(--ground-2); }
.faq summary { cursor: pointer; padding: 22px 56px 22px 24px; font-weight: 700; font-size: 20px; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 24px; top: 50%; transform: translateY(-50%); font-size: 28px; font-weight: 400; transition: transform .25s var(--ease); }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { margin: 0; padding: 0 24px 24px; max-width: 70ch; }

/* ---------- town & event pages */
.local { display: grid; gap: 40px; }
@media (min-width: 900px) { .local { grid-template-columns: 1.1fr 1fr; } }
.local__km { font-weight: 700; margin-top: 1.2em; }
.local__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.local li { font-size: 18px; }
.points__list { gap: 14px; }
.points__list li { font-size: clamp(1.15rem, 1.8vw, 1.5rem); max-width: 40ch; }
.incl { display: grid; gap: 56px; }
@media (min-width: 900px) { .incl { grid-template-columns: 1fr 1fr; } }
.extras { width: 100%; border-collapse: collapse; font-size: 19px; }
.extras th, .extras td { text-align: left; padding: 14px 0; border-bottom: 2px solid var(--ground-2); }
.extras td { text-align: right; font-weight: 800; }

/* ---------- plain page head (prices, faq, legal) */
.pagehead { padding-top: 150px !important; }
.page-head-dark .pagehead { background: var(--fairway); color: #fff; padding-bottom: 80px !important; }
.prose { max-width: 760px; }
.prose p { max-width: 65ch; }
.dossier { padding-top: 150px !important; }
.dossier__grid { display: grid; gap: 36px; margin-top: 48px; }
@media (min-width: 800px) { .dossier__grid { grid-template-columns: repeat(3, 1fr); } }

/* ---------- footer: the name returns at full width */
.foot { background: var(--ink); color: #e9ece9; padding: 80px var(--m) 28px; }
.foot__grid { display: grid; gap: 36px; }
@media (min-width: 900px) { .foot__grid { grid-template-columns: 1.4fr 1fr 1fr 1.3fr; } }
.foot nav { display: grid; gap: 8px; align-content: start; }
.foot a { text-decoration: none; }
.foot a:hover { color: #fff; text-decoration: underline; }
.foot__lead { font-size: 26px; font-weight: 700; line-height: 1.2; margin: 0 0 16px; color: #fff; max-width: 18ch; }
.foot__h { font-weight: 800; color: #fff; margin: 0 0 6px; }
.foot__name { font-size: clamp(3rem, 15.5vw, 16rem); font-weight: 800; letter-spacing: -.05em; line-height: .85; margin: 72px 0 0; color: var(--flag); font-variation-settings: "wdth" 70; white-space: nowrap; }
.foot__note { font-size: 14px; color: #9aa59f; margin: 18px 0 0; }

/* ---------- WhatsApp shortcut */
.wa-float { position: fixed; right: 18px; bottom: 18px; width: 58px; height: 58px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; z-index: 30; transition: transform .2s var(--ease); }
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 32px; height: 32px; }

/* ---------- phone */
@media (max-width: 820px) {
  .bar__nav { display: none; }
  .bar__cta { margin-left: auto; }
  body { font-size: 17px; }
  .hero__text { padding-top: 120px; }
}

/* ---------- entrances (only when the script runs) */
.js [data-rise] { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: var(--d, 0ms); }
.js [data-rise].in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js [data-rise] { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

@media print {
  .bar, .wa-float, .foot, [data-print] { display: none !important; }
  body { background: #fff; font-size: 12pt; }
  .dossier { padding-top: 0 !important; }
  .display { font-size: 48pt; }
}
