/* ============================================================
   SmileyWhites.com — Main Stylesheet
   Aesthetic: Premium / Cosmetic Clinic / Confident & Clear
   High-contrast, readable, coral + deep teal palette
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,600;1,400&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

/* ── CSS Variables ─────────────────────────────────────────── */
:root {
  --white:       #ffffff;
  --off-white:   #f7f5f2;
  --cream:       #f0ece6;
  --coral:       #d45c42;       /* deeper — richer contrast on white */
  --coral-light: #e8795f;
  --coral-pale:  #faeae6;
  --teal:        #1a6363;       /* deeper teal for stronger contrast */
  --teal-light:  #2a8080;
  --teal-pale:   #e4f0f0;
  --grey-100:    #eeebe6;
  --grey-200:    #d8d4cc;
  --grey-400:    #8a857c;       /* raised from a8a49d for label legibility */
  --grey-600:    #4a4740;       /* raised from 6b6760 — passes WCAG AA */
  --grey-800:    #1e1c1a;       /* near-black for maximum contrast */
  --text-body:   #1e1c1a;       /* was #2e2c29 — darker for crisp reading */
  --text-muted:  #5a5650;       /* was #7a766f — now passes WCAG AA on white */

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'Plus Jakarta Sans', system-ui, sans-serif;

  --radius-sm:  6px;
  --radius-md:  12px;
  --radius-lg:  20px;
  --radius-xl:  32px;
  --shadow-sm:  0 1px 4px rgba(46,44,41,0.06);
  --shadow-md:  0 6px 24px rgba(46,44,41,0.09);
  --shadow-lg:  0 16px 48px rgba(46,44,41,0.12);

  --max-width:  1140px;
  --transition: 0.22s ease;
}

/* ── Reset & Base ───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-body);
  background: var(--off-white);
  -webkit-font-smoothing: antialiased;
}

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

/* ── Layout ─────────────────────────────────────────────────── */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 28px;
}

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); border: 0;
}

/* ── Site Header ────────────────────────────────────────────── */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--grey-200);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 28px;
  max-width: var(--max-width);
  margin: 0 auto;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-icon {
  width: 38px;
  height: 38px;
  background: var(--coral);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  line-height: 1;
  flex-shrink: 0;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo-smiley {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  color: var(--coral);
  letter-spacing: -0.01em;
}

.logo-whites {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 400;
  color: var(--text-body);
  letter-spacing: -0.01em;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.header-nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  transition: color var(--transition);
}

.header-nav a:hover { color: var(--text-body); }

.btn-claim {
  background: var(--coral);
  color: var(--white) !important;
  padding: 9px 20px;
  border-radius: var(--radius-xl);
  font-weight: 600 !important;
  font-size: 14px !important;
  transition: background var(--transition), transform var(--transition) !important;
}

.btn-claim:hover {
  background: var(--coral-light) !important;
  transform: translateY(-1px);
}

/* ── Hero ───────────────────────────────────────────────────── */
.hero {
  background: var(--white);
  border-bottom: 1px solid var(--grey-200);
  overflow: hidden;
}

.hero-split {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 460px;
  min-height: 520px;
  align-items: center;
}

.hero-content {
  padding: 60px 48px 60px 28px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--coral-pale);
  color: var(--coral);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 20px;
  margin-bottom: 22px;
  border: 1px solid rgba(212,92,66,0.2);
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(36px, 4.5vw, 58px);
  font-weight: 600;
  color: var(--text-body);
  line-height: 1.1;
  margin-bottom: 18px;
  letter-spacing: -0.02em;
}

.hero-title em {
  font-style: italic;
  color: var(--coral);
}

.hero-sub {
  font-size: 17px;
  color: var(--grey-600);
  max-width: 440px;
  margin-bottom: 28px;
  font-weight: 400;
  line-height: 1.7;
}

/* Search */
.search-wrap {
  max-width: 480px;
  margin-bottom: 16px;
  display: flex;
  gap: 0;
  box-shadow: var(--shadow-md);
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 2px solid var(--grey-200);
  background: var(--white);
}

.search-wrap input {
  flex: 1;
  padding: 14px 20px;
  font-family: var(--font-body);
  font-size: 15px;
  border: none;
  outline: none;
  background: transparent;
  color: var(--text-body);
}

