/* rhinodental.in — the whole site's styles (Spec E §4.1).
   Phone first. One breakpoint: min-width 1024px. */

:root {
  --paper: #F7F5F0;
  --card: #FFFFFF;
  --ink: #231F20;
  --ink-2: #4A4446;
  --ink-3: #5A5456;
  --line: #E4DFD6;
  --line-soft: #EEEAE3;
  --green-text: #256842;
  --green-hover: #1B4F32;
  --green-fill: #328556;
  --placeholder: #ECE8E0;
  --on-dark: #D9D4CC;
}

/* ---------------------------------------------------------------- base */

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Figtree', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

/* The status pill and its detail start hidden and are filled by status.js.
   Without JavaScript the site never claims "open" (Spec E §2). */
[hidden] { display: none !important; }

h1,
h2 {
  margin: 0;
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 700;
}

h3 { margin: 0; }

p { margin: 0; }

img { display: block; }

svg { flex-shrink: 0; }

a { color: inherit; text-decoration: none; }

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

/* Inside a charcoal card an ink outline would be invisible, so it inverts. */
.card-ink :focus-visible { outline-color: var(--card); }

/* ------------------------------------------------------------- layout */

.wrap {
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

.section { padding-top: 40px; }

.section-last { padding-bottom: 40px; }

.phone-only { display: block; }
.desktop-only { display: none; }

@media (min-width: 1024px) {
  .wrap {
    padding-left: 120px;
    padding-right: 120px;
  }

  .section { padding-top: 120px; }

  .section-last { padding-bottom: 120px; }

  .phone-only { display: none; }
  .desktop-only { display: block; }

  /* A single centred column of text (Treatments, Visit). */
  .narrow {
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
  }
}

/* ------------------------------------------------------------ pieces */

.eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
}

h2 { font-size: 24px; }

@media (min-width: 1024px) {
  h2 { font-size: 44px; }
}

.lead {
  font-size: 17px;
  line-height: 1.5;
  color: var(--ink-2);
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
}

.card-ink {
  background: var(--ink);
  border: 1px solid var(--ink);
  border-radius: 16px;
  color: var(--card);
}

/* Links in running text are the one green (Spec E §4.1). The mock sets them
   at weight 600, so the colour is never the only signal. */
.link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 44px;
  color: var(--green-text);
  font-weight: 600;
}

.link:hover { color: var(--green-hover); }

.link svg { width: 18px; height: 18px; }

.link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 52px;
  padding: 0 22px;
  border: 0;
  border-radius: 12px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
}

.btn svg { width: 18px; height: 18px; }

.btn-green {
  background: var(--green-fill);
  color: var(--card);
}

.btn-green:hover { background: #256842; }

.btn-outline {
  border: 1.5px solid var(--ink);
  background: transparent;
  color: var(--ink);
}

.btn-outline:hover { background: rgba(35, 31, 32, 0.06); }

.btn-white {
  background: var(--card);
  color: var(--ink);
}

.btn-white:hover { background: var(--line-soft); }

/* Photo placeholder: dashed box, camera icon, the same words as the label. */
.placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 24px;
  background: var(--placeholder);
  border: 1.5px dashed #C9C2B6;
  border-radius: 16px;
  color: var(--ink-3);
  text-align: center;
}

.placeholder svg { width: 28px; height: 28px; }

.placeholder span {
  font-size: 14px;
  line-height: 1.4;
}

@media (min-width: 1024px) {
  .placeholder { border-radius: 20px; }
  .placeholder svg { width: 32px; height: 32px; }
  .placeholder span { font-size: 16px; }
}

/* ------------------------------------------------------------ header */

.site-header {
  position: relative;
  height: 64px;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
}

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

.brand .brand-wordmark { height: 17px; }

.menu summary {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  color: var(--ink);
  list-style: none;
  cursor: pointer;
}

.menu summary::-webkit-details-marker { display: none; }

.menu summary svg { width: 24px; height: 24px; }

.menu nav {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  flex-direction: column;
  padding: 0 24px;
  background: var(--card);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 4px 16px rgba(35, 31, 32, 0.08);
}

