/* ==========================================================================
   The St. Regis Residences at Dubai Islands — landing page theme

   Loaded by resources/views/landings/default.antlers.html only when the
   entry's theme is "stregis", after output.css and before rtl.css.

   Every rule in output.css sits inside a cascade layer and this file is
   unlayered, so anything declared here wins regardless of specificity. All
   selectors are scoped to .theme-stregis (or to sr- / lp- classes that only
   this theme renders), so no other landing page is affected.

   Arabic adjustments live in the "St. Regis" section of rtl.css.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Fonts — brand guideline: Roos Display at 13pt and above, Roos Text below,
   Suisse for labels, navigation and form fields.
   -------------------------------------------------------------------------- */

@font-face {
  font-family: "Roos";
  src: url("/static/landing-pages/st-regis/roos-display-regular.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Roos";
  src: url("/static/landing-pages/st-regis/roos-display-italic.woff") format("woff");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "RoosText";
  src: url("/static/landing-pages/st-regis/roos-text-regular.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Suisse";
  src: url("/static/landing-pages/st-regis/suisse-regular.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Suisse";
  src: url("/static/landing-pages/st-regis/suisse-medium.woff") format("woff");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

/* --------------------------------------------------------------------------
   Tokens
   -------------------------------------------------------------------------- */

.theme-stregis {
  --sr-ink: #171717;
  --sr-grey: #a9a9a9;
  --sr-grey-line: #7c7c7c;
  --sr-line: #c6b8a9;
  --sr-soft: #f7f7f5;
  --sr-red: #ff4338;
  --sr-tan: #856649;
  --sr-tan-dark: #6f543b;
  --sr-gutter: 4.25%;

  --color-bg-primary: var(--sr-soft);
  --color-bg-secondary: #ffffff;
  --color-bg-card: #ffffff;
  --color-bg-dark: var(--sr-grey);
  --color-bg-dark-surface: var(--sr-grey);
  --color-bg-brand-bar: #f2f2f0;
  --color-text-primary: var(--sr-ink);
  --color-text-label: #73716d;
  --color-text-on-dark: #111111;
  --color-text-on-dark-muted: #222222;
  --color-border-default: var(--sr-line);
  --color-border-input: #7b766f;
  --color-brand-slate: var(--sr-grey-line);

  --font-heading: "Roos", Georgia, serif;
  --font-body: "RoosText", Georgia, serif;
  --font-label: "Suisse", Arial, sans-serif;
}

.theme-stregis :focus-visible {
  outline: 2px solid var(--sr-tan);
  outline-offset: 4px;
}

.theme-stregis section[id] {
  scroll-margin-top: calc(var(--header-h, 90px) + 20px);
}

/* --------------------------------------------------------------------------
   Type
   -------------------------------------------------------------------------- */

.theme-stregis .type-h1,
.theme-stregis .type-h2,
.theme-stregis .type-h3,
.theme-stregis .type-h2-regular,
.theme-stregis .type-h3-regular,
.theme-stregis .payment-pct {
  font-style: normal;
  font-weight: 400;
  letter-spacing: 0;
}

.theme-stregis .type-h2 {
  font-size: clamp(30px, 2.5vw, 43px);
  line-height: 1.12;
}

.theme-stregis .type-h3 {
  font-size: 25px;
  line-height: 1.2;
}

.theme-stregis .type-h3-regular {
  font-size: 26px;
  line-height: 1.2;
}

.theme-stregis .type-body {
  font-size: 17px;
  line-height: 1.5;
}

.theme-stregis .type-label,
.theme-stregis .type-subtitle,
.theme-stregis .type-cta {
  font-family: var(--font-label);
  font-weight: 400;
  font-size: 10px;
  line-height: 1.5;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.theme-stregis .type-label.text-text-label {
  color: var(--sr-ink);
}

.theme-stregis .section-badge {
  width: 38px;
  height: 38px;
  border-color: var(--sr-red);
  font-family: var(--font-label);
  font-weight: 400;
  font-size: 9px;
  letter-spacing: 0;
  color: var(--sr-ink);
}

.theme-stregis .section-badge-light {
  border-color: #494949;
  color: #111;
}

/* --------------------------------------------------------------------------
   Header — the CTA sits in the physical centre, with the monogram on the left
   and the project logo on the right. It keeps that order in Arabic.
   -------------------------------------------------------------------------- */

.theme-stregis #site-header {
  border-bottom: 1px solid #eee;
}

.sr-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  column-gap: clamp(20px, 2.4vw, 46px);
  height: 89px;
  padding: 12px var(--sr-gutter);
  direction: ltr;
}

.sr-header-side {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(16px, 2vw, 32px);
  min-width: 0;
}

.sr-header-nav {
  display: flex;
  align-items: center;
  gap: clamp(24px, 3.4vw, 66px);
}

.sr-header-nav a {
  padding: 12px 0;
  font-family: var(--font-label);
  font-size: 11px;
  line-height: 1.25;
  text-transform: uppercase;
  white-space: nowrap;
  transition: color 0.2s;
}

.sr-header-nav a:hover {
  color: var(--sr-tan);
}

.sr-monogram,
.sr-wordmark {
  display: block;
  flex-shrink: 0;
}

.sr-wordmark {
  margin-left: auto;
}

.sr-monogram img {
  width: 48px;
  height: auto;
}

.sr-wordmark img {
  width: auto;
  height: 64px;
  max-width: 220px;
  object-fit: contain;
}

.sr-header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 12px 18px;
  border: 1px solid var(--sr-tan);
  background: var(--sr-tan);
  color: #fff;
  font-family: var(--font-body);
  font-size: 13px;
  line-height: 1.2;
  letter-spacing: 0.025em;
  text-align: center;
  text-transform: uppercase;
  transition: background 0.2s, border-color 0.2s;
}

.sr-header-cta:hover {
  background: var(--sr-tan-dark);
  border-color: var(--sr-tan-dark);
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.theme-stregis .landing-hero {
  padding: 64px var(--sr-gutter);
  isolation: isolate;
}

.theme-stregis .landing-hero > div:first-child img {
  object-position: center 55%;
}

.theme-stregis .landing-hero .text-text-on-dark {
  min-width: 0;
  padding-bottom: 1px;
  color: #fff;
}

.theme-stregis .landing-hero .type-label {
  margin-bottom: 7px;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: #fff;
}

.theme-stregis .landing-hero .type-h1 {
  max-width: 100%;
  font-size: clamp(48px, 4vw, 64px);
  line-height: 1.1;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

.theme-stregis .landing-hero .hero-body-white-text {
  max-width: 780px;
  margin-top: 16px;
}

/* Hero form panel */
.theme-stregis .landing-hero .registration-form {
  width: 100%;
  max-width: 680px;
  padding: 32px;
  background: rgba(255, 255, 255, 0.85);
}

@media (min-width: 1024px) {
  .theme-stregis .landing-hero {
    display: grid;
    grid-template-columns: minmax(0, 40%) minmax(0, 1fr);
    align-items: end;
    gap: 7%;
    min-height: 620px;
  }

  .theme-stregis .landing-hero .text-text-on-dark {
    width: 100%;
    container-type: inline-size;
  }

  /* Keep the English headline on one line, scaled to its column */
  html[lang="en"] .theme-stregis .landing-hero .type-h1 {
    font-size: min(64px, 5.4cqi);
    white-space: nowrap;
    text-wrap: nowrap;
  }
}

/* --------------------------------------------------------------------------
   Metrics bar
   -------------------------------------------------------------------------- */

.theme-stregis .landing-metrics {
  display: flex;
  align-items: center;
  min-height: 150px;
  padding: 35px var(--sr-gutter);
}

.theme-stregis .landing-metrics > div {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: center;
  gap: 0;
  width: 100%;
}

.theme-stregis .landing-metrics > div > div {
  width: auto;
  gap: 12px;
  padding: 0 12px;
  text-align: center;
}

.theme-stregis .landing-metrics .type-h3 {
  font-size: 31px;
  line-height: 1;
}

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */

.theme-stregis main > section {
  padding: 76px var(--sr-gutter);
}

/* Heading block: badge row, subtitle, heading, intro */
.theme-stregis main > section > div.flex.flex-col {
  gap: 16px;
  margin-bottom: 36px;
}

.theme-stregis main > section > div.flex.flex-col > .flex,
.theme-stregis #project-resources > .flex {
  gap: 13px;
}

.theme-stregis main > section > div.flex.flex-col > .type-subtitle {
  letter-spacing: 0.1em;
}

.theme-stregis main > section > div.flex.flex-col > .type-body {
  font-family: var(--font-heading);
  font-size: 18px;
}

/* Lets the first section's heading scale to its column on narrow screens, so
   the project name (joined with non-breaking spaces in the entry) never splits */
.theme-stregis #register + section > div.flex.flex-col {
  container-type: inline-size;
}

/* Bordered card grids: one hairline between cells, none doubled */
.theme-stregis main > section > .grid {
  border-top: 1px solid var(--sr-line);
  border-inline-start: 1px solid var(--sr-line);
}

.theme-stregis main > section > .grid > div {
  margin: 0;
  border: 0 solid var(--sr-line);
  border-bottom-width: 1px;
  border-inline-end-width: 1px;
}

/* Why */
.theme-stregis main > section > .grid.lg\:grid-cols-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.theme-stregis main > section > .grid.lg\:grid-cols-2 > div {
  gap: 12px;
  padding: 28px 31px;
}

.theme-stregis main > section.bg-bg-primary > .grid .type-body {
  color: #494949;
}

/* Residences: open horizontal rows instead of cards */
.theme-stregis main > section.bg-bg-card > .type-subtitle {
  margin-bottom: 28px;
  letter-spacing: 0.1em;
  color: var(--sr-tan);
}

.theme-stregis main > section.bg-bg-card > .grid {
  display: block;
  margin-bottom: 48px;
  border: 0;
}

.theme-stregis main > section.bg-bg-card > .grid > div {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr) minmax(0, 0.55fr);
  align-items: center;
  gap: 24px;
  min-width: 0;
  padding: 26px 0;
  border: 0;
}

.theme-stregis main > section.bg-bg-card > .grid > div + div {
  border-top: 1px solid var(--sr-line);
}

.theme-stregis main > section.bg-bg-card > .grid .type-body {
  color: #555;
  white-space: nowrap;
}

.theme-stregis main > section.bg-bg-card > .grid .type-body.product-note {
  font-family: var(--font-label);
  font-size: 12px;
  text-align: end;
}

/* Gallery */
.theme-stregis .gallery-scroll {
  gap: 24px;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
}

.theme-stregis .gallery-scroll::-webkit-scrollbar {
  display: none;
}

.theme-stregis .gallery-slide {
  flex: 0 0 calc((100% - 48px) / 3);
  width: auto;
  min-width: 0;
  height: auto;
  aspect-ratio: 408 / 292;
  scroll-snap-align: start;
  background: var(--sr-soft);
  cursor: zoom-in;
}

.theme-stregis .gallery-slide img {
  transition: transform 0.35s;
}

.theme-stregis .gallery-slide:hover img {
  transform: scale(1.025);
}

.theme-stregis .gallery-nav {
  width: 43px;
  height: 43px;
  border: 1px solid #bbb;
  border-radius: 0;
  background: #fff;
  box-shadow: none;
  color: #555;
  font: 22px/1 Arial, sans-serif;
  transform: translateY(-50%);
  transition: color 0.2s, border-color 0.2s, opacity 0.2s;
}

.theme-stregis .gallery-nav:hover:not(:disabled) {
  border-color: var(--sr-tan);
  color: var(--sr-tan);
}

.theme-stregis .gallery-nav-prev {
  right: auto;
  left: 13px;
}

.theme-stregis .gallery-nav-next {
  right: 13px;
  left: auto;
}

/* Payment plan */
.theme-stregis #payment-plan > .grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.theme-stregis #payment-plan > .grid > div {
  gap: 0;
  padding: 28px 30px;
}

