/* ============================================================
   BlackOak — Base: fonts, reset, primitives
   ============================================================ */

/* ===== Fonts (self-hosted, copied from the nazish reference) ===== */
@font-face {
  font-family: 'Plus Jakarta Sans';
  src: url('../assets/fonts/PlusJakartaSans-VariableFont_wght.ttf') format('truetype-variations'),
    url('../assets/fonts/PlusJakartaSans-VariableFont_wght.ttf') format('truetype');
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Playfair Display';
  src: url('../assets/fonts/PlayfairDisplay-Regular.ttf') format('truetype');
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

/* Variable italic, so the hero display can sit at Medium (500) as designed.
   The static Regular Italic stays behind it for engines without variations. */
@font-face {
  font-family: 'Playfair Display';
  src: url('../assets/fonts/PlayfairDisplay-Italic[wght].ttf') format('truetype-variations'),
    url('../assets/fonts/PlayfairDisplay-Italic.ttf') format('truetype');
  font-weight: 400 700;
  font-style: italic;
  font-display: swap;
}

/* ===== Reset ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  /* Anchor targets clear the fixed header */
  scroll-padding-top: var(--header-h);
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  background-color: var(--surface-base);
  color: var(--text-100);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body.is-locked {
  overflow: hidden;
}

img,
picture,
video,
svg,
canvas {
  display: block;
  max-width: 100%;
}

ul,
ol {
  list-style: none;
}

a {
  color: inherit;
  text-decoration: none;
}

input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
}

/* Anything clickable gets the pointer, including <a> acting as a button,
   the custom-styled <select>, and the divs that only exist to be clicked
   (the lightbox backdrop). */
button,
[role='button'],
a[href],
label[for],
summary,
select,
.btn,
.link,
.chip-link,
[data-lightbox-close] {
  cursor: pointer;
}

button:disabled,
.btn:disabled,
[aria-disabled='true'] {
  cursor: not-allowed;
}

button {
  background: none;
  border: none;
}

h1,
h2,
h3,
h4 {
  font-weight: 400;
}

::selection {
  background: var(--text-0);
  color: var(--text-ink);
}

:focus-visible {
  outline: 2px solid var(--text-0);
  outline-offset: 3px;
}

/* Screen-reader only */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 200;
  padding: 12px 20px;
  background: var(--text-0);
  color: var(--text-ink);
  font-size: var(--fs-small);
  font-weight: 600;
  transform: translateY(-120%);
  transition: transform 0.2s var(--ease-out-quart);
}

.skip-link:focus {
  transform: translateY(0);
}

/* ============================================================
   Layout primitives
   ============================================================ */

.shell {
  width: 100%;
  max-width: var(--content-max-width);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}

/* Same max-width container, but children manage their own gutters —
   used by full-bleed hairline grids. */
.shell--flush {
  padding-inline: 0;
}

.section {
  position: relative;
  padding-block: var(--section-pad-y);
}

.section--tight {
  padding-block: calc(var(--section-pad-y) * 0.7);
}

/* ----- Section surfaces -----
   Alternated down the page so adjacent sections never share a tone. */
.section--base {
  background-color: var(--surface-base);
}

.section--raised {
  background-color: var(--surface-raised);
}

/* Full-bleed photographic bands (mandate, MDL) sit on pure black. They are
   not `.section`s — they set their own background — so no modifier here. */

/* ============================================================
   Typography primitives
   ============================================================ */

.h1 {
  font-size: var(--fs-display);
  line-height: var(--lh-display);
  letter-spacing: var(--tr-display);
  font-weight: 300;
  color: var(--text-0);
  text-transform: uppercase;
}

.h2 {
  font-size: var(--fs-h2);
  line-height: var(--lh-h2);
  letter-spacing: var(--tr-h2);
  font-weight: 300;
  color: var(--text-100);
}

.h3 {
  font-size: var(--fs-h3);
  line-height: var(--lh-h3);
  font-weight: 400;
  color: var(--text-0);
}

/* Serif italic emphasis inside an otherwise sans heading. With no accent
   hue in the palette, the phrase separates on family, slope and a step up
   in tone — the surrounding sans sits one value below pure white. */
.em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--text-0);
}

.lead {
  font-size: var(--fs-lead);
  line-height: var(--lh-lead);
  color: var(--text-100);
}

.body {
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--text-300);
}

.note {
  font-size: var(--fs-small);
  line-height: var(--lh-small);
  color: var(--text-500);
}

/* Small uppercase utility label — form fields, footer column heads.
   Never used as a section eyebrow. */
.label {
  font-size: var(--fs-label);
  line-height: var(--lh-label);
  letter-spacing: var(--tr-label);
  text-transform: uppercase;
  font-weight: 500;
  color: var(--text-500);
}

.measure-sm { max-width: 42ch; }
.measure    { max-width: 58ch; }
.measure-lg { max-width: 70ch; }

/* Split header: title left, supporting copy right */
.split-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 40px 64px;
  align-items: end;
}

@media (max-width: 1023px) {
  .split-head {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 24px;
  }
}

