/* ============================================================
   FITZROY DENTAL — Design System
   Palette: Terracotta / Sage / Cream — Fitzroy character
   Fonts: Fraunces (headings) + Outfit (body)
   ============================================================ */

/* ---------- RESET ---------- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

/* ---------- TOKENS ---------- */
:root {
  --terracotta: #C4654A;
  --terracotta-deep: #A8503A;
  --terracotta-light: #D4836B;
  --sage: #8B9E7E;
  --sage-deep: #6B7F60;
  --sage-light: #A7B89D;
  --cream: #F5EDE3;
  --cream-warm: #F0E4D6;
  --blush: #E8D5C4;
  --charcoal: #2D2926;
  --charcoal-soft: #4A4543;
  --white: #FEFCFA;
  --gold: #C9A96E;

  --font-heading: 'Fraunces', Georgia, serif;
  --font-body: 'Outfit', 'Helvetica Neue', sans-serif;

  --nav-height: 72px;
  --section-pad: clamp(80px, 10vw, 140px);
  --container-max: 1200px;
  --container-wide: 1400px;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--charcoal);
  background: var(--cream);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Grain overlay for warmth */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.022;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-size: 200px;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul, ol { list-style: none; }

/* ---------- TYPOGRAPHY ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.15;
  color: var(--charcoal);
}
h1 { font-size: clamp(2.8rem, 6vw, 5.2rem); }
h2 { font-size: clamp(2rem, 4vw, 3.4rem); }
h3 { font-size: clamp(1.4rem, 2.5vw, 1.8rem); }
h4 { font-size: clamp(1.1rem, 1.5vw, 1.3rem); }

p {
  font-size: clamp(0.95rem, 1.1vw, 1.1rem);
  line-height: 1.75;
  color: var(--charcoal-soft);
}

.section-label {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 1rem;
  display: block;
}

/* ---------- LAYOUT ---------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 48px);
}
.container--wide { max-width: var(--container-wide); }

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 36px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  border-radius: 60px;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }

.btn--primary {
  background: var(--terracotta);
  color: var(--white);
  box-shadow: 0 4px 20px rgba(196, 101, 74, 0.3);
}
.btn--primary:hover {
  background: var(--terracotta-deep);
  box-shadow: 0 6px 28px rgba(196, 101, 74, 0.4);
  transform: translateY(-2px);
}

.btn--outline {
  border: 2px solid var(--charcoal);
  color: var(--charcoal);
  background: transparent;
}
.btn--outline:hover {
  background: var(--charcoal);
  color: var(--cream);
}

.btn--white {
  background: var(--white);
  color: var(--terracotta);
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}
.btn--white:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.btn--sage {
  background: var(--sage);
  color: var(--white);
}
.btn--sage:hover {
  background: var(--sage-deep);
  transform: translateY(-2px);
}

.btn--sm { padding: 12px 24px; font-size: 0.82rem; }

@media (max-width: 600px) {
  .btn { padding: 14px 28px; font-size: 0.85rem; }
}

/* ---------- SCROLL ANIMATIONS ---------- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

.reveal-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-left.visible { opacity: 1; transform: translateX(0); }

.reveal-right {
  opacity: 0;
  transform: translateX(50px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-right.visible { opacity: 1; transform: translateX(0); }

.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }
.stagger-4 { transition-delay: 0.4s; }
.stagger-5 { transition-delay: 0.5s; }
.stagger-6 { transition-delay: 0.6s; }

/* ---------- NAVIGATION ---------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  transition: all 0.4s ease;
  background: transparent;
}
.nav.scrolled {
  background: rgba(254, 252, 250, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 rgba(45, 41, 38, 0.06);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 48px);
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--charcoal);
  letter-spacing: -0.02em;
}
.nav__logo img {
  height: 40px;
  width: auto;
  border-radius: 4px;
}
.nav__logo-text span { color: var(--terracotta); }

.nav__links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav__links a {
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--charcoal-soft);
  transition: color 0.3s;
  position: relative;
}
.nav__links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--terracotta);
  transition: width 0.3s;
}
.nav__links a:hover,
.nav__links a.active { color: var(--terracotta); }
.nav__links a:hover::after,
.nav__links a.active::after { width: 100%; }

.nav__cta { padding: 10px 24px; font-size: 0.82rem; }

/* Hamburger */
.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}
.nav__hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--charcoal);
  transition: all 0.3s;
  border-radius: 2px;
}

