/* ==========================================================================
   Zahraa Vision — main stylesheet
   Palette: black, white, navy, gold. Text is always black on white or
   white on navy/black for maximum contrast; gold is used for accents only.
   ========================================================================== */

:root {
  --navy: #0b1f3a;
  --navy-deep: #07152a;
  --black: #000000;
  --white: #ffffff;
  --gold: #c48a1c;
  --gold-light: #e9b44c;
  --gold-dark: #a8731a;
  /* Metallic gold: deep amber edges with a warm highlight through the middle */
  --gold-shine: linear-gradient(110deg, #a8731a 0%, #c48a1c 24%, #f0c977 47%, #c48a1c 64%, #a8731a 82%, #bf8524 100%);

  --font: "DM Sans", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --container: 1200px;
  --radius: 12px;
  --shadow: 0 10px 30px rgba(11, 31, 58, 0.12);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--black);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

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

h1,
h2,
h3 {
  line-height: 1.2;
  margin: 0 0 0.75em;
  font-weight: 700;
}

p {
  margin: 0 0 1.25em;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 100;
  padding: 12px 20px;
  background: var(--black);
  color: var(--white);
  font-weight: 700;
}

.skip-link:focus {
  top: 16px;
}

/* Buttons & links
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border: 2px solid transparent;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}

.btn--lg {
  padding: 18px 34px;
  font-size: 1.0625rem;
}

.btn--gold {
  background: var(--gold-shine);
  background-size: 220% 100%;
  background-position: 0% 0;
  background-origin: border-box;
  border-color: transparent;
  color: var(--black);
  box-shadow: 0 6px 18px rgba(196, 138, 28, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.45);
  transition: background-position 0.5s ease, box-shadow 0.2s;
}

.btn--gold:hover {
  background-position: 100% 0;
  box-shadow: 0 8px 24px rgba(196, 138, 28, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

/* Glint of light that sweeps across gold buttons every few seconds */
.btn--gold {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.btn--gold::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  z-index: -1;
  width: 45%;
  height: 100%;
  background: linear-gradient(100deg, transparent 0%, rgba(255, 255, 255, 0.15) 30%, rgba(255, 255, 255, 0.75) 50%, rgba(255, 255, 255, 0.15) 70%, transparent 100%);
  transform: translateX(-150%) skewX(-20deg);
  animation: gold-glint 4s ease-in-out infinite;
  pointer-events: none;
}

.btn--gold:hover::after {
  animation: gold-glint-once 0.8s ease-out;
}

@keyframes nav-item-in {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes gold-glint {
  0% {
    transform: translateX(-150%) skewX(-20deg);
  }
  30%,
  100% {
    transform: translateX(330%) skewX(-20deg);
  }
}

@keyframes gold-glint-once {
  from {
    transform: translateX(-150%) skewX(-20deg);
  }
  to {
    transform: translateX(330%) skewX(-20deg);
  }
}

/* Slow shimmer travelling along gold bars and strips */
.gold-sheen,
.section-title::after,
.footer-heading::after,
.page-hero--lg h1::after,
.page-hero--lg::after,
.cta__panel::before {
  /* Solid gold at both ends so the loop is seamless; the highlight travels through the middle */
  background: linear-gradient(90deg, var(--gold) 0%, var(--gold) 36%, #f7dd9f 50%, var(--gold) 64%, var(--gold) 100%);
  background-size: 300% 100%;
  animation: gold-sheen 3.5s linear infinite;
}

@keyframes gold-sheen {
  from {
    background-position: 100% 0;
  }
  to {
    background-position: 0% 0;
  }
}

.btn--outline-light {
  border-color: var(--gold);
  color: var(--white);
}

.btn--outline-light:hover {
  background: var(--gold);
  color: var(--black);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: var(--navy);
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}

.text-link::after {
  content: "→";
  transition: transform 0.2s;
}

.text-link:hover::after {
  transform: translateX(4px);
}

/* Top bar
   ========================================================================== */

.topbar {
  background: var(--navy-deep);
  color: var(--white);
  font-size: 0.9rem;
}

.topbar__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 4px 24px;
  padding-top: 10px;
  padding-bottom: 10px;
}

.topbar__links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 24px;
}

.topbar__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  text-decoration: none;
}

a.topbar__item:hover {
  text-decoration: underline;
}

.topbar svg {
  width: 16px;
  height: 16px;
  fill: var(--gold);
  flex-shrink: 0;
}

/* Header & navigation
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--white);
  border-bottom: 3px solid var(--gold);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 84px;
}

.logo {
  display: inline-flex;
  flex-shrink: 0;
}

.logo img {
  width: auto;
  height: 64px;
}

.logo--footer img {
  height: 96px;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-list > li > a {
  display: block;
  padding: 10px 14px;
  font-weight: 500;
  text-decoration: none;
  color: var(--black);
  border-bottom: 2px solid transparent;
}

.nav-list > li > a:hover,
.nav-list > li > a[aria-current="page"] {
  border-bottom-color: var(--gold);
}

.has-dropdown {
  position: relative;
  display: flex;
  align-items: center;
}

.has-dropdown > a {
  padding-right: 4px !important;
}

.dropdown-toggle {
  display: inline-flex;
  padding: 6px;
  background: none;
  border: 0;
  cursor: pointer;
  color: var(--black);
}

.dropdown-toggle svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
  transition: transform 0.2s;
}

.dropdown-toggle[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

/* Centred under the Services link rather than hanging off to the right */
.dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  min-width: 320px;
  margin: 0;
  padding: 10px 0;
  list-style: none;
  background: var(--white);
  border-top: 3px solid var(--gold);
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 8px);
  transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
}

.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown,
.has-dropdown.is-open .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

.dropdown a {
  display: block;
  padding: 10px 22px;
  text-decoration: none;
  color: var(--black);
}

.dropdown a:hover {
  background: var(--navy);
  color: var(--white);
}

/* Service icons: gold line icon in a navy circle, inverting on hover */
/* Extra width so the icons don't push the longer names onto three lines */
.dropdown:has(.dropdown__icon) {
  min-width: 390px;
}

.dropdown a:has(.dropdown__icon) {
  display: flex;
  align-items: center;
  gap: 14px;
  line-height: 1.35;
}

.dropdown__icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--gold-light);
  transition: background-color 0.2s, color 0.2s;
}

.dropdown__icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.dropdown a:hover .dropdown__icon,
.dropdown a:focus-visible .dropdown__icon,
.dropdown a[aria-current="page"] .dropdown__icon {
  background: var(--gold);
  color: var(--black);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 48px;
  height: 48px;
  padding: 12px;
  background: var(--navy);
  border: 0;
  border-radius: 8px;
  cursor: pointer;
}

