/* =====================================================================
   London Eye & Retina Specialist Centre — Design System
   Brand-derived tokens from the clinic logo:
   deep navy, primary blue, cyan accent, red accent dot.
   ===================================================================== */

/* ------------------------------------------------------------------ *
 * 1. Design tokens
 * ------------------------------------------------------------------ */
:root {
  /* Brand */
  --navy:        #10305c;   /* headings, primary brand */
  --navy-900:    #0b2244;
  --blue:        #1a6fbf;   /* primary actions, links */
  --blue-600:    #155ca0;
  --blue-100:    #e5f0fa;
  --cyan:        #38b3e3;   /* accents, highlights */
  --cyan-100:    #e3f6fc;
  --red:         #e0352b;   /* accent dot, urgent/emergency */
  --red-600:     #c02a22;

  /* Neutrals */
  --ink:         #16202e;
  --slate:       #52627a;
  --slate-300:   #9aa7b8;
  --line:        #e3e9f0;
  --cloud:       #f4f8fc;   /* section tint */
  --cloud-200:   #eaf1f8;
  --white:       #ffffff;

  /* Feedback */
  --success:     #1f9d63;

  /* Typography */
  --font-head: "Poppins", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;

  /* Fluid type scale */
  --fs-xs:  0.8125rem;
  --fs-sm:  0.9375rem;
  --fs-base: 1.0625rem;
  --fs-lg:  1.1875rem;
  --fs-xl:  clamp(1.35rem, 1.1rem + 1.1vw, 1.75rem);
  --fs-2xl: clamp(1.7rem, 1.3rem + 1.9vw, 2.5rem);
  --fs-3xl: clamp(2.1rem, 1.5rem + 3vw, 3.4rem);

  /* Spacing */
  --sp-1: 0.5rem;
  --sp-2: 1rem;
  --sp-3: 1.5rem;
  --sp-4: 2rem;
  --sp-5: 3rem;
  --sp-6: 4rem;
  --sp-7: 6rem;

  /* Structure */
  --container: 1200px;
  --container-narrow: 820px;
  --radius: 14px;
  --radius-sm: 8px;
  --radius-lg: 24px;
  --shadow-sm: 0 2px 8px rgba(16, 48, 92, 0.06);
  --shadow:    0 12px 34px rgba(16, 48, 92, 0.10);
  --shadow-lg: 0 26px 60px rgba(16, 48, 92, 0.16);
  --ring: 0 0 0 4px rgba(56, 179, 227, 0.35);
  --header-h: 88px;
}

/* ------------------------------------------------------------------ *
 * 2. Reset & base
 * ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: var(--blue); text-decoration: none; transition: color .18s ease; }
a:hover { color: var(--blue-600); }
ul, ol { padding-left: 1.25em; }
strong { font-weight: 700; }
:focus-visible { outline: none; box-shadow: var(--ring); border-radius: 4px; }

h1, h2, h3, h4, h5 {
  font-family: var(--font-head);
  color: var(--navy);
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.01em;
}
h1 { font-size: var(--fs-3xl); }
h2 { font-size: var(--fs-2xl); }
h3 { font-size: var(--fs-xl); }
h4 { font-size: var(--fs-lg); }
p  { color: var(--slate); }
p + p { margin-top: 1em; }

/* ------------------------------------------------------------------ *
 * 3. Layout helpers
 * ------------------------------------------------------------------ */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: clamp(1rem, 4vw, 2rem); }
.container--narrow { max-width: var(--container-narrow); }
.section { padding-block: clamp(3rem, 6vw, 6rem); }
.section--tint { background: var(--cloud); }
.section--navy { background: var(--navy); color: #dbe6f4; }
.section--navy h2, .section--navy h3 { color: #fff; }
.stack > * + * { margin-top: var(--sp-2); }
.grid { display: grid; gap: var(--sp-3); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------------ *
 * 4. Section heading block
 * ------------------------------------------------------------------ */
.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--font-head);
  font-size: var(--fs-xs); font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--blue);
}
.eyebrow::before { content: ""; width: 22px; height: 3px; border-radius: 2px; background: var(--red); }
.section-head { max-width: 760px; margin-bottom: var(--sp-4); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
.section-head p { margin-top: .75rem; font-size: var(--fs-lg); }

/* ------------------------------------------------------------------ *
 * 5. Buttons
 * ------------------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--font-head); font-weight: 600; font-size: var(--fs-sm);
  padding: .85rem 1.6rem; border-radius: 999px; border: 2px solid transparent;
  cursor: pointer; transition: transform .15s ease, background .18s ease, box-shadow .18s ease, color .18s ease;
  line-height: 1; white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--blue); color: #fff; box-shadow: 0 10px 24px rgba(26,111,191,.28); }
.btn--primary:hover { background: var(--blue-600); color: #fff; }
.btn--accent { background: var(--red); color: #fff; box-shadow: 0 10px 24px rgba(224,53,43,.26); }
.btn--accent:hover { background: var(--red-600); color: #fff; }
.btn--ghost { background: transparent; color: var(--navy); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--blue); color: var(--blue); }
.btn--light { background: #fff; color: var(--navy); }
.btn--light:hover { color: var(--blue); }
.btn--wa { background: #25d366; color: #fff; }
.btn--wa:hover { background: #20bd5a; color: #fff; }
.btn--lg { padding: 1.05rem 2rem; font-size: var(--fs-base); }

/* ------------------------------------------------------------------ *
 * 6. Cards
 * ------------------------------------------------------------------ */
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: var(--sp-3); box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card--link:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.card__icon {
  width: 52px; height: 52px; border-radius: 12px; display: grid; place-items: center;
  background: var(--blue-100); color: var(--blue); margin-bottom: var(--sp-2);
}
.card__icon svg { width: 26px; height: 26px; }
.card h3 { font-size: var(--fs-lg); margin-bottom: .4rem; }
.card p { font-size: var(--fs-sm); }
.card__more { display: inline-flex; align-items: center; gap: .35rem; margin-top: var(--sp-2); font-weight: 600; font-family: var(--font-head); font-size: var(--fs-sm); }
.card--link:hover .card__more { gap: .6rem; }

/* Pill / tag */
.pill {
  display: inline-flex; align-items: center; gap: .4rem; padding: .35rem .8rem;
  border-radius: 999px; background: var(--cyan-100); color: var(--blue-600);
  font-size: var(--fs-xs); font-weight: 600; font-family: var(--font-head);
}

/* ------------------------------------------------------------------ *
 * 7. Utilities
 * ------------------------------------------------------------------ */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.lead { font-size: var(--fs-lg); color: var(--slate); }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.flow > * + * { margin-top: 1.1em; }

/* Inline icon default size. More-specific rules (.topbar svg, .card__icon svg, …)
   still win; this only sizes icons that would otherwise render at intrinsic size. */
.ler-ico { width: 1.15em; height: 1.15em; flex-shrink: 0; vertical-align: -0.18em; }
.btn .ler-ico { width: 1.05em; height: 1.05em; }
.card__more .ler-ico { width: 1em; height: 1em; }
