*,
*::before,
*::after {
  box-sizing: border-box;
}

/* +5% base size: all rem-based text scales for readability */
html {
  font-size: 105%;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  color: #0b1b27;
  background-color: #f5f7fa;
  line-height: 1.6;
  scroll-behavior: smooth;
}

body.sa-nav-opened {
  overflow: visible;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.sa-container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.sa-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(9, 28, 40, 0.9);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: background 0.28s ease, box-shadow 0.28s ease,
    border-color 0.28s ease;
}

.sa-header.sa-header-scrolled {
  background: rgba(5, 18, 28, 0.96);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.38);
  border-bottom-color: rgba(255, 255, 255, 0.1);
}

.sa-header-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 0;
}

.sa-header-inner > nav {
  flex: 1;
  display: flex;
  justify-content: flex-end;
}

.sa-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: #e9f3f7;
  font-weight: 600;
}

.sa-logo img,
.sa-logo .sa-logo-img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.sa-logo-text {
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.95rem;
}

.sa-nav {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 1.8rem;
  font-size: 0.95rem;
  color: #d2e3ec;
}

.sa-nav > li {
  margin: 0;
  position: relative;
}

.sa-nav a {
  position: relative;
  /* padding-bottom: 0.1rem; */
  display: inline-flex;
  align-items: center;
  line-height: 1;
}

.sa-nav a::after {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #67a8c1, #2f6d86);
  transition: width 0.2s ease;
}

.sa-nav a:hover::after {
  width: 100%;
}

.sa-nav-cta {
  padding: 0.5rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #67a8c1, #2f6d86);
  color: #f7fbfd;
  font-weight: 500;
  box-shadow: 0 6px 14px rgba(2, 19, 30, 0.4);
}

/* Primary dropdown (Appearance → Menus: drag items under a parent) */
.sa-nav .sub-menu {
  list-style: none;
  margin: 0;
  padding: 0.5rem 0;
  position: absolute;
  top: 100%;
  inset-inline-start: 0;
  min-width: 13.5rem;
  background: rgba(8, 26, 38, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.22s ease, visibility 0.22s ease, transform 0.22s ease;
  z-index: 100;
}

.sa-nav li:hover > .sub-menu,
.sa-nav li:focus-within > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.sa-nav .sub-menu li {
  margin: 0;
  position: relative;
}

.sa-nav .sub-menu a {
  display: block;
  padding: 0.45rem 1rem;
  white-space: nowrap;
  font-size: 0.92rem;
}

.sa-nav .sub-menu a::after {
  display: none;
}

/* Nested flyout (third level) */
.sa-nav .sub-menu .sub-menu {
  top: 0;
  inset-inline-start: 100%;
  margin-inline-start: 4px;
}

.sa-nav .sub-menu li:hover > .sub-menu,
.sa-nav .sub-menu li:focus-within > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.sa-nav > li.menu-item-has-children > a {
  padding-inline-end: 0.15rem;
}

.sa-nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: transparent;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
  padding: 0;
}

.sa-nav-toggle span {
  width: 18px;
  height: 2px;
  background: #e8f3f8;
  transition: transform 0.18s ease, opacity 0.18s ease;
}

.sa-nav-toggle-open span:first-child {
  transform: translateY(4px) rotate(45deg);
}

.sa-nav-toggle-open span:last-child {
  transform: translateY(-4px) rotate(-45deg);
}

