/* ===== Cochrane Castle Golf Club — design system ===== */
:root {
  --navy: #0d223e; /* deep heritage navy */
  --navy-2: #14315a;
  --royal: #1f4fa0; /* crest ribbon blue (accent, sparing) */
  --gold: #c3a24e; /* heraldic gold */
  --gold-2: #d8bd77;
  --cream: #f6f0e3; /* ivory */
  --cream-2: #ece2cd;
  --ink: #1d1c19;
  --muted: #6b6558;
  --radius: 22px;
  --maxw: 1200px;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Jost", system-ui, -apple-system, sans-serif;
}
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: inherit;
  text-decoration: none;
}
h1,
h2,
h3,
h4 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: 0.01em;
}
.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 28px;
}
.eyebrow {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
}
.section {
  padding: 120px 0;
}
.section--tight {
  padding: 84px 0;
}

/* ===== buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--sans);
  font-size: 14px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
  padding: 16px 34px;
  border-radius: 100px;
  transition: 0.35s;
  cursor: pointer;
  border: 1px solid transparent;
}
.btn--gold {
  background: var(--gold);
  color: var(--navy);
}
.btn--gold:hover {
  background: var(--gold-2);
}
.btn--cream {
  background: var(--cream);
  color: var(--navy);
}
.btn--cream:hover {
  background: #fff;
}
.btn--outline {
  border-color: rgba(255, 255, 255, 0.5);
  color: #fff;
}
.btn--outline:hover {
  background: #fff;
  color: var(--navy);
}
.btn--ghost {
  border-color: var(--navy);
  color: var(--navy);
}
.btn--ghost:hover {
  background: var(--navy);
  color: var(--cream);
}
.btn .arrow {
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid currentColor;
  font-size: 11px;
}

/* ===== nav ===== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 60;
  transition: 0.4s;
}
.nav__inner {
  max-width: 1280px;
  margin: 16px auto 0;
  padding: 10px 14px 10px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(13, 34, 62, 0.55);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(246, 240, 227, 0.14);
  border-radius: 100px;
}
.nav.scrolled .nav__inner {
  background: rgba(13, 34, 62, 0.9);
}
.nav__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--cream);
}
.nav__crest {
  width: 34px;
  height: 34px;
}
.nav__brand-txt {
  font-family: var(--serif);
  font-size: 19px;
  color: var(--cream);
  letter-spacing: 0.02em;
  line-height: 1;
}
.nav__brand-txt small {
  display: block;
  font-family: var(--sans);
  font-size: 8.5px;
  letter-spacing: 0.34em;
  color: var(--gold);
  text-transform: uppercase;
  margin-top: 3px;
}
.nav__links {
  display: flex;
  gap: 6px;
  align-items: center;
}
.nav__links a {
  color: var(--cream);
  font-size: 12.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 9px 15px;
  border-radius: 100px;
  transition: 0.3s;
  opacity: 0.86;
}
.nav__links a:hover {
  opacity: 1;
  background: rgba(246, 240, 227, 0.1);
}
.nav__links a.cta {
  background: var(--gold);
  color: var(--navy);
  opacity: 1;
}
.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
}
.nav__burger span {
  width: 22px;
  height: 2px;
  background: var(--cream);
  display: block;
}

/* ===== hero ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--cream);
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.05);
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(13, 34, 62, 0.55) 0%,
    rgba(13, 34, 62, 0.25) 40%,
    rgba(13, 34, 62, 0.7) 100%
  );
}
.hero__content {
  position: relative;
  z-index: 2;
  padding: 0 24px;
  max-width: 900px;
}
.hero__est {
  font-family: var(--sans);
  letter-spacing: 0.4em;
  font-size: 11px;
  text-transform: uppercase;
  opacity: 0.85;
}
.hero__title {
  font-size: clamp(46px, 8vw, 104px);
  font-weight: 500;
  letter-spacing: 0.02em;
  margin: 14px 0 6px;
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.35);
}
.hero__sub {
  font-family: var(--sans);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  font-size: 13px;
  color: var(--gold-2);
}
.hero__cta {
  margin-top: 40px;
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}
.hero__motto {
  position: absolute;
  bottom: 38px;
  left: 0;
  right: 0;
  text-align: center;
  z-index: 2;
  font-family: var(--serif);
  font-style: italic;
  font-size: 19px;
  letter-spacing: 0.18em;
  color: rgba(246, 240, 227, 0.9);
}

/* ===== section headers ===== */
.head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 60px;
}
.head h2 {
  font-size: clamp(38px, 5vw, 64px);
  color: var(--navy);
  margin: 14px 0 18px;
  letter-spacing: 0.06em;
}
.head p {
  color: var(--muted);
  font-size: 18px;
}

/* ===== card trio ===== */
.trio {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 360px;
  display: flex;
  align-items: flex-end;
  color: #fff;
  isolation: isolate;
}
.card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  transition: 0.6s;
}
.card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(13, 34, 62, 0.85));
  z-index: -1;
}
.card:hover img {
  transform: scale(1.06);
}
.card__body {
  padding: 26px;
}
.card__body h3 {
  font-size: 26px;
  margin-bottom: 6px;
}
.card__link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-2);
}
.card__link .arrow {
  width: 26px;
  height: 26px;
  border: 1px solid var(--gold-2);
  border-radius: 50%;
  display: grid;
  place-items: center;
}

