/* ------------------------------------------------------------------
   Dr Jeshal Patel — Ophthalmologist, Brits
   One stylesheet for the whole site.
   No web fonts, no frameworks, no tracking. Everything loads instantly.
   ------------------------------------------------------------------ */

/* Palette taken from the consulting room: the deep blue-green of the slit-lamp
   cobalt filter, and the amber of fluorescein dye. Type is set the way a
   Snellen chart is set — few weights, wide spacing, unmistakable letterforms,
   nothing decorative. No web fonts, so nothing can fail to load or slow the
   page down. */
:root {
  --paper:      #f4f7f6;
  --surface:    #ffffff;
  --surface-2:  #e8eeec;
  --ink:        #0d201e;
  --ink-2:      #4a5f5c;
  --brand:      #0b4f4a;
  --brand-dark: #073834;
  --brand-tint: #dcebe8;
  --accent:     #a85a05;
  --accent-dark:#8a4903;
  --line:       #d5e0dd;
  --line-soft:  #e6edeb;
  --warn-bg:    #fdf5e0;
  --warn-line:  #e0b74a;
  --radius:     4px;
  --wrap:       1080px;
  --measure:    68ch;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.125rem;      /* 18px — deliberately large */
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 {
  font-family: inherit;
  font-weight: 700;
  line-height: 1.18;
  color: var(--ink);
  margin: 0 0 .5em;
  letter-spacing: -0.022em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.05rem, 1.3rem + 3vw, 3.35rem); }
h2 { font-size: clamp(1.5rem, 1.18rem + 1.35vw, 2.05rem); margin-top: 2.2em; }
h3 { font-size: 1.28rem; margin-top: 1.8em; letter-spacing: -0.015em; }
h4 { font-size: 1.06rem; margin-top: 1.4em; font-weight: 700; letter-spacing: 0; }

p, ul, ol { margin: 0 0 1.1em; }
ul, ol { padding-left: 1.3em; }
li { margin-bottom: .4em; }

a { color: var(--brand); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--brand-dark); }
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 3px;
}

strong { font-weight: 650; }

