:root {
  --ink: #14293a;
  --ink-soft: #3d5468;
  --sand: #faf6ee;
  --sand-deep: #f1e9d8;
  --sage: #2f6d5f;
  --sage-dark: #204a41;
  --coral: #e0673f;
  --coral-soft: #f3d9cd;
  --gold: #c99a3c;
  --white: #ffffff;
  --border: #e7dfcd;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', sans-serif;
  color: var(--ink);
  background: var(--sand);
  line-height: 1.65;
}
h1, h2, h3, h4, .logo-text, .stat-num { font-family: 'Fraunces', serif; font-weight: 600; }
.container { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* Signature smile-curve underline */
.smile-underline { position: relative; display: inline-block; padding-bottom: 10px; }
.smile-underline::after {
  content: "";
  position: absolute; left: 2px; bottom: 0; width: 64px; height: 10px;
  background: none;
  border-bottom: 3px solid var(--coral);
  border-radius: 0 0 40px 40px / 0 0 20px 20px;
}

/* Header */
.site-header { background: var(--white); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 100; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 14px 20px; flex-wrap: wrap; }
.logo { display: flex; align-items: center; gap: 10px; font-size: 1.25rem; color: var(--sage-dark); }
.logo svg { color: var(--coral); flex-shrink: 0; }
.logo-text strong { color: var(--coral); font-weight: 700; }
.header-search { display: flex; flex: 1; max-width: 420px; min-width: 220px; }
.header-search input { flex: 1; padding: 10px 14px; border: 1px solid var(--border); border-radius: 8px 0 0 8px; font-size: 0.95rem; outline: none; font-family: 'Inter', sans-serif; }
.header-search input:focus { border-color: var(--sage); }
.header-search button { background: var(--sage); color: #fff; border: none; padding: 0 18px; border-radius: 0 8px 8px 0; cursor: pointer; font-weight: 500; }
.header-search button:hover { background: var(--sage-dark); }
.main-nav { display: flex; gap: 22px; }
.main-nav a { font-weight: 500; color: var(--ink); }
.main-nav a:hover { color: var(--sage); }

/* Hero */
.hero { background: var(--sage-dark); color: #fdf9ef; padding: 72px 0 64px; text-align: center; position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 15% 20%, rgba(224,103,63,0.25), transparent 45%),
              radial-gradient(circle at 85% 80%, rgba(201,154,60,0.18), transparent 40%);
}
.hero .container { position: relative; }
.hero h1 { font-size: 2.5rem; margin-bottom: 14px; line-height: 1.2; }
.hero p { font-size: 1.08rem; opacity: 0.92; max-width: 620px; margin: 0 auto; }

/* Stats bar */
.stats-bar { background: var(--white); border-bottom: 1px solid var(--border); }
.stats-inner { display: flex; justify-content: space-around; flex-wrap: wrap; padding: 26px 20px; text-align: center; }
.stat-num { font-size: 1.9rem; color: var(--sage-dark); }
.stat-label { font-size: 0.85rem; color: var(--ink-soft); text-transform: uppercase; letter-spacing: 0.06em; }

/* Sections */
.section { padding: 56px 0; }
.section-title { font-size: 1.7rem; margin-bottom: 28px; color: var(--sage-dark); }
.breadcrumb { font-size: 0.88rem; color: var(--ink-soft); margin: 18px 0; }
.breadcrumb a { color: var(--sage); }

/* Why choose us on homepage */
.why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 24px; }
.why-item { background: var(--white); border: 1px solid var(--border); border-radius: 14px; padding: 24px; }
.why-item .icon { font-size: 1.8rem; margin-bottom: 10px; }
.why-item h3 { font-size: 1.05rem; color: var(--sage-dark); margin-bottom: 6px; }
.why-item p { color: var(--ink-soft); font-size: 0.92rem; }

/* Grid cards */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 22px; }
.card { background: var(--white); border: 1px solid var(--border); border-radius: 14px; padding: 22px; transition: transform .15s, box-shadow .15s; }
.card:hover { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(20,41,58,0.1); border-color: var(--sage); }
.card h3 { font-size: 1.12rem; margin-bottom: 6px; color: var(--sage-dark); }
.card p { color: var(--ink-soft); font-size: 0.92rem; }
.region-card { display: block; text-align: center; }
.region-card img { width: 66px; height: 66px; object-fit: contain; margin: 0 auto 12px; }

