/**
 * Norvado WD — parity with WP/Breakdance Figma home
 */

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: var(--text-body);
  line-height: var(--text-body-lh);
  color: var(--color-text);
  background: var(--color-surface);
}

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

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

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.4rem;
  border-radius: 999px;
  border: 2px solid transparent;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  line-height: 1.2;
}

.btn--fern {
  background: var(--color-fern);
  color: var(--color-pine-dark);
  border-color: var(--color-fern);
}

.btn--fern:hover {
  background: var(--color-fern-60);
}

.btn--ghost-light {
  background: transparent;
  color: var(--color-on-pine);
  border-color: color-mix(in srgb, var(--color-on-pine) 70%, transparent);
}

.btn--outline-pine {
  background: transparent;
  color: var(--color-pine);
  border-color: var(--color-pine);
}

.btn--outline-pine:hover {
  background: var(--color-fern-15);
}

/* —— Header (pine pill, overlay) — matches WP #nv-nav-pill —— */
.nv-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  padding: 24px 24px 0;
  pointer-events: none;
}

.nv-header__pill {
  pointer-events: auto;
  width: 100%;
  max-width: none;
  margin: 0 auto;
  min-height: 62px;
  padding: 10px 24px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 0;
  background: var(--color-pine);
  border-radius: 24px;
}

.nv-header__left,
.nv-header__right {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 1.1rem;
}

.nv-header__right {
  justify-content: flex-end;
}

.nv-header__brand {
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border-radius: 0;
  padding: 0;
  line-height: 0;
}

.nv-header__brand img {
  width: 180px;
  height: 38px;
  object-fit: contain;
}

.nv-header__link,
.nv-nav-drop > summary {
  list-style: none;
  cursor: pointer;
  color: var(--color-on-pine);
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 400;
  background: none;
  border: 0;
  padding: 0.25rem 0;
}

.nv-nav-drop > summary::-webkit-details-marker {
  display: none;
}

.nv-header__link--caps,
.nv-header__right .nv-nav-drop > summary {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.nv-nav-drop {
  position: relative;
}

.nv-nav-drop__menu {
  position: absolute;
  top: calc(100% + 0.55rem);
  left: 0;
  min-width: 12rem;
  padding: 0.55rem;
  background: var(--color-panel);
  border-radius: 12px;
  box-shadow: 0 12px 28px color-mix(in srgb, var(--color-ink) 18%, transparent);
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  z-index: 60;
}

.nv-nav-drop--right .nv-nav-drop__menu {
  left: auto;
  right: 0;
}

.nv-nav-drop__menu a {
  color: var(--color-pine);
  font-size: 0.9rem;
  padding: 0.45rem 0.55rem;
  border-radius: 8px;
}

.nv-nav-drop__menu a:hover {
  background: var(--color-fern-15);
}

.nv-header__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border: 0;
  background: transparent;
  cursor: pointer;
  border-radius: 999px;
  padding: 0;
}

.nv-header__icon:hover {
  background: color-mix(in srgb, var(--color-on-pine) 12%, transparent);
}

.nv-header__icon img {
  width: 20px;
  height: 20px;
  filter: brightness(0) invert(1);
}

/* Address sheet */
.nv-address-sheet {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: color-mix(in srgb, var(--color-ink) 45%, transparent);
  display: grid;
  place-items: start center;
  padding: 5rem 1rem 2rem;
}

.nv-address-sheet[hidden] {
  display: none !important;
}

.nv-address-sheet__panel {
  width: min(40rem, 100%);
  background: var(--color-panel);
  border-radius: 20px;
  padding: 1.5rem 1.35rem 1.35rem;
  position: relative;
  box-shadow: 0 20px 50px color-mix(in srgb, var(--color-ink) 30%, transparent);
}

.nv-address-sheet__close {
  position: absolute;
  top: 0.65rem;
  right: 0.85rem;
  border: 0;
  background: none;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  color: var(--color-muted);
}

.nv-address-sheet__title {
  margin: 0 0 0.85rem;
  font-family: var(--font-heading);
  font-size: 1.6rem;
  color: var(--color-pine);
}

