html { scroll-behavior: smooth; }

body.landing {
  height: auto;
  min-height: 100vh;
  display: block;
  background: var(--ivory);
  color: var(--pine);
  font-family: var(--font-body);
}

body.landing main {
  display: block;
  flex: none;
  min-height: 0;
}

body.landing a { color: inherit; text-decoration: none; }
body.landing a.nav-cta { color: var(--ivory); }
body.landing a.nav-cta:hover { color: var(--pine); }
body.landing button, body.landing input { font: inherit; }

.wrap { width: min(1180px, calc(100% - 48px)); margin: auto; }

body.landing > header.site-header {
  background: var(--ivory);
  color: var(--pine);
  padding: 0;
  display: block;
  position: relative;
}

body.landing .site-header .nav { height: 88px; }

.hero {
  position: relative;
  overflow: hidden;
  background: var(--pine);
  color: var(--ivory);
  min-height: 580px;
  display: flex;
  align-items: center;
}

.hero:before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 78% 40%, rgba(181, 148, 91, .18), transparent 35%),
    linear-gradient(105deg, rgba(27, 59, 43, .98) 0%, rgba(27, 59, 43, .95) 47%, rgba(27, 59, 43, .65) 100%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  align-items: center;
  gap: 44px;
  padding: 78px 0 82px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--brass);
  font-size: 10px;
  letter-spacing: .22em;
  text-transform: uppercase;
  font-weight: 700;
}

.eyebrow:before {
  content: "";
  width: 31px;
  height: 1px;
  background: var(--brass);
}

.hero h1 {
  font: 500 clamp(42px, 5.2vw, 68px) / 1.08 var(--font-display);
  letter-spacing: -.025em;
  margin: 24px 0 20px;
  max-width: 620px;
}

.hero h1 em { color: #D0B77F; font-weight: 400; }

.hero-copy {
  max-width: 480px;
  color: rgba(245, 242, 235, .76);
  font-size: 14px;
  line-height: 1.9;
  margin-bottom: 31px;
}

.search-panel {
  display: flex;
  max-width: 550px;
  background: var(--ivory);
  padding: 6px;
  box-shadow: 0 12px 35px rgba(0, 0, 0, .16);
}

.search-panel input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  padding: 14px 15px;
  color: var(--pine);
  font-size: 12px;
}