.theme-stregis .payment-pct {
  margin-bottom: 15px;
  font-size: 34px;
  line-height: 1.5;
}

.theme-stregis #payment-plan > .grid .type-body {
  font-size: 16px;
  line-height: 1.45;
  color: #555;
}

.theme-stregis #payment-plan > .grid .type-body > p:first-child {
  margin-bottom: 8px;
  font-family: var(--font-heading);
  font-size: 20px;
  line-height: 1.2;
  color: var(--sr-ink);
}

/* Project resources */
.theme-stregis #project-resources > .flex {
  margin-bottom: 37px;
}

.theme-stregis #project-resources > .grid,
.theme-stregis #project-resources > .grid > div {
  border-color: var(--sr-grey-line);
}

.theme-stregis #project-resources > .grid > div {
  justify-content: space-between;
  gap: 24px;
  padding: 27px 31px;
}

.theme-stregis #project-resources > .grid > div > div:first-child {
  gap: 10px;
}

.theme-stregis #project-resources :is(a, span).underline {
  padding-top: 4px;
  font-family: var(--font-label);
  font-size: 11px;
  line-height: 1.6;
  white-space: nowrap;
  text-underline-offset: 4px;
}

.theme-stregis #project-resources a.underline:hover {
  color: var(--sr-tan-dark);
}

