/* ---------- Fonts ---------- */
@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("../assets/fonts/PlusJakartaSans-Variable.woff2") format("woff2-variations");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Prata";
  src: url("../assets/fonts/Prata-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body, h1, h2, h3, h4, h5, h6, p, figure, blockquote, ul, ol, dl, dd { margin: 0; }
ul[class], ol[class] { list-style: none; padding: 0; }
img, picture, video { max-width: 100%; height: auto; display: block; }
/* <picture> defaults to inline with no height of its own, which breaks any
   img inside it that relies on height:100% of the real container. */
picture { display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
a { color: inherit; }

/* ---------- Document ---------- */
html, body { min-height: 100vh; }

body {
  font-family: var(--font-primary);
  font-size: var(--size-body);
  font-weight: 400;
  line-height: 1.5;
  color: var(--color-text);
  background-color: var(--color-bg);
  overscroll-behavior-y: none;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

body::-webkit-scrollbar { width: var(--scroll-bar-width); }
body::-webkit-scrollbar-track { background: var(--scrollbar-track); }
body::-webkit-scrollbar-thumb { background-color: var(--scrollbar-thumb); }

/* With the menu open the page is pinned so it can't scroll behind the panel.
   Above 1180px Lenis owns the lock instead; body.top is set in JS. */
.is-scroll-locked body { position: fixed; left: 0; right: 0; }
/* The lightbox covers the page; stop it scrolling underneath. */
.is-lightbox-open body { overflow: hidden; }

/* Anchor targets clear the fixed header. The desktop smooth-scroller applies
   its own offset, so this is what mobile taps and deep links use. */
section[id] { scroll-margin-top: calc(var(--header-height) + var(--spacing-16)); }

/* Lenis */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

/* ---------- Stacking ---------- */
.site-sticky { position: fixed; z-index: 40; top: 0; left: 0; right: 0; }
.site-content { position: relative; z-index: 20; }
.site-footer { position: relative; z-index: 10; transform: translateZ(0); }

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-secondary);
  font-weight: 400;
  color: var(--color-heading);
  line-height: 1.4;
}
h1 { font-size: var(--size-h1); }
h2 { font-size: var(--size-h2); }
h3 { font-size: var(--size-h3); }
h4 { font-size: var(--size-h4); }
h5 { font-size: var(--size-h5); }
h6 { font-size: var(--size-h6); }

p { margin-bottom: var(--spacing-paragraph); }
p:last-child { margin-bottom: 0; }
p:empty { display: none; }

a { color: var(--color-permalink); transition: var(--transition); }
a:hover { color: var(--color-permalink-highlight); }

/* Eyebrow / sub-title — letterspaced caps */
.txt_sub_title {
  font-family: var(--font-primary);
  font-size: var(--size-12);
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--color-primary);
  line-height: 1.6;
}

.txt_center { text-align: center; }
.txt_color_white { --color-heading: var(--color-white); --color-permalink: var(--color-white); color: var(--color-white); }
.txt_color_white .txt_sub_title { color: var(--color-white); }
.txt_16px { font-size: var(--size-16); }

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gap-side) * 2);
  margin-inline: auto;
  padding-inline: var(--gap-side);
}
.container-small { max-width: calc(var(--container-small) + var(--gap-side) * 2); }

.section { padding-block: var(--spacing-default); }
.section--flush-top { padding-top: 0; }
.section--flush-bottom { padding-bottom: 0; }
.bg-sand-1 { background-color: var(--color-sand-1); }
.bg-sand-2 { background-color: var(--color-sand-2); }
.bg-sea { background-color: var(--color-sea); color: var(--color-white); }

.mb-heading { margin-bottom: var(--spacing-heading) !important; }
.mb-20 { margin-bottom: var(--spacing-20) !important; }
.mb-32 { margin-bottom: var(--spacing-32) !important; }
.mb-40 { margin-bottom: var(--spacing-40) !important; }
.mb-0 { margin-bottom: 0 !important; }

/* ---------- Focus ---------- */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
  border-radius: 3px;
}

.visually-hidden {
  position: absolute; overflow: hidden; clip: rect(0 0 0 0);
  width: 1px; height: 1px; margin: -1px; padding: 0; border: 0;
}

.skip-link {
  position: absolute; top: -100px; left: var(--spacing-16); z-index: 100;
  background: var(--color-primary); color: #fff; padding: 12px 20px;
  transition: top .2s ease;
}
.skip-link:focus { top: var(--spacing-16); color: #fff; }

/* ---------- Hover image ---------- */
.hover-image { position: relative; overflow: hidden; display: block; }
.hover-image::before {
  content: ""; position: absolute; inset: 0; background: var(--color-black);
  z-index: 1; pointer-events: none; opacity: 0; transition: opacity .3s;
}
.hover-image img { transition: transform .6s cubic-bezier(.22,.61,.36,1); width: 100%; }
.hover-trigger:hover .hover-image::before,
a.hover-image:hover::before { opacity: .3; }
.hover-trigger:hover .hover-image img,
a.hover-image:hover img { transform: scale(1.05); }

/* ---------- Responsive helpers ---------- */
.hidden-mobile, .hidden-tablet-v, .hidden-tablet-h, .hidden-touch { display: block; }
.show-mobile, .show-tablet-v, .show-tablet-h, .show-touch { display: none; }

@media only screen and (max-width: 1180px) {
  .hidden-touch { display: none; }
  .show-touch { display: block; }
}
@media only screen and (max-width: 1024px) {
  .hidden-tablet-h { display: none; }
  .show-tablet-h { display: block; }
}
@media only screen and (max-width: 768px) {
  .hidden-tablet-v { display: none; }
  .show-tablet-v { display: block; }
}
@media only screen and (max-width: 480px) {
  .hidden-mobile { display: none; }
  .show-mobile { display: block; }
}