.sa-hero {
  position: relative;
  background: radial-gradient(circle at top left, #27465a 0, #07121b 55%, #02070b 100%);
  color: #e9f3f7;
  padding: 5.5rem 0 4.5rem;
  overflow: hidden;
}

/* Fade-in hero only when scroll-reveal runs (see body class in functions.php). */
body:not(.sa-skip-reveal-animations) .sa-hero {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.sa-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(
      circle at 10% 20%,
      rgba(112, 190, 210, 0.24),
      transparent 55%
    ),
    radial-gradient(
      circle at 90% 10%,
      rgba(97, 142, 186, 0.16),
      transparent 55%
    ),
    radial-gradient(
      circle at 80% 90%,
      rgba(9, 89, 119, 0.38),
      transparent 60%
    );
  opacity: 0.6;
  pointer-events: none;
}

.sa-hero-overlay {
  position: absolute;
  inset: 0;
  background-image: none;
  opacity: 0.03;
  mix-blend-mode: screen;
  background-size: cover;
  background-position: center;
  pointer-events: none;
}

.sa-hero-content {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 3rem;
  align-items: center;
  z-index: 1;
}

.sa-hero-text h1 {
  font-size: clamp(2.4rem, 3vw + 1.4rem, 3.4rem);
  line-height: 1.05;
  margin: 0.75rem 0 1.25rem;
  letter-spacing: -0.03em;
}

.sa-hero-subtitle {
  max-width: 34rem;
  margin: 0 0 1.75rem;
  color: #eaf3f8;
  font-size: 1rem;
}

.sa-kicker {
  font-size: 0.82rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #4a8ca2;
  font-weight: 600;
}

.sa-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-bottom: 1.6rem;
}

.sa-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.45rem;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 500;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, transform 0.12s ease,
    box-shadow 0.18s ease, border-color 0.18s ease;
}

.sa-btn-primary {
  background: linear-gradient(135deg, #6ebad1, #2d6f88);
  color: #f8fdff;
  box-shadow: 0 16px 32px rgba(1, 24, 36, 0.45);
}

.sa-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 38px rgba(1, 24, 36, 0.55);
}

.sa-btn-ghost {
  border-color: rgba(191, 222, 236, 0.55);
  color: #d9ecf6;
  background: rgba(6, 23, 35, 0.4);
}

.sa-btn-ghost:hover {
  background: rgba(13, 40, 55, 0.8);
}

.sa-btn-full {
  width: 100%;
}

.sa-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  color: #cfe0ea;
  font-size: 0.88rem;
}

.sa-hero-meta span {
  padding-left: 1.2rem;
  position: relative;
}

.sa-hero-meta span::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(135deg, #89d5e7, #3a7f94);
}

