/* The Marlowe Clinic - Durham preview site.
   Palette and typefaces are the clinic's own, read from its Elementor CSS variables:
   #222222 primary, #DACE84 gold, #F1DBD2 blush, with Prata for display and Work Sans for
   body. Both fonts are self-hosted here, which is the point: on the live site all three
   brand faces are requested from a staging domain that 404s. */

@font-face {
  font-family: 'Prata';
  src: url('fonts/prata.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Work Sans';
  src: url('fonts/work-sans.woff2') format('woff2');
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #1c1c1c;
  --ink-soft: #4a4744;
  --gold: #dace84;
  --gold-deep: #a8964a;
  --blush: #f1dbd2;
  --cream: #fbf6ea;
  --paper: #ffffff;
  --line: #e6ded0;

  --display: 'Prata', 'Times New Roman', Times, serif;
  --body: 'Work Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;

  --wrap: 1140px;
  --gap: clamp(3.5rem, 8vw, 7rem);
  --radius: 2px;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--body);
  font-size: clamp(1rem, 0.97rem + 0.15vw, 1.06rem);
  line-height: 1.72;
  color: var(--ink-soft);
  background: var(--paper);
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 400;
  color: var(--ink);
  line-height: 1.16;
  letter-spacing: -0.005em;
  margin: 0;
}

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

a { color: inherit; }

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

.wrap {
  width: min(100% - 2.5rem, var(--wrap));
  margin-inline: auto;
}

.eyebrow {
  font-family: var(--body);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin: 0 0 1.1rem;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--cream);
  padding: 0.85rem 1.4rem;
  z-index: 200;
}
.skip:focus { left: 0; }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  font-family: var(--body);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 1.05rem 2.1rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.btn--gold {
  background: var(--gold);
  color: var(--ink);
  border-color: var(--gold);
}
.btn--gold:hover { background: var(--gold-deep); border-color: var(--gold-deep); color: var(--cream); }

.btn--ghost {
  background: transparent;
  color: var(--cream);
  border-color: rgba(251, 246, 234, 0.45);
}
.btn--ghost:hover { border-color: var(--gold); color: var(--gold); }

.btn--dark {
  background: var(--ink);
  color: var(--cream);
  border-color: var(--ink);
}
.btn--dark:hover { background: #000; }

/* ---------- header ---------- */

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--ink);
  border-bottom: 1px solid rgba(218, 206, 132, 0.22);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.7rem 0;
}

.header__brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
  color: var(--cream);
}
.header__brand img { width: 42px; height: 42px; }
.header__name {
  font-family: var(--display);
  font-size: 1.05rem;
  letter-spacing: 0.06em;
  line-height: 1.1;
  color: var(--cream);
}
.header__place {
  display: block;
  font-family: var(--body);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 0.2rem;
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.header__tel {
  font-family: var(--body);
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--cream);
  text-decoration: none;
  white-space: nowrap;
  padding: 0.5rem 0;
  border-bottom: 1px solid transparent;
}
.header__tel:hover { color: var(--gold); border-bottom-color: var(--gold); }

.header .btn { padding: 0.8rem 1.5rem; font-size: 0.7rem; }

/* ---------- hero ---------- */

.hero {
  position: relative;
  background: var(--ink);
  color: var(--cream);
  padding: clamp(3.5rem, 9vw, 6.5rem) 0 clamp(3rem, 7vw, 5rem);
  overflow: hidden;
}

/* A soft gold bloom instead of stock photography: the clinic's own imagery could not be
   licensed for a new domain, and patient before/after photos are off limits entirely. */
.hero::before,
.hero::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.hero::before {
  width: 46rem; height: 46rem;
  top: -20rem; right: -14rem;
  background: radial-gradient(circle, rgba(218, 206, 132, 0.16), transparent 66%);
}
.hero::after {
  width: 34rem; height: 34rem;
  bottom: -18rem; left: -12rem;
  background: radial-gradient(circle, rgba(241, 219, 210, 0.11), transparent 68%);
}

.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.hero h1 {
  color: var(--cream);
  font-size: clamp(2.4rem, 1.55rem + 3.4vw, 4.15rem);
  margin-bottom: 1.4rem;
}
.hero h1 em {
  font-style: normal;
  color: var(--gold);
}

.hero__lede {
  font-size: clamp(1.02rem, 0.98rem + 0.24vw, 1.16rem);
  color: rgba(251, 246, 234, 0.82);
  max-width: 36rem;
  margin-bottom: 2rem;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 2.2rem;
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.8rem;
  font-size: 0.84rem;
  color: rgba(251, 246, 234, 0.72);
  border-top: 1px solid rgba(218, 206, 132, 0.24);
  padding-top: 1.4rem;
}
.hero__meta strong { color: var(--gold); font-weight: 600; }

