/* Hawkins & Hawkins Fine Jewelry Design
   Fixed dark theme: charcoal ground, warm gold for brand and actions, plum for quiet emphasis. */

:root {
  --charcoal: #201c21;
  --charcoal-deep: #19161a;
  --surface: #2a2429;
  --surface-raised: #332b31;
  --plum: #542939;
  --plum-line: #8a4a5e;
  --gold: #d4b06a;
  --gold-bright: #e6c887;
  --ivory: #f3ece0;
  --ivory-soft: #cfc5b8;
  --rule: rgba(212, 176, 106, 0.3);

  --font-serif: "EB Garamond", "Iowan Old Style", Georgia, serif;
  --font-sans: "Source Sans 3", "Segoe UI", system-ui, sans-serif;

  --gutter: clamp(20px, 5vw, 64px);
  --wrap: min(1240px, 100% - 2 * var(--gutter));
  --header-h: 84px;
  --header-compact: 60px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);

  /* Chatbot Studio widget */
  --chatbot-color: #d4b06a;
  --chatbot-on-color: #201c21;
  --chatbot-background: #201c21;
  --chatbot-surface: #2a2429;
  --chatbot-text: #f3ece0;
  --chatbot-font: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
  --chatbot-radius: 6px;

  color-scheme: dark;
  scrollbar-color: var(--plum-line) var(--charcoal-deep);
  scrollbar-width: auto;
}

@media (max-width: 1023px) {
  :root { --header-h: 72px; --header-compact: 58px; }
}

*, *::before, *::after { box-sizing: border-box; }

html {
  overflow-x: clip;
  background: var(--charcoal);
  scroll-padding-top: calc(var(--header-h) + 24px);
  -webkit-text-size-adjust: 100%;
}
html.nav-open { overflow: hidden; }

::-webkit-scrollbar { width: 14px; }
::-webkit-scrollbar-track { background: var(--charcoal-deep); }
::-webkit-scrollbar-thumb { background: var(--plum-line); border: 4px solid var(--charcoal-deep); border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold); }

body {
  margin: 0;
  background: var(--charcoal);
  color: var(--ivory);
  font-family: var(--font-sans);
  font-size: 1.1875rem;
  line-height: 1.65;
  font-weight: 400;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }
a { color: var(--gold); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { color: var(--gold-bright); }
p { margin: 0 0 1em; max-width: 64ch; }
ul { margin: 0; padding: 0; list-style: none; }

h1, h2, h3 {
  font-family: var(--font-serif);
  font-weight: 500;
  color: var(--ivory);
  margin: 0 0 0.5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.75rem, 6.2vw, 5.4rem); line-height: 1.02; letter-spacing: -0.01em; }
h2 { font-size: clamp(2rem, 3.6vw, 3.1rem); line-height: 1.1; }
h3 { font-size: clamp(1.45rem, 2vw, 1.7rem); line-height: 1.2; }

:focus-visible { outline: 3px solid var(--gold-bright); outline-offset: 3px; border-radius: 2px; }
main:focus { outline: none; }

.wrap { width: var(--wrap); margin-inline: auto; }

.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  background: var(--gold); color: var(--charcoal); padding: 12px 18px; font-weight: 600;
}
.skip-link:focus { top: 12px; }

/* Buttons and links */
.button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 10px 22px;
  border-radius: 3px; border: 1.5px solid transparent;
  font: 600 1.0625rem/1.2 var(--font-sans);
  text-decoration: none; text-align: center;
  transition: background-color 0.22s ease, color 0.22s ease, border-color 0.22s ease, transform 0.22s ease;
}
.button--large { min-height: 56px; padding: 14px 28px; font-size: 1.125rem; }
.button--gold { background: var(--gold); color: var(--charcoal); }
.button--gold:hover { background: var(--gold-bright); color: var(--charcoal); }
.button--line { border-color: var(--gold); color: var(--ivory); background: transparent; }
.button--line:hover { background: rgba(212, 176, 106, 0.12); color: var(--ivory); }
.button:active { transform: translateY(1px); }

