/* ============================================================
   Site Builder — Public Theme CSS
   Colors controlled by CSS variables injected by the renderer.
   ============================================================ */

:root {
  --sb-accent:      #279302;
  --sb-accent-h:    color-mix(in srgb, var(--sb-accent) 80%, black);
  --sb-bg:          #181A1B;
  --sb-surface:     #2C2F31;
  --sb-surface-2:   #232628;
  --sb-text:        #E8E6E3;
  --sb-text-muted:  rgba(232, 230, 227, 0.65);
  --sb-border:      rgba(232, 230, 227, 0.1);
  --sb-radius:      8px;
  --sb-font:        'Inter', system-ui, -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sb-font);
  background: var(--sb-bg);
  color: var(--sb-text);
  line-height: 1.65;
}

img { max-width: 100%; height: auto; display: block; }
a   { color: var(--sb-accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Container ── */
.sb-container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Buttons ── */
.sb-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  background: var(--sb-accent);
  color: #fff;
  border: 2px solid var(--sb-accent);
  border-radius: var(--sb-radius);
  font-size: .95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s, border-color .2s;
}
.sb-btn:hover { background: var(--sb-accent-h); border-color: var(--sb-accent-h); text-decoration: none; }

.sb-btn-ghost {
  background: transparent;
  color: var(--sb-text);
  border-color: var(--sb-border);
}
.sb-btn-ghost:hover { border-color: var(--sb-text-muted); background: rgba(255,255,255,.06); }

/* ── Navbar ── */
.sb-navbar {
  position: sticky;
  top: 0;
  z-index: 900;
  height: 70px;
  background: rgba(24,26,27,0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--sb-border);
  display: flex;
  align-items: center;
}
.sb-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}
.sb-nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--sb-text);
  flex-shrink: 0;
  text-decoration: none;
}
.sb-nav-logo img { height: 40px; width: 40px; border-radius: 50%; object-fit: cover; border: 2px solid var(--sb-accent); }
.sb-nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}
.sb-nav-links a {
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--sb-text-muted);
  transition: color .25s ease, background .25s ease;
}
.sb-nav-links a:hover { color: var(--sb-text); background: rgba(232,230,227,0.07); text-decoration: none; }
.sb-nav-links a.active { color: var(--sb-accent); background: rgba(232,230,227,0.07); }
.sb-nav-logo span em { color: var(--sb-accent); font-style: normal; }
.sb-nav-toggle { display: none; background: none; border: none; color: var(--sb-text); cursor: pointer; padding: 4px; line-height: 0; }
.sb-hbg-close { display: none; }
.sb-navbar.open .sb-hbg-open  { display: none; }
.sb-navbar.open .sb-hbg-close { display: block; }
.sb-nav-cta-m { display: none; }

/* ── Hero ── */
.sb-hero {
  padding: 100px 0 90px;
  background: linear-gradient(135deg, var(--sb-surface) 0%, var(--sb-bg) 100%);
  text-align: center;
}
.sb-hero-content { max-width: 760px; margin: 0 auto; }
.sb-hero h1 {
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 800;
  line-height: 1.2;
  color: var(--sb-text);
  margin-bottom: 20px;
}
.sb-hero-sub {
  font-size: 1.1rem;
  color: var(--sb-text-muted);
  margin-bottom: 36px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}
.sb-hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── Stats bar ── */
.sb-stats-bar {
  background: var(--sb-accent);
  padding: 36px 0;
}
.sb-stats-inner {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 24px;
}
.sb-stat { text-align: center; }
.sb-stat-number {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
}
.sb-stat-label {
  font-size: .82rem;
  color: rgba(255,255,255,.8);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-top: 4px;
}

/* ── Sections ── */
.sb-section { padding: 80px 0; }
.sb-section-tag {
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--sb-accent);
  margin-bottom: 12px;
}
.sb-section-heading {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 700;
  color: var(--sb-text);
  margin-bottom: 16px;
}
.sb-section-body {
  font-size: 1rem;
  color: var(--sb-text-muted);
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.75;
}

