/* ─── Reset ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; -webkit-font-smoothing: antialiased; scroll-behavior: smooth; }

/* ─── Tokens ─────────────────────────────────────────── */
:root {
  --black:      #151310;
  --white:      #ffffff;
  --cream:      #FAF7F2;
  --blush:      #D9A99B;
  --blush-deep: #C68E7E;
  --blush-light:#F1DCD3;
  --sand:       #E7DED0;
  --stone:      #8C8074;
  --sage:       #8A9A78;
  --sage-dark:  #5F6E4E;
  --stone-text: #6B6154;
  --blush-text: #A65C46;
  --serif:      'Cormorant Garamond', Georgia, serif;
  --sans:       'Jost', system-ui, sans-serif;
  --max-w:      1280px;
  --pad-x:      max(3rem, calc((100vw - var(--max-w)) / 2 + 3rem));

  /* legacy aliases (kept so older page-level CSS still resolves to the right colors) */
  --ink:        var(--black);
  --rose:       var(--blush-text);
  --rose-light: var(--blush-light);
  --rose-mid:   var(--blush);
  --rose-dark:  var(--blush-deep);
  --warm-dk:    var(--stone-text);
  --body-text:  var(--stone-text);
  --rule:       var(--sand);
}

/* ─── Base ───────────────────────────────────────────── */
body { font-family: var(--sans); background: var(--cream); color: var(--black); font-weight: 400; line-height: 1.7; overflow-x: hidden; position: relative; }
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.035;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
html { scrollbar-color: var(--blush-deep) var(--cream); }
html::-webkit-scrollbar { width: 10px; }
html::-webkit-scrollbar-track { background: var(--cream); }
html::-webkit-scrollbar-thumb { background: var(--blush-deep); border: 2px solid var(--cream); }
html::-webkit-scrollbar-thumb:hover { background: var(--blush-text); }
a { text-decoration: none; color: inherit; }
img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* ─── Text selection ─────────────────────────────────── */
::selection { background: var(--blush); color: var(--black); }

/* ─── Focus styles ───────────────────────────────────── */
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--blush-text);
  outline-offset: 3px;
}

/* ─── Skip link ──────────────────────────────────────── */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 9999;
  background: var(--black);
  color: var(--cream);
  padding: 0.6rem 1.2rem;
  font-size: 14px;
  font-family: var(--sans);
  letter-spacing: 0.05em;
  text-decoration: none;
  transition: top 0.15s;
}
.skip-link:focus { top: 1rem; }

/* ─── Scroll reveal utility ──────────────────────────── */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 1s ease, transform 1.2s cubic-bezier(.16,1,.3,1); }
.reveal.in-view { opacity: 1; transform: translateY(0); }

/* ─── Screen-reader only utility ─────────────────────── */
.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;
}

/* ─── Typography ──────────────────────────────────────── */
h1, h2, h3 { font-family: var(--serif); font-weight: 400; color: var(--black); }
.eyebrow { font-size: 12px; letter-spacing: 0.28em; text-transform: uppercase; color: var(--blush-text); font-weight: 400; }
.eyebrow.on-dark { color: var(--blush-light); }

/* ─── Buttons ─────────────────────────────────────────── */
.btn, .btn-light, .btn-primary, .btn-nav {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--sans); font-size: 11px; letter-spacing: 2px; text-transform: uppercase;
  padding: 16px 34px; border: 1px solid var(--black); color: var(--black);
  position: relative; overflow: hidden; z-index: 1;
  transition: color 0.6s ease;
  cursor: pointer; text-decoration: none; background: none;
}
.btn::before, .btn-light::before, .btn-primary::before, .btn-nav::before {
  content: ""; position: absolute; inset: 0; background: var(--black);
  transform: translateX(-101%); transition: transform 0.6s cubic-bezier(.16,1,.3,1); z-index: -1;
}
.btn:hover, .btn-light:hover, .btn-primary:hover, .btn-nav:hover { color: var(--white); }
.btn:hover::before, .btn-light:hover::before, .btn-primary:hover::before, .btn-nav:hover::before { transform: translateX(0); }