.text-link {
  display: inline-flex; align-items: center; min-height: 44px;
  font-weight: 600; color: var(--gold);
  text-decoration: underline; text-decoration-color: var(--rule);
  transition: text-decoration-color 0.2s ease;
}
.text-link:hover { text-decoration-color: currentColor; }

/* Header */
.header-shell {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  pointer-events: none;
}
.site-header {
  position: relative;
  height: var(--header-h);
  pointer-events: auto;
  background: rgba(32, 28, 33, 0.78);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  transition: height 0.28s var(--ease), background-color 0.28s ease, box-shadow 0.28s ease;
}
/* The brand rule: a gold hairline with a small lozenge, drawn when the header compacts. */
.site-header::after,
.site-header::before {
  content: ""; position: absolute; pointer-events: none;
  transition: transform 0.32s var(--ease), opacity 0.32s ease;
}
.site-header::after {
  left: 0; right: 0; bottom: 0; height: 1px;
  background: var(--gold); opacity: 0.55;
  transform: scaleX(0.18);
}
.site-header::before {
  left: 50%; bottom: -4px; width: 9px; height: 9px;
  background: var(--charcoal); border: 1px solid var(--gold);
  transform: translateX(-50%) rotate(45deg) scale(0.001); opacity: 0;
}
.site-header.is-compact {
  height: var(--header-compact);
  background: rgba(25, 22, 26, 0.97);
  box-shadow: 0 12px 28px -14px rgba(0, 0, 0, 0.7);
}
.site-header.is-compact::after { transform: scaleX(1); opacity: 0.45; }
.site-header.is-compact::before { transform: translateX(-50%) rotate(45deg) scale(1); opacity: 1; }
html.nav-open .site-header { height: var(--header-h); background: var(--charcoal-deep); }

.header-inner {
  width: var(--wrap); height: 100%; margin-inline: auto;
  display: flex; align-items: center; gap: clamp(16px, 2.6vw, 40px);
}
.brand { display: flex; align-items: center; flex: none; min-height: 44px; }
.brand img {
  height: 54px; width: auto;
  transform-origin: left center;
  transition: transform 0.28s var(--ease);
}
.is-compact .brand img { transform: scale(0.76); }
html.nav-open .brand img { transform: none; }

.primary-nav { margin-left: auto; }
.primary-nav ul { display: flex; gap: clamp(8px, 1.6vw, 24px); }
.primary-nav a {
  position: relative; display: inline-flex; align-items: center; min-height: 44px; padding: 0 8px;
  color: var(--ivory); text-decoration: none; font-weight: 600; font-size: 1.0625rem;
}
.primary-nav a::after {
  content: ""; position: absolute; left: 8px; right: 8px; bottom: 6px; height: 2px;
  background: var(--gold); transform: scaleX(0); transform-origin: left;
  transition: transform 0.25s var(--ease);
}
.primary-nav a:hover::after, .primary-nav a[aria-current="page"]::after { transform: scaleX(1); }
.primary-nav a[aria-current="page"] { color: var(--gold); }

.header-actions { display: flex; align-items: center; gap: 12px; flex: none; }
.header-phone {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 8px;
  color: var(--ivory); font-weight: 600; text-decoration: none; white-space: nowrap;
}
.header-phone:hover { color: var(--gold); }
.phone-short { display: none; }
.header-cta { white-space: nowrap; }

.menu-toggle {
  display: none; align-items: center; gap: 10px;
  min-height: 48px; min-width: 48px; padding: 0 14px;
  background: transparent; color: var(--ivory);
  border: 1.5px solid var(--rule); border-radius: 3px;
  font: 600 1.0625rem/1 var(--font-sans); cursor: pointer;
}
.menu-toggle:hover { border-color: var(--gold); }
.menu-toggle__bars, .menu-toggle__bars::before, .menu-toggle__bars::after {
  display: block; width: 18px; height: 2px; background: currentColor; border-radius: 1px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}
