/* Showcase profile template: dark, photo-led, a banner hero and a gallery.
   Every colour comes from the roles in /<slug>/theme.css (page, ink, muted, accent, accenttext, panel, paneltext, link, footer),
   plus --bv-focus-x and --bv-focus-y (whole numbers, a percentage each) for the banner's focal point.
   Words never sit on a picture: the banner is its own box, and everything written over or beside it is in a `.panel` block.
   Text colours are only the pairs Templates declares for Showcase: ink, muted or link on page; paneltext, muted or link on
   panel; accenttext on accent; ink on footer. A rule that sets `color` without its own background names the surface in an `on:`
   comment, and tests/Site/TemplateContrastRenderTest.php checks every one of them against the registry. */

@font-face { font-family: "Archivo"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/archivo-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Archivo"; font-style: normal; font-weight: 800; font-display: swap; src: url("../fonts/archivo-latin-800-normal.woff2") format("woff2"); }
@font-face { font-family: "Archivo"; font-style: normal; font-weight: 900; font-display: swap; src: url("../fonts/archivo-latin-900-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/inter-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/inter-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/inter-latin-600-normal.woff2") format("woff2"); }

.showcase {
  overflow-wrap: anywhere;
  --s-head: "Archivo", "Arial Black", Arial, sans-serif;
  --s-body: "Inter", "Segoe UI", Arial, sans-serif;
  --s-line: color-mix(in srgb, var(--bv-ink) 16%, var(--bv-page));
  --s-gutter: clamp(20px, 4.5vw, 64px);
  --s-pad-x: max(var(--s-gutter), calc((100% - 1280px) / 2));
  margin: 0;
  background: var(--bv-page);
  color: var(--bv-ink);
  font: 400 17px/1.65 var(--s-body);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
.showcase *, .showcase *::before, .showcase *::after { box-sizing: border-box; }
:where(.showcase) :where(h1, h2, h3, p, ul, dl, dd, figure) { margin: 0; }
:where(.showcase) ul { padding: 0; list-style: none; }
.showcase img { display: block; max-width: 100%; }
.showcase .panel { background: var(--bv-panel); color: var(--bv-paneltext); }
/* on: page */
.showcase a { color: var(--bv-link); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
/* on: panel */
.showcase .panel a { color: var(--bv-link); }
.showcase a:hover { text-decoration-thickness: 2px; }
.showcase a:focus-visible { outline: 3px solid var(--bv-accent); outline-offset: 3px; border-radius: 3px; }
.showcase main:focus { outline: none; }

.showcase a.s-skip { position: absolute; left: 16px; top: -100px; z-index: 10; padding: 10px 16px; border-radius: 4px; background: var(--bv-accent); color: var(--bv-accenttext); }
.showcase a.s-skip:focus { top: 16px; }

/* ---- Header ---- */
.s-header {
  display: flex; align-items: center; justify-content: space-between; gap: 20px 32px; flex-wrap: wrap;
  padding: 20px var(--s-pad-x); border-bottom: 1px solid var(--s-line);
}
.showcase .s-brand { display: flex; align-items: center; gap: 14px; margin-right: auto; text-decoration: none; }
.s-logo { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.s-monogram { display: flex; align-items: center; justify-content: center; background: var(--bv-accent); color: var(--bv-accenttext); font: 900 16px/1 var(--s-head); }
/* on: page */
.showcase .s-brand-name { color: var(--bv-ink); font: 800 19px/1.2 var(--s-head); }
.s-menu ul { display: flex; flex-wrap: wrap; gap: 8px 32px; }
/* on: page */
.showcase .s-menu a { color: var(--bv-ink); font: 500 15px var(--s-body); text-decoration: none; padding: 6px 0; border-bottom: 2px solid transparent; }
.showcase .s-menu a:hover { border-bottom-color: var(--bv-accent); }
.showcase .s-menu a[aria-current="page"] { border-bottom-color: var(--bv-accent); font-weight: 600; }

/* ---- Buttons ---- */
.s-buttons { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.showcase .s-btn { display: inline-block; border-radius: 4px; padding: 14px 26px; font: 700 16px/1.2 var(--s-body); text-align: center; text-decoration: none; }
.showcase a.s-btn-solid { background: var(--bv-accent); color: var(--bv-accenttext); }
.showcase a.s-btn-solid:hover { text-decoration: underline; text-underline-offset: 4px; }
/* on: panel */
.showcase .s-btn-line { border: 2px solid var(--bv-accent); color: var(--bv-link); padding: 12px 24px; }
.showcase .s-btn-nav { padding: 11px 20px; font-size: 15px; }
.showcase .s-btn-lg { font-size: 19px; padding: 18px 34px; }

/* ---- Hero: the banner picture in its own box, the words in a panel laid over its corner ---- */
.s-hero { display: grid; padding: 0 var(--s-pad-x); margin-top: clamp(20px, 3vw, 40px); }
.s-hero > * { grid-area: 1 / 1; }
.s-hero-media { min-height: clamp(360px, 62vh, 640px); overflow: hidden; border-radius: 6px; }
.s-hero-media picture { display: block; height: 100%; }
.s-hero-media img { width: 100%; height: 100%; min-height: inherit; object-fit: cover; object-position: var(--bv-focus-x, 50%) var(--bv-focus-y, 50%); }
.s-hero-panel { align-self: end; justify-self: start; z-index: 1; width: min(100%, 38rem); padding: clamp(24px, 3.4vw, 48px); border-radius: 6px; margin: 0 0 clamp(16px, 2.4vw, 32px) clamp(16px, 2.4vw, 32px); }
.s-hero-solid .s-hero-panel { width: auto; justify-self: stretch; margin: 0; padding: clamp(32px, 5vw, 72px); border-left: 6px solid var(--bv-accent); }
.s-hero-page .s-hero-panel { padding-top: clamp(28px, 4vw, 56px); padding-bottom: clamp(28px, 4vw, 56px); }
/* on: panel */
.s-eyebrow { color: var(--bv-link); font: 600 15px/1.4 var(--s-body); margin-bottom: 12px; }
/* on: panel */
.s-hero-title { color: var(--bv-paneltext); font: 900 clamp(32px, 1.2rem + 3vw, 56px)/1.05 var(--s-head); letter-spacing: -0.015em; overflow-wrap: anywhere; }
.s-hero-page .s-hero-title { font-size: clamp(28px, 1.1rem + 2vw, 42px); }
/* on: panel */
.s-hero-intro { color: var(--bv-muted); font-size: clamp(17px, 1rem + 0.35vw, 19px); margin-top: 18px; max-width: 36em; }
/* on: panel */
.s-trust { color: var(--bv-muted); font-size: 15px; margin-top: 24px; }

/* ---- Home: highlights, gallery, offers ---- */
.s-highlights { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; padding: clamp(28px, 4vw, 56px) var(--s-pad-x) 0; }
.s-highlight { border-radius: 6px; padding: 28px; border-top: 3px solid var(--bv-accent); }
/* on: panel */
.s-highlight-title { color: var(--bv-paneltext); font: 800 19px/1.25 var(--s-head); }
/* on: panel */
.s-highlight-text { color: var(--bv-muted); margin-top: 8px; font-size: 16px; }

.s-gallery { padding: clamp(40px, 6vw, 88px) var(--s-pad-x) 0; }
/* on: page */
.s-section-title { color: var(--bv-ink); font: 800 clamp(24px, 1.1rem + 1vw, 32px)/1.2 var(--s-head); margin-bottom: 24px; }
.s-gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.s-photo { overflow: hidden; border-radius: 6px; background: var(--bv-panel); aspect-ratio: 4 / 3; }
.s-photo picture { display: block; height: 100%; }
.s-photo img { width: 100%; height: 100%; object-fit: cover; }

.s-offers { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; padding: clamp(40px, 6vw, 88px) var(--s-pad-x) 0; }
.s-offer { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; border-radius: 6px; padding: 32px; }
/* on: panel */
.s-label { color: var(--bv-link); font: 600 14px/1.4 var(--s-body); }
/* on: panel */
.s-offer-title { color: var(--bv-paneltext); font: 800 24px/1.2 var(--s-head); }
/* on: panel */
.s-offer-text { color: var(--bv-muted); font-size: 16px; }
/* on: panel */
.showcase .s-offer-link { color: var(--bv-link); font-weight: 600; }

.s-strip { margin: clamp(40px, 6vw, 88px) var(--s-pad-x) 0; border-radius: 6px; padding: clamp(28px, 4vw, 48px); }
/* on: panel */
.s-strip-label { color: var(--bv-paneltext); font: 800 20px/1.3 var(--s-head); }
/* on: panel */
.s-strip-text { color: var(--bv-muted); margin-top: 8px; max-width: 46em; }

.s-closing { padding: clamp(40px, 6vw, 88px) var(--s-pad-x) clamp(48px, 7vw, 104px); }
.s-closing-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 48px; border-radius: 6px; padding: clamp(28px, 4vw, 52px); border-left: 6px solid var(--bv-accent); }
.s-closing-copy { flex: 1 1 22em; display: flex; flex-direction: column; gap: 10px; }
/* on: panel */
.s-closing-title { color: var(--bv-paneltext); font: 800 clamp(24px, 1.1rem + 1vw, 32px)/1.2 var(--s-head); }
/* on: panel */
.s-closing-text { color: var(--bv-muted); max-width: 34em; }
.s-closing .s-buttons { margin-top: 0; }

/* ---- Services page ---- */
.s-group { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 28px 56px; padding: clamp(36px, 5vw, 72px) var(--s-pad-x) 0; }
/* on: page */
.s-label-page { color: var(--bv-link); font: 600 14px/1.4 var(--s-body); margin-bottom: 8px; }
/* on: page */
.s-group-title { color: var(--bv-ink); font: 800 clamp(24px, 1.1rem + 1vw, 32px)/1.15 var(--s-head); }
/* on: page */
.s-group-intro { color: var(--bv-muted); margin-top: 14px; font-size: 16px; }
.s-items { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.s-item { border-radius: 6px; padding: 22px 24px; }
/* on: panel */
.s-item-name { color: var(--bv-paneltext); font: 700 18px/1.3 var(--s-head); }
/* on: panel */
.s-item-text { color: var(--bv-muted); font-size: 15px; margin-top: 6px; }

/* ---- Contact page ---- */
.s-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; padding: clamp(28px, 4vw, 56px) var(--s-pad-x) 0; }
.s-card { border-radius: 6px; padding: 30px; }
/* on: panel */
.s-card-title { color: var(--bv-paneltext); font: 800 19px/1.3 var(--s-head); margin-bottom: 12px; }
/* on: panel */
.s-card-text, .s-hours { color: var(--bv-muted); font-size: 16px; overflow-wrap: anywhere; }
/* on: panel */
.showcase .s-card-phone { color: var(--bv-link); font: 800 20px/1.6 var(--s-head); }
.s-hours div { display: flex; gap: 16px; }
/* on: panel */
.s-hours dt { color: var(--bv-paneltext); min-width: 110px; font-weight: 600; }

/* ---- Footer ---- */
.s-footer { background: var(--bv-footer); color: var(--bv-ink); }
.s-footer-main { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; padding: 48px var(--s-pad-x); }
.s-footer-id { display: flex; flex-direction: column; gap: 6px; }
.s-footer-name { font: 800 17px var(--s-head); }
.s-footer-legal { font-size: 14px; }
.s-footer-links { display: flex; flex-wrap: wrap; gap: 10px 28px; }
/* on: footer */
.showcase .s-footer a { color: var(--bv-ink); }
.s-credit { padding: 16px var(--s-pad-x) 24px; border-top: 1px solid color-mix(in srgb, var(--bv-ink) 18%, var(--bv-footer)); font-size: 14px; text-align: center; }

/* ---- Tablet and phone ---- */
@media (max-width: 900px) {
  .s-gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .s-group { grid-template-columns: 1fr; gap: 20px; }
  .s-footer-main { flex-direction: column; }
}
@media (max-width: 640px) {
  .showcase { font-size: 16px; }
  /* The picture and the panel stack, so nothing is ever laid over the picture on a phone. */
  .s-hero { display: block; }
  .s-hero-media { min-height: 0; aspect-ratio: 4 / 3; border-radius: 6px 6px 0 0; }
  .s-hero-panel { width: auto; margin: 0; border-radius: 0 0 6px 6px; }
  .s-gallery-grid, .s-items { grid-template-columns: 1fr; }
  .s-header { gap: 14px; padding-top: 16px; padding-bottom: 16px; }
  .s-menu ul { gap: 6px 22px; }
  .s-buttons { flex-direction: column; align-items: stretch; }
  .s-offer, .s-card { padding: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .showcase * { transition: none !important; }
}

/* ---- Header actions: website globe and phone ---- */
.s-actions { display: flex; align-items: center; gap: 12px; }
/* on: page */
.showcase .s-web { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--bv-ink); color: var(--bv-ink); }
/* on: page */
.showcase .s-web:hover { color: var(--bv-link); border-color: var(--bv-accent); }
.showcase .s-web:focus-visible { outline: 2px solid var(--bv-accent); outline-offset: 2px; }
