/* Verber Legacy Group. From the brand board: midnight ink and oxblood, champagne gold on dark only,
   Cormorant capitals with Montserrat. The split shield sets the layout: navy and burgundy meet at a gold seam. */
:root {
  --ink: #172638;
  --ink-deep: #0f1a28;
  --burgundy: #693c42;
  --burgundy-deep: #4a262c;
  --gold: #c2a36a;
  --gold-light: #d6bd8a;  /* small gold text on ink: 8:1 */
  --gold-ink: #7a5f2e;    /* gold-toned text on parchment: 5:1 */
  --parchment: #f4ebdd;
  --paper: #fbf7ef;
  --slate: #777a7c;       /* lines and large text only */
  --placeholder: #f3e3a6;
  --metal: linear-gradient(180deg, #f3e4bd 0%, #d2b57c 42%, #b39257 70%, #7f6234 100%);
  --hairline: rgba(194, 163, 106, .45);

  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Five type steps */
  --step-display: clamp(46px, 4.6vw, 74px);
  --step-heading: clamp(34px, 3.8vw, 54px);
  --step-lead: clamp(21px, 1.9vw, 26px);
  --step-body: 17px;
  --step-small: 14px;

  --m: clamp(16px, 4vw, 64px);
  --gap-section: clamp(88px, 10vw, 152px);
  --wide: 1240px;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --t-press: 140ms;
  --t-hover: 180ms;
  --t-ui: 240ms;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--parchment);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--step-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p, figure, ul, ol, dl, dd { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
ul, ol { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.display, .heading, .lead { font-family: var(--serif); font-weight: 500; }
.display { font-size: var(--step-display); line-height: 1.02; letter-spacing: -0.005em; }
.heading { font-size: var(--step-heading); line-height: 1.08; }
.lead { font-size: var(--step-lead); line-height: 1.22; }
.small { font-size: var(--step-small); line-height: 1.5; }
.label {
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: .24em;
  text-transform: uppercase;
}

/* Draft placeholders: details still to come */
.ph { background: var(--placeholder); color: var(--ink); padding: 0 .2em; }

/* The two interlocked rings between two gold lines */
.rings-rule { display: flex; align-items: center; gap: 14px; width: min(260px, 100%); color: var(--gold); }
.rings-rule::before, .rings-rule::after { content: ""; flex: 1; height: 1px; background: currentColor; opacity: .7; }
.rings-rule svg { width: 34px; height: 34px; fill: none; stroke: currentColor; stroke-width: 1.3; }

/* ---------- Buttons ---------- */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 28px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: 0;
  transition: transform var(--t-press) var(--ease-out), background-color var(--t-hover) ease, color var(--t-hover) ease;
}
.button:active { transform: scale(0.97); }
.button-gold { background: var(--gold); color: var(--ink-deep); }
.button-outline { border-color: var(--gold); color: var(--parchment); }
@media (hover: hover) and (pointer: fine) {
  .button-gold:hover { background: var(--gold-light); }
  .button-outline:hover { background: var(--gold); color: var(--ink-deep); }
}

/* ---------- Header ---------- */
.site-head {
  position: fixed;
  inset: 0 0 auto;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 36px;
  padding: 20px var(--m);
  color: var(--parchment);
  border-bottom: 1px solid rgba(194, 163, 106, .25);
  transition: background-color var(--t-ui) ease, padding var(--t-ui) var(--ease-out);
}
/* Solid once scrolled: a real sticky bar, so it may carry a shadow */
.site-head.is-solid { background: rgba(15, 26, 40, .96); padding-top: 12px; padding-bottom: 12px; box-shadow: 0 8px 24px -12px rgba(0, 0, 0, .5); }
@supports (backdrop-filter: blur(8px)) { .site-head.is-solid { background: rgba(15, 26, 40, .86); backdrop-filter: blur(10px); } }
[id] { scroll-margin-top: 84px; }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.brand-mark { width: 30px; height: auto; }
.brand-type, .foot-name, .hero-word { display: flex; flex-direction: column; align-items: center; font-family: var(--serif); line-height: 1; }
.brand-name { font-size: 24px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; margin-right: -.2em; }
.brand-sub { font-size: 12px; font-weight: 600; letter-spacing: .32em; text-transform: uppercase; margin-top: 6px; margin-right: -.32em; color: var(--gold-light); }
.site-nav { display: flex; gap: 30px; margin-left: auto; font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.site-nav a, .head-contact { text-decoration: none; text-underline-offset: .5em; }
.head-contact { display: none; font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
@media (hover: hover) and (pointer: fine) {
  .site-nav a:hover, .head-contact:hover { text-decoration: underline; text-decoration-color: var(--gold); }
}

/* ---------- Hero: per pale, navy and burgundy, joined by a gold seam ---------- */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: max(100svh, 740px);
  background: var(--ink);
  color: var(--parchment);
  overflow: hidden;
}
.hero-words {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 24px;
  padding: 150px var(--m) 120px max(var(--m), calc((100vw - var(--wide)) / 2));
  width: 100%;
}
.hero-words h1 { max-width: 15em; }
.hero-motto { font-family: var(--serif); font-style: italic; font-size: var(--step-lead); color: var(--gold-light); margin-top: -8px; }
.hero-standfirst { max-width: 34ch; color: rgba(244, 235, 221, .88); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 8px; }
.hero-crest {
  position: relative;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 18px;
  padding: 140px var(--m) 120px;
  background: var(--burgundy-deep);
  border-left: 2px solid var(--gold);
  isolation: isolate;
  overflow: hidden;
}
.hero-rays {
  position: absolute;
  left: 50%;
  top: 46%;
  width: 1500px;
  max-width: none;
  translate: -50% -50%;
  opacity: .16;
  z-index: -1;
}
.crest { width: clamp(220px, 26vw, 400px); height: auto; filter: drop-shadow(0 12px 24px rgba(0, 0, 0, .45)); }
.hero-word { color: var(--gold-light); text-transform: uppercase; }
.word-name { font-size: clamp(38px, 4.4vw, 68px); font-weight: 600; letter-spacing: .16em; margin-right: -.16em; }
.word-sub { font-size: clamp(14px, 1.4vw, 20px); font-weight: 600; letter-spacing: .36em; margin-top: .5em; margin-right: -.36em; }
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .word-name, .word-sub { background: var(--metal); -webkit-background-clip: text; background-clip: text; color: transparent; }
}
.hero-fsp { margin-top: 12px; color: var(--gold-light); letter-spacing: .04em; }

/* ---------- Legacy: arched photograph beside the story ---------- */
.legacy {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(40px, 7vw, 112px);
  align-items: center;
  max-width: calc(var(--wide) + 2 * var(--m));
  margin: 0 auto;
  padding: var(--gap-section) var(--m);
}
.legacy-photo {
  aspect-ratio: 4 / 5;
  border-radius: 999px 999px 0 0;  /* the arch of a Cape Dutch doorway */
  overflow: hidden;
  outline: 1px solid var(--gold);
  outline-offset: 10px;
}
.legacy-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 62% 50%; filter: saturate(.8) sepia(.12); }
.legacy-text { display: grid; gap: 26px; }
.statement { font-family: var(--serif); font-size: var(--step-lead); line-height: 1.32; }
.legacy-text p:last-child { max-width: 52ch; }

/* ---------- The crest's charges ---------- */
.charges { padding: var(--gap-section) var(--m); background: var(--paper); }
.section-head { max-width: var(--wide); margin: 0 auto 64px; display: grid; gap: 14px; justify-items: center; text-align: center; }
.section-intro { max-width: 44ch; font-family: var(--serif); font-size: var(--step-lead); line-height: 1.3; }
.charge-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; max-width: var(--wide); margin: 0 auto; }
.charge { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 4px 28px; text-align: center; }
.charge + .charge { border-left: 1px solid var(--hairline); }
.charge-icon {
  display: grid;
  place-items: center;
  width: 84px;
  height: 84px;
  margin-bottom: 8px;
  background: var(--ink);
  color: var(--gold);
  border-radius: 50%;
  box-shadow: 0 0 0 1px var(--paper), 0 0 0 2px var(--gold);
}
.charge-icon svg { width: 40px; height: 40px; fill: none; stroke: currentColor; stroke-width: 1.15; stroke-linecap: round; stroke-linejoin: round; }
.charge .label { color: var(--gold-ink); }
.charge-promise { font-family: var(--serif); font-size: var(--step-lead); line-height: 1.2; color: var(--burgundy); }
.charge p:last-child { font-size: 16px; line-height: 1.6; }