/* ── Cards ── */
.sb-cards-grid {
  display: grid;
  gap: 24px;
  margin-top: 48px;
}
.sb-cols-2 { grid-template-columns: repeat(2, 1fr); }
.sb-cols-3 { grid-template-columns: repeat(3, 1fr); }
.sb-cols-4 { grid-template-columns: repeat(4, 1fr); }

.sb-feature-card {
  background: var(--sb-surface);
  border: 1px solid var(--sb-border);
  border-radius: 12px;
  padding: 32px 28px;
  transition: border-color .2s, transform .2s;
}
.sb-feature-card:hover { border-color: var(--sb-accent); transform: translateY(-3px); }
.sb-card-icon-box {
  width: 52px; height: 52px;
  background: rgba(39,147,2,0.12);
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
  color: var(--sb-accent);
}
.sb-card-icon-box svg { width: 26px; height: 26px; flex-shrink: 0; }
.sb-feature-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 10px; }
.sb-feature-card p  { font-size: .9rem; color: var(--sb-text-muted); }

/* ── Image block ── */
.sb-image-block { margin: 0; }
.sb-image-block figcaption {
  text-align: center;
  font-size: .85rem;
  color: var(--sb-text-muted);
  padding: 10px 16px;
}

/* ── Contact section ── */
.sb-contact-section { padding: 80px 0; }
.sb-contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}
.sb-contact-form { display: flex; flex-direction: column; gap: 18px; }
.sb-form-group { display: flex; flex-direction: column; gap: 6px; }
.sb-form-group label { font-size: .85rem; color: var(--sb-text-muted); }
.sb-form-group input,
.sb-form-group textarea {
  padding: 11px 14px;
  background: var(--sb-surface);
  border: 1px solid var(--sb-border);
  border-radius: var(--sb-radius);
  color: var(--sb-text);
  font-size: .93rem;
  font-family: inherit;
  resize: vertical;
  transition: border-color .2s;
}
.sb-form-group input:focus,
.sb-form-group textarea:focus { outline: none; border-color: var(--sb-accent); }

/* ── CTA Banner ── */
.sb-cta-banner {
  background: var(--sb-surface);
  border-top: 1px solid var(--sb-border);
  border-bottom: 1px solid var(--sb-border);
  padding: 64px 0;
}
.sb-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.sb-cta-text h2 { font-size: 1.7rem; font-weight: 700; margin-bottom: 8px; }
.sb-cta-text p  { color: var(--sb-text-muted); }
.sb-cta-actions { display: flex; gap: 14px; flex-shrink: 0; flex-wrap: wrap; }

/* ── Footer ── */
.sb-site-footer { background: var(--sb-surface); border-top: 1px solid var(--sb-border); padding-top: 60px; }
.sb-footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
}
.sb-footer-brand h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 10px; }
.sb-footer-brand p  { font-size: .88rem; color: var(--sb-text-muted); }
.sb-footer-logo { height: 48px; width: 48px; margin-bottom: 12px; border-radius: 50%; object-fit: cover; border: 2px solid var(--sb-accent); }
.sb-footer-col h4 { font-size: .85rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--sb-text-muted); margin-bottom: 14px; }
.sb-footer-col ul { list-style: none; }
.sb-footer-col ul li { margin-bottom: 8px; }
.sb-footer-col ul li a { font-size: .88rem; color: var(--sb-text-muted); transition: color .18s; }
.sb-footer-col ul li a:hover { color: var(--sb-text); text-decoration: none; }
.sb-footer-contact-row {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 10px;
}
.sb-footer-contact-row svg { flex-shrink: 0; color: var(--sb-accent); }
.sb-footer-contact-row a { font-size: .88rem; color: var(--sb-text-muted); transition: color .18s; text-decoration: none; }
.sb-footer-contact-row a:hover { color: var(--sb-accent); text-decoration: none; }
.sb-footer-bottom {
  border-top: 1px solid var(--sb-border);
  padding: 18px 0;
  font-size: .82rem;
  color: var(--sb-text-muted);
}
.sb-footer-bottom-inner {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px;
}
.sb-footer-ncr {
  display: flex; align-items: center; gap: 8px;
  font-size: .8rem; color: var(--sb-text-muted);
}
.sb-footer-ncr-badge {
  background: var(--sb-accent); color: #fff;
  font-size: .68rem; font-weight: 800; letter-spacing: .06em;
  padding: 2px 6px; border-radius: 4px;
  text-transform: uppercase;
}