.search-wrap input::placeholder { color: var(--grey-400); }

.search-wrap button {
  background: var(--coral);
  color: var(--white);
  border: none;
  padding: 15px 28px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition);
  border-radius: 0 var(--radius-xl) var(--radius-xl) 0;
  white-space: nowrap;
}

.search-wrap button:hover { background: var(--coral-light); }

.location-hint {
  font-size: 13px;
  color: var(--grey-600);
}

/* Trust strip */
.trust-strip {
  display: flex;
  gap: 28px;
  margin-top: 32px;
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.trust-num {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 600;
  color: var(--teal);
  line-height: 1;
}

.trust-label {
  font-size: 12px;
  color: var(--grey-600);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 500;
}

/* ── Hero Image Panel ───────────────────────────────────────── */
.hero-image-wrap {
  position: relative;
  height: 100%;
  min-height: 520px;
}

.hero-image-placeholder {
  width: 100%;
  height: 100%;
  min-height: 520px;
  background: linear-gradient(145deg, var(--teal-pale) 0%, var(--cream) 100%);
  border-left: 1px solid var(--grey-200);
  display: flex;
  align-items: center;
  justify-content: center;
}

.placeholder-inner {
  text-align: center;
  padding: 24px;
}

.placeholder-icon { font-size: 40px; margin-bottom: 12px; opacity: 0.6; }

.placeholder-label {
  font-size: 15px;
  font-weight: 700;
  color: var(--teal);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.placeholder-hint {
  font-size: 13px;
  color: var(--grey-600);
  line-height: 1.6;
  border: 2px dashed var(--grey-200);
  padding: 12px 20px;
  border-radius: var(--radius-md);
  display: inline-block;
  margin-top: 4px;
}

/* Floating review card on hero image */
.hero-review-card {
  position: absolute;
  bottom: 28px;
  left: -28px;
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  box-shadow: var(--shadow-lg);
  max-width: 260px;
  border-left: 4px solid var(--coral);
}

.review-stars { color: var(--coral); font-size: 14px; letter-spacing: 2px; margin-bottom: 6px; }

.review-text {
  font-size: 13px;
  color: var(--text-body);
  line-height: 1.5;
  font-style: italic;
  margin-bottom: 6px;
  font-weight: 500;
}

.review-author { font-size: 12px; color: var(--grey-600); font-weight: 600; }

/* ── Services Strip ─────────────────────────────────────────── */
.services-strip {
  background: var(--teal-pale);
  border-top: 1px solid rgba(42,124,124,0.12);
  border-bottom: 1px solid rgba(42,124,124,0.12);
  padding: 18px 0;
  overflow: hidden;
}

.services-inner {
  display: flex;
  gap: 0;
  justify-content: center;
  flex-wrap: wrap;
}

.service-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  font-size: 13px;
  font-weight: 500;
  color: var(--teal);
  cursor: pointer;
  border-radius: 20px;
  transition: background var(--transition);
  white-space: nowrap;
}

.service-chip:hover, .service-chip.active {
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.service-chip .dot {
  width: 6px; height: 6px;
  background: var(--coral);
  border-radius: 50%;
  flex-shrink: 0;
}

/* ── Main Content ───────────────────────────────────────────── */
.content-section { padding: 52px 0 80px; }

.content-inner {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 32px;
  align-items: start;
}

/* ── Sidebar ────────────────────────────────────────────────── */
.sidebar { position: sticky; top: 88px; }

.sidebar-card {
  background: var(--white);
  border: 1px solid var(--grey-200);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 14px;
}

.sidebar-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--grey-800);
  margin-bottom: 12px;
}

.sidebar-list { list-style: none; display: flex; flex-direction: column; gap: 1px; }

.sidebar-list li a {
  display: block;
  padding: 7px 10px;
  font-size: 14px;
  color: var(--grey-600);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  cursor: pointer;
}

.sidebar-list li a:hover,
.sidebar-list li a.active {
  background: var(--coral-pale);
  color: var(--coral);
  font-weight: 500;
}

/* Radius selector */
.radius-wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.radius-wrap label {
  font-size: 13px;
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
}

.radius-wrap label span { color: var(--coral); font-weight: 600; }

input[type="range"] {
  width: 100%;
  accent-color: var(--coral);
}