.hero__card {
  background: linear-gradient(160deg, rgba(251, 246, 234, 0.07), rgba(251, 246, 234, 0.02));
  border: 1px solid rgba(218, 206, 132, 0.3);
  border-radius: var(--radius);
  padding: clamp(1.6rem, 3vw, 2.2rem);
}
.hero__rating {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  margin-bottom: 0.35rem;
}
.hero__score {
  font-family: var(--display);
  font-size: 2.6rem;
  color: var(--gold);
  line-height: 1;
}
.hero__stars { color: var(--gold); letter-spacing: 0.14em; font-size: 0.95rem; }
.hero__ratingnote {
  font-size: 0.8rem;
  color: rgba(251, 246, 234, 0.66);
  margin-bottom: 1.5rem;
}
.hero__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}
.hero__list li {
  position: relative;
  padding-left: 1.5rem;
  font-size: 0.9rem;
  color: rgba(251, 246, 234, 0.86);
  line-height: 1.5;
}
.hero__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.5rem;
  height: 0.5rem;
  border: 1px solid var(--gold);
  transform: rotate(45deg);
}

/* ---------- sections ---------- */

.section { padding: var(--gap) 0; }
.section--cream { background: var(--cream); }
.section--blush { background: linear-gradient(180deg, var(--blush), #f8ece7); }
.section--ink { background: var(--ink); color: rgba(251, 246, 234, 0.8); }
.section--ink h2, .section--ink h3 { color: var(--cream); }

.section__head {
  max-width: 44rem;
  margin-bottom: clamp(2.2rem, 4vw, 3.4rem);
}
.section__head h2 {
  font-size: clamp(1.85rem, 1.4rem + 1.8vw, 2.7rem);
  margin-bottom: 0.9rem;
}
.section__head p { color: var(--ink-soft); }
.section--ink .section__head p { color: rgba(251, 246, 234, 0.74); }

/* ---------- treatments ---------- */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 16.5rem), 1fr));
  gap: 1.1rem;
}

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.9rem 1.6rem;
  display: flex;
  flex-direction: column;
  transition: border-color 0.25s ease, transform 0.25s ease;
}
.card:hover { border-color: var(--gold); transform: translateY(-3px); }

.card h3 {
  font-size: 1.28rem;
  margin-bottom: 0.7rem;
}
.card p {
  font-size: 0.93rem;
  margin-bottom: 1.3rem;
}
.card__price {
  margin-top: auto;
  font-family: var(--body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-deep);
  border-top: 1px solid var(--line);
  padding-top: 1rem;
}

/* ---------- price list ---------- */

/* Two columns, not three: there are four groups, and a three-across grid leaves the fourth
   stranded on a row of its own next to two empty cells. */
.pricelist {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 26rem), 1fr));
  gap: clamp(1.8rem, 4vw, 3.2rem);
  align-items: start;
}

.pricegroup h3 {
  font-size: 1.2rem;
  padding-bottom: 0.8rem;
  margin-bottom: 0.4rem;
  border-bottom: 1px solid var(--gold);
}

/* Stretch rather than baseline-align: a row whose name wraps to two lines is taller than its
   price, and baseline alignment would leave the two underlines at different heights. */
.pricegroup dl {
  margin: 0;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0;
  align-items: stretch;
}
/* No column gap: the dt and dd underlines then meet and read as one rule across the row.
   The separation the gap used to give comes from padding inside the price cell instead. */
.pricegroup dt {
  font-size: 0.94rem;
  color: var(--ink);
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--line);
}
.pricegroup dd {
  margin: 0;
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--gold-deep);
  white-space: nowrap;
  text-align: right;
  padding: 0.75rem 0 0.75rem 1.2rem;
  border-bottom: 1px solid var(--line);
}
.pricegroup dt small {
  display: block;
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--ink-soft);
  line-height: 1.45;
}

.pricenote {
  margin-top: 2.4rem;
  padding: 1.4rem 1.6rem;
  background: var(--paper);
  border-left: 2px solid var(--gold);
  font-size: 0.9rem;
}

/* ---------- team ---------- */

.team {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
  gap: 1.6rem;
}

