/* Rockland Beauty — /contacts.
   Recomposed into the canonical DESIGN.md "light clinic-atelier" world:
   warm ivory ground, pale lavender / warm sand rounded panels, deep plum
   (#413033) text and compact capsule CTAs, Hatton display serif + Helvetica
   Now, 20-40px radii, the signature arched frames, layered soft-shadow
   photography and one calm, reduced-motion-aware movement system
   (arrival reveals, image breath, depth drift, micro-touches).
   The page tells one story: see the practice, learn how to reach and visit
   it, and meet the physician before scheduling a consultation. */

:root {
  --rbw-cream: #fdf9f2;
  --rbw-cream-2: #f6edde;
  --rbw-cream-3: #efe3d1;
  --rbw-plum: #413033;
  --rbw-plum-2: #573f43;
  --rbw-plum-3: #2c1f21;
  --rbw-gold: #e7c091;
  --rbw-gold-2: #d9a867;
  --rbw-ink: #2e2022;
  --rbw-muted: #7a6a68;
  --rbw-lilac: #f4f3fb;
  --rbw-lilac-2: #e7e6f5;
  --rbw-lilac-3: #d9d8ee;
  --rbw-line: rgba(65, 48, 51, .12);
  --rbw-line-strong: rgba(65, 48, 51, .24);
  --rbw-radius-lg: 40px;
  --rbw-radius-md: 28px;
  --rbw-radius-sm: 20px;
  --rbw-shadow: 0 28px 64px -34px rgba(46, 32, 34, .45), 0 10px 26px -18px rgba(46, 32, 34, .22);
  --rbw-shadow-soft: 0 20px 44px -28px rgba(46, 32, 34, .32);
  --rbw-gutter: clamp(24px, 5vw, 96px);
  --rbw-shell: 1320px;
  --rbw-ease: cubic-bezier(.22, 1, .36, 1);
}

.contacts-page {
  margin: 0;
  overflow-x: clip;
  background: var(--rbw-cream);
  color: var(--rbw-plum);
}

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

.contacts-page a,
.contacts-page button {
  -webkit-tap-highlight-color: transparent;
}

.contacts-page a:focus-visible,
.contacts-page button:focus-visible {
  outline: 3px solid var(--rbw-gold);
  outline-offset: 3px;
}

/* app.css zeroes legacy button radii with !important; the soft system wins here. */
.contacts-page .contacts-cta,
.contacts-page .contacts-ghost {
  border-radius: 999px !important;
}

.contacts-page figure {
  margin: 0;
}

.contacts-page img {
  display: block;
  max-width: 100%;
}

/* ---------------------------------------------------------------- header */
.contacts-page .site-header {
  position: static;
}

.contacts-page .site-header .container {
  max-width: var(--rbw-shell);
  margin: 0 auto;
  padding: clamp(20px, 2.2vw, 28px) var(--rbw-gutter) 16px;
}

/* --------------------------------------------------------------- controls */
.contacts-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: clamp(14px, 1.6vw, 18px) clamp(26px, 2.6vw, 36px);
  font-family: "HelveticaNowDisplay-Medium", Arial, sans-serif;
  font-size: 1rem;
  line-height: 1;
  color: var(--rbw-cream);
  background: var(--rbw-plum);
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  overflow: hidden;
  box-shadow: 0 14px 30px -18px rgba(46, 32, 34, .55);
  transition: transform .25s var(--rbw-ease), background-color .25s var(--rbw-ease), box-shadow .25s var(--rbw-ease);
}

.contacts-cta:hover {
  transform: translateY(-2px);
  background: var(--rbw-plum-2);
  box-shadow: 0 22px 42px -20px rgba(46, 32, 34, .6);
}

.contacts-cta:active {
  transform: translateY(0);
}

.contacts-cta--small {
  min-height: 44px;
  padding: 12px 24px;
  font-size: .95rem;
}

.contacts-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 26px;
  font-family: "HelveticaNowDisplay-Medium", Arial, sans-serif;
  font-size: .98rem;
  line-height: 1;
  color: var(--rbw-plum);
  text-decoration: none;
  background: rgba(65, 48, 51, .06);
  border: 0;
  border-radius: 999px;
  transition: color .25s var(--rbw-ease), background-color .25s var(--rbw-ease), transform .25s var(--rbw-ease), box-shadow .25s var(--rbw-ease);
}

