/* ==========================================================================
   Sid Forman Jewellers — stylesheet
   Design tokens are declared once here. Nothing below should hard-code a
   colour that exists as a token.
   ========================================================================== */

:root {
  --ivory:        #F7F4EE;  /* page background */
  --taupe:        #E8E3D8;  /* panel / tray / hairline */
  --ink:          #16130F;  /* primary text, footer ground */
  --muted:        #6E6558;  /* secondary text */
  --gold-line:    #C9A24A;  /* accent border */
  --gold-text:    #D8C79E;  /* text on dark ground */
  --footer-rule:  #3A342A;

  --gold-grad:  linear-gradient(135deg, #F5DFA0 0%, #C9A24A 35%, #8C6A22 55%, #EFD98C 75%, #B8912F 100%);
  --gold-grad-dark: linear-gradient(135deg, #B8912F 0%, #8C6A22 35%, #5E4415 55%, #B8912F 75%, #7A5A1E 100%);

  --serif-display: 'Bodoni Moda', Georgia, serif;
  --serif-body:    'EB Garamond', Georgia, serif;
  --sans:          'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --wide:   1240px;
  --medium: 1080px;
  --narrow: 820px;
}

/* --------------------------------------------------------------------------
   Reset / base
   -------------------------------------------------------------------------- */

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--serif-body);
  font-size: 18px;
  line-height: 1.65;
}

img { max-width: 100%; }

a { color: inherit; }

button { font: inherit; }

:focus-visible {
  outline: 2px solid var(--gold-line);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* Gold gradient text treatment ------------------------------------------- */

.gold {
  background-image: var(--gold-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--gold-line); /* fallback where background-clip is unsupported */
}

.gold-deep {
  background-image: var(--gold-grad-dark);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: #7A5A1E;
}

/* Shared type roles ------------------------------------------------------- */

.eyebrow {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.16em;
}

.label {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.14em;
}

.page-title {
  font-family: var(--serif-display);
  font-size: clamp(40px, 6vw, 64px);
  line-height: 1.05;
  margin: 0;
}

.sub-title {
  font-family: var(--serif-display);
  font-size: clamp(36px, 5vw, 52px);
  line-height: 1.1;
  margin: 0;
}

.deck {
  font-family: var(--serif-body);
  font-style: italic;
  font-size: 20px;
  color: var(--muted);
  margin: 8px 0 0;
}

.caption {
  font-family: var(--sans);
  font-size: 12px;
  font-style: italic;
  color: var(--muted);
  margin-top: 10px;
}

/* Buttons ----------------------------------------------------------------- */

.btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.12em;
  padding: 15px 26px;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: 0;
  cursor: pointer;
}

.btn--solid {
  background: var(--ink);
  color: var(--gold-text);
}

.btn--outline {
  background: transparent;
  border-color: var(--gold-line);
  color: var(--ink);
}

.btn--solid:hover  { background: #241f18; }
.btn--outline:hover { background: rgba(201, 162, 74, 0.12); }

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: var(--ivory);
}

.header-logo {
  text-align: center;
  padding: 8px 20px 0;
  background: var(--ivory);
}

.header-logo img {
  height: 100px;
  width: auto;
}

.header-bar {
  background: var(--ink);
  color: var(--gold-text);
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 32px;
}

.header-tagline {
  order: 1;
  flex: 1 1 auto;
  margin: 0;
  text-align: center;
  white-space: nowrap;
  font-family: var(--serif-display);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.sf-mark {
  order: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 40px;
  position: relative;
  flex-shrink: 0;
  text-decoration: none;
}

.sf-mark svg { position: absolute; inset: 0; }

.sf-mark span {
  position: relative;
  font-family: var(--serif-display);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.02em;
  color: #F3F2F2;
}

/* Desktop navigation ------------------------------------------------------ */

.desktop-nav {
  order: 2;
  display: none;
  gap: 20px;
  align-items: center;
  justify-content: center;
  flex: 1 1 auto;
  margin: 0;
  padding: 0;
}

.desktop-nav > li { position: relative; list-style: none; }

.desktop-nav ul { list-style: none; margin: 0; padding: 0; }

.nav-link {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--gold-text);
  text-decoration: none;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  white-space: nowrap;
}