.menu-toggle__bars { position: relative; }
.menu-toggle__bars::before, .menu-toggle__bars::after { content: ""; position: absolute; left: 0; }
.menu-toggle__bars::before { top: -6px; }
.menu-toggle__bars::after { top: 6px; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars { background: transparent; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars::before { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars::after { transform: translateY(-6px) rotate(-45deg); }

.mobile-menu {
  position: fixed; left: 0; right: 0; top: var(--header-h); bottom: 0;
  pointer-events: auto; overflow-y: auto; overscroll-behavior: contain;
  background: var(--charcoal-deep);
  border-top: 1px solid var(--rule);
  padding: 24px var(--gutter) 48px;
}
.mobile-menu[hidden] { display: none; }
.mobile-menu nav ul { display: grid; gap: 4px; }
.mobile-menu nav a {
  display: flex; align-items: center; min-height: 56px;
  font-family: var(--font-serif); font-size: 1.75rem; color: var(--ivory); text-decoration: none;
  border-bottom: 1px solid rgba(212, 176, 106, 0.16);
}
.mobile-menu nav a[aria-current="page"] { color: var(--gold); }
.mobile-menu__actions { display: grid; gap: 12px; margin-top: 28px; max-width: 420px; }
.mobile-menu__actions p { color: var(--ivory-soft); margin-top: 8px; }

@media (max-width: 1079px) {
  .primary-nav { display: none; }
  .header-actions { margin-left: auto; }
  .menu-toggle { display: inline-flex; }
}
@media (min-width: 1080px) {
  .mobile-menu { display: none !important; }
}
@media (max-width: 819px) {
  .header-cta { display: none; }
}
@media (max-width: 559px) {
  .brand img { height: 44px; }
  .phone-full { display: none; }
  .phone-short { display: inline; }
  .header-phone { border: 1.5px solid var(--rule); border-radius: 3px; min-height: 48px; padding: 0 14px; }
  .header-actions { gap: 8px; }
}
@media (max-width: 359px) {
  .brand img { height: 38px; }
  .menu-toggle { padding: 0 12px; gap: 8px; }
}

/* Home hero: one dark macro opening */
.hero {
  position: relative; isolation: isolate; overflow: clip;
  margin-top: calc(-1 * var(--header-h));
  padding-top: var(--header-h);
}
.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  align-items: center; gap: 16px;
  min-height: min(calc(88vh - var(--header-h)), 820px);
  padding-block: clamp(24px, 5vh, 64px) clamp(40px, 7vh, 88px);
}
.hero-copy { position: relative; z-index: 2; padding-right: clamp(0px, 2vw, 24px); }
.hero-copy h1 { margin-bottom: 0.32em; }
.hero-lede {
  font-family: var(--font-serif); font-size: clamp(1.5rem, 2.2vw, 1.95rem); line-height: 1.3;
  color: var(--ivory); max-width: 22ch; margin-bottom: 0.7em;
}
.hero-sub { color: var(--ivory-soft); max-width: 40ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.hero-piece { position: relative; margin: 0; z-index: 1; }
.hero-piece__light {
  position: absolute; z-index: -1; inset: -30% -25% -20% -20%;
  background:
    radial-gradient(closest-side at 54% 46%, rgba(230, 200, 135, 0.2), rgba(230, 200, 135, 0.06) 55%, transparent 100%),
    radial-gradient(closest-side at 52% 92%, rgba(84, 41, 57, 0.55), transparent 100%);
  transform: translate3d(0, calc(var(--depth, 0) * 120px), 0);
}
.hero-piece__frame {
  transform: translate3d(0, calc(var(--depth, 0) * 56px), 0);
  will-change: transform;
}
.hero-piece picture { display: block; transform-origin: 50% 60%; }
.hero-piece img {
  width: 100%; max-width: 940px; margin-inline: auto;
  filter: drop-shadow(0 36px 44px rgba(0, 0, 0, 0.55));
}

.hero-piece__sweep {
  position: absolute; z-index: -1; inset: -12% -20%;
  background: linear-gradient(105deg, transparent 32%, rgba(236, 208, 150, 0.34) 50%, transparent 68%);
  filter: blur(22px);
  opacity: 0;
  pointer-events: none;
}

@media (max-width: 899px) {
  .hero-inner { grid-template-columns: 1fr; min-height: 0; gap: 8px; padding-top: 12px; }
  .hero-piece { order: -1; width: min(100%, 620px); margin-inline: auto; }
  .hero-piece__light { inset: -20% -10% -10%; }
  .hero-copy { padding-right: 0; }
}
@media (max-width: 479px) {
  .hero-actions .button { width: 100%; }
}

/* Selected work tray: 16px between pieces */
.showcase { padding-block: clamp(24px, 4vw, 48px) clamp(72px, 9vw, 128px); }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 8px 40px; margin-bottom: 28px; }
.section-head h2 { margin: 0; }
.section-head p { margin: 0; color: var(--ivory-soft); max-width: 44ch; }

.tray {
  display: grid; gap: 16px;
  grid-template-columns: 1.35fr 1fr 0.85fr;
}
.tray-piece, .tray-note {
  display: grid; text-decoration: none; color: var(--ivory);
  border-radius: 4px; min-height: 100%;
  transition: background-color 0.25s ease;
}
.tray-piece {
  grid-template-rows: 1fr auto;
  background: var(--surface);
  padding: clamp(20px, 2.4vw, 32px);
}
.tray-piece:hover { background: var(--surface-raised); color: var(--ivory); }
.tray-piece__media { display: grid; place-items: center; height: clamp(240px, 26vw, 360px); }
.tray-piece__media img {
  max-height: 100%; width: auto; object-fit: contain;
  filter: drop-shadow(0 18px 22px rgba(0, 0, 0, 0.5));
  transition: transform 0.4s var(--ease);
}
.tray-piece:hover .tray-piece__media img { transform: scale(1.035); }
.tray-piece--wide .tray-piece__media img { max-height: 92%; }
.tray-piece__text { display: grid; gap: 4px; margin-top: 18px; }
.tray-piece__title, .tray-note__title { font-family: var(--font-serif); font-size: 1.55rem; line-height: 1.2; }
.tray-piece__more { color: var(--gold); font-weight: 600; text-decoration: underline; text-decoration-color: var(--rule); text-underline-offset: 0.2em; }
.tray-piece:hover .tray-piece__more, .tray-note:hover .tray-piece__more { text-decoration-color: currentColor; }

.tray-note {
  align-content: end; gap: 10px;
  background: var(--plum);
  padding: clamp(24px, 2.6vw, 36px);
  border-top: 3px solid var(--gold);
}
.tray-note:hover { background: #5f2f41; color: var(--ivory); }
.tray-note__title { font-size: 1.85rem; }
.tray-note__body { color: var(--ivory); }

@media (max-width: 959px) {
  .tray { grid-template-columns: 1fr 1fr; }
  .tray-piece--wide { grid-column: 1 / -1; }
}
@media (max-width: 599px) {
  .tray { grid-template-columns: 1fr; }
  .tray-piece__media { height: 260px; }
}

/* Home services */
.home-services { padding-bottom: clamp(72px, 9vw, 128px); }
.split { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.split__aside { position: sticky; top: calc(var(--header-compact) + 32px); }
.split__aside p { color: var(--ivory-soft); }
.service-list li { padding-block: 22px 18px; border-top: 1px solid var(--rule); }
.service-list li:last-child { border-bottom: 1px solid var(--rule); }
.service-list h3 { margin-bottom: 0.25em; }
.service-list p { color: var(--ivory-soft); margin: 0; }
@media (max-width: 859px) {
  .split { grid-template-columns: 1fr; gap: 24px; }
  .split__aside { position: static; }
}

/* Mark and Liz */
.makers { padding-bottom: clamp(72px, 9vw, 128px); }
.makers__panel {
  display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 7fr); gap: 16px clamp(32px, 5vw, 80px);
  align-items: baseline;
  padding: clamp(32px, 5vw, 72px);
  background: var(--plum);
  border-radius: 4px;
}
.makers__panel h2 { margin: 0; color: var(--gold); }
.makers__statement {
  font-family: var(--font-serif); font-size: clamp(1.6rem, 2.8vw, 2.4rem); line-height: 1.3;
  max-width: 30ch; margin: 0;
}
.makers__panel .text-link { grid-column: 2; color: var(--gold-bright); }
@media (max-width: 759px) {
  .makers__panel { grid-template-columns: 1fr; }
  .makers__panel .text-link { grid-column: 1; }
}

/* Visit / closing */
.visit { padding-bottom: clamp(80px, 10vw, 140px); }
.visit__inner {
  border-top: 1px solid var(--rule);
  padding-top: clamp(40px, 6vw, 72px);
  display: grid; justify-items: start;
}
.visit__inner h2 { margin-bottom: 0.3em; }
.visit__inner p { color: var(--ivory-soft); }
.visit__phone { margin-bottom: 0.2em; }
.visit__phone a {
  font-family: var(--font-serif); font-size: clamp(2.2rem, 5vw, 3.6rem); line-height: 1.1;
  color: var(--gold); text-decoration: none;
}
.visit__phone a:hover { text-decoration: underline; text-decoration-thickness: 2px; }
.visit__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 16px; }
@media (max-width: 479px) { .visit__actions .button { width: 100%; } }

/* Inner page heads */
.page-head { padding-block: clamp(40px, 7vw, 96px) clamp(40px, 5vw, 72px); }
.page-head h1 { margin-bottom: 0.3em; }
.draw-rule { display: block; width: 96px; height: 2px; margin-bottom: 20px; background: var(--gold); transform-origin: left center; }
.page-head__lede { font-size: clamp(1.2rem, 1.6vw, 1.375rem); color: var(--ivory-soft); max-width: 56ch; }
.page-head--with-piece { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px; align-items: center; }
.page-head__piece { width: clamp(120px, 16vw, 210px); filter: drop-shadow(0 20px 24px rgba(0, 0, 0, 0.5)); }
@media (max-width: 639px) {
  .page-head--with-piece { grid-template-columns: 1fr; }
  .page-head__piece { order: -1; width: 120px; }
}

.jump-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.jump-links a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 6px 16px;
  border: 1px solid var(--rule); border-radius: 3px;
  color: var(--ivory); text-decoration: none; font-weight: 600; font-size: 1rem;
}
.jump-links a:hover { border-color: var(--gold); color: var(--gold); }

/* Jewelry gallery */
.gallery { display: grid; gap: clamp(64px, 8vw, 112px); padding-bottom: clamp(72px, 9vw, 128px); }
.gallery-item {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(32px, 5vw, 72px); align-items: center;
}
.gallery-item--flip .gallery-item__stage { order: 2; }
.gallery-item__stage {
  margin: 0; display: grid; place-items: center;
  aspect-ratio: 4 / 3;
  padding: clamp(24px, 4vw, 56px);
  border-radius: 4px;
  background:
    radial-gradient(closest-side at 50% 45%, rgba(230, 200, 135, 0.12), transparent 100%),
    var(--surface);
}
.gallery-item__stage img {
  max-height: 100%; width: auto; object-fit: contain;
  filter: drop-shadow(0 26px 30px rgba(0, 0, 0, 0.55));
}
.gallery-item__text p { color: var(--ivory-soft); }
.gallery-item__text .button { margin-top: 8px; }
.gallery-notes { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.gallery-note { background: var(--surface); padding: clamp(28px, 4vw, 48px); border-radius: 4px; scroll-margin-top: calc(var(--header-h) + 24px); }
.gallery-note p { color: var(--ivory-soft); }
.gallery-note--plum { background: var(--plum); border-top: 3px solid var(--gold); }
.gallery-note--plum p { color: var(--ivory); }
.gallery-note--plum .text-link { color: var(--gold-bright); }
@media (max-width: 859px) {
  .gallery-item { grid-template-columns: 1fr; gap: 24px; }
  .gallery-item--flip .gallery-item__stage { order: 0; }
  .gallery-notes { grid-template-columns: 1fr; }
}

/* Services page */
.services { display: grid; gap: clamp(64px, 8vw, 104px); padding-bottom: clamp(72px, 9vw, 128px); }
.service-group > h2 { color: var(--gold); margin-bottom: 0.6em; }
.service-row {
  display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 5fr) minmax(0, 3fr);
  gap: 12px clamp(24px, 3vw, 48px); align-items: baseline;
  padding-block: 26px; border-top: 1px solid var(--rule);
  scroll-margin-top: calc(var(--header-h) + 24px);
}
.service-row:last-child { border-bottom: 1px solid var(--rule); }
.service-row h3 { margin: 0; }
.service-row__body p { margin: 0 0 0.4em; color: var(--ivory-soft); }
.service-row__body p:last-child { margin-bottom: 0; }
.service-row__link {
  justify-self: end; display: inline-flex; align-items: center; min-height: 44px;
  font-weight: 600; text-decoration: underline; text-decoration-color: var(--rule);
}
.service-row__link:hover { text-decoration-color: currentColor; }
.service-row:target h3 { color: var(--gold); }
@media (max-width: 899px) {
  .service-row { grid-template-columns: 1fr; }
  .service-row__link { justify-self: start; }
}

/* About */
.about {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(32px, 6vw, 96px); align-items: start;
  padding-bottom: clamp(72px, 9vw, 128px);
}
.about__figure { margin: 0; position: sticky; top: calc(var(--header-compact) + 32px); }
.about__figure img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: contain;
  padding: clamp(24px, 4vw, 48px);
  background: var(--surface); border-radius: 4px;
}
.about__figure figcaption { margin-top: 12px; color: var(--ivory-soft); font-size: 1rem; }
.about__text p { color: var(--ivory-soft); }
.about__text p:first-of-type { color: var(--ivory); font-size: 1.3rem; }
.about__links { display: flex; flex-wrap: wrap; gap: 8px 28px; margin-top: 12px; }
@media (max-width: 859px) {
  .about { grid-template-columns: 1fr; }
  .about__figure { position: static; }
}

