:root {
  --forest: #063d34;
  --deep: #022a25;
  --mint: #a7ddca;
  --gold: #d2a23d;
  --cream: #f6f0e3;
  --coral: #e96f50;
  --ink: #062f2a;
  --display: "Exo", Arial, sans-serif;
  --body: "Montserrat", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--cream); }
body { margin: 0; color: var(--ink); background: var(--cream); font-family: var(--body); }
button, select, input, a { font: inherit; }
button { cursor: pointer; }
a { color: inherit; }
.tool-shell { min-height: 100svh; }
.tool-header {
  position: absolute; z-index: 20; inset: 0 0 auto; height: 82px; padding: 12px clamp(20px,4vw,58px);
  display: flex; align-items: center; justify-content: space-between; color: white;
  background: linear-gradient(180deg,rgba(1,25,22,.88),transparent);
}
.tool-logo img { display: block; width: 98px; height: 54px; object-fit: contain; filter: brightness(0) invert(1); }
.tool-nav { display: flex; align-items: center; gap: 22px; }
.tool-nav a { text-decoration: none; text-transform: uppercase; letter-spacing: .1em; font-size: 11px; font-weight: 600; }
.tool-nav .outline-link { padding: 11px 16px; border: 1px solid rgba(255,255,255,.55); border-radius: 99px; }
.eyebrow { margin: 0 0 14px; color: var(--mint); text-transform: uppercase; letter-spacing: .16em; font-size: 11px; font-weight: 600; }
.tool-hero { position: relative; min-height: 62svh; display: flex; align-items: flex-end; overflow: hidden; color: white; background-position: center; background-size: cover; }
.tool-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg,rgba(1,28,24,.92),rgba(1,28,24,.35) 62%,rgba(1,28,24,.08)),linear-gradient(0deg,rgba(1,28,24,.86),transparent 65%); }
.tool-hero-content { position: relative; z-index: 2; width: min(1240px,91vw); margin: 0 auto; padding: 120px 0 54px; }
.tool-hero h1 { max-width: 940px; margin: 0; font: 600 clamp(44px,7vw,94px)/.91 var(--display); letter-spacing: -.055em; text-transform: uppercase; }
.tool-hero h1 em { color: var(--gold); font-style: normal; }
.tool-hero-copy { max-width: 700px; margin: 22px 0 0; color: #eef7f2; font-size: clamp(15px,1.55vw,20px); line-height: 1.55; }
.tool-main { width: min(1240px,91vw); margin: 0 auto; padding: 54px 0 80px; }
.section-title { margin: 0; font: 600 clamp(30px,4vw,52px)/.98 var(--display); letter-spacing: -.04em; text-transform: uppercase; }
.section-copy { max-width: 680px; margin: 14px 0 0; color: #52615e; line-height: 1.6; }
.primary-button { display: inline-flex; align-items: center; justify-content: center; gap: 22px; min-height: 54px; padding: 0 22px; border: 0; border-radius: 3px; color: var(--deep); background: var(--gold); text-decoration: none; text-transform: uppercase; letter-spacing: .08em; font-size: 11px; font-weight: 600; }
.tool-footer { padding: 34px 4.5vw; display: flex; justify-content: space-between; gap: 20px; color: var(--cream); background: var(--deep); font-size: 11px; line-height: 1.6; }
.tool-footer a { color: var(--gold); text-decoration: none; }

/* Tournament calendar */
.calendar-hero {
  min-height: 190px;
  max-height: 190px;
  background-image: url("assets/tournament-desert-crowd.jpg");
}
.calendar-hero .tool-hero-content { padding-top: 64px; padding-bottom: 15px; }
.calendar-hero h1 {
  max-width: 1080px;
  font-size: clamp(32px,3vw,44px);
  line-height: 1;
  letter-spacing: -.045em;
}
.calendar-hero .eyebrow { margin-bottom: 6px; font-size: 9px; }
.calendar-hero .tool-hero-copy { max-width: 900px; margin-top: 8px; font-size: 12px; line-height: 1.4; }
.calendar-page .tool-main { padding-top: 12px; }
.calendar-toolbar { margin: 0 0 14px; position: relative; z-index: 4; padding: 14px 18px; display: flex; align-items: center; justify-content: space-between; gap: 18px; color: white; background: var(--forest); box-shadow: 0 12px 28px rgba(3,41,35,.13); }
.calendar-toolbar p { margin: 0; font: 600 18px var(--display); text-transform: uppercase; }
.calendar-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-button { padding: 10px 15px; border: 1px solid rgba(255,255,255,.35); border-radius: 99px; color: white; background: transparent; text-transform: uppercase; letter-spacing: .09em; font-size: 10px; }
.filter-button.is-active { color: var(--deep); border-color: var(--gold); background: var(--gold); }
.event-list { margin-top: 0; display: grid; gap: 20px; }
.event-card { min-height: 330px; display: grid; grid-template-columns: minmax(250px,.88fr) 1.12fr; background: white; box-shadow: 0 12px 30px rgba(6,47,42,.08); overflow: hidden; }
.event-card[hidden] { display: none; }
.event-image { min-height: 300px; background-position: center; background-size: cover; }
.event-content { padding: clamp(26px,4vw,48px); display: flex; flex-direction: column; justify-content: center; }
.event-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 17px; }
.event-meta span { padding: 8px 10px; color: var(--forest); background: #e6efe9; text-transform: uppercase; letter-spacing: .09em; font-size: 9px; font-weight: 600; }
.event-meta .confirmed { color: #613516; background: #f4dfc4; }
.event-content h2 { margin: 0; font: 600 clamp(27px,3.2vw,44px)/.98 var(--display); letter-spacing: -.035em; text-transform: uppercase; }
.event-date { margin: 13px 0 0; color: var(--coral); font-size: 14px; font-weight: 600; text-transform: uppercase; letter-spacing: .07em; }
.event-description { margin: 15px 0 0; color: #52615e; font-size: 14px; line-height: 1.65; }
.event-actions { margin-top: 22px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.text-link { border: 0; border-bottom: 1px solid var(--forest); padding: 0 0 4px; color: var(--forest); background: transparent; text-decoration: none; text-transform: uppercase; letter-spacing: .08em; font-size: 10px; font-weight: 600; }
.calendar-note { margin: 15px 0 0; color: #64716f; font-size: 10px; line-height: 1.55; }
.calendar-cta {
  margin-top: 24px;
  padding: clamp(30px,3.8vw,50px);
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  align-items: center;
  gap: clamp(30px,5vw,72px);
  color: white;
  background: var(--forest);
  position: relative;
  overflow: hidden;
}
.calendar-cta::after { content: ""; position: absolute; width: 180px; height: 180px; right: -85px; top: -90px; border: 1px solid rgba(210,162,61,.22); border-radius: 50%; }
.calendar-cta > * { position: relative; z-index: 1; }
.calendar-cta .eyebrow { margin-bottom: 10px; }
.calendar-cta h2 { max-width: 680px; margin: 0; font: 600 clamp(29px,3.1vw,44px)/.98 var(--display); text-transform: uppercase; letter-spacing: -.035em; }
.calendar-cta-action { padding-left: clamp(0px,2vw,28px); border-left: 1px solid rgba(255,255,255,.2); }
.calendar-cta-action p { max-width: 560px; margin: 0 0 20px; color: #d4e7df; font-size: 13px; line-height: 1.65; }

/* Cost calculator */
.calculator-hero {
  min-height: 190px;
  max-height: 190px;
  background-image: url("assets/golfers-dubai-skyline.jpg");
}
.calculator-hero .tool-hero-content { padding-top: 67px; padding-bottom: 16px; }
.calculator-hero h1 {
  max-width: 1050px;
  font-size: clamp(34px,3.35vw,52px);
  line-height: 1;
  letter-spacing: -.045em;
}
.calculator-hero .eyebrow { margin-bottom: 8px; }
.calculator-hero .tool-hero-copy { max-width: 850px; margin-top: 10px; font-size: clamp(13px,1vw,15px); line-height: 1.4; }
.planner-page .tool-main { padding-top: 12px; }
.calculator-layout { margin-top: 0; position: relative; z-index: 4; display: grid; grid-template-columns: 1.12fr .88fr; align-items: stretch; box-shadow: 0 20px 55px rgba(3,41,35,.16); }
.calculator-form { padding: clamp(24px,3vw,40px); background: white; }
.calculator-form h2 { margin: 0 0 5px; font: 600 clamp(25px,2.7vw,36px)/1 var(--display); text-transform: uppercase; }
.calculator-form > p { margin: 0 0 20px; color: #65716f; font-size: 12px; line-height: 1.5; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 16px; }
.field { display: flex; flex-direction: column; gap: 9px; }
.field.full { grid-column: 1 / -1; }
.field label, .field legend { color: var(--forest); text-transform: uppercase; letter-spacing: .09em; font-size: 10px; font-weight: 600; }
.field select, .field input[type="number"] { width: 100%; min-height: 49px; padding: 0 13px; border: 1px solid #c9d1cc; color: var(--ink); background: #fbfaf6; border-radius: 0; }
.choice-row { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; }
.choice-row input { position: absolute; opacity: 0; pointer-events: none; }
.choice-row label { min-height: 48px; display: grid; place-items: center; padding: 8px; border: 1px solid #c9d1cc; color: #52615e; background: #fbfaf6; text-align: center; cursor: pointer; }
.choice-row input:checked + label { color: white; border-color: var(--forest); background: var(--forest); }
.estimate-panel { position: sticky; top: 0; min-height: 100%; padding: clamp(27px,3.2vw,43px); color: white; background: var(--forest); }
.estimate-label { margin: 0; color: var(--mint); text-transform: uppercase; letter-spacing: .14em; font-size: 10px; font-weight: 600; }
.estimate-value { margin: 11px 0 4px; font: 600 clamp(36px,4vw,56px)/.92 var(--display); letter-spacing: -.04em; }
.estimate-per-person { margin: 0 0 18px; color: #c9ddd6; font-size: 11px; }
.journey-profile-title { max-width: 520px; margin: 12px 0 8px; font: 600 clamp(30px,3.5vw,48px)/.95 var(--display); letter-spacing: -.04em; text-transform: uppercase; }
.journey-profile-copy { max-width: 560px; margin: 0 0 20px; color: #c9ddd6; font-size: 12px; line-height: 1.6; }
.estimate-summary { margin: 0 0 20px; padding: 0; list-style: none; border-top: 1px solid rgba(255,255,255,.2); }
.estimate-summary li { padding: 9px 0; display: flex; justify-content: space-between; gap: 20px; border-bottom: 1px solid rgba(255,255,255,.15); font-size: 10px; }
.estimate-summary span:first-child { color: #bcd2ca; }
.estimate-disclaimer { margin: 17px 0 0; color: #a9c3ba; font-size: 9px; line-height: 1.55; }
.calculator-after { padding-top: 54px; display: grid; grid-template-columns: .85fr 1.15fr; gap: 50px; }
.calculator-after p { color: #52615e; line-height: 1.65; }
.included-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.included-item { padding: 18px; color: var(--forest); background: #e6efe9; font: 600 12px var(--display); text-transform: uppercase; }

@media (max-width: 780px) {
  .tool-header { height: 65px; }
  .tool-logo img { width: 76px; height: 42px; }
  .tool-nav > a:first-child { display: none; }
  .tool-nav .outline-link { padding: 9px 11px; font-size: 9px; }
  .tool-hero { min-height: 55svh; }
  .tool-hero-content { padding: 100px 0 38px; }
  .tool-hero h1 { font-size: clamp(39px,12vw,59px); }
  .tool-hero-copy { font-size: 14px; }
  .tool-main { padding: 36px 0 58px; }
  .calendar-hero { min-height: 205px; max-height: 205px; }
  .calendar-hero .tool-hero-content { padding-top: 61px; padding-bottom: 14px; }
  .calendar-hero h1 { max-width: 350px; font-size: clamp(28px,8vw,36px); }
  .calendar-hero .tool-hero-copy { max-width: 340px; margin-top: 7px; font-size: 10px; line-height: 1.35; }
  .calendar-hero .eyebrow { font-size: 8px; }
  .calendar-page .tool-main { padding-top: 9px; }
  .calendar-toolbar { margin: 0 0 10px; padding: 12px; align-items: flex-start; flex-direction: column; }
  .calendar-toolbar p { font-size: 15px; }
  .event-card { grid-template-columns: 1fr; }
  .event-image { min-height: 230px; }
  .event-content { padding: 25px 21px 29px; }
  .calendar-cta { grid-template-columns: 1fr; gap: 20px; margin-top: 18px; padding: 29px 22px; }
  .calendar-cta h2 { font-size: clamp(27px,8vw,36px); }
  .calendar-cta-action { padding: 19px 0 0; border-left: 0; border-top: 1px solid rgba(255,255,255,.2); }
  .calendar-cta-action p { font-size: 12px; }
  .calculator-hero { min-height: 205px; max-height: 205px; }
  .calculator-hero .tool-hero-content { padding-top: 62px; padding-bottom: 15px; }
  .calculator-hero h1 { max-width: 350px; font-size: clamp(30px,8.7vw,39px); }
  .calculator-hero .tool-hero-copy { max-width: 340px; margin-top: 9px; font-size: 11px; line-height: 1.4; }
  .calculator-hero .eyebrow { font-size: 8px; }
  .planner-page .tool-main { padding-top: 9px; }
  .calculator-layout { margin-top: 0; grid-template-columns: 1fr; }
  .calculator-form, .estimate-panel { padding: 27px 20px; }
  .estimate-panel { position: static; }
  .field-grid { grid-template-columns: 1fr; }
  .field.full { grid-column: auto; }
  .calculator-after { grid-template-columns: 1fr; gap: 23px; }
  .included-grid { grid-template-columns: 1fr 1fr; }
  .tool-footer { flex-direction: column; }
}

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