/* Mobile menu overlay */
.nav__mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--cream);
  z-index: 1001;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  opacity: 0;
  transition: opacity 0.3s;
}
.nav__mobile-menu.open { display: flex; opacity: 1; }
.nav__mobile-menu a {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--charcoal);
}
.nav__mobile-close {
  position: absolute;
  top: 20px;
  right: 24px;
  font-size: 2.2rem;
  color: var(--charcoal);
  line-height: 1;
}

@media (max-width: 960px) {
  .nav__links { display: none; }
  .nav__cta.desktop-only { display: none; }
  .nav__hamburger { display: flex; }
}

/* ---------- PAGE HEADER (for inner pages) ---------- */
.page-header {
  padding: calc(var(--nav-height) + 60px) 0 60px;
  background: var(--white);
  border-bottom: 1px solid rgba(45, 41, 38, 0.05);
  position: relative;
  overflow: hidden;
}
.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 80% 30%, rgba(196, 101, 74, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 20% 70%, rgba(139, 158, 126, 0.05) 0%, transparent 50%);
}
.page-header .container { position: relative; z-index: 1; }
.page-header h1 { margin-bottom: 12px; font-size: clamp(2.2rem, 5vw, 3.6rem); }
.page-header p { max-width: 560px; }

/* Breadcrumb */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  font-size: 0.8rem;
  color: var(--charcoal-soft);
}
.breadcrumb a { color: var(--terracotta); transition: opacity 0.3s; }
.breadcrumb a:hover { opacity: 0.7; }
.breadcrumb .sep { opacity: 0.3; }

/* ---------- HERO (home only) ---------- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: var(--nav-height);
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero__bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 70% 40%, rgba(196, 101, 74, 0.12) 0%, transparent 60%),
    radial-gradient(ellipse at 30% 70%, rgba(139, 158, 126, 0.1) 0%, transparent 50%),
    linear-gradient(160deg, var(--cream) 0%, var(--cream-warm) 40%, var(--blush) 100%);
}

.hero__blob {
  position: absolute;
  right: -5%;
  top: 10%;
  width: 55%;
  height: 80%;
  background: linear-gradient(135deg, var(--blush) 0%, var(--cream-warm) 50%, rgba(139, 158, 126, 0.15) 100%);
  border-radius: 40% 60% 55% 45% / 50% 40% 60% 50%;
  z-index: 1;
  opacity: 0.7;
}

.hero__content {
  position: relative;
  z-index: 2;
  padding-right: calc(6vw + 430px); /* reserve space for hero image (right:6% + 400px + 30px gap) */
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(139, 158, 126, 0.15);
  border: 1px solid rgba(139, 158, 126, 0.3);
  padding: 8px 18px;
  border-radius: 40px;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--sage-deep);
  margin-bottom: 28px;
  animation: fadeInDown 0.8s 0.2s both;
}

.hero h1 { margin-bottom: 24px; animation: fadeInUp 0.8s 0.3s both; }
.hero h1 em { font-style: italic; color: var(--terracotta); }

.hero__text {
  font-size: clamp(1.05rem, 1.3vw, 1.2rem);
  max-width: 100%;
  margin-bottom: 40px;
  animation: fadeInUp 0.8s 0.45s both;
}

.hero__actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s 0.55s both;
}

/* Hero portrait */
.hero__image {
  position: absolute;
  right: 6%;
  top: 50%;
  transform: translateY(-50%);
  width: 400px;
  height: min(520px, 55vh);
  max-height: calc(100% - 40px);
  border-radius: 200px 200px 30px 30px;
  z-index: 1;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(45, 41, 38, 0.15);
  animation: fadeInRight 1s 0.6s both;
}
.hero__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}
.hero__image-label {
  position: absolute;
  bottom: 24px;
  right: 24px;
  background: rgba(254, 252, 250, 0.92);
  backdrop-filter: blur(10px);
  padding: 12px 20px;
  border-radius: 12px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--charcoal);
}
.hero__image-label small {
  display: block;
  font-size: 0.72rem;
  font-weight: 400;
  color: var(--charcoal-soft);
  margin-top: 2px;
}