.menu nav a {
  display: flex;
  align-items: center;
  height: 48px;
  border-bottom: 1px solid var(--line-soft);
  font-weight: 500;
}

.menu nav a:last-child { border-bottom: 0; }

/* Desktop navigation. Hidden on a phone, where the <details> menu is used. */
.main-nav {
  display: none;
  align-items: center;
  gap: 36px;
}

.main-nav a:not(.btn) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  font-size: 16px;
  font-weight: 500;
  color: var(--ink);
}

.main-nav a:not(.btn):hover { color: var(--green-hover); }

.main-nav a[aria-current="page"] { font-weight: 600; }

.header-call {
  height: 46px;
  padding: 0 20px;
}

@media (min-width: 1024px) {
  .site-header { height: 88px; }

  .main-nav { display: flex; }

  .header-inner { height: 100%; }
  .brand img { height: 46px; }
  .brand .brand-wordmark { height: 22px; }
}

/* ------------------------------------------------------- status pill */

.status {
  display: flex;
  align-items: center;
  gap: 12px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}

.status.is-open .pill {
  padding: 6px 12px;
  background: var(--ink);
  color: var(--card);
}

.status.is-open .pill::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--card);
}

.status.is-closed .pill {
  padding: 5px 11px;
  border: 1.5px solid var(--ink);
  color: var(--ink);
}

.status.is-closed .pill::before {
  content: "";
  width: 7px;
  height: 7px;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
}

.status-detail {
  font-size: 15px;
  font-weight: 500;
  white-space: nowrap;
}

/* A white card on a phone (Home hero); one line of text on desktop. */
.status-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 20px;
  padding: 18px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
}

.status-card .hours-note {
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-3);
}

@media (min-width: 1024px) {
  .status-card {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 14px;
    margin-top: 0;
    padding: 8px 0 4px;
    background: transparent;
    border: 0;
    border-radius: 0;
  }

  .status-card .hours-note { font-size: 16px; }

  .status-detail { font-size: 16px; }
}

/* ------------------------------------------------------- action bar */

.action-bar {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  height: 76px;
  padding: 12px 16px;
  background: var(--card);
  border-top: 1px solid var(--line);
  box-shadow: 0 -4px 16px rgba(35, 31, 32, 0.08);
}

.action-bar .btn {
  gap: 6px;
  padding: 0 8px;
  font-size: 15px;
}

@media (min-width: 1024px) {
  .action-bar { display: none; }
}

/* ------------------------------------------------------------ footer */