.person {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.person__photo {
  aspect-ratio: 4 / 5;
  background: var(--blush);
  object-fit: cover;
  object-position: top center;
  width: 100%;
}
.person__placeholder {
  aspect-ratio: 4 / 5;
  background: linear-gradient(160deg, var(--blush), var(--cream));
  display: grid;
  place-items: center;
}
.person__initial {
  font-family: var(--display);
  font-size: 3.4rem;
  color: var(--gold-deep);
  opacity: 0.6;
}
.person__body { padding: 1.4rem 1.4rem 1.6rem; }
.person__body h3 { font-size: 1.25rem; margin-bottom: 0.3rem; }
.person__role {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 0.8rem;
}
.person__body p { font-size: 0.9rem; }

/* ---------- visit / contact ---------- */

.visit {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.detail {
  display: grid;
  gap: 1.5rem;
}
.detail__row h3 {
  font-family: var(--body);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.5rem;
}
.detail__row a { color: var(--cream); }
.detail__row p, .detail__row address {
  font-style: normal;
  color: rgba(251, 246, 234, 0.84);
  font-size: 0.98rem;
  margin: 0;
}

.otherclinics {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
  font-size: 0.92rem;
}
.otherclinics li {
  padding-left: 1.4rem;
  position: relative;
  color: rgba(251, 246, 234, 0.78);
}
.otherclinics li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 0.45rem;
  height: 0.45rem;
  background: var(--gold);
  transform: rotate(45deg);
}
.otherclinics strong { color: var(--cream); font-weight: 600; }

.mapframe {
  border: 1px solid rgba(218, 206, 132, 0.3);
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(251, 246, 234, 0.04);
}
.mapframe iframe {
  display: block;
  width: 100%;
  height: clamp(320px, 52vh, 540px);
  border: 0;
  filter: grayscale(0.35) contrast(1.05);
}

/* ---------- closing cta ---------- */

.closing {
  text-align: center;
  max-width: 38rem;
  margin-inline: auto;
}
.closing h2 { font-size: clamp(1.9rem, 1.4rem + 2vw, 2.9rem); margin-bottom: 1rem; }
.closing p { margin-bottom: 2rem; }
.closing__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  justify-content: center;
}

/* ---------- footer ---------- */

.footer {
  background: #131313;
  color: rgba(251, 246, 234, 0.6);
  padding: 3.5rem 0 2.5rem;
  font-size: 0.88rem;
}
.footer__grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(251, 246, 234, 0.12);
}
.footer__brand { display: flex; align-items: center; gap: 0.8rem; }
.footer__brand img { width: 46px; height: 46px; }
.footer__brand span {
  font-family: var(--display);
  font-size: 1.05rem;
  color: var(--cream);
  letter-spacing: 0.05em;
}
.footer__contact { display: grid; gap: 0.4rem; }
.footer__contact a { color: rgba(251, 246, 234, 0.82); text-decoration: none; }
.footer__contact a:hover { color: var(--gold); text-decoration: underline; }
.footer__bottom {
  padding-top: 1.6rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 2rem;
  justify-content: space-between;
  font-size: 0.8rem;
  color: rgba(251, 246, 234, 0.45);
}

/* ---------- focus ---------- */

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}
.section--ink :focus-visible,
.hero :focus-visible,
.footer :focus-visible,
.header :focus-visible {
  outline-color: var(--gold);
}

/* ---------- 404 ---------- */

.notfound {
  min-height: 68vh;
  display: grid;
  place-content: center;
  text-align: center;
  padding: 4rem 1.5rem;
  background: var(--ink);
  color: rgba(251, 246, 234, 0.75);
}
.notfound img { width: 84px; margin: 0 auto 1.8rem; }
.notfound h1 { color: var(--cream); font-size: clamp(1.9rem, 1.4rem + 2vw, 2.7rem); margin-bottom: 0.9rem; }
.notfound p { margin-bottom: 1.8rem; }
.notfound__cta { display: flex; flex-wrap: wrap; gap: 0.8rem; justify-content: center; }

/* ---------- reveal ---------- */

/* Content is visible by default and this only softens its arrival, so a failed script or a
   missed observer can never leave a section blank - which is exactly what a full-page
   capture of the live site's Locations page looks like today. */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.6s ease, transform 0.6s ease;
  }
  .reveal.is-in { opacity: 1; transform: none; }
  .no-js .reveal { opacity: 1; transform: none; }
}

/* ---------- responsive ---------- */

@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; }
  .visit { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .header__inner { flex-wrap: wrap; gap: 0.8rem; }
  .header__actions { width: 100%; justify-content: space-between; }
  .header__brand img { width: 36px; height: 36px; }
  .header__name { font-size: 0.95rem; }
  .hero__meta { gap: 0.5rem 1.2rem; }
  .footer__grid { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
