/* Sizanani brand styles. Tokens first, then components used by the shortcodes and Elementor pages.
   Layout and feel follow the Soleil reference; colours are sampled from the Sizanani logo. */
:root {
  --sz-lime: #91b400;
  --sz-lime-bright: #aaca1d;
  --sz-blue: #003a9b;
  --sz-navy: #01336e;
  --sz-ink: #111111;
  --sz-head: #0b0a08;
  --sz-muted: #5f6266;
  --sz-rule: #e2dfd6;
  --sz-cream: #f5f3ed;
  --sz-white: #fafcfa;
  --sz-radius: 14px;
  --sz-font: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --sz-font-head: 'Outfit', 'DM Sans', system-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;
}

/* Primary action: lime pill with dark text. */
.sz-button,
.sz-calc .sz-button,
.sz-area .sz-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 28px;
  border: 0;
  border-radius: 30px;
  background: var(--sz-lime);
  color: var(--sz-ink) !important;
  font: 500 14px/1.2 var(--sz-font-head);
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s, background-color 0.2s;
}
.sz-button:hover,
.sz-button:focus-visible {
  background: var(--sz-lime-bright);
  color: var(--sz-ink);
  transform: translateY(-2px);
}

/* ---------- Calculator ---------- */
.sz-calc {
  font-family: var(--sz-font);
  color: var(--sz-muted);
  background: var(--sz-cream);
  border-radius: var(--sz-radius);
  padding: clamp(24px, 4vw, 44px);
}
.sz-calc__modes {
  display: flex;
  gap: 0;
  border: 0;
  margin: 0 0 24px;
  padding: 5px;
  background: var(--sz-white);
  border-radius: 30px;
}
.sz-calc__modes label {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 10px 12px;
  border-radius: 30px;
  font: 500 13px/1.25 var(--sz-font-head);
  color: var(--sz-ink);
  cursor: pointer;
}
.sz-calc__modes label:has(input:checked) {
  background: var(--sz-ink);
  color: var(--sz-white);
}
.sz-calc__modes input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}
.sz-calc__modes label:has(input:focus-visible) {
  outline: 2px solid var(--sz-blue);
  outline-offset: 2px;
}
.sz-calc__label {
  display: block;
  font: 500 19px/1.3 var(--sz-font-head);
  color: var(--sz-head);
  margin-bottom: 6px;
}
.sz-calc__help {
  margin: 0 0 12px;
  font-size: 14px;
}
.sz-calc__inputs {
  display: flex;
  align-items: center;
  background: var(--sz-white);
  border-radius: 30px;
  padding: 0 24px;
  height: 56px;
}
.sz-calc__prefix {
  font: 500 20px var(--sz-font-head);
  color: var(--sz-head);
}
.sz-calc__inputs input {
  border: 0 !important;
  box-shadow: none !important;
  font: 500 20px/1 var(--sz-font-head) !important;
  padding: 12px 8px !important;
  width: 100%;
  color: var(--sz-head);
  background: transparent !important;
}
.sz-calc input[type='range'] {
  width: 100%;
  margin: 18px 0 8px;
  accent-color: var(--sz-blue);
}
.sz-calc__result {
  border-top: 1px solid var(--sz-rule);
  margin-top: 16px;
  padding-top: 22px;
}
.sz-calc__result p {
  margin: 0 0 8px;
}
.sz-calc__eyebrow {
  font: 500 12px/1 var(--sz-font-head);
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--sz-head);
}
.sz-calc__product {
  font: 500 30px/1.1 var(--sz-font-head);
  letter-spacing: -0.02em;
  color: var(--sz-head);
}
.sz-calc__bestfor,
.sz-calc__disclaimer {
  font-size: 13px;
}
.sz-calc__price strong {
  font: 500 24px var(--sz-font-head);
  color: var(--sz-blue);
}
.sz-calc__compare {
  font-weight: 500;
  color: var(--sz-head);
}
.sz-calc__totals {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  margin: 16px 0 22px;
}
.sz-calc__totals div {
  background: var(--sz-white);
  border-radius: 12px;
  padding: 14px 16px;
}
.sz-calc__totals dt {
  font-size: 12px;
}
.sz-calc__totals dd {
  margin: 4px 0 0;
  font: 500 21px var(--sz-font-head);
  color: var(--sz-head);
}
.sz-calc__result .sz-button {
  margin-top: 10px;
}
.sz-calc__disclaimer {
  margin-top: 14px !important;
}

