/* =========================================================
   SpecAvto Ternopil Child Theme
   Industrial yellow + clean logistics system for Blocksy
   ========================================================= */

:root {
  --sa-dark: #111827;
  --sa-dark-soft: #1f2937;
  --sa-text: #111827;
  --sa-muted: #4b5563;
  --sa-bg: #f8fafc;
  --sa-surface: #ffffff;
  --sa-border: #e5e7eb;
  --sa-yellow: #facc15;
  --sa-yellow-dark: #eab308;
  --sa-green: #166534;
  --sa-green-soft: #dcfce7;
  --sa-blue: #2563eb;
  --sa-orange: #f97316;
  --sa-radius-sm: 10px;
  --sa-radius-md: 16px;
  --sa-radius-lg: 24px;
  --sa-shadow-sm: 0 8px 24px rgba(17, 24, 39, .08);
  --sa-shadow-md: 0 16px 42px rgba(17, 24, 39, .12);
  --sa-container: 1180px;
  --sa-container-wide: 1280px;
  --sa-content: 860px;
  --sa-header-height: 76px;

  /* Blocksy-compatible variable overrides where supported. */
  --theme-container-width: var(--sa-container);
  --theme-normal-container-max-width: var(--sa-container);
  --theme-wide-container-max-width: var(--sa-container-wide);
  --theme-content-vertical-spacing: 64px;
  --theme-palette-color-1: var(--sa-yellow);
  --theme-palette-color-2: var(--sa-yellow-dark);
  --theme-palette-color-3: var(--sa-green);
  --theme-palette-color-4: var(--sa-dark);
  --theme-palette-color-5: var(--sa-muted);
  --theme-palette-color-6: var(--sa-border);
  --theme-palette-color-7: var(--sa-bg);
  --theme-palette-color-8: var(--sa-surface);
}

html {
  scroll-behavior: smooth;
}

body.specavto-child-theme {
  margin: 0;
  background: var(--sa-bg);
  color: var(--sa-text);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.specavto-child-theme a {
  color: var(--sa-green);
  text-decoration-thickness: .08em;
  text-underline-offset: .16em;
}

body.specavto-child-theme a:hover {
  color: var(--sa-dark);
}

.sa-container,
.ct-container {
  width: min(calc(100% - 32px), var(--sa-container));
  margin-inline: auto;
}

.sa-container--wide {
  width: min(calc(100% - 32px), var(--sa-container-wide));
}

.sa-container--narrow {
  width: min(calc(100% - 32px), var(--sa-content));
}

.sa-skip-link {
  position: absolute;
  left: -999px;
  top: 12px;
  z-index: 9999;
  background: var(--sa-yellow);
  color: var(--sa-dark);
  padding: 10px 14px;
  border-radius: var(--sa-radius-sm);
  font-weight: 700;
}

.sa-skip-link:focus {
  left: 12px;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Header */
.sa-site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--sa-surface);
  box-shadow: 0 1px 0 rgba(229, 231, 235, .9);
}

.sa-site-header.is-scrolled {
  box-shadow: 0 12px 28px rgba(17, 24, 39, .12);
}

.sa-topbar {
  background: var(--sa-dark);
  color: rgba(255, 255, 255, .84);
  font-size: 13px;
}

