/*
 * SiteSync Studio: styles for every client site.
 * Colours, fonts and corner rounding come from the site's theme as CSS variables (see src/core/theme.ts).
 * Layout responds to the width of .ss-site (container queries), so the editor's phone and tablet
 * previews look exactly like real phones and tablets.
 */
.ss-site {
  container-type: inline-size;
  background: var(--ss-bg);
  color: var(--ss-text);
  font-family: var(--ss-font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100%;
}
.ss-site *,
.ss-site *::before,
.ss-site *::after {
  box-sizing: border-box;
}
.ss-site :where(h1, h2, h3, p, ul, ol, figure, dl, dd, blockquote) {
  margin: 0;
}
.ss-site img {
  display: block;
  max-width: 100%;
  height: auto;
}
.ss-site a {
  color: inherit;
}
.ss-site :focus-visible {
  outline: 3px solid var(--ss-accent);
  outline-offset: 2px;
}
.ss-wrap {
  width: 100%;
  max-width: 1160px;
  margin-inline: auto;
  padding-inline: 20px;
}
.ss-skip {
  position: absolute;
  left: -9999px;
  top: 8px;
  background: var(--ss-accent);
  color: var(--ss-accent-text);
  padding: 8px 14px;
  border-radius: 8px;
  z-index: 50;
}
.ss-skip:focus {
  left: 8px;
}

/* ---------- type ---------- */
.ss-display,
.ss-h2,
.ss-h3,
.ss-logo,
.ss-footer-name,
.ss-rich h2,
.ss-rich h3 {
  font-family: var(--ss-font-heading);
  letter-spacing: -0.015em;
  line-height: 1.12;
  text-wrap: balance;
}
.ss-display {
  font-size: clamp(2.1rem, 8cqi, 4rem);
  font-weight: 750;
}
.ss-display--page {
  font-size: clamp(2rem, 6cqi, 3.2rem);
  margin-top: 6px;
}
.ss-h2 {
  font-size: clamp(1.6rem, 4.6cqi, 2.4rem);
  font-weight: 720;
  margin-bottom: 14px;
}
.ss-h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 6px;
}
.ss-h3 a {
  text-decoration: none;
}
.ss-h3 a:hover {
  text-decoration: underline;
}
.ss-eyebrow {
  font-size: 0.85rem;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ss-accent);
  margin-bottom: 10px;
}
.ss-tone-accent .ss-eyebrow,
.ss-tone-image .ss-eyebrow {
  color: inherit;
  opacity: 0.85;
}
.ss-lead {
  font-size: 1.15rem;
  color: var(--ss-muted);
  max-width: 60ch;
  margin-top: 14px;
}
.ss-tone-accent .ss-lead,
.ss-tone-image .ss-lead {
  color: inherit;
  opacity: 0.9;
}
.ss-muted,
.ss-small {
  color: var(--ss-muted);
}
.ss-small {
  font-size: 0.9rem;
}
.ss-pre {
  white-space: pre-line;
}
.ss-link {
  font-weight: 600;
  text-decoration: none;
}
.ss-link:hover {
  text-decoration: underline;
}
.ss-rich > * + * {
  margin-top: 0.9em;
}
.ss-rich h2 {
  font-size: 1.6rem;
  margin-top: 1.4em;
}
.ss-rich h3 {
  font-size: 1.25rem;
  margin-top: 1.2em;
}
.ss-rich ul,
.ss-rich ol {
  padding-left: 1.3em;
}
.ss-rich li + li {
  margin-top: 0.3em;
}
.ss-rich a {
  color: var(--ss-accent);
  text-underline-offset: 3px;
}
.ss-tone-accent .ss-rich a {
  color: inherit;
}

/* ---------- sections and tones ---------- */
.ss-section {
  padding-block: clamp(48px, 9cqi, 96px);
  position: relative;
}
.ss-tone-surface {
  background: var(--ss-surface);
}
.ss-tone-accent {
  background: var(--ss-accent);
  color: var(--ss-accent-text);
}
.ss-section-head {
  margin-bottom: 32px;
}
.ss-section-head--row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.ss-section-head--row .ss-h2 {
  margin-bottom: 0;
}
.ss-width-narrow {
  max-width: 720px;
}
.ss-align-centre {
  text-align: center;
  margin-inline: auto;
}
.ss-align-centre .ss-rich ul,
.ss-align-centre .ss-rich ol {
  display: inline-block;
  text-align: left;
}

