:root {
  --theme-color-primary: #2271b1;
  --theme-color-secondary: #111111;
  --theme-color-surface: #ffffff;
  --theme-color-text: #0a0a0a;
  --theme-color-muted: #5c5c5c;
  --theme-font-heading: 'Montserrat', sans-serif;
  --theme-font-body: 'Work Sans', sans-serif;
  --theme-radius: 2px;
  --theme-spacing-scale: 1;
  --theme-button-radius: 2px;
  --theme-button-bg: var(--theme-color-primary);
  --theme-button-fg: #fff;
  --theme-button-border: none;
}
/*
 * Self-hosted Google Fonts (plan.md Phase 5 task 1 — no CDN allowed).
 * Latin-subset woff2 only. Browsers only fetch a face that's actually
 * applied to rendered text, so listing all of them here costs nothing
 * for themes that don't use every font.
 */

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('/assets/fonts/inter-400.woff2') format('woff2');
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('/assets/fonts/inter-700.woff2') format('woff2');
}

@font-face {
    font-family: 'Nunito';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('/assets/fonts/nunito-400.woff2') format('woff2');
}

@font-face {
    font-family: 'Nunito';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('/assets/fonts/nunito-700.woff2') format('woff2');
}

@font-face {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('/assets/fonts/montserrat-700.woff2') format('woff2');
}

@font-face {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 800;
    font-display: swap;
    src: url('/assets/fonts/montserrat-800.woff2') format('woff2');
}

@font-face {
    font-family: 'Work Sans';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('/assets/fonts/worksans-400.woff2') format('woff2');
}

@font-face {
    font-family: 'Work Sans';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('/assets/fonts/worksans-600.woff2') format('woff2');
}

@font-face {
    font-family: 'Playfair Display';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('/assets/fonts/playfairdisplay-600.woff2') format('woff2');
}

@font-face {
    font-family: 'Playfair Display';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('/assets/fonts/playfairdisplay-700.woff2') format('woff2');
}

@font-face {
    font-family: 'Lora';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('/assets/fonts/lora-400.woff2') format('woff2');
}

@font-face {
    font-family: 'Lora';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('/assets/fonts/lora-700.woff2') format('woff2');
}

.sb-gallery-grid { padding: 72px 24px; max-width: 1100px; margin: 0 auto; }
.sb-gallery-grid h2 { text-align: center; font-size: 32px; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 40px; color: var(--theme-color-text); }
.sb-gallery-grid .gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; }
.sb-gallery-grid .gallery-item { margin: 0; overflow: hidden; border-radius: var(--theme-radius); }
.sb-gallery-grid .gallery-item img {
  border-radius: var(--theme-radius);
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 12px 24px -10px rgba(0, 0, 0, .12);
  transition: transform .25s ease;
}
.sb-gallery-grid .gallery-item:hover img { transform: scale(1.04); }
.sb-gallery-grid figcaption { font-size: 13px; color: var(--theme-color-muted); margin-top: 8px; }
.sb-gallery-grid .gallery-item a { cursor: zoom-in; }

