/*
Theme Name: Nuance Audio Landing
Theme URI: https://www.figma.com/proto/s5C7bn4Ov37DfPMOCpjHvH/Landing-Nuance-Audio
Author: Codex
Description: Landing page for Nuance Audio glasses at ClaraVision Granada.
Version: 1.0.3
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
Text Domain: nuance-audio
*/

:root {
  --nuance-ink: #4b4c62;
  --nuance-muted: #64677c;
  --nuance-blue: #6384c8;
  --nuance-panel: #dceef2;
  --nuance-soft: #f2f2f2;
  --nuance-white: #ffffff;
  --nuance-orange: #f05a28;
  --nuance-line: #54556d;
  --nuance-shadow: 0 26px 70px rgba(51, 54, 74, 0.14);
  --nuance-radius: 8px;
  --nuance-font: "Montserrat", "Inter", "Segoe UI", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body.nuance-audio-landing {
  margin: 0;
  background: var(--nuance-white);
  color: var(--nuance-ink);
  font-family: var(--nuance-font);
  font-size: 18px;
  line-height: 1.5;
}

body.nuance-audio-landing img {
  display: block;
  max-width: 100%;
}

body.nuance-audio-landing a {
  color: inherit;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  border: 0;
  white-space: nowrap;
}

.nuance-page {
  overflow: hidden;
  background: var(--nuance-white);
}

.nuance-section {
  width: 100%;
}

.nuance-wrap {
  width: min(1040px, calc(100% - 40px));
  margin: 0 auto;
}

.nuance-hero {
  position: relative;
  overflow: hidden;
  min-height: 585px;
  background:
    linear-gradient(90deg, rgba(244, 247, 250, 0.25), rgba(244, 247, 250, 0.1)),
    url("assets/images/hero-glasses.webp") center / cover no-repeat;
}

.nuance-hero::after {
  position: absolute;
  inset: 0;
  z-index: 0;
  content: "";
  background: linear-gradient(90deg, rgba(244, 247, 250, 0.16), rgba(244, 247, 250, 0.08));
  pointer-events: none;
}

.nuance-hero__video {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.nuance-hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(420px, 520px);
  gap: 58px;
  width: min(1260px, calc(100% - 84px));
  min-height: 585px;
  margin: 0 auto;
  align-items: end;
  padding: 86px 0 54px;
}

.nuance-hero__copy {
  max-width: 445px;
  padding-bottom: 10px;
}

.nuance-hero h1,
.nuance-form-card h2,
.nuance-intro-card h2,
.nuance-daily h2,
.nuance-moments h2,
.nuance-moment h3,
.nuance-solution h2,
.nuance-location h2,
.nuance-faq summary {
  margin: 0;
  color: var(--nuance-ink);
  font-weight: 800;
  letter-spacing: 0;
}

.nuance-hero h1 {
  color: var(--nuance-blue);
  font-size: clamp(30px, 3vw, 39px);
  line-height: 1.04;
}

.nuance-hero p {
  max-width: 380px;
  margin: 10px 0 0;
  color: #33364a;
  font-size: clamp(18px, 2vw, 23px);
  line-height: 1.38;
}

.nuance-form-card {
  position: relative;
  align-self: center;
  min-height: 420px;
  padding: 52px 64px 48px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.54);
  box-shadow: var(--nuance-shadow);
  backdrop-filter: blur(20px);
}

.nuance-form-card__head {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
  justify-content: center;
  margin-bottom: 26px;
  text-align: center;
}

.nuance-form-card__brand {
  width: 220px;
  flex: 0 0 auto;
}

.nuance-form-card__eyebrow {
  margin: 0;
  color: var(--nuance-ink);
  font-size: 19px;
  line-height: 1.2;
  white-space: nowrap;
}

.nuance-form-card__eyebrow strong {
  font-weight: 800;
}

.nuance-form-card form {
  display: grid;
  gap: 14px;
}

.nuance-field {
  width: 100%;
  min-height: 44px;
  padding: 11px 17px;
  border: 1px solid #4f5266;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.54);
  color: var(--nuance-ink);
  font: 500 15px/1.4 var(--nuance-font);
}

.nuance-field::placeholder {
  color: rgba(75, 76, 98, 0.42);
}