/* ---------- buttons ---------- */
.ss-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}
.ss-actions--centre {
  justify-content: center;
}
.ss-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 24px;
  border: 2px solid var(--ss-accent);
  border-radius: var(--ss-btn-radius);
  background: var(--ss-accent);
  color: var(--ss-accent-text);
  font: inherit;
  font-weight: 650;
  text-decoration: none;
  cursor: pointer;
  transition: filter 0.15s, transform 0.15s;
}
.ss-site a.ss-btn {
  color: var(--ss-accent-text);
}
.ss-btn:hover {
  filter: brightness(1.08);
}
.ss-btn:active {
  transform: translateY(1px);
}
.ss-btn--outline,
.ss-site a.ss-btn--outline {
  background: transparent;
  color: var(--ss-accent);
}
.ss-btn--secondary,
.ss-site a.ss-btn--secondary {
  background: transparent;
  color: var(--ss-text);
  border-color: color-mix(in srgb, var(--ss-text) 25%, transparent);
}
.ss-btn--small {
  min-height: 40px;
  padding: 8px 18px;
  font-size: 0.95rem;
}
/* Buttons on an accent background swap colours so they stay visible. */
.ss-tone-accent .ss-btn,
.ss-tone-accent a.ss-btn {
  background: var(--ss-accent-text);
  color: var(--ss-accent);
  border-color: var(--ss-accent-text);
}
.ss-tone-accent .ss-btn--secondary,
.ss-tone-image .ss-btn--secondary,
.ss-tone-image a.ss-btn--secondary,
.ss-tone-accent a.ss-btn--secondary {
  background: transparent;
  color: inherit;
  border-color: currentColor;
}

/* ---------- header ---------- */
.ss-header {
  border-bottom: 1px solid color-mix(in srgb, var(--ss-text) 10%, transparent);
  background: var(--ss-bg);
  position: relative;
  z-index: 20;
}
.ss-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 72px;
}
.ss-logo {
  font-size: 1.3rem;
  font-weight: 750;
  text-decoration: none;
}
.ss-logo img {
  max-height: 44px;
  width: auto;
}
.ss-nav {
  display: none;
  align-items: center;
  gap: 24px;
}
.ss-nav ul,
.ss-menu ul,
.ss-footer-links {
  list-style: none;
  padding: 0;
  display: flex;
  gap: 22px;
}
.ss-nav a:not(.ss-btn),
.ss-menu a:not(.ss-btn) {
  text-decoration: none;
  font-weight: 550;
}
.ss-nav a[aria-current='page'],
.ss-menu a[aria-current='page'] {
  color: var(--ss-accent);
}
.ss-nav a:not(.ss-btn):hover {
  color: var(--ss-accent);
}
.ss-menu summary {
  list-style: none;
  display: grid;
  gap: 5px;
  padding: 12px 8px;
  cursor: pointer;
}
.ss-menu summary::-webkit-details-marker {
  display: none;
}
.ss-menu summary span {
  display: block;
  width: 24px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
}
.ss-menu[open] > nav {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  background: var(--ss-bg);
  border-bottom: 1px solid color-mix(in srgb, var(--ss-text) 12%, transparent);
  padding: 8px 20px 24px;
  box-shadow: 0 20px 40px -20px rgb(0 0 0 / 0.25);
}
.ss-menu ul {
  flex-direction: column;
  gap: 0;
  margin-bottom: 16px;
}
.ss-menu li a {
  display: block;
  padding: 12px 0;
  font-size: 1.1rem;
  border-bottom: 1px solid color-mix(in srgb, var(--ss-text) 8%, transparent);
}
.ss-menu .ss-btn {
  width: 100%;
}
@container (min-width: 820px) {
  .ss-nav {
    display: flex;
  }
  .ss-menu {
    display: none;
  }
}

