/* First-paint essentials. Full rules live in styles.css (loaded async). */
:root {
  --color-accent: #AF2832;
  --color-white: #FFFFFF;
  --color-bg: #FFFFFF;
  --color-text: #202220;
  --color-text-secondary: #666866;
  --color-text-muted: #A0A19E;
  --color-line: #E5E5E2;
  --font-sans: "Inter", system-ui, -apple-system, sans-serif;
  --title-size: clamp(1.85rem, 3.6vw, 2.55rem);
  --title-weight: 500;
  --title-leading: 1.15;
  --title-tracking: -0.035em;
  --gutter: clamp(2.5rem, 6.25vw, 7.5rem);
  --max-width: 2560px;
  --header-height: 80px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --motion-reveal: 0.38s;
  --motion-hover: 0.4s;
}

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

html {
  overflow-x: hidden;
}

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

ul {
  list-style: none;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-height);
  background-color: var(--color-bg);
}

body:has(.hero) .site-header {
  background-color: transparent;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.logo {
  display: inline-flex;
  align-items: center;
  line-height: 0;
  flex-shrink: 0;
}

.logo__img {
  display: block;
  width: auto;
  height: 2.25rem;
}

.logo__img--light {
  display: none;
}

body:has(.hero) .site-header:not(.is-scrolled):not(.is-nav-open) .logo__img--dark {
  display: none;
}

body:has(.hero) .site-header:not(.is-scrolled):not(.is-nav-open) .logo__img--light {
  display: block;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.main-nav > a,
.nav-dropdown > .nav-dropdown__trigger {
  font-size: 0.8125rem;
  color: var(--color-text);
  padding: 0.5rem 0;
  background: none;
  border: none;
}

body:has(.hero) .site-header:not(.is-scrolled):not(.is-nav-open) .main-nav > a,
body:has(.hero) .site-header:not(.is-scrolled):not(.is-nav-open) .nav-dropdown__trigger {
  color: var(--color-white);
}

.nav-dropdown__panel {
  display: none;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  padding: 0;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--color-text);
}

body:has(.hero) .site-header:not(.is-scrolled):not(.is-nav-open) .menu-toggle span {
  background-color: var(--color-white);
}

.mobile-nav {
  display: none;
}

@media (max-width: 900px) {
  .main-nav {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }
}

.hero {
  position: relative;
  width: 100%;
  background: var(--color-bg);
}

.hero__stage {
  position: relative;
  display: flex;
  align-items: flex-end;
  width: 100%;
  height: calc(100vh + 12rem);
  min-height: calc(620px + 12rem);
  overflow: hidden;
  background: var(--color-bg);
}

.hero__media {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(32, 34, 32, 0.32) 0%, transparent 22%),
    linear-gradient(90deg, rgba(32, 34, 32, 0.62) 0%, rgba(32, 34, 32, 0.28) 46%, transparent 72%);
  -webkit-mask-image: linear-gradient(180deg, #000 calc(100% - 11rem), transparent calc(100% - 1.5rem));
  mask-image: linear-gradient(180deg, #000 calc(100% - 11rem), transparent calc(100% - 1.5rem));
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 2;
  width: calc((100% - 2 * var(--gutter)) * 7 / 12);
  max-width: 50rem;
  margin: 0 var(--gutter);
  padding-top: clamp(6rem, 12vw, 10rem);
  padding-bottom: calc(12rem + 1.75rem);
  color: var(--color-white);
}

.hero__eyebrow {
  margin-bottom: 1.35rem;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: #fff;
}

.hero__content h1 {
  margin-bottom: 0;
  max-width: 11ch;
  font-size: clamp(3.6rem, 8.4vw, 7.15rem);
  font-weight: 500;
  line-height: 0.9;
  letter-spacing: -0.06em;
}

.hero__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 44%;
  filter: saturate(0.72) contrast(1.04);
  -webkit-mask-image: linear-gradient(180deg, #000 calc(100% - 9rem), transparent 100%);
  mask-image: linear-gradient(180deg, #000 calc(100% - 9rem), transparent 100%);
}

.offer-page {
  padding-top: var(--header-height);
  background: var(--color-bg);
}

.offer-hero {
  padding: clamp(2.25rem, 4.5vw, 3.75rem) 0 clamp(3rem, 6vw, 5rem);
}

.offer-hero__title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: clamp(1.25rem, 3vw, 2.5rem);
  margin-bottom: clamp(1.5rem, 3vw, 2.25rem);
}

.offer-hero h1 {
  width: 50%;
  max-width: 50%;
  margin-bottom: clamp(1.5rem, 3vw, 2.25rem);
  font-size: var(--title-size);
  font-weight: var(--title-weight);
  line-height: var(--title-leading);
  letter-spacing: var(--title-tracking);
}

.offer-hero__title-row h1 {
  width: auto;
  max-width: 18ch;
  margin-bottom: 0;
}

.offer-hero__kicker {
  margin-bottom: 0.85rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent);
}

.offer-emergency {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: clamp(7.25rem, 12vw, 9.5rem);
  aspect-ratio: 1;
  margin-top: 0.15rem;
  border-radius: 50%;
  background: var(--color-accent);
  color: var(--color-white);
  text-align: center;
  text-decoration: none;
}

.offer-emergency__text {
  display: block;
  max-width: 7.5em;
  font-size: clamp(0.78rem, 1.15vw, 0.92rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.offer-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: clamp(1.75rem, 3.5vw, 3rem);
  align-items: stretch;
}

.offer-hero__media {
  overflow: hidden;
  border-radius: 1.5rem;
  background: var(--color-line);
  aspect-ratio: 3 / 2;
  min-height: clamp(240px, 34vw, 480px);
}

.offer-hero__media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.offer-hero__lead {
  margin: 0 0 1.25rem;
  font-size: clamp(0.9375rem, 1.15vw, 1.0625rem);
  line-height: 1.55;
  color: var(--color-text-secondary);
}

.offer-relevant {
  margin-bottom: 1.5rem;
}

.offer-relevant ul {
  display: grid;
  gap: 0.45rem;
}

.offer-relevant li {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.95rem;
}

.offer-relevant svg {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
}

.offer-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.95rem 1.45rem;
  border: 1px solid var(--color-accent);
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
}

.offer-cta svg {
  width: 18px;
  height: 18px;
}

.offer-hero__act .offer-now {
  margin: 0.75rem 0 0;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--color-accent);
}