.nv-address-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.nv-address-form input {
  flex: 1 1 14rem;
  min-width: 0;
  padding: 0.85rem 1rem;
  border: 1px solid var(--color-line);
  border-radius: 999px;
  font: inherit;
  background: var(--color-cloud-light);
}

.nv-address-results {
  margin-top: 0.65rem;
  max-height: 14rem;
  overflow: auto;
  border: 1px solid var(--color-line);
  border-radius: 12px;
}

.nv-address-results .result-item {
  padding: 0.65rem 0.85rem;
  cursor: pointer;
  border-bottom: 1px solid var(--color-line);
  font-size: 0.9rem;
}

.nv-address-results .result-item:hover {
  background: var(--color-fern-15);
}

.nv-address-status {
  margin: 0.55rem 0 0;
  font-size: 0.85rem;
  color: var(--color-muted);
}

.nv-address-status.is-error {
  color: var(--color-error);
}

/* —— Hero —— */
.nv-hero {
  position: relative;
  min-height: 1028px;
  color: var(--color-on-pine);
  border-bottom-left-radius: 32px;
  border-bottom-right-radius: 32px;
  overflow: hidden;
  background-color: var(--color-pine-dark);
  background-image: url("../assets/images/Hero-Image.png");
  background-repeat: no-repeat;
  background-position: center top;
  background-size: cover;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 24px 32px;
}

.nv-hero__copy {
  max-width: 1392px;
  width: 100%;
  margin: 190px auto 0;
  text-align: left;
}

.nv-hero__headline {
  margin: 0;
  max-width: 14ch;
  font-family: var(--font-heading);
  font-size: clamp(2.6rem, 5.2vw, 3.375rem);
  font-weight: 600;
  line-height: 1.1;
  white-space: pre-line;
  color: #fff;
}

.nv-hero__lead {
  margin: 40px 0 0;
  max-width: 36rem;
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 155%;
  font-weight: 400;
  color: #fff;
}

.nv-hero__products {
  max-width: 1392px;
  width: 100%;
  margin: 190px auto 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  list-style: none;
  padding: 0;
}

.nv-product {
  position: relative;
  display: block;
  height: 240px;
  overflow: hidden;
  border-radius: 20px;
  background: rgba(243, 243, 236, 0.2);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  color: #fff;
  border: 0;
  transition: background 0.2s ease;
}

.nv-product:hover {
  background: rgba(243, 243, 236, 0.28);
}

.nv-product__top {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 16px 14px 0;
}

.nv-product__top h3 {
  margin: 0;
  flex: 1 0 0;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 155%;
  color: #fff;
}

.nv-product__arrow {
  width: 30px;
  height: 30px;
  border-radius: 32px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.2);
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  aspect-ratio: 1 / 1;
}

.nv-product__arrow-icon {
  width: 10px;
  height: 10px;
  border-right: 2px solid #fff;
  border-top: 2px solid #fff;
  transform: rotate(45deg);
  margin-left: -2px;
}

.nv-product img {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: none;
  height: 178px;
  object-fit: cover;
  object-position: center bottom;
  margin: 0;
  display: block;
}

/* —— Sections —— */
.nv-section {
  padding: 120px 100px;
  background: var(--color-cloud);
}

.nv-section--wide .nv-section__inner {
  max-width: 1240px;
}

.nv-section__inner {
  max-width: 1240px;
  margin: 0 auto;
}

.nv-section__title {
  margin: 0 0 0.65rem;
  font-family: var(--font-heading);
  font-size: clamp(2rem, 3.8vw, 3rem);
  color: var(--color-pine);
  line-height: 1.1;
  text-align: center;
}

.nv-section__lead {
  margin: 0 auto 2.5rem;
  max-width: 42rem;
  text-align: center;
  color: var(--color-muted);
  font-size: 1.125rem;
  line-height: 1.55;
}

.nv-section__lead--tight {
  margin-bottom: 2rem;
}

.nv-section--pine {
  background-color: var(--color-pine);
  color: var(--color-on-pine);
}

.nv-section--waves {
  position: relative;
  overflow: hidden;
  background-image: url("../assets/images/norvado-footer-waves.png");
  background-size: cover;
  background-position: center;
}

