/* Marshall & Lilley Opticians — site styles */

@font-face {
  font-family: "Outfit";
  src: url("fonts/outfit.woff") format("woff");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Figtree";
  src: url("fonts/figtree.woff") format("woff");
  font-weight: 300 900;
  font-display: swap;
}

:root {
  --ink: #231F20;
  --ink-soft: #4A4647;
  --ink-muted: #5A5657;
  --blue: #1A6E9E;
  --blue-dark: #124F72;
  --blue-light: #50ADE5;
  --tint: #EEF6FB;
  --line: #E6E6E6;
  --display: "Outfit", "Avenir Next", "Segoe UI", sans-serif;
  --body: "Figtree", "Helvetica Neue", "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: #fff;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video { max-width: 100%; display: block; }
a { color: var(--blue); }
a:hover { color: var(--blue-dark); }
h1, h2, h3, h4 { font-family: var(--display); margin: 0; }
p { margin: 0; }

.wrap { max-width: 1200px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.tint { background: var(--tint); }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 10;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px;
}
.skip-link:focus { top: 12px; color: #fff; }
:focus-visible { outline: 3px solid var(--blue-light); outline-offset: 3px; }

/* Eyebrow label */
.eyebrow {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--display); font-weight: 600; font-size: 15px;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--blue);
}
.eyebrow::before {
  content: ""; flex: none; width: 28px; height: 3px; background: var(--blue-light); border-radius: 2px;
}
.eyebrow.plain::before { display: none; }

