/* Advanced Dental Care of NYC — Sedation Dentistry
   Canonical host: https://sedationdentistnyc.com */

:root {
  --cream: #f6f1ea;
  --cream-dark: #efe6d8;
  --paper: #fffcf8;
  --ink: #1a2e2a;
  --ink-soft: #3d524c;
  --muted: #5e726b;
  --line: #d9cfc2;
  --teal: #2c6b61;
  --teal-dark: #1e4a44;
  --teal-deep: #163832;
  --sage: #d7e4df;
  --sage-deep: #b7cdc5;
  --gold: #b8956a;
  --gold-soft: #ead9c0;
  --danger: #8a4b2a;
  --ph-bg: #fff6e5;
  --ph-border: #d4a017;
  --ph-ink: #6a4a08;
  --shadow: 0 14px 40px rgba(26, 46, 42, 0.08);
  --radius: 18px;
  --max: 1120px;
  --header-h: 76px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
  font-family: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
  background: var(--cream);
  color: var(--ink);
  line-height: 1.65;
  font-size: 18px;
  min-height: 100vh;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal-dark); }
a:hover { color: var(--teal); }

.draft-banner {
  background: var(--teal-deep);
  color: #f3efe7;
  font-size: 13px;
  letter-spacing: 0.02em;
  text-align: center;
  padding: 8px 16px;
}
.draft-banner strong { color: #fff; }

.placeholder,
.ph {
  display: inline-block;
  background: var(--ph-bg);
  color: var(--ph-ink);
  border: 1px dashed var(--ph-border);
  border-radius: 8px;
  padding: 2px 8px;
  font-size: 0.86em;
  font-weight: 600;
  line-height: 1.4;
}
.placeholder-block,
.ph-block {
  display: block;
  background: repeating-linear-gradient(
    -45deg,
    var(--ph-bg),
    var(--ph-bg) 10px,
    #fff9ec 10px,
    #fff9ec 20px
  );
  color: var(--ph-ink);
  border: 2px dashed var(--ph-border);
  border-radius: 14px;
  padding: 18px 20px;
  font-weight: 600;
  text-align: center;
}
.ph-photo {
  min-height: 280px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.ph-photo small { font-weight: 500; color: var(--muted); max-width: 28ch; }

.wrap {
  width: min(var(--max), calc(100% - 40px));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(246, 241, 234, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: var(--header-h);
}
.brand {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--ink);
  line-height: 1.15;
  flex: 0 0 auto;
}
.brand .name { font-family: Fraunces, Georgia, serif; font-weight: 600; font-size: 1.05rem; }
.brand .tag { font-size: 0.72rem; color: var(--muted); letter-spacing: 0.04em; text-transform: uppercase; }

nav.primary { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
nav.primary a {
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 0.92rem;
  font-weight: 600;
  padding: 8px 10px;
  border-radius: 999px;
}
nav.primary a:hover,
nav.primary a[aria-current="page"] { background: var(--sage); color: var(--teal-dark); }

.header-cta { display: flex; gap: 8px; align-items: center; flex: 0 0 auto; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  font: inherit;
  font-weight: 650;
  font-size: 0.95rem;
  border-radius: 999px;
  padding: 12px 20px;
  transition: transform 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--teal); color: #fff; }
.btn-primary:hover { background: var(--teal-dark); color: #fff; }
.btn-ghost { background: transparent; color: var(--teal-dark); border: 1.5px solid var(--teal); }
.btn-ghost:hover { background: var(--sage); color: var(--teal-dark); }
.btn-disabled, .btn[aria-disabled="true"] {
  background: var(--ph-bg);
  color: var(--ph-ink);
  border: 1px dashed var(--ph-border);
  cursor: not-allowed;
  transform: none;
}

.menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px 10px;
  font-weight: 700;
  color: var(--ink);
}

/* Hero */
.hero {
  padding: 56px 0 36px;
  background:
    radial-gradient(1200px 400px at 80% -10%, rgba(183, 205, 197, 0.55), transparent 60%),
    linear-gradient(180deg, var(--cream) 0%, var(--cream-dark) 100%);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}
.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 12px;
}
h1, h2, h3, h4 {
  font-family: Fraunces, Georgia, serif;
  font-weight: 560;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 0 0.6em;
}
h1 { font-size: clamp(2.1rem, 4.4vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 2.8vw, 2.2rem); }
h3 { font-size: 1.25rem; }
.lede { font-size: 1.15rem; color: var(--ink-soft); max-width: 46ch; margin: 0 0 1.4em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 28px;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.trust-item { font-size: 0.92rem; color: var(--ink-soft); }
.trust-item strong { display: block; color: var(--ink); font-size: 1.02rem; }

.hero-card {
  background: var(--paper);
  border-radius: 24px;
  box-shadow: var(--shadow);
  overflow: hidden;
  border: 1px solid var(--line);
}
.hero-card .photo { margin: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.hero-card .photo img { width: 100%; height: 260px; object-fit: cover; }
.hero-card .photo figcaption { padding: 8px 16px 0; font-size: 0.82rem; }
.hero-card .meta { padding: 18px 20px 22px; }
.hero-card .meta p { margin: 0 0 8px; color: var(--muted); font-size: 0.95rem; }
.hero-card h2 { font-size: 1.2rem; margin-bottom: 10px; }

/* Sections */
section { padding: 72px 0; }
section.alt { background: var(--paper); }
section.tint { background: var(--sage); }

.section-head { max-width: 46rem; margin-bottom: 36px; }
.section-head p { color: var(--ink-soft); margin: 0; }

.grid-3, .grid-2, .grid-4 {
  display: grid;
  gap: 22px;
}
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: 0 8px 24px rgba(26, 46, 42, 0.04);
}
.card h3 { margin-bottom: 8px; }
.card p { margin: 0 0 12px; color: var(--ink-soft); }
.card a.more { font-weight: 700; text-decoration: none; color: var(--teal-dark); }
.icon-pill {
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--sage); color: var(--teal-dark);
  display: grid; place-items: center;
  font-weight: 800; margin-bottom: 14px;
}

/* Prose pages */
.page-hero { padding: 48px 0 24px; }
.crumbs { font-size: 0.88rem; color: var(--muted); margin-bottom: 16px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--teal); }
.prose { max-width: 46rem; }
.prose p, .prose li { color: var(--ink-soft); }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose li { margin: 0.35em 0; }
.prose strong { color: var(--ink); }
.callout {
  background: var(--sage);
  border-left: 4px solid var(--teal);
  border-radius: 0 14px 14px 0;
  padding: 16px 18px;
  margin: 24px 0;
}
.callout.caution {
  background: #f8efe6;
  border-left-color: var(--gold);
}
.split {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: start;
}
.sticky-aside { position: sticky; top: 100px; }

/* FAQ */
.faq details {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 4px 18px;
  margin-bottom: 10px;
}
.faq summary {
  cursor: pointer;
  font-weight: 700;
  padding: 14px 0;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq details p { margin: 0 0 16px; color: var(--ink-soft); }

/* Forms */
form { display: grid; gap: 14px; }
label { font-weight: 650; font-size: 0.92rem; display: grid; gap: 6px; }
input, select, textarea {
  font: inherit;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
}
textarea { min-height: 120px; resize: vertical; }
.form-note { font-size: 0.88rem; color: var(--muted); }

/* Tables */
.hours { width: 100%; border-collapse: collapse; }
.hours th, .hours td { text-align: left; padding: 8px 0; border-bottom: 1px solid var(--line); }
.hours th { font-weight: 650; width: 46%; }

/* Footer */
footer.site-footer {
  background: var(--teal-deep);
  color: #e6efe9;
  padding: 48px 0 24px;
  margin-top: 20px;
}
footer.site-footer a { color: #e6efe9; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}
.footer-brand { font-family: Fraunces, Georgia, serif; font-size: 1.2rem; margin-bottom: 8px; }
footer ul { list-style: none; padding: 0; margin: 0; }
footer li { margin: 6px 0; }
.legal {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 16px;
  font-size: 0.82rem;
  color: #c5d4cd;
}
.legal p { margin: 0 0 8px; }

@media (max-width: 900px) {
  .hero-grid, .split, .grid-3, .grid-4, .footer-grid { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .menu-toggle { display: inline-flex; }
  nav.primary {
    display: none;
    position: absolute;
    left: 0; right: 0; top: 100%;
    background: var(--cream);
    border-bottom: 1px solid var(--line);
    padding: 12px 20px 20px;
    flex-direction: column;
    align-items: stretch;
  }
  nav.primary.open { display: flex; }
  .header-cta .btn-ghost:not(.btn-call) { display: none; }
  .header-cta .btn-call { display: inline-flex; }
  .sticky-aside { position: static; }
  section { padding: 52px 0; }
}
@media (max-width: 640px) {
  body { font-size: 17px; }
  .wrap { width: min(var(--max), calc(100% - 28px)); }
  .hero { padding: 32px 0 24px; }
}
@media (max-width: 1180px) {
  nav.primary a { padding: 8px 7px; font-size: 0.85rem; }
  .header-cta .btn { padding: 10px 14px; font-size: 0.85rem; }
  .brand .name { font-size: 0.95rem; }
}
@media (max-width: 1040px) {
  .header-cta { }
  nav.primary { display: none; }
  nav.primary.open { display: flex; }
  .menu-toggle { display: inline-flex; }
}

nav.primary { flex-wrap: nowrap; }
.header-inner { flex-wrap: nowrap; }
.nav-group { position: relative; }
.nav-parent {
  background: none; border: 0; font: inherit; font-size: 0.92rem; font-weight: 600;
  color: var(--ink-soft); padding: 8px 10px; border-radius: 999px; cursor: pointer;
}
.nav-parent:hover, .nav-group.open .nav-parent, .nav-group:hover .nav-parent {
  background: var(--sage); color: var(--teal-dark);
}
.nav-sub {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 240px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 8px;
  z-index: 50;
}
.nav-group:hover .nav-sub,
.nav-group:focus-within .nav-sub,
.nav-group.open .nav-sub { display: grid; }
.nav-sub a { display: block; padding: 10px 12px; border-radius: 10px; white-space: nowrap; }

.trust-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px 24px;
}

@media (max-width: 1040px) {
  nav.primary { flex-wrap: wrap; }
  .nav-sub { position: static; box-shadow: none; border: 0; padding: 0 0 0 12px; min-width: 0; }
  .nav-group.open .nav-sub, .nav-group:hover .nav-sub, .nav-group:focus-within .nav-sub { display: grid; }
}
.btn-call .short, .btn-book .short { display: none; }
@media (max-width: 800px) {
  .btn-call .num, .btn-book .num { display: none; }
  .btn-call .short, .btn-book .short { display: inline; }
  .header-cta .btn { padding: 10px 14px; }
  .header-inner { gap: 8px; }
  .header-cta { gap: 6px; }
  .brand .name { font-size: 0.92rem; }

  .trust-row { grid-template-columns: 1fr; }
}

/* Lite, privacy-enhanced YouTube embeds: thumbnail only until the visitor plays */
.video-section { margin: 36px 0 8px; }
.video-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}
.video-grid.single { grid-template-columns: 1fr; max-width: 720px; }
.video-grid.shorts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.video-lite {
  background: #111;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 8px 24px rgba(26, 46, 42, 0.06);
}
.video-lite-play {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  cursor: pointer;
  background: #111;
  aspect-ratio: 16 / 9;
}
.video-lite--short .video-lite-play { aspect-ratio: 9 / 16; max-height: 520px; margin: 0 auto; }
.video-lite-play img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.video-lite-play .play-btn {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 68px;
  height: 48px;
  background: #c00;
  border-radius: 14px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.35);
}
.video-lite-play .play-btn::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 54%;
  transform: translate(-50%, -50%);
  border-style: solid;
  border-width: 10px 0 10px 16px;
  border-color: transparent transparent transparent #fff;
}
.video-lite-play:hover .play-btn { background: #e00; }
.video-lite iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  display: block;
  background: #000;
}
.video-lite--short iframe { aspect-ratio: 9 / 16; max-height: 520px; margin: 0 auto; }
.video-cap {
  margin: 0;
  padding: 12px 14px 14px;
  background: var(--paper);
  font-size: 0.92rem;
  color: var(--ink-soft);
}
.video-cap a { font-weight: 700; text-decoration: none; color: var(--ink); }
.video-note { font-size: 0.86rem; color: var(--muted); margin: 8px 0 0; }
@media (max-width: 800px) {
  .video-grid, .video-grid.shorts { grid-template-columns: 1fr; }
}

