/* Ice Dental Newark priority list. Values follow the landing page options
   deck (option A), mobile first, desktop layout from 900px. Colours are the
   Ice Dental palette (Chair & Clay). */

@font-face {
  font-family: 'Figtree';
  src: url('figtree-latin-wght-normal.woff2') format('woff2-variations');
  font-weight: 300 900;
  font-display: swap;
}
@font-face {
  font-family: 'Newsreader';
  src: url('newsreader-latin-opsz-normal.woff2') format('woff2-variations');
  font-weight: 200 800;
  font-display: swap;
}

:root {
  --ground: #fbf6ef;
  --surface: #ffffff;
  --sand: #f0e8dc;
  --line: #e2d8c9;
  --line-strong: #cfc3b1;
  --ink: #131d29;
  --text2: #3b4651;
  --action: #25476a;
  --action-hover: #1a3550;
  --on-action: #fbf6ef;
  --clay: #9a5b41;
  --clay-soft: #e0a88e;
  --deep: #172a3f;
  --deep-text2: #d6dce2;
  --deep-muted: #c9d1d9;
  --serif: 'Newsreader', Georgia, serif;
  --sans: 'Figtree', -apple-system, 'Segoe UI', sans-serif;
  --gutter: 20px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font: 400 16px/normal var(--sans);
}
img {
  display: block;
  max-width: 100%;
}
a {
  color: inherit;
}
h1,
h2 {
  font-family: var(--serif);
  font-weight: 400;
  margin: 0;
  text-wrap: pretty;
}
p {
  margin: 0;
}
:focus-visible {
  outline: 3px solid var(--clay);
  outline-offset: 2px;
}
.wrap {
  width: 100%;
  max-width: calc(1212px + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.d-only {
  display: none !important;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 52px;
  padding: 0 20px;
  border: 0;
  border-radius: 8px;
  background: var(--action);
  color: var(--on-action);
  font: 500 16px var(--sans);
  text-decoration: none;
  cursor: pointer;
}
.btn:hover {
  background: var(--action-hover);
}
.btn--block {
  display: flex;
  width: 100%;
}

/* ---------- header ---------- */
.strapline {
  padding: 9px 16px;
  background: var(--action);
  color: var(--on-action);
  font-size: 13px;
  font-weight: 500;
  text-align: center;
}
.head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 12px;
}
.logo {
  width: auto;
  height: 38px;
  mix-blend-mode: multiply;
}
.head-tools {
  display: flex;
  align-items: center;
  gap: 24px;
}
.head-note {
  font-size: 14px;
  color: var(--text2);
}
.head-phone {
  display: flex;
  align-items: center;
  height: 44px;
  padding: 0 14px;
  border: 1px solid var(--action);
  border-radius: 8px;
  color: var(--action);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}

/* ---------- hero (light on phones, navy band with the form on desktop) ---------- */
.m-photo {
  display: block;
  width: 100%;
  height: 230px;
  object-fit: cover;
  background: var(--sand);
}
.hero-inner {
  display: grid;
  padding-inline: 0;
}
.hero-text {
  padding: 28px var(--gutter) 32px;
}
.eyebrow {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--clay);
}
h1 {
  margin: 10px 0 12px;
  font-size: 37px;
  line-height: 1.08;
  letter-spacing: -0.01em;
}
.lede {
  font-size: 16px;
  line-height: 1.6;
  color: var(--text2);
}
.hero-cta {
  margin-top: 20px;
}
.trust {
  display: grid;
  margin-top: 18px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text2);
  text-align: center;
}
.stars {
  color: var(--clay);
  letter-spacing: 1px;
}
.reg span + span::before {
  content: ' · ';
}
.steps {
  display: grid;
  gap: 8px;
  margin: 0 0 22px;
  padding: 0;
  list-style: none;
  counter-reset: step;
  font-size: 15px;
  line-height: 1.45;
  color: var(--text2);
}
.steps li {
  counter-increment: step;
  display: flex;
  gap: 10px;
}
.steps li::before {
  content: counter(step);
  color: var(--clay);
  font-weight: 600;
}