/* Prevent below-fold SVGs from blowing the layout before full CSS arrives */
main svg {
  max-width: 100%;
}

@media (max-width: 1100px) {
  .offer-hero h1 {
    width: 100%;
    max-width: none;
  }

  .offer-hero__title-row {
    flex-wrap: wrap;
    align-items: center;
  }

  .offer-emergency {
    width: clamp(6.5rem, 28vw, 8rem);
  }

  .offer-hero__grid {
    grid-template-columns: 1fr;
  }

  .offer-hero__media {
    order: -1;
    aspect-ratio: 16 / 10;
    min-height: 0;
  }
}

@media (max-width: 900px) {
  .hero__stage {
    height: calc(100vh + 9rem);
    min-height: calc(520px + 9rem);
  }

  .hero__content {
    width: calc(100% - 2 * var(--gutter));
    max-width: none;
    padding-bottom: calc(9rem + 1.35rem);
  }

  .hero__content h1 {
    font-size: clamp(2.6rem, 11vw, 3.8rem);
  }
}

.insights-hero {
  margin-top: var(--header-height);
  padding: clamp(4.25rem, 10vw, 7.5rem) 0 clamp(2.25rem, 5vw, 3.5rem);
}

.insights-hero h1 {
  font-size: var(--title-size);
  font-weight: var(--title-weight);
  letter-spacing: var(--title-tracking);
  line-height: var(--title-leading);
  margin-bottom: 1.35rem;
}

.ed-article {
  margin-top: var(--header-height);
  padding: clamp(2.5rem, 5vw, 4rem) 0 clamp(4rem, 8vw, 6rem);
}

.ed-frame {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0 var(--gutter);
}

@media (min-width: 900px) {
  .ed-frame {
    width: calc(100vw * 2 / 3);
  }
}

.contact-popup {
  position: fixed;
  inset: 0;
  z-index: 400;
  pointer-events: none;
}

.contact-popup__panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(40rem, 100%);
  transform: translateX(100%);
}

.ed-title {
  margin: 0 0 0.85rem;
  font-size: var(--title-size);
  font-weight: var(--title-weight);
  letter-spacing: var(--title-tracking);
  line-height: var(--title-leading);
}

.ed-hero {
  margin: 0 0 2rem;
}

.ed-hero img {
  width: 100%;
  display: block;
  object-fit: cover;
  border-radius: 1rem;
  aspect-ratio: 16 / 10;
  max-height: min(40rem, 52vw);
}
