/* ============================================================
   PACK CONSTRUCTION — shared system
   Tokens, type, nav, footer, reusable section components.
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  --charcoal:  #1A1A1A;
  --charcoal-90: rgba(26, 26, 26, 0.90);
  --charcoal-85: rgba(26, 26, 26, 0.85);
  --stone:     #8B8170;
  --stone-soft: #A39A8B;
  --off-white: #F5F2EE;
  --paper:     #FBF9F6;
  --mid-grey:  #6B6B6B;
  --olive:     #7A8C2E;
  --border:    #E4DFD7;
  --border-dark: rgba(255, 255, 255, 0.14);

  --ink-on-dark: rgba(245, 242, 238, 0.92);
  --ink-on-dark-soft: rgba(245, 242, 238, 0.62);

  --serif: "Playfair Display", Georgia, serif;
  --sans:  "Montserrat", system-ui, -apple-system, sans-serif;

  --nav-h: 84px;
  --nav-h-shrunk: 62px;
  --max: 1280px;
  --gutter: clamp(20px, 5vw, 72px);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset / base ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans);
  font-weight: 300;
  color: var(--mid-grey);
  background: var(--off-white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 400;
  color: var(--charcoal);
  line-height: 1.08;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

/* ---------- Utility ---------- */
.wrap { max-width: var(--max); margin: 0 auto; padding-inline: var(--gutter); }
.kicker {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 0.72rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--stone);
  display: inline-flex;
  align-items: center;
  gap: 0.85em;
}
.kicker::before {
  content: "";
  width: 30px;
  height: 1px;
  background: currentColor;
  opacity: 0.7;
}
.kicker.center { justify-content: center; }
.kicker.no-rule::before { display: none; }

.section { padding-block: clamp(72px, 9vw, 140px); }
.section-head { max-width: 640px; }
.section-head .lede {
  margin-top: 1.4rem;
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  color: var(--mid-grey);
  font-weight: 300;
}
h2.section-title { font-size: clamp(2rem, 4.2vw, 3.3rem); margin-top: 1.3rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.7em;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 1.05em 2.1em;
  border: 1px solid var(--charcoal);
  color: var(--charcoal);
  background: transparent;
  transition: background .45s var(--ease), color .45s var(--ease), border-color .45s var(--ease), transform .45s var(--ease);
}
.btn .arrow { transition: transform .45s var(--ease); }
.btn:hover { background: var(--charcoal); color: var(--off-white); }
.btn:hover .arrow { transform: translateX(5px); }
.btn-fill { background: var(--charcoal); color: var(--off-white); }
.btn-fill:hover { background: var(--stone); border-color: var(--stone); }
.btn-light { border-color: rgba(245,242,238,0.4); color: var(--off-white); }
.btn-light:hover { background: var(--off-white); color: var(--charcoal); border-color: var(--off-white); }
.btn-olive { border-color: var(--olive); color: var(--olive); }
.btn-olive:hover { background: var(--olive); color: #fff; border-color: var(--olive); }
.btn-olive.btn-fill { background: var(--olive); color: #fff; }
.btn-olive.btn-fill:hover { background: #677726; }

.textlink {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--charcoal);
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--stone);
  transition: gap .4s var(--ease), color .4s var(--ease);
}
.textlink:hover { gap: 1em; color: var(--stone); }

/* ---------- Real image fill ---------- */
.bgimg { background-size: cover; background-position: center; background-repeat: no-repeat; }

/* ---------- Image placeholders ---------- */
.ph {
  position: relative;
  background:
    repeating-linear-gradient(135deg, rgba(139,129,112,0.10) 0 2px, transparent 2px 11px),
    var(--off-white);
  border: 1px solid var(--border);
  overflow: hidden;
  display: grid;
  place-items: center;
}
.ph::after {
  content: attr(data-label);
  font-family: var(--sans);
  font-weight: 500;
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--stone);
  padding: 0.7em 1em;
  border: 1px solid var(--border);
  background: rgba(251,249,246,0.7);
  text-align: center;
  max-width: 80%;
}
.ph.dark {
  background:
    repeating-linear-gradient(135deg, rgba(255,255,255,0.05) 0 2px, transparent 2px 11px),
    #232323;
  border-color: rgba(255,255,255,0.10);
}
.ph.dark::after { color: var(--stone-soft); border-color: rgba(255,255,255,0.14); background: rgba(0,0,0,0.25); }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: rgba(26, 26, 26, 0.55);
  backdrop-filter: blur(14px) saturate(120%);
  -webkit-backdrop-filter: blur(14px) saturate(120%);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  transition: height .5s var(--ease), background .5s var(--ease);
}
.nav.scrolled { height: var(--nav-h-shrunk); background: var(--charcoal-90); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; width: 100%; }

