/* ── Reset & Base ───────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --burgundy:     #7B2D3B;
  --burgundy-deep:#5C1F2B;
  --blush:        #F5E6E0;
  --blush-light:  #FDF6F3;
  --cream:        #FDF8F5;
  --gold:         #C8A96E;
  --gold-light:   #E8D5A8;
  --text-dark:    #2A1F1F;
  --text-mid:     #5C4A4A;
  --text-light:   #8A7070;
  --white:        #FFFFFF;
  --radius-sm:    8px;
  --radius-md:    16px;
  --radius-lg:    24px;
  --shadow-sm:    0 2px 8px rgba(123,45,59,0.06);
  --shadow-md:    0 8px 32px rgba(123,45,59,0.10);
  --shadow-lg:    0 16px 64px rgba(123,45,59,0.14);
  --font-serif:   'Playfair Display', Georgia, serif;
  --font-sans:    'Inter', system-ui, sans-serif;
  --transition:   0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-sans);
  color: var(--text-dark);
  background: var(--cream);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
address { font-style: normal; }

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ── Typography ─────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.2;
  color: var(--text-dark);
}

.section-eyebrow {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--burgundy);
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: clamp(1.875rem, 4vw, 2.75rem);
  margin-bottom: 1rem;
}

.text-accent { color: var(--burgundy); }

.section-subtitle {
  font-size: 1.0625rem;
  color: var(--text-mid);
  max-width: 560px;
  line-height: 1.75;
}

.lead {
  font-size: 1.0625rem;
  color: var(--text-mid);
  line-height: 1.8;
}

/* ── Buttons ────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 500;
  padding: 0.8125rem 1.75rem;
  border-radius: 50px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--burgundy);
  color: var(--white);
  border-color: var(--burgundy);
}
.btn-primary:hover {
  background: var(--burgundy-deep);
  border-color: var(--burgundy-deep);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background: transparent;
  color: var(--burgundy);
  border-color: var(--burgundy);
}
.btn-outline:hover {
  background: var(--burgundy);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-outline-light {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.5);
}
.btn-outline-light:hover {
  background: var(--white);
  color: var(--burgundy);
  border-color: var(--white);
  transform: translateY(-2px);
}

.btn-light {
  background: var(--white);
  color: var(--burgundy);
  border-color: var(--white);
}
.btn-light:hover {
  background: var(--blush);
  border-color: var(--blush);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-sm { padding: 0.5625rem 1.25rem; font-size: 0.8125rem; }
.btn-full { width: 100%; justify-content: center; }

/* ── Header ─────────────────────────────────────────────── */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(253,248,245,0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(123,45,59,0.08);
  transition: all var(--transition);
}
.site-header.scrolled {
  background: rgba(253,248,245,0.96);
  box-shadow: var(--shadow-sm);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.0625rem;
  color: var(--burgundy);
}
.logo-light { color: var(--white); }
.logo-icon { color: var(--burgundy); }
.logo-light .logo-icon { color: var(--white); }

.main-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.main-nav a:not(.btn) {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-mid);
  position: relative;
  transition: color var(--transition);
}
.main-nav a:not(.btn)::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--burgundy);
  transition: width var(--transition);
}
.main-nav a:not(.btn):hover { color: var(--burgundy); }
.main-nav a:not(.btn):hover::after { width: 100%; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle-bar {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--burgundy);
  border-radius: 2px;
  transition: all var(--transition);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ── Hero ───────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(
    135deg,
    var(--burgundy-deep) 0%,
    var(--burgundy) 30%,
    #A04050 55%,
    #D4838F 75%,
    var(--blush) 100%
  );
}
.hero-gradient {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 20% 80%, rgba(200,169,110,0.2) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 80% 20%, rgba(245,230,224,0.3) 0%, transparent 60%);
  pointer-events: none;
}
.hero-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 8rem 1.5rem 6rem;
  max-width: 800px;
}

.hero-eyebrow {
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 1.25rem;
  opacity: 0;
  animation: fadeUp 0.8s 0.2s forwards;
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4.25rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fadeUp 0.8s 0.4s forwards;
}
.hero-title .text-accent {
  color: var(--gold-light);
  font-style: italic;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.1875rem);
  color: rgba(255,255,255,0.85);
  line-height: 1.8;
  max-width: 560px;
  margin: 0 auto 2.5rem;
  opacity: 0;
  animation: fadeUp 0.8s 0.6s forwards;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 3.5rem;
  opacity: 0;
  animation: fadeUp 0.8s 0.8s forwards;
}