/* ===== feature panel (navy, icon grid) ===== */
.panel {
  background: var(--navy);
  color: var(--cream);
  border-radius: 38px;
  padding: 96px 60px;
  position: relative;
  overflow: hidden;
}
.panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    120% 80% at 50% -10%,
    rgba(31, 79, 160, 0.28),
    transparent 60%
  );
}
.panel h2 {
  position: relative;
  text-align: center;
  font-size: clamp(34px, 4.6vw, 58px);
  letter-spacing: 0.06em;
  margin-bottom: 64px;
}
.feat {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 44px 28px;
}
.feat__item {
  text-align: center;
}
.feat__ico {
  width: 52px;
  height: 52px;
  margin: 0 auto 16px;
  color: var(--gold);
}
.feat__item h4 {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.08em;
  color: var(--cream);
}

/* ===== alternating feature rows ===== */
.rows {
  display: flex;
  flex-direction: column;
  gap: 120px;
}
.row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: center;
}
.row--rev .row__img {
  order: 2;
}
.row__img {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/3;
  box-shadow: 0 30px 60px -30px rgba(13, 34, 62, 0.4);
}
.row__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.row__txt h2 {
  font-size: clamp(34px, 4.4vw, 56px);
  color: var(--navy);
  letter-spacing: 0.06em;
  margin-bottom: 20px;
}
.row__txt p {
  color: var(--muted);
  margin-bottom: 30px;
  max-width: 460px;
}

/* ===== join CTA (full bleed) ===== */
.join {
  position: relative;
  min-height: 64vh;
  display: grid;
  place-items: center;
  text-align: center;
  color: #fff;
  overflow: hidden;
}
.join__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}
.join::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(13, 34, 62, 0.5);
}
.join__c {
  position: relative;
  z-index: 2;
}
.join__c h2 {
  font-size: clamp(46px, 7vw, 96px);
  letter-spacing: 0.04em;
  line-height: 0.98;
  margin-bottom: 30px;
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.3);
}

/* ===== footer ===== */
.foot {
  background: var(--navy);
  color: var(--cream);
  padding: 80px 0 34px;
}
.foot__top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 50px;
  border-bottom: 1px solid rgba(246, 240, 227, 0.14);
}
.foot__brand {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.foot__brand .nav__crest {
  width: 56px;
  height: 56px;
}
.foot__brand h3 {
  font-size: 26px;
  letter-spacing: 0.03em;
}
.foot__brand small {
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.3em;
  color: var(--gold);
  text-transform: uppercase;
  display: block;
  margin-top: 6px;
}
.foot__brand p {
  color: rgba(246, 240, 227, 0.6);
  font-size: 14px;
  margin-top: 14px;
  max-width: 320px;
}
.foot__col h5 {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
}
.foot__col a {
  display: block;
  color: rgba(246, 240, 227, 0.8);
  font-size: 14px;
  padding: 5px 0;
  transition: 0.3s;
}
.foot__col a:hover {
  color: var(--gold-2);
  padding-left: 5px;
}
.foot__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 26px;
  color: rgba(246, 240, 227, 0.5);
  font-size: 12px;
  letter-spacing: 0.06em;
  flex-wrap: wrap;
  gap: 12px;
}
.foot__social {
  display: flex;
  gap: 14px;
}
.foot__social a {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(246, 240, 227, 0.25);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--cream);
  transition: 0.3s;
}
.foot__social a:hover {
  background: var(--gold);
  color: var(--navy);
  border-color: var(--gold);
}

/* ===== music toggle ===== */
.music {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 70;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--gold);
  border: 1px solid var(--gold);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: 0.3s;
}
.music:hover {
  background: var(--gold);
  color: var(--navy);
}
.music .bars {
  display: flex;
  gap: 2px;
  align-items: flex-end;
  height: 16px;
}
.music .bars i {
  width: 2.5px;
  background: currentColor;
  height: 6px;
  animation: eq 1s ease-in-out infinite;
}
.music.paused .bars i {
  animation-play-state: paused;
  height: 5px;
}
.music .bars i:nth-child(2) {
  animation-delay: 0.2s;
}
.music .bars i:nth-child(3) {
  animation-delay: 0.4s;
}
.music .bars i:nth-child(4) {
  animation-delay: 0.1s;
}
@keyframes eq {
  0%,
  100% {
    height: 5px;
  }
  50% {
    height: 15px;
  }
}

/* ===== reveal on scroll ===== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: 0.9s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.reveal.in {
  opacity: 1;
  transform: none;
}

/* ===== responsive ===== */
@media (max-width: 900px) {
  .nav__links {
    display: none;
  }
  .nav__burger {
    display: flex;
  }
  .trio {
    grid-template-columns: 1fr;
  }
  .feat {
    grid-template-columns: repeat(2, 1fr);
  }
  .row,
  .row--rev .row__img {
    grid-template-columns: 1fr;
    order: 0;
  }
  .row {
    gap: 34px;
  }
  .panel {
    padding: 64px 26px;
    border-radius: 26px;
  }
  .foot__top {
    grid-template-columns: 1fr;
  }
  .section {
    padding: 80px 0;
  }
}

video.hero__bg{width:100%;height:100%;object-fit:cover}

@media(max-width:760px){[style*="repeat(3,1fr)"]{grid-template-columns:1fr !important}[style*="repeat(2,1fr)"]{grid-template-columns:1fr !important}}