.hero__scroll-hint {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  animation: fadeIn 1s 1.2s both;
}
.hero__scroll-hint span {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--charcoal-soft);
  opacity: 0.5;
}
.scroll-line {
  width: 1px;
  height: 40px;
  background: var(--charcoal);
  opacity: 0.2;
  position: relative;
  overflow: hidden;
}
.scroll-line::after {
  content: '';
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 50%;
  background: var(--terracotta);
  animation: scrollDown 2s infinite;
}

@media (max-width: 1100px) {
  .hero__image { width: 320px; height: min(420px, 50vh); max-height: calc(100% - 40px); right: 3%; }
  .hero__content { padding-right: calc(3vw + 350px); }
}
@media (max-width: 900px) {
  .hero { min-height: auto; padding: 120px 0 80px; }
  .hero__image { display: none; }
  .hero__blob { width: 80%; right: -20%; top: 5%; opacity: 0.4; }
  .hero__content { max-width: 100%; padding-right: clamp(20px, 4vw, 48px); }
  .hero__scroll-hint { display: none; }
  .hero__actions { flex-direction: column; align-items: flex-start; }
}

/* ---------- TRUST BAR ---------- */
.trust-bar {
  padding: 60px 0;
  background: var(--white);
  border-top: 1px solid rgba(45, 41, 38, 0.05);
  border-bottom: 1px solid rgba(45, 41, 38, 0.05);
}
.trust-bar__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  text-align: center;
}
.trust-bar__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.trust-bar__number {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 3.5vw, 3.2rem);
  font-weight: 700;
  color: var(--terracotta);
  line-height: 1;
}
.trust-bar__label {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--charcoal-soft);
  letter-spacing: 0.02em;
}

@media (max-width: 700px) {
  .trust-bar__grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }
}

/* ---------- SERVICES PREVIEW (home) ---------- */
.services-preview {
  padding: var(--section-pad) 0;
}
.services-preview__header {
  max-width: 560px;
  margin-bottom: 60px;
}
.services-preview__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.sp-card {
  background: var(--white);
  border: 1px solid rgba(45, 41, 38, 0.06);
  border-radius: 20px;
  padding: 32px 24px 28px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  text-align: center;
}
.sp-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--terracotta);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s;
}
.sp-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(45, 41, 38, 0.08);
  border-color: transparent;
}
.sp-card:hover::before { transform: scaleX(1); }

.sp-card__icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.sp-card__icon svg { width: 26px; height: 26px; }
.sp-card__icon--general  { background: rgba(139, 158, 126, 0.12); color: var(--sage); }
.sp-card__icon--cosmetic { background: rgba(196, 101, 74, 0.1);  color: var(--terracotta); }
.sp-card__icon--restore  { background: rgba(201, 169, 110, 0.12); color: var(--gold); }
.sp-card__icon--ortho    { background: rgba(45, 41, 38, 0.06);   color: var(--charcoal-soft); }

.sp-card h3 { font-size: 1.2rem; margin-bottom: 10px; }
.sp-card p { font-size: 0.85rem; margin-bottom: 18px; }
.sp-card__link {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--terracotta);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: gap 0.3s;
}
.sp-card__link:hover { gap: 8px; }
.sp-card__link svg { width: 14px; height: 14px; }

@media (max-width: 900px) {
  .services-preview__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 550px) {
  .services-preview__grid { grid-template-columns: 1fr; }
}

/* ---------- CTA BAND ---------- */
.cta-band {
  padding: clamp(60px, 8vw, 100px) 0;
  background: var(--terracotta);
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(255,255,255,0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 50%, rgba(0,0,0,0.1) 0%, transparent 50%);
}
.cta-band__inner {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}
.cta-band h2 { color: var(--white); margin-bottom: 16px; }
.cta-band p { color: rgba(255, 255, 255, 0.8); font-size: 1.1rem; margin-bottom: 36px; }
.cta-band__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}
.cta-band .btn--white { color: var(--terracotta-deep); }
.cta-band__phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.9rem;
  font-weight: 500;
}
.cta-band__phone svg { width: 16px; height: 16px; }

@media (max-width: 600px) {
  .cta-band__actions { flex-direction: column; }
}

