html {
  scroll-behavior: smooth;
}

body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html.stb-menu-open,
body.stb-menu-open {
  overflow: hidden;
  overscroll-behavior: contain;
  touch-action: none;
}

.stb-site-nav {
  z-index: 300;
}

.stb-mobile-menu {
  position: fixed;
  top: 6rem;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 290;
  background-color: #ffffff;
  visibility: hidden;
  transform: translateY(-1rem);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.28s ease, opacity 0.22s ease, visibility 0.22s ease;
}

.stb-mobile-menu.is-open {
  visibility: visible;
  transform: translateY(0rem);
  opacity: 1;
  pointer-events: auto;
}

:root {
  --stb-brand-50: #f0f9ff;
  --stb-brand-100: #e0f2fe;
  --stb-brand-200: #bae6fd;
  --stb-brand-300: #7dd3fc;
  --stb-brand-400: #38bdf8;
  --stb-brand-500: #0ea5e9;
  --stb-brand-600: #0076a7;
  --stb-brand-700: #0369a1;
  --stb-brand-800: #075985;
}

/* Fallback brand utility classes in case Tailwind custom palette is not resolved */
.text-brand-100 { color: var(--stb-brand-100) !important; }
.text-brand-200 { color: var(--stb-brand-200) !important; }
.text-brand-300 { color: var(--stb-brand-300) !important; }
.text-brand-400 { color: var(--stb-brand-400) !important; }
.text-brand-500 { color: var(--stb-brand-500) !important; }
.text-brand-600 { color: var(--stb-brand-600) !important; }
.text-brand-700 { color: var(--stb-brand-700) !important; }

.bg-brand-50 { background-color: var(--stb-brand-50) !important; }
.bg-brand-600 { background-color: var(--stb-brand-600) !important; }
.bg-brand-700 { background-color: var(--stb-brand-700) !important; }
.bg-brand-600\/20 { background-color: rgb(0 118 167 / 0.2) !important; }

.border-brand-500 { border-color: var(--stb-brand-500) !important; }
.border-brand-600 { border-color: var(--stb-brand-600) !important; }
.border-brand-700 { border-color: var(--stb-brand-700) !important; }

.hover\:text-brand-400:hover { color: var(--stb-brand-400) !important; }
.hover\:text-brand-600:hover { color: var(--stb-brand-600) !important; }
.hover\:bg-brand-600:hover { background-color: var(--stb-brand-600) !important; }
.hover\:bg-brand-700:hover { background-color: var(--stb-brand-700) !important; }
.hover\:border-brand-500:hover { border-color: var(--stb-brand-500) !important; }
.hover\:border-brand-600:hover { border-color: var(--stb-brand-600) !important; }
.hover\:border-brand-700:hover { border-color: var(--stb-brand-700) !important; }

.focus\:bg-brand-600:focus { background-color: var(--stb-brand-600) !important; }
.focus\:border-brand-600:focus { border-color: var(--stb-brand-600) !important; }
.focus\:ring-brand-600:focus { box-shadow: 0 0 0 1px var(--stb-brand-600) !important; }
.focus\:ring-brand-600\/20:focus { box-shadow: 0 0 0 2px rgb(0 118 167 / 0.2) !important; }

.group:hover .group-hover\:text-brand-100 { color: var(--stb-brand-100) !important; }
.group:hover .group-hover\:text-brand-200 { color: var(--stb-brand-200) !important; }
.group:hover .group-hover\:text-brand-400 { color: var(--stb-brand-400) !important; }
.group:hover .group-hover\:bg-brand-600 { background-color: var(--stb-brand-600) !important; }
.group:hover .group-hover\:border-brand-500 { border-color: var(--stb-brand-500) !important; }

.stb-service-icon {
  width: 1.75rem;
  height: 1.75rem;
  stroke: currentColor;
  stroke-width: 2.1;
  fill: none;
}

