/* =============================================
   AMBER GROVE DENTAL — World-Class Architectural & Boutique Aesthetic
   Palette: Architectural Warm Ivory (#FAF8F5), Deep Midnight Espresso (#161413), 
   Rich Champagne Bronze (#B8936D), Cashmere Stone (#EFECE6), Muted Mineral (#7A7571)
   ============================================= */

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

:root {
  --bg:         #FAF8F5;
  --bg-warm:    #F3EFEB;
  --bg-dark:    #161413;
  --bg-surface: #FFFFFF;
  --ink:        #181514;
  --ink-soft:   #3B3633;
  --muted:      #78726D;
  --muted-lt:   #A39E98;
  --teal:       #8C6343; /* Warm architectural bronze */
  --teal-dark:  #6D4B30;
  --teal-light: #F4EDE5;
  --gold-accent:#C5A27D;
  --border:     #E6E1DA;
  --border-lt:  #F0ECE6;
  --border-dark:rgba(255,255,255,0.08);
  --white:      #FFFFFF;

  --serif: 'Playfair Display', 'Fraunces', 'Georgia', serif;
  --sans:  'Plus Jakarta Sans', 'Inter', -apple-system, sans-serif;

  --fs-hero:  clamp(2.9rem, 6.2vw, 4.9rem);
  --fs-h2:    clamp(2.1rem, 4.2vw, 3.3rem);
  --fs-h3:    clamp(1.2rem, 2.2vw, 1.45rem);
  --fs-body:  1.05rem;
  --fs-sm:    0.88rem;
  --fs-xs:    0.78rem;

  --lh-tight: 1.12;
  --lh-body:  1.75;

  --ease: cubic-bezier(.16, 1, .3, 1);
  --radius: 12px;
  --radius-lg: 20px;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 6.5rem;
  overflow-x: clip;
}
body {
  font-family: var(--sans);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--ink);
  background: var(--bg);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ---- Focus ---- */
:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 3px;
  border-radius: 4px;
}
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  background: var(--teal);
  color: #fff;
  padding: .6rem 1.2rem;
  border-radius: var(--radius);
  font-weight: 600;
  z-index: 999;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: .5rem; }

/* ---- Container ---- */
.container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
}

/* ---- Eyebrow ---- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  font-family: var(--sans);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 1.15rem;
}
.eyebrow::before {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--gold-accent);
}

/* ---- Section ---- */
.section {
  padding-block: clamp(3.5rem, 8vw, 7rem);
}
.section--alt {
  background: var(--bg-warm);
}
.section--dark {
  background: var(--bg-dark);
  color: #D6D0C9;
}
.section--dark .eyebrow { color: var(--gold-accent); }
.section--dark .eyebrow::before { background: var(--gold-accent); }
.section--dark h2,
.section--dark h3 { color: #fff; }

/* ---- Section headings ---- */
.sec-head {
  max-width: 540px;
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
}
.section--dark .sec-head { max-width: 540px; }
.sec-head--center {
  text-align: center;
  margin-inline: auto;
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
}
.sec-title {
  font-family: var(--serif);
  font-size: var(--fs-h2);
  font-weight: 500;
  line-height: var(--lh-tight);
  letter-spacing: -.02em;
  color: var(--ink);
  margin-bottom: .75rem;
  text-wrap: balance;
}
.section--dark .sec-title { color: #fff; }
.sec-lead {
  font-size: var(--fs-body);
  line-height: 1.7;
  color: var(--muted);
  max-width: 480px;
}
.section--dark .sec-lead { color: #9aa8a2; }
.sec-head--center .sec-lead { margin-inline: auto; }

/* ---- Grid helpers ---- */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
.grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
.grid-4 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 700px) {
  .grid-2 { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); gap: 2rem; }
  .grid-4 { grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  font-family: var(--sans);
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: .01em;
  padding: .85rem 1.85rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: all .25s var(--ease);
  white-space: nowrap;
  text-decoration: none;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary {
  background: var(--ink);
  color: #fff;
  box-shadow: 0 4px 14px rgba(22,20,19,.15);
}
.btn--primary:hover {
  background: var(--teal);
  color: #fff;
  box-shadow: 0 8px 24px rgba(140,99,67,.22);
}
.btn--outline {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--border);
}
.btn--outline:hover {
  border-color: var(--ink);
  background: rgba(24,21,20,0.03);
}
.btn--ghost {
  background: rgba(255,255,255,.07);
  color: #fff;
  border: 1px solid rgba(255,255,255,.14);
}
.btn--ghost:hover {
  background: rgba(255,255,255,.14);
  border-color: rgba(255,255,255,.28);
}
.btn--lg {
  padding: 1rem 2.2rem;
  font-size: .95rem;
}

/* ---- Cards ---- */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3vw, 2rem);
  border: 1px solid var(--border-lt);
  box-shadow: 0 1px 3px rgba(42,26,33,.03);
  transition: box-shadow .3s var(--ease), transform .3s var(--ease), border-color .3s var(--ease);
}
.card:hover {
  box-shadow: 0 8px 30px rgba(42,26,33,.07);
  transform: translateY(-2px);
}
.card--flat { border: none; background: transparent; padding: 0; }
.card--flat:hover { transform: none; box-shadow: none; }