.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  opacity: 0;
  animation: fadeUp 0.8s 1s forwards;
}
.stat { text-align: center; }
.stat-number {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--white);
}
.stat-label {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
}
.stat-divider {
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,0.2);
}

.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255,255,255,0.5);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  animation: bounce 2s infinite;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(6px); }
}

/* ── Section shared ─────────────────────────────────────── */
section { padding: 6rem 0; }

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}
.section-header .section-subtitle { margin: 0 auto; }

/* ── About ──────────────────────────────────────────────── */
.about { background: var(--cream); }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-image-wrap {
  position: relative;
}
.about-image-wrap img {
  border-radius: var(--radius-lg);
  width: 100%;
  height: 100%;
  object-fit: cover;
  box-shadow: var(--shadow-lg);
}
.about-image-accent {
  position: absolute;
  top: -16px;
  right: -16px;
  width: 120px;
  height: 120px;
  background: var(--burgundy);
  border-radius: var(--radius-lg);
  opacity: 0.1;
  z-index: -1;
}

.about-content { max-width: 520px; }
.about-content .section-title { margin-bottom: 1.25rem; }
.about-content > p { margin-bottom: 1rem; }
.about-content > p:last-of-type { margin-bottom: 1.75rem; }

.about-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem 1.5rem;
  margin-bottom: 2rem;
}
.about-features li {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 0.9375rem;
  color: var(--text-mid);
}
.about-features svg { color: var(--burgundy); flex-shrink: 0; }

/* ── Services ───────────────────────────────────────────── */
.services { background: var(--blush-light); }
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.service-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(123,45,59,0.06);
  transition: all var(--transition);
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(123,45,59,0.12);
}
.service-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--burgundy), #A04050);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  margin-bottom: 1.25rem;
}
.service-card h3 {
  font-size: 1.1875rem;
  margin-bottom: 0.625rem;
}
.service-card p {
  font-size: 0.9375rem;
  color: var(--text-mid);
  line-height: 1.7;
}

/* ── Patient Info ───────────────────────────────────────── */
.patient-info { background: var(--cream); }
.patient-info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.info-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 2.25rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(123,45,59,0.06);
}
.info-card-icon {
  width: 48px;
  height: 48px;
  background: var(--blush);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--burgundy);
  margin-bottom: 1.25rem;
}
.info-card h3 {
  font-size: 1.1875rem;
  margin-bottom: 1.25rem;
}
.hours-list li {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--blush);
  font-size: 0.9375rem;
}
.hours-list li:last-child { border-bottom: none; }
.hours-list li span:first-child { color: var(--text-dark); font-weight: 500; }
.hours-list li span:last-child { color: var(--text-mid); }
.hours-list .closed span:last-child { color: var(--burgundy); font-weight: 500; }
.info-card address { margin-bottom: 0.75rem; }
.info-card p { font-size: 0.9375rem; color: var(--text-mid); }
.contact-link { color: var(--burgundy); font-weight: 500; }
.contact-link:hover { text-decoration: underline; }
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--burgundy);
  transition: gap var(--transition);
}
.link-arrow:hover { gap: 0.625rem; }

/* ── Testimonials ───────────────────────────────────────── */
.testimonials { background: var(--blush-light); }
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.testimonial-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(123,45,59,0.06);
  display: flex;
  flex-direction: column;
  transition: all var(--transition);
}
.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.testimonial-stars {
  font-size: 1rem;
  color: var(--gold);
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}
.testimonial-text {
  font-family: var(--font-serif);
  font-size: 1.0625rem;
  font-style: italic;
  color: var(--text-mid);
  line-height: 1.75;
  flex: 1;
  margin-bottom: 1.25rem;
}
.testimonial-author {
  border-top: 1px solid var(--blush);
  padding-top: 1rem;
}
.author-name {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-dark);
  letter-spacing: 0.05em;
}

/* ── CTA ────────────────────────────────────────────────── */
.cta {
  position: relative;
  padding: 6rem 0;
  overflow: hidden;
  background: linear-gradient(
    135deg,
    var(--burgundy-deep) 0%,
    var(--burgundy) 50%,
    #A04050 100%
  );
}
.cta-gradient {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 50% at 80% 50%, rgba(200,169,110,0.15) 0%, transparent 60%),
    radial-gradient(ellipse 50% 70% at 10% 50%, rgba(245,230,224,0.1) 0%, transparent 60%);
  pointer-events: none;
}
.cta-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}
.cta-title {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  color: var(--white);
  margin-bottom: 1rem;
}
.cta-subtitle {
  font-size: 1.0625rem;
  color: rgba(255,255,255,0.8);
  line-height: 1.75;
  margin-bottom: 2rem;
}
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