/* Location: the whole map is shown, uncropped, and opens enlarged */
.theme-stregis #location > .relative {
  aspect-ratio: auto;
  background: #fff;
  cursor: zoom-in;
}

.theme-stregis #location > .relative > img {
  position: static;
  width: 100%;
  height: auto;
}

.lp-zoom-hint {
  position: absolute;
  right: 16px;
  bottom: 16px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid #ccc;
  background: #fff;
  color: var(--sr-tan);
  font: 25px/1 Arial, sans-serif;
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   Registration form (hero, mobile and closing variants)
   -------------------------------------------------------------------------- */

.theme-stregis .registration-form {
  gap: 28px;
}

.theme-stregis .registration-form > .gap-4 {
  gap: 16px;
}

.theme-stregis .registration-form .type-h3-regular,
.theme-stregis .registration-form .type-h2-regular {
  font-style: italic;
  font-size: 29px;
  line-height: 1.15;
}

.theme-stregis .registration-form > .w-full,
.theme-stregis .registration-form > .w-full > .flex {
  gap: 23px 24px;
}

.theme-stregis .field-label,
.theme-stregis .field-label-dark {
  margin-bottom: 7px;
  font-family: var(--font-label);
  font-weight: 400;
  font-size: 9px;
  letter-spacing: 0.12em;
  color: var(--sr-ink);
}

.theme-stregis .input-underline {
  height: 38px;
  padding: 3px 0 10px;
  font-family: var(--font-label);
  font-size: 14px;
  line-height: 1.2;
  color: #222;
}

.theme-stregis .input-underline::placeholder {
  color: #898783;
  opacity: 1;
}

.theme-stregis .input-underline:focus,
.theme-stregis .phone-field:focus-within {
  border-bottom-color: var(--sr-tan);
}

/* Form fields show focus through the underline colour above, not the outline
   ring used for links and buttons */
.theme-stregis .registration-form :is(input, select, textarea):focus-visible {
  outline: none;
}

.theme-stregis select.input-underline {
  padding-right: 18px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='m1 1 4 4 4-4' fill='none' stroke='%23666'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 3px center;
}

.theme-stregis .phone-field {
  gap: 9px;
  height: 38px;
  padding-bottom: 9px;
}

.theme-stregis .phone-field .selected-dial-code {
  font-family: var(--font-label);
  font-size: 12px;
  color: #333;
}

.theme-stregis .phone-field .phone-input {
  font-family: var(--font-label);
  font-size: 14px;
  color: #222;
}

.theme-stregis .phone-field .phone-input::placeholder {
  color: #898783;
  opacity: 1;
}

.theme-stregis .phone-field .country-list-with-search {
  width: 300px;
  max-width: 80vw;
  padding: 10px;
  border-color: #ccc;
}

.theme-stregis .phone-field .country-search,
.theme-stregis .phone-field .country-list,
.theme-stregis .phone-feedback {
  font-family: var(--font-label);
  font-size: 12px;
}

.theme-stregis .btn-submit {
  min-height: 47px;
  margin-top: 1px;
  padding: 13px 20px;
  border: 1px solid var(--sr-tan);
  border-radius: 0;
  background: var(--sr-tan);
  color: #fff;
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.2;
  letter-spacing: 0.025em;
  transition: background 0.2s, border-color 0.2s;
}

.theme-stregis .btn-submit:hover:not(:disabled) {
  background: var(--sr-tan-dark);
  border-color: var(--sr-tan-dark);
}

.theme-stregis .btn-submit:disabled {
  opacity: 0.6;
  cursor: default;
}

.theme-stregis .btn-submit > span:last-child {
  font: 20px Arial, sans-serif;
}

/* Mobile form section */
.theme-stregis #register {
  max-width: 800px;
  margin: 0 auto;
  background: #fff;
}