.search-panel input::placeholder { color: #78857D; }

.search-panel button {
  border: 0;
  background: var(--brass);
  color: #fff;
  padding: 0 23px;
  font-size: 10px;
  letter-spacing: .1em;
  text-transform: uppercase;
  font-weight: 700;
  cursor: pointer;
}

.search-panel button:hover { background: #9C7D49; }

.search-hint {
  font-size: 10px;
  color: rgba(245, 242, 235, .55);
  margin-top: 13px;
}

.hero-map {
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.map-frame {
  position: relative;
  width: min(100%, 430px);
  height: 430px;
  border: 1px solid rgba(181, 148, 91, .28);
  background:
    radial-gradient(circle at 50% 50%, rgba(245, 242, 235, .045), transparent 65%),
    repeating-linear-gradient(0deg, transparent 0 39px, rgba(245, 242, 235, .045) 40px),
    repeating-linear-gradient(90deg, transparent 0 39px, rgba(245, 242, 235, .045) 40px);
}

.map-frame:before,
.map-frame:after {
  content: "";
  position: absolute;
  border: 1px solid rgba(181, 148, 91, .22);
  border-radius: 50%;
  width: 330px;
  height: 330px;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.map-frame:after { width: 245px; height: 245px; }

.map-label {
  position: absolute;
  color: rgba(245, 242, 235, .46);
  font-size: 9px;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.map-label.north { top: 18px; left: 22px; }
.map-label.south { bottom: 18px; right: 22px; }

.england {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 250px;
  height: 355px;
  transform: translate(-50%, -50%);
}

.england svg { width: 100%; height: 100%; overflow: visible; }
.land { fill: #718578; fill-opacity: .56; stroke: #C6B17F; stroke-width: 1.5; }
.coast-detail { fill: none; stroke: rgba(245, 242, 235, .2); stroke-width: 1; stroke-dasharray: 2 5; }

.pin {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--brass);
  border: 2px solid var(--ivory);
  box-shadow: 0 0 0 5px rgba(181, 148, 91, .17);
}

.pin:after {
  content: "";
  position: absolute;
  inset: -9px;
  border: 1px solid rgba(181, 148, 91, .35);
  border-radius: 50%;
}

.p1 { left: 54%; top: 19%; }
.p2 { left: 35%; top: 39%; }
.p3 { left: 60%; top: 51%; }
.p4 { left: 48%; top: 72%; }
.p5 { left: 28%; top: 83%; }

.map-note {
  position: absolute;
  right: -4px;
  bottom: 42px;
  background: var(--ivory);
  color: var(--pine);
  padding: 14px 17px;
  box-shadow: var(--shadow);
  font-size: 10px;
  letter-spacing: .06em;
}

.map-note strong {
  display: block;
  font: 500 22px var(--font-display);
  margin-bottom: 3px;
}

.section { padding: 82px 0; }

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 32px;
}

.kicker {
  color: var(--terracotta);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  margin-bottom: 13px;
}

.section h2 {
  font: 500 clamp(30px, 3.5vw, 43px) / 1.15 var(--font-display);
  letter-spacing: -.02em;
  margin: 0;
}

.section-intro {
  max-width: 390px;
  color: var(--slate);
  font-size: 12px;
  line-height: 1.8;
  margin: 0;
}

.browse-grid {
  display: grid;
  grid-template-columns: 1.18fr .82fr;
  gap: 22px;
}

.browse-card {
  position: relative;
  min-height: 300px;
  overflow: hidden;
  background: var(--pine);
  color: var(--ivory);
  border: 0;
  width: 100%;
  text-align: left;
  cursor: pointer;
  padding: 0;
  display: block;
}

.browse-card img {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  object-fit: cover;
  opacity: .67;
  transition: transform .6s;
}

.browse-card:hover img { transform: scale(1.04); }

.browse-card:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(15, 37, 26, .88), rgba(15, 37, 26, .03) 75%);
}

.browse-content {
  position: absolute;
  z-index: 1;
  left: 29px;
  right: 29px;
  bottom: 27px;
}

.browse-content span {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: .18em;
  color: #D2B77D;
}

.browse-content h3 {
  font: 500 28px var(--font-display);
  margin: 8px 0;
}

.browse-content p {
  font-size: 11px;
  color: rgba(255, 255, 255, .78);
  margin: 0;
}

.browse-small {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 22px;
}

.browse-small .browse-card { min-height: 139px; }
.browse-small .browse-content { left: 22px; bottom: 19px; }
.browse-small .browse-content h3 { font-size: 22px; margin: 5px 0; }
.browse-small .browse-content p { display: none; }

.featured { background: #fff; }

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

.course-card {
  border: 1px solid var(--line);
  background: #fff;
  transition: transform .2s, box-shadow .2s;
}

.course-card.sk-card {
  pointer-events: none;
}

.course-card.sk-card:hover {
  transform: none;
  box-shadow: none;
}

.course-card .sk-block {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 0;
}

.course-card-enter {
  animation: card-in .35s ease;
}

@keyframes card-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .course-card-enter { animation: none; }
}

.picker-list .sk-row button {
  pointer-events: none;
}

.picker-list .sk-row .sk-line {
  display: inline-block;
}

.course-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.course-image {
  height: 190px;
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(145deg, rgba(27, 59, 43, .88), rgba(92, 111, 104, .55)),
    repeating-linear-gradient(135deg, transparent 0 14px, rgba(245, 242, 235, .06) 15px);
  background-size: cover;
  background-position: center;
}

.course-image.has-photo {
  background-color: #1a1a1a;
}

.course-image.has-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20, 32, 26, .15), rgba(20, 32, 26, .35));
  pointer-events: none;
}

.course-tag {
  position: absolute;
  left: 14px;
  top: 14px;
  background: var(--ivory);
  color: var(--pine);
  padding: 7px 10px;
  font-size: 9px;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-weight: 700;
}

.course-info { padding: 20px 20px 18px; }

.course-location {
  font-size: 9px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--terracotta);
  font-weight: 700;
  margin-bottom: 8px;
}

.course-info h3 {
  font: 500 23px var(--font-display);
  margin: 0 0 7px;
}

.course-meta {
  display: flex;
  gap: 15px;
  color: var(--slate);
  font-size: 10px;
  padding-bottom: 17px;
  border-bottom: 1px solid var(--line);
}

.course-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 14px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.course-link span:last-child {
  color: var(--brass);
  font-size: 18px;
}