.nav-toggle__bar {
  display: block;
  height: 2px;
  background: var(--white);
  transition: transform 0.2s, opacity 0.2s;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Hero
   ========================================================================== */

.hero {
  position: relative;
  overflow: hidden;
  background: var(--navy);
  color: var(--white);
}

/* Concentric "lens" rings on the left that ripple slowly outward */
@property --ring-offset {
  syntax: "<length>";
  inherits: false;
  initial-value: 0px;
}

.hero::before {
  content: "";
  position: absolute;
  left: -260px;
  top: 50%;
  width: 760px;
  height: 760px;
  transform: translateY(-50%);
  border-radius: 50%;
  background: repeating-radial-gradient(
    circle,
    transparent calc(var(--ring-offset)) calc(var(--ring-offset) + 46px),
    rgba(196, 138, 28, 0.07) calc(var(--ring-offset) + 46px) calc(var(--ring-offset) + 48px)
  );
  -webkit-mask-image: radial-gradient(circle, #000 35%, transparent 70%);
  mask-image: radial-gradient(circle, #000 35%, transparent 70%);
  animation: ring-ripple 6s linear infinite;
  pointer-events: none;
}

@keyframes ring-ripple {
  to {
    --ring-offset: 48px;
  }
}

/* Photo on the right, fading in from the navy background */
.hero__media {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 50%;
  /* Clip the zoomed photo (hero-settle scales it to 112%) so no unfaded strip leaks out on the left */
  overflow: hidden;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Show more of the frame rack on the left so the people sit further right, away from the text */
  object-position: 80% center;
}

.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    var(--navy) 0%,
    rgba(11, 31, 58, 0.6) 10%,
    rgba(11, 31, 58, 0.15) 25%,
    rgba(11, 31, 58, 0) 40%
  );
}

.hero__inner {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 600px;
  padding-top: 96px;
  padding-bottom: 96px;
}

.hero__content {
  max-width: 540px;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 20px;
  padding-left: 14px;
  border-left: 4px solid var(--gold);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero h1 {
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  letter-spacing: -0.02em;
}

.hero__blurb {
  max-width: 580px;
  margin-bottom: 36px;
  font-size: 1.1875rem;
}

/* Frames marquee
   ========================================================================== */

.frames {
  overflow: hidden;
  padding: 28px 0;
  --frames-bg: #e2e3e5;
  position: relative;
  background: var(--frames-bg);
}

/* Fade the frames in and out at the edges, over the solid band colour */
.frames::before,
.frames::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 1;
  width: 8%;
  pointer-events: none;
}

.frames::before {
  left: 0;
  background: linear-gradient(90deg, var(--frames-bg), transparent);
}

.frames::after {
  right: 0;
  background: linear-gradient(-90deg, var(--frames-bg), transparent);
}

.frames__track {
  display: flex;
  gap: 72px;
  width: max-content;
  margin: 0;
  padding: 0 36px;
  list-style: none;
}

/* Only animate once the script has duplicated the set for a seamless loop */
.frames.is-looping .frames__track {
  animation: frames-scroll 45s linear infinite;
}

.frames:hover .frames__track {
  animation-play-state: paused;
}

@keyframes frames-scroll {
  to {
    transform: translateX(-50%);
  }
}

.frames__defs {
  position: absolute;
}

/* Solid front-view frames: thick black rims, shaded grey lenses with a glint */
.frames__item svg {
  display: block;
  width: 130px;
  height: 52px;
  fill: none;
  stroke: var(--black);
  stroke-linecap: round;
  stroke-linejoin: round;
  overflow: visible;
  transition: transform 0.3s;
}

.frames__item:hover svg {
  transform: scale(1.12);
}

.frames__item .lens {
  fill: url(#lens-grey);
  stroke-width: 4.5;
}

.frames__item .rim {
  stroke-width: 7;
}

.frames__item .bridge {
  stroke-width: 4.5;
}

.frames__item .stub {
  stroke-width: 4;
}

.frames__item .glint {
  stroke: var(--white);
  stroke-opacity: 0.6;
  stroke-width: 2.5;
}

/* Sections
   ========================================================================== */

.section {
  padding: 96px 0;
}

.section--navy {
  background: var(--navy);
  color: var(--white);
}

/* Intro section: lens rings behind the eye diagram and a dot grid top-right */
.section--intro {
  position: relative;
  overflow: hidden;
}

.section--intro > .container {
  position: relative;
}

.section--intro::before,
.section--intro::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.section--intro::before {
  top: 50%;
  left: max(-180px, calc(50% - 900px));
  width: 820px;
  height: 820px;
  transform: translateY(-50%);
  border-radius: 50%;
  background: repeating-radial-gradient(circle, transparent 0 38px, rgba(196, 138, 28, 0.28) 38px 40px);
  -webkit-mask-image: radial-gradient(circle, #000 30%, transparent 70%);
  mask-image: radial-gradient(circle, #000 30%, transparent 70%);
}

.section--intro::after {
  top: 20px;
  right: 20px;
  width: 160px;
  height: 120px;
  background-image: radial-gradient(rgba(11, 31, 58, 0.2) 2px, transparent 2.5px);
  background-size: 20px 20px;
  -webkit-mask-image: linear-gradient(225deg, #000 30%, transparent 85%);
  mask-image: linear-gradient(225deg, #000 30%, transparent 85%);
}

@media (max-width: 860px) {
  .section--intro::before {
    top: 0;
    left: 50%;
    width: 640px;
    height: 640px;
    transform: translate(-50%, -12%);
  }
}

.section-title {
  position: relative;
  padding-bottom: 18px;
  font-size: clamp(1.75rem, 3.2vw, 2.5rem);
  letter-spacing: -0.015em;
}

.section-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 64px;
  height: 4px;
  border-radius: 2px;
}

.section-title--center {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 56px;
  text-align: center;
}

.section-title--center::after {
  left: 50%;
  transform: translateX(-50%);
}

/* Heading followed by the glasses divider image instead of the gold bar */
.section-title--plain {
  margin-bottom: 24px;
  padding-bottom: 0;
}

.section-title--plain::after {
  display: none;
}

/* Glasses flanked by gold lines that fade out at the ends */
.section-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  max-width: 340px;
  margin: 0 auto 80px;
}

.section-divider::before,
.section-divider::after {
  content: "";
  flex: 1;
  height: 2px;
  border-radius: 2px;
}

.section-divider::before {
  background: linear-gradient(90deg, rgba(196, 138, 28, 0), var(--gold));
}

.section-divider::after {
  background: linear-gradient(90deg, var(--gold), rgba(196, 138, 28, 0));
}

.section-divider img {
  width: 64px;
  flex-shrink: 0;
  transition: transform 0.4s;
}

.section-divider:hover img {
  transform: rotate(-6deg);
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 64px;
}

.split--reverse .split__media {
  order: 2;
}

.split__media img {
  width: 100%;
}

.split__media--framed {
  padding: 32px;
  background: var(--white);
  border: 3px solid var(--gold);
  border-radius: var(--radius);
}

/* Portrait photo with a gold outline offset behind it */
.split__media--photo {
  position: relative;
  max-width: 500px;
  margin: 0 auto;
  padding: 0 20px 20px 0;
}

.split__media--photo::before {
  content: "";
  position: absolute;
  top: 20px;
  left: 20px;
  right: 0;
  bottom: 0;
  border: 2px solid var(--gold);
  border-radius: var(--radius);
}

.split__media--photo img {
  position: relative;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  /* Anchor to the top so every face stays in frame; only the feet are trimmed */
  object-position: 50% 0%;
  border-radius: var(--radius);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.35);
}

.section--navy .text-link {
  color: var(--white);
}

/* Pale blue band (navy-tinted, so black text keeps full contrast) */
.section--blue {
  background: #e8f0fa;
}

/* Services
   ========================================================================== */

.section--light {
  position: relative;
  overflow: hidden;
  background: #f3f4f6;
}

.section--light > .container {
  position: relative;
}

/* Corner decoration: faint dot grid with gold lens rings behind it.
   The bottom-right copy is the top-left one rotated 180°. */
.section-deco {
  position: absolute;
  width: 340px;
  height: 340px;
  pointer-events: none;
}

.section-deco--tl {
  top: 0;
  left: 0;
}

.section-deco--br {
  right: 0;
  bottom: 0;
  transform: rotate(180deg);
}

.section-deco::before,
.section-deco::after {
  content: "";
  position: absolute;
}

.section-deco::before {
  top: 40px;
  left: 40px;
  width: 220px;
  height: 180px;
  background-image: radial-gradient(rgba(11, 31, 58, 0.22) 2px, transparent 2.5px);
  background-size: 20px 20px;
  -webkit-mask-image: linear-gradient(135deg, #000 30%, transparent 85%);
  mask-image: linear-gradient(135deg, #000 30%, transparent 85%);
}

.section-deco::after {
  top: -150px;
  left: -150px;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  border: 2px solid rgba(196, 138, 28, 0.45);
  outline: 2px solid rgba(196, 138, 28, 0.25);
  outline-offset: 26px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  column-gap: 32px;
  row-gap: 104px;
  /* Leave room for the images that overlap the top of each card */
  padding-top: 72px;
}

.service-card {
  grid-column: span 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 32px;
  text-align: center;
  background: var(--white);
  border-radius: 8px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.14);
  transition: transform 0.2s, box-shadow 0.2s;
}

/* Centre the last two cards on the second row */
.service-card:nth-child(4) {
  grid-column: 2 / span 2;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
}

/* Framed image that sits half above the card */
.service-card__media {
  width: 100%;
  max-width: 240px;
  margin: -72px 0 28px;
  padding: 5px;
  background: var(--white);
  border: 1px dashed var(--navy);
}

.service-card__media img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  filter: brightness(0.75);
  transition: filter 0.3s;
}

.service-card:hover .service-card__media img {
  filter: brightness(0.9);
}

.service-card h3 {
  font-size: 1.5rem;
  color: var(--navy);
}

/* Description: justified, and wraps around the arrow tab in the bottom-right corner */
.service-card__text {
  flex-grow: 1;
  align-self: stretch;
  margin: 0;
  padding-bottom: 24px;
  text-align: justify;
  hyphens: auto;
}

/* Invisible spacer that pushes the floated tab down to the bottom of the card */
.service-card__text::before {
  content: "";
  float: right;
  width: 0;
  height: calc(100% - 32px);
}

/* Registered so the tab colour (and its curved edges) can transition together */
@property --tab-bg {
  syntax: "<color>";
  inherits: true;
  initial-value: #0b1f3a;
}

.service-card__link {
  --tab-bg: var(--navy);
  --flare: 14px;
  position: relative;
  float: right;
  clear: right;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  /* Sit flush against the card's right edge; the left margin keeps text off the tab */
  margin: 0 -32px 0 12px;
  border-radius: 28px 0 8px 0;
  background: var(--tab-bg);
  color: var(--gold-light);
  font-size: 1.25rem;
  font-weight: 700;
  text-decoration: none;
  transition: --tab-bg 0.2s, color 0.2s;
}

/* Inward curves where the tab meets the card's right and bottom edges */
.service-card__link::before,
.service-card__link::after {
  content: "";
  position: absolute;
  width: var(--flare);
  height: var(--flare);
  background: radial-gradient(circle at 0 0, transparent calc(var(--flare) - 0.5px), var(--tab-bg) var(--flare));
  pointer-events: none;
}

/* Each curve overlaps the tab by 1px so no seam shows between them */
.service-card__link::before {
  right: 0;
  bottom: calc(100% - 1px);
  height: calc(var(--flare) + 1px);
}

.service-card__link::after {
  right: calc(100% - 1px);
  bottom: 0;
  width: calc(var(--flare) + 1px);
}

.service-card__arrow {
  transition: transform 0.2s;
}

.service-card__link:hover,
.service-card__link:focus-visible {
  --tab-bg: var(--gold);
  color: var(--black);
}

.service-card__link:hover .service-card__arrow,
.service-card__link:focus-visible .service-card__arrow {
  transform: translateX(3px);
}

/* Reviews
   ========================================================================== */

.reviews__header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 40px;
}

.reviews__rating {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
}

.reviews__score {
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1;
}

.reviews__source {
  font-weight: 500;
}

.stars {
  display: flex;
  gap: 2px;
}

.stars svg {
  width: 18px;
  height: 18px;
  fill: var(--gold);
}

.stars--lg svg {
  width: 24px;
  height: 24px;
  fill: var(--gold-light);
}

.reviews__controls {
  display: flex;
  gap: 12px;
}

.reviews__arrow {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  padding: 0;
  background: transparent;
  border: 2px solid var(--gold);
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.2s, opacity 0.2s;
}

.reviews__arrow svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: var(--white);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.reviews__arrow:hover:not(:disabled) {
  background: var(--gold);
}

.reviews__arrow:hover:not(:disabled) svg {
  stroke: var(--black);
}

.reviews__arrow:disabled {
  opacity: 0.35;
  cursor: default;
}

.reviews__track {
  display: flex;
  align-items: stretch;
  gap: 24px;
  margin: 0;
  padding: 4px 0 12px;
  list-style: none;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
}

.reviews__track::-webkit-scrollbar {
  display: none;
}

.review-card {
  position: relative;
  flex: 0 0 calc((100% - 48px) / 3);
  display: flex;
  flex-direction: column;
  padding: 28px 28px 32px;
  background: var(--white);
  color: var(--black);
  border-top: 4px solid var(--gold);
  border-radius: 8px;
  scroll-snap-align: start;
}

/* Large faint quotation mark in the corner */
.review-card::after {
  content: "\201D";
  position: absolute;
  right: 22px;
  bottom: -24px;
  font-size: 7rem;
  font-weight: 700;
  line-height: 1;
  color: rgba(11, 31, 58, 0.08);
  pointer-events: none;
}

.review-card__head {
  display: flex;
  align-items: center;
  gap: 14px;
}

.review-card__head p {
  margin: 0;
  line-height: 1.35;
}

.review-card__avatar {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--gold-light);
  font-size: 1.125rem;
  font-weight: 700;
}

.review-card__name {
  font-weight: 700;
  text-transform: capitalize;
}

.review-card__date {
  font-size: 0.875rem;
}

.review-card__google {
  width: 22px;
  height: 22px;
  margin-left: auto;
  flex-shrink: 0;
}

.review-card .stars {
  margin: 18px 0 14px;
}

.review-card__text {
  font-size: 0.975rem;
  line-height: 1.65;
}

.review-card__text p {
  margin: 0 0 0.8em;
}

.review-card__text p:last-child {
  margin-bottom: 0;
}

/* Long reviews are cut to six lines until "Read more" is pressed */
.review-card__body.is-clamped .review-card__text {
  max-height: calc(1.65em * 6);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(#000 55%, transparent);
  mask-image: linear-gradient(#000 55%, transparent);
}

.review-card__more {
  margin-top: 6px;
  padding: 8px 0;
  background: none;
  border: 0;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--navy);
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
  cursor: pointer;
}

.reviews__cta {
  margin-top: 40px;
  text-align: center;
}

/* The CTA band below continues the navy, so trim the reviews' bottom padding */
.reviews {
  padding-bottom: 32px;
}

/* Call to action
   ========================================================================== */

/* Navy top half, black bottom half, so the gold panel bridges reviews and footer */
.cta {
  background: linear-gradient(var(--navy) 50%, var(--black) 50%);
  padding: 32px 0;
}

.cta__panel {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  align-items: center;
  gap: 48px;
  padding: 64px;
  background: var(--white);
  color: var(--black);
  border-radius: 20px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35);
}

/* Metallic gold strip along the top edge */
.cta__panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
}