/* --------------------------------------------------------------------------
   Closing section and footer
   -------------------------------------------------------------------------- */

.theme-stregis #site-footer > div:first-child {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 520px);
  align-items: start;
  gap: 9%;
  padding: 70px var(--sr-gutter);
}

.theme-stregis #site-footer > div:first-child > div:first-child {
  gap: 0;
  container-type: inline-size;
}

.theme-stregis #site-footer .type-h2 {
  font-size: min(clamp(30px, 2.5vw, 43px), 6cqi);
  text-wrap: balance;
}

.theme-stregis #site-footer .type-h2 + .type-body {
  max-width: 800px;
  margin-top: 20px;
}

.theme-stregis #site-footer .type-subtitle {
  margin-bottom: 16px;
}

.theme-stregis #site-footer .registration-form {
  width: 100%;
}

.theme-stregis #site-footer .input-underline,
.theme-stregis #site-footer .phone-field {
  border-bottom-color: #585858;
}

.theme-stregis #site-footer .input-underline:focus,
.theme-stregis #site-footer .phone-field:focus-within {
  border-bottom-color: var(--sr-ink);
}

.theme-stregis #site-footer .input-underline::placeholder,
.theme-stregis #site-footer .phone-input::placeholder {
  color: #474747;
}

/* The closing panel is light, so the phone field icons keep their dark form */
.theme-stregis #site-footer .phone-field img.invert {
  filter: none;
}