.site-footer {
  padding-top: 32px;
  padding-bottom: 116px; /* clears the fixed action bar on a phone */
  background: var(--ink);
  color: var(--on-dark);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-brand img { width: auto; height: 30px; }

.footer-brand .footer-wordmark { height: 15px; }

.footer-facts,
.footer-hours {
  font-size: 14px;
  line-height: 1.6;
}

.footer-tagline {
  font-size: 14px;
  font-style: italic;
}

@media (min-width: 1024px) {
  .site-footer {
    padding-top: 48px;
    padding-bottom: 48px;
  }

  .footer-inner {
    display: grid;
    grid-template-columns: auto auto;
    grid-template-areas:
      "brand facts"
      "tagline hours";
    justify-content: space-between;
    align-items: end;
    gap: 16px 48px;
  }

  .footer-brand { grid-area: brand; }
  .footer-tagline { grid-area: tagline; }
  .footer-facts { grid-area: facts; text-align: right; }
  .footer-hours { grid-area: hours; text-align: right; }

  .footer-brand img { height: 40px; }
  .footer-brand .footer-wordmark { height: 19px; }

  .footer-facts,
  .footer-hours,
  .footer-tagline { font-size: 15px; }
}

/* ------------------------------------------------------- home: hero */

.hero-text {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.hero-title {
  font-size: 38px;
  line-height: 1.05;
  letter-spacing: -0.01em;
}

.hero-actions {
  display: none;
  gap: 12px;
}

.hero-photo {
  height: 230px;
  margin-top: 20px;
}

@media (min-width: 1024px) {
  .hero-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 64px;
    align-items: center;
  }

  .hero-text { gap: 22px; }

  .hero-title { font-size: 66px; }

  .hero-text .lead {
    max-width: 520px;
    font-size: 20px;
  }

  .hero-actions {
    display: flex;
    flex-wrap: wrap;
    padding-top: 6px;
  }

  .hero-photo {
    height: 540px;
    margin-top: 0;
  }
}

/* ------------------------------------------------- home: your dentist */

.dentist-desktop { display: none; }

@media (min-width: 1024px) {
  .dentist-phone { display: none; }

  .dentist-desktop {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 32px;
    align-items: start;
  }

  .dentist-photo {
    grid-column: span 5;
    height: 520px;
  }

  .dentist-text {
    grid-column: 7 / span 6;
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding-top: 24px;
  }
}

.dentist-card {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-top: 16px;
  padding: 18px;
}

.dentist-card .portrait {
  width: 72px;
  height: 72px;
  flex-shrink: 0;
  border-radius: 50%;
  padding: 0;
}

.dentist-card .portrait span { font-size: 11px; }

.dentist-card .name {
  font-size: 18px;
  font-weight: 600;
}

.dentist-card .qualifications {
  margin-top: 6px;
  font-size: 14px;
  line-height: 1.45;
  color: var(--ink-2);
}

.dentist-card .link { margin-top: 2px; font-size: 15px; }

.fact-list {
  border-top: 1px solid var(--line);
}

.fact-row {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 16px;
}

.fact-row .fact-label { font-weight: 600; }

.fact-row .fact-value {
  color: var(--ink-2);
  text-align: right;
}

/* The closed row is bold on both sides (home "Find us"). */
.fact-row.is-closed .fact-label,
.fact-row.is-closed .fact-value {
  color: var(--ink);
  font-weight: 600;
}

@media (min-width: 1024px) {
  .dentist-text .lead { font-size: 18px; line-height: 1.6; }
}

/* ------------------------------------------------ home: what we treat */

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
}

.section-head .link { font-size: 16px; }

.treat-rows { margin-top: 16px; }

.treat-link {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 68px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line-soft);
}

.treat-link:last-child { border-bottom: 0; }

.treat-link .treat-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex-grow: 1;
}

.treat-link .treat-title {
  font-size: 16px;
  font-weight: 600;
}

.treat-link .treat-examples {
  font-size: 14px;
  color: var(--ink-3);
}

.treat-link .chevron { width: 20px; height: 20px; color: var(--ink-3); }

.treat-cards { display: none; }

@media (min-width: 1024px) {
  .treat-rows { display: none; }

  .treat-cards {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 16px;
    margin-top: 28px;
  }

  .treat-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 220px;
    padding: 22px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 16px;
  }

  .treat-card .treat-title {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: 21px;
    font-weight: 700;
    line-height: 1.2;
  }

  .treat-card .treat-examples {
    font-size: 15px;
    line-height: 1.55;
    color: var(--ink-2);
  }

  .treat-card.is-ink {
    background: var(--ink);
    border-color: var(--ink);
    color: var(--card);
  }

  /* --line is #E4DFD6, the muted tone the mock uses on the charcoal card. */
  .treat-card.is-ink .treat-examples { color: var(--line); }
}

/* ------------------------------------------------- home: reviews card */

.reviews-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px;
}

.reviews-card .reviews-title { font-size: 16px; font-weight: 600; }

.reviews-card .link { font-size: 15px; }

/* ---------------------------------------------------- home: find us */

.find-address {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 16px;
  line-height: 1.5;
}

.find-address svg {
  width: 22px;
  height: 22px;
  margin-top: 2px;
}

.find-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 28px;
}

@media (min-width: 1024px) {
  .find-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 64px;
    align-items: start;
  }

  .find-text {
    display: flex;
    flex-direction: column;
    gap: 22px;
  }

  .find-address { font-size: 19px; line-height: 1.55; }

  .find-links .link { font-size: 16px; }
}

.map-embed {
  display: block;
  width: 100%;
  height: 220px;
  border: 0;
  border-radius: 16px;
}

@media (min-width: 1024px) {
  .map-embed { height: 440px; }
}

/* --------------------------------------------------- treatments page */

.page-title {
  font-size: 36px;
  line-height: 1.1;
}