/* Faint rippling lens rings on the right (reuses the hero's ring-ripple animation) */
.cta__rings {
  position: absolute;
  top: 50%;
  right: -220px;
  width: 640px;
  height: 640px;
  transform: translateY(-50%);
  border-radius: 50%;
  background: repeating-radial-gradient(
    circle,
    transparent calc(var(--ring-offset)) calc(var(--ring-offset) + 38px),
    rgba(196, 138, 28, 0.3) calc(var(--ring-offset) + 38px) calc(var(--ring-offset) + 40px)
  );
  -webkit-mask-image: radial-gradient(circle, #000 30%, transparent 70%);
  mask-image: radial-gradient(circle, #000 30%, transparent 70%);
  animation: ring-ripple 6s linear infinite;
  pointer-events: none;
}

.cta__content,
.cta__actions {
  position: relative;
}

.cta__ornament {
  width: 64px;
  margin-bottom: 18px;
}

.cta h2 {
  margin-bottom: 16px;
  font-size: clamp(1.75rem, 3.4vw, 2.625rem);
  letter-spacing: -0.02em;
}

.cta p {
  max-width: 520px;
  margin: 0;
  font-size: 1.125rem;
}

.cta__actions {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.cta__actions svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  flex-shrink: 0;
}

.btn--dark {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
}

.btn--outline-dark {
  background: var(--white);
  border-color: var(--navy);
  color: var(--navy);
}

.btn--dark:hover,
.btn--outline-dark:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--black);
}

@media (max-width: 860px) {
  .cta__panel {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 48px 32px;
  }
}

@media (max-width: 640px) {
  .cta__panel {
    padding: 40px 22px;
    border-radius: 16px;
  }
}

/* Footer
   ========================================================================== */

.site-footer {
  background: var(--black);
  color: var(--white);
  font-size: 0.975rem;
}

.footer-grid {
  display: grid;
  /* minmax(0, …) keeps the set proportions even when a long email address is unbreakable */
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) minmax(0, 1.15fr) minmax(0, 1.25fr);
  gap: 56px 48px;
  padding-top: 96px;
  padding-bottom: 72px;
}

.footer-col--brand .logo {
  margin-bottom: 24px;
}

.footer-col--brand p {
  margin-bottom: 32px;
  line-height: 1.8;
}

.footer-heading {
  position: relative;
  margin-bottom: 28px;
  padding-bottom: 14px;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--white);
  /* Faint full-width rule under each heading */
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

/* Short gold segment sitting on top of the rule */
.footer-heading::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 40px;
  height: 3px;
  border-radius: 2px;
}

.footer-col a {
  text-decoration: none;
}

.footer-col a:hover {
  text-decoration: underline;
}

.contact-list {
  margin: 0;
}

.contact-list dt {
  font-weight: 700;
}

.contact-list dt {
  margin-bottom: 2px;
}

.contact-list dd {
  margin: 0 0 20px;
  overflow-wrap: anywhere;
}

/* Footer contact icons: gold glyph before each label, values aligned under the label */
.contact-list dt:has(.contact-list__icon) {
  display: flex;
  align-items: center;
  gap: 8px;
}

.contact-list__icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border: 1.5px solid var(--gold);
  border-radius: 50%;
}

.contact-list__icon svg {
  width: 14px;
  height: 14px;
  fill: var(--gold-light);
}

.contact-list dt:has(.contact-list__icon) + dd {
  padding-left: 34px;
}

.hours {
  width: 100%;
  border-collapse: collapse;
}