/* Appointments */
.appointments {
  display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr);
  gap: clamp(32px, 5vw, 72px); align-items: start;
  padding-bottom: clamp(80px, 10vw, 140px);
}
.booking { background: var(--surface); border-radius: 4px; padding: clamp(24px, 4vw, 48px); }
.booking > h2 { margin-bottom: 0.6em; }
.booking-reasons { border: 0; padding: 0; margin: 0 0 36px; min-width: 0; }
.booking-reasons legend { font-weight: 600; font-size: 1.2rem; margin-bottom: 14px; padding: 0; }
.booking-reasons__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.reason {
  display: flex; align-items: center; gap: 14px;
  min-height: 56px; padding: 10px 16px;
  border: 1.5px solid rgba(212, 176, 106, 0.28); border-radius: 3px;
  cursor: pointer; transition: border-color 0.2s ease, background-color 0.2s ease;
}
.reason:hover { border-color: var(--gold); }
.reason input {
  appearance: none; flex: none; width: 22px; height: 22px; margin: 0;
  border: 2px solid var(--ivory-soft); border-radius: 50%;
  display: grid; place-items: center; background: transparent;
}
.reason input::after {
  content: ""; width: 10px; height: 10px; border-radius: 50%;
  background: var(--charcoal); transform: scale(0); transition: transform 0.18s ease;
}
.reason input:checked { border-color: var(--gold); background: var(--gold); }
.reason input:checked::after { transform: scale(1); }
.reason input:focus-visible { outline: 3px solid var(--gold-bright); outline-offset: 3px; }
.reason:has(input:checked) { border-color: var(--gold); background: rgba(212, 176, 106, 0.1); }
.booking-times { border-top: 1px solid var(--rule); padding-top: 28px; }
.booking-times h3 { margin-bottom: 0.4em; }
.booking-times__reason { color: var(--gold); font-weight: 600; }
.booking-times__loading { color: var(--ivory-soft); }
.booking-empty {
  background: var(--charcoal); border-left: 3px solid var(--plum-line);
  padding: 24px; border-radius: 0 3px 3px 0;
}
.booking-empty p { font-size: 1.2rem; color: var(--ivory); }
.booking-empty[hidden], .slot-list[hidden], [data-booking-loading][hidden], [data-booking-reason-note][hidden] { display: none; }
.slot-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.slot {
  width: 100%; min-height: 56px; padding: 10px 16px;
  background: transparent; color: var(--ivory);
  border: 1.5px solid var(--gold); border-radius: 3px;
  font: 600 1.0625rem/1.3 var(--font-sans); cursor: pointer;
}
.slot:hover { background: rgba(212, 176, 106, 0.12); }
.slot:disabled { opacity: 0.6; cursor: progress; }
.booking-status { margin: 16px 0 0; font-weight: 600; min-height: 1.6em; }