.sa-hero-card {
  background: radial-gradient(circle at top left, #244355, #0a1823 55%);
  border-radius: 20px;
  padding: 1.75rem 1.6rem;
  box-shadow: 0 26px 68px rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(157, 214, 230, 0.26);
  color: #ddeaf1;
  font-size: 0.95rem;
}

.sa-hero-card h2 {
  margin-top: 0;
  margin-bottom: 0.8rem;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
}

.sa-hero-card p {
  margin: 0 0 0.6rem;
}

.sa-hero-card-note {
  margin-top: 0.9rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(196, 224, 236, 0.2);
  color: #e2f0f6;
}

body.sa-page-loaded .sa-hero {
  opacity: 1;
  transform: translateY(0);
}

.sa-section {
  padding: 4.5rem 0;
}

/* Anchor targets sit below sticky header (pairs with JS smooth scroll) */
.sa-section[id],
main[id] {
  scroll-margin-top: 5rem;
}

.sa-section-light {
  background: #f5f7fa;
}

.sa-section-muted {
  background: #edf1f6;
}

.sa-section-dark {
  background: radial-gradient(circle at top, #183445 0, #040a10 60%, #020509 100%);
  color: #e4f0f7;
}

.sa-section-header {
  text-align: center;
  max-width: 40rem;
  margin: 0 auto 2.4rem;
}

/* Scroll-reveal: hidden until .sa-reveal-visible (JS). Skip when body.sa-skip-reveal-animations. */
body:not(.sa-skip-reveal-animations) .sa-section,
body:not(.sa-skip-reveal-animations) .sa-card,
body:not(.sa-skip-reveal-animations) .sa-about-panel,
body:not(.sa-skip-reveal-animations) .sa-product-highlight,
body:not(.sa-skip-reveal-animations) .sa-form,
body:not(.sa-skip-reveal-animations) .sa-metric,
body:not(.sa-skip-reveal-animations) .sa-product-logo-wrap {
  /* opacity: 0; */
  transform: translateY(30px);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.sa-reveal-visible {
  opacity: 1;
  transform: translateY(0);
}

.sa-section-header h2 {
  margin: 0.4rem 0 0.5rem;
  font-size: 1.9rem;
  letter-spacing: -0.03em;
}

.sa-section-header p {
  margin: 0;
  color: #334556;
  font-size: 0.98rem;
}

.sa-section-header-invert p {
  color: #d9ebf4;
}

.sa-grid {
  display: grid;
  gap: 1.75rem;
}

.sa-grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.sa-grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.sa-card {
  background: #ffffff;
  border-radius: 18px;
  padding: 1.6rem 1.5rem;
  border: 1px solid #dde5ee;
  box-shadow: 0 14px 36px rgba(12, 37, 54, 0.06);
  font-size: 0.95rem;
}

.sa-card h3 {
  margin-top: 0;
  margin-bottom: 0.7rem;
  font-size: 1.1rem;
}

.sa-card p {
  margin-top: 0;
  margin-bottom: 0.7rem;
  color: #354555;
}

.sa-card ul {
  margin: 0;
  padding-left: 1.1rem;
  color: #334153;
  font-size: 0.9rem;
}

.sa-card li + li {
  margin-top: 0.25rem;
}

.sa-products-grid {
  align-items: center;
}

.sa-product-highlight {
  background: radial-gradient(circle at top left, #234153, #07131f 65%);
  border-radius: 20px;
  padding: 1.9rem 1.8rem;
  border: 1px solid rgba(157, 214, 230, 0.35);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
  font-size: 0.95rem;
}

.sa-product-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: rgba(115, 197, 214, 0.15);
  border: 1px solid rgba(196, 240, 249, 0.2);
  color: #d2f1f8;
  margin-bottom: 0.9rem;
}

.sa-product-highlight h3 {
  margin: 0 0 0.6rem;
  font-size: 1.2rem;
}

.sa-product-highlight p {
  margin-top: 0;
  margin-bottom: 0.6rem;
  color: #eaf3f8;
}

.sa-product-highlight ul {
  margin: 0 0 0.9rem;
  padding-left: 1.1rem;
  color: #d0e4ee;
  font-size: 0.9rem;
}

.sa-product-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.1rem;
}

.sa-product-logo-wrap {
  width: 190px;
  height: 190px;
  border-radius: 40px;
  /* background: radial-gradient(circle at top, #ffffff 0, #fbefff 45%, #f7d7ff 100%); */
  display: flex;
  align-items: center;
  justify-content: center;
  /* box-shadow: 0 24px 55px rgba(0, 0, 0, 0.6); */
  /* padding: 1.4rem; */
}

.sa-product-caption {
  font-size: 0.88rem;
  color: #dceef5;
  padding: 1rem;
}

.sa-link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.9rem;
  color: #bfe9f4;
}

.sa-link-arrow::after {
  content: "→";
  font-size: 0.95rem;
}

.sa-split {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 2.5rem;
  align-items: start;
}

.sa-metrics {
  align-items: stretch;
}

.sa-metric {
  background: #ffffff;
  border-radius: 18px;
  padding: 1.1rem 1.1rem;
  border: 1px solid #dde5ee;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.sa-metric-value {
  font-weight: 600;
  color: #234153;
}

.sa-metric-label {
  font-size: 0.86rem;
  color: #3f5263;
}

.sa-about-panel {
  background: #ffffff;
  border-radius: 18px;
  padding: 1.6rem 1.5rem;
  border: 1px solid #dde5ee;
  box-shadow: 0 16px 40px rgba(31, 60, 84, 0.09);
  font-size: 0.95rem;
}

.sa-about-panel h3 {
  margin-top: 0;
  margin-bottom: 0.7rem;
}

.sa-about-panel ul {
  margin: 0;
  padding-left: 1.1rem;
  color: #3c4a5c;
  font-size: 0.9rem;
}

.sa-contact {
  max-width: 980px;
}

.sa-contact-grid {
  align-items: baseline;
}

.sa-form {
  background: rgba(9, 23, 36, 0.9);
  border-radius: 20px;
  padding: 1.8rem 1.6rem;
  border: 1px solid rgba(170, 219, 238, 0.35);
  box-shadow: 0 26px 68px rgba(0, 0, 0, 0.7);
}

.sa-form-row {
  margin-bottom: 0.9rem;
}

.sa-form-row label {
  display: block;
  font-size: 0.83rem;
  margin-bottom: 0.35rem;
  color: #c3ddee;
}

.sa-form-row input,
.sa-form-row select,
.sa-form-row textarea {
  width: 100%;
  padding: 0.55rem 0.7rem;
  border-radius: 10px;
  border: 1px solid rgba(169, 208, 227, 0.55);
  background: rgba(2, 11, 18, 0.95);
  color: #e3f2fb;
  font-size: 0.9rem;
  outline: none;
}

.sa-form-row input::placeholder,
.sa-form-row textarea::placeholder {
  color: #6f8594;
}

.sa-form-row input:focus,
.sa-form-row select:focus,
.sa-form-row textarea:focus {
  border-color: #8ed7eb;
  box-shadow: 0 0 0 1px rgba(142, 215, 235, 0.6);
}

.sa-form-footnote {
  margin-top: 0.75rem;
  font-size: 0.8rem;
  color: #bdd4e3;
}

/* Contact Form 7 — same look as native .sa-form (CF7 wraps fields in .wpcf7-form-control-wrap) */
.sa-form .wpcf7-form-control-wrap,
.sa-form-shortcode .wpcf7-form-control-wrap {
  display: block;
}

.sa-form input[type="submit"],
.sa-form-shortcode input[type="submit"],
.sa-form .wpcf7-submit,
.sa-form-shortcode .wpcf7-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: 0.35rem;
  padding: 0.75rem 1.45rem;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 500;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, transform 0.12s ease,
    box-shadow 0.18s ease, border-color 0.18s ease;
  background: linear-gradient(135deg, #6ebad1, #2d6f88);
  color: #f8fdff;
  box-shadow: 0 16px 32px rgba(1, 24, 36, 0.45);
}

.sa-form input[type="submit"]:hover,
.sa-form-shortcode input[type="submit"]:hover,
.sa-form .wpcf7-submit:hover,
.sa-form-shortcode .wpcf7-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 38px rgba(1, 24, 36, 0.55);
}