.brand { display: flex; align-items: center; gap: 0.6em; line-height: 1; }
.brand-mark { height: 48px; width: auto; flex: none; transition: height .5s var(--ease); }
.nav.scrolled .brand-mark { height: 38px; }
.brand-text { display: inline-flex; align-items: baseline; gap: 0.5em; }
.brand .mark {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.5rem;
  letter-spacing: 0.02em;
  color: var(--off-white);
}
.brand .mark em { font-style: normal; color: var(--stone); }
.brand .sub {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 0.56rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--ink-on-dark-soft);
}

.nav-links { display: flex; align-items: center; gap: clamp(18px, 2vw, 34px); }
.nav-links a {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-on-dark);
  position: relative;
  padding-block: 6px;
  transition: color .3s var(--ease);
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1px;
  background: var(--stone);
  transition: width .4s var(--ease);
}
.nav-links a:hover { color: #fff; }
.nav-links a:hover::after { width: 100%; }
.nav-links a.olive-link { color: var(--olive); }
.nav-links a.olive-link::after { background: var(--olive); }

/* dropdown */
.has-menu { position: relative; }
.dropdown {
  position: absolute;
  top: calc(100% + 14px);
  left: -22px;
  min-width: 248px;
  background: var(--charcoal-90);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,0.10);
  padding: 10px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity .35s var(--ease), transform .35s var(--ease), visibility .35s;
}
.has-menu:hover .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown a {
  display: block;
  padding: 11px 16px;
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  border-left: 1px solid transparent;
  transition: background .3s, border-color .3s, padding-left .3s;
}
.dropdown a::after { display: none; }
.dropdown a:hover { background: rgba(255,255,255,0.05); border-left-color: var(--stone); padding-left: 22px; }
.dropdown a.grp { font-weight: 500; color: var(--off-white); }
.dropdown a.sub { padding-left: 30px; font-size: 0.7rem; color: var(--ink-on-dark-soft); }
.dropdown a.sub::before { content: "›"; position: absolute; left: 16px; color: var(--stone); }
.dropdown a.sub:hover { padding-left: 36px; color: var(--off-white); }
.dropdown .ddiv { height: 1px; background: rgba(255,255,255,0.10); margin: 8px 12px; }

.nav-cta { display: flex; align-items: center; gap: 22px; }
.nav-cta .btn { padding: 0.85em 1.6em; font-size: 0.72rem; }

/* hamburger */
.burger { display: none; width: 30px; height: 20px; position: relative; }
.burger span {
  position: absolute; left: 0; height: 1.5px; width: 100%;
  background: var(--off-white);
  transition: transform .45s var(--ease), opacity .3s var(--ease), top .45s var(--ease);
}
.burger span:nth-child(1) { top: 0; }
.burger span:nth-child(2) { top: 9px; }
.burger span:nth-child(3) { top: 18px; }
body.menu-open .burger span:nth-child(1) { top: 9px; transform: rotate(45deg); }
body.menu-open .burger span:nth-child(2) { opacity: 0; }
body.menu-open .burger span:nth-child(3) { top: 9px; transform: rotate(-45deg); }