.sb-lightbox-overlay {
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(0, 0, 0, .88);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity .2s ease;
}
.sb-lightbox-overlay.is-open { opacity: 1; pointer-events: auto; }
.sb-lightbox-figure { max-width: 90vw; max-height: 90vh; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.sb-lightbox-img { max-width: 90vw; max-height: 80vh; object-fit: contain; border-radius: 4px; }
.sb-lightbox-caption { color: #fff; font-size: 14px; text-align: center; }
.sb-lightbox-close, .sb-lightbox-prev, .sb-lightbox-next {
  position: fixed; background: rgba(255, 255, 255, .12); color: #fff; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center; border-radius: 50%;
  transition: background .15s ease;
}
.sb-lightbox-close:hover, .sb-lightbox-prev:hover, .sb-lightbox-next:hover { background: rgba(255, 255, 255, .24); }
.sb-lightbox-close { top: 24px; right: 24px; width: 44px; height: 44px; font-size: 22px; }
.sb-lightbox-prev, .sb-lightbox-next { top: 50%; transform: translateY(-50%); width: 52px; height: 52px; font-size: 24px; }
.sb-lightbox-prev { left: 24px; }
.sb-lightbox-next { right: 24px; }

@media (prefers-reduced-motion: reduce) {
  .sb-lightbox-overlay { transition: none; }
}

.sb-hero-image { position: relative; min-height: 460px; background-size: cover; background-position: center; background-color: var(--theme-color-text); display: flex; align-items: center; justify-content: center; }
.sb-hero-image .hero-overlay {
  width: 100%;
  background: linear-gradient(180deg, rgba(0, 0, 0, .35), rgba(0, 0, 0, .55));
  padding: 72px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 460px;
}
.sb-hero-image .hero-inner { max-width: 720px; text-align: center; color: #fff; }
.sb-hero-image h1 { font-size: 48px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; margin-bottom: 18px; text-shadow: 0 2px 12px rgba(0, 0, 0, .25); }
.sb-hero-image p { font-size: 19px; line-height: 1.6; margin-bottom: 28px; opacity: .92; }
.sb-hero-image .btn {
  display: inline-block;
  padding: 14px 32px;
  background: var(--theme-button-bg);
  color: var(--theme-button-fg);
  border: var(--theme-button-border);
  border-radius: var(--theme-button-radius);
  font-weight: 600;
  box-shadow: 0 4px 16px rgba(0, 0, 0, .25);
  transition: transform .15s ease, box-shadow .15s ease;
}
.sb-hero-image .btn:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0, 0, 0, .3); }
@media (max-width: 640px) {
  .sb-hero-image h1 { font-size: 32px; }
}

.sb-pricing-tiers { padding: 72px 24px; max-width: 1100px; margin: 0 auto; }
.sb-pricing-tiers h2 { text-align: center; font-size: 32px; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 40px; color: var(--theme-color-text); }
.sb-pricing-tiers .pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; align-items: start; }
.sb-pricing-tiers .pricing-tier {
  border: 1px solid rgba(0, 0, 0, .08);
  border-radius: var(--theme-radius);
  padding: 32px 24px;
  text-align: center;
  background: var(--theme-color-surface);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 12px 24px -10px rgba(0, 0, 0, .1);
  transition: transform .18s ease, box-shadow .18s ease;
}
.sb-pricing-tiers .pricing-tier:hover { transform: translateY(-3px); box-shadow: 0 4px 8px rgba(0, 0, 0, .05), 0 20px 32px -12px rgba(0, 0, 0, .14); }
.sb-pricing-tiers .pricing-tier.highlighted {
  border-color: var(--theme-color-primary);
  box-shadow: 0 4px 12px rgba(0, 0, 0, .06), 0 24px 40px -12px color-mix(in srgb, var(--theme-color-primary) 30%, transparent);
  transform: translateY(-6px);
}
.sb-pricing-tiers .pricing-tier.highlighted:hover { transform: translateY(-9px); }
.sb-pricing-tiers h3 { font-size: 18px; font-weight: 600; margin-bottom: 8px; color: var(--theme-color-text); }
.sb-pricing-tiers .price { font-size: 36px; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 20px; color: var(--theme-color-text); }
.sb-pricing-tiers ul { list-style: none; margin-bottom: 24px; text-align: left; }
.sb-pricing-tiers li { padding: 6px 0; font-size: 14px; color: var(--theme-color-muted); border-bottom: 1px solid rgba(0, 0, 0, .06); }
.sb-pricing-tiers .btn {
  display: inline-block;
  padding: 11px 24px;
  background: var(--theme-button-bg);
  color: var(--theme-button-fg);
  border: var(--theme-button-border);
  border-radius: var(--theme-button-radius);
  font-weight: 600;
  transition: transform .15s ease, box-shadow .15s ease;
}
.sb-pricing-tiers .btn:hover { transform: translateY(-2px); box-shadow: 0 8px 20px -6px color-mix(in srgb, var(--theme-color-primary) 45%, transparent); }

.period-toggle { display: flex; justify-content: center; gap: 4px; margin: 0 auto 32px; background: rgba(0, 0, 0, .04); border-radius: 999px; padding: 4px; width: fit-content; }
.period-btn { border: none; background: transparent; padding: 8px 20px; border-radius: 999px; cursor: pointer; font-size: 14px; font-weight: 600; color: var(--theme-color-muted); transition: background .15s ease, color .15s ease; }
.period-btn.is-active { background: var(--theme-color-surface); color: var(--theme-color-text); box-shadow: 0 1px 2px rgba(0, 0, 0, .08); }
.sb-pricing-tiers.has-period-toggle .price-annual { display: none; }
.sb-pricing-tiers.has-period-toggle.is-annual .price-monthly { display: none; }
.sb-pricing-tiers.has-period-toggle.is-annual .price-annual { display: block; }