.theme-stregis #site-footer .phone-feedback {
  color: #8a1f14;
}

/* Brand logo bar */
.theme-stregis #site-footer > .bg-bg-dark-surface {
  padding: 28px;
  background: #f2f2f0;
}

.theme-stregis #site-footer > .bg-bg-dark-surface > div {
  width: 119px;
  height: 42px;
}

/* Legal copy */
.theme-stregis .landing-legal {
  gap: 12px;
  padding: 25px var(--sr-gutter) 28px;
  background: #fff;
}

.theme-stregis .landing-legal p {
  font-family: var(--font-label);
  font-size: 12px;
  line-height: 1.7;
  color: #000;
}

/* --------------------------------------------------------------------------
   Lightbox (gallery and location map)
   -------------------------------------------------------------------------- */

.lp-lightbox {
  width: 95vw;
  max-width: 1450px;
  max-height: 94vh;
  margin: auto;
  padding: 18px 24px 20px;
  border: 0;
  background: #fff;
  color: #171717;
}

.lp-lightbox::backdrop {
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
}

.lp-lightbox-bar {
  display: flex;
  justify-content: flex-end;
  padding-bottom: 15px;
}

.lp-lightbox-close {
  width: 36px;
  height: 36px;
  border: 0;
  background: none;
  color: #555;
  font: 32px/1 Arial, sans-serif;
  cursor: pointer;
}

.lp-lightbox-image {
  display: block;
  width: 100%;
  height: calc(87vh - 135px);
  background: #f7f7f5;
  object-fit: contain;
}

.lp-lightbox-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  margin-top: 15px;
  direction: ltr;
  font: 12px/1 "Suisse", Arial, sans-serif;
}

.lp-lightbox-controls[hidden] {
  display: none;
}

.lp-lightbox-controls button {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid #ccc;
  background: #fff;
  color: #555;
  font: 22px/1 Arial, sans-serif;
  cursor: pointer;
}

.lp-lightbox-close:hover,
.lp-lightbox-controls button:hover {
  color: #856649;
}

/* --------------------------------------------------------------------------
   Wide screens
   -------------------------------------------------------------------------- */

@media (min-width: 1800px) {
  .theme-stregis .landing-hero .registration-form .type-h3-regular {
    font-size: 30px;
  }

  .theme-stregis .landing-hero .registration-form > .gap-4 > .type-body {
    font-family: var(--font-heading);
    font-size: 19px;
  }

  .theme-stregis .landing-hero .registration-form {
    gap: 31px;
  }

  .theme-stregis .landing-hero .registration-form > .w-full,
  .theme-stregis .landing-hero .registration-form > .w-full > .flex {
    gap: 25px 24px;
  }

  .theme-stregis .landing-hero .field-label {
    font-size: 10px;
  }

  .theme-stregis .landing-hero .input-underline,
  .theme-stregis .landing-hero .phone-field {
    height: 40px;
  }

  .theme-stregis .landing-hero .input-underline,
  .theme-stregis .landing-hero .phone-field .phone-input {
    font-size: 16px;
  }

  .theme-stregis .landing-hero .phone-field .selected-dial-code {
    font-size: 13px;
  }

  .theme-stregis .landing-hero .btn-submit {
    min-height: 48px;
    font-size: 16px;
  }

  .theme-stregis .landing-hero .hero-body-white-text {
    font-family: var(--font-heading);
    font-size: 18px;
  }
}

/* --------------------------------------------------------------------------
   Small desktop
   -------------------------------------------------------------------------- */