.nv-section--pine .nv-section__title {
  color: var(--color-on-pine);
}

.nv-section--pine .nv-section__lead {
  color: color-mix(in srgb, var(--color-on-pine) 88%, transparent);
}

.nv-bundle-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: start;
}

.nv-bundle {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  background: transparent;
  border: 0;
  padding: 0;
}

.nv-bundle__card {
  min-height: 287px;
  padding: 32px;
  border-radius: 16px;
  background: #fff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  box-shadow: 0 8px 28px rgba(17, 22, 20, 0.06);
}

.nv-bundle--featured .nv-bundle__card {
  background: var(--color-pine);
  color: #fff;
}

.nv-bundle h3 {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 1.75rem;
  color: var(--color-pine);
  text-transform: lowercase;
}

.nv-bundle--featured h3,
.nv-bundle--featured .nv-bundle__price,
.nv-bundle--featured .nv-bundle__price span,
.nv-bundle--featured .nv-bundle__card p,
.nv-bundle--featured .nv-bundle__cta {
  color: #fff !important;
}

.nv-bundle__price {
  margin: 0 !important;
  color: var(--color-pine) !important;
  font-size: 1rem !important;
}

.nv-bundle__price span {
  display: block;
  font-family: var(--font-heading);
  font-size: 2.25rem;
  font-weight: 600;
  line-height: 1.1;
}

.nv-bundle__card > p {
  margin: 0;
  color: var(--color-muted);
  font-size: 0.95rem;
}

.nv-bundle__cta {
  display: inline-flex;
  align-self: flex-start;
  color: var(--color-pine);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.nv-bundle__included {
  margin: 0 !important;
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--color-pine) !important;
  font-size: 1.15rem !important;
}

.nv-bundle > ul {
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--color-stone);
  font-size: 0.9rem;
}

.nv-bundle > ul li {
  position: relative;
  padding-left: 1.5rem;
  margin-top: 0.45rem;
}

.nv-bundle > ul li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--color-pine);
  font-weight: 700;
}

.nv-bundle-disclaimer {
  margin: 1.5rem 0 0;
  text-align: center;
  color: var(--color-muted);
  font-size: 0.9rem;
}

.nv-bundle-help {
  margin-top: 3.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 2rem 0 0;
  border-top: 1px solid var(--color-line);
}

.nv-bundle-help h3 {
  margin: 0 0 0.35rem;
  font-family: var(--font-heading);
  font-size: 1.75rem;
  color: var(--color-pine);
}

.nv-bundle-help p {
  margin: 0;
  color: var(--color-muted);
}

.nv-bundle-help__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.nv-section--waves.nv-section--pine {
  padding-bottom: 4rem;
}

.nv-uptime {
  max-width: 720px;
}

.nv-uptime .nv-section__title,
.nv-uptime .nv-section__lead {
  text-align: left;
  margin-left: 0;
  margin-right: 0;
}

.nv-uptime__stat {
  margin: 1.5rem 0 0;
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  line-height: 1;
  color: var(--color-fern);
  letter-spacing: 0.04em;
}

.nv-uptime__stat span {
  display: block;
}

.nv-quotes {
  margin-top: 3.5rem;
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding: 0 max(100px, calc((100vw - 1440px) / 2 + 100px)) 0;
  box-sizing: border-box;
}

.nv-quotes__track {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.nv-quote {
  display: none;
  margin: 0;
  padding: 1.75rem;
  border-radius: 16px;
  background: #fff;
  color: var(--color-pine);
  min-height: 220px;
}

.nv-quote.is-active {
  display: block;
}

.nv-quote__stars {
  margin: 0 0 0.75rem;
  color: var(--color-magic-hour);
  letter-spacing: 0.08em;
  font-size: 1.25rem;
}

.nv-quote blockquote {
  margin: 0;
}

.nv-quote p {
  margin: 0 0 0.85rem;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  line-height: 1.4;
  color: var(--color-pine);
}

.nv-quote cite {
  font-style: normal;
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--color-ink);
}

