/* ============================================
   Y.P.B. — Shared editorial luxury system
   Palette · Type · Surfaces · Components
============================================ */
:root {
  /* Colour language */
  --jet:        #221E18;   /* warm truffle, softer than pure black */
  --alabaster:  #F7F4ED;   /* warmer cream canvas */
  --white:      #FFFFFF;
  --platinum:   #C8C2B8;
  --parchment:  #E8E2D6;   /* warmer border tone */
  --stone:      #5A544B;   /* warmed body */
  --jet-floor:  #6B6359;
  --jet-body:   #BFB9AF;

  /* Type */
  --display: "Playfair Display", "Times New Roman", serif;
  --sans:    "Raleway", system-ui, sans-serif;

  --t-hero:    clamp(2.4rem, 5.2vw, 4.4rem);
  --t-h2:      clamp(1.6rem, 3vw, 2.6rem);
  --t-h3:      clamp(1.2rem, 1.7vw, 1.55rem);
  --t-body:    0.875rem;
  --t-body-lg: 0.95rem;
  --t-label:   0.5625rem;

  --container: 1240px;
  --pad-x: clamp(20px, 5vw, 64px);
  --rule: 1px solid var(--parchment);
  --rule-dark: 1px solid rgba(255,255,255,0.08);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--alabaster);
  color: var(--stone);
  font-family: var(--sans);
  font-weight: 300;
  font-size: var(--t-body);
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }

/* ── Editorial typography ── */
h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 300;
  color: var(--jet);
  margin: 0;
  line-height: 1.12;
  letter-spacing: 0.01em;
  text-wrap: balance;
}
h1 em, h2 em, h3 em { font-style: italic; font-weight: 300; color: var(--platinum); }
.h-display { font-size: var(--t-hero); letter-spacing: 0.01em; }
.h-section { font-size: var(--t-h2); font-weight: 400; letter-spacing: 0.02em; line-height: 1.18; }
.h-card    { font-size: 1.4rem; font-weight: 400; letter-spacing: 0.01em; line-height: 1.22; }

.label {
  font-family: var(--sans);
  font-weight: 500;
  font-size: var(--t-label);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--jet);
  display: inline-flex; align-items: center; gap: 0.6em;
}
.label::before {
  content: "";
  width: 6px; height: 6px;
  background: currentColor;
  transform: rotate(45deg);
  display: inline-block;
  flex-shrink: 0;
}
.label.on-dark { color: var(--platinum); }

p { margin: 0; text-wrap: pretty; }

/* ── Surfaces ── */
.on-jet { background: var(--jet); color: var(--jet-body); }
.on-jet h1, .on-jet h2, .on-jet h3, .on-jet h4 { color: var(--white); }
.on-jet h1 em, .on-jet h2 em, .on-jet h3 em { color: var(--platinum); }
.on-jet .muted { color: var(--jet-floor); }
.on-light { background: var(--alabaster); color: var(--stone); }
.on-white { background: var(--white); color: var(--stone); }

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}
.section { padding-block: clamp(72px, 9vw, 144px); }
.section-tight { padding-block: clamp(48px, 5vw, 80px); }

/* ============================================
   Buttons — sharp edges, ♦ leads, 14×28
============================================ */
.btn {
  display: inline-flex; align-items: center; gap: 0.85em;
  padding: 14px 28px;
  border-radius: 0;
  font-family: var(--sans);
  font-weight: 500;
  font-size: var(--t-label);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  border: 1px solid var(--jet);
  transition: opacity 200ms ease, background-color 220ms ease, color 220ms ease, border-color 220ms ease, letter-spacing 240ms ease;
  white-space: nowrap;
  line-height: 1;
}
.btn::before {
  content: "";
  width: 5px; height: 5px;
  background: currentColor;
  transform: rotate(45deg);
  transition: background 220ms ease;
  flex-shrink: 0;
}
.btn--primary { background: var(--jet); color: var(--white); border-color: var(--jet); }
.btn--primary:hover { opacity: 0.85; }
.btn--secondary { background: transparent; color: var(--jet); border-color: var(--jet); }
.btn--secondary:hover { background: var(--jet); color: var(--white); }
.btn--ghost { background: transparent; color: var(--white); border-color: var(--platinum); }
.btn--ghost:hover { color: var(--platinum); border-color: var(--platinum); }