.stb-service-icon-fallback {
  font-size: 1.3rem;
  line-height: 1;
}

.stb-home-service-card:hover .stb-home-service-icon,
.stb-home-service-card:focus .stb-home-service-icon,
.stb-home-service-card:focus-visible .stb-home-service-icon {
  color: #ffffff !important;
}

@media (max-width: 767px) {
  .text-justify {
    text-align: left !important;
  }

  .stb-home-services-heading {
    align-items: flex-start !important;
    margin-bottom: 3rem !important;
  }

  .stb-home-services-heading p {
    max-width: none;
    text-align: left !important;
  }

  .stb-home-service-card {
    height: auto !important;
    min-height: 220px;
    padding: 1.5rem !important;
  }

  .stb-home-service-card > span {
    top: 0.75rem;
    right: 1.25rem;
    font-size: 4.75rem;
  }

  .stb-home-service-icon {
    width: 2.25rem !important;
    height: 2.25rem !important;
    margin-bottom: 1.25rem !important;
  }

  .stb-home-service-card h3 {
    margin-bottom: 0.75rem !important;
    font-size: 1.35rem !important;
    line-height: 1.05 !important;
  }

  .stb-home-service-card p {
    line-height: 1.55 !important;
  }

  .stb-contact-panel-section > div {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .stb-contact-panel-grid {
    width: 100%;
    box-shadow: none !important;
  }

  .stb-contact-company-panel,
  .stb-contact-form-panel {
    width: 100%;
    padding: 2rem 1.5rem !important;
  }

  .stb-contact-form-panel {
    border-left-width: 1px !important;
    border-right-width: 0 !important;
  }
}

.stb-form-select {
  -webkit-appearance: none;
  appearance: none;
  background-color: #f8fafc;
  border-color: #cbd5e1;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%230076a7' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  background-size: 14px 14px;
  padding-right: 2.6rem;
  cursor: pointer;
}

.stb-form-select:hover {
  background-color: #ffffff;
  border-color: #94a3b8;
}

.stb-form-select:focus {
  background-color: #ffffff;
}

.stb-form-submit {
  background-color: var(--stb-brand-600) !important;
  color: #ffffff !important;
  border: 1px solid transparent;
  transition: background-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.stb-form-submit:hover,
.stb-form-submit:focus-visible {
  background-color: var(--stb-brand-500) !important;
  color: #ffffff !important;
  box-shadow: 0 12px 24px -12px rgba(0, 118, 167, 0.55);
}

.stb-form-submit:active {
  background-color: var(--stb-brand-700) !important;
  transform: translateY(1px);
}

.stb-spec-item {
  display: grid;
  grid-template-columns: 1.25rem minmax(0, 1fr);
  column-gap: 0.75rem;
  align-items: start;
}

.stb-spec-arrow {
  color: var(--stb-brand-600);
  font-size: 1.18rem;
  line-height: 1;
  transform: translateY(1px);
}

.stb-spec-text {
  font-size: 0.875rem;
  line-height: 1.55;
  color: #475569;
  font-weight: 500;
}

.stb-convallaria-link:hover,
.stb-convallaria-link:focus-visible {
  color: #1db711 !important;
}

.stb-company-continuity {
  padding: 6rem 0;
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
  border-top: 1px solid #e2e8f0;
}

.stb-company-continuity__inner {
  width: min(100%, 1400px);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.35fr);
  gap: 4rem;
  align-items: start;
}

.stb-company-continuity__heading {
  position: sticky;
  top: 7rem;
  padding-left: 1.5rem;
  border-left: 4px solid var(--stb-brand-600);
}

.stb-company-continuity__heading span {
  display: block;
  margin-bottom: 1rem;
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.75rem;
  line-height: 1;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--stb-brand-600);
}