.all-courses {
  display: inline-block;
  margin-top: 30px;
  border-bottom: 1px solid var(--brass);
  padding-bottom: 7px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.how {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 70px;
  align-items: start;
}

.how-copy { position: sticky; top: 30px; }

.how-copy p {
  font-size: 12px;
  line-height: 1.9;
  color: var(--slate);
  max-width: 330px;
  margin-top: 20px;
}

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

.step {
  display: grid;
  grid-template-columns: 55px 1fr;
  gap: 20px;
  padding: 25px 0;
  border-bottom: 1px solid var(--line);
}

.step-no {
  font: italic 22px var(--font-display);
  color: var(--brass);
}

.step h3 {
  font: 500 21px var(--font-display);
  margin: 0 0 7px;
}

.step p {
  font-size: 11px;
  line-height: 1.8;
  color: var(--slate);
  margin: 0;
  max-width: 510px;
}

.callout {
  background: var(--pine);
  color: var(--ivory);
  padding: 56px 0;
}

.callout-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 35px;
}

.callout h2 {
  font: 500 clamp(28px, 3vw, 38px) var(--font-display);
  margin: 0 0 8px;
}

.callout p {
  font-size: 11px;
  color: rgba(245, 242, 235, .7);
  margin: 0;
}

.callout a {
  white-space: nowrap;
  border: 1px solid var(--brass);
  color: var(--ivory);
  padding: 14px 20px;
  font-size: 10px;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.callout a:hover { background: var(--brass); }

.site-footer {
  background: #142D21;
  color: var(--ivory);
  padding: 38px 0 25px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  align-items: center;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(245, 242, 235, .16);
}

.footer-brand {
  font: 500 18px var(--font-display);
  letter-spacing: .06em;
}

.footer-note {
  font-size: 10px;
  color: rgba(245, 242, 235, .55);
  margin-top: 5px;
}

.footer-links {
  display: flex;
  gap: 23px;
  font-size: 10px;
  color: rgba(245, 242, 235, .7);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-top: 20px;
  color: rgba(245, 242, 235, .42);
  font-size: 9px;
  letter-spacing: .05em;
}

.picker-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(20, 45, 33, .45);
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.picker-backdrop[hidden] { display: none; }

.picker {
  width: min(520px, 100%);
  max-height: min(70vh, 560px);
  background: var(--ivory);
  color: var(--pine);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}

.picker-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
}

.picker-head h2 {
  margin: 0;
  font: 500 22px var(--font-display);
}

.picker-close {
  border: 0;
  background: transparent;
  font-size: 22px;
  cursor: pointer;
  color: var(--slate);
}

.picker-list {
  overflow: auto;
  margin: 0;
  padding: 8px 0;
  list-style: none;
}

.picker-list button {
  width: 100%;
  border: 0;
  background: transparent;
  text-align: left;
  padding: 12px 20px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--pine);
  font-size: 13px;
}

.picker-list button:hover { background: rgba(27, 59, 43, .06); }

.picker-list .count {
  color: var(--slate);
  font-size: 11px;
}

.picker-empty {
  padding: 24px 20px;
  color: var(--slate);
  font-size: 13px;
}

@media (max-width: 850px) {
  .navlinks { gap: 18px; }
  .hero-inner { grid-template-columns: 1fr .8fr; gap: 15px; }
  .map-frame { height: 360px; }
  .england { height: 300px; width: 210px; }
  .course-grid { gap: 13px; }
  .course-image { height: 155px; }
  .browse-grid { gap: 14px; }
  .browse-small { gap: 14px; }
}

@media (max-width: 650px) {
  .wrap { width: min(100% - 34px, 520px); }
  body.landing .site-header .nav { height: 72px; }
  /* Drop hero marketing + decorative map on small screens */
  .hero { display: none; }
  /* Keep map CTA visible once hero search is gone */
  body.landing .nav-cta { display: inline-block; padding: 10px 12px; font-size: 10px; }
  .section { padding: 58px 0; }
  #explore { padding-top: 28px; }
  .section-head { display: block; }
  .section-intro { margin-top: 16px; }
  .browse-grid { grid-template-columns: 1fr; }
  .browse-card { min-height: 260px; }
  .browse-small {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 160px;
  }
  .browse-small .browse-card { min-height: 160px; }
  .browse-small .browse-content { left: 14px; right: 12px; bottom: 14px; }
  .browse-small .browse-content h3 { font-size: 18px; }
  .course-grid { grid-template-columns: 1fr; }
  .course-image { height: 210px; }
  .how { grid-template-columns: 1fr; gap: 28px; }
  .how-copy { position: static; }
  .callout-inner { display: block; }
  .callout a { display: inline-block; margin-top: 22px; }
  .footer-top, .footer-bottom { display: block; }
  .footer-links { margin-top: 20px; flex-wrap: wrap; }
}
