:root{
  --bg:#ffffff;
  --text:#1b1f24;
  --muted:#5b6776;
  --line:#e6e9ee;
  --card:#f7f8fa;
  --accent:#0f6c8c;
  --accent2:#0b4e66;
  --shadow:0 10px 30px rgba(0,0,0,.08);
  --radius:16px;
  --max:1100px;
}

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

body{
  margin:0;
  font-family:system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  color:var(--text);
  background:var(--bg);
  line-height:1.6;
}

a{color:var(--accent);text-decoration:none;}
a:hover{text-decoration:underline;}

.container{
  width:min(var(--max),calc(100% - 2rem));
  margin:0 auto;
}

/* Skip link */
.skip-link{
  position:absolute;
  left:-999px;
}
.skip-link:focus{
  left:1rem;
  top:1rem;
  background:#000;
  color:#fff;
  padding:.5rem .75rem;
  border-radius:10px;
  z-index:9999;
}

/* Header */
header{
  position:sticky;
  top:0;
  background:#fff;
  border-bottom:1px solid var(--line);
  z-index:1000;
}

.nav{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:.9rem 0;
  gap:1rem;
}

/* Brand (Home link) */
.brand{
  text-decoration:none;
  color:inherit;
  display:inline-block;
}

.brand strong{
  font-size:2rem;
  font-weight:800;
  letter-spacing:.01em;
}

.brand span{
  font-size:.95rem;
  color:var(--muted);
}
.brand:hover,
.brand:focus-visible{
  text-decoration:none;
  opacity:0.85;
}

.brand:focus-visible{
  outline:2px solid var(--accent);
  outline-offset:4px;
}

/* Menu */
.menu{
  display:flex;
  gap:1rem;
  flex-wrap:wrap;
}

.menu a{
  font-weight:600;
  color:var(--text);
}

.menu a[aria-current="page"]{
  color:var(--accent);
}

/* Hero */
.hero{
  padding:3.5rem 0 2.5rem;
  border-bottom:1px solid var(--line);
  background:
    radial-gradient(900px 300px at 15% 10%, rgba(15,108,140,.12), transparent 70%),
    radial-gradient(900px 300px at 85% 0%, rgba(15,108,140,.10), transparent 70%);
}

.hero-grid{
  display:grid;
  grid-template-columns:1.2fr .8fr;
  gap:2rem;
}

.hero h1{
  font-size:clamp(2rem,2.8vw,3rem);
  line-height:1.15;
  margin:0 0 .75rem;
}

.hero p{
  color:var(--muted);
  font-size:1.05rem;
}

/* Badges */
.badges{
  display:flex;
  flex-wrap:wrap;
  gap:.5rem;
  margin:1rem 0;
}

.badge{
  padding:.35rem .6rem;
  border:1px solid var(--line);
  border-radius:999px;
  font-size:.9rem;
  color:var(--muted);
  background:#fff;
}

/* Cards & sections */
.card{
  background:var(--card);
  border:1px solid var(--line);
  border-radius:var(--radius);
  padding:1.1rem;
  box-shadow:var(--shadow);
}

.section{padding:2.25rem 0;}

.section h2{
  font-size:clamp(1.4rem,2.2vw,1.9rem);
}

.section p.lead{
  color:var(--muted);
  margin-bottom:1.25rem;
}

.grid-3{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:1rem;
}

.grid-2{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:1rem;
}

.feature p{color:var(--muted);}

/* Key-value clinic details */
.kv{
  display:grid;
  gap:.6rem;
}

.kv div{
  display:grid;
  grid-template-columns:120px 1fr;
  gap:.75rem;
  align-items:start;
  padding:.6rem .75rem;
  background:#fff;
  border:1px solid var(--line);
  border-radius:12px;
}

.kv span{color:var(--muted);}

/* Make clinician row feel like a header */
.kv .kv-clinician{
  background: rgba(15,108,140,.06);
  border-color: rgba(15,108,140,.25);
}

.kv .kv-clinician strong{
  letter-spacing: .02em;
}

.kv .kv-clinician span{
  font-weight: 700;
  color: var(--text);
}


/* Buttons */
.cta-row{
  display:flex;
  gap:.75rem;
  flex-wrap:wrap;
  margin-top:1rem;
}

.button{
  padding:.75rem 1rem;
  border-radius:999px;
  border:1px solid var(--accent);
  font-weight:700;
}

.button.primary{
  background:var(--accent);
  color:#fff;
}

.button.primary:hover{
  background:var(--accent2);
  border-color:var(--accent2);
}

.button.ghost{
  background:#fff;
  color:var(--accent);
}

/* Notices */
.notice{
  border-left:4px solid var(--accent);
  background:rgba(15,108,140,.08);
  padding:.75rem .9rem;
  border-radius:12px;
}

/* Footer */
footer{
  border-top:1px solid var(--line);
  padding:1.25rem 0;
  font-size:.95rem;
  color:var(--muted);
}

.footer-grid{
  display:flex;
  justify-content:space-between;
  gap:1rem;
  flex-wrap:wrap;
}

.small{
  font-size:.9rem;
  color:var(--muted);
}

/* Profile photo */
.profile-photo{
  width:100%;
  max-width:320px;
  border-radius:var(--radius);
  border:1px solid var(--line);
  box-shadow:var(--shadow);
}

.profile-wrap{
  display:flex;
  justify-content:center;
}

/* Problem cards */
.problem-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:1rem;
}

.problem-card{
  background:#fff;
  border:1px solid var(--line);
  border-radius:var(--radius);
  overflow:hidden;
}

.problem-card img{
  width:100%;
  height:180px;
  object-fit:cover;
  display:block;
}

.problem-card .content{padding:1rem;}

.problem-card p{color:var(--muted);}

/* Mobile navigation */
.nav-toggle{display:none;}

.nav-toggle-label{
  display:none;
  width:32px;
  height:24px;
  cursor:pointer;
  flex-direction:column;
  justify-content:space-between;
}

.nav-toggle-label span{
  display:block;
  height:3px;
  width:100%;
  background:var(--text);
  border-radius:2px;
}

/* Responsive */
@media (max-width:900px){

  .hero-grid,
  .grid-3,
  .grid-2,
  .problem-grid{
    grid-template-columns:1fr;
  }

  .nav{
    align-items:flex-start;
  }

  .nav-toggle-label{
    display:flex;
  }

  .menu{
    width:100%;
    flex-direction:column;
    gap:.5rem;
    margin-top:.75rem;
    display:none;
  }

  .nav-toggle:checked + .nav-toggle-label + .menu{
    display:flex;
  }

  header .brand{
    display:block;
    padding:.5rem 0;
  }

  .profile-photo{max-width:260px;}
}
.clinician-name{
  font-weight:700;
  margin:.25rem 0 .75rem;
}

@media (max-width:900px){
  .brand strong{
    font-size:1.25rem;
  }
}