.page-head {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.page-intro {
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink-2);
}

/* 44px tap target; the pill drawn inside stays 40px (Spec E §4.1, §4.6). */
.jump {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
  padding-top: 6px;
}

.jump a {
  display: inline-flex;
  align-items: center;
  height: 44px;
}

.jump a > span {
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 0 14px;
  background: var(--card);
  border: 1px solid #CFC8BC;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
}

.jump a:hover > span { border-color: var(--ink); }

.jump a.is-ink > span {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--card);
}

.treat-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.treat-group > p {
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink-2);
}

.treat-group .card { padding: 0 16px; }

.treat-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line-soft);
}

.treat-item:last-child { border-bottom: 0; }

.treat-item h3 {
  font-size: 17px;
  font-weight: 600;
}

.treat-item p {
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink-2);
}

.urgent-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 22px 20px;
}

.urgent-card h2 { color: var(--card); }

.urgent-card .urgent-hours {
  font-size: 15px;
  line-height: 1.55;
  color: var(--line); /* #E4DFD6, as the spec sets it */
}

.urgent-card .urgent-note {
  padding: 12px 14px;
  border: 1.5px dashed #6B6466;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--on-dark);
}

/* ------------------------------------------------------ dentist page */

.dentist-portrait { height: 380px; margin-top: 24px; }

.dentist-header {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 28px;
}

.dentist-header h1 {
  font-size: 34px;
  line-height: 1.1;
}

.dentist-header .credentials {
  font-size: 16px;
  font-weight: 500;
  color: var(--ink-2);
}

.dentist-header .intro {
  margin-top: 6px;
  font-size: 17px;
  line-height: 1.55;
}

.info-card { padding: 0 16px; }

.info-row {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line-soft);
}

.info-row:last-child { border-bottom: 0; }

.info-row .info-title {
  font-size: 16px;
  font-weight: 600;
}

.info-row .info-detail {
  font-size: 14px;
  line-height: 1.45;
  color: var(--ink-2);
}

.plain-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 16px;
  line-height: 1.45;
}

.course-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 15px;
  line-height: 1.45;
  color: var(--ink-2);
}

.course-list .year {
  color: var(--ink);
  font-weight: 600;
}

.book-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px;
}

.book-card .book-title {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 20px;
  font-weight: 700;
}

.book-card p {
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink-2);
}

@media (min-width: 1024px) {
  .dentist-layout {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 32px;
    align-items: start;
  }

  .dentist-layout .dentist-photo-col {
    grid-column: span 5;
    position: sticky;
    top: 32px;
  }

  .dentist-layout .dentist-body { grid-column: 7 / span 6; }
}

/* -------------------------------------------------------- visit page */

.visit-head {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.hours-card { padding: 4px 16px; }

.hours-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 48px;
  border-bottom: 1px solid var(--line-soft);
  font-size: 16px;
}

.hours-row:last-child { border-bottom: 0; }

.hours-row .day { font-weight: 500; }

.hours-row .session { color: var(--ink-2); }

.hours-row.is-closed .day,
.hours-row.is-closed .session {
  color: var(--ink);
  font-weight: 600;
}

.visit-block {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.visit-block .address {
  font-size: 17px;
  line-height: 1.55;
}

.visit-block .note {
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink-2);
}

.sign-photo { height: 220px; }

.contact-card { padding: 0 16px; }

.contact-row {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  border-bottom: 1px solid var(--line-soft);
  font-size: 16px;
}

.contact-row:last-child { border-bottom: 0; }

.contact-row svg { width: 20px; height: 20px; }

.contact-row .label { flex-grow: 1; }

.contact-row .value {
  color: var(--green-text);
  font-weight: 600;
}

.contact-row .value.is-email { font-size: 14px; }

.faq-card { padding: 0 16px; }

.faq-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line-soft);
}

.faq-row:last-child { border-bottom: 0; }

.faq-row h3 {
  font-size: 16px;
  font-weight: 600;
}

.faq-row p {
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink-3);
}

/* -------------------------------------------------------- 404 page */

.not-found {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.not-found h1 {
  font-size: 34px;
  line-height: 1.15;
}

.not-found .link { font-size: 16px; }