/* ---------- layout helpers ---------- */

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: 1.25rem; }
.measure { max-width: var(--measure); }
.section { padding-block: clamp(2.5rem, 1.5rem + 3vw, 4.5rem); }
.section--tint { background: var(--surface-2); }
.section--brand { background: var(--brand); color: #fff; }
.section--brand h2, .section--brand h3 { color: #fff; }
.section--brand a { color: #fff; }
.section:first-of-type h2 { margin-top: 0; }
.stack > * + * { margin-top: 1rem; }

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: #fff; padding: .8rem 1.2rem; z-index: 100;
}
.skip:focus { left: 0; }

/* ---------- header ---------- */

.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: .75rem 1.5rem; padding-block: .9rem;
}
.brand {
  text-decoration: none; color: inherit; line-height: 1.2;
  display: flex; align-items: center; gap: .75rem;
}
.brand__mark { height: 46px; width: auto; flex: none; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.brand__text { display: block; }
.brand__name {
  display: block;
  font-size: 1.3rem; font-weight: 700; color: var(--brand-dark);
  letter-spacing: -0.02em;
}
.brand__role { display: block; font-size: .78rem; color: var(--ink-2); letter-spacing: .11em; text-transform: uppercase; margin-top: .1rem; }

.header__actions {
  margin-left: auto;
  display: flex; flex-wrap: wrap;
  gap: .1rem 1.4rem; align-items: center;
}
.header__call, .header__wa {
  font-weight: 650;
  font-size: 1.05rem;
  text-decoration: none;
  white-space: nowrap;
}
.header__call { color: var(--accent-dark); }
.header__call:hover { color: var(--accent); text-decoration: underline; }
.header__wa { color: var(--brand); }
.header__wa:hover { color: var(--brand-dark); text-decoration: underline; }

.btn-row { display: flex; flex-wrap: wrap; gap: .8rem; }

.nav { border-bottom: 1px solid var(--line); background: var(--surface); }
.nav ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: .1rem 1.4rem;
}
.nav li { margin: 0; }
.nav a {
  display: block; padding: .7rem 0;
  text-decoration: none; color: var(--ink);
  font-size: 1rem; font-weight: 550;
  border-bottom: 3px solid transparent;
}
.nav a:hover { color: var(--brand); border-bottom-color: var(--line); }
.nav a[aria-current="page"] { color: var(--brand); border-bottom-color: var(--brand); }

/* ---------- hero ---------- */

.hero { background: var(--brand); color: #fff; padding-block: clamp(2.75rem, 1.5rem + 4vw, 5rem); }
.hero h1 { color: #fff; max-width: 18ch; }
.hero p { max-width: 54ch; font-size: 1.18rem; color: #d9e8e4; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.8rem; }

.page-head { background: var(--brand-tint); padding-block: clamp(2rem, 1.2rem + 2.5vw, 3.25rem); border-bottom: 1px solid #d3e2de; }
.page-head h1 { margin-bottom: .25em; }
.page-head p { max-width: 58ch; color: var(--ink-2); font-size: 1.1rem; margin: 0; }

/* ---------- buttons ---------- */

.btn {
  display: inline-block;
  padding: .85rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 650; font-size: 1.05rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
}
.btn--call { background: var(--accent); color: #fff; }
.btn--call:hover { background: var(--accent-dark); color: #fff; }
.btn--ghost { border-color: rgba(255,255,255,.6); color: #fff; }
.btn--ghost:hover { background: rgba(255,255,255,.12); color: #fff; }
.btn--solid { background: var(--brand); color: #fff; }
.btn--solid:hover { background: var(--brand-dark); color: #fff; }
.btn--outline { border-color: var(--brand); color: var(--brand); }
.btn--outline:hover { background: var(--brand-tint); }

/* ---------- facts strip ---------- */

.facts {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.facts ul {
  list-style: none; margin: 0; padding: 1.25rem 0;
  display: grid; gap: 1rem 2rem;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}
.facts li { margin: 0; }
.facts dt, .facts .label {
  display: block;
  font-size: .74rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink-2); margin-bottom: .2rem;
}
.facts .value { font-weight: 600; }
.facts a { text-decoration: none; font-weight: 650; }
.facts a:hover { text-decoration: underline; }

/* ---------- cards ---------- */

.grid { display: grid; gap: 1.1rem; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem 1.5rem;
}
.card h3 { margin-top: 0; font-size: 1.2rem; }
.card p:last-child { margin-bottom: 0; }
.card--link { text-decoration: none; color: inherit; display: block; }
.card--link:hover { border-color: var(--brand); background: #fff; }
.card--link:hover h3 { color: var(--brand); }
.card__more { display: block; margin-top: .8rem; font-weight: 650; color: var(--brand); }

.feature {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 5px solid var(--brand);
  border-radius: var(--radius);
  padding: 1.6rem 1.7rem;
}
.feature h2 { margin-top: 0; }

.note {
  background: var(--brand-tint);
  border-radius: var(--radius);
  padding: 1.2rem 1.4rem;
  margin: 1.75rem 0;
}
.note p:last-child { margin-bottom: 0; }
.note h3 { margin-top: 0; }

.urgent {
  background: var(--warn-bg);
  border: 1px solid var(--warn-line);
  border-radius: var(--radius);
  padding: 1.2rem 1.4rem;
  margin: 1.75rem 0;
}
.urgent h3 { margin-top: 0; }
.urgent p:last-child { margin-bottom: 0; }

/* Editor's note — must be removed before the site goes live. */
.todo {
  background: #fff4f4;
  border: 2px dashed #d08a8a;
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  font-size: .98rem;
  color: #6d2a2a;
}
.todo strong { color: #8c2f2f; }
.todo p:last-child { margin-bottom: 0; }

/* ---------- definition-style lists ---------- */

.deflist { display: grid; gap: 1.4rem; }
.deflist > div { border-top: 1px solid var(--line); padding-top: 1.1rem; }
.deflist h3 { margin: 0 0 .35em; font-size: 1.15rem; }
.deflist p:last-child { margin-bottom: 0; }

.steps { counter-reset: step; list-style: none; padding-left: 0; }
.steps > li {
  counter-increment: step;
  position: relative;
  padding-left: 3rem;
  margin-bottom: 1.1rem;
}
.steps > li::before {
  content: counter(step);
  position: absolute; left: 0; top: .05em;
  width: 2.1rem; height: 2.1rem;
  display: grid; place-items: center;
  background: var(--brand); color: #fff;
  border-radius: 50%;
  font-weight: 700; font-size: 1rem;
}

.people { display: grid; gap: 1.1rem; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.person { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem 1.4rem; }
.person h3 { margin: 0 0 .2em; font-size: 1.15rem; }
.person .role { color: var(--ink-2); font-size: .95rem; margin: 0; }

/* ---------- contact ---------- */

.contact-grid { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); align-items: start; }

.detail-list { list-style: none; padding: 0; margin: 0; }
.detail-list li { margin-bottom: 1.1rem; }
.detail-list .label { display: block; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); margin-bottom: .15rem; }
.detail-list a, .detail-list .value { font-size: 1.1rem; font-weight: 600; }

form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; }
.field { margin-bottom: 1.1rem; }
label { display: block; font-weight: 650; margin-bottom: .3rem; font-size: 1rem; }
input[type=text], input[type=email], input[type=tel], textarea {
  width: 100%;
  font: inherit;
  padding: .7rem .8rem;
  border: 2px solid var(--line);
  border-radius: 6px;
  background: var(--paper);
  color: var(--ink);
}
input:focus, textarea:focus { border-color: var(--brand); background: #fff; }
textarea { min-height: 8rem; resize: vertical; }
.hint { font-size: .92rem; color: var(--ink-2); margin: .3rem 0 0; }

.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: 1rem; }
th, td { text-align: left; padding: .7rem .9rem; border-bottom: 1px solid var(--line); }
th { font-weight: 700; }

/* ---------- footer ---------- */

.site-footer {
  background: var(--brand-dark);
  color: #cfe0dc;
  padding-block: 2.75rem 2rem;
  margin-top: 3rem;
  font-size: 1rem;
}
.site-footer h2, .site-footer h3 { color: #fff; font-size: 1.05rem; margin: 0 0 .6em; font-family: inherit; font-weight: 700; letter-spacing: .03em; }
.site-footer a { color: #fff; }
.site-footer .cols { display: grid; gap: 1.75rem 2.5rem; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.footer__logo { width: 100%; max-width: 240px; height: auto; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .45rem; }
.site-footer .fine {
  border-top: 1px solid rgba(255,255,255,.18);
  margin-top: 2rem; padding-top: 1.2rem;
  font-size: .9rem; color: #a9c4bf;
  display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: space-between;
}

/* ---------- print ---------- */

@media print {
  .nav, .hero__actions, form, .skip, .todo { display: none; }
  body { background: #fff; font-size: 11pt; }
  .site-footer { background: #fff; color: #000; }
  .site-footer a { color: #000; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 9pt; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