/* Dentist card */
.dentist-card .meta { display: flex; justify-content: space-between; align-items: center; margin: 10px 0; font-size: 0.9rem; }
.rating { color: var(--gold); font-weight: 600; }
.badge { display: inline-block; background: var(--sand-deep); color: var(--sage-dark); border: 1px solid var(--border); border-radius: 20px; padding: 3px 11px; font-size: 0.78rem; margin: 2px 4px 2px 0; }
.badge-coral { background: var(--coral-soft); color: #a13c1c; border-color: transparent; }
.price-tag { color: var(--coral); font-weight: 600; }
.btn { display: inline-block; background: var(--sage); color: #fff; padding: 10px 20px; border-radius: 8px; font-size: 0.92rem; font-weight: 600; margin-top: 10px; }
.btn:hover { background: var(--sage-dark); }
.btn-outline { background: transparent; border: 1px solid var(--sage); color: var(--sage); }

/* Detail page */
.detail-header { background: var(--white); border-radius: 16px; padding: 34px; margin: 24px 0; border: 1px solid var(--border); }
.detail-header h1 { color: var(--sage-dark); margin-bottom: 10px; font-size: 2rem; }
.detail-header .badges { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 8px; }
.detail-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 28px; margin-top: 22px; }
.info-box { background: var(--white); border: 1px solid var(--border); border-radius: 14px; padding: 22px; margin-bottom: 20px; }
.info-box h3 { color: var(--sage-dark); margin-bottom: 12px; font-size: 1.08rem; }
.info-box p { color: var(--ink-soft); }
.services-list { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.services-list li { padding: 6px 0; font-size: 0.92rem; }
.services-list li:before { content: "✓ "; color: var(--sage); font-weight: 700; }
.facts-list { list-style: none; }
.facts-list li { padding: 7px 0; border-bottom: 1px dashed var(--border); font-size: 0.9rem; display: flex; justify-content: space-between; gap: 10px; }
.facts-list li span:first-child { color: var(--ink-soft); }
.facts-list li span:last-child { font-weight: 600; text-align: right; }
.sidebar-box { background: var(--white); border: 1px solid var(--border); border-radius: 14px; padding: 22px; }
.sidebar-box p { margin: 9px 0; font-size: 0.92rem; }
.map-embed { border-radius: 12px; overflow: hidden; border: 1px solid var(--border); margin-top: 14px; }
.map-embed iframe { width: 100%; height: 230px; border: 0; display: block; }

/* City list on region page */
.city-list { display: flex; flex-wrap: wrap; gap: 10px; }
.city-pill { background: var(--white); border: 1px solid var(--border); padding: 9px 18px; border-radius: 22px; font-weight: 500; }
.city-pill:hover { background: var(--sage); color: #fff; border-color: var(--sage); }

/* Footer */
.site-footer { background: var(--ink); color: #cdd9e0; margin-top: 60px; }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 30px; padding: 44px 20px; }
.footer-logo { color: #fff; margin-bottom: 10px; }
.footer-logo svg { color: var(--coral); }
.footer-col h4 { margin-bottom: 12px; color: #fff; font-size: 1rem; }
.footer-col a { display: block; color: #a7b7c2; padding: 3px 0; font-size: 0.9rem; }
.footer-col a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding: 16px 0; text-align: center; font-size: 0.85rem; color: #8ea0ac; }

/* Forms / Admin */
.admin-wrap { max-width: 1100px; margin: 30px auto; padding: 0 20px; }
.admin-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 10px; overflow: hidden; }
.admin-table th, .admin-table td { padding: 10px 12px; border-bottom: 1px solid var(--border); text-align: left; font-size: 0.9rem; }
.admin-table th { background: var(--sand-deep); }
.form-group { margin-bottom: 14px; }
.form-group label { display: block; margin-bottom: 5px; font-weight: 500; font-size: 0.9rem; }
.form-group input, .form-group select, .form-group textarea { width: 100%; padding: 9px 12px; border: 1px solid var(--border); border-radius: 8px; font-family: inherit; font-size: 0.92rem; }
.login-box { max-width: 380px; margin: 80px auto; background: #fff; padding: 30px; border-radius: 12px; border: 1px solid var(--border); }
.alert { padding: 10px 14px; border-radius: 8px; margin-bottom: 16px; font-size: 0.9rem; }
.alert-success { background: #e3f2ec; color: #205c46; }
.alert-error { background: #fbe6e0; color: #a13c1c; }

/* Responsive */
@media (max-width: 768px) {
  .header-inner { flex-direction: column; align-items: stretch; }
  .header-search { max-width: 100%; order: 3; }
  .main-nav { order: 2; justify-content: center; }
  .detail-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .hero h1 { font-size: 1.9rem; }
  .services-list { grid-template-columns: 1fr; }
  .stats-inner { gap: 18px; }
}