.link {
  display: inline-flex; align-items: center; gap: 0.8em;
  font-family: var(--sans);
  font-weight: 500;
  font-size: var(--t-label);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--jet);
  border-bottom: 1px solid var(--jet);
  padding-bottom: 4px;
  transition: letter-spacing 220ms ease;
  align-self: flex-start;
}
.link::before {
  content: "";
  width: 5px; height: 5px;
  background: currentColor;
  transform: rotate(45deg);
  flex-shrink: 0;
}
.link:hover { letter-spacing: 0.32em; }
.on-jet .link { color: var(--platinum); border-bottom-color: var(--platinum); }

/* ============================================
   Image placeholders — Parchment + ♦ glyph
============================================ */
.img-slot {
  position: relative;
  background: var(--parchment);
  display: flex; align-items: center; justify-content: center;
  color: var(--stone);
  overflow: hidden;
  isolation: isolate;
}
.img-slot::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(135deg, rgba(255,255,255,0.35) 0%, rgba(255,255,255,0) 50%, rgba(17,17,17,0.04) 100%),
    repeating-linear-gradient(135deg, transparent 0 18px, rgba(17,17,17,0.025) 18px 19px);
  z-index: 0;
}
.img-slot::after {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: clamp(34px, 7%, 64px);
  height: clamp(40px, 8%, 76px);
  transform: translate(-50%, calc(-50% - 22px));
  background:
    /* Brilliant cut outline */
    linear-gradient(transparent, transparent);
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 80 100' fill='none' stroke='black' stroke-width='3' stroke-linejoin='round'><path d='M8 32 L24 12 L56 12 L72 32 L40 96 Z'/><path d='M8 32 L72 32'/><path d='M24 12 L40 32 L56 12'/><path d='M8 32 L40 96'/><path d='M72 32 L40 96'/><path d='M24 32 L40 96'/><path d='M56 32 L40 96'/></svg>") center / contain no-repeat;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 80 100' fill='none' stroke='black' stroke-width='3' stroke-linejoin='round'><path d='M8 32 L24 12 L56 12 L72 32 L40 96 Z'/><path d='M8 32 L72 32'/><path d='M24 12 L40 32 L56 12'/><path d='M8 32 L40 96'/><path d='M72 32 L40 96'/><path d='M24 32 L40 96'/><path d='M56 32 L40 96'/></svg>") center / contain no-repeat;
  background-color: rgba(17,17,17,0.35);
  z-index: 1;
}
.img-slot__caption {
  position: relative;
  z-index: 2;
  margin-top: clamp(60px, 10%, 110px);
  font-family: var(--sans);
  font-size: var(--t-label);
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: rgba(17,17,17,0.55);
  text-align: center;
  padding: 0 1rem;
}
.img-slot.is-dark { background: var(--jet); }
.img-slot.is-dark::after { background-color: rgba(200,194,184,0.4); }
.img-slot.is-dark .img-slot__caption { color: rgba(200,194,184,0.55); }

/* Aspect ratio helpers */
.ar-4x5 { aspect-ratio: 4 / 5; }
.ar-1x1 { aspect-ratio: 1 / 1; }
.ar-16x9 { aspect-ratio: 16 / 9; }
.ar-3x4 { aspect-ratio: 3 / 4; }
.ar-3x2 { aspect-ratio: 3 / 2; }