.sa-form .wpcf7-spinner,
.sa-form-shortcode .wpcf7-spinner {
  margin-inline-start: 0.5rem;
}

.sa-form .wpcf7-response-output,
.sa-form-shortcode .wpcf7-response-output {
  margin: 1rem 0 0;
  padding: 0.65rem 0.85rem;
  border-radius: 10px;
  font-size: 0.85rem;
}

.sa-form .wpcf7-not-valid-tip,
.sa-form-shortcode .wpcf7-not-valid-tip {
  display: block;
  font-size: 0.78rem;
  margin-top: 0.35rem;
  color: #ffb8b8;
}

.sa-contact-info {
  font-size: 0.94rem;
  color: #ddeef7;
}

.sa-contact-block + .sa-contact-block {
  margin-top: 1.2rem;
}

.sa-contact-block h3,
.sa-contact-block h4 {
  margin: 0 0 0.45rem;
}

.sa-contact-block p {
  margin: 0 0 0.4rem;
}

/* Fixed “back to top” — bottom end (mirrors in RTL) */
.sa-back-to-top {
  position: fixed;
  inset-inline-end: max(1rem, env(safe-area-inset-inline-end, env(safe-area-inset-right, 0px)));
  bottom: max(1rem, env(safe-area-inset-bottom, 0px));
  z-index: 85;
  width: 46px;
  height: 46px;
  padding: 0;
  margin: 0;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: linear-gradient(135deg, #6ebad1, #2d6f88);
  color: #f8fdff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 0.28s ease, visibility 0.28s ease, transform 0.28s ease,
    box-shadow 0.2s ease;
}

.sa-back-to-top.sa-back-to-top--visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.sa-back-to-top:hover {
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.48);
}