.section-title { font-weight: 700; font-size: clamp(30px, 3.6vw, 44px); line-height: 1.12; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 26px; border-radius: 999px; min-height: 48px;
  font-family: var(--display); font-weight: 600; font-size: 17px;
  text-decoration: none; border: 1.5px solid transparent; cursor: pointer;
}
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-dark); color: #fff; }
.btn-outline { background: #fff; color: var(--ink); border-color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn svg { flex: none; }

/* Top bar */
.topbar { background: var(--ink); color: #F2F2F2; font-size: 14px; }
.topbar .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px; padding-top: 10px; padding-bottom: 10px; }
.topbar strong { color: #fff; font-weight: 600; }
.topbar a { color: #fff; text-decoration: none; font-weight: 600; }
.topbar .right { display: flex; flex-wrap: wrap; gap: 6px 24px; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); background: #fff; }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; padding-top: 16px; padding-bottom: 16px; }
.site-header .logo img { height: 84px; width: auto; }
.main-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 28px; font-family: var(--display); font-weight: 500; font-size: 17px; }
.main-nav a { color: var(--ink); text-decoration: none; padding: 10px 0; }
.main-nav a:hover { color: var(--blue); }
.main-nav a.btn { color: #fff; padding: 12px 22px; }

/* Hero */
.hero .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 48px; padding-top: 72px; padding-bottom: 72px; }
.hero-text { flex: 1 1 420px; min-width: 0; }
.hero h1 { font-weight: 700; font-size: clamp(38px, 5.2vw, 64px); line-height: 1.05; letter-spacing: -0.01em; margin-bottom: 14px; }
.hero h1 .amp { color: var(--blue); }
.hero .tagline { font-family: var(--display); font-weight: 500; font-size: clamp(22px, 2.6vw, 32px); line-height: 1.2; margin-bottom: 20px; }
.hero .lead { font-size: 19px; color: var(--ink-soft); max-width: 34em; margin-bottom: 20px; }
.hero .eyebrow { margin-bottom: 32px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-media { flex: 1 1 440px; min-width: 0; display: flex; justify-content: center; }
.hero-media video {
  height: 560px; max-height: 80vh; aspect-ratio: 9 / 16; width: auto;
  object-fit: cover; border-radius: 24px; background: #2F4A5E;
}

/* Highlights strip */
.highlights { border-bottom: 1px solid var(--line); }
.highlights .wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(165px, 1fr)); gap: 16px 20px; padding-top: 28px; padding-bottom: 28px; }
.highlight { display: flex; gap: 14px; align-items: flex-start; }
.highlight svg { flex: none; }
.highlight strong { display: block; font-weight: 600; }
.highlight span { font-size: 15px; color: var(--ink-muted); }

/* Eye tests */
.eye-tests .split { display: flex; flex-wrap: wrap; align-items: center; gap: 56px; padding-top: 96px; padding-bottom: 64px; }
.photo-pair { flex: 1 1 460px; min-width: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.photo-pair img { width: 100%; height: 400px; object-fit: cover; border-radius: 16px; }
.photo-pair img + img { margin-top: 48px; }
.eye-tests .copy { flex: 1 1 420px; min-width: 0; }
.eye-tests h2 { margin: 12px 0 18px; }
.eye-tests .copy > p { color: var(--ink-soft); margin-bottom: 28px; }
.ticks { list-style: none; padding: 0; margin: 0 0 32px; display: grid; gap: 12px; }
.ticks li { display: flex; gap: 12px; align-items: flex-start; }
.ticks svg { flex: none; margin-top: 3px; }
.text-link { font-family: var(--display); font-weight: 600; }

.services { padding-bottom: 96px; }
.services h3 { font-weight: 600; font-size: 26px; margin-bottom: 20px; }
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
@media (max-width: 360px) { .card-grid { grid-template-columns: 1fr; } }
.criteria { background: var(--tint); border-left: 0; border-radius: 12px; padding: 14px 16px; font-size: 15px; color: var(--ink); }
.criteria strong { display: block; font-weight: 600; margin-bottom: 6px; }
.criteria ul { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
.criteria em { font-style: normal; font-weight: 600; }
.service-card { border: 1px solid var(--line); border-radius: 16px; padding: 28px; display: flex; flex-direction: column; gap: 10px; }
.service-card h4 { font-weight: 600; font-size: 20px; }
.service-card p { font-size: 16px; color: var(--ink-soft); }
.title-row { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.badge { font-size: 13px; font-weight: 600; color: var(--blue); border: 1px solid var(--blue); border-radius: 999px; padding: 2px 10px; }

/* Glasses & lenses */
.glasses .wrap { padding-top: 96px; padding-bottom: 96px; }
.glasses .intro { max-width: 760px; margin-bottom: 48px; }
.glasses .intro h2 { margin: 12px 0 18px; }
.glasses .intro p { color: var(--ink-soft); }
.glasses-layout { display: flex; flex-wrap: wrap; align-items: stretch; gap: 24px; }
.glasses-cards { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.panel { background: #fff; border-radius: 20px; padding: 36px; display: flex; flex-direction: column; gap: 18px; }
.panel h3 { font-weight: 600; font-size: 26px; }
.panel > p { color: var(--ink-soft); }
.brands { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; list-style: none; padding: 0; margin: 0; }
.brands li { border: 1px solid #DCDCDC; border-radius: 12px; height: 88px; padding: 0 16px; display: flex; align-items: center; justify-content: center; background: #fff; }
.brands img { width: auto; height: auto; max-width: 100%; }
.lenses { margin: 0; display: grid; gap: 14px; }
.lenses dt { font-weight: 600; }
.lenses dd { margin: 0; font-size: 15px; color: var(--ink-muted); }
.glasses-photo { flex: 1 1 380px; min-width: 0; min-height: 420px; border-radius: 20px; overflow: hidden; position: relative; }
.glasses-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* Testimonials */
.testimonials .wrap { padding-top: 96px; padding-bottom: 96px; }
.testimonials h2 { margin-bottom: 40px; }
.quote-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.quote { margin: 0; border: 1px solid var(--line); border-radius: 20px; padding: 32px; display: flex; flex-direction: column; gap: 20px; }
.quote blockquote { margin: 0; font-size: 18px; color: var(--ink-muted); font-style: italic; }
.quote figcaption { font-weight: 600; }

.reviews { margin-top: 32px; background: var(--tint); border-radius: 24px; padding: 32px; }
.reviews-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; margin-bottom: 24px; }
.rating { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.rating .score { font-family: var(--display); font-weight: 700; font-size: 40px; line-height: 1; }
.rating .count { font-size: 15px; color: var(--ink-soft); }
.reviews-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.round-btn { width: 48px; height: 48px; border-radius: 999px; border: 1.5px solid var(--ink); background: #fff; color: var(--ink); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.round-btn:hover { background: var(--ink); color: #fff; }
.reviews .btn { padding: 13px 22px; font-size: 16px; }
.review-track { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; padding: 0 0 8px; list-style: none; margin: 0; -webkit-overflow-scrolling: touch; }
.review-card { margin: 0; flex: 0 0 min(340px, 85%); scroll-snap-align: start; background: #fff; border-radius: 16px; padding: 24px; display: flex; flex-direction: column; gap: 14px; }
.review-card blockquote { margin: 0; font-size: 16px; color: #3A3637; }
.review-card figcaption { margin-top: auto; font-size: 14px; font-weight: 600; color: var(--ink-muted); }

/* Contact */
.contact .wrap { padding-top: 96px; padding-bottom: 96px; display: flex; flex-wrap: wrap; gap: 56px; }
.contact-intro { flex: 1 1 340px; min-width: 0; }
.contact-intro h2 { margin: 12px 0 18px; }
.contact-intro > p { color: var(--ink-soft); margin-bottom: 32px; }
.detail-list { display: grid; gap: 22px; }
.detail-label { font-size: 14px; font-weight: 600; color: var(--ink-muted); text-transform: uppercase; letter-spacing: 0.06em; }
.detail-value { font-size: 18px; }
.detail-value a { font-weight: 600; overflow-wrap: anywhere; }
.detail-value.big a { font-family: var(--display); font-size: 22px; color: var(--ink); text-decoration: none; }
.hours { display: grid; grid-template-columns: auto auto; justify-content: start; gap: 2px 24px; }
.contact-card { flex: 1.3 1 420px; min-width: 0; background: var(--tint); border-radius: 24px; padding: 40px; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 18px; }
.contact-card h3 { font-weight: 600; font-size: 26px; }
.contact-card p { color: var(--ink-soft); max-width: 30em; }
.contact-card .btn-row { margin-top: 6px; }

/* Footer */
.site-footer { background: var(--ink); color: #D9D9D9; font-size: 15px; }
.site-footer .cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px 32px; padding-top: 56px; padding-bottom: 32px; }
.site-footer a { color: #fff; overflow-wrap: anywhere; }
.footer-name { font-family: var(--display); font-weight: 700; font-size: 22px; color: #fff; }
.footer-name span { color: var(--blue-light); }
.footer-base { border-top: 1px solid #3A3637; padding-top: 20px; padding-bottom: 32px; font-size: 14px; color: #B5B3B4; }

/* Simple text pages */
.page .wrap { max-width: 820px; padding-top: 64px; padding-bottom: 96px; }
.page h1 { font-size: clamp(30px, 4vw, 44px); margin-bottom: 24px; }
.page h2 { font-size: 24px; margin: 36px 0 12px; }
.page p, .page li { color: var(--ink-soft); }
.page p + p { margin-top: 14px; }

/* ---------- Phones ---------- */
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { padding-left: 20px; padding-right: 20px; }

  .topbar { font-size: 13px; }

  .site-header .wrap { gap: 12px; padding-top: 12px; padding-bottom: 12px; }
  .site-header .logo img { height: 60px; }
  .main-nav { width: 100%; gap: 2px 20px; font-size: 16px; }
  .main-nav a.btn { width: 100%; margin-top: 6px; }

  .hero .wrap { gap: 32px; padding-top: 40px; padding-bottom: 48px; }
  .hero .lead { font-size: 17px; }
  .hero .eyebrow { margin-bottom: 24px; font-size: 14px; }
  .btn-row { flex-direction: column; align-items: stretch; }
  .btn-row .btn { width: 100%; }
  .hero-media video { height: auto; width: min(100%, 300px); max-height: none; }

  .highlights .wrap { grid-template-columns: 1fr; gap: 16px; }

  .eye-tests .split { gap: 32px; padding-top: 56px; padding-bottom: 40px; }
  .photo-pair { gap: 12px; }
  .photo-pair img { height: 240px; }
  .photo-pair img + img { margin-top: 28px; }
  .services { padding-bottom: 56px; }
  .service-card { padding: 22px; }

  .glasses .wrap, .testimonials .wrap { padding-top: 56px; padding-bottom: 56px; }
  .glasses .intro { margin-bottom: 32px; }
  .panel { padding: 24px; }
  .panel h3 { font-size: 22px; }
  .brands li { height: 72px; padding: 0 12px; }
  .glasses-photo { min-height: 360px; }

  .testimonials h2 { margin-bottom: 28px; }
  .quote { padding: 24px; }
  .quote blockquote { font-size: 17px; }
  .reviews { padding: 22px; margin-left: -4px; margin-right: -4px; }
  .reviews-controls .btn { width: 100%; }

  .contact .wrap { gap: 32px; padding-top: 56px; padding-bottom: 56px; }
  .contact-card { padding: 24px; }
  .contact-card h3 { font-size: 22px; }
  .contact-card .btn-row { width: 100%; }

  .site-footer .cols { padding-top: 40px; }
}

/* News */
.news { background: var(--tint); }
.news .wrap { padding-top: 80px; padding-bottom: 80px; }
.news-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 24px; margin-bottom: 28px; }
.news-head h2 { margin-top: 12px; }
.news-track { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; padding: 0 0 8px; list-style: none; margin: 0; -webkit-overflow-scrolling: touch; }
.news-card { flex: 0 0 min(360px, 85%); scroll-snap-align: start; }
.news-link { display: flex; flex-direction: column; gap: 10px; height: 100%; background: #fff; border-radius: 16px; padding: 26px; color: var(--ink); text-decoration: none; border: 1px solid transparent; transition: border-color .15s; }
.news-link:hover { border-color: var(--blue); color: var(--ink); }
.news-date { font-size: 14px; font-weight: 600; color: var(--blue); text-transform: uppercase; letter-spacing: 0.06em; }
.news-link h3 { font-weight: 600; font-size: 22px; line-height: 1.25; }
.news-link p { font-size: 16px; color: var(--ink-soft); }
.news-more { margin-top: auto; padding-top: 6px; font-family: var(--display); font-weight: 600; color: var(--blue); }

/* News article page */
.article .wrap { max-width: 760px; padding-top: 56px; padding-bottom: 88px; }
.article .back { display: inline-block; font-family: var(--display); font-weight: 600; margin-bottom: 28px; }
.article .news-date { display: block; margin-bottom: 10px; }
.article h1 { font-size: clamp(30px, 4.4vw, 46px); line-height: 1.1; margin-bottom: 24px; }
.article-figure { margin: 8px 0 32px; }
.article .article-image { width: min(100%, 480px); height: auto; border-radius: 18px; }
.article-figure figcaption { margin-top: 10px; font-size: 15px; color: var(--ink-muted); }
.article ul { padding-left: 22px; margin: 16px 0 0; display: grid; gap: 10px; }
.article p, .article li { font-size: 18px; color: var(--ink-soft); }
.article p + p { margin-top: 16px; }
.article h2 { font-size: 26px; margin: 36px 0 12px; }
.article .cta { margin-top: 40px; padding: 28px; background: var(--tint); border-radius: 20px; display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.article .cta h2 { margin: 0; font-size: 22px; }

@media (max-width: 640px) {
  .news .wrap { padding-top: 56px; padding-bottom: 56px; }
  .news-link { padding: 22px; }
  .article .wrap { padding-top: 36px; padding-bottom: 56px; }
  .article p, .article li { font-size: 17px; }
  .article .cta { padding: 22px; }
}