.nav-link:hover,
.nav-link[aria-current="page"] {
  background-image: var(--gold-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--gold-line);
}

.nav-submenu {
  position: absolute;
  top: 28px;
  left: 0;
  background: var(--ink);
  border: 1px solid var(--gold-line);
  min-width: 230px;
  padding: 6px 0;
  z-index: 60;
}

.nav-submenu a {
  display: block;
  padding: 10px 16px;
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--gold-text);
  text-decoration: none;
}

.nav-submenu a:hover { background: #221D16; }

.hamburger {
  order: 0;
  background: none;
  border: none;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  background-image: var(--gold-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--gold-line);
}

/* The navigation is hamburger-only at every width; the .desktop-nav markup
   is left in place but stays hidden. */

/* Slide-in panel ---------------------------------------------------------- */

.menu-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(22, 19, 15, 0.5);
  z-index: 100;
}

.menu-panel {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: min(340px, 82%);
  background: var(--ink);
  padding: 28px;
  overflow-y: auto;
}

.menu-close {
  background: none;
  border: none;
  color: var(--gold-text);
  font-size: 26px;
  cursor: pointer;
  padding: 0;
}

.menu-list { margin-top: 24px; }

.menu-item {
  border-top: 1px solid var(--gold-line);
  padding: 18px 0;
}

.menu-item > a {
  font-family: var(--serif-display);
  font-size: 16px;
  color: var(--gold-text);
  text-decoration: none;
}

.menu-children {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-left: 12px;
}

.menu-children a {
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-decoration: none;
}

/* --------------------------------------------------------------------------
   Layout containers
   -------------------------------------------------------------------------- */

.section        { max-width: var(--wide);   margin: 0 auto; padding: 64px 40px; }
.section--medium{ max-width: var(--medium); margin: 0 auto; padding: 64px 40px; }
.section--narrow{ max-width: 760px;         margin: 0 auto; padding: 80px 40px; }
.section--collection { max-width: var(--wide); margin: 0 auto; padding: 32px 40px 64px; }
.section--piece { max-width: var(--wide);   margin: 0 auto; padding: 48px 40px; }

/* --------------------------------------------------------------------------
   Home
   -------------------------------------------------------------------------- */

.home-top { max-width: 1000px; margin: 0 auto; padding: 32px 24px 0; }

.home-hero {
  position: relative;
  height: 0;
  padding-bottom: 52%;
  box-shadow: 0 6px 18px rgba(22, 19, 15, 0.12);
  overflow: hidden;
}

.home-hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-hero figcaption {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 20px 24px;
  font-family: var(--serif-body);
  font-style: italic;
  color: var(--ivory);
  background: linear-gradient(to top, rgba(22, 19, 15, 0.55), transparent);
}

.mosaic {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 14px;
}

.mosaic:first-of-type { margin-top: 28px; }
.mosaic:last-of-type  { margin-bottom: 40px; }

.mosaic-tile {
  position: relative;
  height: 0;
  padding-bottom: 125%;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(22, 19, 15, 0.1);
}

.mosaic-tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mosaic-tile figcaption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 14px 16px;
  font-family: var(--serif-body);
  font-style: italic;
  font-size: 13px;
  color: var(--ivory);
  background: linear-gradient(to top, rgba(22, 19, 15, 0.6), transparent);
}

.home-intro {
  background: var(--taupe);
  padding: 48px 20px;
  text-align: center;
}

.home-intro p {
  font-size: 20px;
  max-width: 520px;
  margin: 20px auto 28px;
}

/* --------------------------------------------------------------------------
   Our Legacy
   -------------------------------------------------------------------------- */

.legacy-split {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 48px;
  margin-top: 56px;
  align-items: start;
}