.sa-topbar__inner {
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.sa-topbar__inner span:first-child {
  color: var(--sa-yellow);
  font-weight: 700;
}

.sa-header-main__inner {
  min-height: var(--sa-header-height);
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 24px;
  align-items: center;
}

.sa-branding__title,
.sa-footer__title {
  display: inline-block;
  color: var(--sa-dark);
  text-decoration: none;
  font-size: 25px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: -.03em;
}

.sa-branding__title::before,
.sa-footer__title::before {
  content: '';
  display: inline-block;
  width: 14px;
  height: 14px;
  margin-right: 8px;
  border-radius: 3px;
  background: linear-gradient(135deg, var(--sa-yellow) 0 55%, var(--sa-green) 55% 100%);
  transform: rotate(45deg);
}

.sa-branding__tagline {
  margin: 4px 0 0;
  color: var(--sa-muted);
  font-size: 13px;
}

.sa-nav__list {
  display: flex;
  justify-content: flex-end;
  gap: 22px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.sa-nav__list a {
  color: var(--sa-dark);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
}

.sa-nav__list a:hover,
.sa-nav__list .current-menu-item > a {
  color: var(--sa-green);
}

.sa-header-cta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.sa-header-cta__phone {
  color: var(--sa-dark);
  text-decoration: none;
  text-align: right;
  line-height: 1.2;
}

.sa-header-cta__phone span {
  display: block;
  color: var(--sa-muted);
  font-size: 12px;
}

.sa-header-cta__phone strong {
  display: block;
  font-size: 15px;
}

.sa-header-cta__button,
.sa-btn,
.wp-block-button__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 12px 18px;
  border: 0;
  border-radius: 12px;
  background: var(--sa-yellow);
  color: var(--sa-dark) !important;
  font-weight: 900;
  text-decoration: none !important;
  box-shadow: 0 12px 24px rgba(250, 204, 21, .25);
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.sa-header-cta__button:hover,
.sa-btn:hover,
.wp-block-button__link:hover {
  background: var(--sa-yellow-dark);
  transform: translateY(-1px);
  box-shadow: 0 16px 30px rgba(250, 204, 21, .32);
}

.sa-btn--secondary {
  background: var(--sa-dark);
  color: #fff !important;
  box-shadow: none;
}

.sa-menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--sa-border);
  border-radius: 12px;
  background: var(--sa-surface);
  cursor: pointer;
}

.sa-menu-toggle__bar {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: var(--sa-dark);
  border-radius: 99px;
}

/* Page and content widths */
.sa-main {
  padding-block: 0 56px;
}

.sa-page-title {
  padding-block: 44px 20px;
}

.sa-page-title h1 {
  margin: 0;
  color: var(--sa-dark);
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.04;
  letter-spacing: -.04em;
}

.sa-post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 12px;
  color: var(--sa-muted);
  font-size: 14px;
}

.sa-entry-content > * {
  width: min(calc(100% - 32px), var(--sa-content));
  margin-left: auto;
  margin-right: auto;
}

.sa-entry-content > .alignwide,
.sa-entry-content > .wp-block-group.alignwide,
.sa-entry-content > .wp-block-columns.alignwide {
  width: min(calc(100% - 32px), var(--sa-container));
  max-width: var(--sa-container);
}

.sa-entry-content > .alignfull {
  width: 100%;
  max-width: none;
}

.sa-entry-content--landing > * {
  width: min(calc(100% - 32px), var(--sa-container));
  max-width: var(--sa-container);
}

.sa-entry-content--post > * {
  width: min(calc(100% - 32px), var(--sa-content));
}

.sa-entry-content p {
  color: var(--sa-muted);
}

.sa-entry-content h2,
.sa-entry-content h3,
.sa-entry-content h4 {
  color: var(--sa-dark);
  letter-spacing: -.03em;
  line-height: 1.15;
}

.sa-entry-content h2 {
  margin-top: 42px;
  font-size: clamp(28px, 4vw, 42px);
}

.sa-entry-content h3 {
  margin-top: 30px;
  font-size: clamp(22px, 3vw, 30px);
}

.sa-entry-content ul,
.sa-entry-content ol {
  color: var(--sa-muted);
}

.sa-entry-content table {
  width: min(calc(100% - 32px), var(--sa-container));
  border-collapse: collapse;
  background: var(--sa-surface);
  border-radius: var(--sa-radius-md);
  overflow: hidden;
  box-shadow: var(--sa-shadow-sm);
}

.sa-entry-content th,
.sa-entry-content td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--sa-border);
  text-align: left;
}

.sa-entry-content th {
  background: var(--sa-dark);
  color: #fff;
}