.contacts-ghost:hover {
  transform: translateY(-2px);
  color: var(--rbw-cream);
  background: var(--rbw-plum);
  box-shadow: 0 14px 28px -18px rgba(46, 32, 34, .5);
}

.contacts-link {
  display: inline-block;
  padding-bottom: 2px;
  font-family: "HelveticaNowDisplay-Medium", Arial, sans-serif;
  color: var(--rbw-plum);
  text-decoration: none;
  background-image: linear-gradient(currentColor, currentColor);
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0% 1px;
  transition: background-size .35s var(--rbw-ease), color .25s var(--rbw-ease);
}

.contacts-link:hover {
  background-size: 100% 1px;
}

/* ------------------------------------------------------------------ hero */
.contacts-hero {
  padding: clamp(24px, 4vw, 48px) 0 clamp(56px, 8vw, 96px);
}

.contacts-hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, .96fr);
  gap: clamp(36px, 5vw, 72px);
  align-items: center;
  max-width: var(--rbw-shell);
  margin: 0 auto;
  padding: 0 var(--rbw-gutter);
}

.contacts-hero__title {
  margin: 0 0 clamp(18px, 2.4vw, 28px);
  font-family: "Hatton-Medium", Georgia, serif;
  font-size: clamp(4rem, 9.5vw, 6rem);
  font-weight: 500;
  line-height: .92;
  letter-spacing: -.03em;
  color: var(--rbw-plum);
  text-wrap: balance;
}

.contacts-hero__lede {
  max-width: 30rem;
  margin: 0 0 clamp(26px, 3vw, 36px);
  font-family: "HelveticaNowDisplay-Regular", Arial, sans-serif;
  font-size: 1.06rem;
  line-height: 1.68;
  color: var(--rbw-muted);
}

.contacts-hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 22px;
}

.contacts-hero__phone {
  font-size: 1.02rem;
}

.contacts-hero__media {
  position: relative;
}

.contacts-hero__defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.contacts-hero__mask {
  position: relative;
  width: min(100%, 620px);
  aspect-ratio: 1 / 1.08;
  margin-left: auto;
}

.contacts-hero__still {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 30%;
  /* Mirrored so the model's face, on the left of the source photo, lands
     under the reveal window on the right side of the viewport. */
  transform: scaleX(-1);
  pointer-events: none;
}

/* Viewport-pinned reveal: the photo stays put while the tilted-ellipse window
   scrolls over it. Gated on clip-path support because an unsupported clip would
   otherwise leave the fixed image covering the whole viewport. The box geometry
   places the (mirrored) face under the window on common desktop sizes. */
@supports (clip-path: url(#contacts-hero-blob)) {
  .contacts-hero__mask {
    clip-path: url(#contacts-hero-blob);
  }

  .contacts-hero__still {
    position: fixed;
    top: calc(50vh - 31vw);
    left: 36vw;
    width: 62vw;
    height: 64vw;
  }
}

/* -------------------------------------------------------- visit panel */
.contacts-visit {
  position: relative;
  z-index: 2;
  padding: 0 var(--rbw-gutter);
  margin-bottom: calc(-1 * clamp(56px, 8vw, 104px));
}

.contacts-visit__panel {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 5fr) minmax(0, 3fr);
  gap: clamp(32px, 4.5vw, 72px);
  max-width: var(--rbw-shell);
  margin: 0 auto;
  padding: clamp(36px, 5.5vw, 72px) clamp(30px, 5vw, 80px);
  background: linear-gradient(150deg, var(--rbw-lilac) 0%, var(--rbw-lilac-2) 100%);
  border-radius: var(--rbw-radius-lg);
  box-shadow: var(--rbw-shadow);
}

.contacts-visit__title {
  margin: 0 0 clamp(20px, 2.6vw, 30px);
  font-family: "Hatton-Medium", Georgia, serif;
  font-size: clamp(2.2rem, 3.6vw, 3.2rem);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -.02em;
  color: var(--rbw-plum);
  text-wrap: balance;
}

.contacts-visit__address {
  margin: 0 0 clamp(22px, 3vw, 32px);
  font-family: "Hatton-Medium", Georgia, serif;
  font-size: clamp(1.25rem, 1.8vw, 1.6rem);
  font-style: normal;
  line-height: 1.32;
  letter-spacing: -.01em;
  color: var(--rbw-plum);
  text-wrap: balance;
}

.contacts-visit__address span {
  display: block;
}

.contacts-visit__direct {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  margin: 0 0 clamp(24px, 3vw, 34px);
}

.contacts-visit__direct .contacts-link {
  font-size: clamp(1.15rem, 1.6vw, 1.4rem);
}

.contacts-visit__hours h3 {
  margin: 0 0 8px;
  font-family: "HelveticaNowDisplay-Medium", Arial, sans-serif;
  font-size: .98rem;
  font-weight: 500;
  color: var(--rbw-plum);
}

.contacts-visit__hours dl {
  margin: 0;
}

.contacts-visit__hours dl > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  padding: 11px 2px;
  border-bottom: 1px solid var(--rbw-line);
}