/* ============================================
   Top utility bar
============================================ */
.topbar {
  background: var(--jet);
  color: var(--platinum);
  font-size: var(--t-label);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.topbar-inner {
  max-width: var(--container);
  margin-inline: auto;
  padding: 10px var(--pad-x);
  display: flex; justify-content: space-between; gap: 1rem;
  flex-wrap: wrap;
}
.topbar span { opacity: 0.7; }

/* ============================================
   Nav
============================================ */
.nav {
  position: sticky; top: 0; z-index: 60;
  background: rgba(34, 30, 24, 0.94);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.nav-inner {
  max-width: var(--container);
  margin-inline: auto;
  padding: 22px var(--pad-x);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 2rem;
}
.nav-logo { display: inline-flex; align-items: center; color: var(--white); }
.nav-logo img {
  height: 36px;
  width: auto;
  /* Black source SVG → flip to white so it's visible on the jet nav */
  filter: brightness(0) invert(1) drop-shadow(0 0 10px rgba(200,194,184,0.28));
}
.nav-links {
  list-style: none; margin: 0; padding: 0;
  display: flex; gap: 2.4rem; justify-content: center;
}
.nav-links a {
  font-family: var(--sans);
  font-weight: 500;
  font-size: var(--t-label);
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--white);
  opacity: 0.85;
  transition: opacity 220ms ease, color 220ms ease;
  position: relative;
  padding-block: 4px;
}
.nav-links a:hover { opacity: 1; color: var(--platinum); }
.nav-links a[aria-current="page"] { color: var(--platinum); opacity: 1; }
.nav-links a[aria-current="page"]::after {
  content: "";
  position: absolute; bottom: -4px; left: 50%; transform: translateX(-50%);
  width: 4px; height: 4px;
  background: var(--platinum);
  transform: translateX(-50%) rotate(45deg);
}
.nav-right { display: flex; justify-content: flex-end; align-items: center; gap: 1.5rem; }
.nav-right .icon-btn {
  color: var(--white);
  width: 32px; height: 32px;
  display: inline-flex; align-items: center; justify-content: center;
  opacity: 0.85;
}
.nav-right .icon-btn:hover { color: var(--platinum); opacity: 1; }
.nav-right .icon-btn svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.4; }
@media (max-width: 980px) {
  .nav-inner { grid-template-columns: auto 1fr; }
  .nav-links { display: none; }
}

/* ============================================
   FAQ — works on jet or light
============================================ */
.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: clamp(2rem, 6vw, 6rem);
}
.faq-aside .label { margin-bottom: 2rem; }
.faq-aside h2 { margin-bottom: 1.4rem; }
.faq-aside p { margin-bottom: 2rem; max-width: 32ch; }
.on-jet .faq-aside p { color: var(--jet-body); }
.faq-list { border-top: var(--rule); }
.on-jet .faq-list { border-top: var(--rule-dark); }
.faq-item { border-bottom: var(--rule); }
.on-jet .faq-item { border-bottom: var(--rule-dark); }
.faq-q {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 2rem;
  padding: 1.6rem 0;
  font-family: var(--display);
  font-weight: 400;
  font-size: 1.2rem;
  color: var(--jet);
  line-height: 1.3;
  letter-spacing: 0.01em;
  text-align: left;
}
.on-jet .faq-q { color: var(--white); }
.faq-q .plus { position: relative; width: 14px; height: 14px; flex-shrink: 0; }
.faq-q .plus::before, .faq-q .plus::after { content: ""; position: absolute; inset: 0; margin: auto; background: var(--jet); }
.on-jet .faq-q .plus::before, .on-jet .faq-q .plus::after { background: var(--platinum); }
.faq-q .plus::before { width: 14px; height: 1px; }
.faq-q .plus::after  { width: 1px; height: 14px; transition: opacity 240ms ease; }
details.faq-item[open] .faq-q .plus::after { opacity: 0; }
.faq-a {
  padding: 0 4rem 1.8rem 0;
  color: var(--stone);
  line-height: 1.85;
  max-width: 64ch;
}
.on-jet .faq-a { color: var(--jet-body); }
details.faq-item summary { list-style: none; cursor: pointer; }
details.faq-item summary::-webkit-details-marker { display: none; }
@media (max-width: 900px) {
  .faq-grid { grid-template-columns: 1fr; }
  .faq-a { padding-right: 0; }
}

/* ============================================
   CTA
============================================ */
.cta { text-align: center; }
.cta .label { color: var(--jet); justify-content: center; margin-bottom: 2rem; }
.on-jet.cta .label { color: var(--platinum); }
.cta h2 { font-size: clamp(2rem, 4.4vw, 3.4rem); max-width: 16ch; margin: 0 auto 1.4rem; }
.cta p { color: var(--stone); max-width: 50ch; margin: 0 auto 2.4rem; font-size: var(--t-body-lg); }
.on-jet.cta p { color: var(--jet-body); }
.cta-actions { display: inline-flex; gap: 1rem; flex-wrap: wrap; justify-content: center; }

