/* ============================================================
   Drs HJ Botha & M Khota — Dental Practice
   Shared design system
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Spectral:ital,wght@0,400;0,500;0,600;0,700;1,400&family=Mulish:ital,wght@0,400;0,500;0,600;0,700;0,800;1,400&display=swap');

:root{
  /* Brand */
  --navy:      #173B5E;
  --navy-700:  #1E4D72;
  --navy-900:  #102B45;
  --teal:      #4E8A8B;
  --teal-600:  #3C7375;
  --teal-700:  #2F5E60;
  --mint:      #EAF2F1;
  --mint-200:  #DBE9E7;
  --coral:     #CC6B45;   /* warm accent — emergencies only */
  --coral-600: #B85A36;

  /* Neutrals (cool-warm clinical whites) */
  --bg:       #F6FAF9;
  --surface:  #FFFFFF;
  --ink:      #18262C;
  --muted:    #5C6B71;
  --muted-2:  #7C8A8F;
  --line:     #E3EAE9;
  --line-2:   #EEF3F2;

  /* Type */
  --font-display: "Spectral", Georgia, "Times New Roman", serif;
  --font-sans: "Mulish", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Rhythm */
  --maxw: 1200px;
  --gutter: clamp(20px, 5vw, 64px);
  --radius: 14px;
  --radius-lg: 22px;
  --radius-sm: 9px;
  --shadow-sm: 0 1px 2px rgba(16,43,69,.05), 0 2px 8px rgba(16,43,69,.04);
  --shadow-md: 0 6px 22px rgba(16,43,69,.08), 0 2px 6px rgba(16,43,69,.05);
  --shadow-lg: 0 22px 60px rgba(16,43,69,.16), 0 6px 16px rgba(16,43,69,.07);
  --ease: cubic-bezier(.22,.61,.36,1);
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--bg);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img{ display: block; max-width: 100%; }
a{ color: var(--teal-700); text-decoration: none; }

/* ---------- Typography ---------- */
h1,h2,h3,h4{ font-family: var(--font-display); color: var(--navy); margin: 0; line-height: 1.12; font-weight: 600; letter-spacing: -0.01em; }
h1{ font-size: clamp(2.4rem, 5.2vw, 4rem); }
h2{ font-size: clamp(1.9rem, 3.6vw, 2.9rem); }
h3{ font-size: clamp(1.3rem, 2.1vw, 1.65rem); }
h4{ font-size: 1.15rem; }
p{ margin: 0 0 1.05em; color: var(--ink); text-wrap: pretty; }
.lead{ font-size: clamp(1.1rem, 1.8vw, 1.32rem); color: #33454d; line-height: 1.6; }
.eyebrow{
  font-family: var(--font-sans); font-weight: 700; font-size: .8rem;
  letter-spacing: .18em; text-transform: uppercase; color: var(--teal-600);
  display: inline-flex; align-items: center; gap: .6em; margin: 0 0 1rem;
}
.eyebrow::before{ content:""; width: 26px; height: 2px; background: var(--teal); border-radius: 2px; }
.eyebrow.center::after{ content:""; width: 26px; height: 2px; background: var(--teal); border-radius: 2px; }

/* ---------- Layout ---------- */
.wrap{ max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gutter); }
.wrap-narrow{ max-width: 860px; margin: 0 auto; padding-inline: var(--gutter); }
section{ padding-block: clamp(56px, 8vw, 116px); }
.section-tight{ padding-block: clamp(40px, 5vw, 72px); }
.center{ text-align: center; }
.center .eyebrow{ justify-content: center; }