/* Gutenberg utility sections for site builders */
.sa-hero {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: clamp(64px, 9vw, 112px) 0;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(17, 24, 39, .98), rgba(31, 41, 55, .94)),
    repeating-linear-gradient(-45deg, rgba(250, 204, 21, .16) 0, rgba(250, 204, 21, .16) 10px, transparent 10px, transparent 24px);
}

.sa-hero > * {
  width: min(calc(100% - 32px), var(--sa-container));
  margin-inline: auto;
}

.sa-hero h1,
.sa-hero h2 {
  max-width: 800px;
  margin: 0 0 18px;
  color: #fff;
  font-size: clamp(42px, 7vw, 78px);
  line-height: .98;
  letter-spacing: -.06em;
}

.sa-hero p {
  max-width: 760px;
  color: rgba(255, 255, 255, .86);
  font-size: clamp(18px, 2.3vw, 22px);
}

.sa-hero .wp-block-buttons {
  margin-top: 28px;
}

.sa-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.sa-badges > * {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 12px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 999px;
  background: rgba(255, 255, 255, .09);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
}

.sa-card-grid,
.wp-block-columns.sa-card-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.sa-card,
.sa-entry-content .wp-block-group.sa-card,
.sa-post-card {
  padding: 24px;
  border: 1px solid var(--sa-border);
  border-radius: var(--sa-radius-lg);
  background: var(--sa-surface);
  box-shadow: var(--sa-shadow-sm);
}

.sa-card strong {
  color: var(--sa-dark);
}

.sa-card::before {
  content: '';
  display: block;
  width: 38px;
  height: 6px;
  margin-bottom: 16px;
  border-radius: 99px;
  background: var(--sa-yellow);
}

.sa-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.sa-stat {
  padding: 22px;
  border-radius: var(--sa-radius-md);
  background: var(--sa-dark);
  color: #fff;
}

.sa-stat strong {
  display: block;
  color: var(--sa-yellow);
  font-size: clamp(28px, 5vw, 42px);
  line-height: 1;
}

.sa-cta-band {
  padding: 34px;
  border-radius: var(--sa-radius-lg);
  background: var(--sa-dark);
  color: #fff;
  box-shadow: var(--sa-shadow-md);
}

.sa-cta-band h2,
.sa-cta-band h3,
.sa-cta-band p {
  color: #fff;
}

.sa-route-line {
  position: relative;
  height: 4px;
  margin: 28px 0;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--sa-green), var(--sa-yellow));
}

.sa-route-line::before,
.sa-route-line::after {
  content: '';
  position: absolute;
  top: -6px;
  width: 16px;
  height: 16px;
  border: 4px solid var(--sa-green);
  border-radius: 50%;
  background: var(--sa-surface);
}

.sa-route-line::before {
  left: 0;
}

.sa-route-line::after {
  right: 0;
  border-color: var(--sa-yellow);
}

/* Archives */
.sa-post-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.sa-post-card__title {
  display: block;
  color: var(--sa-dark);
  font-size: 22px;
  line-height: 1.16;
  font-weight: 900;
  text-decoration: none;
}

.sa-post-card__excerpt {
  margin-top: 12px;
  color: var(--sa-muted);
}

.sa-post-card__read {
  display: inline-block;
  margin-top: 14px;
  font-weight: 800;
}

.sa-pagination {
  grid-column: 1 / -1;
  margin-top: 20px;
}

.sa-404 {
  padding: 80px 0;
}

/* Footer */
.sa-site-footer {
  margin-top: 56px;
  background: var(--sa-dark);
  color: rgba(255, 255, 255, .82);
}

.sa-footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
  gap: 32px;
  padding: 54px 0;
}

.sa-footer__title {
  color: #fff;
}

.sa-footer__brand p {
  max-width: 420px;
  color: rgba(255, 255, 255, .72);
}

.sa-footer__col h2 {
  margin: 0 0 14px;
  color: var(--sa-yellow);
  font-size: 17px;
}

