/* ============================================================
   site.css — SHARED, SITE-WIDE styles (every page links this).
   Edit the nav, footer, buttons, tokens or type scale HERE, once,
   and it applies to every page. Page-specific section styles live
   in each page's own stylesheet (home.css, what-we-do.css, ...).
   ============================================================ */

/* ---- DESIGN TOKENS (from figma-export.json) ---- */
:root {
  /* Brand colours */
  --navy: #506d85;
  --sand: #f8f1e7;
  --olive: #6b6b33;
  --woodfire: #af4a3f;
  --teal: #245354;
  --blood-orange: #c74a00;
  --rough-sand: #8e6f47;
  --water: #e3ebf2;
  --white: #ffffff;
  --black: #000000;

  /* Fonts */
  --serif: 'Playfair Display', serif;
  --sans: 'Rethink Sans', sans-serif;

  /* Layout (one system, site-wide) */
  --container: 1272px;
  --gutter: 120px;
  --pad: 40px;     /* full-width chrome (nav/footer) horizontal padding */

  /* Ink */
  --ink: #1a1a1a;
  --ink-soft: #1a1a1a;
  --cap: #4f4f4f;
}

/* ---- RESET / BASE ---- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 24px;
  letter-spacing: -0.03em;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; }
button { cursor: pointer; border: none; font-family: var(--sans); background: none; }
a { color: inherit; text-decoration: none; }

/* ---- LAYOUT HELPERS ---- */
.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.center { text-align: center; }

/* ---- TYPE SCALE (site-wide) ---- */
h1, h2, h3 { font-weight: 400; }
h1 { font-family: var(--serif); font-size: 80px; line-height: 88px; letter-spacing: -0.02em; }
h2 { font-family: var(--serif); font-size: 68px; line-height: 80px; letter-spacing: -0.02em; }
.lead { font-size: 16px; line-height: 24px; max-width: 760px; margin: 0 auto; }

/* ---- BUTTONS / PILLS ---- */
.pill-navy, .pill-water, .pill-ghost,
.pill-hero-filled, .pill-hero-outline {
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.03em;
  border-radius: 999px;
  padding: 13px 28px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: opacity .2s ease, background .2s ease;
  white-space: nowrap;
}
.pill-navy { background: var(--navy); color: var(--white); }
.pill-navy:hover { opacity: .9; }
.pill-water { background: var(--water); color: var(--navy); }
.pill-water:hover { opacity: .9; }
.pill-ghost {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255,255,255,.6);
  border-radius: 8px;
  padding: 9px 18px;
  font-size: 14px;
}
.pill-ghost strong { font-weight: 700; }
.pill-hero-filled { background: rgba(80,109,133,.85); color: var(--white); }
.pill-hero-outline { background: transparent; color: var(--white); border: 1px solid rgba(255,255,255,.7); }
.pill-hero-filled:hover, .pill-hero-outline:hover { opacity: .9; }

.caret {
  display: inline-block;
  width: 0; height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  margin-left: 2px;
  vertical-align: middle;
}

/* ============================================================
   SHARED CONTENT PRIMITIVES (used across pages — one source here)
   ============================================================ */
.bg-white { background: var(--white); }
.bg-sand  { background: var(--sand); }
.band-navy { background: var(--navy); color: var(--white); }

.serif-title {
  font-family: var(--serif); font-weight: 400;
  font-size: 68px; line-height: 80px; letter-spacing: -0.02em; color: var(--ink);
}
.dot { color: var(--teal); margin: 0 6px; }
.ext { width: 13px; height: 13px; flex: none; }

/* photo credit caption (supplier • property) */
.caption { font-size: 12px; line-height: 16px; letter-spacing: -0.02em; color: var(--cap); margin-top: 12px; }
.caption.light { color: rgba(255,255,255,.85); }
.caption.light .dot { color: rgba(255,255,255,.85); }