/* ---------- Services: each icon in a small shield ---------- */
.services { padding: var(--gap-section) var(--m); background: var(--ink); color: var(--parchment); }
.services .section-intro { color: rgba(244, 235, 221, .82); }
.service-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; max-width: var(--wide); margin: 0 auto; }
.service {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 36px 28px 32px;
  background: rgba(15, 26, 40, .6);
  border-top: 2px solid var(--gold);
  transition: background-color var(--t-ui) ease, translate var(--t-ui) var(--ease-out);
}
.service-icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 68px;
  margin-bottom: 6px;
  color: var(--gold);
  background: var(--burgundy-deep);
  clip-path: path("M0 0 H58 V34 C58 52 44 62 29 68 C14 62 0 52 0 34 Z");
}
.service-icon svg { width: 28px; height: 28px; margin-top: -6px; fill: none; stroke: currentColor; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
.service .lead { color: var(--gold-light); }
.service p { font-size: 16px; line-height: 1.6; color: rgba(244, 235, 221, .86); }
@media (hover: hover) and (pointer: fine) {
  .service:hover { background: var(--burgundy-deep); translate: 0 -4px; }
}
.licence { max-width: 70ch; margin: 56px auto 0; text-align: center; color: rgba(244, 235, 221, .86); }

/* ---------- Estate check: index left, a sealed deed right ---------- */
.estate {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
  max-width: calc(var(--wide) + 2 * var(--m));
  margin: 0 auto;
  padding: var(--gap-section) var(--m);
}
.estate-index { display: flex; flex-direction: column; gap: 26px; }
.estate-index > p:first-of-type { max-width: 46ch; }
.heirs { display: flex; flex-wrap: wrap; gap: 10px; }
.heir {
  min-height: 48px;
  padding: 0 20px;
  background: transparent;
  border: 1px solid var(--gold-ink);
  border-radius: 0;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color var(--t-hover) ease, color var(--t-hover) ease, transform var(--t-press) var(--ease-out);
}
.heir:active { transform: scale(0.97); }
.heir[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--parchment); }
@media (hover: hover) and (pointer: fine) {
  .heir[aria-pressed="false"]:hover { background: rgba(194, 163, 106, .2); }
}
.estate-note { max-width: 54ch; color: var(--ink); }
.estate-stage { display: grid; justify-items: center; padding: 16px 16px 48px; }
.deed {
  position: relative;
  width: min(540px, 100%);
  padding: 42px 42px 40px;
  background: var(--paper);
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  box-shadow: 0 24px 60px -24px rgba(15, 26, 40, .45);
}
.deed::before { content: ""; position: absolute; inset: 12px; border: 1px solid var(--hairline); pointer-events: none; }
.deed::after { content: ""; position: absolute; inset: 16px; border: 1px solid var(--hairline); opacity: .5; pointer-events: none; }
.deed-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 22px; }
.deed-title { font-family: var(--serif); font-size: 15px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--gold-ink); }
.deed-inputs { display: grid; gap: 18px; }
.deed-row { display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; font-size: var(--step-small); }
.deed-row output { font-size: var(--step-body); font-weight: 600; }
.deed-row input { grid-column: 1 / -1; width: 100%; height: 28px; margin: 0; accent-color: var(--burgundy); cursor: pointer; }
.deed-sums { display: grid; grid-template-columns: 1fr auto; gap: 8px 16px; margin-top: 24px; padding: 18px 20px; background: var(--parchment); }
.deed-sums dd { text-align: right; font-weight: 600; }
.deed-total { padding-top: 8px; border-top: 1px solid var(--hairline); font-weight: 600; color: var(--burgundy); }
.deed-result { display: grid; gap: 2px; margin-top: 22px; font-family: var(--serif); font-size: var(--step-lead); line-height: 1.2; color: var(--ink); }
.deed-gap { font-size: var(--step-heading); font-weight: 600; line-height: 1.05; color: var(--burgundy); font-variant-numeric: lining-nums tabular-nums; }
.deed-gap.is-spare { color: #2f5a3c; }
.deed-foot { margin-top: 26px; padding-right: 110px; color: var(--gold-ink); letter-spacing: .08em; }
.deed-seal { position: absolute; right: 22px; bottom: -34px; width: 116px; height: 116px; rotate: -10deg; filter: drop-shadow(0 6px 10px rgba(40, 10, 16, .4)); }
html:not(.js) .deed-inputs input { display: none; }

/* ---------- How we work ---------- */
.how { padding: var(--gap-section) var(--m); background: var(--burgundy-deep); color: var(--parchment); }
.how .section-intro { color: rgba(244, 235, 221, .84); }
.how-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; max-width: var(--wide); margin: 0 auto; }
.how-step { display: flex; flex-direction: column; gap: 14px; padding-top: 22px; border-top: 1px solid var(--gold); }
.numeral { font-family: var(--serif); font-size: var(--step-heading); font-weight: 600; line-height: 1; color: var(--gold); }

