/* ============================================================================
   Shared site styles. Used by the public site (SSR) and the editor canvas.
   Theme values come from CSS variables set on .asb-site (see theme.ts).
   ============================================================================ */
.asb-site, .asb-canvas-root {
  --row: 56px; --gap: 24px; --cols: 12;
  --pad-small: calc(24px * var(--space-scale, 1));
  --pad-medium: calc(56px * var(--space-scale, 1));
  --pad-large: calc(112px * var(--space-scale, 1));
  --radius-small: 4px; --radius-medium: 12px;
  font-family: var(--font-body); font-size: var(--font-size); line-height: var(--line-height);
  letter-spacing: var(--letter-spacing); color: var(--c-text); background: var(--c-bg);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
.asb-site *, .asb-site *::before, .asb-site *::after, .asb-canvas-root *, .asb-canvas-root *::before, .asb-canvas-root *::after { box-sizing: border-box; }
.asb-site { min-height: 100vh; display: flex; flex-direction: column; }
.asb-site img { max-width: 100%; height: auto; display: block; }
.asb-site a { color: var(--c-link); text-decoration-thickness: 1px; text-underline-offset: 0.15em; }
.asb-site a:focus-visible, .asb-site button:focus-visible, .asb-site input:focus-visible, .asb-site textarea:focus-visible { outline: 2px solid var(--c-link); outline-offset: 3px; }
.asb-visually-hidden, .asb-hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.asb-skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--c-heading); color: var(--c-bg); padding: 8px 12px; }
.asb-skip:focus { left: 8px; }

/* Typography ---------------------------------------------------------------- */
.asb-prose h1, .asb-prose h2, .asb-prose h3, .asb-header__name, .asb-quote {
  font-family: var(--font-heading); font-weight: var(--heading-weight); color: var(--c-heading); line-height: 1.15; letter-spacing: -0.01em; margin: 0 0 0.4em;
}
.asb-prose h1 { font-size: calc(var(--font-size) * var(--heading-scale) * var(--heading-scale) * var(--heading-scale) * 1.15); }
.asb-prose h2 { font-size: calc(var(--font-size) * var(--heading-scale) * var(--heading-scale) * 1.1); }
.asb-prose h3 { font-size: calc(var(--font-size) * var(--heading-scale)); }
.asb-prose p, .asb-prose ul, .asb-prose ol { margin: 0 0 0.9em; max-width: 68ch; }
.asb-prose > :last-child { margin-bottom: 0; }
.asb-prose ul, .asb-prose ol { padding-left: 1.3em; }
.asb-prose u { text-underline-offset: 0.12em; }
.asb-block--align-center .asb-prose p, .asb-block--align-center .asb-prose h1, .asb-block--align-center .asb-prose h2, .asb-block--align-center .asb-prose h3 { margin-left: auto; margin-right: auto; }

/* Header -------------------------------------------------------------------- */
.asb-header { background: var(--c-nav-bg); color: var(--c-nav); position: relative; z-index: 20; }
.asb-header--sticky { position: sticky; top: 0; }
.asb-header--transparent { position: absolute; left: 0; right: 0; background: transparent; }
.asb-header--transparent + .asb-page { padding-top: 0; }
.asb-header__inner { max-width: var(--site-width); margin: 0 auto; padding: 22px var(--gap); display: flex; align-items: center; gap: 32px; font-family: var(--font-nav); }
.asb-header--split .asb-header__inner { justify-content: space-between; }
.asb-header--center .asb-header__inner { flex-direction: column; gap: 12px; }
.asb-header--right .asb-header__inner { justify-content: flex-end; }
.asb-header--left .asb-header__inner { justify-content: flex-start; }
.asb-header__brand { display: inline-flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; }
.asb-header__logo { max-height: 44px; width: auto; }
.asb-header__name { font-size: calc(var(--font-size) * 1.25); color: inherit; margin: 0; }
.asb-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 28px; flex-wrap: wrap; }
.asb-nav a { color: inherit; text-decoration: none; font-size: calc(var(--font-size) * 0.94); padding: 6px 0; border-bottom: 1px solid transparent; }
.asb-nav a:hover, .asb-nav a[aria-current="page"] { border-bottom-color: currentColor; }
.asb-header__toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; color: inherit; flex-direction: column; gap: 5px; }
.asb-header__toggle-bar { display: block; width: 22px; height: 2px; background: currentColor; }
@media (max-width: 639px) {
  .asb-header__inner { flex-direction: row; justify-content: space-between; padding: 16px var(--gap); }
  .asb-header__toggle { display: inline-flex; }
  .asb-nav { display: none; width: 100%; }
  .asb-header[data-open="true"] .asb-nav { display: block; }
  .asb-nav ul { flex-direction: column; gap: 4px; padding: 8px 0 12px; }
  .asb-nav a { display: block; padding: 10px 0; font-size: calc(var(--font-size) * 1.1); border-bottom: 0; }
}