.sa-footer__links {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.sa-footer__links a {
  color: rgba(255, 255, 255, .82);
  text-decoration: none;
}

.sa-footer__links a:hover {
  color: var(--sa-yellow);
}

.sa-footer__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.sa-footer__badges span {
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 999px;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}

.sa-footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, .12);
}

.sa-footer__bottom-inner {
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: rgba(255, 255, 255, .62);
  font-size: 14px;
}

/* Mobile sticky CTA */
.sa-mobile-cta {
  display: none;
}

/* Responsive */
@media (max-width: 1100px) {
  .sa-header-main__inner {
    grid-template-columns: auto auto;
  }

  .sa-menu-toggle {
    display: inline-block;
    justify-self: end;
  }

  .sa-nav {
    display: none;
    grid-column: 1 / -1;
    width: 100%;
  }

  .sa-nav.is-open {
    display: block;
  }

  .sa-nav__list {
    flex-direction: column;
    gap: 0;
    padding: 12px 0 18px;
  }

  .sa-nav__list a {
    display: block;
    padding: 12px 0;
    border-top: 1px solid var(--sa-border);
  }

  .sa-header-cta {
    display: none;
  }

  .sa-card-grid,
  .wp-block-columns.sa-card-grid,
  .sa-post-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sa-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sa-footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  :root {
    --sa-header-height: 64px;
  }

  body.specavto-child-theme {
    font-size: 16px;
    padding-bottom: 72px;
  }

  .sa-topbar__inner {
    justify-content: center;
    text-align: center;
  }

  .sa-topbar__inner span:nth-child(2) {
    display: none;
  }

  .sa-branding__title {
    font-size: 21px;
  }

  .sa-branding__tagline {
    display: none;
  }

  .sa-page-title {
    padding-block: 32px 14px;
  }

  .sa-card-grid,
  .wp-block-columns.sa-card-grid,
  .sa-post-grid,
  .sa-stats,
  .sa-footer__grid {
    grid-template-columns: 1fr;
  }

  .sa-entry-content table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }

  .sa-footer__bottom-inner {
    flex-direction: column;
    justify-content: center;
    text-align: center;
    padding: 14px 0;
  }

  .sa-mobile-cta {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1100;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 10px 12px;
    background: rgba(255, 255, 255, .96);
    border-top: 1px solid var(--sa-border);
    box-shadow: 0 -10px 28px rgba(17, 24, 39, .12);
    backdrop-filter: blur(10px);
  }

  .sa-mobile-cta a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    border-radius: 12px;
    color: var(--sa-dark);
    font-weight: 900;
    text-decoration: none;
  }

  .sa-mobile-cta__call {
    background: var(--sa-yellow);
  }

  .sa-mobile-cta__message {
    background: var(--sa-green);
    color: #fff !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* =========================================================
   SPECAVTO — FOOTER UPDATE 2026-07
   Contact-focused footer with moderate service linking
   ========================================================= */

.sa-site-footer,
.sa-site-footer--specavto {
  margin-top: 0;
  background:
    radial-gradient(circle at 15% 0%, rgba(250, 204, 21, 0.16), transparent 28%),
    linear-gradient(135deg, #111827, #0f172a 72%, #111827);
  color: rgba(255, 255, 255, 0.82);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.sa-footer__grid {
  width: min(1280px, calc(100% - 32px));
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(260px, 1.45fr) minmax(180px, .85fr) minmax(200px, .95fr) minmax(260px, 1.05fr);
  gap: 34px;
  padding: 54px 0 44px;
}

.sa-footer__brand,
.sa-footer__col,
.sa-footer__contacts {
  min-width: 0;
}

.sa-footer__title {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  color: #ffffff !important;
  font-size: 24px;
  line-height: 1.1;
  font-weight: 900;
  text-decoration: none !important;
}

.sa-footer__title:hover {
  color: #facc15 !important;
}

.sa-footer__mark {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  border-radius: 4px;
  background: linear-gradient(135deg, #facc15 0 50%, #166534 50% 100%);
  transform: rotate(45deg);
  box-shadow: 0 8px 20px rgba(250, 204, 21, 0.26);
}

.sa-footer__brand p {
  max-width: 480px;
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 15.5px;
  line-height: 1.65;
}

.sa-footer__col h2,
.sa-footer__contacts h2 {
  margin: 0 0 14px;
  color: #facc15;
  font-size: 16px;
  line-height: 1.2;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.sa-footer__links {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.sa-footer__links a {
  color: rgba(255, 255, 255, 0.84) !important;
  text-decoration: none !important;
  font-size: 15px;
  line-height: 1.35;
  transition: color 0.18s ease, transform 0.18s ease;
}

.sa-footer__links a:hover {
  color: #facc15 !important;
}

.sa-footer__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.sa-footer__badges span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 10px;
  border: 1px solid rgba(250, 204, 21, 0.24);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.92);
  font-size: 13px;
  font-weight: 800;
}

.sa-footer__contact-list {
  gap: 12px;
}

.sa-footer__contact-list li {
  display: grid;
  gap: 3px;
}

.sa-footer__contact-list span {
  color: rgba(255, 255, 255, 0.52);
  font-size: 12px;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.sa-footer__contact-list strong {
  color: rgba(255, 255, 255, 0.92);
  font-size: 15px;
  line-height: 1.35;
}

.sa-footer__messengers {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.sa-footer__messenger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 8px 11px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.1;
  text-decoration: none !important;
  transition: transform 0.18s ease, opacity 0.18s ease;
}

.sa-footer__messenger:hover {
  transform: translateY(-1px);
  opacity: .94;
}

.sa-footer__messenger--viber {
  background: #7360f2;
  color: #ffffff !important;
}

.sa-footer__messenger--whatsapp {
  background: #25d366;
  color: #102317 !important;
}

.sa-footer__messenger--telegram {
  background: #229ed9;
  color: #ffffff !important;
}

.sa-footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.sa-footer__bottom-inner {
  width: min(1280px, calc(100% - 32px));
  min-height: 56px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 13.5px;
}

/* Updated site-wide mobile CTA from footer.php */
.sa-mobile-cta {
  display: none;
}

/* Avoid duplicate sticky bars on custom home page if it already includes .sa-mobile-actions */
body:has(.sa-mobile-actions) .sa-mobile-cta,
body.home .sa-mobile-cta {
  display: none !important;
}

@media (max-width: 1100px) {
  .sa-footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .sa-footer__grid {
    width: min(100% - 24px, 1280px);
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 42px 0 34px;
  }

  .sa-footer__title {
    font-size: 22px;
  }

  .sa-footer__bottom-inner {
    width: min(100% - 24px, 1280px);
    min-height: auto;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    padding: 16px 0;
  }

  .sa-mobile-cta {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1100;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    padding: 8px;
    background: rgba(255, 255, 255, 0.96);
    border-top: 1px solid #e5e7eb;
    box-shadow: 0 -12px 34px rgba(15, 23, 42, 0.16);
  }

  .sa-mobile-cta a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 900;
    text-align: center;
    text-decoration: none !important;
  }

  .sa-mobile-cta__call {
    background: #facc15;
    color: #111827 !important;
  }

  .sa-mobile-cta__viber {
    background: #7360f2;
    color: #ffffff !important;
  }

  .sa-mobile-cta__whatsapp {
    background: #25d366;
    color: #102317 !important;
  }

  .sa-mobile-cta__telegram {
    background: #229ed9;
    color: #ffffff !important;
  }
}

/* =========================================================
   SPECAVTO — INDEPENDENT DARK TOPBAR ABOVE BLOCKSY HEADER
   Menu is rendered by WordPress / Blocksy, not by the child theme.
   ========================================================= */

.sa-independent-topbar {
  position: relative;
  z-index: 999;
  width: 100%;
  background: linear-gradient(135deg, #111827, #1f2937);
  color: #ffffff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.sa-independent-topbar__inner {
  width: min(1280px, calc(100% - 32px));
  min-height: 44px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 8px 0;
}

.sa-independent-topbar__left,
.sa-independent-topbar__right {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.sa-independent-topbar__left {
  min-width: 0;
}

.sa-independent-topbar__right {
  flex-shrink: 0;
  justify-content: flex-end;
}

.sa-independent-topbar__geo,
.sa-independent-topbar__services,
.sa-independent-topbar__link,
.sa-independent-topbar__hours {
  font-size: 14px;
  line-height: 1.35;
  font-weight: 800;
  white-space: nowrap;
}

.sa-independent-topbar__geo {
  color: #facc15;
  font-weight: 900;
}

.sa-independent-topbar__services {
  color: rgba(255, 255, 255, 0.9);
}

.sa-independent-topbar__separator {
  color: rgba(255, 255, 255, 0.26);
}

.sa-independent-topbar__link {
  color: #ffffff !important;
  text-decoration: none !important;
  transition: color 0.18s ease, opacity 0.18s ease;
}

.sa-independent-topbar__link:hover {
  color: #facc15 !important;
}

.sa-independent-topbar__phone {
  font-weight: 900;
}

.sa-independent-topbar__email {
  color: rgba(255, 255, 255, 0.86) !important;
}

.sa-independent-topbar__hours {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(250, 204, 21, 0.14);
  color: #facc15;
  border: 1px solid rgba(250, 204, 21, 0.28);
}

/* The old child-theme custom header should not influence Blocksy header/menu. */
.sa-site-header--minimal,
.sa-site-header--with-menu,
.sa-header-menu-row {
  display: none !important;
}

/* Mobile */
@media (max-width: 900px) {
  .sa-independent-topbar__inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
    padding: 10px 0;
  }

  .sa-independent-topbar__left,
  .sa-independent-topbar__right {
    width: 100%;
    justify-content: flex-start;
    gap: 8px 10px;
  }

  .sa-independent-topbar__geo,
  .sa-independent-topbar__services,
  .sa-independent-topbar__link,
  .sa-independent-topbar__hours {
    font-size: 13px;
    white-space: normal;
  }

  .sa-independent-topbar__separator {
    display: none;
  }
}

@media (max-width: 520px) {
  .sa-independent-topbar__inner {
    width: min(100% - 20px, 1280px);
  }

  .sa-independent-topbar__left,
  .sa-independent-topbar__right {
    display: grid;
    grid-template-columns: 1fr;
  }

  .sa-independent-topbar__geo {
    font-size: 13px;
  }

  .sa-independent-topbar__services {
    font-size: 12.5px;
    line-height: 1.4;
  }

  .sa-independent-topbar__phone,
  .sa-independent-topbar__email,
  .sa-independent-topbar__hours {
    width: fit-content;
  }
}

/* =========================================================
   SPECAVTO — FULL WIDTH HOMEPAGE FIX
   Reason: the one-file homepage uses <main class="sa-home"> inside
   WordPress page content. Ordinary .sa-entry-content children are narrow
   by design, so this rule restores the homepage to full available width.
   ========================================================= */

.sa-article--home,
.sa-entry-content--home {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}

.sa-entry-content--home > *,
.sa-entry-content--home > .sa-home,
.sa-entry-content.sa-entry-content--home > .sa-home {
  width: 100%;
  max-width: none;
  margin-left: 0;
  margin-right: 0;
}

.sa-entry-content--home .sa-home {
  width: 100%;
  max-width: none;
  margin: 0;
}

.sa-entry-content--home .sa-home .sa-container {
  width: min(1180px, calc(100% - 32px));
  max-width: 1180px;
  margin-inline: auto;
}

.sa-entry-content--home .sa-home .sa-hero,
.sa-entry-content--home .sa-home .sa-section,
.sa-entry-content--home .sa-home .sa-contact-strip,
.sa-entry-content--home .sa-home .sa-mini-nav,
.sa-entry-content--home .sa-home .sa-final-cta {
  width: 100%;
  max-width: none;
}

@media (max-width: 767px) {
  .sa-entry-content--home .sa-home .sa-container {
    width: min(100% - 24px, 1180px);
  }
}