/* ── Listings ───────────────────────────────────────────────── */
.listings-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.listings-count { font-size: 14px; color: var(--grey-600); font-weight: 500; }
.listings-count strong { color: var(--text-body); }

.sort-select {
  padding: 7px 28px 7px 12px;
  border: 1px solid var(--grey-200);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--text-muted);
  appearance: none;
  background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 10 10'%3E%3Cpath fill='%23a8a49d' d='M5 7L1 3h8z'/%3E%3C/svg%3E") no-repeat right 8px center;
  cursor: pointer;
  outline: none;
}

.listings-grid { display: flex; flex-direction: column; gap: 14px; }

/* ── Dentist Card ───────────────────────────────────────────── */
.dentist-card {
  background: var(--white);
  border: 1px solid var(--grey-200);
  border-radius: var(--radius-md);
  padding: 22px 24px;
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 18px;
  align-items: start;
  transition: box-shadow var(--transition), transform var(--transition);
  cursor: pointer;
}

.dentist-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.dentist-card.featured {
  border-color: var(--coral);
  border-width: 1.5px;
  position: relative;
}

.dentist-card.featured::before {
  content: '✦ Featured';
  position: absolute;
  top: -1px; right: 16px;
  background: var(--coral);
  color: var(--white);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  padding: 3px 10px;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
}

/* Practice avatar */
.practice-avatar {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-md);
  background: var(--coral-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  color: var(--coral);
  flex-shrink: 0;
  overflow: hidden;
}

.practice-avatar img { width: 100%; height: 100%; object-fit: cover; }

.practice-body { min-width: 0; }

.practice-name {
  font-size: 17px;
  font-weight: 600;
  color: var(--text-body);
  margin-bottom: 2px;
}

.practice-location {
  font-size: 14px;
  color: var(--grey-600);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 4px;
  font-weight: 500;
}

.practice-desc {
  font-size: 14px;
  color: var(--grey-600);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 10px;
}

.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.stag {
  font-size: 11px;
  font-weight: 500;
  padding: 3px 10px;
  border-radius: 20px;
  background: var(--teal-pale);
  color: var(--teal);
}

.stag.coral { background: var(--coral-pale); color: var(--coral); }

/* Card aside */
.practice-aside {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  min-width: 110px;
}

.rating-block { text-align: right; }

.rating-score {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-body);
  line-height: 1;
}

.rating-score span {
  font-size: 13px;
  font-weight: 500;
  color: var(--grey-600);
}

.rating-stars { color: var(--coral); font-size: 13px; letter-spacing: 1px; }
.rating-count { font-size: 12px; color: var(--grey-600); margin-top: 1px; font-weight: 500; }

.nhs-badge {
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  border: 2px solid;
}

.nhs-badge.yes {
  border-color: var(--teal);
  color: var(--teal);
  background: var(--teal-pale);
}

.nhs-badge.private {
  border-color: var(--coral);
  color: var(--coral);
  background: var(--coral-pale);
}

.btn-view {
  display: inline-block;
  padding: 9px 16px;
  background: var(--text-body);
  color: var(--white);
  font-size: 13px;
  font-weight: 600;
  border-radius: var(--radius-xl);
  transition: background var(--transition), transform var(--transition);
  white-space: nowrap;
}

.btn-view:hover { background: var(--grey-800); transform: translateY(-1px); }

/* ── CTA Banner ─────────────────────────────────────────────── */
.cta-banner {
  background: linear-gradient(135deg, var(--coral) 0%, var(--coral-light) 100%);
  padding: 64px 28px;
  text-align: center;
}

.cta-banner h2 {
  font-family: var(--font-display);
  font-size: clamp(26px, 4vw, 40px);
  color: var(--white);
  margin-bottom: 12px;
  font-weight: 600;
}

.cta-banner p {
  font-size: 17px;
  color: rgba(255,255,255,0.8);
  max-width: 460px;
  margin: 0 auto 28px;
}

.btn-cta-white {
  display: inline-block;
  padding: 14px 36px;
  background: var(--white);
  color: var(--coral);
  font-weight: 700;
  font-size: 15px;
  border-radius: var(--radius-xl);
  transition: transform var(--transition), box-shadow var(--transition);
  box-shadow: var(--shadow-md);
}