.hours th,
.hours td {
  padding: 9px 0;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.hours th {
  padding-right: 16px;
  font-weight: 700;
  white-space: nowrap;
}

.hours tr.is-today th,
.hours tr.is-today td {
  color: var(--gold-light);
}

.social-list {
  display: flex;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.social-list a {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 2px solid var(--gold);
  border-radius: 50%;
  transition: background-color 0.2s;
}

.social-list a:hover {
  background: var(--gold);
}

.social-list svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: var(--white);
  stroke-width: 2;
  stroke-linejoin: round;
}

.social-list svg .fill {
  fill: var(--white);
  stroke: none;
}

.social-list a:hover svg {
  stroke: var(--black);
}

.social-list a:hover svg .fill {
  fill: var(--black);
}

.footer-links {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-links li {
  margin-bottom: 18px;
  /* Hanging indent so wrapped lines align with the text, not the chevron */
  padding-left: 16px;
  text-indent: -16px;
}

.footer-links a::before {
  content: "›";
  margin-right: 8px;
  color: var(--gold-light);
  font-weight: 700;
}

/* Light glasses divider between the footer columns and the credits */
.section-divider--light {
  margin: 0 auto 48px;
}

.section-divider--light img {
  width: 72px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 0.9rem;
}

.footer-bottom__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
  padding-top: 28px;
  padding-bottom: 28px;
}

.footer-bottom p {
  margin: 0;
}

.legal-links {
  display: flex;
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.legal-links a {
  text-decoration: none;
}

.legal-links a:hover {
  text-decoration: underline;
}

/* Inner pages: page hero
   ========================================================================== */

/* Services parent link stays underlined while on one of its service pages */
.nav-list > li > a.is-active {
  border-bottom-color: var(--gold);
}

.dropdown a[aria-current="page"] {
  font-weight: 700;
  box-shadow: inset 4px 0 0 var(--gold);
}

.page-hero {
  position: relative;
  overflow: hidden;
  background: var(--navy);
  color: var(--white);
}

/* Same rippling lens rings as the home hero */
.page-hero::before {
  content: "";
  position: absolute;
  left: -300px;
  top: 50%;
  width: 640px;
  height: 640px;
  transform: translateY(-50%);
  border-radius: 50%;
  background: repeating-radial-gradient(
    circle,
    transparent calc(var(--ring-offset)) calc(var(--ring-offset) + 46px),
    rgba(196, 138, 28, 0.1) calc(var(--ring-offset) + 46px) calc(var(--ring-offset) + 48px)
  );
  -webkit-mask-image: radial-gradient(circle, #000 35%, transparent 70%);
  mask-image: radial-gradient(circle, #000 35%, transparent 70%);
  animation: ring-ripple 6s linear infinite;
  pointer-events: none;
}

.page-hero__media {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 50%;
  overflow: hidden;
}

.page-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--navy) 0%, rgba(11, 31, 58, 0.7) 35%, rgba(11, 31, 58, 0.15) 75%, rgba(11, 31, 58, 0) 100%);
}

.page-hero__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 340px;
  padding-top: 64px;
  padding-bottom: 64px;
}

/* Service pages: full-width photo under a dark wash, with the title and lead on the left */
.page-hero--lg {
  background: var(--black);
}

.page-hero--lg::before {
  display: none;
}

.page-hero--lg .page-hero__media {
  width: 100%;
}

.page-hero--lg .page-hero__media::after {
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.88) 0%, rgba(0, 0, 0, 0.7) 40%, rgba(0, 0, 0, 0.25) 75%, rgba(0, 0, 0, 0.1) 100%);
}

.page-hero--lg .page-hero__inner {
  min-height: 560px;
  padding-top: 96px;
  padding-bottom: 96px;
}

.page-hero--lg h1 {
  max-width: 680px;
  font-size: clamp(2.25rem, 5vw, 3.75rem);
}

/* Longer bar with the travelling gold sheen (restated here because the base
   .page-hero h1::after rule sets a flat gold background after the sheen rule) */
.page-hero.page-hero--lg h1::after {
  width: 120px;
  height: 5px;
  margin-top: 26px;
  background: linear-gradient(90deg, var(--gold) 0%, var(--gold) 36%, #f7dd9f 50%, var(--gold) 64%, var(--gold) 100%);
  background-size: 300% 100%;
}

.page-hero--lg::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 5px;
}

.page-hero__lead {
  max-width: 600px;
  margin: 28px 0 0;
  font-size: 1.1875rem;
  line-height: 1.65;
}

.page-hero h1 {
  max-width: 620px;
  margin: 0;
  font-size: clamp(2rem, 4.2vw, 3.125rem);
  letter-spacing: -0.02em;
}

/* Short gold bar under the page title */
.page-hero h1::after {
  content: "";
  display: block;
  width: 64px;
  height: 4px;
  margin-top: 22px;
  border-radius: 2px;
  background: var(--gold);
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
  font-size: 0.9375rem;
  font-weight: 500;
}

.breadcrumb li + li::before {
  content: "/";
  margin-right: 10px;
  color: var(--gold-light);
}

.breadcrumb a {
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

/* Inner pages: article text
   ========================================================================== */

.prose {
  max-width: 760px;
}

.prose .lead {
  margin-bottom: 40px;
  padding-left: 22px;
  border-left: 4px solid var(--gold);
  font-size: 1.1875rem;
  font-weight: 500;
}

.prose h2 {
  margin-top: 48px;
  margin-bottom: 18px;
  font-size: clamp(1.375rem, 2.4vw, 1.75rem);
  color: var(--navy);
  letter-spacing: -0.01em;
}

.prose > h2:first-child {
  margin-top: 0;
}

.prose a:not(.btn) {
  font-weight: 700;
  color: var(--navy);
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.prose a:not(.btn):hover {
  text-decoration-thickness: 3px;
}

/* Gold tick bullets */
.prose ul,
.checklist {
  margin: 0 0 1.5em;
  padding: 0;
  list-style: none;
}

.prose ul li,
.checklist li {
  position: relative;
  margin-bottom: 12px;
  padding-left: 36px;
}

.prose ul li::before,
.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.3em;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--navy) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 12.5 4 4 8-9' fill='none' stroke='%23e9b44c' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat;
}

/* Brand tiles (frames and contact lenses) */
/* Wide wordmarks are capped by width, compact marks by height, so they read at a similar size */
.brand img {
  width: auto;
  max-width: 78%;
  max-height: 40px;
  object-fit: contain;
}

.brand img.brand__logo--tall {
  max-height: 56px;
}

/* Service pages: split, centred and panel sections, booking band, other services
   ========================================================================== */

/* Short gold rule with an optional label, sitting above section headings */
.svc-eyebrow,
.svc-rule {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 18px;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--navy);
}

.svc-eyebrow::before,
.svc-rule::before {
  content: "";
  width: 40px;
  height: 2px;
  background: var(--gold);
}

.svc-split h2,
.svc-centred h2,
.svc-panel h2 {
  margin-bottom: 0;
  font-size: clamp(1.75rem, 3.2vw, 2.5rem);
  letter-spacing: -0.015em;
}

/* Split: heading column on the left, text on the right */
.svc-split__inner {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  align-items: start;
  gap: 32px 96px;
}

.svc-split + .svc-split {
  border-top: 1px solid rgba(11, 31, 58, 0.12);
}

.svc-split__body {
  max-width: none;
  padding-top: 34px;
}

/* Split section with a photo on the right that fades into white behind the text.
   The heading and text stack in the left half so they always sit on white. */
.svc-split--bg {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.svc-split--bg::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: -1;
  width: 60%;
  background-position: center 30%;
  background-size: cover;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.6) 30%, #000 60%);
  mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.6) 30%, #000 60%);
  pointer-events: none;
}

.svc-split--bg-consult::before {
  background-image: url("../images/optimized/woman-eyes-consult.jpg"); /* fallback */
  background-image: image-set(
    url("../images/optimized/woman-eyes-consult.webp") type("image/webp"),
    url("../images/optimized/woman-eyes-consult.jpg") type("image/jpeg"));
}

.svc-split--bg-driving::before {
  background-image: url("../images/optimized/wearing-glasses-while-driving.jpg"); /* fallback */
  background-image: image-set(
    url("../images/optimized/wearing-glasses-while-driving.webp") type("image/webp"),
    url("../images/optimized/wearing-glasses-while-driving.jpg") type("image/jpeg"));
  background-position: 70% 30%;
}

.svc-split--bg-assessment::before {
  background-image: url("../images/optimized/eye-assessment.jpg"); /* fallback */
  background-image: image-set(
    url("../images/optimized/eye-assessment.webp") type("image/webp"),
    url("../images/optimized/eye-assessment.jpg") type("image/jpeg"));
  background-position: center 20%;
}

/* Darker photo, so it fades in more gradually to avoid a grey band beside the text */
.svc-split--bg-myopia::before {
  background-image: url("../images/optimized/myopia-service-img.jpg"); /* fallback */
  background-image: image-set(
    url("../images/optimized/myopia-service-img.webp") type("image/webp"),
    url("../images/optimized/myopia-service-img.jpg") type("image/jpeg"));
  background-position: 65% 40%;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.15) 25%, rgba(0, 0, 0, 0.6) 50%, #000 80%);
  mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.15) 25%, rgba(0, 0, 0, 0.6) 50%, #000 80%);
}

