/* Sizanani brand styles. Tokens first, then components used by the shortcodes and Elementor pages. */
:root {
  --sz-navy: #00376f;
  --sz-blue: #0142a8;
  --sz-ink: #0b1f3a;
  --sz-muted: #3d4c63;
  --sz-rule: #d5dce6;
  --sz-bg-soft: #f4f7fb;
  --sz-radius: 14px;
  --sz-font: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

/* [hidden] must win over component display rules (fallback links, waitlist). */
.sz-calc [hidden],
.sz-area [hidden],
.sz-area__waitlist[hidden] {
  display: none !important;
}

.sz-button,
.sz-calc .sz-button,
.sz-area .sz-button {
  display: inline-block;
  padding: 12px 20px;
  border: 0;
  border-radius: 999px;
  background: var(--sz-navy);
  color: #fff;
  font: 600 15px/1.2 var(--sz-font);
  text-decoration: none;
  cursor: pointer;
}
.sz-button:hover,
.sz-button:focus-visible {
  background: var(--sz-blue);
  color: #fff;
}

/* ---------- Calculator ---------- */
.sz-calc {
  font-family: var(--sz-font);
  color: var(--sz-ink);
  background: #fff;
  border: 1px solid var(--sz-rule);
  border-radius: var(--sz-radius);
  padding: clamp(18px, 3vw, 28px);
  box-shadow: 0 10px 30px rgba(0, 55, 111, 0.08);
}
.sz-calc__modes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  border: 0;
  margin: 0 0 18px;
  padding: 0;
}
.sz-calc__modes label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border: 1px solid var(--sz-rule);
  border-radius: 999px;
  font-size: 14px;
  cursor: pointer;
}
.sz-calc__modes label:has(input:checked) {
  border-color: var(--sz-navy);
  background: var(--sz-navy);
  color: #fff;
}
.sz-calc__modes input {
  accent-color: #fff;
  margin: 0;
}
.sz-calc__label {
  display: block;
  font-weight: 600;
  font-size: 16px;
  margin-bottom: 4px;
}
.sz-calc__help {
  margin: 0 0 10px;
  font-size: 14px;
  color: var(--sz-muted);
}
.sz-calc__inputs {
  display: flex;
  align-items: center;
  border: 1px solid var(--sz-rule);
  border-radius: 10px;
  padding: 0 12px;
  max-width: 260px;
}
.sz-calc__prefix {
  font-weight: 600;
  color: var(--sz-muted);
}
.sz-calc__inputs input {
  border: 0 !important;
  box-shadow: none !important;
  font: 600 22px/1 var(--sz-font);
  padding: 12px 8px !important;
  width: 100%;
  color: var(--sz-ink);
  background: transparent;
}
.sz-calc input[type='range'] {
  width: 100%;
  margin: 14px 0 6px;
  accent-color: var(--sz-navy);
}
.sz-calc__result {
  border-top: 1px solid var(--sz-rule);
  margin-top: 14px;
  padding-top: 16px;
}
.sz-calc__result p {
  margin: 0 0 8px;
}
.sz-calc__eyebrow {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sz-blue);
  font-weight: 600;
}
.sz-calc__product {
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.03em;
  color: var(--sz-navy);
}
.sz-calc__bestfor,
.sz-calc__disclaimer {
  font-size: 13px;
  color: var(--sz-muted);
}
.sz-calc__price strong {
  font-size: 20px;
  color: var(--sz-navy);
}
.sz-calc__compare {
  font-weight: 600;
}
.sz-calc__totals {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  margin: 14px 0 18px;
}
.sz-calc__totals div {
  background: var(--sz-bg-soft);
  border-radius: 10px;
  padding: 12px;
}
.sz-calc__totals dt {
  font-size: 12px;
  color: var(--sz-muted);
}
.sz-calc__totals dd {
  margin: 4px 0 0;
  font-size: 20px;
  font-weight: 300;
  color: var(--sz-navy);
}
.sz-calc__disclaimer {
  margin-top: 12px !important;
}

/* ---------- Area check ---------- */
.sz-area {
  font-family: var(--sz-font);
  color: var(--sz-ink);
}
.sz-area__form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 12px;
  background: #fff;
  border-radius: 16px;
  padding: 12px 12px 12px 18px;
  box-shadow: 0 10px 30px rgba(0, 20, 50, 0.18);
}
.sz-area__label {
  font-weight: 600;
  white-space: nowrap;
}
.sz-area__form input {
  flex: 1 1 200px;
  min-width: 0;
  border: 1px solid var(--sz-rule) !important;
  border-radius: 10px !important;
  padding: 12px !important;
  font: 400 15px var(--sz-font);
}
.sz-area__result p {
  margin: 10px 4px 0;
  font-weight: 500;
}
.sz-area__result a {
  color: var(--sz-blue);
}
.sz-area__waitlist {
  margin-top: 12px;
  background: #fff;
  border-radius: var(--sz-radius);
  padding: 16px;
}
@media (max-width: 600px) {
  .sz-area__label {
    width: 100%;
    white-space: normal;
  }
  .sz-area__form .sz-button {
    width: 100%;
  }
}