.legacy-portrait {
  width: 100%;
  height: 520px;
  object-fit: cover;
  display: block;
}

.legacy-quote {
  font-family: var(--serif-body);
  font-size: 19px;
  font-style: italic;
  line-height: 1.3;
  margin-top: 28px;
}

.legacy-body p { margin: 0 0 20px; }
.legacy-body p:last-child { margin-bottom: 0; }

.generations-band {
  background: var(--taupe);
  margin: 80px -40px;
  padding: 80px 40px;
}

.generations-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 36px;
  max-width: 1080px;
  margin-left: auto;
  margin-right: auto;
}

.generations-grid img {
  width: 100%;
  height: 355px;
  object-fit: cover;
  display: block;
}

.generations-grid h3 {
  font-family: var(--serif-display);
  font-size: 20px;
  font-weight: 400;
  margin: 14px 0 0;
}

.generations-grid p {
  font-size: 15px;
  color: var(--muted);
  margin: 8px 0 0;
}

.rule-gold {
  height: 1px;
  border: 0;
  margin: 0;
  background: linear-gradient(90deg, #F5DFA0, #C9A24A, #8C6A22, #EFD98C, #B8912F);
}

.family-legacy h2 {
  font-family: var(--serif-display);
  font-size: 28px;
  font-weight: 400;
  margin: 0 0 20px;
}

.family-legacy .stack {
  display: flex;
  flex-direction: column;
  gap: 20px;
  line-height: 1.7;
}

.family-legacy p { margin: 0; }

/* --------------------------------------------------------------------------
   Mandela
   -------------------------------------------------------------------------- */

.mandela-figure { max-width: 640px; margin: 0 auto; }
.mandela-figure img { width: 100%; height: 420px; object-fit: cover; display: block; }
.mandela-figure .caption { text-align: center; }

.mandela-figure--small { max-width: 480px; margin: 40px auto 0; }
.mandela-figure--small img { height: 280px; }

.mandela-lede {
  text-align: center;
  font-size: 19px;
  line-height: 1.7;
  max-width: 680px;
  margin: 40px auto 0;
}

.mandela-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-top: 40px;
  line-height: 1.7;
}

.mandela-columns p { margin: 0; }

.mandela-wide { max-width: var(--narrow); margin: 20px auto 0; line-height: 1.7; }

.mandela-close {
  text-align: center;
  font-style: italic;
  font-size: 21px;
  max-width: 680px;
  margin: 56px auto 0;
}

/* --------------------------------------------------------------------------
   Signature piece pages
   -------------------------------------------------------------------------- */

.piece-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.piece-grid img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  display: block;
}

.piece-title { margin: 8px 0 40px; }

.piece-body {
  display: grid;
  grid-template-columns: 7fr 4fr;
  gap: 60px;
}

.piece-body p { margin: 0 0 20px; }

.spec-row {
  border-top: 1px solid var(--taupe);
  padding: 12px 0;
  font-size: 15px;
}

.spec-row dt {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.06em;
  margin-bottom: 4px;
}

.spec-row dd { margin: 0; }

/* --------------------------------------------------------------------------
   Diamond Awards
   -------------------------------------------------------------------------- */

.timeline {
  position: relative;
  padding-left: 32px;
  margin-top: 40px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: #7A5A1E;
}

.award-row {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 32px;
  align-items: center;
  padding: 28px 0;
  border-bottom: 1px solid var(--taupe);
  position: relative;
}

.award-row::before {
  content: "";
  position: absolute;
  left: -32px;
  top: 32px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #7A5A1E;
}

.award-row img {
  width: 100%;
  height: 160px;
  object-fit: contain;
  display: block;
}

.award-year {
  font-family: var(--serif-display);
  font-size: 28px;
}

.award-recipient { font-size: 19px; margin-top: 6px; }

.award-status {
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0.1em;
  margin: 6px 0 10px;
}

.award-more {
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0.1em;
  text-decoration: none;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  color: var(--ink);
  border-bottom: 1px solid var(--gold-line);
}