/* ---------- Photo band ---------- */
.band { position: relative; height: clamp(320px, 42vw, 560px); overflow: hidden; isolation: isolate; }
.band img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 78%; filter: saturate(.5) sepia(.18); }
.band::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(23, 38, 56, 0) 30%, rgba(23, 38, 56, .72)); }
.band-line {
  position: absolute;
  inset: auto var(--m) clamp(32px, 5vw, 64px);
  z-index: 2;
  max-width: var(--wide);
  margin: 0 auto;
  font-family: var(--serif);
  font-style: italic;
  font-size: var(--step-heading);
  line-height: 1.1;
  color: var(--parchment);
  text-align: center;
}

/* ---------- Contact ---------- */
.contact {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
  padding: var(--gap-section) max(var(--m), calc((100% - var(--wide)) / 2));
  background: var(--ink);
  color: var(--parchment);
}
.contact-text { display: grid; gap: 22px; justify-items: start; }
.contact-text p { max-width: 36ch; color: rgba(244, 235, 221, .86); }
.contact-list { display: grid; grid-template-columns: auto 1fr; gap: 18px 32px; align-items: baseline; }
.contact-list dt { color: var(--gold-light); }
.contact-list dd { font-family: var(--serif); font-size: var(--step-lead); line-height: 1.25; overflow-wrap: anywhere; }
.contact-list a { text-decoration: none; }
@media (hover: hover) and (pointer: fine) { .contact-list a:hover, .complaints-mail:hover { text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: .2em; } }