/* ---------- Base typography (overrides Astra defaults) ---------- */
body,
button,
input,
select,
textarea,
.ast-button,
h1, h2, h3, h4, h5, h6,
.entry-title,
.elementor-widget-heading .elementor-heading-title,
.elementor-widget-text-editor,
.elementor-button {
  font-family: var(--sz-font) !important;
}
body {
  color: var(--sz-ink);
  background: #fff;
}
a {
  color: var(--sz-blue);
}
h1, h2, h3, h4 {
  color: var(--sz-ink);
  letter-spacing: -0.02em;
}

/* ---------- Header ---------- */
.sz-site-header {
  position: relative;
  z-index: 50;
}
.sz-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px clamp(16px, 3vw, 32px);
  background: var(--sz-navy);
  font-family: var(--sz-font);
}
.sz-header--overlay {
  position: absolute;
  inset: 0 0 auto 0;
  background: transparent;
}
.sz-header--overlay .sz-header__menu a {
  text-shadow: 0 1px 10px rgba(0, 20, 50, 0.7);
}
.sz-header__logo img {
  display: block;
  height: 58px;
  width: auto;
}
.sz-header__nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.sz-header__menu {
  display: flex;
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.sz-header__menu a {
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}
.sz-header__menu a:hover,
.sz-header__menu .current-menu-item > a {
  text-decoration: underline;
  text-underline-offset: 6px;
}
.sz-header__cta {
  display: inline-block;
  padding: 11px 18px;
  border-radius: 999px;
  background: #fff;
  color: var(--sz-navy) !important;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.sz-header__toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 999px;
  background: transparent !important;
  padding: 0;
  cursor: pointer;
}
.sz-header__toggle-bars,
.sz-header__toggle-bars::before,
.sz-header__toggle-bars::after {
  display: block;
  width: 18px;
  height: 2px;
  margin: 0 auto;
  background: #fff;
  position: relative;
  content: '';
}
.sz-header__toggle-bars::before { position: absolute; top: -6px; }
.sz-header__toggle-bars::after { position: absolute; top: 6px; }
@media (max-width: 921px) {
  .sz-header { flex-wrap: wrap; }
  .sz-header__toggle { display: block; }
  .sz-header__nav {
    display: none;
    flex-basis: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    padding: 12px 0 8px;
  }
  .sz-header.is-open { background: var(--sz-navy); }
  .sz-header.is-open .sz-header__nav { display: flex; }
  .sz-header__menu { flex-direction: column; gap: 4px; }
  .sz-header__menu a { display: block; padding: 10px 0; font-size: 17px; }
  .sz-header__cta { text-align: center; }
}

/* ---------- Footer ---------- */
.sz-footer {
  background: var(--sz-navy);
  color: rgba(255, 255, 255, 0.85);
  font-family: var(--sz-font);
  font-size: 14px;
}
.sz-footer__inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 56px clamp(16px, 3vw, 32px) 32px;
}
.sz-footer__brand img { height: 74px; width: auto; margin-bottom: 14px; }
.sz-footer__brand p { max-width: 340px; margin: 0; line-height: 1.6; }
.sz-footer__title {
  color: #fff !important;
  font-size: 12px !important;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0 0 14px;
}
.sz-footer__menu { list-style: none; margin: 0; padding: 0; }
.sz-footer__menu li { margin: 0 0 8px; }
.sz-footer a { color: #fff; text-decoration: none; }
.sz-footer a:hover { text-decoration: underline; }
.sz-footer__base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 18px clamp(16px, 3vw, 32px) 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 13px;
}
@media (max-width: 767px) {
  .sz-footer__inner { grid-template-columns: 1fr; }
}

/* ---------- WhatsApp ---------- */
/* Astra's scroll-to-top button sits in the same corner; the WhatsApp button takes that spot. */
#ast-scroll-top {
  display: none !important;
}
.sz-whatsapp {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 60;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #128c4b;
  color: #fff !important;
  box-shadow: 0 8px 24px rgba(0, 20, 50, 0.3);
}
.sz-whatsapp:hover { background: #0e7340; }