@media (max-width: 860px) {
  .svc-split--bg-myopia::before {
    -webkit-mask-image: linear-gradient(180deg, #000 45%, transparent 100%);
    mask-image: linear-gradient(180deg, #000 45%, transparent 100%);
  }
}

.svc-split--bg .svc-split__inner {
  grid-template-columns: minmax(0, 1fr);
  max-width: var(--container);
}

.svc-split--bg .svc-split__head,
.svc-split--bg .svc-split__body {
  max-width: 520px;
}

.svc-split--bg .svc-split__body {
  padding-top: 0;
}

/* Stacked: photo becomes a band across the top, fading down into white */
@media (max-width: 860px) {
  .section.svc-split--bg {
    padding-top: 300px;
  }

  .svc-split--bg::before {
    bottom: auto;
    width: 100%;
    height: 360px;
    -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent 100%);
    mask-image: linear-gradient(180deg, #000 55%, transparent 100%);
  }
}

.svc-split__body > :last-child,
.svc-centred__body > :last-child {
  margin-bottom: 0;
}

.svc-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 36px;
}

.svc-actions svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  flex-shrink: 0;
}

/* Centred: heading and text stacked in the middle */
.svc-centred__head {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 820px;
  margin: 0 auto 32px;
  text-align: center;
}

.svc-centred__body {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}

.svc-centred__body ul {
  display: inline-block;
  text-align: left;
}

/* Background line art: faint eye-care motifs pushed to the section edges,
   always layered behind the content so text contrast is unaffected */
.svc-split,
.svc-centred,
.svc-media,
.svc-panel,
.svc-brands,
.book-band {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.svc-split::after,
.svc-centred::before,
.svc-centred::after,
.svc-panel::before,
.svc-panel::after,
.svc-brands::before,
.book-band::before {
  content: "";
  position: absolute;
  z-index: -1;
  background-repeat: no-repeat;
  background-size: contain;
  pointer-events: none;
}

/* Split sections: a large lens peeking in from the bottom-right */
.svc-split::after {
  right: -150px;
  bottom: -170px;
  width: 440px;
  height: 440px;
  background-image: url("../images/deco/deco-lens.svg");
  opacity: 0.06;
}

/* The photo-backed split already has an image on the right */
.svc-split--bg::after {
  display: none;
}

/* Centred sections: an eye on the left, glasses on the right */
.svc-centred::before {
  left: -90px;
  top: 64px;
  width: 360px;
  height: 216px;
  background-image: url("../images/deco/deco-eye.svg");
  opacity: 0.07;
}

.svc-centred::after {
  right: -60px;
  bottom: 48px;
  width: 300px;
  height: 120px;
  background-image: url("../images/deco/deco-glasses.svg");
  opacity: 0.07;
  transform: rotate(-8deg);
}

/* Panel band: eye-chart letters top-left, lens bottom-right */
.svc-panel::before {
  left: 32px;
  top: 40px;
  width: 200px;
  height: 240px;
  background-image: url("../images/deco/deco-chart.svg");
  opacity: 0.08;
}

.svc-panel::after {
  right: -120px;
  bottom: -120px;
  width: 380px;
  height: 380px;
  background-image: url("../images/deco/deco-lens.svg");
  opacity: 0.06;
}

.svc-brands::before {
  right: -40px;
  top: 40px;
  width: 340px;
  height: 136px;
  background-image: url("../images/deco/deco-glasses.svg");
  opacity: 0.07;
  transform: rotate(10deg);
}

/* Navy booking band: a gold lens behind the details column */
.book-band::before {
  left: -160px;
  bottom: -160px;
  width: 520px;
  height: 520px;
  background-image: url("../images/deco/deco-lens-gold.svg");
  opacity: 0.14;
}

@media (max-width: 860px) {
  .svc-centred::before,
  .svc-panel::before {
    display: none;
  }

  .svc-split::after,
  .svc-panel::after {
    width: 300px;
    height: 300px;
    right: -120px;
    bottom: -120px;
  }
}

/* Preparation tips: icon cards under a centred section's text */
.prep-tips {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  max-width: 960px;
  margin: 48px auto 0;
  padding: 0;
  list-style: none;
}

.prep-tip {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  padding: 36px 24px 32px;
  text-align: center;
  background: var(--white);
  border: 1px solid rgba(11, 31, 58, 0.12);
  border-top: 4px solid var(--gold);
  border-radius: 6px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
  transition: transform 0.2s, box-shadow 0.2s;
}

.prep-tip:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.prep-tip p {
  margin: 0;
  font-weight: 700;
  line-height: 1.45;
  color: var(--navy);
}

.prep-tip__icon {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--navy);
}

.prep-tip__icon svg {
  width: 40px;
  height: 40px;
  fill: none;
  stroke: var(--gold-light);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Media: heading and text on the left, a framed image on the right */
.svc-media__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 48px 96px;
}

.svc-media h2 {
  margin-bottom: 24px;
  font-size: clamp(1.75rem, 3.2vw, 2.5rem);
  letter-spacing: -0.015em;
}

.svc-media .prose {
  max-width: 560px;
}

.svc-media .prose > :last-child {
  margin-bottom: 0;
}

/* Offset gold outline behind the image, as on the home page */
.svc-media__figure {
  position: relative;
  justify-self: center;
  width: 100%;
  max-width: 580px;
  margin: 0;
  padding: 0 20px 20px 0;
}

.svc-media__figure::before {
  content: "";
  position: absolute;
  top: 20px;
  left: 20px;
  right: 0;
  bottom: 0;
  border: 2px solid var(--gold);
  border-radius: 6px;
}

.svc-media__figure img {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: 6px;
  box-shadow: 0 24px 50px rgba(11, 31, 58, 0.18);
}

@media (max-width: 860px) {
  .svc-media__inner {
    grid-template-columns: 1fr;
  }

  .svc-media__figure {
    max-width: 560px;
  }
}

/* Panel: numbered items on a black block, inside a light band */
.svc-panel__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 72px;
  max-width: 1040px;
  margin: 48px auto 0;
  padding: 32px 64px;
  list-style: none;
  background: var(--black);
  color: var(--white);
  border-radius: 6px;
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.2);
}

.svc-panel__item {
  display: flex;
  align-items: baseline;
  gap: 22px;
  padding: 30px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

/* No rule under the bottom row */
.svc-panel__item:nth-last-child(-n + 2):nth-child(odd),
.svc-panel__item:last-child {
  border-bottom: 0;
}

.svc-panel__item p {
  margin: 0;
  font-size: 1.0625rem;
  font-weight: 500;
  line-height: 1.65;
}

.svc-panel__num {
  flex-shrink: 0;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--gold-light);
}

.svc-panel__item a {
  color: var(--white);
  text-decoration-color: var(--gold-light);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.svc-panel__after {
  margin-top: 40px;
}

.svc-panel .prose a:not(.btn) {
  color: var(--navy);
}

/* Brand logo groups on the glasses page */
.svc-brands__group {
  max-width: 1040px;
  margin: 0 auto;
  text-align: center;
}

.svc-brands__group + .svc-brands__group {
  margin-top: 72px;
}

.svc-brands__group h3 {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 12px;
  font-size: clamp(1.5rem, 2.8vw, 2rem);
  letter-spacing: -0.015em;
}

.svc-brands__group h3::before {
  content: "";
  width: 40px;
  height: 2px;
  margin-bottom: 20px;
  background: var(--gold);
}

.svc-brands__group p {
  margin-bottom: 32px;
}

/* Open logo grid split by faint dashed lines, as on a brand wall.
   Each cell draws only its left and top edge; shifting the cells by -1px and
   clipping the list hides the outer edges, so only the inner dividers show. */
.svc-brands {
  background: var(--white);
}

.svc-brands ul.brands {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 980px;
  margin: 24px auto 0;
  padding: 0;
  overflow: hidden;
  list-style: none;
}

.svc-brands ul.brands li {
  display: grid;
  place-items: center;
  min-height: 200px;
  margin: -1px 0 0 -1px;
  padding: 32px;
  border-left: 1px dashed rgba(11, 31, 58, 0.22);
  border-top: 1px dashed rgba(11, 31, 58, 0.22);
  /* Wordmark styling for brands without a logo file yet (Bavino) */
  font-size: 1.75rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #4d4d4d;
}

/* Sized by height (and scaled up if the file is small) so every logo reads at a
   similar size; very wide wordmarks are reined in by max-width */
.svc-brands .brand img {
  width: auto;
  height: 56px;
  max-width: 72%;
  max-height: none;
  object-fit: contain;
  transition: transform 0.3s;
}

.svc-brands .brand img.brand__logo--tall {
  height: 92px;
}

.svc-brands ul.brands li:hover img {
  transform: scale(1.06);
}

/* Booking band: details and hours beside a white form card.
   The offset keeps the band clear of the sticky header when jumped to. */
.book-band {
  scroll-margin-top: 90px;
  font-size: 1.125rem;
}



.book-band__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  align-items: start;
  gap: 64px;
}