.visiting { position: sticky; top: calc(var(--header-compact) + 32px); }
.visiting__phone a {
  font-family: var(--font-serif); font-size: clamp(2rem, 3vw, 2.6rem); line-height: 1.1;
  color: var(--gold); text-decoration: none;
}
.visiting__phone a:hover { text-decoration: underline; }
.visiting p { color: var(--ivory-soft); }
.visiting img { width: min(100%, 300px); margin-top: 24px; filter: drop-shadow(0 20px 24px rgba(0, 0, 0, 0.5)); }
@media (max-width: 959px) {
  .appointments { grid-template-columns: 1fr; }
  .visiting { position: static; }
  .visiting img { display: none; }
}
@media (max-width: 639px) {
  .booking-reasons__grid { grid-template-columns: 1fr; }
}

/* Footer */
.site-footer { background: var(--charcoal-deep); border-top: 1px solid var(--rule); padding-block: 56px 64px; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 4fr) minmax(0, 3fr); gap: 40px; }
.footer-brand img { width: 190px; }
.footer-brand p { color: var(--ivory-soft); margin-top: 14px; }
.footer-heading { font-size: 1.5rem; color: var(--gold); margin-bottom: 0.4em; }
.footer-visit p { color: var(--ivory-soft); margin-bottom: 0.4em; }
.footer-phone { font-size: 1.4rem; font-weight: 600; color: var(--ivory); text-decoration: none; display: inline-flex; min-height: 44px; align-items: center; }
.footer-phone:hover { color: var(--gold); }
.footer-nav ul { display: grid; gap: 2px; }
.footer-nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ivory); text-decoration: none; }
.footer-nav a:hover, .footer-nav a[aria-current="page"] { color: var(--gold); text-decoration: underline; }
@media (max-width: 859px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 479px) { .footer-grid { grid-template-columns: 1fr; } }