.contacts-visit__hours dt {
  font-family: "HelveticaNowDisplay-Medium", Arial, sans-serif;
  font-weight: 500;
  font-size: 1rem;
  color: var(--rbw-plum);
}

.contacts-visit__hours dd {
  margin: 0;
  font-family: "HelveticaNowDisplay-Regular", Arial, sans-serif;
  font-size: 1rem;
  text-align: right;
  color: var(--rbw-muted);
  transition: color .25s var(--rbw-ease);
}

.contacts-visit__hours dl > div:hover dd {
  color: var(--rbw-plum);
}

.contacts-visit__media {
  align-self: stretch;
  overflow: hidden;
  border: 6px solid rgba(253, 249, 242, .9);
  border-radius: clamp(100px, 9vw, 150px) clamp(100px, 9vw, 150px) var(--rbw-radius-md) var(--rbw-radius-md);
  box-shadow: var(--rbw-shadow-soft);
}

.contacts-visit__media img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
}

/* -------------------------------------------------------- location scene */
.contacts-location {
  position: relative;
  padding: clamp(120px, 14vw, 180px) 0 clamp(64px, 9vw, 112px);
  overflow: hidden;
}

.contacts-location__inner {
  position: relative;
  max-width: var(--rbw-shell);
  margin: 0 auto;
  padding: 0 var(--rbw-gutter);
}

.contacts-location__title {
  margin: 0 0 clamp(30px, 4vw, 48px);
  font-family: "Hatton-Medium", Georgia, serif;
  font-size: clamp(2.2rem, 3.8vw, 3.3rem);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -.02em;
  color: var(--rbw-plum);
  text-wrap: balance;
}

.contacts-location__stage {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  gap: clamp(20px, 2.5vw, 36px);
  align-items: stretch;
}

.contacts-location__map {
  height: clamp(380px, 42vw, 540px);
  overflow: hidden;
  border-radius: var(--rbw-radius-md);
  background: var(--rbw-lilac-3);
  box-shadow: var(--rbw-shadow);
}

.contacts-location__map iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.contacts-location__media {
  position: relative;
  height: clamp(380px, 42vw, 540px);
  overflow: hidden;
  border-radius: var(--rbw-radius-md);
  box-shadow: var(--rbw-shadow-soft);
}

.contacts-location__media-frame {
  width: 100%;
  height: 100%;
  transform: translate3d(0, var(--c-drift-y, 0px), 0);
  will-change: transform;
}

.contacts-location__media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.08);
}

.contacts-location__card {
  position: absolute;
  top: 50%;
  right: clamp(140px, 18vw, 300px);
  transform: translateY(-50%);
  width: min(320px, 84%);
  z-index: 2;
}

.contacts-location__card-inner {
  padding: clamp(24px, 2.6vw, 34px);
  background: var(--rbw-cream);
  border-radius: var(--rbw-radius-sm);
  box-shadow: var(--rbw-shadow-soft);
}