@media (min-width: 1024px) and (max-width: 1250px) {
  .sr-header {
    column-gap: 20px;
  }

  .sr-header-side {
    gap: 16px;
  }

  .sr-header-nav {
    gap: 24px;
  }

  .sr-header-nav a {
    font-size: 10px;
  }

  .sr-monogram img {
    width: 42px;
  }

  .sr-wordmark img {
    height: 56px;
  }

  .sr-header-cta {
    padding: 11px 13px;
    font-size: 11px;
  }

  .theme-stregis .landing-hero {
    grid-template-columns: minmax(0, 46%) minmax(0, 1fr);
    gap: 5%;
    padding: 48px var(--sr-gutter);
  }

  .theme-stregis .landing-hero .registration-form {
    padding: 27px;
  }

  .theme-stregis .landing-hero .registration-form .type-h3-regular {
    font-size: 27px;
  }

  .theme-stregis .landing-hero .registration-form > .gap-4 > .type-body {
    font-size: 16px;
  }

  .theme-stregis .landing-hero .registration-form > .w-full,
  .theme-stregis .landing-hero .registration-form > .w-full > .flex {
    gap: 22px 19px;
  }

  .theme-stregis .landing-hero .btn-submit {
    font-size: 14px;
  }

  .theme-stregis .landing-hero .phone-field .selected-dial-code {
    font-size: 11px;
  }

  .theme-stregis .landing-hero .hero-body-white-text {
    font-size: 15px;
  }

  .theme-stregis main > section > .grid.lg\:grid-cols-2 > div,
  .theme-stregis #payment-plan > .grid > div {
    padding: 25px;
  }

  .theme-stregis #site-footer > div:first-child {
    grid-template-columns: minmax(0, 1fr) minmax(0, 450px);
    gap: 6%;
  }
}

/* --------------------------------------------------------------------------
   Tablet
   -------------------------------------------------------------------------- */

@media (max-width: 1023px) {
  .theme-stregis {
    --sr-gutter: 5%;
  }

  .sr-header {
    column-gap: 20px;
    height: 79px;
  }

  .sr-header-nav {
    display: none;
  }

  .sr-monogram img {
    width: 40px;
  }

  .sr-wordmark img {
    height: 52px;
  }

  /* The hero no longer fills the first screen; the form follows it instead */
  .theme-stregis .landing-first-viewport {
    display: block;
    min-height: 0;
  }

  .theme-stregis .landing-hero {
    min-height: 520px;
    padding: 44px var(--sr-gutter);
  }

  .theme-stregis .landing-hero > div:first-child img {
    object-position: center 48%;
  }

  .theme-stregis .landing-hero .text-text-on-dark {
    max-width: 760px;
  }

  .theme-stregis .landing-hero .type-h1 {
    font-size: clamp(40px, 5.3vw, 54px);
  }

  .theme-stregis .landing-hero .hero-body-white-text {
    max-width: 630px;
    font-size: 16px;
  }

  .theme-stregis .landing-metrics {
    min-height: 130px;
    padding: 29px var(--sr-gutter);
  }

  .theme-stregis .landing-metrics .type-h3 {
    font-size: 29px;
  }

  .theme-stregis .landing-metrics .type-cta {
    font-size: 9px;
  }

  .theme-stregis main > section {
    padding: 58px var(--sr-gutter);
  }

  .theme-stregis main > section > div.flex.flex-col {
    gap: 15px;
    margin-bottom: 29px;
  }

  .theme-stregis .type-h2 {
    font-size: 35px;
  }

  .theme-stregis #register + section > div.flex.flex-col > .type-h2 {
    font-size: min(35px, 9.8cqi);
  }

  .theme-stregis main > section > div.flex.flex-col > .type-body {
    font-family: var(--font-body);
    font-size: 17px;
  }

  /* Mobile form: two columns until phone width */
  .theme-stregis #register .type-h2-regular {
    font-size: 32px;
  }

  .theme-stregis #register .registration-form > .gap-4 > .type-body {
    font-size: 18px;
  }

  .theme-stregis #register .registration-form {
    gap: 30px;
  }

  .theme-stregis #register .registration-form > .w-full {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
  }

  .theme-stregis #register .field-label {
    font-size: 10px;
  }

  .theme-stregis #register .input-underline,
  .theme-stregis #register .phone-field .phone-input {
    font-size: 16px;
  }

  .theme-stregis main > section > .grid.lg\:grid-cols-2 > div {
    padding: 24px;
  }

  .theme-stregis .type-h3 {
    font-size: 24px;
  }

  .theme-stregis main > section.bg-bg-card > .grid .type-h3 {
    font-size: 22px;
  }

  .theme-stregis main > section.bg-bg-card > .grid .type-body {
    font-size: 16px;
  }

  .theme-stregis .gallery-scroll {
    gap: 20px;
  }

  .theme-stregis .gallery-slide {
    flex-basis: calc((100% - 20px) / 2);
  }

  .theme-stregis #payment-plan > .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .theme-stregis #payment-plan > .grid > div {
    padding: 26px;
  }

  .theme-stregis #payment-plan > .grid > div:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }

  .theme-stregis #project-resources > .grid > div {
    padding: 25px;
  }

  .theme-stregis #site-footer > div:first-child {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7%;
    padding: 58px var(--sr-gutter);
  }

  .theme-stregis #site-footer .type-h2 {
    font-size: min(35px, 9.8cqi);
  }

  .theme-stregis #site-footer .registration-form > .w-full,
  .theme-stregis #site-footer .registration-form > .w-full > .flex {
    gap: 20px;
  }

  .theme-stregis #site-footer .input-underline,
  .theme-stregis #site-footer .phone-field .phone-input {
    font-size: 15px;
  }
}