/* ---- Icon tile ---- */
.icon-tile {
  width: 48px; height: 48px;
  border-radius: 14px;
  background: var(--teal-light);
  color: var(--teal);
  display: grid;
  place-items: center;
  margin-bottom: 1.15rem;
  flex-shrink: 0;
}
.icon-tile svg {
  width: 22px; height: 22px;
  stroke-width: 1.8;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---- Numbered row ---- */
.num-row {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  padding: 1.6rem 0;
  border-bottom: 1px solid var(--border);
}
.num-row:last-child { border-bottom: none; }
.num-row__num {
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 400;
  font-style: italic;
  color: var(--teal);
  line-height: 1;
  flex-shrink: 0;
  width: 44px;
  padding-top: .15rem;
}
.num-row__body h3 {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1.3;
  margin-bottom: .4rem;
  color: var(--ink);
  letter-spacing: -.01em;
}
.num-row__body p {
  color: var(--muted);
  font-size: var(--fs-sm);
  line-height: 1.65;
}

/* ---- Service list item (Editorial Studio Menu) ---- */
.svc-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
@media (min-width: 800px) {
  .svc-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}
.svc-item {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 2.25rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 16px;
  transition: all .35s var(--ease);
}
.svc-item:hover {
  background: rgba(255,255,255,0.055);
  border-color: rgba(197,162,125, 0.35);
  transform: translateY(-2px);
}
.svc-item__img {
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 1.25rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
}
.svc-item__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .6s var(--ease);
}
.svc-item:hover .svc-item__img img {
  transform: scale(1.03);
}
.svc-item__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}
.svc-item__code {
  font-family: var(--sans);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .08em;
  color: var(--gold-accent);
  text-transform: uppercase;
}
.svc-item__time {
  font-size: .72rem;
  color: #8E8984;
  letter-spacing: .02em;
}
.svc-item__body h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.35rem;
  margin-top: .4rem;
  margin-bottom: .6rem;
  color: #fff;
  letter-spacing: -.01em;
}
.svc-item__body p {
  font-size: var(--fs-sm);
  color: #A39E98;
  line-height: 1.65;
}
.svc-item__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,0.06);
  font-size: .78rem;
  color: #C5A27D;
}
.svc-item__meta a {
  color: #fff;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  transition: color .2s var(--ease);
}
.svc-item__meta a:hover {
  color: var(--gold-accent);
}

/* ---- Team cards (Boutique Clinician Profiles) ---- */
.team-card {
  text-align: left;
  padding: 1.5rem;
  background: var(--white);
  border: 1px solid var(--border-lt);
  border-radius: 16px;
  transition: all .3s var(--ease);
}
.team-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(22,20,19,.05);
  border-color: var(--border);
}
.team-photo {
  width: 100%;
  aspect-ratio: 4/5;
  border-radius: 10px;
  object-fit: cover;
  margin: 0 0 1.25rem 0;
  display: block;
  border: none;
  filter: grayscale(12%);
  transition: filter .3s var(--ease);
}
.team-card:hover .team-photo {
  filter: grayscale(0%);
}
.team-card h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.2rem;
  margin-bottom: .25rem;
  color: var(--ink);
  letter-spacing: -.01em;
}
.team-card p {
  font-size: .8rem;
  line-height: 1.5;
  color: var(--muted);
}