.btn-cta-white:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* ── Pagination ─────────────────────────────────────────────── */
#paginationWrap { margin-top: 28px; }

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.pg-numbers {
  display: flex;
  align-items: center;
  gap: 4px;
}

.pg-btn {
  min-width: 38px;
  height: 38px;
  padding: 0 10px;
  border: 1.5px solid var(--grey-200);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--grey-600);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

.pg-btn:hover:not(:disabled) {
  border-color: var(--coral);
  color: var(--coral);
  background: var(--coral-pale);
}

.pg-btn.active {
  background: var(--coral);
  border-color: var(--coral);
  color: var(--white);
  font-weight: 700;
}

.pg-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.pg-prev, .pg-next {
  padding: 0 14px;
  gap: 6px;
}

.pg-ellipsis {
  width: 32px;
  text-align: center;
  color: var(--grey-400);
  font-size: 14px;
  line-height: 38px;
  user-select: none;
}

/* ── Why Section ────────────────────────────────────────────── */
.why-section {
  background: var(--cream);
  padding: 72px 0;
  border-top: 1px solid var(--grey-200);
  border-bottom: 1px solid var(--grey-200);
}

.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.why-image-wrap { position: relative; }

.why-image-placeholder {
  width: 100%;
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, var(--teal-pale) 0%, var(--white) 100%);
  border-radius: var(--radius-lg);
  border: 2px solid var(--grey-200);
  display: flex;
  align-items: center;
  justify-content: center;
}

.why-content { padding: 8px 0; }

.why-eyebrow {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--coral);
  margin-bottom: 14px;
}

.why-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 600;
  color: var(--text-body);
  line-height: 1.15;
  margin-bottom: 28px;
  letter-spacing: -0.01em;
}

.why-title em { font-style: italic; color: var(--teal); }

.why-points { display: flex; flex-direction: column; gap: 20px; }

.why-point {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.why-icon {
  width: 28px;
  height: 28px;
  background: var(--teal);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 2px;
}

.why-point strong {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: var(--text-body);
  margin-bottom: 3px;
}

.why-point p {
  font-size: 14px;
  color: var(--grey-600);
  line-height: 1.6;
}

/* ── Footer ─────────────────────────────────────────────────── */
.site-footer {
  background: var(--grey-800);
  padding: 44px 28px 28px;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--white);
}

.footer-logo span { color: var(--coral); }

.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }

.footer-links a {
  font-size: 13px;
  color: rgba(255,255,255,0.4);
  transition: color var(--transition);
}

.footer-links a:hover { color: rgba(255,255,255,0.85); }

.footer-copy {
  font-size: 12px;
  color: rgba(255,255,255,0.25);
  width: 100%;
  margin-top: 8px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.07);
  text-align: center;
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 1000px) {
  .hero-split { grid-template-columns: 1fr; }
  .hero-image-wrap { display: none; }
  .hero-content { padding: 52px 28px 48px; text-align: center; }
  .hero-sub { max-width: 100%; }
  .search-wrap { max-width: 560px; margin-left: auto; margin-right: auto; }
  .trust-strip { justify-content: center; }
  .why-grid { grid-template-columns: 1fr; gap: 36px; }
  .why-image-wrap { display: none; }
}

@media (max-width: 900px) {
  .content-inner { grid-template-columns: 1fr; }
  .sidebar { position: static; }
}

@media (max-width: 660px) {
  .header-nav { display: none; }
  .trust-strip { gap: 20px; }
  .dentist-card { grid-template-columns: 52px 1fr; }
  .practice-aside { display: none; }
  .services-strip { padding: 12px 0; }
}

@media (max-width: 440px) {
  .search-wrap { flex-direction: column; border-radius: var(--radius-md); }
  .search-wrap button { border-radius: 0 0 var(--radius-md) var(--radius-md); }
}

/* ── Animations ─────────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

.dentist-card { animation: fadeUp 0.35s ease both; }
.dentist-card:nth-child(1) { animation-delay: 0.04s; }
.dentist-card:nth-child(2) { animation-delay: 0.08s; }
.dentist-card:nth-child(3) { animation-delay: 0.12s; }
.dentist-card:nth-child(4) { animation-delay: 0.16s; }
.dentist-card:nth-child(5) { animation-delay: 0.20s; }
