/* Dental Travel — minimalist site stylesheet */

:root {
  --bg: #ffffff;
  --surface: #f6f7f9;
  --border: #e4e7eb;
  --text: #1a2230;
  --text-muted: #5c6675;
  --accent: #0f766e;
  --accent-dark: #0b5a54;
  --accent-soft: #e6f4f2;
  --preferred: #b45309;
  --preferred-soft: #fef3e2;
  --radius: 10px;
  --maxw: 1120px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  font-size: 17px;
}

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

a { color: var(--accent-dark); text-decoration: underline; text-decoration-color: var(--border); text-underline-offset: 2px; }
a:hover { text-decoration-color: var(--accent-dark); }

h1, h2, h3, h4, h5, h6 { line-height: 1.25; font-weight: 700; margin: 0 0 0.5em; }
h1 { font-size: clamp(1.9rem, 3.2vw, 2.6rem); }
h2 { font-size: 1.5rem; margin-top: 2.2em; padding-top: 0.2em; border-top: 1px solid var(--border); }
h3 { font-size: 1.15rem; margin-top: 1.6em; }
h4 { font-size: 1rem; text-transform: uppercase; letter-spacing: 0.03em; color: var(--text-muted); }
h5 { font-size: 0.95rem; }
h6 { font-size: 0.85rem; color: var(--text-muted); }

p { margin: 0 0 1em; }
ul, ol { padding-left: 1.3em; }

/* Header */
.site-header { border-bottom: 1px solid var(--border); position: sticky; top: 0; background: rgba(255,255,255,.92); backdrop-filter: blur(6px); z-index: 50; }
.site-header .wrap { display: flex; align-items: center; gap: 24px; height: 64px; }
.logo { font-weight: 800; font-size: 1.15rem; text-decoration: none; color: var(--text); letter-spacing: -0.01em; }
.logo span { color: var(--accent); }
.logo .tld { color: var(--text-muted); font-weight: 500; font-size: 0.85em; }
.primary-nav { display: flex; gap: 20px; margin-left: auto; flex-wrap: wrap; }
.primary-nav a { color: var(--text); text-decoration: none; font-size: 0.95rem; font-weight: 500; }
.primary-nav a:hover { color: var(--accent-dark); }
.cta { background: var(--accent); color: #fff !important; padding: 9px 16px; border-radius: 8px; text-decoration: none !important; font-size: 0.9rem; font-weight: 600; white-space: nowrap; }
.cta:hover { background: var(--accent-dark); }

/* Breadcrumbs */
.breadcrumbs { max-width: var(--maxw); margin: 18px auto 0; padding: 0 24px; }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0; font-size: 0.85rem; color: var(--text-muted); }
.breadcrumbs li:not(:last-child)::after { content: "/"; margin-left: 6px; color: var(--border); }
.breadcrumbs a { color: var(--text-muted); text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; }
.breadcrumbs li[aria-current="page"] { color: var(--text); }

/* Main article */
main { max-width: var(--maxw); margin: 0 auto; padding: 20px 24px 80px; }
article > .page-header { max-width: 780px; }
.kicker { color: var(--accent-dark); font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; font-size: 0.8rem; margin: 0 0 10px; }
.lede { font-size: 1.15rem; color: var(--text-muted); }

section { max-width: 780px; }
section table, section.wide-section, .clinic-grid, .compare-table-wrap { max-width: none; }

/* Image placeholders */
.image-placeholder-figure { margin: 1.6em 0; max-width: 780px; }
.image-placeholder, .logo-placeholder {
  background: repeating-linear-gradient(135deg, var(--surface), var(--surface) 10px, #eef0f3 10px, #eef0f3 20px);
  border: 1.5px dashed #c7ccd3;
  border-radius: var(--radius);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 28px 18px; color: var(--text-muted);
  aspect-ratio: 16 / 9;
}
.image-placeholder[data-aspect="1x1"] { aspect-ratio: 1 / 1; }
.image-placeholder[data-aspect="4x3"] { aspect-ratio: 4 / 3; }
.ph-label { font-size: 0.7rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-dark); background: var(--accent-soft); padding: 3px 8px; border-radius: 999px; margin-bottom: 10px; }
.ph-desc { font-size: 0.85rem; max-width: 46ch; }
figcaption { font-size: 0.85rem; color: var(--text-muted); margin-top: 8px; }

.logo-placeholder { aspect-ratio: 3 / 1; padding: 12px; max-width: 220px; }
.logo-placeholder .ph-desc { font-size: 0.72rem; }