/* Award modal ------------------------------------------------------------- */

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(22, 19, 15, 0.7);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 24px 40px;
}

.modal-card {
  background: var(--ivory);
  max-width: 820px;
  width: 100%;
  max-height: calc(100vh - 160px);
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  position: relative;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  z-index: 1;
  line-height: 1;
}

.modal-image {
  padding: 20px 0;
  display: flex;
  align-items: center;
}

.modal-image img {
  width: 100%;
  height: 340px;
  object-fit: contain;
  display: block;
}

.modal-text {
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.modal-text h2 {
  font-family: var(--serif-display);
  font-size: 22px;
  font-weight: 400;
  margin: 0;
}

.modal-text p { font-size: 13px; line-height: 1.45; margin: 0; }

.modal-step {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
}

.modal-step button {
  font-family: var(--sans);
  font-size: 11px;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  color: var(--ink);
}

/* --------------------------------------------------------------------------
   Collection pages
   -------------------------------------------------------------------------- */

.collection-title { text-align: center; margin: 16px 0 8px; }

.collection-deck {
  text-align: center;
  font-style: italic;
  color: var(--muted);
  font-size: 18px;
  max-width: 640px;
  margin: 0 auto 36px;
}

.tray {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: center;
  gap: 6px;
  background: var(--taupe);
  padding: 6px;
}

.tile {
  position: relative;
  display: block;
  height: 300px;
  overflow: hidden;
  text-decoration: none;
}

.tile img {
  height: 100%;
  width: auto;
  display: block;
  transform-origin: center;
}

.tile-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: 16px;
  background: linear-gradient(to top, rgba(22, 19, 15, 0.85), transparent 60%);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.tile:hover .tile-overlay,
.tile:focus-visible .tile-overlay { opacity: 1; }

.tile-overlay p {
  font-family: var(--serif-body);
  font-style: italic;
  font-size: 14px;
  color: var(--ivory);
  margin: 0;
}

.load-more-wrap { text-align: center; margin-top: 40px; }

/* Enquiry bar ------------------------------------------------------------- */

.enquiry-bar { background: var(--taupe); padding: 56px 40px; }

.enquiry-bar__inner {
  max-width: var(--wide);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
}

.enquiry-bar h2 {
  font-family: var(--serif-display);
  font-size: 24px;
  font-weight: 400;
  margin: 0;
}

.enquiry-bar__actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* --------------------------------------------------------------------------
   The Signature Within
   -------------------------------------------------------------------------- */

.film {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--ink);
}

.film video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  cursor: pointer;
}

.film-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: 0;
  cursor: pointer;
}

.film-play span {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  border: 1px solid var(--gold-line);
  background: rgba(22, 19, 15, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-text);
  font-size: 22px;
  padding-left: 6px;
}

.film-play[hidden] { display: none; }

.within-copy { max-width: 760px; margin: 56px auto 0; }
.within-copy p { text-align: center; line-height: 1.65; margin: 0 0 24px; }

.promises {
  display: flex;
  justify-content: center;
  gap: 56px;
  margin-top: 56px;
  flex-wrap: wrap;
  text-align: center;
  font-family: var(--serif-display);
  font-size: 20px;
}

.within-close {
  text-align: center;
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0.1em;
  margin-top: 48px;
}

/* --------------------------------------------------------------------------
   Contact
   -------------------------------------------------------------------------- */

.contact-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 48px;
}

.contact-strip > div {
  padding: 0 24px;
  border-left: 1px solid var(--taupe);
}

.contact-strip p { font-size: 15px; margin-top: 10px; }

.contact-strip a { font-family: var(--sans); font-size: 12px; }

.diamond-divider {
  text-align: center;
  margin: 32px 0 0;
  font-size: 18px;
}

/* Enquiry block ----------------------------------------------------------- */

.enquiry-block { background: var(--taupe); padding: 56px 40px; }

.enquiry-block__inner { max-width: var(--wide); margin: 0 auto; }