.sa-back-to-top:focus-visible {
  outline: 2px solid #9fd0df;
  outline-offset: 3px;
}

.sa-back-to-top-icon {
  font-size: 1.15rem;
  line-height: 1;
  font-weight: 600;
}

@media (prefers-reduced-motion: reduce) {
  .sa-back-to-top {
    transition: opacity 0.15s ease, visibility 0.15s ease;
  }
}

.sa-footer {
  background: #02070c;
  color: #8ea3b5;
  padding: 1.4rem 0 1.6rem;
  border-top: 1px solid #141c26;
}

.sa-footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  font-size: 0.86rem;
}

.sa-footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: #d4e3ee;
  text-decoration: none;
}

.sa-footer-brand:hover {
  color: #e8f2f8;
}

.sa-footer-brand:focus-visible {
  outline: 2px solid #9fd0df;
  outline-offset: 3px;
  border-radius: 4px;
}

.sa-footer-brand img,
.sa-footer-brand .sa-footer-brand-logo {
  width: 22px;
  height: 22px;
  object-fit: contain;
  flex-shrink: 0;
}

.sa-footer-copy {
  margin: 0;
}

.sa-footer-links .sa-footer-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

.sa-footer-links .sa-footer-menu > li {
  margin: 0;
}

.sa-footer-links .sa-footer-menu a {
  color: #a5bacd;
  font-size: 0.84rem;
}

.sa-footer-links .sa-footer-menu .sub-menu {
  list-style: none;
  margin: 0.35rem 0 0;
  padding: 0;
  padding-inline-start: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.8rem;
}

.sa-footer-links .sa-footer-menu .sub-menu a {
  color: #8ea3b5;
}

/* Registered widget area: Footer (Appearance → Widgets) */
.sa-footer-widgets {
  margin-top: 1.1rem;
  padding-top: 1.1rem;
  border-top: 1px solid #141c26;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
  gap: 1.25rem 1.5rem;
}

.sa-footer-widgets .widget {
  margin: 0;
  color: #8ea3b5;
  font-size: 0.86rem;
}

.sa-footer-widgets .widget-title {
  margin: 0 0 0.45rem;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #6b8a9e;
}

.sa-footer-widgets a {
  color: #a5bacd;
}

/*
 * RTL: WordPress / Polylang set <html dir="rtl"> via language_attributes().
 * Flex/grid follow the inline axis; inset-inline-end keeps the back-to-top control on the end edge.
 * Arabic (and similar scripts): avoid forced all-caps on widget headings.
 */
html[dir="rtl"] .sa-footer-widgets .widget-title,
body.rtl .sa-footer-widgets .widget-title {
  text-transform: none;
  letter-spacing: normal;
}

html[dir="rtl"] .sa-footer-brand-text,
body.rtl .sa-footer-brand-text,
html[dir="rtl"] .sa-footer-copy,
body.rtl .sa-footer-copy {
  unicode-bidi: isolate;
}

html[dir="rtl"] .sa-footer-links .sa-footer-menu,
body.rtl .sa-footer-links .sa-footer-menu {
  flex-wrap: wrap;
}

/* Header + site name: RTL typography and logical positioning */
html[dir="rtl"] .sa-logo-text,
body.rtl .sa-logo-text {
  text-transform: none;
  letter-spacing: normal;
  unicode-bidi: isolate;
}

/* Blog sidebar (index.php when Blog sidebar has widgets) */
.sa-layout-with-sidebar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 17.5rem;
  gap: 2rem;
  align-items: start;
}

.sa-layout-main {
  min-width: 0;
}

.sa-sidebar {
  font-size: 0.92rem;
  color: #3a4a58;
}