/* ---------- TESTIMONIALS ---------- */
.testimonials {
  padding: var(--section-pad) 0;
  background: var(--white);
}
.testimonials__header {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 60px;
}
.testimonials__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.testimonial-card {
  background: var(--cream);
  border-radius: 20px;
  padding: 32px 28px;
  transition: transform 0.3s;
}
.testimonial-card:hover { transform: translateY(-4px); }

.testimonial-card__stars {
  display: flex;
  gap: 3px;
  margin-bottom: 16px;
}
.testimonial-card__stars svg { width: 16px; height: 16px; color: var(--gold); fill: var(--gold); }

.testimonial-card__text {
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--charcoal-soft);
  margin-bottom: 20px;
  font-style: italic;
}
.testimonial-card__author {
  display: flex;
  align-items: center;
  gap: 12px;
}
.testimonial-card__avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.82rem;
  color: var(--white);
  flex-shrink: 0;
}
.testimonial-card__name {
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--charcoal);
}
.testimonial-card__source {
  font-size: 0.75rem;
  color: var(--charcoal-soft);
  display: flex;
  align-items: center;
  gap: 4px;
}
.testimonial-card__source svg { width: 12px; height: 12px; }

@media (max-width: 900px) {
  .testimonials__grid { grid-template-columns: 1fr; max-width: 500px; margin: 0 auto; }
}

/* ---------- ABOUT SECTION (home snippet + about page) ---------- */
.about-section {
  padding: var(--section-pad) 0;
  position: relative;
  overflow: hidden;
}
.about-section__grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(40px, 6vw, 100px);
  align-items: center;
}
.about-section__image-wrap { position: relative; }
.about-section__image {
  width: 100%;
  aspect-ratio: 4/5;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(45, 41, 38, 0.12);
  position: relative;
  background: var(--blush);
}
.about-section__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}
.about-section__accent {
  position: absolute;
  top: -20px;
  right: -20px;
  width: 120px;
  height: 120px;
  background: var(--sage-light);
  border-radius: 50%;
  opacity: 0.3;
  z-index: -1;
}

.about-section__content h2 { margin-bottom: 24px; }
.about-section__text { margin-bottom: 16px; }

.credentials-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
  margin-bottom: 32px;
}
.credential-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: var(--cream);
  border-radius: 40px;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--charcoal-soft);
}
.credential-tag svg { width: 14px; height: 14px; color: var(--sage); flex-shrink: 0; }

/* On the about PAGE (dark bg variant) */
.about-page-detail { background: var(--white); }

.about-page-detail .about-section__grid {
  grid-template-columns: 0.9fr 1.1fr;
}

@media (max-width: 800px) {
  .about-section__grid,
  .about-page-detail .about-section__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .about-section__image-wrap { max-width: 380px; margin: 0 auto; }
}

/* ---------- PRACTICE SECTION (about page) ---------- */
.practice-section {
  padding: var(--section-pad) 0;
}
.practice-section__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
}
.practice-feature {
  display: flex;
  gap: 16px;
  margin-bottom: 28px;
}
.practice-feature__icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(196, 101, 74, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.practice-feature__icon svg { width: 22px; height: 22px; color: var(--terracotta); }
.practice-feature h4 { margin-bottom: 6px; }
.practice-feature p { font-size: 0.88rem; }

.building-image {
  width: 100%;
  aspect-ratio: 3/2;
  border-radius: 20px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--blush) 0%, var(--cream-warm) 50%, var(--sage-light) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--charcoal-soft);
  font-size: 0.85rem;
  font-weight: 500;
  text-align: center;
  padding: 20px;
  opacity: 0.7;
  box-shadow: 0 12px 40px rgba(45, 41, 38, 0.08);
}

@media (max-width: 800px) {
  .practice-section__grid { grid-template-columns: 1fr; }
}

/* ---------- CONTACT PAGE ---------- */
.contact-section {
  padding: var(--section-pad) 0;
}
.contact-section__grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 40px;
}

.contact-info { display: flex; flex-direction: column; gap: 28px; }