.enquiry-block__rule {
  height: 1px;
  width: 60px;
  background: var(--gold-line);
  border: 0;
  margin: 16px auto 48px;
}

.enquiry-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 32px;
  align-items: stretch;
}

.enquiry-form { display: flex; flex-direction: column; gap: 16px; }

.enquiry-form .pair { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.enquiry-form input[type="text"],
.enquiry-form input[type="tel"],
.enquiry-form input[type="email"],
.enquiry-form textarea {
  background: var(--ivory);
  border: 1px solid var(--gold-text);
  padding: 14px;
  font-family: var(--serif-body);
  font-size: 15px;
  border-radius: 2px;
  width: 100%;
  color: var(--ink);
}

.enquiry-form textarea { resize: vertical; flex: 1; min-height: 200px; }

.enquiry-form .consent {
  font-family: var(--sans);
  font-size: 12px;
  color: var(--muted);
  display: flex;
  gap: 8px;
  align-items: flex-start;
}

.enquiry-form .consent input { margin-top: 3px; }

.enquiry-form button { border: none; padding: 16px; letter-spacing: 0.14em; }

.form-status {
  font-family: var(--sans);
  font-size: 12px;
  line-height: 1.5;
  margin: 0;
  min-height: 1em;
}

.form-status[data-state="error"] { color: #8C2F1E; }
.form-status[data-state="ok"]    { color: #3D5A34; }

.store-details {
  font-family: var(--serif-body);
  font-size: 15px;
  line-height: 1.5;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.store-details .label { margin: 16px 0 8px; }
.store-details .label:first-child { margin-top: 0; }
.store-details .key { font-size: 12px; color: var(--muted); }
.store-details a { color: var(--ink); }

.map-frame { position: relative; }

.map-frame iframe {
  width: 100%;
  height: 380px;
  border: 0;
  display: block;
  filter: grayscale(1) contrast(1.1) brightness(0.95);
}

.map-chip {
  position: absolute;
  bottom: 14px;
  left: 14px;
  background: rgba(22, 19, 15, 0.82);
  padding: 8px 12px;
  pointer-events: none;
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.1em;
}

.map-open {
  display: block;
  text-align: center;
  margin-top: 2px;
  padding: 14px;
}

.storefront {
  width: 100%;
  max-width: 900px;
  height: 420px;
  object-fit: contain;
  margin: 0 auto;
  display: block;
}

.storefront-caption { text-align: center; margin-top: 32px; }

.storefront-caption h2 {
  font-family: var(--serif-display);
  font-size: 26px;
  font-weight: 400;
  margin: 0;
}

.storefront-caption p {
  font-size: 16px;
  color: var(--muted);
  max-width: 520px;
  margin: 12px auto 0;
}

/* --------------------------------------------------------------------------
   Prev / next
   -------------------------------------------------------------------------- */

.prevnext {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 32px 40px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid var(--taupe);
  font-family: var(--sans);
}

.prevnext a { text-decoration: none; color: var(--ink); }
.prevnext a:last-child { text-align: right; margin-left: auto; }

.prevnext .direction { font-size: 11px; letter-spacing: 0.12em; }

.prevnext .target {
  font-family: var(--serif-display);
  font-size: 18px;
  margin-top: 4px;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
  background: var(--ink);
  color: var(--gold-text);
  padding: 40px 48px 24px;
  font-family: var(--serif-body);
}

.footer-grid {
  max-width: var(--wide);
  margin: 44px auto 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}

.footer-brand { padding-left: 12px; }

.footer-logo {
  height: 105px;
  width: 100%;
  max-width: 280px;
  background: linear-gradient(135deg, #FBEFC8 0%, #E0C079 35%, #B69754 55%, #F7E7B8 75%, #D6B369 100%);
  -webkit-mask-image: url('./assets/sf-logo.png');
  mask-image: url('./assets/sf-logo.png');
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
}

.footer-tagline {
  font-style: italic;
  font-size: 14px;
  text-align: center;
  margin-top: 16px;
}

.footer-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 40px;
  position: relative;
  margin: 16px auto 0;
}

.footer-mark svg { position: absolute; inset: 0; }

.footer-mark span {
  position: relative;
  font-family: var(--serif-display);
  font-weight: 600;
  font-size: 15px;
  color: var(--gold-text);
}

.footer-col h2 {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.14em;
  margin: 0 0 18px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 14px;
}

.footer-links a { color: var(--gold-text); text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }
.footer-links a.indent { padding-left: 16px; font-size: 13px; opacity: 0.85; }

.footer-text { font-size: 14px; line-height: 1.6; color: var(--gold-text); }

.footer-bottom {
  max-width: var(--wide);
  margin: 48px auto 0;
  border-top: 1px solid var(--footer-rule);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.06em;
}

.footer-bottom a { text-decoration: none; }
.footer-bottom nav { display: flex; gap: 20px; }

/* --------------------------------------------------------------------------
   Utility pages
   -------------------------------------------------------------------------- */

.centred-page { max-width: 640px; margin: 0 auto; padding: 140px 40px; text-align: center; }

.centred-page h1 {
  font-family: var(--serif-display);
  font-size: 40px;
  font-weight: 400;
  margin: 20px 0;
}

.centred-page p { font-size: 17px; color: var(--muted); }

.legal h1 { font-family: var(--serif-display); font-size: 36px; font-weight: 400; }
.legal .pending { color: var(--muted); font-style: italic; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--gold-text);
  padding: 12px 18px;
  font-family: var(--sans);
  font-size: 12px;
  z-index: 300;
}

.skip-link:focus { left: 8px; top: 8px; }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1000px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .enquiry-grid { grid-template-columns: 1fr; }
  .enquiry-form textarea { min-height: 160px; }
  .contact-strip { grid-template-columns: 1fr 1fr; row-gap: 32px; }
}

@media (max-width: 900px) {
  body { font-size: 17px; }

  .section, .section--medium, .section--piece { padding: 48px 24px; }
  .section--collection { padding: 24px 16px 48px; }
  .section--narrow { padding: 56px 24px; }

  .header-bar { padding: 0 18px; }
  .header-tagline { font-size: 12px; }
  .header-logo img { height: 72px; }

  .legacy-split { grid-template-columns: 1fr; gap: 32px; }
  .legacy-portrait { height: 420px; }
  .generations-band { margin: 56px -24px; padding: 56px 24px; }
  .generations-grid { grid-template-columns: 1fr; gap: 32px; }
  .generations-grid img { height: 380px; }

  .mandela-columns { grid-template-columns: 1fr; gap: 20px; }
  .piece-body { grid-template-columns: 1fr; gap: 40px; }

  .award-row { grid-template-columns: 1fr; gap: 16px; }
  .award-row img { height: 200px; }

  .modal-backdrop { padding: 80px 16px 24px; }
  .modal-card { grid-template-columns: 1fr; overflow-y: auto; }
  .modal-image img { height: 220px; }
  .modal-text { padding: 20px; }

  /* No hover on touch: the caption sits under the image rather than over it. */
  .tray { gap: 16px; padding: 16px; }

  .tile {
    height: auto;
    width: 100%;
    max-width: 420px;
  }

  .tile img { width: 100%; height: auto; transform: none !important; }

  .tile-overlay {
    position: static;
    opacity: 1;
    background: none;
    padding: 10px 2px 4px;
  }

  .tile-overlay p { color: var(--ink); font-size: 14px; }

  .prevnext { padding: 24px; }
  .site-footer { padding: 32px 24px 24px; }
  .promises { gap: 28px; }
  .storefront { height: auto; }
}

@media (max-width: 640px) {
  .mosaic { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-brand { padding-left: 0; }
  .contact-strip { grid-template-columns: 1fr; }
  .contact-strip > div { border-left: 0; border-top: 1px solid var(--taupe); padding: 20px 0 0; }
  .enquiry-form .pair { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
}