/* ---------- Complaints ---------- */
.complaints {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
  max-width: calc(var(--wide) + 2 * var(--m));
  margin: 0 auto;
  padding: var(--gap-section) var(--m);
}
.complaints-text { display: grid; gap: 26px; justify-items: start; }
.complaints-text p { max-width: 46ch; }
.complaints-mail { font-family: var(--serif); font-size: var(--step-lead); color: var(--burgundy); text-underline-offset: .2em; overflow-wrap: anywhere; }
.ombud { position: relative; display: grid; gap: 18px; padding: 44px; background: var(--paper); }
.ombud::after { content: ""; position: absolute; inset: 10px; border: 1px solid var(--hairline); pointer-events: none; }
.ombud h3 { color: var(--burgundy); }
.ombud dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 24px; }
.ombud dt { font-weight: 600; }
.ombud dd { overflow-wrap: anywhere; }

/* ---------- Footer ---------- */
.site-foot { padding: 96px var(--m) 32px; background: var(--ink-deep); color: rgba(244, 235, 221, .86); }
.foot-brand { display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; color: var(--gold-light); }
.foot-crest { width: 150px; height: auto; }
.foot-name { text-transform: uppercase; }
.foot-name .word-name { font-size: 36px; }
.foot-name .word-sub { font-size: 14px; }
.foot-motto { font-family: var(--serif); font-style: italic; font-size: 22px; color: var(--gold-light); }
.foot-grid {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 3fr) minmax(0, 3fr);
  gap: 48px;
  max-width: var(--wide);
  margin: 64px auto 0;
  padding-top: 44px;
  border-top: 1px solid rgba(194, 163, 106, .3);
  font-size: 16px;
}
.foot-legal { display: grid; gap: 14px; }
.foot-legal strong { color: var(--parchment); font-weight: 600; }
.foot-nav, .foot-contact { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.foot-nav .label, .foot-contact .label { color: var(--gold-light); margin-bottom: 6px; }
.foot-nav a, .foot-contact a { text-decoration: none; overflow-wrap: anywhere; }
@media (hover: hover) and (pointer: fine) {
  .foot-nav a:hover { color: var(--parchment); text-decoration: underline; text-decoration-color: var(--gold); }
}
.foot-credits { display: grid; gap: 6px; max-width: var(--wide); margin: 48px auto 0; color: rgba(244, 235, 221, .78); }

/* ---------- Motion: entrances once; the sun's rays turn slowly behind the crest ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 800ms var(--ease-out), transform 1000ms var(--ease-expo);
    transition-delay: calc(var(--i, 0) * 90ms);
  }
  .js [data-reveal].is-in { opacity: 1; transform: none; }
  .js .crest[data-reveal] { transform: scale(.92); }
  .js .crest[data-reveal].is-in { transform: none; }
  .hero-rays { animation: turn 240s linear infinite; }
}
@keyframes turn { to { rotate: 360deg; } }
.no-motion [data-reveal] { opacity: 1 !important; transform: none !important; }

/* ---------- Tablet ---------- */
@media (max-width: 1100px) {
  .site-nav { display: none; }
  .head-contact { display: block; margin-left: auto; }
  .charge-list { grid-template-columns: repeat(2, 1fr); row-gap: 48px; }
  .charge:nth-child(3) { border-left: 0; }
  .service-list { grid-template-columns: repeat(2, 1fr); }
  .how-steps { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
}
@media (max-width: 900px) {
  .head-action { display: none; }
  .hero { grid-template-columns: 1fr; }
  .hero-crest { order: -1; padding: 110px var(--m) 48px; border-left: 0; border-bottom: 2px solid var(--gold); }
  .hero-words { justify-self: stretch; max-width: none; padding: 56px var(--m) 96px; }
  .crest { width: clamp(180px, 40vw, 260px); }
  .legacy, .estate, .complaints, .contact { grid-template-columns: 1fr; }
  .legacy-photo { width: min(420px, 100%); justify-self: center; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-legal { grid-column: 1 / -1; }
}

/* ---------- Phone ---------- */
@media (max-width: 640px) {
  :root { --step-display: 42px; --step-heading: 32px; --step-lead: 20px; --gap-section: 76px; }
  .site-head { padding: 14px 16px; gap: 14px; }
  .brand-mark { width: 24px; }
  .brand-name { font-size: 19px; }
  .brand-sub { font-size: 10px; }
  .hero-actions { flex-direction: column; align-items: stretch; width: 100%; }
  .hero-crest { padding: 88px 16px 28px; gap: 10px; }
  .crest { width: 150px; }
  .word-name { font-size: 32px; }
  .hero-words { padding: 40px 16px 72px; }
  .charge-list, .service-list, .how-steps { grid-template-columns: 1fr; }
  .charge { padding: 28px 0; }
  .charge + .charge { border-left: 0; border-top: 1px solid var(--hairline); }
  .deed { padding: 30px 24px 34px; }
  .deed-sums { padding: 16px; }
  .deed-seal { width: 92px; height: 92px; right: 14px; bottom: -28px; }
  .deed-foot { padding-right: 90px; }
  .contact-list { grid-template-columns: 1fr; gap: 4px; }
  .contact-list dd { margin-bottom: 14px; }
  .ombud { padding: 32px 26px; }
  .foot-grid { grid-template-columns: 1fr; gap: 36px; }
}