.contact-item {
  display: flex;
  gap: 16px;
}
.contact-item__icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(196, 101, 74, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-item__icon svg { width: 20px; height: 20px; color: var(--terracotta); }
.contact-item h3 {
  font-size: 1rem;
  font-family: var(--font-body);
  font-weight: 600;
  margin-bottom: 4px;
}
.contact-item p { font-size: 0.88rem; }
.contact-item a {
  color: var(--terracotta);
  transition: opacity 0.3s;
}
.contact-item a:hover { opacity: 0.7; }

.hours-grid {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 16px;
  font-size: 0.88rem;
}
.hours-grid .day { color: var(--charcoal-soft); font-weight: 500; }
.hours-grid .time { color: var(--charcoal); }

.contact-map {
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 4/3;
  border: 1px solid rgba(45, 41, 38, 0.08);
}
.contact-map iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.contact-cta {
  margin-top: 40px;
  padding: 28px;
  background: var(--charcoal);
  border-radius: 16px;
}
.contact-cta h3 {
  color: var(--cream);
  margin-bottom: 8px;
  font-size: 1.1rem;
}
.contact-cta p {
  color: rgba(245, 237, 227, 0.7);
  font-size: 0.9rem;
  margin-bottom: 16px;
}

@media (max-width: 800px) {
  .contact-section__grid { grid-template-columns: 1fr; }
}

/* ---------- FOOTER ---------- */
.footer {
  padding: 60px 0 40px;
  background: var(--charcoal);
  color: rgba(245, 237, 227, 0.6);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}

.footer__brand {
  max-width: 280px;
}
.footer__logo {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--cream);
  margin-bottom: 16px;
}
.footer__logo span { color: var(--terracotta); }
.footer__brand p {
  font-size: 0.85rem;
  color: rgba(245, 237, 227, 0.5);
  line-height: 1.6;
}

.footer__col h4 {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--cream);
  margin-bottom: 16px;
}
.footer__col a {
  display: block;
  font-size: 0.85rem;
  color: rgba(245, 237, 227, 0.5);
  padding: 4px 0;
  transition: color 0.3s;
}
.footer__col a:hover { color: var(--terracotta-light); }

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding-top: 28px;
  border-top: 1px solid rgba(254, 252, 250, 0.06);
}
.footer__copy {
  font-size: 0.75rem;
  color: rgba(245, 237, 227, 0.25);
}
.footer__pitch-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: rgba(196, 101, 74, 0.1);
  border: 1px solid rgba(196, 101, 74, 0.2);
  border-radius: 30px;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--terracotta-light);
  letter-spacing: 0.05em;
}

@media (max-width: 800px) {
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 500px) {
  .footer__grid { grid-template-columns: 1fr; }
}

/* ---------- SERVICES PAGE ---------- */
.services-page { padding: var(--section-pad) 0; }

.services-nav {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 60px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(45, 41, 38, 0.08);
}
.services-nav a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 40px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--charcoal-soft);
  background: var(--white);
  border: 1px solid rgba(45, 41, 38, 0.08);
  transition: all 0.3s;
}
.services-nav a:hover,
.services-nav a.active {
  background: var(--terracotta);
  color: var(--white);
  border-color: var(--terracotta);
}
.services-nav a svg { width: 16px; height: 16px; }

.service-category {
  margin-bottom: 80px;
  scroll-margin-top: calc(var(--nav-height) + 24px);
}
.service-category:last-child { margin-bottom: 0; }

.service-category__header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 36px;
}
.service-category__icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.service-category__icon svg { width: 26px; height: 26px; }
.service-category__header h2 { margin-bottom: 0; }

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.service-card {
  background: var(--white);
  border: 1px solid rgba(45, 41, 38, 0.06);
  border-radius: 16px;
  padding: 28px 24px;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(45, 41, 38, 0.08);
  border-color: transparent;
}
.service-card__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.service-card__icon svg { width: 22px; height: 22px; }
.service-card h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}
.service-card p { font-size: 0.85rem; line-height: 1.65; }

/* service icon colour variants */
.svc-general { background: rgba(139, 158, 126, 0.12); color: var(--sage); }
.svc-cosmetic { background: rgba(196, 101, 74, 0.1); color: var(--terracotta); }
.svc-restorative { background: rgba(201, 169, 110, 0.12); color: var(--gold); }
.svc-ortho { background: rgba(45, 41, 38, 0.06); color: var(--charcoal-soft); }

/* Single service on cosmetic (only 1 item) */
.services-grid--single {
  grid-template-columns: 1fr;
  max-width: 480px;
}

@media (max-width: 900px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 550px) {
  .services-grid { grid-template-columns: 1fr; }
}