.contacts-location__card-title {
  margin: 0 0 10px;
  font-family: "Hatton-Medium", Georgia, serif;
  font-size: 1.35rem;
  font-weight: 500;
  line-height: 1.15;
  color: var(--rbw-plum);
}

.contacts-location__card address {
  margin: 0 0 18px;
  font-family: "HelveticaNowDisplay-Regular", Arial, sans-serif;
  font-size: 1rem;
  font-style: normal;
  line-height: 1.55;
  color: var(--rbw-muted);
}

/* ------------------------------------------------------- final scene */
.contacts-final {
  padding: 0 0 clamp(28px, 4vw, 56px);
}

.contacts-final__panel {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(36px, 5vw, 80px);
  align-items: center;
  max-width: var(--rbw-shell);
  margin: 0 auto;
  padding: clamp(40px, 6vw, 84px) clamp(30px, 5.5vw, 88px);
  background: linear-gradient(150deg, var(--rbw-cream-2) 0%, var(--rbw-cream-3) 100%);
  border-radius: var(--rbw-radius-lg);
  box-shadow: var(--rbw-shadow);
}

.contacts-final__title {
  margin: 0 0 clamp(18px, 2.4vw, 26px);
  font-family: "Hatton-Medium", Georgia, serif;
  font-size: clamp(2.4rem, 4.2vw, 3.6rem);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -.02em;
  color: var(--rbw-plum);
  text-wrap: balance;
}

.contacts-final__lede {
  max-width: 34rem;
  margin: 0 0 clamp(26px, 3vw, 36px);
  font-family: "HelveticaNowDisplay-Regular", Arial, sans-serif;
  font-size: 1.06rem;
  line-height: 1.68;
  color: var(--rbw-muted);
}

.contacts-final__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 22px;
  margin: 0 0 clamp(22px, 3vw, 30px);
}

.contacts-final__alt {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 12px;
  margin: 0;
  font-family: "HelveticaNowDisplay-Regular", Arial, sans-serif;
  font-size: .98rem;
  color: var(--rbw-muted);
}

.contacts-final__alt .contacts-link {
  color: var(--rbw-muted);
}

.contacts-final__alt .contacts-link:hover {
  color: var(--rbw-plum);
}

.contacts-final__media {
  position: relative;
}

.contacts-final__portrait {
  width: min(380px, 100%);
  margin: 0 auto;
  overflow: hidden;
  border: 8px solid rgba(253, 249, 242, .92);
  border-radius: clamp(120px, 11vw, 170px) clamp(120px, 11vw, 170px) var(--rbw-radius-md) var(--rbw-radius-md);
  box-shadow: var(--rbw-shadow);
  transform: translate3d(0, var(--c-drift-y, 0px), 0);
  will-change: transform;
}

.contacts-final__portrait img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