/* ---------- the form ---------- */
.join {
  padding: 36px var(--gutter);
  background: var(--sand);
  scroll-margin-top: 12px;
}
.join h2 {
  margin-bottom: 14px;
  font-size: 29px;
  line-height: 1.12;
}
.form {
  display: grid;
  gap: 12px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  font-size: 13.5px;
  font-weight: 500;
}
.field input,
.field select {
  width: 100%;
  min-width: 0;
  height: 50px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  font: 400 16px var(--sans);
}
.field select {
  padding-inline: 10px;
}
.submit {
  height: 54px;
  margin-top: 4px;
}
.note {
  font-size: 13px;
  line-height: 1.45;
  color: var(--text2);
  text-align: center;
}
.hp {
  position: absolute;
  left: -9999px;
}

/* ---------- treatments and team ---------- */
.info {
  display: grid;
  padding-inline: 0;
}
.offer,
.team {
  padding: 40px var(--gutter);
}
.team {
  background: var(--sand);
}
.info h2,
.where h2 {
  font-size: 29px;
  line-height: 1.12;
}
.rows {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}
.rows li {
  display: grid;
  gap: 3px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}
.rows li:last-child {
  border-bottom: 1px solid var(--line);
}
.rows strong {
  font-size: 16px;
  font-weight: 600;
}
.rows span {
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--text2);
}
.team p {
  margin: 10px 0 20px;
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--text2);
}
.people {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.people figure {
  margin: 0;
}
.people img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 10px;
}
.people figcaption {
  display: grid;
  margin-top: 10px;
}
.people strong {
  font-size: 15px;
  font-weight: 600;
}
.people span {
  font-size: 12.5px;
  color: var(--text2);
}

/* ---------- where to find us ---------- */
.where {
  padding-block: 40px;
}
.where-photo {
  width: 100%;
  height: 190px;
  margin-top: 16px;
  object-fit: cover;
  border-radius: 10px;
}
.where-address {
  margin-top: 16px;
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--text2);
}
.where-address strong {
  color: var(--ink);
}
.map {
  height: 240px;
  margin-top: 16px;
  overflow: hidden;
  border-radius: 10px;
  background: var(--sand);
}
.map iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ---------- closing band and footer ---------- */
.closing {
  background: var(--deep);
  color: var(--on-action);
}
.closing-inner {
  display: grid;
  gap: 20px;
  padding-block: 40px 20px;
}
.closing h2 {
  margin-bottom: 10px;
  font-size: 30px;
  line-height: 1.12;
}
.closing p {
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--deep-text2);
}
.closing-cta {
  display: flex;
  width: 100%;
  background: var(--on-action);
  color: var(--deep);
}
.closing-cta:hover {
  background: #fff;
}
.legal {
  padding-block: 20px 40px;
  background: var(--deep);
  max-width: none;
  color: var(--deep-muted);
  font-size: 12px;
  line-height: 1.55;
}