/* ============================================
   Footer
============================================ */
.footer {
  background: var(--jet);
  color: var(--jet-body);
  padding-block: clamp(56px, 6vw, 96px);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: clamp(2rem, 4vw, 4rem);
  padding-bottom: 3rem;
  border-bottom: var(--rule-dark);
}
.footer-brand img { height: 26px; width: auto; margin-bottom: 1.4rem; filter: brightness(0) invert(1); }
.footer-brand p { color: var(--jet-body); max-width: 30ch; line-height: 1.85; }
.footer-col h4 {
  font-family: var(--sans);
  font-weight: 500;
  font-size: var(--t-label);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--platinum);
  margin: 0 0 1.4rem;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.8rem; }
.footer-col a { color: var(--white); font-size: 0.85rem; transition: color 220ms ease; }
.footer-col a:hover { color: var(--platinum); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap;
  padding-top: 2rem;
  font-size: var(--t-label);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--jet-floor);
}
.footer-bottom ul { list-style: none; display: flex; gap: 2rem; padding: 0; margin: 0; }
.footer-bottom a:hover { color: var(--platinum); }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } }

/* ============================================
   Page header (used on Pricing, Contact)
============================================ */
.page-header {
  padding-block: clamp(96px, 11vw, 180px);
  text-align: center;
}
.page-header .label { justify-content: center; margin-bottom: 2rem; }
.page-header h1 { font-size: var(--t-hero); margin-bottom: 1.4rem; }
.page-header p { color: var(--stone); max-width: 48ch; margin: 0 auto; font-size: var(--t-body-lg); }
.on-jet.page-header p { color: var(--jet-body); }

/* ============================================
   Forms
============================================ */
.form-grid { display: grid; gap: 1.5rem; max-width: 36rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 0.5rem; }
.field label {
  font-family: var(--sans);
  font-weight: 500;
  font-size: var(--t-label);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--jet);
}
.field input, .field select, .field textarea {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 0.95rem;
  color: var(--jet);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--jet);
  padding: 10px 0;
  border-radius: 0;
  outline: none;
  transition: border-color 220ms ease;
}
.field input:focus, .field select:focus, .field textarea:focus { border-bottom-color: var(--platinum); }
.field textarea { min-height: 8rem; resize: vertical; line-height: 1.7; }

.radio-group {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem 1.5rem;
  margin-top: 0.6rem;
}
.radio {
  display: inline-flex; align-items: center; gap: 0.7rem;
  cursor: pointer; color: var(--jet);
  font-size: 0.9rem;
}
.radio input { appearance: none; width: 14px; height: 14px; border: 1px solid var(--jet); margin: 0; transform: rotate(45deg); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.radio input:checked { background: var(--jet); }
.checkbox { display: inline-flex; align-items: center; gap: 0.7rem; cursor: pointer; color: var(--jet); font-size: 0.85rem; }
.checkbox input { appearance: none; width: 14px; height: 14px; border: 1px solid var(--jet); margin: 0; cursor: pointer; }
.checkbox input:checked { background: var(--jet); }

/* ============================================
   Utilities
============================================ */
.divider { height: 1px; background: var(--parchment); width: 100%; margin: 0; border: 0; }
.on-jet .divider { background: rgba(255,255,255,0.08); }

.eyebrow-row {
  display: flex; justify-content: space-between; align-items: end; gap: 2rem; flex-wrap: wrap;
  margin-bottom: clamp(2.4rem, 4vw, 4rem);
  padding-bottom: clamp(1.2rem, 2vw, 2rem);
  border-bottom: var(--rule);
}
.on-jet .eyebrow-row { border-bottom: var(--rule-dark); }

/* Fade-in */
@media (prefers-reduced-motion: no-preference) {
  .fade { opacity: 0; transform: translateY(12px); transition: opacity 900ms ease, transform 900ms ease; }
  .fade.in { opacity: 1; transform: none; }
}