/* secondary "outline" buttons */
.btn-outline, .btn-outline-light {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 16px; font-weight: 500; letter-spacing: -0.03em;
  border-radius: 999px; padding: 13px 28px; white-space: nowrap;
  transition: opacity .2s ease, background .2s ease, color .2s ease;
}
.btn-outline { background: transparent; color: var(--ink); border: 1px solid #cfc7b8; }
.btn-outline:hover { border-color: var(--navy); color: var(--navy); }
.bg-white .btn-outline { border-color: #d7d2c8; }
.btn-outline-light { background: transparent; color: var(--white); border: 1px solid rgba(255,255,255,.55); }
.btn-outline-light:hover { background: rgba(255,255,255,.12); }

/* ---- SHARED HERO (full-bleed bg photo + centred white title/subtitle/buttons) ----
   Used by What We Do, Travel journal, etc. Per-page tweaks (e.g. height) go in the
   page stylesheet; default height suits a standard hero. */
.hero { position: relative; height: 840px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-content { position: relative; z-index: 2; text-align: center; color: var(--white); }
.hero-content h1 { color: var(--white); margin-bottom: 22px; }   /* size from h1 token (80px) */
.hero-content p { font-size: 18px; line-height: 26px; letter-spacing: -0.02em; margin-bottom: 34px; }
.hero-btns { display: flex; gap: 16px; justify-content: center; }
.hero-caption {
  max-width: calc(var(--container) + var(--gutter) * 2); margin: 0 auto;
  padding: 10px var(--pad) 0;
  color: var(--ink); font-size: 12px; line-height: 16px; letter-spacing: -0.02em;
}
.hero-caption .dot { color: var(--teal); }

/* ---- PAGE HERO (light pages: centred serif title + subtitle + CTA on white) ----
   Used by Pricing, Contact, etc. (pair with <body class="light-header">). */
.page-hero { text-align: center; padding: 144px 0 26px; }
.page-hero h1 { font-size: 62px; line-height: 70px; margin-bottom: 14px; }   /* page title (~62px), smaller than hero h1 */
.page-hero .page-sub { font-size: 18px; line-height: 26px; letter-spacing: -0.02em; color: var(--ink-soft); margin-bottom: 30px; }

/* ---- BLOG / POST CARDS (image + title + read-more) — shared by Travel journal,
   Inspiration "Get inspired", etc. ---- */
.read-more { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; letter-spacing: -0.02em; color: var(--navy); }
.read-more .ext { width: 11px; height: 11px; }
.read-more:hover { opacity: .8; }
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.post img { width: 100%; aspect-ratio: 384 / 256; object-fit: cover; border-radius: 0; }
.post-title { font-size: 18px; line-height: 24px; font-weight: 500; letter-spacing: -0.02em; color: var(--ink); margin: 16px 0 12px; }
.posts-more { display: flex; justify-content: center; padding: 26px 0 0; }
.posts-more .btn-outline { padding: 12px 34px; }
@media (max-width: 900px) { .post-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .post-grid { grid-template-columns: 1fr; } }

/* ---- SHARED SECTION PATTERNS (two-column, media, ready band, location cards) ---- */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; }
.two-col.reverse .media { order: 2; }
.two-col.reverse .content { order: 1; }
.media img { width: 100%; aspect-ratio: 600 / 719; object-fit: cover; border-radius: 0; }

/* navy "ready / speak to us" band: image + heading + button */
.ready { padding: 90px 0; }
.ready-grid { gap: 80px; align-items: center; }
.ready-media img { aspect-ratio: 600 / 494; }
.ready-text .serif-title { color: var(--white); font-size: 68px; line-height: 80px; margin-bottom: 22px; }
.ready-text p { color: rgba(255,255,255,.92); font-size: 16px; line-height: 24px; max-width: 420px; margin-bottom: 30px; }

/* navy "Our Location" section + location cards */
.our-loc { padding: 72px 0 46px; text-align: center; }
.our-loc .serif-title { color: var(--white); margin-bottom: 16px; }
.our-loc .loc-desc { color: rgba(255,255,255,.9); font-size: 15px; line-height: 23px; max-width: 1080px; margin: 0 auto 18px; }
.our-loc .loc-meet { color: var(--white); font-weight: 600; font-size: 15px; letter-spacing: -0.02em; margin-bottom: 22px; }
.loc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; text-align: left; }
.loc-card { position: relative; overflow: hidden; aspect-ratio: 1174 / 470; }
.loc-card img { width: 100%; height: 100%; object-fit: cover; }
.loc-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 45%, rgba(0,0,0,.45)); }
.loc-name { position: absolute; left: 22px; bottom: 18px; z-index: 2; color: var(--white); font-size: 20px; font-weight: 600; letter-spacing: -0.02em; }
.loc-arrow { position: absolute; right: 22px; top: 50%; transform: translateY(-50%); z-index: 2; width: 44px; height: 44px; border-radius: 999px; background: rgba(255,255,255,.92); display: flex; align-items: center; justify-content: center; }
.loc-arrow img { width: 18px; height: 18px; }
@media (max-width: 900px) {
  .two-col, .ready-grid { grid-template-columns: 1fr; gap: 32px; }
  .two-col.reverse .media { order: 1; }
  .two-col.reverse .content { order: 2; }
  .ready-text .serif-title { font-size: 40px; line-height: 48px; }
}
@media (max-width: 760px) { .loc-grid { grid-template-columns: 1fr; } }