/* ---------- hero ---------- */
.ss-hero > .ss-wrap {
  display: grid;
  gap: 36px;
  align-items: center;
}
.ss-hero--centred .ss-hero-copy {
  text-align: center;
  margin-inline: auto;
  max-width: 820px;
}
.ss-hero--centred .ss-lead {
  margin-inline: auto;
}
.ss-hero--centred .ss-actions {
  justify-content: center;
}
.ss-hero-img,
.ss-split-img,
.ss-card-img,
.ss-article-cover,
.ss-img-placeholder {
  width: 100%;
  border-radius: var(--ss-radius);
  object-fit: cover;
}
.ss-hero-img,
.ss-hero > .ss-wrap > .ss-img-placeholder {
  aspect-ratio: 4 / 3;
}
.ss-img-placeholder {
  aspect-ratio: 4 / 3;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--ss-accent) 22%, transparent), transparent 70%),
    var(--ss-surface);
}
.ss-hero--background {
  min-height: min(78vh, 680px);
  display: grid;
  align-items: center;
  color: #fff;
  background: #1d1d1d;
  overflow: hidden;
}
.ss-hero--background .ss-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
  aspect-ratio: auto;
}
.ss-hero--background::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgb(0 0 0 / 0.68), rgb(0 0 0 / 0.25));
}
.ss-hero--background > .ss-wrap {
  position: relative;
  z-index: 1;
}
.ss-hero--background .ss-hero-copy {
  max-width: 680px;
}
@container (min-width: 820px) {
  .ss-hero--split > .ss-wrap {
    grid-template-columns: 1.05fr 1fr;
    gap: 56px;
  }
}

/* ---------- split, cards, cta ---------- */
.ss-split {
  display: grid;
  gap: 32px;
  align-items: center;
}
.ss-split-img,
.ss-split .ss-img-placeholder {
  aspect-ratio: 5 / 4;
}
@container (min-width: 820px) {
  .ss-split {
    grid-template-columns: 1fr 1fr;
    gap: 56px;
  }
  .ss-split--right > :first-child {
    order: 2;
  }
}
.ss-cards {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 20px;
}
@container (min-width: 600px) {
  .ss-cols-2,
  .ss-cols-3,
  .ss-cols-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@container (min-width: 960px) {
  .ss-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .ss-cols-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
.ss-card {
  background: var(--ss-surface);
  border-radius: var(--ss-radius);
  padding: 24px;
}
.ss-tone-surface .ss-card {
  background: var(--ss-bg);
}
.ss-tone-accent .ss-card {
  background: color-mix(in srgb, var(--ss-accent-text) 12%, transparent);
}
.ss-card p {
  color: var(--ss-muted);
}
.ss-tone-accent .ss-card p {
  color: inherit;
  opacity: 0.9;
}
.ss-card-img,
.ss-card .ss-img-placeholder {
  aspect-ratio: 16 / 10;
  margin: -8px -8px 16px;
  width: calc(100% + 16px);
}
.ss-post-card .ss-small {
  margin-bottom: 8px;
}
.ss-cta {
  text-align: center;
  max-width: 760px;
  margin-inline: auto;
}
.ss-cta .ss-lead {
  margin-inline: auto;
}

/* ---------- faq ---------- */
.ss-faq {
  border-top: 1px solid color-mix(in srgb, currentColor 16%, transparent);
}
.ss-faq details {
  border-bottom: 1px solid color-mix(in srgb, currentColor 16%, transparent);
}
.ss-faq summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 36px 18px 0;
  font-weight: 650;
  font-size: 1.08rem;
  position: relative;
}
.ss-faq summary::-webkit-details-marker {
  display: none;
}
.ss-faq summary::after {
  content: '+';
  position: absolute;
  right: 4px;
  top: 50%;
  translate: 0 -50%;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--ss-accent);
}
.ss-tone-accent .ss-faq summary::after {
  color: inherit;
}
.ss-faq details[open] summary::after {
  content: '–';
}
.ss-faq .ss-rich {
  padding-bottom: 20px;
  color: var(--ss-muted);
}
.ss-tone-accent .ss-faq .ss-rich {
  color: inherit;
}