.nv-quotes__navs {
  display: flex;
  justify-content: flex-end;
  gap: 0.65rem;
  margin-top: 1.25rem;
  padding-right: 0;
}

.nv-quotes__nav {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 0;
  background: transparent;
  color: var(--color-fern);
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
}

.nv-quotes__nav--prev {
  color: color-mix(in srgb, var(--color-on-pine) 55%, transparent);
}

.nv-business {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: center;
}

.nv-business__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.nv-business__photos {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 0.65rem;
}

.nv-business__photos img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
  min-height: 140px;
}

.nv-business__photos img:first-child {
  grid-row: span 2;
  min-height: 300px;
}

.nv-cta-wrap {
  background: transparent;
  padding: 60px 24px 100px;
}

.nv-cta-panel {
  max-width: 1240px;
  min-height: 415px;
  margin: 0 auto;
  padding: 100px 48px;
  border-radius: 32px;
  background: var(--color-magic-hour-accessible);
  color: #fff;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
}

.nv-cta-panel h2 {
  margin: 0;
  font-family: var(--font-heading);
  font-size: clamp(2.4rem, 5vw, 3.375rem);
  line-height: 1.1;
}

.nv-cta-panel p {
  margin: 0;
  max-width: 36rem;
  font-size: 1.125rem;
  line-height: 1.55;
}

.nv-cta-panel__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
}

.nv-footer {
  position: relative;
  background-color: var(--color-pine-dark);
  background-image: url("../assets/images/norvado-footer-waves.png");
  background-size: cover;
  background-position: center top;
  color: color-mix(in srgb, var(--color-on-pine) 88%, transparent);
  padding: 304px 100px 3rem;
}

.nv-footer__inner {
  max-width: 1240px;
  margin: 0 auto;
}

.nv-footer__top {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 2rem;
  margin-bottom: 3rem;
}

.nv-footer__brand img {
  height: 34px;
  width: auto;
  margin-bottom: 0.75rem;
  filter: brightness(0) invert(1);
}

.nv-footer__brand p {
  margin: 0;
  max-width: 18rem;
  font-size: 1.05rem;
}

.nv-footer__offices {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.nv-footer__links {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1.25rem;
  padding-top: 2rem;
  border-top: 1px solid color-mix(in srgb, var(--color-on-pine) 18%, transparent);
}

.nv-footer__links a {
  display: block;
  margin-top: 0.35rem;
  color: color-mix(in srgb, var(--color-on-pine) 82%, transparent);
  font-size: 0.92rem;
}

.nv-footer__links a:hover {
  color: var(--color-fern);
}

.nv-footer h3 {
  margin: 0 0 0.45rem;
  font-family: var(--font-heading);
  font-size: 1.15rem;
  color: var(--color-on-pine);
}

.nv-footer p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.45;
}

.nv-footer__meta {
  margin-top: 2.5rem;
  font-size: 0.85rem;
}

.nv-footer a {
  color: var(--color-fern-60);
}

@media (max-width: 1100px) {
  .nv-header__pill {
    grid-template-columns: auto 1fr;
  }

  .nv-header__left {
    display: none;
  }

  .nv-header__brand {
    order: -1;
    justify-self: start;
  }

  .nv-hero {
    height: auto;
    min-height: 100dvh;
  }

  .nv-hero__copy {
    margin-top: 140px;
  }

  .nv-hero__products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 3rem;
  }

  .nv-section,
  .nv-footer {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }

  .nv-footer {
    padding-top: 10rem;
  }

  .nv-bundle-grid,
  .nv-quotes__track,
  .nv-business,
  .nv-footer__top,
  .nv-footer__offices,
  .nv-footer__links {
    grid-template-columns: 1fr;
  }

  .nv-quotes {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

@media (max-width: 640px) {
  .nv-header {
    padding: 16px 12px 0;
  }

  .nv-hero__products {
    grid-template-columns: 1fr;
  }

  .nv-product {
    height: 220px;
  }

  .nv-cta-panel {
    padding: 3rem 1.5rem;
    min-height: 0;
  }

  .nv-section {
    padding: 4rem 1.25rem;
  }
}