/* ── Info bar ── */
.sb-info-bar {
  height: 40px;
  background: var(--sb-surface);
  border-bottom: 1px solid var(--sb-border);
  display: flex;
  align-items: center;
}
.sb-info-bar-inner {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 28px;
}
.sb-info-bar a {
  color: var(--sb-text-muted);
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.8rem;
  transition: color .25s ease;
}
.sb-info-bar a:hover { color: var(--sb-accent); text-decoration: none; }
.sb-info-bar svg { width: 14px; height: 14px; flex-shrink: 0; fill: var(--sb-accent); }

/* ── Section backgrounds ── */
.sb-section-dark    { background: var(--sb-bg); }
.sb-section-surface { background: var(--sb-surface-2); }
.sb-section-light   { background: #f8fafc; }
.sb-section-dark  .sb-section-heading,
.sb-section-dark  h2  { color: var(--sb-text); }
.sb-section-light .sb-section-heading,
.sb-section-light h2  { color: #181A1B; }
.sb-section-dark  .sb-section-body,
.sb-section-dark  p   { color: var(--sb-text-muted); }
.sb-section-light .sb-section-body,
.sb-section-light p   { color: #64748b; }

/* ── Split section ── */
.sb-split-section { padding: 80px 0; }
.sb-split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.sb-split-img-left .sb-split-visual { order: -1; }
.sb-split-visual {
  position: relative;
  padding-bottom: 28px;
}
.sb-split-visual img {
  width: 100%;
  border-radius: 12px;
  display: block;
}
.sb-split-visual--logo {
  display: flex; align-items: center; justify-content: center;
}
.sb-split-visual--logo img {
  width: min(300px, 100%);
  max-height: 300px;
  border-radius: 50%;
  border: 4px solid var(--sb-accent);
  box-shadow: 0 0 48px rgba(39,147,2,0.35);
  object-fit: cover;
  aspect-ratio: 1 / 1;
}
.sb-split-badge {
  position: absolute;
  bottom: 0;
  right: -4px;
  background: var(--sb-accent);
  color: #fff;
  padding: 14px 18px;
  border-radius: 10px;
  line-height: 1.35;
  box-shadow: 0 4px 20px rgba(0,0,0,.3);
  min-width: 120px;
}
.sb-split-badge strong { display: block; font-size: .95rem; margin-bottom: 2px; }
.sb-split-badge span   { font-size: .75rem; opacity: .85; }
.sb-checklist {
  list-style: none;
  padding: 0;
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.sb-checklist li { display: flex; align-items: center; gap: 10px; }
.sb-check { color: var(--sb-accent); font-weight: 700; flex-shrink: 0; }
.sb-split-actions { margin-top: 28px; display: flex; gap: 14px; flex-wrap: wrap; }
.sb-checklist { list-style: none; margin-top: 20px; display: flex; flex-direction: column; gap: 12px; }
.sb-checklist li { display: flex; align-items: center; gap: 10px; font-size: 0.95rem; color: var(--sb-text); }
.sb-check { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 50%; background: rgba(39,147,2,0.18); color: var(--sb-accent); font-size: 0.8rem; font-weight: 700; flex-shrink: 0; }

/* ── Steps section ── */
.sb-steps-section { padding: 80px 0; }
.sb-steps-header { text-align: center; margin-bottom: 52px; }
.sb-steps-grid {
  display: grid;
  grid-template-columns: repeat(var(--cols, 4), 1fr);
  gap: 24px;
}
.sb-step-item { text-align: center; padding: 0 10px; }
.sb-step-num {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--sb-accent);
  color: #fff;
  font-size: 1.25rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
}
.sb-step-item h4 { font-size: .95rem; font-weight: 700; margin-bottom: 8px; }
.sb-step-item p  { font-size: .85rem; line-height: 1.65; }
.sb-section-dark .sb-step-item h4 { color: var(--sb-text); }
.sb-section-dark .sb-step-item p  { color: var(--sb-text-muted); }
.sb-section-light .sb-step-item h4 { color: #181A1B; }
.sb-section-light .sb-step-item p  { color: #64748b; }

/* ── Page hero (inner pages) ── */
.sb-page-hero {
  min-height: 320px;
  display: flex;
  align-items: flex-end;
  background: var(--sb-bg);
  background-size: cover;
  background-position: center;
}
.sb-page-hero__content {
  padding: 56px 0 44px;
  width: 100%;
}
.sb-page-hero h1 {
  font-size: clamp(1.7rem, 4vw, 2.8rem);
  font-weight: 800;
  color: #fff;
  margin: 0 0 12px;
  line-height: 1.15;
}
.sb-page-hero__sub {
  font-size: 1rem;
  color: rgba(255,255,255,.78);
  max-width: 640px;
  line-height: 1.65;
  margin: 0;
}
.sb-breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: .78rem;
  color: rgba(255,255,255,.6);
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.sb-breadcrumb a { color: rgba(255,255,255,.65); }
.sb-breadcrumb a:hover { color: #fff; text-decoration: none; }
.sb-breadcrumb__sep { opacity: .5; }
.sb-breadcrumb span:last-child { color: rgba(255,255,255,.9); }

/* ── Notice bar ── */
.sb-notice-bar {
  padding: 11px 0;
  font-size: .83rem;
  line-height: 1.5;
}
.sb-notice-bar--accent  { background: rgba(39,147,2,.12); border-top: 1px solid rgba(39,147,2,.25); border-bottom: 1px solid rgba(39,147,2,.25); color: #bbf7d0; }
.sb-notice-bar--dark    { background: #111314; border-top: 1px solid var(--sb-border); border-bottom: 1px solid var(--sb-border); color: var(--sb-text-muted); }
.sb-notice-bar--warning { background: rgba(146,64,14,.25); border-top: 1px solid rgba(251,191,36,.2); border-bottom: 1px solid rgba(251,191,36,.2); color: #fde68a; }
.sb-notice-bar__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  text-align: center;
}
.sb-notice-icon { color: var(--sb-accent); flex-shrink: 0; }

/* ── Card list (checklist cards) ── */
.sb-card-list-section { padding: 80px 0; }
.sb-card-list-header  { text-align: center; margin-bottom: 48px; }
.sb-card-list-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.sb-list-card {
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid transparent;
}
.sb-list-card--positive { border-color: rgba(39,147,2,.25); }
.sb-list-card--negative { border-color: rgba(239,68,68,.25); }
.sb-section-dark  .sb-list-card { background: var(--sb-surface); }
.sb-section-light .sb-list-card { background: #fff; }
.sb-list-card__head {
  padding: 13px 22px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: .9rem;
  border-bottom: 1px solid transparent;
}
.sb-list-card--positive .sb-list-card__head { background: rgba(39,147,2,.08); border-color: rgba(39,147,2,.15); color: #279302; }
.sb-list-card--negative .sb-list-card__head { background: rgba(239,68,68,.07); border-color: rgba(239,68,68,.15); color: #ef4444; }
.sb-list-card__body { padding: 18px 22px; display: flex; flex-direction: column; gap: 11px; }
.sb-list-card__item { display: flex; align-items: flex-start; gap: 10px; font-size: .88rem; line-height: 1.5; }
.sb-section-dark  .sb-list-card__item { color: var(--sb-text-muted); }
.sb-section-light .sb-list-card__item { color: #475569; }
.sb-list-icon     { color: var(--sb-accent); flex-shrink: 0; margin-top: 2px; font-weight: 700; }
.sb-list-icon--neg { color: #ef4444; }
.sb-list-card__note { font-size: .8rem; color: #94a3b8; line-height: 1.6; margin-top: 6px; }

/* ── Centered text section ── */
.sb-text-center-section { padding: 80px 0; }
.sb-text-center-inner {
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
}
.sb-text-center-inner .sb-section-body { font-size: 1.03rem; line-height: 1.75; }

/* ── Branches grid ── */
.sb-branches-section { padding: 80px 0; }
.sb-branches-header  { text-align: center; margin-bottom: 52px; }
.sb-branches-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}
.sb-branch-card { border-radius: 10px; overflow: hidden; }
.sb-section-dark  .sb-branch-card { background: var(--sb-surface); border: 1px solid rgba(255,255,255,.07); }
.sb-section-light .sb-branch-card { background: #fff; border: 1px solid #e2e8f0; }
.sb-branch-card__header {
  padding: 13px 22px;
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(39,147,2,.08);
  border-bottom: 1px solid rgba(39,147,2,.15);
}
.sb-branch-num { font-weight: 800; font-size: 1.05rem; color: var(--sb-accent); min-width: 28px; }
.sb-branch-card__header h3 { font-weight: 700; font-size: .92rem; margin: 0; }
.sb-section-dark  .sb-branch-card__header h3 { color: var(--sb-text); }
.sb-section-light .sb-branch-card__header h3 { color: #181A1B; }
.sb-branch-card__body { padding: 16px 22px; display: flex; flex-direction: column; gap: 10px; }
.sb-branch-row { display: flex; align-items: center; gap: 10px; font-size: .88rem; }
.sb-section-dark  .sb-branch-row { color: var(--sb-text-muted); }
.sb-section-light .sb-branch-row { color: #475569; }
.sb-branch-row svg { flex-shrink: 0; color: var(--sb-accent); }
.sb-branch-row a   { color: var(--sb-accent); }
.sb-branch-row a:hover { text-decoration: underline; }
.sb-branch-card__footer { padding: 0 22px 18px; }
.sb-branch-map-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .8rem; font-weight: 600; color: var(--sb-accent);
  border: 1px solid var(--sb-accent); border-radius: 5px; padding: 5px 12px;
  text-decoration: none; transition: background .15s, color .15s;
}
.sb-branch-map-link svg { flex-shrink: 0; }
.sb-branch-map-link:hover { background: var(--sb-accent); color: #fff; }

/* ── sb-card-icon SVG support ── */
.sb-card-icon svg { width: 28px; height: 28px; }

/* ── Toast ── */
.sb-toast {
  position: fixed;
  bottom: 28px;
  right: 28px;
  background: var(--sb-accent);
  color: #fff;
  padding: 14px 22px;
  border-radius: 8px;
  font-weight: 600;
  box-shadow: 0 8px 24px rgba(0,0,0,.4);
  z-index: 9999;
  animation: sb-slide-in .3s ease;
}
@keyframes sb-slide-in { from { transform: translateY(20px); opacity: 0; } to { transform: none; opacity: 1; } }

/* ── Responsive ── */
@media (max-width: 900px) {
  .sb-nav-links { display: none; }
  .sb-nav-cta-d { display: none; }
  .sb-nav-toggle { display: flex; align-items: center; margin-left: auto; }
  .sb-navbar.open .sb-nav-links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--sb-surface);
    padding: 20px 24px;
    gap: 12px;
    border-bottom: 1px solid var(--sb-border);
    z-index: 899;
  }
  .sb-navbar.open .sb-nav-cta-m { display: block; margin-top: 8px; text-align: center; }
  .sb-navbar { position: relative; }
  .sb-contact-inner { grid-template-columns: 1fr; gap: 36px; }
  .sb-cta-inner { flex-direction: column; text-align: center; }
  .sb-cta-actions { justify-content: center; }
  .sb-footer-inner { grid-template-columns: 1fr 1fr; }
  .sb-cols-4 { grid-template-columns: repeat(2, 1fr); }
  .sb-split-grid { grid-template-columns: 1fr; gap: 36px; }
  .sb-split-img-left .sb-split-visual { order: 0; }
  .sb-steps-grid { grid-template-columns: repeat(2, 1fr); }
  .sb-card-list-grid { grid-template-columns: 1fr; }
  .sb-branches-grid  { grid-template-columns: 1fr; }
  .sb-info-bar-inner { justify-content: center; flex-wrap: wrap; }
}

@media (max-width: 640px) {
  .sb-hero { padding: 72px 0 64px; }
  .sb-section { padding: 56px 0; }
  .sb-cols-2, .sb-cols-3, .sb-cols-4 { grid-template-columns: 1fr; }
  .sb-footer-inner { grid-template-columns: 1fr; }
  .sb-stats-inner { flex-direction: column; align-items: center; }
  .sb-steps-grid { grid-template-columns: 1fr; }
  .sb-split-section, .sb-steps-section { padding: 52px 0; }
}