/* --------------------------------------------------------------- motion */
@keyframes contacts-rise {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

[data-contacts-motion] .contacts-hero__title {
  animation: contacts-rise .9s var(--rbw-ease) both;
}

[data-contacts-motion] .contacts-hero__lede {
  animation: contacts-rise .9s .1s var(--rbw-ease) both;
}

[data-contacts-motion] .contacts-hero__actions {
  animation: contacts-rise .9s .18s var(--rbw-ease) both;
}

[data-contacts-motion] .contacts-page [data-c-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .8s var(--rbw-ease), transform .95s var(--rbw-ease);
  transition-delay: var(--c-delay, 0ms);
}

[data-contacts-motion] .contacts-page [data-c-reveal].is-in {
  opacity: 1;
  transform: none;
}

/* ---------------------------------------------------------- breakpoints */
@media (max-width: 1300px) {
  .contacts-location__card {
    right: clamp(90px, 11vw, 200px);
  }
}

@media (max-width: 1024px) {
  .contacts-hero__inner {
    grid-template-columns: minmax(0, 1fr);
    gap: clamp(32px, 5vw, 44px);
  }

  .contacts-hero__mask {
    width: min(100%, 520px);
    margin-inline: auto;
  }

  /* The pinned reveal only reads as intended while the fixed photo happens to
     cover the scrolling blob window. On a phone it does not: at 390px it filled
     just 41% of the window, so the photo's own rectangular edge cut across the
     ellipse - "half the photo, then a corner, then a sharp end". Fill the window
     instead; the blob shape itself is fine (the mask keeps its 1/1.08 ratio at
     every width, so objectBoundingBox scales it uniformly). Desktop keeps the
     pinned reveal unchanged. */
  .contacts-hero__still {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
  }

  .contacts-visit {
    margin-bottom: calc(-1 * clamp(48px, 7vw, 72px));
  }

  .contacts-visit__panel {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .contacts-visit__media {
    grid-column: 1 / -1;
    border-radius: var(--rbw-radius-md);
  }

  .contacts-visit__media img {
    height: 260px;
    min-height: 0;
  }

  .contacts-location {
    padding-top: clamp(120px, 14vw, 170px);
  }

  .contacts-location__stage {
    grid-template-columns: minmax(0, 1fr);
  }

  .contacts-location__media {
    height: 320px;
  }

  .contacts-location__card {
    position: static;
    width: min(420px, 100%);
    margin: -72px 18px 0 auto;
    transform: none;
  }

  .contacts-final__panel {
    grid-template-columns: minmax(0, 1fr);
  }

  .contacts-final__portrait {
    width: min(340px, 80%);
    /* Drop the arched top here, exactly as .contacts-visit__media does a few
       rules above. The arch is a fixed clamp() min (120px), so on a phone the
       dome grows to 47% of the frame width (253px wide at a 390px viewport)
       while the chairs frame next to it is already flat below 1024px - the two
       framed images stopped matching each other. Flat corners keep them a pair;
       the arched signature is kept on desktop. */
    border-radius: var(--rbw-radius-md);
  }
}

@media (max-width: 768px) {
  .contacts-hero {
    padding-top: 16px;
  }

  .contacts-hero__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .contacts-hero__actions .contacts-cta,
  .contacts-hero__actions .contacts-ghost {
    width: 100%;
  }

  .contacts-hero__mask {
    width: min(100%, 400px);
  }

  /* .contacts-hero__still is intentionally NOT re-positioned here any more: the
     1024px block above already turns the pinned reveal into a filled window, and
     a later vw-based override here would silently win and bring the cut edge
     back on phones. */

  .contacts-visit__panel {
    grid-template-columns: minmax(0, 1fr);
    padding: 32px 24px 40px;
  }

  .contacts-visit__media img {
    height: 220px;
  }

  .contacts-location {
    padding-top: 120px;
  }

  .contacts-location__stage {
    gap: 16px;
  }

  .contacts-location__map {
    height: 340px;
  }

  .contacts-location__media {
    height: 280px;
  }

  .contacts-location__card {
    position: static;
    width: 100%;
    margin: 16px 0 0;
    transform: none;
  }

  .contacts-final__panel {
    padding: 36px 24px 44px;
  }

  .contacts-final__portrait {
    width: min(300px, 86%);
    border-width: 6px;
  }
}

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

  [data-contacts-motion] .contacts-page [data-c-reveal] {
    opacity: 1;
    transform: none;
  }

  .contacts-location__media-frame,
  .contacts-final__portrait {
    transform: none !important;
  }
}

/* --------------------------------------------------------------- shell alignment (grid pass)
   `.contacts-final__panel` is the ivory gradient CARD, not the band: the
   `.contacts-final` section itself stays full-width and unpadded, so capping the
   panel never adds white margins to the section - it only gives the card the
   same side air it already has at 1440px (60px).

   THIS BLOCK MUST STAY AT THE END OF THE FILE. Equal specificity with
   `.contacts-final__panel { margin: 0 auto }` above means source order decides;
   sitting above that rule made it dead, and the panel went full-bleed
   (L=0, W=1280 at 1280px).

   `.contacts-visit__panel` is deliberately NOT listed here: its parent
   `.contacts-visit` already carries `padding: 0 var(--rbw-gutter)`, so a margin
   here would inset it twice (64 + 64 = 128px at 1280). That panel is already
   correctly inset at every width. */
@media (max-width: 1439px) {
  .contacts-final__panel {
    margin-inline: var(--rbw-gutter);
  }
}