/* Contact details: gold-ringed icon beside each label and value */
.book-contact {
  margin: 0;
}

.book-contact__item {
  position: relative;
  min-height: 52px;
  padding: 18px 0 18px 72px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.book-contact__item:first-child {
  padding-top: 0;
}

.book-contact__item:last-child {
  border-bottom: 0;
}

.book-contact dt {
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-light);
}

.book-contact dd {
  margin: 4px 0 0;
  font-weight: 500;
  overflow-wrap: anywhere;
}

.book-contact a {
  text-decoration: none;
}

.book-contact a:hover {
  text-decoration: underline;
  text-decoration-color: var(--gold-light);
}

.book-contact__icon {
  position: absolute;
  left: 0;
  top: 50%;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  transform: translateY(-50%);
  border: 2px solid var(--gold);
  border-radius: 50%;
  transition: background-color 0.2s;
}

.book-contact__item:first-child .book-contact__icon {
  top: calc(50% - 9px);
}

.book-contact__icon svg {
  width: 22px;
  height: 22px;
  fill: var(--white);
  transition: fill 0.2s;
}

.book-contact__item:hover .book-contact__icon {
  background: var(--gold);
}

.book-contact__item:hover .book-contact__icon svg {
  fill: var(--black);
}

.book-band__form {
  position: relative;
  overflow: hidden;
  padding: 44px 40px 40px;
  background: var(--white);
  color: var(--black);
  border-radius: 20px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35);
}

.book-band__form::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: var(--gold-shine);
}

/* Heading at the top of the form card, with a short gold rule beneath */
.book-band__form-title {
  position: relative;
  margin: 0 0 32px;
  padding-bottom: 16px;
  font-size: clamp(1.375rem, 2.4vw, 1.75rem);
  letter-spacing: -0.01em;
  color: var(--navy);
}

.book-band__form-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 48px;
  height: 4px;
  border-radius: 2px;
  background: var(--gold);
}

.contact-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 18px;
}

/* Floating labels: the label sits inside the empty field, then floats up to
   sit on the top border once the field is focused or filled */
.form-field {
  position: relative;
  margin-bottom: 24px;
}

.form-field--wide,
.form-field:has(textarea),
.contact-form .btn,
.form-status {
  grid-column: 1 / -1;
}

.form-field label {
  position: absolute;
  left: 10px;
  top: 15px;
  max-width: calc(100% - 20px);
  padding: 0 6px;
  overflow: hidden;
  font-size: 1.0625rem;
  font-weight: 500;
  line-height: 1.5;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: var(--navy);
  background: var(--white);
  pointer-events: none;
  transition: top 0.2s ease, font-size 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

/* Floated state: focused, filled, or a select (which always shows a value) */
.form-field input:focus + label,
.form-field input:not(:placeholder-shown) + label,
.form-field textarea:focus + label,
.form-field textarea:not(:placeholder-shown) + label,
.form-field select + label {
  top: 0;
  transform: translateY(-50%);
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.2;
}

.form-field input:focus + label,
.form-field textarea:focus + label,
.form-field select:focus + label {
  color: var(--gold-dark);
}

.form-field label span {
  color: var(--gold-dark);
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 14px 16px;
  font: inherit;
  font-size: 1.0625rem;
  line-height: 1.5;
  color: var(--black);
  background: var(--white);
  border: 2px solid rgba(11, 31, 58, 0.25);
  border-radius: 8px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-field textarea {
  resize: vertical;
  min-height: 120px;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(196, 138, 28, 0.3);
}

.form-field--hp {
  position: absolute;
  left: -9999px;
}

.contact-form .btn {
  justify-self: start;
  margin-top: 4px;
}

.form-status {
  margin: 14px 0 0;
  font-weight: 500;
}

.form-status:empty {
  display: none;
}

.form-status.is-error {
  color: #9b1c1c;
}

/* Other services: the home page service cards, four across */
.services-grid--four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  column-gap: 24px;
}

.services-grid--four .service-card,
.services-grid--four .service-card:nth-child(4) {
  grid-column: auto;
  padding: 0 24px;
}

.services-grid--four .service-card h3 {
  font-size: 1.25rem;
}

/* No description here, so the arrow tab is pinned to the card's bottom-right
   corner instead of floating inside wrapped text */
.services-grid--four .service-card__text {
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  min-height: 56px;
  padding-bottom: 0;
}

.services-grid--four .service-card__text::before {
  display: none;
}

.services-grid--four .service-card__link {
  float: none;
  margin: 12px -24px 0 0;
}

@media (max-width: 1080px) {
  .services-grid--four {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 32px;
  }
}

/* Four cards make two even rows, so the last card doesn't span the row */
@media (max-width: 960px) {
  .services-grid--four .service-card:last-child {
    grid-column: auto;
  }
}

@media (max-width: 960px) {
  .svc-split__inner,
  .book-band__inner {
    grid-template-columns: 1fr;
  }

  .svc-split__body {
    padding-top: 0;
  }

  .svc-panel__grid {
    grid-template-columns: 1fr;
    padding: 12px 36px;
  }

  /* Single column: only the very last item drops its rule */
  .svc-panel__item:nth-last-child(-n + 2):nth-child(odd) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  }

  .svc-panel__item:last-child {
    border-bottom: 0;
  }

  .book-band__inner {
    gap: 48px;
  }
}

@media (max-width: 640px) {
  .svc-panel__grid {
    padding: 8px 24px;
  }

  .svc-panel__item {
    padding: 26px 0;
  }

  .svc-brands ul.brands {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .svc-brands ul.brands li {
    min-height: 140px;
    padding: 20px;
    font-size: 1.25rem;
  }

  .book-band__form {
    padding: 36px 22px 28px;
  }

  .contact-form,
  .services-grid--four {
    grid-template-columns: 1fr;
  }

  .contact-form .btn {
    justify-self: stretch;
  }
}

/* Gold-framed qualifications card (About page) */
.qualifications {
  padding: 28px;
  background: var(--white);
  border: 2px solid var(--gold);
  border-radius: var(--radius);
}

.qualifications .checklist {
  margin: 0;
}

.qualifications .checklist li:last-child {
  margin-bottom: 0;
}

/* Contact page
   ========================================================================== */

/* Extra room under the hero text for the cards that overlap it (Contact, About) */
.page-hero.page-hero--overlap .page-hero__inner {
  padding-bottom: 190px;
}

.overlap-band {
  position: relative;
  z-index: 2;
  padding-bottom: 88px;
}

/* Keep the optometrist (far right of the photo) in view as the hero crops */
.page-hero--contact .page-hero__media img {
  object-position: 85% 30%;
}

.contact-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  margin: -120px 0 0;
  padding: 0;
  list-style: none;
}

.contact-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px 24px 36px;
  text-align: center;
  background: var(--white);
  border-top: 4px solid var(--gold);
  border-radius: 6px;
  box-shadow: 0 24px 50px rgba(11, 31, 58, 0.16);
  transition: transform 0.2s, box-shadow 0.2s;
}

.contact-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 30px 60px rgba(11, 31, 58, 0.22);
}

.contact-card__icon {
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  margin-bottom: 22px;
  border-radius: 50%;
  background: var(--navy);
  transition: background-color 0.2s;
}

.contact-card__icon svg {
  width: 28px;
  height: 28px;
  fill: var(--gold-light);
  transition: fill 0.2s;
}

.contact-card:hover .contact-card__icon {
  background: var(--gold);
}

.contact-card:hover .contact-card__icon svg {
  fill: var(--black);
}

.contact-card__label {
  margin: 0 0 8px;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--navy);
}

.contact-card__value {
  margin: 0;
  font-size: 1.0625rem;
  font-weight: 500;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.contact-card__value a {
  text-decoration: none;
}

.contact-card__value a:hover {
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.contact-cards__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 48px;
}

.contact-cards__actions svg,
.svc-actions svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  flex-shrink: 0;
}

/* Larger hours table beside the form */
.hours--lg {
  font-size: 1.125rem;
}

.hours--lg th,
.hours--lg td {
  padding: 15px 0;
}

.hours--lg th {
  padding-right: 28px;
}

/* Four checklist cards on the contact page */
.prep-tips--four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  max-width: 1120px;
}

.contact-note {
  margin-top: 40px;
}

/* Map in the offset gold frame */
.svc-media__figure--map {
  max-width: 580px;
}

.svc-media__figure--map iframe {
  position: relative;
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  border: 0;
  border-radius: 6px;
  box-shadow: 0 24px 50px rgba(11, 31, 58, 0.18);
}

