@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;1,400;1,500;1,600&family=Manrope:wght@400;500;600;700&display=swap");

:root {
  --ink: #0e2a47;
  --ink-700: #1b3a5c;
  --mint-100: #ddeee3;
  --mint-200: #cde9dd;
  --mint-500: #7fbfa3;
  --mint-700: #4f9077;
  --bone: #f6f2ea;
  --paper: #fbf8f2;
  --neutral-0: #ffffff;
  --neutral-100: #eceff3;
  --neutral-200: #dce2ea;
  --neutral-300: #b8c2d0;
  --neutral-500: #66728a;
  --bg: var(--bone);
  --fg: var(--ink);
  --fg-muted: var(--neutral-500);
  --border: var(--neutral-200);
  --font-display: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
  --font-body: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --shadow-soft: 0 1px 2px rgba(14, 42, 71, 0.04), 0 4px 12px rgba(14, 42, 71, 0.04);
  --ease-soft: cubic-bezier(0.2, 0.8, 0.2, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

:focus-visible {
  outline: 2px solid var(--mint-500);
  outline-offset: 2px;
}

.container {
  width: min(1200px, calc(100% - 48px));
  margin: 0 auto;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(24px, 5vw, 96px);
  border-bottom: 1px solid transparent;
  transition: background 180ms var(--ease-soft), border-color 180ms var(--ease-soft);
}

.site-header.is-scrolled {
  background: rgba(246, 242, 234, 0.9);
  backdrop-filter: blur(12px);
  border-bottom-color: var(--border);
}

.brand img {
  width: 180px;
  height: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 14px;
  font-weight: 600;
}

.site-nav a {
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.site-nav a:hover {
  border-bottom-color: currentColor;
}

.nav-phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border: 1px solid var(--ink);
  border-radius: 4px;
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: rgba(246, 242, 234, 0.9);
}

.menu-button span {
  display: block;
  width: 18px;
  height: 1.5px;
  margin: 5px auto;
  background: var(--ink);
}

.hero {
  position: relative;
  min-height: 88vh;
  display: grid;
  align-items: center;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

.hero-bg,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-bg {
  background-image: url("../assets/images/clinic-hero.png");
  background-size: cover;
  background-position: center;
}

.hero-overlay {
  background: rgba(246, 242, 234, 0.76);
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: min(650px, calc(100% - 48px));
  margin-left: clamp(24px, 8vw, 96px);
  padding-top: 74px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--mint-700);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2 {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.04;
  text-wrap: balance;
}

h1 {
  font-size: clamp(4rem, 9vw, 8rem);
}

h1 em,
h2 em {
  font-style: italic;
  font-weight: 400;
}

h2 {
  font-size: clamp(2.55rem, 5.4vw, 5.25rem);
  font-style: italic;
}

h3 {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 27px;
  font-style: italic;
  font-weight: 500;
  line-height: 1.15;
}

.lede {
  max-width: 520px;
  margin: 24px 0 0;
  color: var(--ink);
  font-size: clamp(18px, 2vw, 21px);
  line-height: 1.55;
  text-wrap: pretty;
}

.small-lede {
  max-width: 640px;
  color: var(--fg-muted);
  font-size: 18px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  border: 1px solid var(--ink);
  border-radius: 4px;
  padding: 12px 20px;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform 150ms var(--ease-soft), opacity 150ms var(--ease-soft), box-shadow 150ms var(--ease-soft);
}

.btn:hover {
  box-shadow: var(--shadow-soft);
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  color: var(--bone);
  background: var(--ink);
}

.btn-secondary {
  color: var(--ink);
  background: transparent;
}

.proof-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 56px;
  padding-top: 22px;
  border-top: 1px solid rgba(14, 42, 71, 0.24);
}

.proof-row strong,
.proof-row span {
  display: block;
}

.proof-row span {
  color: var(--fg-muted);
  font-size: 13px;
}

.statement,
.section {
  padding: clamp(72px, 10vw, 128px) 0;
}

.statement {
  background: var(--paper);
}

.statement-grid {
  display: grid;
  grid-template-columns: 0.5fr 1.5fr 0.8fr;
  gap: 32px;
  align-items: start;
}

.statement h2 {
  font-size: clamp(2rem, 4vw, 3.75rem);
}

.statement p:not(.eyebrow) {
  margin: 6px 0 0;
  color: var(--fg-muted);
}

.services-section,
.appointment-section {
  background: var(--mint-100);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-head {
  max-width: 660px;
  margin-bottom: 56px;
}

.section-head:not(.align-left) {
  margin-inline: auto;
  text-align: center;
}

.section-head p:not(.eyebrow) {
  margin: 16px 0 0;
  color: var(--fg-muted);
  font-size: 18px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.service-card {
  min-height: 242px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bone);
}

.service-card p {
  flex: 1;
  margin: 0;
  color: var(--fg-muted);
  font-size: 14px;
}

.icon-box {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 8px;
  border-radius: 8px;
  background: var(--mint-200);
  color: var(--ink);
}

.card-note {
  display: block;
  margin-top: 6px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
}

.approach-section {
  background: var(--bone);
}

.approach-grid,
.doctor-grid,
.appointment-grid,
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1fr);
  gap: clamp(40px, 7vw, 88px);
  align-items: start;
}

.process-list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--border);
}

