/* ---------- Tokens (replace colors once branding is shared) ---------- */
:root {
  --color-primary: #1a1a1a;
  --color-secondary: #b08d57;
  --color-bg: #ffffff;
  --color-text: #222222;
  --color-muted: #777777;

  --font-body: 'Jost', sans-serif;
  --font-heading: 'Cormorant Garamond', serif;

  --container: 1280px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 4px;
  --header-h: 96px;
  --header-container: 1280px;
  --cream: #F8F4EB;
  --header-scroll-bg: #1a1a1a;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 .5em;
}
h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); }
h2 { font-size: clamp(2rem, 4vw, 3.25rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
p  { margin: 0 0 1em; }

/* Layout: outer wrapper = 100% width (backgrounds/images run edge to edge),
   inner .container = max 1280px, centered */
.section,
.site-header,
.site-footer { width: 100%; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: .05em;
  text-transform: uppercase;
  padding: 14px 32px;
  border: 1px solid var(--color-primary);
  background: var(--color-primary);
  color: #fff;
  border-radius: var(--radius);
  transition: all .25s ease;
  cursor: pointer;
}
.btn:hover { background: transparent; color: var(--color-primary); }

/* ---------- Header (transparent over hero) ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: transparent;
  color: var(--cream);
  transition: background .35s ease, box-shadow .35s ease,
              -webkit-backdrop-filter .35s ease, backdrop-filter .35s ease;
}

/* Scroll behaviour (front page):
   - top of page: transparent over the hero
   - scrolling down: header slides up and hides  (.is-hidden)
   - scrolling up: header slides back with a GLASS effect (.is-scrolled) */
.site-header:not(.site-header--solid) {
  transition: background .35s ease, box-shadow .35s ease, transform .4s cubic-bezier(.4, 0, .2, 1),
              -webkit-backdrop-filter .35s ease, backdrop-filter .35s ease;
  will-change: transform;
}
.site-header:not(.site-header--solid).is-hidden { transform: translateY(-100%); }

/* Glass effect (translucent tint + blur) */
body:not(.menu-open) .site-header.is-scrolled:not(.site-header--solid) {
  background: rgba(26, 26, 26, .4); /* fallback for very old browsers */
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  box-shadow: 0 1px 0 rgba(248, 244, 235, .12);
}
@supports (background: color-mix(in srgb, red 50%, transparent)) {
  body:not(.menu-open) .site-header.is-scrolled:not(.site-header--solid) {
    /* colour comes from Theme Settings -> Header Background After Scroll; --header-glass = how see-through (40% = more clear, 70% = more dark) */
    background: color-mix(in srgb, var(--header-scroll-bg) var(--header-glass, 40%), transparent);
  }
}

/* Inner pages (no hero behind the header) and the open mobile menu stay solid */
.site-header--solid,
.menu-open .site-header { background: var(--header-scroll-bg); }
.site-header--solid { position: sticky; }

/* header uses a wider inner container to match the Figma (1920 frame) */
.site-header .container { max-width: var(--header-container); }

.site-header__inner {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  min-height: var(--header-h); gap: 24px;
}
.site-logo { justify-self: start; display: inline-flex; }
.site-logo img { height: 44px; width: auto; max-height: calc(var(--header-h) - 10px); }
.site-logo__text { font-family: var(--font-heading); font-size: 1.6rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; }

/* Nav: Jost 500, 16px, uppercase, letter-spacing 2.5px, line-height 14.4px */
.main-nav ul { display: flex; gap: 36px; align-items: center; }
.main-nav a {
  font-family: var(--font-body); font-weight: 500; font-size: 16px;
  line-height: 14.4px; letter-spacing: 2.5px; text-transform: uppercase;
  vertical-align: middle; color: var(--cream); transition: opacity .2s;
}
.main-nav a:hover, .main-nav .current-menu-item > a { opacity: .7; }

.header-actions { display: flex; align-items: center; justify-content: flex-end; gap: 16px; }

/* Button: 183 x 52, radius 6, 1px border #F8F4EB73, blur 2px */
.header-cta {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 183px; height: 52px;
  padding: 16.58px 32px 17.42px 32px;
  font-family: var(--font-body); font-weight: 500; font-size: 12px;
  line-height: 18px; letter-spacing: 2px; text-transform: uppercase; white-space: nowrap;
  color: var(--cream);
  border: 1px solid #F8F4EB73; border-radius: 6px;
  -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px);
  transition: background .25s ease, border-color .25s ease;
}
.header-cta:hover { background: rgba(248,244,235,.15); border-color: var(--cream); }
.header-cta--mobile { display: none; }

.menu-toggle {
  display: none; background: none; border: 0; padding: 8px; cursor: pointer;
  width: 40px; height: 40px; position: relative;
}
.menu-toggle span, .menu-toggle::before, .menu-toggle::after {
  content: ''; position: absolute; left: 8px; right: 8px; height: 1px;
  background: var(--cream); transition: all .25s;
}
.menu-toggle::before { top: 13px; }
.menu-toggle span { top: 20px; }
.menu-toggle::after { top: 27px; }
.menu-open .menu-toggle::before { top: 20px; transform: rotate(45deg); }
.menu-open .menu-toggle span { opacity: 0; }
.menu-open .menu-toggle::after { top: 20px; transform: rotate(-45deg); }

/* ---------- Footer ---------- */
.site-footer { background: var(--color-primary); color: #fff; padding: 64px 0 0; }
.site-footer__top {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 48px; padding-bottom: 48px;
}
.footer-logo img { max-height: 56px; width: auto; margin-bottom: 20px; }
.footer-logo__text { font-family: var(--font-heading); font-size: 2rem; font-weight: 700; margin-bottom: 16px; }
.footer-text { color: rgba(255,255,255,.7); max-width: 380px; }
.footer-title { font-family: var(--font-heading); font-size: 1.4rem; margin-bottom: 16px; }
.footer-nav li { margin-bottom: 10px; }
.footer-nav a, .footer-contact a { color: rgba(255,255,255,.7); transition: color .2s; }
.footer-nav a:hover, .footer-contact a:hover { color: var(--color-secondary); }
.footer-contact li { color: rgba(255,255,255,.7); margin-bottom: 10px; }
.social-links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.social-links a {
  border: 1px solid rgba(255,255,255,.3); padding: 6px 14px; border-radius: 999px; font-size: 14px;
  transition: all .2s;
}
.social-links a:hover { background: var(--color-secondary); border-color: var(--color-secondary); }
.site-footer__bottom {
  border-top: 1px solid rgba(255,255,255,.15); padding: 20px 0; text-align: center;
  font-size: 14px; color: rgba(255,255,255,.6);
}
@media (max-width: 767px) {
  .site-footer__top { grid-template-columns: 1fr; gap: 32px; }
}

.footer-tagline { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: rgba(255,255,255,.6); margin-bottom: 16px; }

/* ---------- Responsive refinements ---------- */
@media (max-width: 1439px) and (min-width: 992px) {
  .main-nav ul { gap: 22px; }
  .main-nav a { font-size: 13px; letter-spacing: 2px; }
  .header-cta { min-width: 150px; padding-inline: 20px; font-size: 11px; }
  .site-logo img { height: 56px; }
}
@media (max-width: 991px) {
  :root { --header-h: 76px; }
  .site-header__inner { display: flex; justify-content: space-between; }
  .site-logo img { height: 52px; }
  .menu-toggle { display: block; }
  .header-actions > .header-cta { display: none; }
  .main-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--header-scroll-bg);
    max-height: 0; overflow: hidden; transition: max-height .3s ease;
  }
  .menu-open .main-nav { max-height: 90vh; overflow-y: auto; }
  .main-nav ul { flex-direction: column; align-items: flex-start; gap: 0; padding: 12px var(--gutter) 8px; }
  .main-nav li { width: 100%; }
  .main-nav a { display: block; padding: 16px 0; font-size: 14px; border-bottom: 1px solid rgba(248,244,235,.12); }
  .header-cta--mobile { display: inline-flex; margin: 20px var(--gutter) 28px; }

  .site-footer { padding-top: 48px; }
  .site-footer__top { grid-template-columns: 1fr 1fr; gap: 40px; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 767px) {
  .site-footer__top { grid-template-columns: 1fr; gap: 32px; }
  a.header-cta.header-cta--mobile{    text-align: center;}
}
@media (max-width: 479px) {
  body { font-size: 15px; }
  .btn { padding: 12px 24px; width: 100%; text-align: center; }
  .site-logo img { height: 46px; }
}