/* ---------- figure, spacer ---------- */
.ss-figure figure img,
.ss-figure .ss-img-placeholder {
  width: 100%;
  border-radius: var(--ss-radius);
}
.ss-figure--normal figure {
  max-width: 760px;
}
.ss-figure--full {
  padding-block: 0;
}
.ss-figure--full figure img,
.ss-figure--full .ss-img-placeholder {
  border-radius: 0;
  max-height: 80vh;
  object-fit: cover;
}
.ss-figure figcaption {
  margin-top: 10px;
  color: var(--ss-muted);
  font-size: 0.9rem;
}
.ss-figure--full figcaption {
  padding-inline: 20px;
}
.ss-spacer--small {
  height: 24px;
}
.ss-spacer--medium {
  height: 56px;
}
.ss-spacer--large {
  height: 104px;
}
.ss-spacer hr {
  max-width: 1120px;
  margin: 0 auto;
  border: 0;
  border-top: 1px solid color-mix(in srgb, var(--ss-text) 14%, transparent);
  position: relative;
  top: 50%;
}

/* ---------- contact details ---------- */
.ss-contact {
  display: grid;
  gap: 32px;
}
@container (min-width: 760px) {
  .ss-contact {
    grid-template-columns: 1fr 1fr;
  }
}
.ss-contact dl {
  display: grid;
  gap: 18px;
}
.ss-contact dt,
.ss-hours caption {
  font-size: 0.85rem;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ss-muted);
  text-align: left;
  margin-bottom: 4px;
}
.ss-contact dd a {
  font-weight: 600;
  font-size: 1.1rem;
}
.ss-hours {
  border-collapse: collapse;
  width: 100%;
  max-width: 420px;
}
.ss-hours th,
.ss-hours td {
  text-align: left;
  padding: 8px 0;
  border-bottom: 1px solid color-mix(in srgb, currentColor 12%, transparent);
}
.ss-hours th {
  font-weight: 600;
  padding-right: 20px;
}

/* ---------- forms ---------- */
.ss-form {
  display: grid;
  gap: 18px;
  margin-top: 24px;
}
.ss-form label {
  display: grid;
  gap: 6px;
  font-weight: 600;
}
.ss-form input,
.ss-form textarea {
  font: inherit;
  font-weight: 400;
  color: var(--ss-text);
  background: var(--ss-bg);
  border: 1.5px solid color-mix(in srgb, var(--ss-text) 22%, transparent);
  border-radius: min(var(--ss-radius), 12px);
  padding: 12px 14px;
  width: 100%;
}
.ss-form input:focus,
.ss-form textarea:focus {
  outline: 3px solid color-mix(in srgb, var(--ss-accent) 40%, transparent);
  border-color: var(--ss-accent);
}
.ss-form .ss-btn {
  justify-self: start;
}
.ss-optional {
  font-weight: 400;
  color: var(--ss-muted);
}
.ss-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.ss-notice {
  padding: 16px 18px;
  border-radius: min(var(--ss-radius), 12px);
  font-weight: 600;
  margin-top: 20px;
}
.ss-notice--ok {
  background: color-mix(in srgb, #1a9a5a 14%, var(--ss-bg));
  border: 1.5px solid #1a9a5a;
}
.ss-notice--error {
  background: color-mix(in srgb, #d23c3c 12%, var(--ss-bg));
  border: 1.5px solid #d23c3c;
}

/* ---------- blog article ---------- */
.ss-article .ss-display--page {
  margin-bottom: 10px;
}
.ss-article-cover {
  margin: 28px 0;
  aspect-ratio: 16 / 9;
}
.ss-article-body {
  margin-top: 24px;
  font-size: 1.1rem;
}

/* ---------- footer ---------- */
.ss-footer {
  background: var(--ss-surface);
  padding-top: 48px;
  margin-top: 0;
  font-size: 0.97rem;
}
.ss-footer-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 28px;
}
.ss-footer-row p + p {
  margin-top: 4px;
}
.ss-footer-name {
  font-size: 1.2rem;
  font-weight: 750;
  margin-bottom: 8px;
}
.ss-footer-links {
  flex-wrap: wrap;
  gap: 10px 22px;
}
.ss-footer-links a {
  text-decoration: none;
}
.ss-footer-links a:hover {
  text-decoration: underline;
}
.ss-footer-base {
  margin-top: 36px;
  padding-block: 20px;
  border-top: 1px solid color-mix(in srgb, var(--ss-text) 10%, transparent);
  color: var(--ss-muted);
  font-size: 0.88rem;
}

@media (prefers-reduced-motion: reduce) {
  .ss-btn {
    transition: none;
  }
}