/* Entrances. Everything here needs html.enter-armed, so without it content is simply visible.
   Each state ends at the element's natural appearance; site.js then removes [data-enter]. */
:root { --enter-travel: 36px; --enter-step: 100ms; --enter-time: 0.85s; --ring-time: 1.7s; }
@media (max-width: 759px) {
  :root { --enter-travel: 18px; --enter-step: 55ms; --enter-time: 0.65s; --ring-time: 1.4s; }
}

html.enter-armed [data-enter] {
  transition:
    opacity var(--enter-time) ease,
    transform var(--enter-time) var(--ease),
    clip-path var(--enter-time) var(--ease);
  transition-delay: calc(var(--i, 0) * var(--enter-step));
}
html.enter-armed [data-enter]:not(.is-in) { opacity: 0; transform: translate3d(0, var(--enter-travel), 0); }

/* Headings rise out of a mask. */
html.enter-armed [data-enter="mask"] { clip-path: inset(-0.25em -0.25em -0.35em -0.25em); }
html.enter-armed [data-enter="mask"]:not(.is-in) {
  opacity: 1;
  clip-path: inset(-0.25em -0.25em 100% -0.25em);
  transform: translate3d(0, 0.45em, 0);
}
html.enter-armed [data-enter="left"]:not(.is-in) { transform: translate3d(calc(var(--enter-travel) * -1.2), 0, 0); }
html.enter-armed [data-enter="piece"]:not(.is-in) { transform: translate3d(0, var(--enter-travel), 0) scale(0.95); }