.process-list li {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 24px;
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
}

.process-list span {
  color: var(--mint-700);
  font-family: var(--font-display);
  font-size: 32px;
  font-style: italic;
}

.process-list p {
  margin: 8px 0 0;
  color: var(--fg-muted);
}

.doctor-section {
  background: var(--paper);
  border-top: 1px solid var(--border);
}

.doctor-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.doctor-tags span {
  padding: 9px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--ink);
  background: var(--bone);
  font-size: 13px;
  font-weight: 700;
}

.doctor-card {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bone);
  padding: 32px;
}

.doctor-card img {
  width: 240px;
}

.doctor-card dl {
  display: grid;
  gap: 18px;
  margin: 32px 0 0;
}

.doctor-card div {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.doctor-card dt {
  color: var(--fg-muted);
  font-size: 13px;
}

.doctor-card dd {
  margin: 0;
  color: var(--ink);
  font-weight: 700;
  text-align: right;
}

.appointment-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding: 32px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bone);
}

.appointment-form label {
  display: grid;
  gap: 8px;
}

.appointment-form span {
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
}

.appointment-form input,
.appointment-form select,
.appointment-form textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 12px 13px;
  color: var(--ink);
  background: var(--paper);
  font: inherit;
}

.appointment-form textarea {
  resize: vertical;
}

.full {
  grid-column: 1 / -1;
}

.contact-section {
  background: var(--bone);
}

address {
  margin-top: 24px;
  color: var(--ink);
  font-style: normal;
  font-size: 20px;
  line-height: 1.55;
}

.contact-list {
  display: grid;
  border-top: 1px solid var(--border);
}

.contact-list a {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 0;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
}

.contact-list span {
  color: var(--fg-muted);
  font-size: 13px;
}

.contact-list strong {
  text-align: right;
}

.site-footer {
  background: var(--ink);
  color: var(--bone);
  padding: 48px 0;
}

.footer-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 28px;
  align-items: center;
}

.footer-inner img {
  width: 180px;
}

.footer-inner p {
  margin: 0;
  color: rgba(246, 242, 234, 0.72);
  font-size: 14px;
}