/* ── Contact ────────────────────────────────────────────── */
.contact { background: var(--cream); }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}
.contact-details { display: flex;
  flex-direction: column;
  gap: 1rem;
}
.contact-detail {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9375rem;
  color: var(--text-mid);
}
.contact-detail svg { color: var(--burgundy); flex-shrink: 0; }
.contact-detail a { color: var(--burgundy); font-weight: 500; }
.contact-detail a:hover { text-decoration: underline; }

.contact-form-wrap {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(123,45,59,0.06);
}
.contact-form { display: flex; flex-direction: column; gap: 1.25rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { display: flex; flex-direction: column; gap: 0.375rem; }
.form-group label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-dark);
  letter-spacing: 0.04em;
}
.form-group input,
.form-group select,
.form-group textarea {
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--blush);
  border-radius: var(--radius-sm);
  background: var(--blush-light);
  color: var(--text-dark);
  transition: all var(--transition);
  outline: none;
  width: 100%;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--burgundy);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(123,45,59,0.08);
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-light); }
.form-group textarea { resize: vertical; min-height: 120px; }
.form-group select { cursor: pointer; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%237B2D3B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

.form-success {
  text-align: center;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}
.success-icon { color: var(--burgundy); }
.form-success h3 { font-size: 1.5rem; }
.form-success p { color: var(--text-mid); font-size: 0.9375rem; }

/* ── Footer ─────────────────────────────────────────────── */
.site-footer {
  background: var(--text-dark);
  color: rgba(255,255,255,0.7);
  padding: 4rem 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3rem;
  padding-bottom: 3rem;
}
.footer-brand p {
  font-size: 0.9375rem;
  line-height: 1.75;
  margin-top: 1rem;
  max-width: 280px;
}
.footer-links h4,
.footer-contact h4 {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 1.25rem;
}
.footer-links ul { display: flex; flex-direction: column; gap: 0.625rem; }
.footer-links a {
  font-size: 0.9375rem;
  color: rgba(255,255,255,0.6);
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--white); }
.footer-contact address {
  font-size: 0.9375rem;
  line-height: 1.75;
  margin-bottom: 0.75rem;
}
.footer-contact p { font-size: 0.9375rem; margin-bottom: 0.375rem; }
.footer-contact a { color: rgba(255,255,255,0.6); transition: color var(--transition); }
.footer-contact a:hover { color: var(--white); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 1.5rem 0;
  text-align: center;
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.4);
}

/* ── Reveal Animations ──────────────────────────────────── */
.reveal-up, .reveal-left, .reveal-right {
  opacity: 0;
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}
.reveal-up   { transform: translateY(32px); }
.reveal-left  { transform: translateX(-32px); }
.reveal-right { transform: translateX(32px); }
.reveal-up.revealed,
.reveal-left.revealed,
.reveal-right.revealed {
  opacity: 1;
  transform: translate(0, 0);
}

/* ── Mobile Nav ─────────────────────────────────────────── */
@media (max-width: 900px) {
  .nav-toggle { display: flex; z-index: 1001; }
  .main-nav {
    position: fixed;
    inset: 0;
    background: rgba(253,248,245,0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    gap: 2rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition);
  }
  .main-nav.open { opacity: 1; pointer-events: all; }
  .main-nav a:not(.btn) { font-size: 1.25rem; color: var(--text-dark); }
  .main-nav .btn { font-size: 1rem; }
}

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 900px) {
  .about-grid,
  .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .about-image-wrap { order: -1; max-width: 480px; margin: 0 auto; }
  .services-grid,
  .patient-info-grid,
  .testimonials-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  section { padding: 4rem 0; }
  .hero-content { padding: 7rem 1.25rem 5rem; }
  .hero-stats { flex-direction: column; gap: 1rem; }
  .stat-divider { display: none; }
  .services-grid,
  .patient-info-grid,
  .testimonials-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .about-features { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .contact-form-wrap { padding: 1.5rem; }
  .hero-scroll { display: none; }
}