/* ---------- Area check: white pill bar ---------- */
.sz-area {
  font-family: var(--sz-font);
  color: var(--sz-head);
}
.sz-area__form {
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: 580px;
  background: var(--sz-white);
  border-radius: 50px;
  padding: 8px 8px 8px 28px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.18);
}
.sz-area__label {
  font: 500 13px var(--sz-font-head);
  white-space: nowrap;
}
.sz-area__form input {
  flex: 1 1 auto;
  min-width: 0;
  border: 0 !important;
  box-shadow: none !important;
  outline: 0;
  background: transparent !important;
  padding: 10px 0 !important;
  font: 400 16px 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: var(--sz-white);
  border-radius: var(--sz-radius);
  padding: 20px;
  max-width: 580px;
}
@media (max-width: 600px) {
  .sz-area__form {
    flex-wrap: wrap;
    border-radius: 18px;
    padding: 16px;
    gap: 6px;
  }
  .sz-area__label {
    width: 100%;
  }
  .sz-area__form input {
    flex-basis: 100%;
    height: 46px;
    border-bottom: 1px solid var(--sz-rule) !important;
    margin-bottom: 8px;
  }
  .sz-area__form .sz-button {
    width: 100%;
  }
}

/* ---------- Base typography (overrides Astra defaults) ---------- */
body,
button,
input,
select,
textarea,
.ast-button,
.elementor-widget-text-editor {
  font-family: var(--sz-font) !important;
}
h1, h2, h3, h4, h5, h6,
.entry-title,
.elementor-widget-heading .elementor-heading-title,
.elementor-button {
  font-family: var(--sz-font-head) !important;
}
body {
  color: var(--sz-muted);
  background: var(--sz-cream);
  font-size: 17px;
  line-height: 1.65;
}
a {
  color: var(--sz-blue);
}
h1, h2, h3, h4 {
  color: var(--sz-head);
  font-weight: 500;
  letter-spacing: -0.03em;
}