@media (max-width: 920px) {
  .menu-button {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 8px);
    right: 24px;
    left: 24px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--bone);
    box-shadow: var(--shadow-soft);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 12px;
  }

  .nav-phone {
    justify-content: center;
  }

  .statement-grid,
  .approach-grid,
  .doctor-grid,
  .appointment-grid,
  .contact-grid,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 32px, 1200px);
  }

  .site-header {
    padding: 14px 16px;
  }

  .brand img {
    width: 154px;
  }

  .hero {
    min-height: 92vh;
    align-items: end;
  }

  .hero-bg {
    background-position: 62% center;
  }

  .hero-overlay {
    background: rgba(246, 242, 234, 0.84);
  }

  .hero-inner {
    width: calc(100% - 32px);
    margin: 0 auto;
    padding: 100px 0 42px;
  }

  h1 {
    font-size: clamp(3.4rem, 16vw, 5rem);
  }

  .hero-actions .btn,
  .hero-actions {
    width: 100%;
  }

  .proof-row {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 34px;
  }

  .service-grid,
  .appointment-form {
    grid-template-columns: 1fr;
  }

  .appointment-form {
    padding: 20px;
  }

  .process-list li {
    grid-template-columns: 48px 1fr;
  }

  .contact-list a {
    display: grid;
    gap: 4px;
  }

  .contact-list strong {
    text-align: left;
  }
}
/* Popup Overlay */
.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 37, 64, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

/* Active State */
.popup-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Popup Box */
.popup-box {
  background: var(--bone);
  padding: 40px 30px;
  border: 1px solid var(--border);
  border-radius: 8px;
  max-width: 420px;
  width: 90%;
  text-align: center;
  position: relative;
  animation: popupFade 0.4s ease;
}

/* Animation */
@keyframes popupFade {
  from {
    transform: translateY(30px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Close Button */
.popup-close {
  position: absolute;
  top: 12px;
  right: 15px;
  border: none;
  background: none;
  font-size: 22px;
  cursor: pointer;
  color: #333;
}

/* Logo */
.popup-logo {
  width: 140px;
  margin-bottom: 15px;
}

/* Text */
.popup-box h2 {
  color: var(--ink);
  margin-bottom: 10px;
}

.popup-box p {
  color: var(--fg-muted);
  font-size: 15px;
}

/* Countdown */
.redirect-text {
  margin-top: 15px;
  font-size: 13px;
  color: #888;
}

/* Button */
.popup-btn {
  margin-top: 20px;
  padding: 12px 20px;
  background: var(--ink);
  color: var(--bone);
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
}

/* Testimonials Section */
.testimonials-section {
  background: var(--paper);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.testimonial-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bone);
  transition: all 150ms var(--ease-soft);
}

.testimonial-card:hover {
  border-color: var(--mint-500);
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft);
}

.stars {
  color: var(--mint-700);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.testimonial-text {
  flex: 1;
  margin: 0;
  color: var(--fg-muted);
  font-size: 14px;
  font-style: italic;
  line-height: 1.6;
}

.testimonial-author {
  margin: 8px 0 0;
  color: var(--ink);
  font-weight: 700;
  font-size: 14px;
}

.testimonial-role {
  margin: 2px 0 0;
  color: var(--fg-muted);
  font-size: 12px;
}

/* Service Card Animations */
.service-card {
  transition: all 200ms var(--ease-soft);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 32px rgba(14, 42, 71, 0.12);
  border-color: var(--mint-500);
}

.icon-box {
  transition: all 300ms var(--ease-soft);
  position: relative;
  display: inline-flex;
}

.service-card:hover .icon-box {
  animation: iconPop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  transform: scale(1.3);
}

@keyframes iconPop {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.15) rotate(-5deg);
  }
  100% {
    transform: scale(1.3) rotate(5deg);
  }
}

.service-card h3 {
  transition: color 150ms var(--ease-soft);
}

.service-card:hover h3 {
  color: var(--mint-700);
}

/* Cursor animation for service cards */
.service-card {
  cursor: grab;
}

.service-card:active {
  cursor: grabbing;
}

/* Responsive */
@media (max-width: 920px) {
  .testimonials-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .testimonials-grid {
    grid-template-columns: 1fr;
  }
}