/* mobile drawer */
.drawer {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: var(--charcoal);
  padding: calc(var(--nav-h) + 30px) var(--gutter) 40px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transform: translateX(100%);
  transition: transform .55s var(--ease);
  overflow-y: auto;
}
body.menu-open .drawer { transform: translateX(0); }
.drawer a {
  font-family: var(--serif);
  font-size: 1.8rem;
  color: var(--off-white);
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.drawer a .idx { font-family: var(--sans); font-size: 0.7rem; letter-spacing: 0.1em; color: var(--stone); }
.drawer a.olive-link { color: var(--olive); }
.drawer .drawer-foot { margin-top: auto; padding-top: 30px; color: var(--ink-on-dark-soft); font-size: 0.85rem; }
.drawer .drawer-foot a { font-family: var(--sans); font-size: 0.85rem; border: none; padding: 4px 0; color: var(--stone); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--charcoal); color: var(--ink-on-dark-soft); padding-top: clamp(70px, 8vw, 110px); }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.1fr; gap: 48px; padding-bottom: 64px; border-bottom: 1px solid var(--border-dark); }
.footer .brand { align-items: flex-end; }
.footer .brand .mark { font-size: 1.7rem; }
.footer .brand-mark { height: 58px; }
.footer-col h4 { color: var(--off-white); font-family: var(--sans); font-weight: 500; font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; margin-bottom: 22px; }
.footer-col a { display: block; padding: 7px 0; font-size: 0.9rem; font-weight: 300; color: var(--ink-on-dark-soft); transition: color .3s, padding-left .3s; }
.footer-col a:hover { color: var(--off-white); padding-left: 6px; }
.footer-blurb { margin: 22px 0 26px; font-size: 0.92rem; font-weight: 300; max-width: 30ch; line-height: 1.8; }
.footer-tagline { font-family: var(--serif); font-style: italic; font-size: 1.15rem; color: var(--stone); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; padding-block: 30px; font-size: 0.78rem; letter-spacing: 0.04em; }
.footer-bottom .brands { display: flex; gap: 26px; align-items: center; }
.footer-bottom .brands span em { font-style: normal; color: var(--olive); }
.footer-bottom .brands .sep { color: var(--border-dark); }

/* ============================================================
   SHARED: page hero band (service / inner pages)
   ============================================================ */
.page-hero {
  position: relative;
  min-height: 64vh;
  display: flex;
  align-items: flex-end;
  background: var(--charcoal);
  color: var(--off-white);
  padding-top: var(--nav-h);
  overflow: hidden;
}
.page-hero .ph { position: absolute; inset: 0; border: none; }
.page-hero .veil { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(26,26,26,0.55) 0%, rgba(26,26,26,0.35) 40%, rgba(26,26,26,0.88) 100%); }
.page-hero .wrap { position: relative; padding-bottom: clamp(48px, 6vw, 88px); }
.page-hero h1 { color: var(--off-white); font-size: clamp(2.6rem, 6vw, 5rem); margin-top: 1rem; }
.page-hero p { margin-top: 1.3rem; max-width: 52ch; color: var(--ink-on-dark); font-weight: 300; }

/* ---------- Accreditation strip ---------- */
.accred { background: var(--charcoal); color: var(--ink-on-dark); }
.accred-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0; padding-block: 8px; }
.accred-item {
  display: flex; align-items: center; gap: 0.75em;
  padding: 22px clamp(20px, 3vw, 42px);
  font-family: var(--sans); font-weight: 400; font-size: 0.78rem;
  letter-spacing: 0.1em; text-transform: uppercase;
  border-right: 1px solid var(--border-dark);
}
.accred-item:last-child { border-right: none; }
.accred-item .dot { width: 6px; height: 6px; background: var(--stone); transform: rotate(45deg); flex: none; }
.accred.olive .accred-item .dot { background: var(--olive); }

/* ---------- reveal animation (fail-safe: visible by default) ---------- */
.reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: no-preference) {
  .reveal.in { animation: revealIn .9s var(--ease); }
  .reveal.d1.in { animation-delay: .08s; }
  .reveal.d2.in { animation-delay: .16s; }
  .reveal.d3.in { animation-delay: .24s; }
  .reveal.d4.in { animation-delay: .32s; }
  @keyframes revealIn { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .footer-top { grid-template-columns: 1fr 1fr; gap: 40px; }
}
@media (max-width: 860px) {
  .nav-links, .nav-cta .btn { display: none; }
  .burger { display: block; }
  .footer-top { grid-template-columns: 1fr; gap: 36px; }
}