/* Stays visible and clickable throughout: used wherever a phone link or booking control sits. */
html.enter-armed [data-enter="shift"]:not(.is-in) { opacity: 1; transform: translate3d(0, calc(var(--enter-travel) * 0.5), 0); }

/* The gold rule draws in under inner page headings. */
html.enter-armed [data-enter="rule"]:not(.is-in) { opacity: 1; transform: scaleX(0); }

/* The ring settles into place; the light passes behind it, never over it. */
html.enter-armed [data-enter="ring"] {
  transition: opacity 0.7s ease, transform var(--ring-time) var(--ease);
  transition-delay: 0s;
}
html.enter-armed [data-enter="ring"]:not(.is-in) { opacity: 0.2; transform: translate3d(0, var(--enter-travel), 0) scale(0.9); }
html.enter-armed .hero-piece__light { animation: lamp var(--ring-time) ease-out both; }
html.enter-armed .hero-piece__sweep { animation: light-pass var(--ring-time) ease-in-out 0.25s both; }
@keyframes lamp { from { opacity: 0.15; } to { opacity: 1; } }
@keyframes light-pass {
  0% { opacity: 0; transform: translate3d(-55%, 0, 0); }
  35% { opacity: 1; }
  100% { opacity: 0; transform: translate3d(55%, 0, 0); }
}