/* ============================================================
   Buttons
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: var(--btn-pad-y) var(--btn-pad-x);
  font-size: var(--fs-btn);
  line-height: var(--lh-btn);
  letter-spacing: var(--tr-btn);
  font-weight: 600;
  text-transform: uppercase;
  white-space: nowrap;
  border: var(--line-w) solid transparent;
  transition: background-color 0.25s var(--ease-out-quart),
    color 0.25s var(--ease-out-quart), border-color 0.25s var(--ease-out-quart),
    transform 0.2s var(--ease-out-quart);
}

.btn__arrow {
  width: 14px;
  height: 10px;
  flex-shrink: 0;
  transition: transform 0.25s var(--ease-out-quart);
}

.btn:hover .btn__arrow {
  transform: translateX(5px);
}

.btn:active {
  transform: scale(0.98);
}

/* Primary — solid white. With no accent hue, white is the loudest the
   palette gets, so it is reserved for the primary action. */
.btn--primary {
  background-color: var(--text-0);
  color: var(--text-ink);
  border-color: var(--text-0);
}

.btn--primary:hover {
  background-color: var(--text-100);
  border-color: var(--text-100);
}

/* Ghost — hairline outline */
.btn--ghost {
  background-color: transparent;
  color: var(--text-0);
  border-color: var(--line-strong);
}

.btn--ghost:hover {
  border-color: var(--text-0);
  background-color: rgba(255, 255, 255, 0.06);
}

.btn--block {
  width: 100%;
}

/* ----- Display button -----
   The hero and nav bar use a heavier, larger label than the rest of the page:
   15px semibold, no tracking, and leading tight enough that the cap height
   alone sets the button's inner height. */
.btn--display {
  gap: 6px;
  font-size: 15px;
  line-height: 0.9;
  letter-spacing: 0;
  border: 0;
}

/* Solid white, dark ink — hero primary action */
.btn--fill {
  padding: 20px 24px;
  background-color: var(--text-0);
  color: #262626;
}

.btn--fill:hover {
  background-color: #e7e7e7;
}

/* Solid black — the nav CTA, which runs flush into the viewport edge */
.btn--dark {
  padding: 30px 40px;
  background-color: #000;
  color: var(--text-0);
}

.btn--dark:hover {
  background-color: #1c1c1c;
}

/* Text label followed by a filled arrow chip — hero secondary action */
.chip-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  border-radius: 16px;
  font-size: 15px;
  line-height: 0.9;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-50);
  transition: color 0.25s var(--ease-out-quart);
}

.chip-link__chip {
  display: flex;
  align-items: center;
  padding: 10px;
  background-color: rgba(255, 255, 255, 0.9);
  color: #292929;
  transition: background-color 0.25s var(--ease-out-quart),
    transform 0.25s var(--ease-out-quart);
}

.chip-link:hover {
  color: var(--text-0);
}

.chip-link:hover .chip-link__chip {
  background-color: var(--text-0);
  transform: translateX(4px);
}

/* ============================================================
   Icons
   ------------------------------------------------------------
   The exported glyphs are drawn on a 16px grid, so each one is
   smaller than the box it ships in. Rather than scale the leaf to
   fill — which would change its weight — the box keeps the designed
   size and the leaf sits at the inset the design specifies.
   ============================================================ */

.icon {
  position: relative;
  display: block;
  flex-shrink: 0;
}

.icon svg {
  position: absolute;
  display: block;
  fill: currentColor;
}

/* 14px box, 10.5 x 8.75 glyph, centred */
.icon--arrow {
  width: 14px;
  height: 14px;
  transition: transform 0.25s var(--ease-out-quart);
}

.icon--arrow svg {
  left: 12.5%;
  top: 18.75%;
  width: 75%;
  height: 62.5%;
}

/* 12px box, 8.25 x 4.5 glyph, sitting just below centre */
.icon--caret {
  width: 12px;
  height: 12px;
}

.icon--caret svg {
  left: 15.62%;
  top: 34.37%;
  width: 68.76%;
  height: 37.51%;
}

.btn:hover .icon--arrow {
  transform: translateX(5px);
}

/* Text link with a trailing rule that brightens on hover */
.link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: var(--fs-label);
  letter-spacing: var(--tr-label);
  text-transform: uppercase;
  font-weight: 600;
  color: var(--text-50);
  padding-bottom: 6px;
  border-bottom: 1px solid var(--line-strong);
  transition: color 0.25s var(--ease-out-quart), border-color 0.25s var(--ease-out-quart);
}

.link:hover {
  color: var(--text-0);
  border-bottom-color: var(--text-0);
}

.link__arrow {
  width: 13px;
  height: 9px;
  transition: transform 0.25s var(--ease-out-quart);
}

.link:hover .link__arrow {
  transform: translateX(4px);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}

@media (max-width: 480px) {
  .actions {
    flex-direction: column;
    align-items: stretch;
  }

  .actions .btn {
    width: 100%;
  }

  /* Some CTA labels are long ("Request a Private Property Review"). Keeping
     them nowrap here would set a min-content wider than the viewport and
     blow out any grid track that contains them. */
  .btn {
    white-space: normal;
    text-align: center;
  }
}

/* ============================================================
   Scroll reveal (JS adds .is-in)
   ============================================================ */

/* The hidden state is gated on `.reveal-ready`, which main.js sets on <html>
   immediately before it wires the observer. If the script is blocked, fails
   to load, or throws, the class is never added and every section renders
   normally — the animation is the enhancement, not the content. */
.reveal-ready [data-reveal] {
  opacity: 0;
  transform: translateY(var(--reveal-distance));
  transition: opacity var(--reveal-duration) var(--ease-out-expo),
    transform var(--reveal-duration) var(--ease-out-expo);
}

.reveal-ready [data-reveal].is-in {
  opacity: 1;
  transform: none;
}

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

  .reveal-ready [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