.sa-sidebar .widget {
  margin: 0 0 1.35rem;
  padding: 1rem 1.1rem;
  border-radius: 12px;
  border: 1px solid rgba(15, 40, 55, 0.12);
  background: rgba(255, 255, 255, 0.72);
}

.sa-sidebar .widget:last-child {
  margin-bottom: 0;
}

.sa-sidebar .widget-title {
  margin: 0 0 0.6rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: #0f2838;
}

@media (max-width: 960px) {
  .sa-layout-with-sidebar {
    grid-template-columns: minmax(0, 1fr);
  }

  .sa-hero-content {
    grid-template-columns: minmax(0, 1fr);
  }

  .sa-hero-card {
    order: -1;
  }

  .sa-grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sa-grid-2,
  .sa-split {
    grid-template-columns: minmax(0, 1fr);
  }

  .sa-section {
    padding: 3.8rem 0;
  }
}

@media (max-width: 720px) {
  .sa-header-inner {
    padding-inline: 0;
  }

  .sa-header {
    position: sticky;
  }

  .sa-nav-toggle {
    display: inline-flex;
  }

  .sa-nav {
    position: absolute;
    top: 100%;
    inset-inline: 0;
    background: radial-gradient(circle at top, #051521 0, #02070c 85%);
    flex-direction: column;
    align-items: start;
    padding: 0.9rem 1.5rem 1.25rem;
    gap: 0.75rem;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-6px);
    transition: opacity 0.18s ease, transform 0.18s ease;
    z-index: 70;
  }

  .sa-nav.sa-nav-open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .sa-nav > li {
    width: 100%;
  }

  .sa-nav .sub-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    border-radius: 0;
    background: rgba(0, 0, 0, 0.22);
    min-width: auto;
    margin-inline-start: 0.85rem;
    margin-top: 0.25rem;
    padding: 0.35rem 0;
  }

  .sa-nav .sub-menu .sub-menu {
    margin-inline-start: 0.65rem;
    margin-top: 0.2rem;
  }

  .sa-nav a {
    font-size: 1rem;
    padding: 0.55rem 0;
    display: block;
  }

  .sa-nav .sub-menu a {
    white-space: normal;
    padding: 0.35rem 0;
    font-size: 0.92rem;
  }

  .sa-nav-cta {
    margin-top: 0.5rem;
    padding-inline: 0;
    border-radius: 0;
    background: none;
    box-shadow: none;
    font-weight: 600;
  }

  .sa-hero {
    padding-top: 4.4rem;
  }

  .sa-hero-text h1 {
    font-size: 2.2rem;
  }

  .sa-hero-subtitle {
    max-width: none;
  }

  .sa-grid-3 {
    grid-template-columns: minmax(0, 1fr);
  }

  .sa-footer-inner {
    flex-direction: column;
    align-items: start;
  }
}

@media (max-width: 480px) {
  .sa-container {
    padding: 0 1rem;
  }

  .sa-header-inner {
    padding-block: 0.65rem;
  }

  .sa-logo-text {
    font-size: 0.8rem;
  }

  .sa-logo img {
    width: 26px;
    height: 26px;
  }

  .sa-hero {
    padding: 4rem 0 3rem;
  }

  .sa-hero-text h1 {
    font-size: 1.9rem;
  }

  .sa-hero-subtitle {
    font-size: 0.92rem;
  }

  .sa-section {
    padding: 3.2rem 0;
  }

  .sa-card,
  .sa-about-panel,
  .sa-product-highlight,
  .sa-form {
    padding: 1.25rem 1.15rem;
  }

  .sa-grid {
    gap: 1.3rem;
  }

  .sa-product-logo-wrap {
    width: 150px;
    height: 150px;
    padding: 1.1rem;
  }

  .sa-contact {
    max-width: 100%;
  }

  .sa-footer-inner {
    gap: 0.6rem;
  }
}

.sa-nav .sub-menu .lang-item a {
  display: flex;
}