/* Blank service dropdown: keep its label resting inside like an empty input */
.form-field select:has(option[value=""]:checked):not(:focus) + label {
  top: 15px;
  transform: none;
  font-size: 1.0625rem;
  font-weight: 500;
  line-height: 1.5;
}

@media (max-width: 1080px) {
  .contact-cards,
  .prep-tips--four {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .prep-tips--four {
    max-width: 720px;
  }
}

@media (max-width: 640px) {
  .contact-cards,
  .prep-tips--four {
    grid-template-columns: 1fr;
  }

  .contact-cards {
    gap: 16px;
    margin-top: -80px;
  }

  /* Compact rows on phones: icon on the left, label and value beside it */
  .contact-card {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr);
    column-gap: 18px;
    align-items: center;
    padding: 20px 22px;
    text-align: left;
  }

  .contact-card__icon {
    grid-row: 1 / 3;
    width: 52px;
    height: 52px;
    margin: 0;
  }

  .contact-card__icon svg {
    width: 22px;
    height: 22px;
  }

  .contact-card__label {
    align-self: end;
    margin-bottom: 2px;
  }

  .contact-card__value {
    align-self: start;
  }

  .hours--lg {
    font-size: 1rem;
  }

  .hours--lg th {
    padding-right: 18px;
  }

  .page-hero.page-hero--overlap .page-hero__inner {
    padding-bottom: 130px;
  }

  .prep-tips--four {
    max-width: 420px;
  }
}

/* About page
   ========================================================================== */

/* Keep the optometrist (right of the photo) in frame as the hero crops */
.page-hero--about .page-hero__media img {
  object-position: 78% 30%;
}

.svc-eyebrow--light {
  color: var(--white);
}

/* Key facts overlapping the hero */
.about-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  margin: -120px 0 0;
  padding: 0;
  list-style: none;
}

.about-stat {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 36px 28px 32px;
  background: var(--white);
  border-top: 4px solid var(--gold);
  border-radius: 6px;
  box-shadow: 0 24px 50px rgba(11, 31, 58, 0.16);
}

.about-stat__value {
  font-size: clamp(2rem, 3.4vw, 2.75rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--navy);
}

.about-stat__label {
  font-weight: 500;
  line-height: 1.45;
}

.qualifications--lg {
  margin-top: 32px;
  padding: 32px;
}

.qualifications--lg .checklist li {
  font-size: 1.0625rem;
  font-weight: 500;
}

.about-lead {
  font-size: 1.1875rem;
  line-height: 1.75;
}

/* Pull quote band */
.about-quote__inner {
  max-width: 920px;
  text-align: center;
}

.about-quote__lead {
  max-width: 720px;
  margin: 0 auto 40px;
  font-size: 1.125rem;
}

.about-quote__text {
  position: relative;
  margin: 0;
  padding-top: 72px;
}

.about-quote__text::before {
  content: "\201C";
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 7rem;
  font-weight: 700;
  line-height: 1;
  color: var(--gold-light);
}

.about-quote__text p {
  margin: 0;
  font-size: clamp(1.5rem, 3.2vw, 2.25rem);
  font-style: italic;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: -0.01em;
}

/* Experience badge over the Desire photo */
.about-badge {
  position: absolute;
  left: -28px;
  bottom: 48px;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 230px;
  padding: 18px 22px;
  font-weight: 500;
  line-height: 1.35;
  color: var(--white);
  background: var(--navy);
  border-left: 4px solid var(--gold);
  border-radius: 6px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.25);
}

.about-badge strong {
  font-size: 2rem;
  line-height: 1;
  color: var(--gold-light);
}

/* Closing call to action */
.about-cta__inner {
  text-align: center;
}

.about-cta h2 {
  margin-bottom: 32px;
  font-size: clamp(1.75rem, 3.4vw, 2.625rem);
  letter-spacing: -0.02em;
}

.about-cta__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

.about-cta__actions svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  flex-shrink: 0;
}

@media (max-width: 1080px) {
  .about-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .about-stats {
    gap: 16px;
    margin-top: -80px;
  }

  .about-stat {
    padding: 26px 22px;
  }

  .about-badge {
    left: 12px;
    bottom: 32px;
  }
}

/* Legal pages
   ========================================================================== */

.prose--legal {
  max-width: 820px;
  margin: 0 auto;
}

.prose--legal h2 {
  font-size: 1.375rem;
}

.prose--legal address {
  font-style: normal;
}

/* Responsive
   ========================================================================== */

@media (max-width: 860px) {
  .page-hero__media {
    width: 100%;
    opacity: 0.35;
  }

  .page-hero__media::after {
    background: rgba(11, 31, 58, 0.55);
  }

  .page-hero__inner {
    min-height: 260px;
  }

  .page-hero--lg .page-hero__media {
    opacity: 1;
  }

  .page-hero--lg .page-hero__media::after {
    background: rgba(0, 0, 0, 0.72);
  }

  .page-hero--lg .page-hero__inner {
    min-height: 380px;
    padding-top: 72px;
    padding-bottom: 72px;
  }
}