/* Tables */
table { width: 100%; border-collapse: collapse; margin: 1.2em 0; font-size: 0.95rem; }
caption { text-align: left; font-weight: 700; margin-bottom: 8px; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); vertical-align: top; }
thead th { background: var(--surface); border-bottom: 2px solid var(--border); }
tbody tr:hover { background: var(--surface); }

/* Clinic comparison grid */
.compare-table-wrap { overflow-x: auto; margin: 1.4em 0; border: 1px solid var(--border); border-radius: var(--radius); }
.compare-table-wrap table { margin: 0; min-width: 880px; }
.compare-table-wrap th[scope="row"] { display: flex; align-items: center; gap: 10px; white-space: nowrap; }
.badge { display: inline-block; font-size: 0.7rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; text-transform: uppercase; letter-spacing: 0.03em; }
.badge-preferred { background: var(--preferred-soft); color: var(--preferred); }
.badge-featured { background: var(--accent-soft); color: var(--accent-dark); }
.badge-listed { background: var(--surface); color: var(--text-muted); border: 1px solid var(--border); }

.clinic-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; margin: 1.4em 0; }
.clinic-card { border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; }
.clinic-card h3 { margin-top: 0; }
.clinic-card .logo-placeholder { aspect-ratio: 3/1; max-width: 100%; margin-bottom: 12px; }

/* Preferred aside */
.preferred-aside { border: 1.5px solid var(--preferred); background: var(--preferred-soft); border-radius: var(--radius); padding: 18px 20px; margin: 1.6em 0; max-width: 780px; }
.preferred-aside .label { text-transform: uppercase; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.05em; color: var(--preferred); margin: 0 0 4px; }
.preferred-aside h3 { margin: 0 0 6px; }

/* FAQ */
details { border-bottom: 1px solid var(--border); padding: 14px 0; }
summary { font-weight: 600; cursor: pointer; }
details p { margin-top: 10px; color: var(--text-muted); }

/* Editorial trust block */
.editorial-meta { font-size: 0.85rem; color: var(--text-muted); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 10px 0; margin: 1.4em 0; max-width: 780px; }
.reviewer-placeholder em { color: #a05a02; }

/* Cards / lists used on hub pages */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; margin: 1.4em 0; max-width: none; }
.card { border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; display: block; text-decoration: none; color: var(--text); }
.card:hover { border-color: var(--accent); }
.card h3 { margin: 0 0 6px; color: var(--text); }
.card p { color: var(--text-muted); font-size: 0.92rem; margin: 0; }

.pill-list { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; max-width: none; }
.pill-list a { display: inline-block; border: 1px solid var(--border); border-radius: 999px; padding: 7px 14px; text-decoration: none; color: var(--text); font-size: 0.9rem; }
.pill-list a:hover { border-color: var(--accent); color: var(--accent-dark); }

/* Footer */
.site-footer { border-top: 1px solid var(--border); background: var(--surface); margin-top: 60px; }
.site-footer .wrap { padding: 48px 24px 28px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 32px; }
.footer-grid h2 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted); margin-bottom: 10px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; }
.footer-grid a { text-decoration: none; color: var(--text); font-size: 0.92rem; }
.footer-grid a:hover { color: var(--accent-dark); }
.footer-logo { margin-bottom: 8px; }
.footer-bottom { border-top: 1px solid var(--border); margin-top: 32px; padding-top: 18px; font-size: 0.82rem; color: var(--text-muted); }

/* CTA box */
.cta-box { background: var(--accent-soft); border-radius: var(--radius); padding: 24px; margin: 2em 0; max-width: 780px; }
.cta-box h2 { margin-top: 0; border: none; padding: 0; }
.cta-box a.button { display: inline-block; background: var(--accent); color: #fff; text-decoration: none; padding: 10px 20px; border-radius: 8px; font-weight: 600; margin-top: 6px; }
.cta-box a.button:hover { background: var(--accent-dark); }

/* Hub intro grid with stats */
.stat-row { display: flex; flex-wrap: wrap; gap: 24px; margin: 1.4em 0; max-width: none; }
.stat { min-width: 140px; }
.stat .num { font-size: 1.6rem; font-weight: 800; color: var(--accent-dark); display: block; }
.stat .label { font-size: 0.85rem; color: var(--text-muted); }

@media (max-width: 860px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .primary-nav { display: none; }
}

@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
  main { padding: 16px 16px 60px; }
  .site-header .wrap { padding: 0 16px; }
}