/* ---------- GALLERY PAGE ---------- */
.gallery-section { padding: var(--section-pad) 0; }

.gallery-filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}
.gallery-filter {
  padding: 8px 20px;
  border-radius: 40px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--charcoal-soft);
  background: var(--white);
  border: 1px solid rgba(45, 41, 38, 0.08);
  transition: all 0.3s;
  cursor: pointer;
}
.gallery-filter:hover,
.gallery-filter.active {
  background: var(--terracotta);
  color: var(--white);
  border-color: var(--terracotta);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.gallery-card {
  background: var(--white);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(45, 41, 38, 0.06);
  transition: all 0.35s;
}
.gallery-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(45, 41, 38, 0.1);
}
.gallery-card[style*="display: none"] { display: none !important; }

.gallery-card__images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  aspect-ratio: 16/9;
}
.gallery-card__before,
.gallery-card__after {
  position: relative;
  overflow: hidden;
}
.gallery-card__before img,
.gallery-card__after img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.gallery-card__label {
  position: absolute;
  bottom: 8px;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 4px;
  color: var(--white);
}
.gallery-card__before .gallery-card__label {
  left: 8px;
  background: rgba(45, 41, 38, 0.7);
}
.gallery-card__after .gallery-card__label {
  right: 8px;
  background: rgba(139, 158, 126, 0.85);
}

.gallery-card__info {
  padding: 16px 20px;
}
.gallery-card__info h3 {
  font-size: 1rem;
  font-family: var(--font-body);
  font-weight: 600;
  margin-bottom: 4px;
}
.gallery-card__info p { font-size: 0.82rem; }
.gallery-card__tag {
  display: inline-block;
  margin-top: 8px;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 500;
  background: rgba(139, 158, 126, 0.1);
  color: var(--sage-deep);
}

@media (max-width: 900px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 550px) {
  .gallery-grid { grid-template-columns: 1fr; }
}

/* ---------- PAYMENT PAGE ---------- */
.payment-section { padding: var(--section-pad) 0; }

.payment-intro {
  max-width: 640px;
  margin-bottom: 60px;
}
.payment-intro h2 { margin-bottom: 16px; }

.payment-plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 80px;
}

.plan-card {
  background: var(--white);
  border: 1px solid rgba(45, 41, 38, 0.06);
  border-radius: 20px;
  padding: 36px 28px;
  transition: all 0.35s;
  position: relative;
  overflow: hidden;
}
.plan-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--terracotta);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s;
}
.plan-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(45, 41, 38, 0.08);
  border-color: transparent;
}
.plan-card:hover::before { transform: scaleX(1); }

.plan-card__logo {
  height: 32px;
  width: auto;
  object-fit: contain;
  margin-bottom: 20px;
  filter: grayscale(0.3);
}
.plan-card h3 {
  font-family: var(--font-body);
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 12px;
}
.plan-card p {
  font-size: 0.88rem;
  margin-bottom: 16px;
}
.plan-card__features {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.plan-card__feature {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--charcoal-soft);
}
.plan-card__feature svg {
  width: 18px;
  height: 18px;
  color: var(--sage);
  flex-shrink: 0;
  margin-top: 1px;
}

/* Insurance section */
.insurance-section {
  padding: 60px 0;
  background: var(--white);
  border-radius: 24px;
  margin-bottom: 60px;
}
.insurance-section__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}
.insurance-section h2 { margin-bottom: 16px; }
.insurance-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 24px;
}
.insurance-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  background: var(--cream);
  border-radius: 12px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--charcoal-soft);
}

.sedation-card {
  background: var(--cream);
  border-radius: 20px;
  padding: 36px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
}
.sedation-card__icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: rgba(139, 158, 126, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.sedation-card__icon svg { width: 26px; height: 26px; color: var(--sage); }
.sedation-card h3 {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 8px;
}
.sedation-card p { font-size: 0.88rem; }

@media (max-width: 900px) {
  .payment-plans { grid-template-columns: 1fr; max-width: 480px; }
  .insurance-section__grid { grid-template-columns: 1fr; }
}

/* ---------- KEYFRAMES ---------- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInRight {
  from { opacity: 0; transform: translate(40px, -50%); }
  to { opacity: 1; transform: translate(0, -50%); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes scrollDown {
  0% { top: -100%; }
  100% { top: 200%; }
}