/* ---------- desktop ---------- */
@media (min-width: 900px) {
  :root {
    --gutter: 48px;
  }
  .m-only {
    display: none !important;
  }
  .d-only {
    display: revert !important;
  }
  .btn.d-only {
    display: inline-flex !important;
  }
  .steps.d-only {
    display: grid !important;
  }

  .head {
    padding-block: 16px;
  }
  .logo {
    height: 48px;
  }
  .head-phone {
    height: auto;
    padding: 0;
    border: 0;
    color: var(--action);
    font-size: 16px;
    font-weight: 600;
  }
  .head .btn {
    height: 46px;
    font-size: 15px;
  }

  .hero {
    background: var(--deep);
  }
  .hero-inner {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    gap: 56px;
    align-items: center;
    padding: 72px var(--gutter);
  }
  .hero-text {
    padding: 0;
  }
  .hero .eyebrow {
    font-size: 12.5px;
    color: var(--clay-soft);
  }
  .hero h1 {
    margin: 14px 0 18px;
    font-size: clamp(44px, 5.3vw, 64px);
    line-height: 1.04;
    letter-spacing: -0.015em;
    color: var(--on-action);
  }
  .hero .lede {
    max-width: 46ch;
    font-size: 18px;
    color: var(--deep-text2);
  }
  .hero .steps {
    line-height: normal;
    gap: 10px;
    margin: 28px 0 0;
    font-size: 16px;
    color: var(--on-action);
  }
  .hero .steps li {
    gap: 12px;
  }
  .hero .steps li::before {
    color: var(--clay-soft);
  }
  .trust {
    line-height: normal;
    display: flex;
    gap: 22px;
    margin-top: 32px;
    font-size: 14px;
    color: var(--deep-text2);
    text-align: left;
  }
  .trust .stars {
    color: var(--clay-soft);
  }
  .reg {
    display: flex;
    gap: 22px;
  }
  .reg span + span::before {
    content: none;
  }

  .join {
    padding: 32px;
    border-radius: 14px;
    background: var(--ground);
  }
  .join h2 {
    margin-bottom: 20px;
    font-size: 30px;
  }
  .form {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 14px;
  }
  .full {
    grid-column: 1 / -1;
  }
  .submit {
    height: 56px;
    margin-top: 0;
  }
  .note {
    line-height: normal;
  }

  .photos {
    display: grid !important;
    grid-template-columns: 1fr 1.5fr;
    gap: 16px;
    margin-top: 16px;
  }
  .photos img,
  .photos img-auto-parallax {
    display: block;
    width: 100%;
    height: 380px;
    object-fit: cover;
    border-radius: 10px;
  }

  .info {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 72px;
    padding: 88px var(--gutter);
  }
  .offer,
  .team {
    padding: 0;
    background: none;
  }
  .info h2 {
    font-size: 40px;
    line-height: 1.1;
  }
  .rows {
    margin-top: 22px;
  }
  .rows strong {
    font-size: 18px;
  }
  .rows span {
    font-size: 15px;
  }
  .team p {
    margin: 12px 0 22px;
    font-size: 17px;
  }
  .people {
    gap: 14px;
    max-width: 400px;
  }

  .where {
    padding-block: 0 88px;
  }
  .map {
    height: 400px;
    margin-top: 0;
  }

  .closing {
    background: var(--sand);
    color: var(--ink);
  }
  .closing-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    padding-block: 48px;
  }
  .closing h2 {
    margin-bottom: 8px;
    font-size: 34px;
    line-height: 1.1;
  }
  .closing p {
    font-size: 16px;
    line-height: normal;
    color: var(--text2);
  }
  .closing p a {
    text-decoration: none;
  }
  .closing-cta {
    flex: 0 0 auto;
    width: auto;
    height: 56px;
    padding: 0 28px;
    background: var(--action);
    color: var(--on-action);
  }
  .closing-cta:hover {
    background: var(--action-hover);
  }
  .legal {
    padding-block: 20px;
    background: var(--ground);
    color: var(--text2);
    max-width: calc(1212px + 2 * var(--gutter));
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

/* ---------- amendments from the call (1 Dec) ---------- */
/* Free consultation and 0% finance, up front in the hero. */
.offers {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}
.offers li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border: 1px solid var(--clay);
  border-radius: 999px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
}
.offers li::before {
  content: '\2713';
  color: var(--clay);
  font-weight: 700;
}

/* The features band under the hero. */
.features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px 16px;
  padding-block: 32px;
}
.features div {
  display: grid;
  gap: 2px;
}
.features strong {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 400;
  line-height: 1.1;
}
.features span {
  font-size: 14px;
  line-height: 1.4;
  color: var(--text2);
}

@media (min-width: 900px) {
  .hero .offers {
    margin-top: 24px;
  }
  .hero .offers li {
    border-color: var(--clay-soft);
    color: var(--on-action);
    font-size: 16px;
  }
  .hero .offers li::before {
    color: var(--clay-soft);
  }
  .features {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
    padding-block: 40px 24px;
  }
  .features strong {
    font-size: 36px;
  }
  .features span {
    font-size: 15px;
  }
  /* The interior photo alone under the hero; the exterior sits beside the map. */
  .photos {
    grid-template-columns: 1fr;
    margin-top: 0;
  }
  .where {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 16px;
  }
  .where-photo {
    height: 400px;
    margin-top: 0;
  }
}

/* Privacy link under the form (both layouts). */
.note.privacy {
  margin-top: -6px;
}
.note a {
  color: inherit;
  text-underline-offset: 2px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