.btn.light, .btn-light { border-color: var(--white); color: var(--white); }
.btn.light::before, .btn-light::before { background: var(--white); }
.btn.light:hover, .btn-light:hover { color: var(--black); }

.btn.blush, .btn-primary { border-color: var(--blush-deep); background: var(--blush); color: var(--black); }
.btn.blush::before, .btn-primary::before { background: var(--black); }
.btn.blush:hover, .btn-primary:hover { color: var(--white); }

/* ─── Photo duotone treatment ─────────────────────────── */
.photo { position: relative; overflow: hidden; background: var(--sand); }
.photo img { filter: grayscale(100%) contrast(1.08) brightness(1.04); transition: filter 1.2s ease, transform 1.6s cubic-bezier(.2,.7,.2,1); transform: scale(1.06); }
.photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(160deg, rgba(21,19,16,.18), rgba(217,169,155,.32)); mix-blend-mode: multiply; }
.photo.in-view img, .photo:hover img { filter: grayscale(35%) contrast(1.05) brightness(1.02); transform: scale(1); }

/* ─── Layered dual-photo treatment ────────────────────── */
.layered-photos { position: relative; height: 500px; }
.layered-photos .photo-back { position: absolute; top: 0; left: 0; width: 46%; height: 70%; }
.layered-photos .photo-front { position: absolute; bottom: 0; right: 0; width: 62%; height: 82%; box-shadow: 0 26px 50px -22px rgba(21,19,16,.45); }

/* ─── Header / Nav ────────────────────────────────────── */
header {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 26px 5%; transition: all 0.5s ease;
}
header.scrolled {
  background: rgba(21,19,16,.42);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  padding: 16px 5%;
  box-shadow: inset 0 -1px 0 rgba(255,255,255,.09);
}
.logo { display: grid; align-items: center; height: 60px; text-decoration: none; }
.logo-text { grid-area: 1/1; font-family: var(--serif); font-size: 20px; letter-spacing: .5px; color: var(--white); white-space: nowrap; opacity: 1; transition: opacity .35s ease; text-shadow: 0 2px 12px rgba(0,0,0,.45); }
.logo-img { grid-area: 1/1; height: 60px; width: auto; opacity: 0; transition: opacity .35s ease; filter: drop-shadow(0 3px 10px rgba(0,0,0,.3)); }
header.scrolled .logo-text { opacity: 0; }
header.scrolled .logo-img { opacity: 1; }
nav { display: flex; gap: 34px; align-items: center; }
nav a { font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--white); transition: color .5s ease, opacity .45s ease; }
nav a:hover { opacity: .6; }
nav .btn, nav .btn-light { font-size: 10px; padding: 12px 24px; }

/* ─── Services subnav ─────────────────────────────────── */
.nav-item-has-sub { position: relative; }
.nav-subnav {
  position: absolute; top: 100%; left: 50%; min-width: 190px; margin: 0; padding: 14px 0 4px;
  background: var(--black); text-align: left;
  transform: translateX(-50%); opacity: 0; visibility: hidden; pointer-events: none;
  box-shadow: 0 24px 44px -16px rgba(21,19,16,.4);
  transition: opacity .3s ease, visibility 0s linear .3s;
}
.nav-item-has-sub:hover .nav-subnav,
.nav-item-has-sub:focus-within .nav-subnav {
  opacity: 1; visibility: visible; pointer-events: auto;
  transition: opacity .3s ease, visibility 0s;
}
.nav-subnav a { display: block; padding: 9px 24px; font-size: 10.5px; letter-spacing: 1.3px; white-space: nowrap; opacity: .8; }
.nav-subnav a:hover { opacity: 1; background: rgba(255,255,255,.06); }