/* ---- Testimonial (Editorial Quotations) ---- */
.testi-card {
  background: var(--white);
  border-radius: 16px;
  padding: clamp(1.75rem, 3.5vw, 2.5rem);
  border: 1px solid var(--border-lt);
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.testi-card__stars {
  color: var(--gold-accent);
  font-size: .85rem;
  letter-spacing: .15em;
  margin-bottom: 1rem;
}
.testi-card__quote {
  font-family: var(--serif);
  font-size: 1.12rem;
  font-weight: 400;
  line-height: 1.7;
  color: var(--ink);
  margin-bottom: 1.5rem;
}
.testi-card__author {
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: .02em;
  color: var(--ink);
}
.testi-card__role {
  font-size: .75rem;
  color: var(--muted-lt);
}

/* ---- Contact / Hours grid ---- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 700px) {
  .contact-grid { grid-template-columns: 1fr 1fr; gap: 3rem; }
}
.hours-table {
  width: 100%;
  font-size: var(--fs-sm);
}
.hours-table tr { border-bottom: 1px solid rgba(255,255,255,.08); }
.hours-table td {
  padding: .65rem 0;
}
.hours-table td:first-child {
  font-weight: 500;
  color: #fff;
}
.hours-table td:last-child {
  text-align: right;
  color: #9aa8a2;
}

/* ---- Footer ---- */
.footer {
  background: var(--bg-dark);
  color: #9aa8a2;
  padding-block: clamp(3rem, 6vw, 4.5rem) 2rem;
  font-size: var(--fs-sm);
}
.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 3rem;
}
@media (min-width: 700px) {
  .footer__grid { grid-template-columns: 2fr 1fr 1fr; gap: 3rem; }
}
.footer__brand { max-width: 300px; }
.footer__logo {
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 500;
  color: #fff;
  letter-spacing: -.01em;
}
.footer__logo span { color: var(--teal); }
.footer__logo img {
  display: block;
  width: 210px;
  height: auto;
}
.footer__desc {
  margin-top: .75rem;
  line-height: 1.65;
  max-width: 280px;
}
.footer__abn {
  font-size: var(--fs-xs);
  color: #6b7872;
  margin-top: 1rem;
}
.footer h3 {
  font-family: var(--sans);
  font-weight: 600;
  font-size: var(--fs-xs);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #c8d0cc;
  margin-bottom: 1rem;
}
.footer ul li { margin-bottom: .55rem; }
.footer ul a:hover { color: #fff; }
.footer__contact li {
  display: flex;
  align-items: center;
  gap: .5rem;
}
.footer__contact svg {
  width: 15px; height: 15px;
  flex-shrink: 0;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .5rem;
  font-size: var(--fs-xs);
  color: #6b7872;
}

/* ---- Scroll reveal (visible by default; polish on arrival) ---- */
.reveal {
  opacity: 1;
  transform: none;
}
.polish {
  animation: fadeUp 350ms cubic-bezier(0.16, 1, 0.3, 1);
  animation-fill-mode: backwards;
}
@keyframes fadeUp {
  from { opacity: 1; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
.polish-d1 { animation-delay: .06s; }
.polish-d2 { animation-delay: .12s; }
.polish-d3 { animation-delay: .18s; }
.polish-d4 { animation-delay: .24s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .polish { opacity: 1; transform: none; animation: none; }
}

/* ---- Responsive: mobile nav ---- */
@media (max-width: 900px) {
  .nav__links { display: none; }
  .nav__links--open {
    display: flex !important;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 12px 40px rgba(42,26,33,.1);
    padding: .5rem 0;
    z-index: 90;
  }
  .nav__links--open a {
    padding: .9rem 1.5rem;
    font-size: 1rem;
    border-bottom: 1px solid var(--border-lt);
  }
  .nav__links--open a:last-child { border-bottom: none; }
  .nav__cta-desktop { display: none !important; }
  .nav__toggle { display: flex !important; }
}

/* ---- Responsive: service grid ---- */
@media (max-width: 699px) {
  .svc-grid { grid-template-columns: 1fr !important; }
}
@media (min-width: 700px) {
  .svc-grid { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
}

/* ---- Before/After: results slider ---- */
.ba {
  position: relative;
}
.ba-track {
  position: relative;
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  aspect-ratio: 688 / 768;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid var(--border-lt);
  box-shadow: 0 24px 60px -24px rgba(22,20,19,.18);
  background: var(--bg);
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  cursor: grab;
}
.ba-track.is-dragging {
  cursor: grabbing;
}
.ba-track .ba-img,
.ba-track .ba-before {
  pointer-events: none;
  -webkit-user-drag: none;
}
.ba-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ba-before {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  clip-path: inset(0 calc(100% - var(--pos, 50%)) 0 0);
}
.ba-before .ba-img {
  width: 100%;
  height: 100%;
}
.ba-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--pos, 50%);
  width: 2px;
  background: rgba(255,255,255,.92);
  box-shadow: 0 0 0 1px rgba(0,0,0,.15);
  transform: translateX(-1px);
  pointer-events: none;
}
.ba-handle::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 44px;
  height: 44px;
  transform: translate(-50%, -50%);
  border-radius: 999px;
  background: rgba(255,255,255,.95);
  box-shadow: 0 8px 24px rgba(0,0,0,.25);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='12' viewBox='0 0 20 12' fill='none'%3E%3Cpath d='M11 1L17 6L11 11M3 1L9 6L3 11' stroke='%231C1917' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}
.ba-range {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  pointer-events: none;
  -webkit-appearance: none;
  appearance: none;
}
.ba-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 100%;
}
.ba-range::-moz-range-thumb {
  width: 100%;
  height: 100%;
}
.ba-labels {
  display: flex;
  justify-content: space-between;
  max-width: 560px;
  margin: 0.9rem auto 0;
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---- Full-bleed interior figure ---- */
.section--snap {
  padding: 0;
}
.ba-figure {
  margin: 0;
  position: relative;
  overflow: hidden;
}
.ba-figure__img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
@media (max-width: 699px) {
  .ba-track { max-width: 100%; border-radius: 12px; }
}
