/* ==========================================================================
   Gentle Dental Care — Kilkenny
   Navy #14213D on warm paper. Single modern sans: Manrope.
   ========================================================================== */

:root {
  --navy: #14213D;
  --navy-deep: #0B1526;
  --paper: #F7F5F0;
  --white: #FFFFFF;
  --stone: #E3DFD6;
  --slate: #5B6472;
  --sage: #8FA38C;

  --sans: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --container: 1180px;
  --gutter: clamp(20px, 5vw, 64px);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--navy);
  background: var(--paper);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 3px;
}

.wrap {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

h1, h2, h3, h4 {
  font-family: var(--sans);
  font-weight: 700;
  line-height: 1.14;
  margin: 0;
  letter-spacing: -0.015em;
}

p { margin: 0; }

.section { padding: clamp(64px, 9vw, 128px) 0; }
.section--white { background: var(--white); }
.section--navy  { background: var(--navy); color: var(--paper); }

.section-head {
  max-width: 640px;
  margin-bottom: clamp(36px, 5vw, 56px);
}
.section-head h2 { font-size: clamp(28px, 3.6vw, 40px); }
.section-head p {
  margin-top: 14px;
  color: var(--slate);
  font-size: 17px;
  max-width: 52ch;
}
.section--navy .section-head p { color: #C7CEDE; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 600;
  padding: 13px 26px;
  border-radius: 3px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn--primary { background: var(--navy); color: var(--white); }
.btn--primary:hover { background: #1E3057; }
.btn--ghost { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn--ghost:hover { background: var(--navy); color: var(--white); }
.section--navy .btn--ghost { color: var(--paper); border-color: #445071; }
.section--navy .btn--ghost:hover { background: var(--paper); color: var(--navy); }

.btn--ghost-light { background: transparent; color: var(--paper); border-color: rgba(255,255,255,0.4); }
.btn--ghost-light:hover { background: var(--paper); color: var(--navy); border-color: var(--paper); }

.btn--lg {
  padding: 19px 32px;
  font-size: 16.5px;
  font-weight: 700;
  border-radius: 4px;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 245, 240, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.site-header.is-scrolled {
  border-bottom-color: var(--stone);
  box-shadow: 0 1px 0 rgba(20, 33, 61, 0.03);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 220px;
}

.logo-link { display: flex; align-items: center; }
.logo-link img {
  height: 200px;
  width: auto;
}

.main-nav { display: flex; align-items: center; gap: 34px; }
.main-nav a {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--navy);
  padding: 4px 0;
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s ease;
}
.main-nav a:hover { border-color: var(--navy); }

.header-actions { display: flex; align-items: center; gap: 18px; }
.phone-link { font-size: 14.5px; font-weight: 700; white-space: nowrap; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

/* ---------- Hero ---------- */

.hero { padding: clamp(40px, 6vw, 76px) 0 clamp(60px, 8vw, 96px); }
.hero .wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 72px);
  align-items: center;
}
.hero-copy h1 {
  font-size: clamp(38px, 5.2vw, 58px);
  max-width: 13ch;
}
.hero-copy .lede {
  margin-top: 22px;
  font-size: 18px;
  color: var(--slate);
  max-width: 46ch;
}
.hero-actions { margin-top: 32px; display: flex; gap: 14px; flex-wrap: wrap; }

.hero-hours {
  margin-top: 40px;
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  border-top: 1px solid var(--stone);
  padding-top: 22px;
}
.hero-hours div { font-size: 14px; }
.hero-hours strong {
  display: block;
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 2px;
}
.hero-hours span { color: var(--slate); }

/* ---------- Video player ---------- */

.video-frame {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: var(--navy-deep);
  box-shadow: 0 30px 60px -30px rgba(11, 21, 38, 0.35);
}
.video-frame video { width: 100%; height: 100%; object-fit: cover; display: block; }
.video-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, rgba(11,21,38,0.05) 0%, rgba(11,21,38,0.45) 100%);
  border: none;
  cursor: pointer;
  padding: 0;
}
.video-play__circle {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: rgba(255,255,255,0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, background 0.2s ease;
}
.video-play:hover .video-play__circle { transform: scale(1.06); background: #fff; }
.video-play__circle svg { margin-left: 4px; }
.video-play__label {
  position: absolute;
  bottom: 22px; left: 22px; right: 22px;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  display: flex; align-items: center; gap: 8px;
}
.video-frame.is-playing .video-play { opacity: 0; pointer-events: none; }

/* ---------- Highlights strip ---------- */

.highlights { border-top: 1px solid var(--stone); border-bottom: 1px solid var(--stone); }
.highlights .wrap { display: grid; grid-template-columns: repeat(3, 1fr); padding: 0; }
.highlight { padding: 34px var(--gutter); border-left: 1px solid var(--stone); }
.highlight:first-child { border-left: none; padding-left: 0; }
.highlight h3 { font-size: 17px; font-weight: 700; }
.highlight p { margin-top: 8px; font-size: 14.5px; color: var(--slate); }

/* ---------- About ---------- */

.about .wrap {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
}
.about-media { border-radius: 4px; overflow: hidden; }
.about-media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/5; }
.about-copy p { color: var(--slate); font-size: 16.5px; margin-top: 18px; max-width: 56ch; }
.about-copy p:first-of-type { margin-top: 20px; }

.faq-list { margin-top: 32px; border-top: 1px solid var(--stone); }
.faq-item { border-bottom: 1px solid var(--stone); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-weight: 700;
  font-size: 15.5px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .icon { flex: none; width: 20px; height: 20px; position: relative; }
.faq-item summary .icon::before,
.faq-item summary .icon::after {
  content: '';
  position: absolute;
  background: var(--navy);
  transition: transform 0.2s ease;
}
.faq-item summary .icon::before { width: 100%; height: 1.5px; top: 9px; left: 0; }
.faq-item summary .icon::after { width: 1.5px; height: 100%; left: 9px; top: 0; }
.faq-item[open] summary .icon::after { transform: rotate(90deg); opacity: 0; }
.faq-item p { padding: 0 0 20px; color: var(--slate); font-size: 15px; max-width: 60ch; }

/* ---------- Services ---------- */

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--stone);
  border-left: 1px solid var(--stone);
}
.service-card {
  border-right: 1px solid var(--stone);
  border-bottom: 1px solid var(--stone);
  padding: 30px 26px;
  min-height: 168px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: background 0.15s ease;
}
.service-card:hover { background: var(--white); }
.service-card h3 { font-size: 18px; font-weight: 700; }
.service-card p { margin-top: 10px; font-size: 14px; color: var(--slate); }

/* ---------- Fees ---------- */

.fees-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.fees-tab {
  font-family: var(--sans);
  font-size: 13.5px;
  font-weight: 700;
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid var(--stone);
  background: var(--white);
  color: var(--slate);
  cursor: pointer;
}
.fees-tab.is-active { background: var(--navy); color: var(--white); border-color: var(--navy); }
.fees-panel { display: none; padding-top: 28px; }
.fees-panel.is-active { display: block; }
.fee-row { display: flex; align-items: baseline; gap: 10px; padding: 13px 0; border-bottom: 1px solid var(--stone); }
.fee-row .name { font-size: 15.5px; }
.fee-row .name small { display: block; color: var(--slate); font-size: 13px; margin-top: 2px; }
.fee-row .leader { flex: 1; border-bottom: 1px dotted #C7C2B6; height: 0; transform: translateY(-5px); }
.fee-row .price { font-weight: 700; font-size: 15.5px; white-space: nowrap; }
.fees-note { margin-top: 24px; font-size: 13.5px; color: var(--slate); }

/* ---------- Team ---------- */

.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; background: var(--stone); }
.team-card { background: var(--navy); position: relative; aspect-ratio: 3/3.3; overflow: hidden; }
.team-card img { width: 100%; height: 100%; object-fit: cover; opacity: 0.92; transition: transform 0.4s ease, opacity 0.4s ease; }
.team-card:hover img { transform: scale(1.04); opacity: 1; }
.team-card .info {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 18px 20px;
  background: linear-gradient(180deg, rgba(11,21,38,0) 0%, rgba(11,21,38,0.82) 100%);
  color: #fff;
}
.team-card .info h3 { font-size: 17px; font-weight: 700; }
.team-card .info p { font-size: 13px; color: #C7CEDE; margin-top: 3px; }

/* ---------- Booking ---------- */

.booking { overflow: hidden; }

.booking-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}

.booking-copy h2 { font-size: clamp(30px, 3.6vw, 42px); }
.booking-copy .lede-navy {
  margin-top: 18px;
  font-size: 17px;
  color: #C7CEDE;
  max-width: 48ch;
  line-height: 1.6;
}

.booking-features {
  list-style: none;
  margin: 32px 0 0;
  padding: 0;
  display: grid;
  gap: 18px;
}
.booking-features li {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 15.5px;
  font-weight: 600;
  color: var(--paper);
}
.booking-features__icon {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.booking-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 8px;
  padding: clamp(36px, 4vw, 48px);
}
.booking-card__icon {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  background: var(--paper);
  display: flex;
  align-items: center;
  justify-content: center;
}
.booking-card h3 {
  margin-top: 22px;
  font-size: 24px;
  color: var(--paper);
}
.booking-card > p {
  margin-top: 10px;
  color: #C7CEDE;
  font-size: 15px;
  max-width: 40ch;
}
.booking-card__actions {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.booking-card__actions .btn { width: 100%; justify-content: center; }
.booking-card__hours {
  margin-top: 22px;
  font-size: 13px;
  color: #8A93AC;
}

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

/* ---------- Contact ---------- */

.contact .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 72px); }
.contact-details dl { margin: 26px 0 0; display: grid; gap: 20px; }
.contact-details dt { font-size: 13px; color: var(--slate); font-weight: 700; }
.contact-details dd { margin: 4px 0 0; font-size: 16px; }
.hours-table { margin-top: 26px; width: 100%; border-collapse: collapse; font-size: 14.5px; }
.hours-table td { padding: 8px 0; border-bottom: 1px solid var(--stone); }
.hours-table td:last-child { text-align: right; color: var(--slate); }
.map-frame { border-radius: 4px; overflow: hidden; min-height: 340px; border: 1px solid var(--stone); }
.map-frame iframe { width: 100%; height: 100%; min-height: 340px; border: 0; display: block; }

/* ---------- Footer ---------- */

.site-footer { background: var(--navy-deep); color: #9AA5BE; padding: 56px 0 28px; }
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
  padding-bottom: 36px;
  border-bottom: 1px solid #223051;
}
.footer-top .logo-link img { height: 180px; }

.footer-links { display: flex; gap: 48px; flex-wrap: wrap; }
.footer-col h4 {
  font-size: 12.5px;
  font-weight: 700;
  color: #C7CEDE;
  letter-spacing: 0.03em;
  margin-bottom: 12px;
}
.footer-col a, .footer-col p { display: block; font-size: 14px; color: #9AA5BE; margin-bottom: 8px; }
.footer-col a:hover { color: #fff; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 22px;
  font-size: 12.5px;
}
.footer-social { display: flex; gap: 14px; }
.footer-social a {
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 1px solid #223051;
  display: flex; align-items: center; justify-content: center;
}
.footer-social a:hover { border-color: #445071; }

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-media { order: -1; }
  .about .wrap { grid-template-columns: 1fr; }
  .about-media { order: -1; aspect-ratio: 16/9; }
  .about-media img { aspect-ratio: 16/9; }
  .contact .wrap { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .highlights .wrap { grid-template-columns: 1fr; }
  .highlight { border-left: none; border-top: 1px solid var(--stone); padding-left: 0; }
  .highlight:first-child { border-top: none; }
  .site-header .wrap { height: 150px; }
  .logo-link img { height: 130px; }
}

@media (max-width: 720px) {
  .main-nav, .header-actions .phone-link { display: none; }
  .nav-toggle { display: flex; }
  .services-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* Mobile nav drawer */
.mobile-nav {
  position: fixed;
  inset: 150px 0 0 0;
  background: var(--paper);
  z-index: 90;
  padding: 24px var(--gutter);
  transform: translateY(-8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
}
.mobile-nav.is-open { opacity: 1; transform: translateY(0); pointer-events: auto; }
.mobile-nav a {
  display: block;
  font-size: 24px;
  font-weight: 700;
  padding: 14px 0;
  border-bottom: 1px solid var(--stone);
}
.mobile-nav .phone-link { margin-top: 20px; font-size: 16px; }