/* Hover and keyboard focus answer the same way. */
.button:hover, .button:focus-visible { transform: translateY(-2px); box-shadow: 0 10px 18px -10px rgba(0, 0, 0, 0.7); }
.button--gold:focus-visible { background: var(--gold-bright); color: var(--charcoal); }
.button--line:focus-visible { background: rgba(212, 176, 106, 0.12); color: var(--ivory); }
.button:active { transform: translateY(1px); box-shadow: none; }
.text-link:hover, .text-link:focus-visible, .service-row__link:hover, .service-row__link:focus-visible {
  text-decoration-color: currentColor; text-decoration-thickness: 2px;
}
.primary-nav a:focus-visible::after { transform: scaleX(1); }
.header-phone:focus-visible, .footer-phone:focus-visible { color: var(--gold); }
.tray-piece, .tray-note { transition: background-color 0.25s ease, box-shadow 0.25s ease; }
.tray-piece:hover, .tray-piece:focus-visible, .tray-note:hover, .tray-note:focus-visible { box-shadow: inset 0 0 0 1.5px var(--gold); }
.tray-piece:focus-visible { background: var(--surface-raised); }
.tray-piece:focus-visible .tray-piece__media img { transform: scale(1.035); }
.tray-piece:focus-visible .tray-piece__more, .tray-note:focus-visible .tray-piece__more { text-decoration-color: currentColor; }
.service-row h3, .service-list h3 { transition: color 0.2s ease; }
.service-row:hover h3, .service-row:focus-within h3, .service-list li:hover h3 { color: var(--gold-bright); }
.jump-links a { transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease; }
.jump-links a:hover, .jump-links a:focus-visible { background: rgba(212, 176, 106, 0.12); border-color: var(--gold); color: var(--gold); }
.mobile-menu nav a { transition: color 0.2s ease, border-color 0.2s ease; }
.mobile-menu nav a:hover, .mobile-menu nav a:focus-visible { color: var(--gold); border-color: var(--gold); }

@media print {
  html.enter-armed [data-enter] { opacity: 1 !important; transform: none !important; clip-path: none !important; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; transition-delay: 0s !important; }
  .hero-piece__frame, .hero-piece__light { transform: none; }
  [data-enter] { opacity: 1 !important; transform: none !important; clip-path: none !important; }
  .button:hover, .button:focus-visible { transform: none; }
}