/* ---------- Header ---------- */
/* Fixed bar: transparent over the dark hero/page head, near-black once the visitor scrolls. */
.sz-site-header {
  position: relative;
  z-index: 50;
  height: 0;
}
.sz-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 40px;
  height: 156px;
  padding: 0 clamp(16px, 3vw, 48px);
  background: transparent;
  font-family: var(--sz-font-head);
  transition: background-color 0.3s, height 0.3s;
}
.admin-bar .sz-header { top: 32px; }
.sz-header.is-scrolled,
.sz-header.is-open {
  background: var(--sz-ink);
}
.sz-header.is-scrolled { height: 104px; }
.sz-header__logo img {
  display: block;
  height: 120px;
  width: auto;
  transition: height 0.3s;
}
.sz-header.is-scrolled .sz-header__logo img { height: 88px; }
.sz-header__nav {
  display: flex;
  align-items: center;
  flex: 1;
  gap: 28px;
}
.sz-header__menu {
  display: flex;
  gap: 30px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.sz-header__menu a {
  color: var(--sz-white);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  padding-bottom: 3px;
  border-bottom: 1px solid transparent;
}
.sz-header__menu a:hover,
.sz-header__menu .current-menu-item > a {
  border-bottom-color: var(--sz-white);
}
.sz-header__cta {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  height: 44px;
  padding: 0 24px;
  border-radius: 30px;
  background: var(--sz-blue);
  color: var(--sz-white) !important;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.2s;
}
.sz-header__cta:hover { background: var(--sz-navy); }
/* Price list download: an outline pill beside Apply, so Apply stays the main action. */
.sz-header__download {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 20px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 30px;
  color: var(--sz-white) !important;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.2s, border-color 0.2s;
}
.sz-header__download:hover { background: rgba(255, 255, 255, 0.1); border-color: var(--sz-white); }
.sz-header__download + .sz-header__cta { margin-left: -16px; }
/* Narrow desktops: the label would push the menu onto two lines, so show the icon only. */
@media (min-width: 922px) and (max-width: 1199px) {
  .sz-header { gap: 24px; }
  .sz-header__menu { gap: 20px; }
  .sz-header__menu a { white-space: nowrap; }
  .sz-header__download { width: 44px; padding: 0; justify-content: center; }
  .sz-header__download-label {
    position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
  }
}
.sz-header__toggle {
  display: none;
  margin-left: auto;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 50%;
  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; }
/* Pages without a dark top (privacy policy, posts) start below a solid bar. */
body:not(.page-template-elementor_header_footer) .sz-header { background: var(--sz-ink); }
body:not(.page-template-elementor_header_footer) .site-content { padding-top: 156px; }
@media (max-width: 782px) {
  .admin-bar .sz-header { top: 46px; }
}
@media (max-width: 921px) {
  .sz-header { flex-wrap: wrap; height: auto; min-height: 84px; padding-top: 12px; padding-bottom: 12px; gap: 0; }
  .sz-header.is-scrolled { height: auto; min-height: 76px; }
  .sz-header__logo img { height: 88px; }
  .sz-header.is-scrolled .sz-header__logo img { height: 72px; }
  .sz-header__toggle { display: block; }
  .sz-header__nav {
    display: none;
    flex-basis: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    padding: 16px 0 10px;
  }
  .sz-header.is-open .sz-header__nav { display: flex; }
  .sz-header__menu { flex-direction: column; gap: 0; }
  .sz-header__menu a { display: block; padding: 12px 0; font-size: 18px; border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
  .sz-header__cta,
  .sz-header__download,
  .sz-header__download + .sz-header__cta { margin-left: 0; justify-content: center; height: 50px; }
  body:not(.page-template-elementor_header_footer) .site-content { padding-top: 112px; }
}

/* ---------- Footer ---------- */
.sz-footer {
  background: var(--sz-ink);
  color: rgba(250, 252, 250, 0.6);
  font-family: var(--sz-font);
  font-size: 15px;
}
.sz-footer__inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  max-width: 1170px;
  margin: 0 auto;
  padding: 90px 16px 40px;
}
.sz-footer__brand img { height: 100px; width: auto; margin-bottom: 22px; }
.sz-footer__brand p { max-width: 340px; margin: 0; line-height: 1.65; }
.sz-footer__title {
  color: var(--sz-white) !important;
  font: 500 17px var(--sz-font-head) !important;
  letter-spacing: -0.01em;
  margin: 0 0 22px;
}
.sz-footer__menu { list-style: none; margin: 0; padding: 0; }
.sz-footer__menu li { margin: 0 0 10px; overflow-wrap: anywhere; }
.sz-footer a { color: rgba(250, 252, 250, 0.75); text-decoration: none; }
.sz-footer a:hover { color: var(--sz-lime-bright); }
.sz-footer__base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  max-width: 1170px;
  margin: 0 auto;
  padding: 30px 16px 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 13px;
}
@media (max-width: 767px) {
  .sz-footer__inner { grid-template-columns: 1fr 1fr; padding-top: 64px; }
  .sz-footer__brand { grid-column: 1 / -1; }
}

/* ---------- 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: 22px;
  bottom: 22px;
  z-index: 60;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #128c4b;
  color: #fff !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}
.sz-whatsapp:hover { background: #0e7340; }