/* ─── Hamburger + mobile nav ──────────────────────────── */
.hamburger { display: none; flex-direction: column; justify-content: center; gap: 5px; width: 30px; height: 26px; background: none; border: none; cursor: pointer; padding: 0; z-index: 101; position: relative; }
.hamburger span { display: block; width: 100%; height: 1.5px; background: var(--white); transition: transform .5s cubic-bezier(.16,1,.3,1), opacity .35s ease, background .4s ease; }
.hamburger.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
.nav-overlay { position: fixed; inset: 0; background: rgba(21,19,16,.45); opacity: 0; pointer-events: none; transition: opacity .5s ease; z-index: 99; }
.nav-overlay.open { opacity: 1; pointer-events: auto; }

/* ─── Footer ─────────────────────────────────────────── */
footer { position: relative; background: var(--black); color: var(--white); overflow: hidden; }
.footer-cta { position: relative; z-index: 2; text-align: center; padding: 90px 5% 44px; }
.footer-cta img { margin-bottom: 16px !important; }
.footer-cta h2 { color: var(--white); font-size: clamp(24px,2.8vw,36px); line-height: 1.2; margin: 14px 0 14px; }
.footer-cta h2 em { font-style: italic; color: var(--blush-light); }
.footer-cta p { color: var(--sand); font-size: 14.5px; max-width: 42ch; margin: 0 auto 26px; }
.footer-cta .btn.light, .footer-cta .btn-light,
.footer-cta .btn.blush, .footer-cta .btn-primary { margin-bottom: 6px; }
.footer-social { position: relative; z-index: 2; display: flex; justify-content: center; gap: 20px; max-width: 1000px; margin: 40px auto 0; padding: 30px 0 36px; border-top: 1px solid rgba(255,255,255,.15); }
.footer-social a { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border: 1px solid rgba(255,255,255,.3); border-radius: 50%; color: var(--white); transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease; }
.footer-social a:hover { background: var(--blush); border-color: var(--blush); color: var(--black); }
.footer-social svg { width: 18px; height: 18px; }
.footer-links { position: relative; z-index: 2; display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 24px; margin-top: 8px; padding-bottom: 20px; }
.footer-links a { font-size: 11px; letter-spacing: 1px; text-transform: uppercase; color: var(--stone); transition: color .3s ease; }
.footer-links a:hover { color: var(--blush-light); }
.footer-bottom { text-align: center; font-size: 11px; letter-spacing: 1px; color: var(--stone); padding-bottom: 22px; position: relative; z-index: 2; }

/* ─── Responsive: Nav & Footer ───────────────────────── */
@media (max-width: 900px) {
  .hamburger { display: flex; }
  nav {
    position: fixed; top: 0; right: 0; height: 100vh; width: min(80vw,440px);
    background: var(--black); display: flex; flex-direction: column; align-items: flex-start;
    justify-content: center; gap: 30px; padding: 60px 44px;
    transform: translateX(100%); transition: transform .6s cubic-bezier(.16,1,.3,1);
    z-index: 100;
  }
  nav.open { transform: translateX(0); }
  nav a { color: var(--white); font-size: 14px; }
  nav .btn, nav .btn-light { font-size: 11px; padding: 14px 26px; }
  .nav-item-has-sub { position: static; width: 100%; }
  .nav-subnav {
    position: static; margin-top: 10px; padding: 0 0 0 4px; min-width: 0; text-align: left;
    background: none; box-shadow: none; transform: none; opacity: 1; visibility: visible; pointer-events: auto;
    display: flex; flex-direction: column; gap: 2px; transition: none;
  }
  .nav-subnav a { padding: 6px 0; font-size: 12px; opacity: .7; }
  header.scrolled nav a { color: var(--white); }
  header nav .btn.light, header nav .btn-light,
  header.scrolled nav .btn.light, header.scrolled nav .btn-light { border-color: var(--white); color: var(--white); }
  header.scrolled nav .btn.light::before, header.scrolled nav .btn-light::before { background: var(--white); }
  header.scrolled nav .btn.light:hover, header.scrolled nav .btn-light:hover { color: var(--black); }
}

/* ─── Reduced motion ─────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