.nuance-submit {
  min-height: 44px;
  border: 0;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--nuance-ink);
  cursor: pointer;
  font: 800 14px/1 var(--nuance-font);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: transform 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}

.nuance-submit:hover,
.nuance-submit:focus-visible {
  background: var(--nuance-white);
  box-shadow: 0 14px 30px rgba(75, 76, 98, 0.18);
  transform: translateY(-1px);
}

.nuance-form-card h2 {
  margin-top: 34px;
  font-size: clamp(25px, 2.4vw, 33px);
  line-height: 1.25;
}

.nuance-alert {
  margin: -2px 0 14px;
  padding: 11px 14px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--nuance-ink);
  font-size: 14px;
  font-weight: 700;
}

.nuance-lifestyle {
  position: relative;
  padding-bottom: 74px;
  background: var(--nuance-white);
}

.nuance-strip {
  height: 320px;
  background: url("assets/images/lifestyle-strip.webp") center / cover no-repeat;
}

.nuance-intro-card {
  width: min(700px, calc(100% - 40px));
  margin: -72px auto 0;
  padding: 40px 44px 42px;
  background: var(--nuance-white);
}

.nuance-intro-card h2 {
  font-size: clamp(25px, 2.4vw, 31px);
  line-height: 1.2;
}

.nuance-intro-card p {
  margin: 20px 0 22px;
  color: var(--nuance-muted);
  font-size: 20px;
  line-height: 1.45;
}

.nuance-steps {
  display: grid;
  gap: 5px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--nuance-muted);
  font-size: 18px;
}

.nuance-steps li {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 6px;
}

.nuance-steps span {
  color: var(--nuance-ink);
  font-weight: 800;
}

.nuance-daily {
  padding: 0 0 86px;
  background: var(--nuance-white);
}

.nuance-daily__inner {
  display: grid;
  grid-template-columns: minmax(260px, 330px) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 56px);
  width: min(1180px, calc(100% - 48px));
  min-height: 174px;
  margin: 0 auto;
  align-items: center;
  justify-content: center;
  padding: 40px clamp(34px, 4vw, 60px);
}

.nuance-daily h2 {
  max-width: 330px;
  font-size: clamp(26px, 1.9vw, 32px);
  line-height: 1.04;
}

.nuance-daily__brand {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: center;
  gap: clamp(18px, 2.4vw, 28px);
  color: #1b1b1d;
}

.nuance-daily__mark {
  display: grid;
  grid-template-columns: 26px 46px 26px 10px;
  gap: 12px;
  align-items: center;
  flex: 0 0 auto;
}

.nuance-daily__mark span {
  display: block;
  background: currentColor;
  border-radius: 999px;
}

.nuance-daily__mark span:nth-child(1) {
  width: 26px;
  height: 17px;
}

.nuance-daily__mark span:nth-child(2) {
  width: 46px;
  height: 56px;
}

.nuance-daily__mark span:nth-child(3) {
  width: 26px;
  height: 44px;
}

.nuance-daily__mark span:nth-child(4) {
  width: 10px;
  height: 17px;
}