.stb-company-continuity__heading h2 {
  margin: 0 0 1.25rem;
  color: #0f172a;
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 0.95;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.stb-company-continuity__heading p {
  max-width: 28rem;
  margin: 0;
  color: #64748b;
  font-size: 1rem;
  line-height: 1.7;
}

.stb-company-continuity__copy {
  counter-reset: stb-continuity;
  display: grid;
  gap: 1rem;
}

.stb-company-continuity__copy p {
  counter-increment: stb-continuity;
  position: relative;
  margin: 0;
  padding: 2rem 2rem 2rem 5.5rem;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  color: #475569;
  font-size: 1.05rem;
  line-height: 1.8;
  box-shadow: 0 18px 45px -32px rgba(15, 23, 42, 0.35);
}

.stb-company-continuity__copy p::before {
  content: counter(stb-continuity, decimal-leading-zero);
  position: absolute;
  left: 2rem;
  top: 2.1rem;
  color: var(--stb-brand-600);
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.78rem;
  line-height: 1;
  letter-spacing: 0.12em;
  font-weight: 700;
}

@media (max-width: 900px) {
  .stb-company-continuity {
    padding: 4.5rem 0;
  }

  .stb-company-continuity__inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .stb-company-continuity__heading {
    position: static;
  }
}

@media (max-width: 640px) {
  .stb-company-continuity__copy p {
    padding: 1.5rem 1.5rem 1.5rem 4.25rem;
    font-size: 1rem;
  }

  .stb-company-continuity__copy p::before {
    left: 1.5rem;
    top: 1.65rem;
  }
}

.stb-policy-content {
  color: #475569;
  line-height: 1.75;
}

.stb-policy-content h2,
.stb-policy-content h3,
.stb-policy-content h4 {
  color: #0f172a;
  font-weight: 700;
  margin-top: 1.9rem;
  margin-bottom: 0.7rem;
  letter-spacing: 0.01em;
}

.stb-policy-content h2 {
  font-size: 1.45rem;
}

.stb-policy-content h3 {
  font-size: 1.12rem;
}

.stb-policy-content p {
  margin-bottom: 1rem;
}

.stb-policy-content a {
  color: var(--stb-brand-600);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.stb-policy-content ul,
.stb-policy-content ol {
  margin-bottom: 1.2rem;
  padding-left: 1.2rem;
}

.stb-policy-content table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.4rem;
  font-size: 0.92rem;
}

.stb-policy-content th,
.stb-policy-content td {
  border: 1px solid #cbd5e1;
  padding: 0.6rem 0.65rem;
  text-align: left;
  vertical-align: top;
}

.stb-policy-content th {
  background-color: #f8fafc;
  color: #0f172a;
  font-weight: 700;
}

#stb-cookie-banner .stb-cookie-banner-panel {
  position: relative;
}

#stb-cookie-banner .stb-cookie-close-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 15;
  width: 2.25rem;
  height: 2.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #64748b;
  line-height: 1;
  padding: 0;
  transition: color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

#stb-cookie-banner .stb-cookie-close-btn:hover,
#stb-cookie-banner .stb-cookie-close-btn:focus-visible {
  color: #0f172a;
  border-color: #94a3b8;
  box-shadow: 0 0 0 2px rgba(148, 163, 184, 0.2);
}

#stb-cookie-banner .stb-cookie-close-icon {
  font-size: 1.4rem;
  line-height: 1;
  transform: translateY(-1px);
}

/* Keep the visual style from the original version */
.text-stroke {
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.2);
  color: transparent;
}

/* Basic reset for WordPress-generated content */
.entry-content p {
  margin-bottom: 1.5rem;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
  margin-bottom: 1rem;
  margin-top: 2rem;
}

.entry-content ul,
.entry-content ol {
  margin-bottom: 1.5rem;
  padding-left: 1.25rem;
}

/* Custom scrollbar to keep previous visual identity */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: #0076a7;
}

::-webkit-scrollbar-thumb:hover {
  background: #005a80;
}
