/* Page sections. Elementor containers carry these classes (see config/pages.mjs). Tokens live in sz-brand.css. */

/* Elementor "header & footer" pages sit inside Astra's boxed .ast-container; make them full-bleed. */
body.page-template-elementor_header_footer .site-content > .ast-container {
  max-width: none;
  padding: 0;
  display: block;
}
.e-con.sz-hero,
.e-con.sz-band,
.e-con.sz-section,
.e-con.sz-pagehead {
  --padding-top: 0;
  --padding-right: 0;
  --padding-bottom: 0;
  --padding-left: 0;
  --gap: 0;
  font-family: var(--sz-font);
}
.e-con.sz-section {
  padding: clamp(56px, 7vw, 96px) max(16px, calc((100% - 1160px) / 2)) !important;
  --gap: 18px;
}
.e-con.sz-soft { background: var(--sz-bg-soft); }
.e-con.sz-narrow {
  padding-left: max(16px, calc((100% - 760px) / 2)) !important;
  padding-right: max(16px, calc((100% - 760px) / 2)) !important;
}

/* ---------- Text atoms ---------- */
.sz-display .elementor-heading-title {
  font-weight: 500 !important;
  text-transform: uppercase;
  letter-spacing: -0.045em !important;
  line-height: 0.92 !important;
  font-size: clamp(34px, 5.2vw, 64px) !important;
  color: inherit;
  margin: 0;
}
.sz-hero .sz-display .elementor-heading-title,
.sz-pagehead .sz-display .elementor-heading-title {
  font-size: clamp(40px, 6vw, 72px) !important;
  color: #fff;
}
.sz-section .sz-display .elementor-heading-title { color: var(--sz-ink); }
.sz-eyebrow p {
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sz-blue);
}
.sz-band .sz-eyebrow p,
.sz-pagehead .sz-eyebrow p { color: #9fc0ff; }
.elementor-widget-text-editor p:last-child { margin-bottom: 0; }
.sz-lead { font-size: clamp(18px, 2vw, 22px); font-weight: 300; line-height: 1.5; }
.sz-section h3.elementor-heading-title {
  font-size: 20px;
  font-weight: 600;
  color: var(--sz-navy);
  margin: 0 0 6px;
}

/* ---------- Buttons (Elementor button widget) ---------- */
.sz-btn .elementor-button {
  border-radius: 999px !important;
  padding: 14px 22px !important;
  font: 600 15px/1.2 var(--sz-font) !important;
  background: var(--sz-navy);
  color: #fff;
  border: 1px solid var(--sz-navy);
}
.sz-btn .elementor-button:hover { background: var(--sz-blue); border-color: var(--sz-blue); color: #fff; }
.sz-btn--light .elementor-button { background: #fff; color: var(--sz-navy); border-color: #fff; }
.sz-btn--light .elementor-button:hover { background: #e8eefc; color: var(--sz-navy); border-color: #e8eefc; }
.sz-btn--outline .elementor-button { background: transparent; color: #fff; border-color: #fff; }
.sz-btn--outline .elementor-button:hover { background: rgba(255, 255, 255, 0.12); border-color: #fff; }
.sz-btn--link .elementor-button { background: transparent; color: var(--sz-blue); border-color: transparent; padding-left: 0 !important; }
.sz-btn--link .elementor-button-text::after { content: '\00a0\2192'; }
.sz-btn--link .elementor-button:hover { background: transparent; color: var(--sz-navy); border-color: transparent; }

/* ---------- Home hero: photo + stepped navy panel + pills + area bar ---------- */
.e-con.sz-hero {
  display: grid !important;
  grid-template-columns: minmax(0, 56%) minmax(0, 1fr);
  grid-template-rows: 1fr auto;
  min-height: 680px;
  position: relative;
  color: #fff;
}
.e-con.sz-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 30, 62, 0.35), rgba(0, 30, 62, 0) 35%, rgba(0, 30, 62, 0.55));
  pointer-events: none;
}
.e-con.sz-hero > * { position: relative; z-index: 1; }
.e-con.sz-hero__panel {
  grid-column: 1;
  grid-row: 1 / 3;
  background: var(--sz-navy);
  clip-path: polygon(0 0, 78% 0, 78% 14%, 86% 14%, 86% 30%, 93% 30%, 93% 52%, 100% 52%, 100% 100%, 0 100%);
  padding: 130px 13% 150px max(16px, calc((100vw - 1160px) / 2)) !important;
  --gap: 22px;
  justify-content: flex-start;
}
.sz-hero__sub p {
  font-size: 17px;
  font-weight: 300;
  line-height: 1.5;
  max-width: 440px;
  color: rgba(255, 255, 255, 0.92);
}
.e-con.sz-hero__ctas { flex-direction: row !important; flex-wrap: wrap; --gap: 10px; }
.sz-hero__steps {
  grid-column: 2;
  grid-row: 1;
  align-self: start;
  justify-self: end;
  margin: 120px max(16px, calc((100vw - 1160px) / 2)) 0 0;
}
.sz-pills {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}
.sz-pill {
  display: inline-block;
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 13px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: rgba(0, 30, 62, 0.4);
  backdrop-filter: blur(6px);
  color: #fff;
}
.sz-hero__area {
  grid-column: 1 / -1;
  grid-row: 2;
  margin: 0 max(16px, calc((100vw - 1160px) / 2)) 28px;
  z-index: 2 !important;
}
.sz-hero__area .sz-area__result { background: rgba(0, 30, 62, 0.8); border-radius: 12px; margin-top: 8px; }
.sz-hero__area .sz-area__result:empty { display: none; }
.sz-hero__area .sz-area__result p { margin: 0; padding: 12px 14px; color: #fff; }
.sz-hero__area .sz-area__result a { color: #fff; }

/* ---------- Page head (inner pages) ---------- */
.e-con.sz-pagehead {
  background: var(--sz-navy);
  color: #fff;
  padding: 150px max(16px, calc((100% - 1160px) / 2)) 90px !important;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 64% 100%, 64% calc(100% - 18px), 30% calc(100% - 18px), 30% calc(100% - 36px), 0 calc(100% - 36px));
  --gap: 18px;
}
.sz-pagehead__sub p {
  max-width: 640px;
  font-size: 18px;
  font-weight: 300;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.9);
}

/* ---------- Navy band (stats, CTA, vision/mission) ---------- */
.e-con.sz-band {
  background: var(--sz-navy);
  color: #fff;
  padding: 56px max(16px, calc((100% - 1160px) / 2)) !important;
  --gap: 24px;
}
.e-con.sz-band--stats {
  flex-direction: row !important;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
}
.sz-band__lead p { font-size: 15px; font-weight: 300; opacity: 0.85; margin: 0; line-height: 1.4; }
.e-con.sz-stat { --gap: 2px; width: auto; }
.sz-stat__n .elementor-heading-title {
  font-size: clamp(38px, 5vw, 56px) !important;
  font-weight: 300 !important;
  letter-spacing: -0.04em;
  color: #fff;
  line-height: 1;
}
.sz-stat__label p { font-size: 13px; opacity: 0.75; margin: 6px 0 0; max-width: 200px; }
.e-con.sz-cta { align-items: flex-start; }
.e-con.sz-ctas { flex-direction: row !important; flex-wrap: wrap; --gap: 10px; }
.sz-band .elementor-heading-title,
.sz-band .elementor-widget-text-editor { color: #fff !important; }

/* Stepped top edge joining a section to the navy shape above */
.e-con.sz-step-top {
  clip-path: polygon(0 18px, 22% 18px, 22% 0, 100% 0, 100% 100%, 0 100%);
  margin-top: -18px;
  position: relative;
  z-index: 2;
}

/* ---------- Columns ---------- */
.e-con.sz-cols { display: grid !important; gap: clamp(20px, 3vw, 40px); }
.e-con.sz-cols--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.e-con.sz-cols--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.e-con.sz-cols--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.e-con.sz-cols--center { align-items: center; }
.e-con.sz-col { --gap: 14px; --padding-top: 0; --padding-right: 0; --padding-bottom: 0; --padding-left: 0; }
.sz-steps .e-con.sz-col,
.sz-services .e-con.sz-col,
.sz-values .e-con.sz-col { border-top: 1px solid var(--sz-rule); padding-top: 16px !important; }
.sz-band .e-con.sz-col { border-color: rgba(255, 255, 255, 0.2); }
.sz-step__n .elementor-heading-title { font-size: 30px !important; font-weight: 300 !important; color: var(--sz-blue) !important; }
.sz-section .elementor-widget-text-editor { color: var(--sz-muted); font-size: 16px; line-height: 1.6; }
.sz-own ul { padding-left: 18px; }
.sz-own li { margin-bottom: 8px; }

/* Stepped photo crop */
.sz-photo-step img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  clip-path: polygon(0 14%, 12% 14%, 12% 6%, 30% 6%, 30% 0, 100% 0, 100% 100%, 0 100%);
  border-radius: 0 var(--sz-radius) var(--sz-radius) var(--sz-radius);
}

/* ---------- Product cards (shortcode) ---------- */
.sz-products {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 18px;
  font-family: var(--sz-font);
}
.sz-product {
  background: #fff;
  border: 1px solid var(--sz-rule);
  border-radius: var(--sz-radius);
  padding: 22px;
  display: flex;
  flex-direction: column;
}
.sz-product__name { font-size: 22px !important; font-weight: 600; color: var(--sz-navy) !important; margin: 0 0 8px; letter-spacing: -0.02em; }
.sz-product__best { color: var(--sz-muted); font-size: 15px; line-height: 1.5; margin: 0 0 14px; flex: 1; }
.sz-product__price { margin: 0 0 16px; color: var(--sz-ink); }
.sz-product__price strong { font-size: 22px; color: var(--sz-navy); }
.sz-product__price span { font-size: 13px; color: var(--sz-muted); }
.sz-product__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin: 0; }
.sz-product__apply { font-weight: 600; text-decoration: none; }

/* ---------- FAQ, quote, gallery, pills ---------- */
.sz-faq { border-top: 1px solid var(--sz-rule); padding: 16px 0; font-family: var(--sz-font); }
.sz-faq summary { cursor: pointer; font-weight: 600; font-size: 17px; color: var(--sz-navy); }
.sz-faq p { margin: 10px 0 0; color: var(--sz-muted); line-height: 1.6; }
.sz-quote { margin: 0; padding: 0; border: 0; font-family: var(--sz-font); }
.sz-quote p {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 300;
  letter-spacing: -0.03em;
  color: var(--sz-navy);
  line-height: 1.1;
  margin: 0 0 14px;
  font-style: normal;
}
.sz-quote cite { font-style: normal; color: var(--sz-muted); }
.e-con.sz-gallery { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.sz-gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; }
.sz-pills--dark .sz-pills { flex-direction: row; flex-wrap: wrap; align-items: flex-start; }
.sz-pills--dark .sz-pill { background: var(--sz-bg-soft); color: var(--sz-navy); border-color: var(--sz-rule); backdrop-filter: none; }

/* ---------- Fluent Forms in brand ---------- */
.frm-fluent-form .ff-btn-submit { border-radius: 999px !important; background: var(--sz-navy) !important; font-family: var(--sz-font) !important; }
.frm-fluent-form .ff-el-form-control { border-radius: 10px !important; }

/* ---------- Tablet ---------- */
@media (min-width: 768px) and (max-width: 1024px) {
  .e-con.sz-cols--3,
  .e-con.sz-cols--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- Mobile ---------- */
@media (max-width: 767px) {
  .e-con.sz-hero { grid-template-columns: 1fr; grid-template-rows: auto auto auto; min-height: 0; }
  .e-con.sz-hero__panel {
    grid-column: 1;
    grid-row: 1;
    padding: 110px 16px 70px !important;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 36px), 70% calc(100% - 36px), 70% calc(100% - 18px), 35% calc(100% - 18px), 35% 100%, 0 100%);
  }
  .sz-hero__steps { grid-column: 1; grid-row: 2; justify-self: start; margin: 18px 16px 0; }
  .sz-pills { flex-direction: row; flex-wrap: wrap; align-items: flex-start; }
  .sz-hero__area { grid-row: 3; margin: 16px 16px 24px; }
  .e-con.sz-cols--2,
  .e-con.sz-cols--3,
  .e-con.sz-cols--4 { grid-template-columns: 1fr; }
  .e-con.sz-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .e-con.sz-band--stats { display: grid !important; grid-template-columns: 1fr 1fr; align-items: start; }
  .sz-band__lead { grid-column: 1 / -1; }
  .e-con.sz-pagehead { padding-top: 120px !important; }
}