.nuance-daily__wordmark {
  min-width: 0;
  color: #1b1b1d;
  font-size: clamp(38px, 4vw, 56px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0;
  white-space: nowrap;
}

.nuance-moments {
  padding: 0 0 78px;
  background: var(--nuance-white);
}

.nuance-moments h2 {
  width: min(900px, calc(100% - 40px));
  margin: 0 auto 38px;
  text-align: center;
  font-size: clamp(26px, 2.5vw, 33px);
}

.nuance-moment {
  display: grid;
  grid-template-columns: 1fr 1.18fr;
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto 38px;
  background: var(--nuance-panel);
}

.nuance-moment--reverse {
  grid-template-columns: 1.18fr 1fr;
}

.nuance-moment__media {
  display: block;
  width: 100%;
  height: 238px;
  object-fit: cover;
}

.nuance-moment__copy {
  display: flex;
  min-height: 238px;
  flex-direction: column;
  justify-content: center;
  padding: 32px 42px;
}

.nuance-moment--reverse .nuance-moment__copy {
  text-align: right;
}

.nuance-moment h3 {
  font-size: clamp(24px, 2.5vw, 31px);
}

.nuance-moment p {
  max-width: 540px;
  margin: 10px 0 0;
  color: var(--nuance-muted);
  font-size: 20px;
  line-height: 1.45;
}

.nuance-moment--reverse p {
  margin-left: auto;
  margin-right: 0;
}

.nuance-solution {
  padding: 84px 0 88px;
  background: var(--nuance-white);
}

.nuance-solution__inner {
  display: grid;
  grid-template-columns: minmax(320px, 613px) minmax(320px, 541px);
  gap: clamp(54px, 7vw, 92px);
  width: min(1260px, calc(100% - 48px));
  margin: 0 auto;
  align-items: center;
  justify-content: center;
}

.nuance-solution__media {
  margin: 0;
}

.nuance-solution__media img {
  width: 100%;
  aspect-ratio: 613 / 245;
  object-fit: cover;
  object-position: center;
}

.nuance-solution__copy {
  max-width: 541px;
}

.nuance-solution__intro {
  margin: 0 0 18px;
  color: var(--nuance-ink);
  font-size: clamp(18px, 1.35vw, 21px);
  line-height: 1.45;
}

.nuance-solution__list {
  display: grid;
  gap: 7px;
  margin: 0;
  color: var(--nuance-ink);
  font-size: clamp(18px, 1.35vw, 21px);
  line-height: 1.45;
}

.nuance-solution__list div {
  padding-left: 26px;
  border-left: 3px solid var(--nuance-line);
}

[data-nuance-reveal] {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 700ms ease, transform 700ms ease;
}

[data-nuance-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  [data-nuance-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

.nuance-location {
  padding: 70px 0 84px;
  background: var(--nuance-white);
}

.nuance-location .nuance-wrap {
  width: min(1800px, calc(100% - 80px));
}

.nuance-location__cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 70px;
  align-items: start;
}

.nuance-location-card {
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: 22px;
  min-width: 0;
}

.nuance-location-card__map {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  background: #eef1f4;
}

.nuance-location-card__map iframe {
  display: block;
  width: 100%;
  height: 300px;
  border: 0;
}

.nuance-location-card__maps-link {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 1;
  padding: 9px 13px;
  border-radius: 3px;
  background: var(--nuance-white);
  color: #3572d9;
  box-shadow: 0 2px 6px rgba(20, 28, 38, 0.18);
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
}

.nuance-location__brand {
  width: min(340px, 100%);
}

.nuance-location h2 {
  margin: 0;
  font-size: clamp(26px, 2.6vw, 32px);
}

.nuance-location-card h3 {
  margin: 18px 0 10px;
  color: #202020;
  font-size: clamp(22px, 2.1vw, 30px);
  font-weight: 800;
  line-height: 1.12;
  text-align: center;
  text-transform: uppercase;
}

.nuance-contact {
  display: grid;
  gap: 12px;
  margin: 0;
  color: #101010;
  font-size: clamp(18px, 1.55vw, 24px);
  font-style: normal;
  font-weight: 700;
  line-height: 1.3;
}

.nuance-contact div {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 14px;
  align-items: start;
}

.nuance-contact__icon {
  display: inline-flex;
  width: 22px;
  height: 22px;
  margin-top: 2px;
  align-items: center;
  justify-content: center;
  color: var(--nuance-ink);
}

.nuance-contact__icon svg {
  display: block;
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nuance-contact a {
  color: inherit;
  text-decoration: none;
}

.nuance-contact a:hover,
.nuance-contact a:focus-visible {
  text-decoration: underline;
}

.nuance-location-card__appointment {
  justify-self: center;
  min-width: 250px;
  margin-top: 28px;
  padding: 18px 28px;
  border-radius: 999px;
  background: var(--nuance-orange);
  color: var(--nuance-white);
  font-size: clamp(18px, 1.6vw, 24px);
  font-weight: 500;
  line-height: 1;
  text-align: center;
  text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease;
}

body.nuance-audio-landing .nuance-location-card__appointment {
  color: var(--nuance-white);
}

.nuance-location-card__appointment:hover,
.nuance-location-card__appointment:focus-visible {
  background: #d84d1d;
  transform: translateY(-1px);
}

.nuance-faq {
  padding: 78px 0 110px;
  background: var(--nuance-white);
}

.nuance-faq__inner {
  width: min(760px, calc(100% - 40px));
  margin: 0 auto;
}

.nuance-faq details {
  position: relative;
  display: block;
  padding: 18px 0 18px 54px;
}

.nuance-faq details::before {
  position: absolute;
  top: 31px;
  left: 4px;
  content: "";
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--nuance-ink);
  border-bottom: 2px solid var(--nuance-ink);
  transform: rotate(-45deg);
  transition: transform 180ms ease;
}

.nuance-faq details[open]::before {
  transform: rotate(45deg);
}

.nuance-faq summary {
  list-style: none;
  cursor: pointer;
  font-size: clamp(23px, 2.5vw, 30px);
  line-height: 1.22;
}

.nuance-faq summary::-webkit-details-marker {
  display: none;
}

.nuance-faq p {
  margin: 10px 0 0;
  color: var(--nuance-muted);
  font-size: 20px;
  line-height: 1.55;
}

.nuance-site-footer {
  background: #4b4c62;
  color: var(--nuance-white);
  font-size: 14px;
}

.nuance-site-footer__inner {
  display: flex;
  width: min(1120px, calc(100% - 40px));
  min-height: 76px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 0 auto;
  padding: 20px 0;
}

.nuance-site-footer p {
  margin: 0;
}

.nuance-site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  justify-content: flex-end;
}

.nuance-site-footer a {
  color: var(--nuance-white);
  text-decoration: none;
}

.nuance-site-footer a:hover,
.nuance-site-footer a:focus-visible {
  text-decoration: underline;
}

.nuance-legal-page {
  background: #f7f8fa;
}

.nuance-legal {
  width: min(920px, calc(100% - 40px));
  margin: 0 auto;
  padding: 70px 0 90px;
}

.nuance-legal__back {
  display: inline-flex;
  margin-bottom: 24px;
  color: var(--nuance-blue);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
}

.nuance-legal__back:hover,
.nuance-legal__back:focus-visible {
  text-decoration: underline;
}

.nuance-legal h1 {
  margin: 0 0 24px;
  color: var(--nuance-ink);
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.08;
}

.nuance-legal__content {
  padding: 38px 42px;
  border-radius: 8px;
  background: var(--nuance-white);
  box-shadow: 0 18px 50px rgba(51, 54, 74, 0.08);
  color: var(--nuance-muted);
  font-size: 17px;
  line-height: 1.7;
}

.nuance-legal__content p {
  margin: 0 0 18px;
}

.nuance-legal__content p:last-child {
  margin-bottom: 0;
}

.nuance-cookie {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 50;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  width: min(760px, calc(100% - 40px));
  padding: 20px;
  border: 1px solid rgba(75, 76, 98, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 20px 60px rgba(51, 54, 74, 0.18);
  color: var(--nuance-ink);
}

.nuance-cookie[hidden] {
  display: none;
}

.nuance-cookie strong {
  display: block;
  margin-bottom: 4px;
  font-size: 16px;
}

.nuance-cookie p {
  margin: 0;
  color: var(--nuance-muted);
  font-size: 14px;
  line-height: 1.45;
}

.nuance-cookie a {
  color: var(--nuance-blue);
  font-weight: 700;
}

.nuance-cookie__actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.nuance-cookie__button {
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid var(--nuance-line);
  border-radius: 8px;
  background: var(--nuance-line);
  color: var(--nuance-white);
  cursor: pointer;
  font: 800 13px/1 var(--nuance-font);
}

.nuance-cookie__button--ghost {
  background: var(--nuance-white);
  color: var(--nuance-line);
}

@media (max-width: 1280px) {
  .nuance-location__cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 48px 36px;
  }
}

@media (max-width: 980px) {
  .nuance-hero__inner {
    grid-template-columns: 1fr;
    gap: 28px;
    align-items: end;
    width: min(720px, calc(100% - 34px));
    padding-top: 54px;
  }

  .nuance-form-card {
    align-self: stretch;
    padding: 44px 34px 38px;
  }

  .nuance-form-card__brand {
    width: 210px;
  }

  .nuance-strip {
    height: 250px;
  }

  .nuance-daily__inner {
    grid-template-columns: 1fr;
    gap: 30px;
    text-align: center;
  }

  .nuance-daily h2 {
    max-width: 620px;
    margin: 0 auto;
  }

  .nuance-solution__inner {
    grid-template-columns: 1fr;
    gap: 34px;
    width: min(720px, calc(100% - 40px));
  }

  .nuance-moment,
  .nuance-moment--reverse {
    grid-template-columns: 1fr;
  }

  .nuance-moment--reverse .nuance-moment__copy {
    order: 2;
  }

  .nuance-moment--reverse .nuance-moment__media {
    order: 1;
  }

  .nuance-site-footer__inner,
  .nuance-cookie {
    grid-template-columns: 1fr;
  }

  .nuance-site-footer__inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .nuance-site-footer__links {
    justify-content: flex-start;
  }

  .nuance-cookie__actions {
    justify-content: flex-start;
  }
}

@media (max-width: 620px) {
  body.nuance-audio-landing {
    font-size: 16px;
  }

  .nuance-hero {
    min-height: auto;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.92) 0%, rgba(255, 255, 255, 0.58) 46%, rgba(255, 255, 255, 0.72) 100%),
      url("assets/images/hero-glasses.webp") 52% top / cover no-repeat;
  }

  .nuance-hero__inner {
    min-height: auto;
    padding: 178px 0 34px;
  }

  .nuance-hero h1 {
    max-width: 330px;
    text-shadow: 0 1px 14px rgba(255, 255, 255, 0.9);
  }

  .nuance-hero p {
    text-shadow: 0 1px 14px rgba(255, 255, 255, 0.9);
  }

  .nuance-hero p,
  .nuance-intro-card p,
  .nuance-moment p,
  .nuance-solution__intro,
  .nuance-solution__list,
  .nuance-contact,
  .nuance-faq p {
    font-size: 17px;
  }

  .nuance-form-card {
    padding: 34px 20px 30px;
  }

  .nuance-form-card__head {
    align-items: center;
    gap: 18px;
  }

  .nuance-form-card__brand {
    width: 190px;
    align-self: center;
  }

  .nuance-form-card__eyebrow {
    font-size: 16px;
    white-space: normal;
  }

  .nuance-intro-card {
    padding: 32px 24px;
  }

  .nuance-daily {
    padding-bottom: 62px;
  }

  .nuance-daily__inner {
    width: min(100% - 28px, 520px);
    min-height: 0;
    padding: 34px 12px 38px;
  }

  .nuance-daily__brand {
    width: 100%;
    gap: 10px;
  }

  .nuance-daily__mark {
    grid-template-columns: 18px 30px 18px 7px;
    gap: 8px;
  }

  .nuance-daily__mark span:nth-child(1) {
    width: 18px;
    height: 12px;
  }

  .nuance-daily__mark span:nth-child(2) {
    width: 30px;
    height: 36px;
  }

  .nuance-daily__mark span:nth-child(3) {
    width: 18px;
    height: 29px;
  }

  .nuance-daily__mark span:nth-child(4) {
    width: 7px;
    height: 12px;
  }

  .nuance-daily__wordmark {
    flex: 0 1 auto;
    max-width: calc(100% - 101px);
    font-size: clamp(28px, 8vw, 34px);
  }

  .nuance-moment {
    width: 100%;
    margin-bottom: 28px;
  }

  .nuance-moment__copy {
    min-height: auto;
    padding: 30px 24px;
  }

  .nuance-solution {
    padding: 52px 0 58px;
  }

  .nuance-solution__inner {
    width: min(100% - 28px, 520px);
  }

  .nuance-solution__list div {
    padding-left: 18px;
  }

  .nuance-location {
    padding: 52px 0;
  }

  .nuance-location .nuance-wrap {
    width: min(520px, calc(100% - 28px));
  }

  .nuance-location__cards {
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .nuance-location-card {
    gap: 18px;
  }

  .nuance-location-card__map iframe {
    height: 230px;
  }

  .nuance-location-card__appointment {
    min-width: min(260px, 100%);
  }

  .nuance-faq details {
    padding-left: 34px;
  }

  .nuance-faq details::before {
    left: 2px;
  }

  .nuance-legal {
    width: min(100% - 28px, 920px);
    padding: 44px 0 60px;
  }

  .nuance-legal__content {
    padding: 26px 22px;
    font-size: 16px;
  }

  .nuance-cookie {
    right: 14px;
    bottom: 14px;
    width: calc(100% - 28px);
    padding: 18px;
  }

  .nuance-cookie__actions {
    flex-direction: column-reverse;
    align-items: stretch;
  }
}