@media (max-width: 1080px) {
  .nav-toggle {
    display: flex;
  }

  /* Full-screen menu: a navy overlay covering the viewport. The logo and the
     toggle sit above it so the menu can be closed from the same spot. */
  .primary-nav {
    position: fixed;
    inset: 0;
    z-index: 55;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 32px;
    height: 100vh;
    height: 100dvh;
    padding: 150px 24px 36px;
    overflow-y: auto;
    overscroll-behavior: contain;
    color: var(--white);
    /* The gold lens is washed back with navy so it reads as a faint texture */
    background:
      linear-gradient(rgba(11, 31, 58, 0.88), rgba(11, 31, 58, 0.88)),
      url("../images/deco/deco-lens-gold.svg") no-repeat right -160px bottom -160px / 420px,
      var(--navy);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
  }

  .primary-nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  /* A closed menu never intercepts taps, whatever its children's styles */
  .primary-nav:not(.is-open) {
    pointer-events: none;
  }

  .logo,
  .nav-toggle {
    position: relative;
    z-index: 60;
  }

  /* White logo while the navy menu is open */
  .site-header:has(.primary-nav.is-open) .logo img {
    filter: brightness(0) invert(1);
  }

  .nav-toggle[aria-expanded="true"] {
    background: var(--gold);
  }

  .nav-toggle[aria-expanded="true"] .nav-toggle__bar {
    background: var(--black);
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .nav-list > li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  }

  .nav-list > li > a {
    padding: 18px 0;
    font-size: clamp(1.5rem, 6vw, 2rem);
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--white);
    border-bottom: 0;
  }

  /* Current page in gold */
  .nav-list > li > a[aria-current="page"],
  .nav-list > li > a.is-active {
    color: var(--gold-light);
  }

  .nav-list > li > a:hover {
    color: var(--gold-light);
  }

  /* Menu items rise into place one after another */
  .primary-nav.is-open .nav-list > li,
  .primary-nav.is-open .nav-cta {
    animation: nav-item-in 0.45s ease both;
  }

  .primary-nav.is-open .nav-list > li:nth-child(2) { animation-delay: 0.05s; }
  .primary-nav.is-open .nav-list > li:nth-child(3) { animation-delay: 0.1s; }
  .primary-nav.is-open .nav-list > li:nth-child(4) { animation-delay: 0.15s; }
  .primary-nav.is-open .nav-cta { animation-delay: 0.2s; }

  .has-dropdown {
    flex-wrap: wrap;
    justify-content: space-between;
  }

  .dropdown-toggle {
    padding: 12px;
    color: var(--white);
  }

  .dropdown-toggle svg {
    width: 26px;
    height: 26px;
  }

  .dropdown {
    position: static;
    flex-basis: 100%;
    min-width: 0;
    padding: 0 0 18px;
    border-top: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    display: none;
    opacity: 1;
    /* inherit, not visible: an explicit "visible" would override the closed menu's
       hidden state and leave invisible, tappable service links over the page */
    visibility: inherit;
    transform: none;
  }

  .has-dropdown.is-open .dropdown {
    display: block;
    transform: none;
  }

  .dropdown:has(.dropdown__icon) {
    min-width: 0;
  }

  .dropdown a {
    padding: 10px 8px;
    font-size: 1.0625rem;
    color: var(--white);
    border-radius: 8px;
  }

  .dropdown a:hover,
  .dropdown a[aria-current="page"] {
    background: rgba(255, 255, 255, 0.08);
    color: var(--white);
    box-shadow: none;
  }

  .dropdown__icon {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(233, 180, 76, 0.5);
  }

  .nav-cta {
    align-self: stretch;
    margin-top: auto;
    padding-top: 18px;
    padding-bottom: 18px;
    font-size: 1.0625rem;
  }

  /* Stop the page behind the menu from scrolling */
  body.nav-open {
    overflow: hidden;
  }

  /* Keep the text on solid navy where the photo gets closer */
  .hero__media {
    width: 48%;
  }

  .hero__content {
    max-width: 440px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 960px) {
  .services-grid {
    grid-template-columns: 1fr 1fr;
  }

  .service-card,
  .service-card:nth-child(4) {
    grid-column: auto;
  }

  .service-card:last-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 860px) {
  .split {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  /* Stack the photo above the text and fade it down into the navy */
  .hero__media {
    position: relative;
    width: 100%;
    height: 340px;
  }

  .hero__media::after {
    background: linear-gradient(0deg, var(--navy) 0%, rgba(11, 31, 58, 0.6) 25%, rgba(11, 31, 58, 0) 60%);
  }

  .hero__inner {
    min-height: 0;
    padding-top: 8px;
    padding-bottom: 72px;
  }

  .split--reverse .split__media {
    order: 0;
  }

  .section {
    padding: 72px 0;
  }
}

@media (max-width: 960px) {
  .review-card {
    flex-basis: calc((100% - 24px) / 2);
  }
}

@media (max-width: 640px) {
  /* Side padding only: the shorthand would also zero the vertical padding of
     layouts that share the .container element (hero, footer, top bar) */
  .container {
    padding-left: 16px;
    padding-right: 16px;
  }

  /* Show part of the next card so it is clear the row can be swiped */
  .review-card {
    flex-basis: 86%;
    padding: 24px 22px 28px;
  }

  .topbar__inner > .topbar__item {
    display: none;
  }

  .hero__media {
    height: 260px;
  }

  .logo img {
    height: 52px;
  }

  .services-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .service-card:last-child {
    grid-column: auto;
  }

  .service-card {
    padding: 0 24px;
  }

  .service-card__link {
    margin-right: -24px;
  }

  .services-grid {
    row-gap: 96px;
  }

  .split__media--framed {
    padding: 20px;
  }

  .btn {
    white-space: normal;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
    scroll-behavior: auto !important;
  }
}

/* Phone refinements
   ========================================================================== */

@media (max-width: 640px) {
  /* Justified text leaves wide gaps in narrow cards */
  .service-card__text {
    text-align: left;
    hyphens: manual;
  }

  /* Homepage eye-chart illustration was filling the whole screen */
  .split__media--photo {
    max-width: 300px;
  }

  /* Tip cards stack into one column */
  .prep-tips,
  .prep-tips--four {
    grid-template-columns: 1fr;
    max-width: 420px;
  }

  /* Larger tap targets for the phone and email links in the top bar */
  .topbar__inner {
    padding-top: 4px;
    padding-bottom: 4px;
  }

  .topbar__item {
    min-height: 36px;
  }
}

@media (max-width: 640px) {
  .footer-bottom__inner {
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-align: center;
  }

  .legal-links {
    justify-content: center;
  }
}

/* Scroll effects and animations
   Hidden states apply only once js/main.js adds html.js-reveal (and it never does for
   reduced motion), so the site stays fully visible without JavaScript.
   ========================================================================== */

:root {
  --ease-out: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* Rise, slide and zoom */
html.js-reveal [data-reveal="up"],
html.js-reveal [data-reveal="left"],
html.js-reveal [data-reveal="right"],
html.js-reveal [data-reveal="zoom"] {
  opacity: 0;
  transition: opacity 0.8s var(--ease-out), transform 0.9s var(--ease-out);
}

html.js-reveal [data-reveal="up"] {
  transform: translateY(36px);
}

html.js-reveal [data-reveal="left"] {
  transform: translateX(56px);
}

html.js-reveal [data-reveal="right"] {
  transform: translateX(-56px);
}

html.js-reveal [data-reveal="zoom"] {
  transform: scale(0.9);
}

html.js-reveal [data-reveal].is-revealed {
  opacity: 1;
  transform: none;
}

/* Cascading grids: each item follows the one before it */
html.js-reveal [data-reveal="stagger"] > * {
  opacity: 0;
  transform: translateY(32px) scale(0.97);
  transition: opacity 0.7s var(--ease-out), transform 0.8s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 90ms);
}

html.js-reveal [data-reveal="stagger"].is-revealed > * {
  opacity: 1;
  transform: none;
}

/* Gold rules draw in from the left (or out from the centre) */
html.js-reveal [data-reveal="line"]::before,
html.js-reveal [data-reveal="line-center"]::before,
html.js-reveal .section-divider[data-reveal]::after {
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.9s var(--ease-out) 0.15s;
}

html.js-reveal [data-reveal="line-center"]::before {
  transform-origin: center;
}

html.js-reveal .section-divider[data-reveal]::before {
  transform-origin: right center;
}

html.js-reveal .section-divider[data-reveal] img {
  opacity: 0;
  transform: rotate(-20deg) scale(0.6);
  transition: opacity 0.6s var(--ease-out) 0.35s, transform 0.8s var(--ease-out) 0.35s;
}

html.js-reveal [data-reveal].is-revealed::before,
html.js-reveal [data-reveal].is-revealed::after {
  transform: scaleX(1);
}

html.js-reveal .section-divider[data-reveal].is-revealed img {
  opacity: 1;
  transform: none;
}

/* Faded-photo sections: the photo glides in from the right */
html.js-reveal [data-reveal-photo]::before {
  opacity: 0;
  transform: translateX(80px);
  transition: opacity 1.2s var(--ease-out), transform 1.4s var(--ease-out);
}

html.js-reveal [data-reveal-photo].is-revealed::before {
  opacity: 1;
  transform: none;
}

/* Heroes on load: the photo settles from a slight zoom while the text rises in sequence.
   Pure CSS, so it plays even before the script runs. */
@media (prefers-reduced-motion: no-preference) {
  /* Settles at 112%, anchored at the bottom, so the extra height sits at the top and
     covers the gap the parallax drift would otherwise open under the header */
  .hero__media img,
  .page-hero__media img {
    transform-origin: 50% 100%;
    animation: hero-settle 1.8s var(--ease-out) both;
  }

  .hero__content > *,
  .page-hero__inner > * {
    animation: hero-rise 0.9s var(--ease-out) both;
  }

  .hero__content > :nth-child(2),
  .page-hero__inner > :nth-child(2) {
    animation-delay: 0.12s;
  }

  .hero__content > :nth-child(3),
  .page-hero__inner > :nth-child(3) {
    animation-delay: 0.24s;
  }

  .hero__content > :nth-child(4),
  .page-hero__inner > :nth-child(4) {
    animation-delay: 0.36s;
  }

  .overlap-band {
    animation: hero-rise 1s var(--ease-out) 0.35s both;
  }
}

@keyframes hero-settle {
  from {
    scale: 1.24;
    opacity: 0.4;
  }
  to {
    scale: 1.12;
    opacity: 1;
  }
}

@keyframes hero-rise {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* Parallax is applied through the separate `translate` property so it combines with
   the settle animation's `scale` instead of overriding it */
.hero__media img,
.page-hero__media img {
  will-change: translate;
}

/* Scroll progress bar */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
  width: 100%;
  height: 3px;
  background: var(--gold-shine);
  transform: scaleX(0);
  transform-origin: left center;
  pointer-events: none;
}

/* Header tightens and lifts once the page has scrolled */
.site-header {
  transition: box-shadow 0.3s;
}

.site-header__inner {
  transition: min-height 0.3s var(--ease-out);
}

.logo img {
  transition: height 0.3s var(--ease-out), filter 0.3s;
}

.site-header.is-scrolled {
  box-shadow: 0 10px 30px rgba(11, 31, 58, 0.12);
}

.site-header.is-scrolled .site-header__inner {
  min-height: 70px;
}

.site-header.is-scrolled .logo img {
  height: 52px;
}

/* Back-to-top button */
.to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 40;
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--navy);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.25);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: opacity 0.3s, transform 0.3s var(--ease-out), visibility 0.3s, background-color 0.2s;
}

.to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.to-top:hover {
  background: var(--gold);
}

.to-top svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: var(--gold-light);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.to-top:hover svg {
  stroke: var(--black);
}

/* Hidden while the full-screen mobile menu is open */
body.nav-open .to-top {
  opacity: 0;
  visibility: hidden;
}

@media (max-width: 640px) {
  .site-header.is-scrolled .logo img {
    height: 44px;
  }

  .site-header.is-scrolled .site-header__inner {
    min-height: 64px;
  }

  .to-top {
    right: 14px;
    bottom: 14px;
    width: 46px;
    height: 46px;
  }
}

/* Avily "Designed by" credit (templates/designed-by-avily.html) */
.avily-credit .avily-link { text-decoration: none; }
.avily-credit .avily-link:hover { text-decoration: underline; }
.avily-credit img {
  height: 1em;
  width: auto;
  vertical-align: middle;
  margin: 0 4px;
}