/* ---- FULL-BLEED BANNER PHOTO + caption (sits under a page hero) ---- */
.banner { padding: 0; }
.banner img { width: 100%; height: auto; display: block; object-fit: cover; }
.banner-cap {
  max-width: calc(var(--container) + var(--gutter) * 2); margin: 0 auto;
  padding: 10px var(--pad) 0;
  font-size: 12px; line-height: 16px; letter-spacing: -0.02em; color: var(--cap);
}
.banner-cap .dot { color: var(--teal); }

/* ============================================================
   HEADER / NAV  (shared — edit once)
   ============================================================ */
.header { position: absolute; top: 0; left: 0; right: 0; z-index: 50; padding: 18px 0; }
.header-inner {
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-left { display: flex; align-items: center; gap: 48px; }
.logo { font-family: var(--serif); font-size: 26px; font-weight: 500; color: var(--white); letter-spacing: -0.01em; }
.logo span { color: #b9c4cd; font-weight: 400; }
.logo img { height: 26px; width: auto; display: block; }
/* Two logo variants live in the partial; show the one that suits the header bg.
   Default header sits over a dark hero → white logo. Light-header pages flip it.
   (Selector must out-specify `.logo img` above, hence `.logo img.logo-on-light`.) */
.logo img.logo-on-light { display: none; }
.nav-menu { display: flex; align-items: center; gap: 28px; }
.nav-menu a {
  color: var(--white); font-size: 15px; font-weight: 400; letter-spacing: -0.02em;
  display: inline-flex; align-items: center; gap: 5px;
}
.nav-menu a:hover { opacity: .75; }
.nav-right { display: flex; align-items: center; gap: 20px; }
.phone { color: var(--white); font-size: 14px; letter-spacing: -0.01em; }

/* Region selector — "You are at: …" dropdown */
.region { position: relative; }
.region-toggle .caret { transition: transform .2s ease; }
.region.open .region-toggle .caret { transform: rotate(180deg); }
.region-menu {
  display: none; list-style: none;
  position: absolute; top: calc(100% + 8px); right: 0;
  min-width: 100%; padding: 6px; z-index: 60;
  background: var(--white); border-radius: 8px;
  box-shadow: 0 12px 30px rgba(0,0,0,.18);
}
.region.open .region-menu { display: block; }
.region-menu button {
  display: block; width: 100%; text-align: left; white-space: nowrap;
  padding: 9px 14px; border-radius: 6px;
  font-size: 14px; color: var(--ink); letter-spacing: -0.02em;
  transition: background .15s ease;
}
.region-menu button:hover,
.region-menu button[aria-selected="true"] { background: var(--sand); }

/* Hamburger — hidden on desktop, shown when the nav collapses (see responsive) */
.nav-toggle {
  display: none; flex-direction: column; justify-content: center;
  gap: 5px; width: 30px; height: 30px; padding: 0; background: none;
}
.nav-toggle span {
  display: block; width: 24px; height: 2px; background: var(--white);
  border-radius: 2px; transition: transform .25s ease, opacity .2s ease;
}
.header.open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.header.open .nav-toggle span:nth-child(2) { opacity: 0; }
.header.open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---- LIGHT-HEADER VARIANT (pages whose top band is light, not a dark hero) ----
   Opt in per page with <body class="light-header">. Flips the nav ink dark and
   swaps the white logo for the dark one; the navy CTA pill is unchanged. */
body.light-header .logo img.logo-on-dark { display: none; }
body.light-header .logo img.logo-on-light { display: block; }
body.light-header .nav-menu a,
body.light-header .phone { color: var(--ink); }
body.light-header .pill-ghost { color: var(--ink); border-color: rgba(0,0,0,.22); }
body.light-header .nav-toggle span { background: var(--ink); }

/* ---- STICKY HEADER (.header--stuck, toggled by controller.js) ----
   At rest the header is transparent and absolute over the hero. Once scrolled past
   the threshold it pins to the viewport on a solid black bar and slides down in.
   The pinned bar is always dark, so a light-header page must flip BACK to the white
   logo + white ink while stuck. Those rules need to out-specify the body.light-header
   block above — adding `.header--stuck` takes them to (0,4,1) vs (0,3,1). */
.header--stuck {
  position: fixed;
  background: var(--black);
  padding: 12px 0;
  box-shadow: 0 8px 28px rgba(0, 0, 0, .22);
  will-change: transform;
}
body.light-header .header--stuck .logo img.logo-on-dark { display: block; }
body.light-header .header--stuck .logo img.logo-on-light { display: none; }
body.light-header .header--stuck .nav-menu a,
body.light-header .header--stuck .phone { color: var(--white); }
body.light-header .header--stuck .pill-ghost { color: var(--white); border-color: rgba(255,255,255,.38); }
body.light-header .header--stuck .nav-toggle span { background: var(--white); }

/* No-JS / reduced-motion safety: the slide-in is a GSAP tween, so a header that
   never gets tweened must still be visible. Nothing to do — transform defaults to
   none — but keep anchors clear of the pinned bar. */
html { scroll-padding-top: 84px; }

/* ============================================================
   FOOTER  (shared — edit once)
   ============================================================ */
.footer { background: #0c0c0c; color: var(--white); padding: 56px 0 48px; }
.news-row { display: flex; align-items: center; justify-content: space-between; gap: 48px; padding-bottom: 48px; }
.news-row h2 {
  font-family: var(--sans); font-weight: 400; font-size: 30px; line-height: 38px;
  letter-spacing: -0.02em; color: var(--white); max-width: 560px;
}
.news-form { display: flex; gap: 14px; flex: 1; max-width: 620px; }
.news-form input {
  flex: 1; background: var(--white); border: none; border-radius: 999px;
  padding: 15px 22px; font-family: var(--sans); font-size: 15px; color: #1a1a1a;
}
.news-form input::placeholder { color: #9aa0a6; }

.gallery-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.gallery-title { font-weight: 700; font-size: 14px; }
.insta-link { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; }
.insta-link img { width: 12px; height: 12px; filter: invert(1); }
.gallery { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; margin-bottom: 56px; }
.gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 0; }

.foot-main { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-bottom: 48px; }
.foot-links { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.foot-links a { font-size: 15px; text-decoration: underline; text-underline-offset: 3px; }
.foot-social { display: flex; gap: 14px; margin-top: 12px; }
.foot-social img { width: 32px; height: 32px; }

.foot-locations { justify-self: end; width: 100%; max-width: 440px; }
.foot-loc-title { display: block; font-weight: 700; font-size: 14px; margin-bottom: 18px; }
.foot-loc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.floc-card { position: relative; border-radius: 0; overflow: hidden; aspect-ratio: 16 / 9; }
.floc-card img { width: 100%; height: 100%; object-fit: cover; }
.floc-label { position: absolute; left: 12px; bottom: 10px; color: var(--white); font-size: 13px; font-weight: 600; z-index: 2; }
.floc-view {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,.45); color: var(--white); font-size: 14px; font-weight: 500;
  opacity: 0; transition: opacity .2s ease;
}
.floc-card:hover .floc-view,
.floc-hover .floc-view { opacity: 1; }

.foot-bottom { display: flex; align-items: center; justify-content: space-between; padding: 32px 0; border-top: 1px solid #2a2a2a; }
.terms { font-size: 13px; text-decoration: underline; text-underline-offset: 3px; }
.foot-logos { display: flex; align-items: center; gap: 48px; padding-top: 36px; border-top: 1px solid #2a2a2a; }
.foot-logos img { height: 38px; width: auto; object-fit: contain; }
.copyright { margin-left: auto; font-size: 12px; color: #8a8a8a; }

/* ============================================================
   RESPONSIVE (shared chrome + type)
   ============================================================ */
@media (max-width: 1320px) {
  :root { --gutter: 40px; }
}

/* Nav stage 1 — drop the secondary phone + region chrome so the primary links and
   the CTA still fit on a single row (the full nav needs ~1260px). */
@media (max-width: 1260px) {
  .phone, .region { display: none; }
  .nav-left { gap: 32px; }
  .nav-menu { gap: 20px; }
}

/* Nav stage 2 — mobile: logo left, CTA centred, hamburger right; the links collapse
   into a drawer that drops from the header when the hamburger is open. */
@media (max-width: 960px) {
  .header-inner { display: grid; grid-template-columns: 1fr auto 1fr; column-gap: 16px; }
  .nav-left { gap: 0; justify-self: start; }
  .nav-menu { display: none; }
  .nav-right { gap: 0; justify-self: center; }
  .nav-toggle { display: flex; justify-self: end; }

  .header.open .nav-menu {
    display: flex; flex-direction: column; gap: 2px;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--white); padding: 8px 20px 18px;
    box-shadow: 0 12px 30px rgba(0,0,0,.12);
  }
  .header.open .nav-menu a {
    color: var(--ink); font-size: 16px; padding: 13px 4px;
    border-bottom: 1px solid #efece6;
  }
  .header.open .nav-menu a:last-child { border-bottom: none; }
}

@media (max-width: 900px) {
  h1 { font-size: 48px; line-height: 56px; }
  h2 { font-size: 40px; line-height: 48px; }
  .news-row, .foot-main { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 560px) {
  :root { --gutter: 20px; --pad: 20px; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .foot-loc-grid { grid-template-columns: 1fr 1fr; }
  /* Trim the centred CTA so it clears the logo and hamburger on narrow phones
     (a narrower CTA widens the side columns, pushing it off the logo) */
  .nav-right .pill-navy { padding: 9px 14px; font-size: 13px; }
}

/* ---- Nav dropdown (.nav-drop trigger + .nav-sub panel) — added for WP menus ---- */
.nav-item { position: relative; display: inline-flex; align-items: center; }
.nav-sub {
  position: absolute; top: calc(100% + 10px); left: 0; min-width: 210px;
  background: #fff; border-radius: 12px; box-shadow: 0 16px 40px rgba(0,0,0,.16);
  padding: 10px; display: none; flex-direction: column; gap: 2px; z-index: 200;
}
.nav-item.open > .nav-sub { display: flex; }
.nav-sub a { color: var(--ink); padding: 9px 14px; border-radius: 8px; font-size: 15px; white-space: nowrap; }
.nav-sub a:hover { background: var(--sand); opacity: 1; }
@media (max-width: 960px) {
  .nav-item { display: block; width: 100%; }
  .nav-sub { position: static; display: none; box-shadow: none; background: transparent; padding: 4px 0 4px 18px; min-width: 0; }
  .nav-item.open > .nav-sub { display: flex; }
}
