/* =============================
   London Vision Training Clinic
   Global Stylesheet (styles.css)
   ============================= */

/* ---------- CSS Reset & Variables ---------- */
:root {
  --brand: #0f4c81;
  --brand-ink: #0a3155;
  --accent: #17a2b8;
  --ink-900: #0f172a;
  --ink-800: #1e293b;
  --ink-700: #334155;
  --ink-600: #475569;
  --ink-500: #64748b;
  --ink-400: #94a3b8;
  --bg: #ffffff;
  --bg-soft: #f6f8fb;
  --ring: rgba(23, 162, 184, .35);
  --radius: 16px;
  --shadow: 0 6px 24px rgba(0,0,0,.08);
  --cta: #FF6B35;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  color: var(--ink-800);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: none; }
.container { width: min(1200px, 92vw); margin-inline: auto; }

/* ---------- Sticky Wrapper ---------- */
.sticky-wrapper {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #fff;
  box-shadow: 0 1px 0 rgba(15,23,42,.06);
}

/* ---------- Top Banner ---------- */
.top-banner {
  background: var(--brand);
  color: #fff;
  font-size: .9rem;
  display: flex;
  justify-content: flex-end;
}
.top-banner a {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  color: #fff;
  padding: .4rem .75rem;
  text-decoration: none;
}
.top-banner img {
  width: 16px;
  height: 16px;
}

/* ---------- Header ---------- */
.site-header {
  background: #fff;
}
.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .6rem 0;
}
.brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.brand img {
  height: 54px;
  width: auto;
}
.brand__est {
  margin-top: -8px;
  margin-left: 70px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--ink-700);
}

/* ---------- Nav (desktop hidden) ---------- */
.nav { display: none !important; }

/* ---------- Hamburger Button ---------- */
.hamburger {
  display: flex !important;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  width: 40px;
  height: 40px;
  padding: .4rem;
  background: transparent;
  border: 0;
  border-radius: 10px;
  cursor: pointer;
  z-index: 10;
}
.hamburger:focus {
  outline: 2px solid var(--ring);
  outline-offset: 2px;
}
/* Default bars: dark navy (for white header background) */
.hamburger .bar {
  display: block;
  width: 24px;
  height: 3px;
  background-color: var(--brand-ink);
  border-radius: 2px;
}
/* When hamburger is placed inside hero (dark background) → white bars */
.hero .hamburger .bar {
  background-color: #fff;
}

/* ---------- Fullscreen Menu Overlay ---------- */
.menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 19, 35, .92);
  display: none;
  z-index: 1200;
  color: #fff;
}
.menu-overlay.open { display: flex; }
.menu-inner {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  padding: 2rem;
}
.menu-inner a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;

  /* Center block */
  width: auto;              /* shrink to fit content */
  min-width: 180px;         /* optional: keeps consistent button widths */
  margin-inline: auto;      /* centers each link as a row */

  padding: .9rem 1.4rem;
  line-height: 1.2;
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  border-radius: 12px;
}

.menu-inner a:hover {
  background: rgba(255,255,255,.08);
}
.menu-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 0;
  cursor: pointer;
  background: #ffffff10;
  color: #fff;
  font-size: 1.4rem;
}
.menu-close:hover {
  background: #ffffff20;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  background: var(--cta);
  color: #fff;
  padding: .9rem 1.2rem;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  border: 2px solid var(--cta);
  box-shadow: var(--shadow);
}
.btn:hover {
  background: #E65A24;
  border-color: #E65A24;
}
.btn--ghost {
  background: transparent;
  color: #fff;
  border-color: #fff;
}
.btn--slim {
  padding: .7rem 1rem;
  font-size: .95rem;
}

/* ---------- Hero Section ---------- */
.hero {
  position: relative;
  color: #fff;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 420px;
  background-image:
    linear-gradient(180deg, rgba(0,0,0,.35), rgba(0,0,0,.45)),
    url("images/hero.png");
  background-size: cover;
  background-position: center;
  padding: 2rem;
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: .6rem;
  font-weight: 800;
}
.hero p {
  font-size: clamp(1rem, 2.4vw, 1.2rem);
  margin-bottom: 1.2rem;
  color: #e7eef9;
}
.hero .content {
  position: absolute;
  top: 2rem;
  right: 2rem;
  text-align: right;
  z-index: 2;
}
.hero .cta {
  position: absolute;
  bottom: 2rem;
  right: 2rem;
  z-index: 3;
  display: flex !important;
}

/* ---------- Process Section (3-Step) ---------- */
.process {
  padding: clamp(2rem, 4vw, 4rem) 0;
  background: linear-gradient(180deg, #fafafa, #ffffff);
}
.process__title {
  text-align: center;
  color: var(--brand);
  margin-bottom: 2rem;
  font-size: clamp(1.5rem, 2.5vw, 2rem);
}
.process .container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1rem;
}
.process__rail {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: center;
  gap: clamp(.75rem, 2vw, 1.25rem);
}
.process__item {
  background: #fff;
  border-radius: 20px;
  box-shadow: var(--shadow);
  padding: 1.2rem;
  text-align: center;
}
.process__circle {
  width: 88px;
  height: 88px;
  margin: 0 auto .75rem;
  border-radius: 50%;
  color: #fff;
  font-weight: 800;
  font-size: 1.5rem;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 18px rgba(0,0,0,.12) inset, 0 4px 10px rgba(0,0,0,.06);
}
.process__circle--brand { background: var(--brand); }
.process__circle--accent { background: var(--accent); }
.process__circle--cta { background: var(--cta); }
.process__heading {
  font-size: 1.05rem;
  margin-bottom: .4rem;
  color: var(--ink-900);
}
.process__text {
  margin: 0;
  color: var(--ink-700);
  line-height: 1.45;
}
.process__arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--brand);
  opacity: .9;
}
@media (max-width: 900px) {
  .process__rail {
    grid-template-columns: 1fr;
  }
  .process__arrow {
    transform: rotate(90deg);
    margin: .25rem 0;
  }
  .process__circle {
    width: 76px;
    height: 76px;
    font-size: 1.25rem;
  }
}

/* ---------- Footer ---------- */
.site-footer {
  background: #0b2440;
  color: #dfe8f5;
  padding: 2rem 0;
  margin-top: 2rem;
}
.footer-cols {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, 1fr);
}
.site-footer a {
  color: #fff;
  text-decoration: none;
}
.copy {
  margin-top: 1rem;
  font-size: .9rem;
  color: #b6c5dd;
}

/* ---------- Responsive Tweaks ---------- */
@media (max-width: 980px) {
  .brand img { height: 46px; }
  .brand__est { font-size: .65rem; }
  .footer-cols { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .brand img { height: 42px; }
  .hero .content { top: 1rem; right: 1rem; }
  .hero .cta { bottom: 1rem; right: 1rem; }
  .hero .cta .btn { width: 100%; justify-content: center; }
}

/* ---------- Why London Vision Section ---------- */
.why h2 {
  text-align: center;
  font-size: clamp(1.8rem, 2.5vw, 2.2rem);
  color: var(--brand-ink);
  margin-bottom: 2.5rem;
  font-weight: 800;
}

.why-grid {
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 768px) {
  .why-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.why-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.why-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
}

.why-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 1rem;
  display: block;
}

.why-card h3 {
  color: var(--brand);
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}
.why-card p {
  color: var(--ink-700);
  font-size: 1rem;
  line-height: 1.5;
}