@media (max-width: 700px) {
  .theme-stregis main > section.bg-bg-card > .grid {
    margin-bottom: 32px;
  }

  .theme-stregis main > section.bg-bg-card > .grid > div {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "title title" "size count";
    gap: 10px 16px;
    padding: 22px 0;
  }

  .theme-stregis main > section.bg-bg-card > .grid .type-h3 {
    grid-area: title;
  }

  .theme-stregis main > section.bg-bg-card > .grid .type-body {
    grid-area: size;
  }

  .theme-stregis main > section.bg-bg-card > .grid .type-body.product-note {
    grid-area: count;
  }
}

/* --------------------------------------------------------------------------
   Phone
   -------------------------------------------------------------------------- */

@media (max-width: 600px) {
  .theme-stregis {
    --sr-gutter: 6%;
  }

  .sr-header {
    column-gap: 10px;
    height: 75px;
    padding-inline: 5%;
  }

  .sr-monogram img {
    width: 28px;
  }

  .sr-wordmark img {
    width: clamp(100px, 26vw, 130px);
    height: auto;
  }

  .sr-header-cta {
    width: 120px;
    min-height: 44px;
    padding: 8px 10px;
    font-size: 10px;
    text-wrap: balance;
  }

  .theme-stregis .landing-hero {
    min-height: 470px;
    padding: 35px var(--sr-gutter);
  }

  .theme-stregis .landing-hero > div:first-child img {
    object-position: 57% 45%;
  }

  .theme-stregis .landing-hero > div:first-child > div {
    background: rgba(0, 0, 0, 0.33);
  }

  .theme-stregis .landing-hero .type-label {
    font-size: 9px;
  }

  .theme-stregis .landing-hero .type-h1 {
    font-size: clamp(32px, 9.1vw, 46px);
  }

  .theme-stregis .landing-hero .hero-body-white-text {
    margin-top: 14px;
    font-size: 14px;
    line-height: 1.45;
  }

  .theme-stregis .landing-metrics {
    min-height: 0;
    padding: 27px 5%;
  }

  .theme-stregis .landing-metrics > div {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 27px 10px;
  }

  .theme-stregis .landing-metrics > div > div {
    gap: 9px;
    padding: 0 6px;
  }

  .theme-stregis .landing-metrics .type-cta {
    font-size: 8px;
    letter-spacing: 0.06em;
  }

  .theme-stregis main > section {
    padding: 44px var(--sr-gutter);
  }

  .theme-stregis main > section > div.flex.flex-col {
    gap: 14px;
    margin-bottom: 27px;
  }

  .theme-stregis main > section > div.flex.flex-col > .flex,
  .theme-stregis #project-resources > .flex {
    gap: 11px;
  }

  .theme-stregis .type-h2 {
    font-size: 33px;
  }

  .theme-stregis #register + section > div.flex.flex-col > .type-h2 {
    font-size: min(33px, 9.8cqi);
  }

  .theme-stregis .type-label,
  .theme-stregis .type-subtitle {
    font-size: 9px;
    letter-spacing: 0.08em;
  }

  .theme-stregis .section-badge {
    width: 33px;
    height: 33px;
    font-size: 8px;
  }

  .theme-stregis #register .type-h2-regular {
    font-size: 30px;
  }

  .theme-stregis #register .registration-form > .gap-4 > .type-body {
    font-size: 17px;
  }

  .theme-stregis #register .registration-form > .w-full {
    grid-template-columns: minmax(0, 1fr);
    gap: 23px;
  }

  .theme-stregis #register .field-label {
    font-size: 9px;
  }

  /* 16px keeps iOS from zooming the page when a field takes focus */
  .theme-stregis .input-underline,
  .theme-stregis .phone-field .phone-input,
  .theme-stregis #site-footer .input-underline,
  .theme-stregis #site-footer .phone-field .phone-input {
    font-size: 16px;
  }

  .theme-stregis .btn-submit {
    min-height: 46px;
    font-size: 15px;
  }

  .theme-stregis main > section > .grid.lg\:grid-cols-2 {
    grid-template-columns: minmax(0, 1fr);
  }

  .theme-stregis main > section.bg-bg-card > .type-subtitle {
    margin-bottom: 22px;
  }

  .theme-stregis main > section.bg-bg-card > .grid {
    margin-bottom: 26px;
  }

  .theme-stregis main > section.bg-bg-card > .grid .type-h3 {
    font-size: 25px;
  }

  .theme-stregis main > section.bg-bg-card > .grid .type-body {
    font-size: 17px;
  }

  .theme-stregis .gallery-scroll {
    gap: 14px;
  }

  .theme-stregis .gallery-slide {
    flex-basis: 87%;
  }

  .theme-stregis .gallery-nav {
    width: 34px;
    height: 34px;
    font-size: 20px;
  }

  .theme-stregis .gallery-nav-prev {
    left: 8px;
  }

  .theme-stregis .gallery-nav-next {
    right: 8px;
  }

  .theme-stregis #payment-plan > .grid > div {
    padding: 22px 18px;
  }

  .theme-stregis .payment-pct {
    margin-bottom: 13px;
    font-size: 30px;
  }

  .theme-stregis #payment-plan > .grid .type-body {
    font-size: 15px;
  }

  .theme-stregis #project-resources > .flex {
    margin-bottom: 28px;
  }

  .theme-stregis #project-resources > .grid > div {
    padding: 24px;
  }

  .theme-stregis .type-h3-regular {
    font-size: 25px;
  }

  .theme-stregis #project-resources :is(a, span).underline {
    font-size: 10px;
  }

  .lp-zoom-hint {
    right: 10px;
    bottom: 10px;
    width: 30px;
    height: 30px;
    font-size: 22px;
  }

  .theme-stregis #site-footer > div:first-child {
    display: block;
    padding: 45px var(--sr-gutter);
  }

  .theme-stregis #site-footer .type-h2 {
    font-size: min(34px, 9.8cqi);
  }

  .theme-stregis #site-footer .type-h2 + .type-body {
    margin-top: 17px;
  }

  .theme-stregis #site-footer .registration-form {
    margin-top: 33px;
  }

  .theme-stregis #site-footer .registration-form > .w-full,
  .theme-stregis #site-footer .registration-form > .w-full > .flex {
    gap: 23px;
  }

  .theme-stregis #site-footer > .bg-bg-dark-surface {
    padding: 24px;
  }

  .theme-stregis #site-footer > .bg-bg-dark-surface > div {
    width: 105px;
    height: 37px;
  }

  .theme-stregis .landing-legal {
    padding-top: 23px;
    padding-bottom: 25px;
  }

  .theme-stregis .landing-legal p {
    line-height: 1.65;
  }

  .lp-lightbox {
    width: 96vw;
    max-height: 92vh;
    padding: 12px;
  }

  .lp-lightbox-image {
    height: calc(80vh - 120px);
  }

  .lp-lightbox-close {
    width: 31px;
    height: 31px;
    font-size: 28px;
  }
}

@media (max-width: 360px) {
  .sr-header {
    column-gap: 8px;
  }

  .sr-monogram img {
    width: 26px;
  }

  .sr-wordmark img {
    width: 85px;
  }

  .sr-header-cta {
    width: 100px;
    padding: 8px;
    font-size: 9px;
  }

  .theme-stregis .landing-hero {
    min-height: 450px;
  }

  .theme-stregis .type-h2 {
    font-size: 30px;
  }

  .theme-stregis #payment-plan > .grid > div {
    padding: 20px 15px;
  }

  .theme-stregis #payment-plan > .grid .type-body > p:first-child {
    font-size: 18px;
  }

  .theme-stregis #project-resources > .grid > div {
    padding: 22px 20px;
  }

  .theme-stregis .phone-field .country-list-with-search {
    max-width: 78vw;
  }
}

@media (prefers-reduced-motion: reduce) {
  .theme-stregis *,
  .theme-stregis *::before,
  .theme-stregis *::after {
    transition: none !important;
    animation: none !important;
  }
}
