/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }

:root {
  --bg: #0d0d0e;
  --bg-alt: #121213;
  --bg-alt-2: #17171a;
  --border: #2c2c2e;
  --border-soft: #242426;
  --text: #f2efec;
  --text-dim: #a9a39d;
  --text-dimmer: #9d9791;
  --text-faint: #7d7872;
  --accent: #e2540f;
  --accent-light: #ff7a3c;
  --accent-dark: #b93b06;
  --cream: #f2efec;
  --cream-text: #17150f;
}

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Archivo", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--text); text-decoration: none; }
a:hover { color: var(--accent-light); }

h1, h2, h3, h4, p, ul, ol, li, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
button { font: inherit; color: inherit; }

::selection { background: var(--accent); color: #fff; }

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

.page {
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 clamp(14px, 2.5vw, 28px);
}

.mono { font-family: "IBM Plex Mono", monospace; }

/* ---------- Top banner ---------- */
.top-banner {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #b9b3ad;
}
.top-banner .divider { color: #4a4540; }
.top-banner .highlight { color: var(--accent-light); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  background: radial-gradient(120% 90% at 18% 8%, #f4631a 0%, #e2540f 38%, #c33f07 74%, #a63204 100%);
  color: #fff;
}

.hero-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 24px;
  justify-content: space-between;
  padding: 22px clamp(18px, 3vw, 40px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 3px;
  width: 26px;
  height: 26px;
}
.brand-mark span { background: rgba(255, 255, 255, 0.45); border-radius: 2px; }
.brand-mark span:nth-child(1), .brand-mark span:nth-child(4) { background: #fff; }
.footer .brand-mark span { background: #4a4540; }
.footer .brand-mark span:nth-child(1), .footer .brand-mark span:nth-child(4) { background: var(--cream); }
.brand-name { font-size: 22px; font-weight: 600; letter-spacing: -0.02em; }
.footer .brand-name { font-size: 20px; }

.main-nav { display: flex; flex-wrap: wrap; gap: 8px 28px; align-items: center; font-size: 15px; }
.main-nav a { display: flex; align-items: center; gap: 8px; }
.main-nav .dot { width: 5px; height: 5px; border-radius: 50%; background: rgba(255, 255, 255, 0.6); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  font-size: 15px;
  cursor: pointer;
  border: none;
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn-outline {
  border: 1px solid rgba(255, 255, 255, 0.6);
  padding: 12px 22px;
  background: transparent;
  color: #fff;
}
.btn-outline:hover { background: #fff; color: var(--accent-dark); border-color: #fff; }

.btn-solid { background: var(--accent); color: #fff; padding: 15px 28px; }
.btn-solid:hover { background: #17150f; color: #fff; }

.btn-light { background: #fff; color: var(--accent-dark); padding: 15px 28px; }
.btn-light:hover { background: #17150f; color: #fff; }

.full-width { width: 100%; padding: 16px 20px; font-size: 16px; }

.hero-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }

.hero-copy {
  align-self: start;
  display: flex;
  flex-direction: column;
  gap: clamp(40px, 7vw, 96px);
  min-height: min(620px, 62vh);
  padding: clamp(24px, 3.4vw, 48px);
  border-right: 1px solid rgba(255, 255, 255, 0.16);
}

.hero-lede { max-width: 34ch; font-size: clamp(16px, 1.3vw, 19px); line-height: 1.45; color: rgba(255, 255, 255, 0.78); }

.hero-title { font-size: clamp(46px, 7vw, 104px); line-height: 0.94; font-weight: 400; letter-spacing: -0.035em; }
.hero-title .dim { color: rgba(255, 255, 255, 0.55); }

.hero-visual { position: relative; display: flex; flex-direction: column; justify-content: flex-end; }
.tooth-wrap { flex: 1 1 auto; display: grid; place-items: center; padding: clamp(24px, 3vw, 40px); }
.tooth-img {
  width: min(300px, 78%);
  filter: drop-shadow(0 30px 40px rgba(0, 0, 0, 0.25));
  mix-blend-mode: screen;
  margin: 0 auto;
}

.team-rail { position: relative; padding: 0 clamp(24px, 3vw, 40px) clamp(24px, 3vw, 40px); }
.rail-next {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 0, 0, 0.55);
  border: none;
  border-radius: 3px;
  padding: 9px 14px;
  margin-bottom: 10px;
  font-size: 14px;
  cursor: pointer;
  color: #fff;
}
.rail-next:hover { background: #000; }
.rail-next .arrow { opacity: 0.6; }

.rail-cards { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 10px; overflow: hidden; }
.rail-card {
  position: relative;
  aspect-ratio: 0.86;
  background: #141415;
  border-radius: 3px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.rail-card .portrait {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 34px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.35);
}
.rail-card figcaption {
  position: absolute;
  right: 0;
  bottom: 0;
  padding: 8px 12px;
  background: rgba(0, 0, 0, 0.72);
  font-size: 14px;
  pointer-events: none;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 18px 32px;
  padding: 20px clamp(18px, 3vw, 40px) 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 14px;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.82);
}

/* ---------- Sections ---------- */
.section { padding: clamp(40px, 5vw, 72px) 0; }
#services { padding-top: clamp(64px, 8vw, 120px); padding-bottom: clamp(40px, 5vw, 72px); }

.section-head { display: flex; flex-wrap: wrap; gap: 24px; align-items: end; justify-content: space-between; margin-bottom: 44px; }
.section-head h2 { font-size: clamp(32px, 4.6vw, 62px); font-weight: 400; letter-spacing: -0.03em; line-height: 1; }
.section-sub { max-width: 40ch; font-size: 17px; line-height: 1.5; color: var(--text-dim); }
.accent { color: var(--accent-light); }

/* ---------- Services ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1px;
  background: var(--border-soft);
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  overflow: hidden;
}
.service-card {
  background: var(--bg-alt);
  padding: 30px 26px 34px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 250px;
  transition: background 0.15s ease;
}
.service-card:hover { background: var(--bg-alt-2); }
.service-no { font-family: "IBM Plex Mono", monospace; font-size: 12px; color: var(--accent-light); }
.service-card h3 { font-size: 24px; font-weight: 500; letter-spacing: -0.02em; }
.service-card p { font-size: 15px; line-height: 1.55; color: var(--text-dimmer); }
.service-meta { margin-top: auto; font-size: 14px; color: #cfc9c3; }

/* ---------- Implants ---------- */
.implants-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(24px, 3vw, 48px);
  align-items: stretch;
}
.implants-card {
  background: var(--cream);
  color: var(--cream-text);
  border-radius: 14px;
  padding: clamp(28px, 3.4vw, 52px);
  display: flex;
  flex-direction: column;
  gap: 26px;
}
.eyebrow { font-family: "IBM Plex Mono", monospace; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: #b4491a; }
.implants-card h2 { font-size: clamp(30px, 3.6vw, 50px); font-weight: 400; letter-spacing: -0.03em; line-height: 1.04; }
.body-copy { font-size: 17px; line-height: 1.55; color: #4c4740; max-width: 46ch; }
.body-copy.light { color: rgba(255, 255, 255, 0.85); }

.fact-list { display: grid; gap: 1px; background: #dad5cf; border-top: 1px solid #dad5cf; border-bottom: 1px solid #dad5cf; }
.fact-list li {
  background: var(--cream);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  padding: 15px 2px;
  font-size: 16px;
}
.fact-list .k { color: #6b655d; }
.fact-list .v { font-weight: 500; }

.implants-photo {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border-soft);
  min-height: 420px;
  background: linear-gradient(140deg, #1c1c1e 0%, #262628 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.implants-photo::after {
  content: "Surgery room";
  font-family: "IBM Plex Mono", monospace;
  font-size: 13px;
  color: var(--text-faint);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ---------- Price ---------- */
.price-head { margin-bottom: 36px; }
.toggle-group { display: flex; gap: 4px; padding: 4px; border: 1px solid var(--border); border-radius: 6px; }
.toggle-btn {
  border: none;
  border-radius: 4px;
  padding: 10px 18px;
  font-size: 14px;
  cursor: pointer;
  background: transparent;
  color: var(--text-dim);
}
.toggle-btn.active { background: var(--accent); color: #fff; }

.plans-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 16px; }
.plan-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px 26px 32px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  background: var(--bg-alt);
}
.plan-card h3 { font-size: 21px; font-weight: 500; }
.plan-price { display: flex; align-items: baseline; gap: 8px; }
.plan-price .amount { font-size: clamp(34px, 3.4vw, 46px); letter-spacing: -0.03em; }
.plan-price .unit { font-size: 14px; color: #918b85; }
.plan-card p { font-size: 15px; line-height: 1.55; color: var(--text-dimmer); }
.plan-items { display: grid; gap: 9px; font-size: 15px; color: #cfc9c3; }
.plan-items li { display: flex; gap: 10px; }
.plan-items li::before { content: "\2014"; color: var(--accent-light); }
.plan-cta {
  margin-top: auto;
  border: 1px solid #3a3a3d;
  border-radius: 4px;
  padding: 13px 20px;
  text-align: center;
  font-size: 15px;
  color: var(--text);
}
.plan-cta:hover { background: var(--accent); border-color: var(--accent); color: #fff; }

.price-note { margin-top: 18px; font-family: "IBM Plex Mono", monospace; font-size: 12px; color: var(--text-faint); }

/* ---------- Care ---------- */
.care-panel {
  border-radius: 14px;
  background: linear-gradient(130deg, #e2540f 0%, #b93b06 100%);
  padding: clamp(28px, 3.6vw, 56px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: clamp(24px, 3vw, 48px);
}
.care-copy { display: flex; flex-direction: column; gap: 20px; }
.care-copy h2 { font-size: clamp(30px, 3.8vw, 52px); font-weight: 400; letter-spacing: -0.03em; line-height: 1.04; color: #fff; }
.care-copy .btn-light { align-self: start; }

.steps-list { display: grid; }
.steps-list li { display: flex; gap: 18px; padding: 18px 0; border-top: 1px solid rgba(255, 255, 255, 0.28); }
.steps-list .no { font-family: "IBM Plex Mono", monospace; font-size: 12px; color: #fff; padding-top: 4px; }
.steps-list h3 { font-size: 19px; font-weight: 500; color: #fff; margin-bottom: 5px; }
.steps-list p { font-size: 15px; line-height: 1.5; color: rgba(255, 255, 255, 0.82); }

/* ---------- Team ---------- */
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.team-card figure {
  position: relative;
  aspect-ratio: 0.84;
  border-radius: 8px;
  overflow: hidden;
  background: #eef1f3;
  border: 1px solid var(--border-soft);
  display: flex;
  align-items: center;
  justify-content: center;
}
.team-card .initials { font-size: 40px; font-weight: 600; color: #b9b3ad; }
.team-card h3 { font-size: 19px; font-weight: 500; margin-top: 14px; }
.team-card p { font-size: 15px; color: #928c86; margin-top: 4px; }

/* ---------- FAQ ---------- */
.faq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(24px, 3vw, 56px);
  align-items: start;
}
.faq-grid h2 { font-size: clamp(32px, 4.6vw, 56px); font-weight: 400; letter-spacing: -0.03em; line-height: 1.02; }
.faq-list { border-top: 1px solid var(--border); }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q {
  width: 100%;
  display: flex;
  gap: 20px;
  justify-content: space-between;
  align-items: center;
  background: none;
  border: none;
  padding: 22px 0;
  text-align: left;
  font-size: 18px;
  cursor: pointer;
  color: var(--text);
}
.faq-q:hover { color: var(--accent-light); }
.faq-sign { font-family: "IBM Plex Mono", monospace; font-size: 18px; color: var(--accent-light); }
.faq-a { padding: 0 0 24px; max-width: 56ch; font-size: 16px; line-height: 1.6; color: var(--text-dim); display: none; }
.faq-item.open .faq-a { display: block; }

/* ---------- Booking ---------- */
.book-panel {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
}
.book-info, .book-form { background: var(--bg-alt); padding: clamp(28px, 3.4vw, 48px); }
.book-info { display: flex; flex-direction: column; gap: 18px; }
.book-info h2 { font-size: clamp(28px, 3.4vw, 44px); font-weight: 400; letter-spacing: -0.03em; line-height: 1.05; }
.contact-list { display: grid; gap: 10px; margin-top: 6px; font-size: 15px; color: #cfc9c3; }

#bookingForm { display: grid; gap: 14px; }
#bookingForm input {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 15px 16px;
  font-size: 16px;
  color: var(--text);
  font-family: "Archivo", sans-serif;
  width: 100%;
}
#bookingForm input:focus { border-color: var(--accent); outline: none; }

.slots-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; }
.slot-btn {
  border: 1px solid var(--border);
  background: transparent;
  color: #cfc9c3;
  border-radius: 4px;
  padding: 13px 10px;
  font-size: 15px;
  cursor: pointer;
}
.slot-btn.active { border-color: var(--accent); background: var(--accent); color: #fff; }

.form-note { font-family: "IBM Plex Mono", monospace; font-size: 12px; color: var(--text-faint); }

/* ---------- Footer ---------- */
.footer { padding: clamp(40px, 5vw, 64px) 0 40px; border-top: 1px solid var(--border); }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 32px; margin-bottom: 48px; }
.footer-col { display: grid; gap: 10px; font-size: 15px; color: var(--text-dim); }
.footer-address { font-size: 15px; line-height: 1.6; color: var(--text-dim); }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  justify-content: space-between;
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  color: #6f6a65;
}

/* ---------- Responsive tweaks ---------- */
@media (max-width: 640px) {
  .hero-header { padding: 18px 20px; }
  .main-nav { display: none; }
  .hero-copy, .hero-header { border-right: none; }
}