/* Page / sections ----------------------------------------------------------- */
.asb-page { position: relative; flex: 1; }
.asb-page__sections { position: relative; }
.asb-section { position: relative; padding: var(--pad-medium) 0; }
.asb-section--pad-none { padding: 0; }
.asb-section--pad-small { padding: var(--pad-small) 0; }
.asb-section--pad-large { padding: var(--pad-large) 0; }
.asb-section--min-half { min-height: 50vh; display: flex; flex-direction: column; justify-content: center; }
.asb-section--min-full { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; }
.asb-section__inner { position: relative; max-width: var(--site-width); margin: 0 auto; padding: 0 var(--gap); width: 100%; }
.asb-section--full .asb-section__inner { max-width: none; padding: 0; }
.asb-bg { position: absolute; inset: 0; pointer-events: none; }
.asb-bg--image { z-index: 0; }
.asb-bg--fade { z-index: 1; }
.asb-bg--overlay { z-index: 2; }
.asb-section__inner, .asb-page__sections { z-index: 3; }

/* Grid ---------------------------------------------------------------------- */
.asb-grid { display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); grid-auto-rows: minmax(var(--row), auto); gap: var(--gap); align-items: stretch; }
.asb-block { display: flex; flex-direction: column; min-width: 0; min-height: 0; grid-column: var(--dx) / span var(--dw); grid-row: var(--dy) / span var(--dh); }
.asb-block__inner { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.asb-block--valign-middle .asb-block__inner { justify-content: center; }
.asb-block--valign-bottom .asb-block__inner { justify-content: flex-end; }
.asb-block--align-center { text-align: center; }
.asb-block--align-right { text-align: right; }
.asb-block--align-center .asb-block__inner { align-items: center; }
.asb-block--align-right .asb-block__inner { align-items: flex-end; }
.asb-block--pad-small { padding: 16px; } .asb-block--pad-medium { padding: 32px; } .asb-block--pad-large { padding: 56px; }
.asb-block--image .asb-block__inner, .asb-block--gallery .asb-block__inner, .asb-block--video .asb-block__inner { display: block; height: 100%; }
/* Forced breakpoints (editor) */
.asb-grid--tablet { --cols: 8; --row: 48px; }
.asb-grid--tablet .asb-block { grid-column: var(--tx) / span var(--tw); grid-row: var(--ty) / span var(--th); }
.asb-grid--mobile { --cols: 4; --row: 44px; --gap: 16px; }
.asb-grid--mobile .asb-block { grid-column: var(--mx) / span var(--mw); grid-row: var(--my) / span var(--mh); }
/* Responsive breakpoints (public) */
@media (max-width: 1023px) {
  .asb-site .asb-grid:not([class*="asb-grid--"]) { --cols: 8; --row: 48px; }
  .asb-site .asb-grid:not([class*="asb-grid--"]) .asb-block { grid-column: var(--tx) / span var(--tw); grid-row: var(--ty) / span var(--th); }
  .asb-site .asb-block--hide-tablet { display: none; }
}
@media (max-width: 639px) {
  .asb-site .asb-grid:not([class*="asb-grid--"]) { --cols: 4; --row: 44px; --gap: 16px; }
  .asb-site .asb-grid:not([class*="asb-grid--"]) .asb-block { grid-column: var(--mx) / span var(--mw); grid-row: var(--my) / span var(--mh); }
  .asb-site .asb-block--hide-mobile { display: none; }
  .asb-site { --pad-medium: calc(40px * var(--space-scale, 1)); --pad-large: calc(72px * var(--space-scale, 1)); }
}
@media (min-width: 1024px) { .asb-site .asb-block--hide-desktop { display: none; } }

/* Image --------------------------------------------------------------------- */
.asb-image { height: 100%; display: flex; flex-direction: column; }
.asb-image__link { display: block; flex: 1; min-height: 0; color: inherit; }
.asb-image__figure { margin: 0; height: 100%; min-height: 0; }
.asb-image__link .asb-image__figure { height: 100%; }
.asb-image__figure img { width: 100%; height: 100%; object-fit: cover; }
.asb-image--fit-fit .asb-image__figure img { object-fit: contain; }
.asb-image--fit-original .asb-image__figure { height: auto; }
.asb-image--fit-original .asb-image__figure img { height: auto; }
.asb-image--aspect-square .asb-image__figure { aspect-ratio: 1; height: auto; }
.asb-image--aspect-portrait .asb-image__figure { aspect-ratio: 4 / 5; height: auto; }
.asb-image--aspect-landscape .asb-image__figure { aspect-ratio: 3 / 2; height: auto; }
.asb-image--aspect-custom .asb-image__figure { height: 100%; }
.asb-image--corners-small .asb-image__figure { border-radius: var(--radius-small); overflow: hidden; }
.asb-image--corners-medium .asb-image__figure { border-radius: var(--radius-medium); overflow: hidden; }
.asb-image--corners-round .asb-image__figure { border-radius: 50%; overflow: hidden; aspect-ratio: 1; height: auto; }
.asb-image--border .asb-image__figure { border: 1px solid rgba(0,0,0,.18); }
.asb-image__caption { font-size: calc(var(--font-size) * 0.85); opacity: .75; padding-top: 8px; }
.asb-image--empty, .asb-gallery--empty, .asb-video--empty, .asb-social--empty { height: 100%; min-height: 100%; background: rgba(0,0,0,.05); border: 1px dashed rgba(0,0,0,.2); display: flex; align-items: center; justify-content: center; color: rgba(0,0,0,.5); font-size: 15px; }
.asb-text--empty { color: rgba(0,0,0,.4); padding: 4px 0; }

/* Gallery ------------------------------------------------------------------- */
.asb-gallery { --g: 8px; height: 100%; }
.asb-gallery--gap-none { --g: 0; } .asb-gallery--gap-medium { --g: 20px; } .asb-gallery--gap-large { --g: 36px; }
.asb-gallery__item { margin: 0; break-inside: avoid; }
.asb-gallery__item img { width: 100%; }
.asb-gallery__item figcaption { font-size: calc(var(--font-size) * .85); opacity: .75; padding: 6px 0 2px; }
.asb-gallery--grid .asb-gallery__track { display: grid; gap: var(--g); grid-template-columns: repeat(var(--gcols, 3), minmax(0, 1fr)); }
.asb-gallery--cols-2 { --gcols: 2; } .asb-gallery--cols-3 { --gcols: 3; } .asb-gallery--cols-4 { --gcols: 4; } .asb-gallery--cols-5 { --gcols: 5; }
.asb-gallery--grid.asb-gallery--aspect-square img { aspect-ratio: 1; object-fit: cover; }
.asb-gallery--grid.asb-gallery--aspect-landscape img { aspect-ratio: 3/2; object-fit: cover; }
.asb-gallery--grid.asb-gallery--aspect-portrait img { aspect-ratio: 4/5; object-fit: cover; }
.asb-gallery--masonry .asb-gallery__track { columns: var(--gcols, 3); column-gap: var(--g); }
.asb-gallery--masonry .asb-gallery__item { margin-bottom: var(--g); }
.asb-gallery--slideshow, .asb-gallery--carousel { position: relative; }
.asb-gallery--slideshow .asb-gallery__track { position: relative; height: 100%; }
.asb-gallery--slideshow .asb-gallery__item { position: absolute; inset: 0; opacity: 0; transition: opacity .5s; height: 100%; }
.asb-gallery--slideshow .asb-gallery__item img { height: 100%; object-fit: contain; }
.asb-gallery--slideshow .asb-gallery__item[data-active], .asb-gallery--slideshow .asb-gallery__item:first-child:not([data-inited]) { opacity: 1; }
.asb-gallery--carousel .asb-gallery__track { display: flex; gap: var(--g); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; height: 100%; }
.asb-gallery--carousel .asb-gallery__track::-webkit-scrollbar { display: none; }
.asb-gallery--carousel .asb-gallery__item { flex: 0 0 auto; height: 100%; scroll-snap-align: start; }
.asb-gallery--carousel .asb-gallery__item img { height: 100%; width: auto; }
.asb-gallery__controls { position: absolute; inset: 0; display: flex; justify-content: space-between; align-items: center; pointer-events: none; padding: 0 8px; }
.asb-gallery__btn { pointer-events: auto; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255,255,255,.85); color: #222; font-size: 24px; line-height: 1; cursor: pointer; }
@media (max-width: 639px) { .asb-gallery--cols-3, .asb-gallery--cols-4, .asb-gallery--cols-5 { --gcols: 2; } }

/* Button / spacer / divider / quote / video ---------------------------------- */
.asb-button { display: inline-block; font-family: var(--font-body); text-decoration: none; border-radius: 2px; cursor: pointer; line-height: 1.2; transition: opacity .15s; border: 1px solid var(--c-button); }
.asb-button--solid { background: var(--c-button); color: var(--c-button-text); }
.asb-button--outline { background: transparent; color: var(--c-button); }
.asb-button--text { background: transparent; border-color: transparent; color: var(--c-link); text-decoration: underline; padding-left: 0 !important; padding-right: 0 !important; }
.asb-button--small { padding: 8px 16px; font-size: calc(var(--font-size) * .85); }
.asb-button--medium { padding: 12px 24px; font-size: var(--font-size); }
.asb-button--large { padding: 16px 34px; font-size: calc(var(--font-size) * 1.1); }
.asb-button:hover { opacity: .85; }
.asb-spacer { height: 100%; }
.asb-divider { border: 0; border-top: 1px solid currentColor; opacity: .35; margin: auto 0; width: 100%; }
.asb-divider--medium { border-top-width: 2px; } .asb-divider--thick { border-top-width: 4px; }
.asb-divider--short { width: 80px; }
.asb-block--align-center .asb-divider--short { margin-left: auto; margin-right: auto; }
.asb-quote { margin: 0; font-size: calc(var(--font-size) * 1.35); line-height: 1.35; }
.asb-quote--large { font-size: calc(var(--font-size) * 1.9); }
.asb-quote p { margin: 0 0 .5em; }
.asb-quote footer { font-family: var(--font-body); font-size: var(--font-size); opacity: .7; }
.asb-video { position: relative; width: 100%; max-height: 100%; background: #000; }
.asb-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Contact ------------------------------------------------------------------- */
.asb-contact { display: flex; flex-direction: column; gap: 20px; }
.asb-contact__info { font-style: normal; }
.asb-contact__info p { margin: 0 0 .3em; }
.asb-contact__form { display: flex; flex-direction: column; gap: 14px; max-width: 520px; }
.asb-contact__form label { display: flex; flex-direction: column; gap: 6px; font-size: calc(var(--font-size) * .9); }
.asb-contact__form input, .asb-contact__form textarea { font: inherit; padding: 10px 12px; border: 1px solid rgba(0,0,0,.25); border-radius: 2px; background: #fff; color: #222; }
.asb-contact__form button { align-self: flex-start; }
.asb-contact__status:empty { display: none; }

/* Social -------------------------------------------------------------------- */
.asb-social { list-style: none; margin: 0; padding: 0; display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }
.asb-social a { color: inherit; display: inline-flex; align-items: center; }
.asb-social svg { width: 22px; height: 22px; fill: currentColor; }
.asb-social--small svg { width: 18px; height: 18px; } .asb-social--large svg { width: 30px; height: 30px; }
.asb-social--text a { text-decoration: none; border-bottom: 1px solid currentColor; }
.asb-block--align-center .asb-social { justify-content: center; }

/* Footer -------------------------------------------------------------------- */
.asb-footer { background: var(--c-footer-bg); color: var(--c-footer-text); margin-top: auto; }
.asb-footer a { color: inherit; }
.asb-footer__inner { max-width: var(--site-width); margin: 0 auto; padding: 40px var(--gap); display: flex; flex-wrap: wrap; gap: 24px 48px; align-items: flex-start; font-size: calc(var(--font-size) * .9); }
.asb-footer__main { display: flex; flex-direction: column; gap: 12px; flex: 1 1 320px; }
.asb-footer__main p { margin: 0; }
.asb-footer__nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 20px; flex-wrap: wrap; }
.asb-footer__nav a { text-decoration: none; }
.asb-footer__copyright { width: 100%; margin: 0; opacity: .7; }

/* Lightbox (public JS) ------------------------------------------------------- */
.asb-lightbox { position: fixed; inset: 0; z-index: 1000; background: rgba(12,12,12,.94); display: flex; align-items: center; justify-content: center; flex-direction: column; padding: 32px; }
.asb-lightbox[hidden] { display: none; }
.asb-lightbox img { max-width: 100%; max-height: calc(100vh - 120px); object-fit: contain; }
.asb-lightbox__caption { color: #ddd; margin-top: 12px; font-size: 15px; }
.asb-lightbox__close, .asb-lightbox__prev, .asb-lightbox__next { position: absolute; background: none; border: 0; color: #fff; font-size: 34px; cursor: pointer; padding: 12px; line-height: 1; }
.asb-lightbox__close { top: 12px; right: 16px; }
.asb-lightbox__prev { left: 8px; top: 50%; transform: translateY(-50%); }
.asb-lightbox__next { right: 8px; top: 50%; transform: translateY(-50%); }

@media (prefers-reduced-motion: reduce) { .asb-site * { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }
