/* ==========================================================================
   Dental On Hay – Holding page
   Brand colours taken from the logo: plum + warm grey
   ========================================================================== */

:root {
  --plum: #6b3f5e;
  --plum-dark: #4e2c45;
  --plum-deep: #3a2033;
  --berry: #8d4468;
  --stone: #a79e98;
  --stone-light: #e9e4df;
  --cream: #faf7f4;
  --white: #ffffff;
  --ink: #2f2530;
  --ink-soft: #5f5560;

  --font-head: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Outfit", "Helvetica Neue", Arial, sans-serif;

  --radius: 22px;
  --radius-sm: 12px;
  --shadow: 0 18px 45px -20px rgba(58, 32, 51, .35);
  --shadow-soft: 0 10px 30px -18px rgba(58, 32, 51, .3);

  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(64px, 9vw, 120px);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 300;
  font-size: clamp(16px, 1.05vw + 12px, 18px);
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 400;
  color: var(--plum-deep);
  line-height: 1.15;
  margin: 0 0 .5em;
  letter-spacing: -.01em;
}
h1 { font-size: clamp(2.1rem, 4.6vw, 3.6rem); }
h2 { font-size: clamp(1.75rem, 3.2vw, 2.6rem); }
h3 { font-size: 1.3rem; }

p { margin: 0 0 1.1em; }
a { color: var(--plum); }

.container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

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

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--plum); color: var(--white); padding: 10px 16px; border-radius: 8px;
}
.skip-link:focus { top: 12px; }

:focus-visible { outline: 3px solid var(--berry); outline-offset: 3px; border-radius: 6px; }

.eyebrow {
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: .78rem;
  font-weight: 500;
  color: var(--berry);
  margin-bottom: 1rem;
}

.icon { width: 18px; height: 18px; fill: currentColor; flex: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  font-family: var(--font-body); font-weight: 500; font-size: 1rem;
  text-decoration: none; line-height: 1;
  padding: 15px 26px; border-radius: 999px;
  border: 1.5px solid transparent;
  transition: background .25s ease, color .25s ease, transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  min-height: 48px; /* comfortable touch target */
  text-align: center;
}
.btn--lg { padding: 18px 30px; font-size: 1.04rem; }
.btn--primary { background: var(--plum); color: var(--white); box-shadow: var(--shadow-soft); }
.btn--primary:hover { background: var(--plum-dark); transform: translateY(-2px); }
.btn--ghost { border-color: var(--stone); color: var(--plum-deep); background: transparent; }
.btn--ghost:hover { border-color: var(--plum); color: var(--plum); transform: translateY(-2px); }
.btn--light { background: var(--white); color: var(--plum-deep); }
.btn--light:hover { background: var(--stone-light); transform: translateY(-2px); }

/* ---------- Notice bar ---------- */
.notice {
  background: var(--plum-deep);
  color: #f2e8ee;
  font-size: .86rem;
  text-align: center;
  padding: 10px var(--gutter);
  display: flex; align-items: center; justify-content: center; gap: 10px;
}
.notice__dot {
  width: 8px; height: 8px; border-radius: 50%; background: #d9a3c1; flex: none;
  animation: pulse 2.2s ease-in-out infinite;
}
@keyframes pulse { 0%,100% { opacity: 1; transform: scale(1);} 50% { opacity: .35; transform: scale(.75);} }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 247, 244, .88);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, box-shadow .3s ease;
}
.site-header.is-scrolled { border-color: var(--stone-light); box-shadow: 0 6px 24px -18px rgba(58,32,51,.4); }
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding-block: 14px;
}
.brand img { width: clamp(170px, 24vw, 270px); }
.btn--header { padding: 12px 20px; }
.btn__label-short { display: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: clamp(40px, 6vw, 90px) 0 var(--section);
  overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; z-index: -1;
  width: 70vw; max-width: 900px; aspect-ratio: 1;
  right: -18vw; top: -22vw;
  background: radial-gradient(circle at center, rgba(167,158,152,.28), rgba(167,158,152,0) 65%);
  border-radius: 50%;
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.lead { font-size: 1.12em; color: var(--ink-soft); max-width: 34em; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 30px 0 22px; }

.status {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .92rem; font-weight: 400; color: var(--ink-soft);
  background: var(--white); border: 1px solid var(--stone-light);
  padding: 9px 16px; border-radius: 999px; margin: 0;
}
.status__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--stone); flex: none; }
.status.is-open .status__dot { background: #3f9b6e; box-shadow: 0 0 0 4px rgba(63,155,110,.18); }
.status.is-closed .status__dot { background: var(--berry); }

.hero__media { position: relative; }

/* Photos – branded fallback shows if an image ever fails to load */
.photo {
  margin: 0; position: relative; overflow: hidden;
  border-radius: var(--radius);
  background: linear-gradient(140deg, var(--stone-light), #d9c6d1 60%, var(--stone));
  box-shadow: var(--shadow);
}
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo.is-fallback img { display: none; }
.photo.is-fallback::after {
  content: ""; position: absolute; inset: 0;
  background: url("../images/apple-touch-icon.png") center / 28% no-repeat;
  opacity: .5;
}

.photo--hero {
  aspect-ratio: 4 / 5;
  border-radius: 200px 200px var(--radius) var(--radius); /* soft arch */
}

.hero__badge {
  position: absolute; left: -24px; bottom: 36px;
  display: flex; align-items: center; gap: 12px;
  background: var(--white); border-radius: 18px;
  padding: 12px 18px 12px 12px; box-shadow: var(--shadow);
  font-size: .9rem; font-weight: 400; line-height: 1.3; color: var(--plum-deep);
}
.hero__badge img { width: 44px; height: 44px; border-radius: 12px; background: var(--cream); padding: 4px; }

/* ---------- Section heads ---------- */
.section-head { text-align: center; max-width: 720px; margin: 0 auto clamp(36px, 5vw, 60px); }

/* ---------- Services ---------- */
.services { padding: var(--section) 0; background: var(--white); }
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(18px, 2.5vw, 28px);
}
.card {
  background: var(--cream);
  border: 1px solid var(--stone-light);
  border-radius: var(--radius);
  padding: clamp(26px, 3vw, 38px);
  transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.card p { color: var(--ink-soft); margin: 0; }
.card__icon {
  width: 60px; height: 60px; border-radius: 18px;
  display: grid; place-items: center;
  background: var(--plum); margin-bottom: 22px;
}
.card__icon svg {
  width: 30px; height: 30px; fill: none; stroke: var(--white);
  stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round;
}

/* ---------- Welcome ---------- */
.welcome { padding: var(--section) 0; }
.welcome__grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(36px, 6vw, 90px); align-items: center;
}
.welcome__media { position: relative; padding-bottom: 60px; padding-right: 60px; }
.photo--tall { aspect-ratio: 3 / 4; }
.photo--small {
  position: absolute; right: 0; bottom: 0;
  width: 46%; aspect-ratio: 1;
  border: 8px solid var(--cream);
}
.welcome__copy p { color: var(--ink-soft); }

.ticks { list-style: none; padding: 0; margin: 8px 0 32px; display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 36px; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .2em;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--stone-light) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b3f5e' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 13px no-repeat;
}

/* ---------- Visit ---------- */
.visit { padding: var(--section) 0; background: var(--white); }
.visit__grid {
  display: grid; grid-template-columns: .9fr 1.1fr;
  gap: clamp(24px, 4vw, 48px); align-items: stretch;
}
.info {
  background: var(--cream); border: 1px solid var(--stone-light);
  border-radius: var(--radius); padding: clamp(26px, 3.5vw, 44px);
  display: grid; gap: 28px;
}
.info__block h3 {
  font-family: var(--font-body); font-weight: 500; font-size: .8rem;
  text-transform: uppercase; letter-spacing: .14em; color: var(--berry); margin-bottom: .6em;
}
.info__block p { margin: 0 0 .5em; }
.link { font-weight: 500; text-decoration: none; }
.link:hover { text-decoration: underline; }
.phone-link {
  font-family: var(--font-head); font-size: 1.7rem; color: var(--plum-deep); text-decoration: none;
}
.phone-link:hover { color: var(--berry); }

.hours { width: 100%; border-collapse: collapse; font-size: .97rem; }
.hours th, .hours td { padding: 9px 12px; text-align: left; font-weight: 400; }
.hours td { text-align: right; }
.hours tr { border-bottom: 1px solid var(--stone-light); }
.hours tr:last-child { border-bottom: 0; }
.hours tr.is-closed td { color: var(--stone); }
.hours tr.is-today { background: var(--white); }
.hours tr.is-today th, .hours tr.is-today td { font-weight: 500; color: var(--plum-deep); }
.hours tr.is-today th::after {
  content: "Today"; margin-left: 8px; font-size: .68rem; letter-spacing: .1em; text-transform: uppercase;
  background: var(--plum); color: var(--white); padding: 3px 8px; border-radius: 999px; vertical-align: 2px;
}

.map {
  border-radius: var(--radius); overflow: hidden; min-height: 380px;
  background: var(--stone-light); box-shadow: var(--shadow-soft);
}
.map iframe { width: 100%; height: 100%; min-height: 380px; border: 0; display: block; filter: saturate(.85); }

/* ---------- CTA ---------- */
.cta {
  padding: clamp(56px, 8vw, 100px) 0;
  background:
    radial-gradient(circle at 15% 20%, rgba(141,68,104,.55), transparent 55%),
    linear-gradient(135deg, var(--plum) 0%, var(--plum-deep) 100%);
  color: #f3e9ef; text-align: center;
}
.cta h2 { color: var(--white); }
.cta p { max-width: 520px; margin: 0 auto 28px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--plum-deep); color: #d8c9d2; padding: 48px 0 40px; text-align: center; font-size: .92rem; }
.site-footer a { color: var(--white); }
.site-footer__logo { width: 210px; margin: 0 auto 22px; opacity: .95; }
.site-footer p { margin: 0 0 .6em; }
.small { font-size: .82rem; }
.muted { opacity: .7; max-width: 640px; margin-inline: auto !important; }

/* ---------- Mobile call bar ---------- */
.mobile-call {
  display: none;
  position: fixed; left: 12px; right: 12px; z-index: 60;
  bottom: calc(12px + env(safe-area-inset-bottom));
  align-items: center; justify-content: center; gap: 10px;
  background: var(--plum); color: var(--white); text-decoration: none;
  font-weight: 500; padding: 16px; border-radius: 999px;
  box-shadow: 0 12px 30px -10px rgba(58,32,51,.6);
  transform: translateY(140%); transition: transform .35s ease;
}
.mobile-call.is-visible { transform: translateY(0); }

/* ---------- Reveal animations ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s ease; }
.reveal--delay { transition-delay: .15s; }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .notice__dot { animation: none; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */

/* Tablets (iPad portrait & small laptops) */
@media (max-width: 1024px) {
  .hero__badge { left: 12px; bottom: 20px; }
}

@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__copy { text-align: center; }
  .lead { margin-inline: auto; }
  .hero__actions { justify-content: center; }
  .hero__media { max-width: 520px; margin-inline: auto; width: 100%; }
  .photo--hero { aspect-ratio: 5 / 4; border-radius: 160px 160px var(--radius) var(--radius); }

  .cards { grid-template-columns: 1fr 1fr; }
  .cards .card:last-child { grid-column: 1 / -1; }

  .welcome__grid { grid-template-columns: 1fr; }
  .welcome__media { max-width: 520px; margin-inline: auto; width: 100%; }

  .visit__grid { grid-template-columns: 1fr; }
}

/* Phones */
@media (max-width: 640px) {
  body { padding-bottom: 84px; } /* room for sticky call bar */
  .notice { font-size: .8rem; }
  .btn__label-long { display: none; }
  .btn__label-short { display: inline; }
  .btn--header { padding: 11px 18px; min-height: 44px; }

  .hero__actions .btn { width: 100%; }
  .photo--hero { aspect-ratio: 4 / 4.2; border-radius: 120px 120px var(--radius) var(--radius); }
  .hero__badge { font-size: .82rem; padding: 10px 14px 10px 10px; }
  .hero__badge img { width: 38px; height: 38px; }

  .cards { grid-template-columns: 1fr; }
  .cards .card:last-child { grid-column: auto; }

  .welcome__media { padding-right: 36px; padding-bottom: 40px; }
  .welcome__copy .btn { width: 100%; }

  .hours th, .hours td { padding: 9px 6px; }
  .map, .map iframe { min-height: 300px; }

  .mobile-call { display: flex; }
}

/* Landscape phones – keep the hero compact */
@media (max-height: 500px) and (orientation: landscape) {
  .site-header { position: relative; }
  .photo--hero { aspect-ratio: 16 / 9; }
}