/* ---------- Buttons ---------- */
.btn{
  --b-bg: var(--teal); --b-fg: #fff;
  display: inline-flex; align-items: center; gap: .6em;
  font-family: var(--font-sans); font-weight: 700; font-size: .98rem;
  letter-spacing: .01em; line-height: 1;
  padding: 15px 26px; border-radius: 999px; border: 1.5px solid transparent;
  background: var(--b-bg); color: var(--b-fg); cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .2s;
  box-shadow: 0 8px 20px rgba(78,138,139,.28);
}
.btn:hover{ transform: translateY(-2px); box-shadow: 0 12px 26px rgba(78,138,139,.34); }
.btn:active{ transform: translateY(0); }
.btn--navy{ --b-bg: var(--navy); box-shadow: 0 8px 20px rgba(23,59,94,.26); }
.btn--coral{ --b-bg: var(--coral); box-shadow: 0 8px 20px rgba(204,107,69,.30); }
.btn--ghost{
  background: transparent; color: var(--navy); border-color: var(--mint-200);
  box-shadow: none;
}
.btn--ghost:hover{ background: #fff; border-color: var(--teal); color: var(--teal-700); box-shadow: var(--shadow-sm); }
.btn--white{ --b-bg:#fff; --b-fg: var(--navy); box-shadow: 0 8px 20px rgba(16,43,69,.14); }
.btn--lg{ padding: 18px 32px; font-size: 1.05rem; }
.btn svg{ width: 18px; height: 18px; }

.textlink{
  display: inline-flex; align-items: center; gap: .45em; font-weight: 700;
  color: var(--teal-700); font-size: .95rem; letter-spacing: .02em;
}
.textlink svg{ width: 16px; height: 16px; transition: transform .25s var(--ease); }
.textlink:hover svg{ transform: translateX(4px); }

/* ---------- Pills / chips ---------- */
.pill{
  display: inline-flex; align-items: center; gap: .5em;
  background: var(--mint); color: var(--teal-700); font-weight: 700;
  font-size: .82rem; letter-spacing: .02em; padding: 7px 14px; border-radius: 999px;
}

/* ---------- Cards ---------- */
.card{
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
}

/* ---------- Image placeholder ---------- */
.ph{
  position: relative; background-color: var(--mint);
  background-image: repeating-linear-gradient(45deg, rgba(78,138,139,.10) 0 12px, rgba(78,138,139,.04) 12px 24px);
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.ph span{
  font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: .76rem;
  letter-spacing: .04em; color: var(--teal-700); background: rgba(255,255,255,.72);
  padding: 5px 11px; border-radius: 6px; text-transform: lowercase;
}
.ph-urgent{ background-color: #f6e2d8; background-image: repeating-linear-gradient(45deg, rgba(204,107,69,.13) 0 12px, rgba(204,107,69,.04) 12px 24px); }
.ph-urgent span{ color: var(--coral-600); }

/* ---------- Generic utilities ---------- */
.tealtext{ color: var(--teal-700); }
.navytext{ color: var(--navy); }
.muted{ color: var(--muted); }
hr.rule{ border: 0; border-top: 1px solid var(--line); margin: 0; }

/* ============================================================
   HEADER / NAV
   ============================================================ */
.site-header{
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.86); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav{
  display: flex; align-items: center; gap: 28px;
  max-width: var(--maxw); margin: 0 auto; padding: 12px var(--gutter);
}
.brand{ display: flex; align-items: center; gap: 12px; margin-right: auto; }
.brand img{ height: 46px; width: auto; }
.brand .bk-name{ display: flex; flex-direction: column; line-height: 1.05; }
.brand .bk-name b{ font-family: var(--font-display); font-weight: 600; color: var(--navy); font-size: 1.12rem; letter-spacing: -.01em; white-space: nowrap; }
.brand .bk-name small{ font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; color: var(--teal-600); font-weight: 700; }

.nav-links{ display: flex; align-items: center; gap: 4px; }
.nav-links a{
  font-weight: 600; font-size: .96rem; color: var(--navy); padding: 9px 14px;
  border-radius: 9px; position: relative; transition: color .2s, background .2s;
}
.nav-links a:hover{ color: var(--teal-700); background: var(--mint); }
.nav-links a.active{ color: var(--teal-700); }
.nav-links a.active::after{
  content:""; position: absolute; left: 14px; right: 14px; bottom: 2px; height: 2px;
  background: var(--teal); border-radius: 2px;
}

/* Services dropdown */
.has-menu{ position: relative; }
.menu-btn{
  display: inline-flex; align-items: center; gap: 5px; cursor: pointer;
  font-weight: 600; font-size: .96rem; color: var(--navy); padding: 9px 14px;
  border-radius: 9px; background: none; border: 0; font-family: inherit;
}
.menu-btn:hover{ color: var(--teal-700); background: var(--mint); }
.menu-btn svg{ width: 14px; height: 14px; transition: transform .25s var(--ease); }
.has-menu:hover .menu-btn svg{ transform: rotate(180deg); }
.dropdown{
  position: absolute; top: calc(100% + 8px); left: 50%; transform: translateX(-50%) translateY(8px);
  width: min(620px, 86vw); background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 14px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 2px;
  opacity: 0; visibility: hidden; transition: opacity .22s var(--ease), transform .22s var(--ease);
}
.has-menu:hover .dropdown, .has-menu:focus-within .dropdown{ opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.dropdown a{
  display: flex; align-items: center; gap: 11px; padding: 10px 12px; border-radius: 10px;
  color: var(--navy); font-weight: 600; font-size: .92rem; transition: background .18s;
}
.dropdown a:hover{ background: var(--mint); }
.dropdown a .dd-dot{ width: 8px; height: 8px; border-radius: 50%; background: var(--teal); flex: none; opacity: .55; }
.dropdown a:hover .dd-dot{ opacity: 1; }

.nav-cta{ display: flex; align-items: center; gap: 10px; }
.nav-phone{ display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--navy); font-size: .95rem; white-space: nowrap; }
.nav-phone svg{ width: 16px; height: 16px; color: var(--teal); }

.nav-toggle{ display: none; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer{ background: var(--navy-900); color: #cfe0e6; }
.footer-cta{
  background: linear-gradient(180deg, var(--teal) 0%, var(--teal-700) 100%);
  color: #fff; text-align: center; padding: clamp(48px,7vw,86px) var(--gutter);
}
.footer-cta h2{ color: #fff; max-width: 16ch; margin: 0 auto .5em; }
.footer-cta p{ color: rgba(255,255,255,.86); max-width: 52ch; margin: 0 auto 1.8em; font-size: 1.1rem; }
.footer-cta .btn--white{ color: var(--teal-700); }

.footer-main{ padding: clamp(48px,6vw,80px) 0 0; }
.footer-grid{
  display: grid; grid-template-columns: 1.4fr 1fr 1.1fr; gap: 48px;
  max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gutter);
}
.footer-brand img{ height: 52px; background:#fff; border-radius: 10px; padding: 6px 8px; }
.footer-brand .fb-name{ font-family: var(--font-display); font-size: 1.3rem; color: #fff; margin: 14px 0 4px; }
.footer-brand p{ color: #a9c2cc; font-size: .95rem; }
.footer-col h4{ color: #fff; font-family: var(--font-sans); font-weight: 800; font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 16px; }
.footer-col a, .footer-col p, .footer-col li{ color: #b9ced6; font-size: .95rem; }
.footer-col ul{ list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.footer-col a:hover{ color: #fff; }
.contact-line{ display: flex; gap: 11px; margin-bottom: 13px; align-items: flex-start; }
.contact-line svg{ width: 18px; height: 18px; color: var(--teal); flex: none; margin-top: 2px; }
.contact-line span{ color: #cfe0e6; font-size: .95rem; line-height: 1.5; }
.contact-line b{ color: #fff; }

.hours-table{ width: 100%; border-collapse: collapse; font-size: .92rem; }
.hours-table td{ padding: 7px 0; border-bottom: 1px solid rgba(255,255,255,.09); color: #c4d8df; }
.hours-table td:last-child{ text-align: right; color: #fff; font-weight: 700; }
.hours-table tr:last-child td{ border-bottom: 0; }
.hours-em{ color: var(--coral) !important; }

.footer-map{ max-width: var(--maxw); margin: 44px auto 0; padding-inline: var(--gutter); }
.footer-map .ph{ height: 220px; border-radius: var(--radius); background-color: #16314a; background-image: repeating-linear-gradient(45deg, rgba(255,255,255,.05) 0 12px, rgba(255,255,255,.02) 12px 24px); }
.footer-map .ph span{ background: rgba(0,0,0,.35); color: #cfe0e6; }

.accreditations{
  display: flex; align-items: center; justify-content: center; gap: 30px; flex-wrap: wrap;
  padding: 34px var(--gutter); margin-top: 44px; border-top: 1px solid rgba(255,255,255,.09);
}
.accreditations img{ height: 42px; width: auto; background:#fff; border-radius: 7px; padding: 5px 9px; opacity: .92; }
.accreditations .acc-label{ font-size: .76rem; letter-spacing: .12em; text-transform: uppercase; color: #88a3ad; font-weight: 700; }

.footer-bottom{
  border-top: 1px solid rgba(255,255,255,.09);
  display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; align-items: center;
  max-width: var(--maxw); margin: 0 auto; padding: 22px var(--gutter); font-size: .85rem; color: #88a3ad;
}
.footer-bottom a{ color: #a9c2cc; }

/* ============================================================
   PAGE HERO (service pages)
   ============================================================ */
.page-hero{ background: var(--mint); position: relative; overflow: hidden; }
.page-hero .wrap{ position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; padding-block: clamp(40px,5vw,72px); }
.page-hero .breadcrumb{ font-size: .85rem; color: var(--muted); margin-bottom: 18px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.page-hero .breadcrumb a{ color: var(--teal-700); font-weight: 600; }
.page-hero .breadcrumb svg{ width: 13px; height: 13px; opacity: .5; }
.page-hero h1{ margin-bottom: 18px; }
.page-hero .hero-media{ aspect-ratio: 4/3.2; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.page-hero .hero-media img{ width: 100%; height: 100%; object-fit: cover; }

/* ---------- Article / rich text ---------- */
.article{ padding-block: clamp(48px,6vw,90px); }
.article-grid{ display: grid; grid-template-columns: 1fr 300px; gap: 60px; align-items: start; max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gutter); }
.prose > *:first-child{ margin-top: 0; }
.prose h2{ margin: 1.6em 0 .5em; }
.prose h3{ color: var(--teal-700); margin: 1.7em 0 .4em; font-size: 1.3rem; }
.prose h2:first-child, .prose h3:first-child{ margin-top: 0; }
.prose ul{ list-style: none; padding: 0; margin: 0 0 1.3em; display: grid; gap: 11px; }
.prose ul li{ position: relative; padding-left: 30px; color: #2c3a41; }
.prose ul li::before{
  content:""; position: absolute; left: 0; top: .55em; width: 16px; height: 16px;
  background: var(--mint); border-radius: 50%;
  box-shadow: inset 0 0 0 1.5px var(--teal);
}
.prose ul li strong{ color: var(--navy); }
.prose .checklist li::before{
  background: var(--teal);
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='white' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/></svg>") center/12px no-repeat;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='white' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/></svg>") center/12px no-repeat;
  box-shadow: none;
}
.prose .figure{ border-radius: var(--radius); overflow: hidden; margin: 1.6em 0; box-shadow: var(--shadow-md); }
.prose .figure img{ width: 100%; }

/* callout */
.callout{
  background: var(--mint); border-radius: var(--radius); padding: 22px 26px;
  border-left: 4px solid var(--teal); margin: 1.6em 0;
}
.callout p:last-child{ margin: 0; }
.callout.coral{ background: #fbf0ea; border-left-color: var(--coral); }

/* sidebar */
.aside-card{ background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 26px; box-shadow: var(--shadow-sm); position: sticky; top: 92px; }
.aside-card h4{ font-family: var(--font-display); color: var(--navy); font-size: 1.25rem; margin-bottom: 6px; }
.aside-card p{ font-size: .94rem; color: var(--muted); margin-bottom: 18px; }
.aside-card .btn{ width: 100%; justify-content: center; }
.aside-card .meta-row{ display: flex; gap: 10px; align-items: center; padding: 11px 0; border-top: 1px solid var(--line-2); font-size: .92rem; color: #33454d; }
.aside-card .meta-row svg{ width: 17px; height: 17px; color: var(--teal); flex: none; }

/* fact strip */
.facts{ display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; margin: 1.8em 0; }
.fact{ background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; text-align: center; }
.fact b{ display: block; font-family: var(--font-display); font-size: 1.9rem; color: var(--teal-700); line-height: 1; margin-bottom: 6px; }
.fact span{ font-size: .82rem; color: var(--muted); letter-spacing: .02em; }

/* figure caption */
.prose .figure figcaption{ background: #fff; padding: 12px 18px; font-size: .85rem; color: var(--muted); border-top: 1px solid var(--line); }

/* FAQ accordions */
.faq{ display: grid; gap: 12px; margin: 1.4em 0; }
.faq details{ background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: border-color .2s, box-shadow .2s; }
.faq details[open]{ border-color: var(--mint-200); box-shadow: var(--shadow-sm); }
.faq summary{ cursor: pointer; list-style: none; padding: 18px 22px; font-weight: 700; color: var(--navy); font-family: var(--font-display); font-size: 1.1rem; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq summary::-webkit-details-marker{ display: none; }
.faq summary::after{ content: "+"; font-family: var(--font-sans); font-weight: 600; font-size: 1.5rem; color: var(--teal); line-height: 1; transition: transform .25s var(--ease); flex: none; }
.faq details[open] summary::after{ transform: rotate(45deg); }
.faq .faq-a{ padding: 0 22px 20px; color: #2c3a41; }
.faq .faq-a p:last-child{ margin: 0; }

/* two-up media row */
.media-row{ display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 1.6em 0; }
.media-row .figure{ margin: 0; }
@media (max-width: 560px){ .media-row{ grid-template-columns: 1fr; } }

/* steps */
.steps{ counter-reset: step; display: grid; gap: 14px; margin: 1.4em 0 1.6em; padding: 0; list-style: none; }
.steps li{ position: relative; padding: 18px 22px 18px 66px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.steps li::before{
  counter-increment: step; content: counter(step);
  position: absolute; left: 18px; top: 16px; width: 34px; height: 34px;
  background: var(--mint); color: var(--teal-700); border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-weight: 800; font-family: var(--font-display);
}
.steps li strong{ color: var(--navy); display: block; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 940px){
  .page-hero .wrap{ grid-template-columns: 1fr; gap: 32px; }
  .page-hero .hero-media{ order: -1; aspect-ratio: 16/10; }
  .article-grid{ grid-template-columns: 1fr; gap: 36px; }
  .aside-card{ position: static; }
  .footer-grid{ grid-template-columns: 1fr 1fr; gap: 36px; }
  .footer-brand{ grid-column: 1 / -1; }
}
@media (max-width: 1000px){
  .nav-links, .nav-phone{ display: none; }
  .nav-toggle{ display: inline-flex; }
}
@media (max-width: 820px){
  .facts{ grid-template-columns: 1fr; }
}
@media (max-width: 560px){
  .footer-grid{ grid-template-columns: 1fr; }
  .dropdown{ grid-template-columns: 1fr; }
}

/* Mobile nav drawer */
.nav-toggle{ background: var(--mint); border: 0; width: 44px; height: 44px; border-radius: 11px; align-items: center; justify-content: center; cursor: pointer; }
.nav-toggle svg{ width: 22px; height: 22px; color: var(--navy); }
.mobile-menu{
  position: fixed; inset: 0 0 0 auto; width: min(360px, 88vw); background: #fff; z-index: 200;
  transform: translateX(100%); transition: transform .32s var(--ease); box-shadow: var(--shadow-lg);
  padding: 22px; overflow-y: auto; display: flex; flex-direction: column; gap: 4px;
}
.mobile-menu.open{ transform: translateX(0); }
.mobile-menu .mm-head{ display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.mobile-menu a{ padding: 13px 14px; border-radius: 10px; font-weight: 600; color: var(--navy); }
.mobile-menu a:hover{ background: var(--mint); }
.mobile-menu .mm-label{ font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted-2); font-weight: 800; margin: 14px 14px 4px; }
.mobile-menu .btn{ margin-top: 14px; justify-content: center; }
.scrim{ position: fixed; inset: 0; background: rgba(16,43,69,.4); z-index: 150; opacity: 0; visibility: hidden; transition: opacity .3s; }
.scrim.open{ opacity: 1; visibility: visible; }

/* entrance — only hides when JS is present (html.js); fully visible without JS */
@media (prefers-reduced-motion: no-preference){
  html.js .reveal{ opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
  html.js .reveal.in{ opacity: 1; transform: none; }
}