/* Photos */
.photo {
  margin: 0 0 1.2rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(26, 46, 42, 0.04);
}
.photo img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}
.photo figcaption {
  padding: 8px 14px 12px;
  font-size: 0.86rem;
  color: var(--muted);
}
.photo.portrait {
  max-width: 360px;
}
.photo.portrait img { object-fit: cover; }

/* Featured patient story */
.featured-story {
  background: var(--paper);
  padding-top: 48px;
  padding-bottom: 48px;
}
.featured-story .video-lite {
  margin: 0;
  width: 100%;
  max-width: 320px;
  justify-self: end;
}
.featured-story .split { align-items: center; }

/* Reviews */
.reviews-aggregate {
  background: var(--sage);
  border-radius: var(--radius);
  padding: 20px 22px;
  margin: 0 0 28px;
}
.reviews-aggregate .rating-line {
  font-family: Fraunces, Georgia, serif;
  font-size: 1.6rem;
  margin: 0 0 8px;
  color: var(--ink);
}
.reviews-aggregate p { margin: 0 0 8px; color: var(--ink-soft); }
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.review-card {
  margin: 0;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 22px 18px;
  box-shadow: 0 8px 24px rgba(26, 46, 42, 0.04);
}
.review-card p {
  margin: 0 0 16px;
  color: var(--ink-soft);
  font-size: 1.02rem;
}
.review-card footer { display: block; }
.review-card cite {
  font-style: normal;
  font-weight: 700;
  color: var(--ink);
  display: block;
}
.review-meta {
  display: block;
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 2px;
}

/* Map */
.map-embed {
  margin-top: 16px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  aspect-ratio: 4 / 3;
}
.map-embed iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  min-height: 220px;
}

@media (max-width: 800px) {
  .reviews-grid { grid-template-columns: 1fr; }
  .featured-story .video-lite { max-width: 100%; justify-self: stretch; }
  .hero-card .photo img { height: 200px; }
  .photo.portrait { max-width: 100%; }
}
.photo-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 1.2rem 0 1.6rem;
}
.photo-row .photo { margin: 0; }
.photo-row .photo img { height: 180px; object-fit: cover; }
@media (max-width: 800px) {
  .photo-row { grid-template-columns: 1fr; }
  .photo-row .photo img { height: 200px; }
}
