/* Sun Bay Eye Care — preview stylesheet
   Brand: navy #0A3353, teal #2A9DB0, Jost, sand/sea accents.
   Layout inspired by the MBEC section order, not its typography or copy. */

:root {
  --navy: #0A3353;
  --navy-deep: #07263E;
  --teal: #2A9DB0;
  --teal-dark: #1E7E8E;
  --teal-soft: #D7EEF2;
  --sand: #F4EFE6;
  --sand-dark: #E6DCCB;
  --sea: #E8F4F6;
  --foam: #F8FBFC;
  --ink: #17303C;
  --muted: #5C6E76;
  --line: #D3E0E3;
  --white: #FFFFFF;
  --placeholder: #8A5A14;
  --placeholder-bg: #F8EFD9;
  --shadow: 0 18px 40px rgba(10, 51, 83, 0.10);
  --radius: 18px;
  --radius-pill: 999px;
  --header-h: 84px;
  --max: 1200px;
  --font: "Jost", "Segoe UI", sans-serif;
}

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

html { scroll-behavior: smooth; }

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

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

a { color: var(--teal-dark); }
a:hover { color: var(--navy); }

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: 0.75rem;
  background: var(--navy);
  color: var(--white);
  padding: 0.5rem 0.85rem;
  border-radius: 8px;
  z-index: 1000;
  clip-path: inset(50%);
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.skip-link:focus,
.skip-link:focus-visible {
  clip-path: none;
  width: auto;
  height: auto;
  overflow: visible;
}

.wrap {
  width: min(var(--max), calc(100% - 2.5rem));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(10, 51, 83, 0.06);
}

.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.logo-link {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
}
.logo-link img {
  height: 42px;
  width: auto;
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 0.15rem 1.05rem;
  font-size: 0.92rem;
  font-weight: 500;
}

.nav-desktop a {
  color: var(--navy);
  text-decoration: none;
  padding: 0.25rem 0;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}
.nav-desktop a:hover { color: var(--teal-dark); }
.nav-desktop a[aria-current="page"] {
  border-bottom-color: var(--teal);
}

.nav-phone {
  color: var(--navy) !important;
  letter-spacing: 0.01em;
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  flex: 0 0 auto;
}

.lang-toggle {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  overflow: hidden;
  background: var(--white);
}
.lang-toggle button {
  border: 0;
  background: transparent;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  padding: 0.35rem 0.6rem;
  color: var(--muted);
  cursor: pointer;
}
.lang-toggle button.is-active {
  background: var(--navy);
  color: var(--white);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-family: inherit;
  font-weight: 500;
  font-size: 0.95rem;
  text-decoration: none;
  border-radius: var(--radius-pill);
  padding: 0.7rem 1.25rem;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--teal);
  color: var(--white);
  border-color: var(--teal);
}
.btn-primary:hover { background: var(--teal-dark); color: var(--white); border-color: var(--teal-dark); }

.btn-secondary {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn-secondary:hover { background: var(--navy); color: var(--white); }

.btn-ghost,
.btn-header-appt {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
}
.btn-header-appt:hover { background: var(--navy); color: var(--white); }

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

.btn-outline-light {
  background: rgba(7, 38, 62, 0.42);
  color: var(--white);
  border-color: rgba(255,255,255,0.92);
  backdrop-filter: blur(8px);
}
.btn-outline-light:hover { background: var(--white); color: var(--navy); }

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
  cursor: pointer;
  padding: 0;
}
.menu-toggle span,
.menu-toggle span::before,
.menu-toggle span::after {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--navy);
  margin: 0 auto;
  position: relative;
  content: "";
}
.menu-toggle span::before { position: absolute; top: -6px; }
.menu-toggle span::after { position: absolute; top: 6px; }

.nav-mobile {
  display: none;
  background: var(--white);
  border-top: 1px solid var(--line);
  padding: 0.5rem 0 1.25rem;
}
.nav-mobile.is-open { display: block; }
.nav-mobile a {
  display: block;
  padding: 0.8rem 0;
  color: var(--navy);
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px solid var(--sea);
}
.nav-mobile .btn { width: 100%; margin-top: 0.85rem; }

body.menu-open { overflow: hidden; }

/* Hero */
.hero {
  position: relative;
  background: var(--navy-deep);
  color: var(--white);
  overflow: hidden;
  min-height: min(78vh, 720px);
  display: flex;
  align-items: center;
  padding: 6rem 0 4.5rem;
}
.hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: 82% 48%;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg,
      rgba(7, 38, 62, 0.88) 0%,
      rgba(7, 38, 62, 0.62) 28%,
      rgba(7, 38, 62, 0.22) 55%,
      rgba(7, 38, 62, 0.08) 100%);
}
.hero-inner {
  position: relative;
  z-index: 1;
  text-align: left;
}
.hero-inner > * { max-width: 34rem; }
.hero h1 {
  font-size: clamp(2.05rem, 4.1vw, 3.15rem);
  font-weight: 500;
  line-height: 1.14;
  letter-spacing: -0.03em;
  margin: 0 0 0.85rem;
  text-wrap: balance;
  text-shadow: 0 2px 24px rgba(7, 38, 62, 0.35);
}
.hero-lead {
  font-size: 1.2rem;
  line-height: 1.5;
  color: rgba(255,255,255,0.92);
  margin: 0 0 2rem;
  font-weight: 400;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* Sections */
.section { padding: 6rem 0; }
.section, .trust-strip { scroll-margin-top: calc(var(--header-h) + 12px); }
.section-sand { background: var(--sand); }
.section-sea { background: var(--sea); }
.section-foam { background: var(--foam); }

.eyebrow {
  margin: 0 0 0.75rem;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--teal-dark);
  text-align: center;
}
.section-title {
  font-size: clamp(1.85rem, 3vw, 2.5rem);
  font-weight: 500;
  color: var(--navy);
  letter-spacing: -0.03em;
  margin: 0 0 0.75rem;
  text-align: center;
  text-wrap: balance;
}
.section-lead {
  text-align: center;
  color: var(--muted);
  max-width: 40rem;
  margin: 0 auto 3rem;
  text-wrap: pretty;
}
.section-cta {
  text-align: center;
  margin: 1.5rem 0 0;
}


/* Trust strip */
.trust-strip {
  background: var(--foam);
  border-bottom: 1px solid var(--line);
}
.trust-strip-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 2rem 0;
}
.trust-item {
  padding: 0.5rem 1.5rem;
  text-align: center;
  border-left: 1px solid var(--line);
}
.trust-item:first-child { border-left: 0; }
.trust-value {
  margin: 0 0 0.25rem;
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--navy);
  letter-spacing: -0.02em;
}
.trust-label {
  margin: 0;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  color: var(--muted);
}

/* Services */
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.service-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 10px 30px rgba(10, 51, 83, 0.06);
  display: flex;
  flex-direction: column;
  transition: transform 180ms ease, box-shadow 180ms ease;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(10, 51, 83, 0.10);
}
.service-photo {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  background: var(--sea);
}
.service-photo[src*="contacts"] { object-position: center 30%; }
.service-photo[src*="health"] { object-position: center 45%; }

.service-body {
  padding: 1.2rem 1.25rem 1.4rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.service-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--navy);
}
.service-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}
.text-link {
  font-weight: 500;
  color: var(--teal-dark);
  text-decoration: none;
  letter-spacing: 0.01em;
}
.text-link:hover { text-decoration: underline; color: var(--navy); }
.service-card .text-link {
  display: inline-block;
  margin-top: 0.85rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--teal-dark);
}
.service-card .text-link:hover { text-decoration: underline; }

/* Technology */
.tech-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
  margin-top: 3.25rem;
}
.tech-row + .tech-row { margin-top: 4.5rem; }
.tech-row-reverse { direction: rtl; }
.tech-row-reverse > * { direction: ltr; }
.tech-figure { margin: 0; }
.tech-figure img {
  width: 100%;
  height: auto;
  max-height: 640px;
  object-fit: cover;
  border-radius: var(--radius);
  background: var(--sea);
}
.tech-copy h3 {
  margin: 0 0 0.85rem;
  font-size: clamp(1.55rem, 2.4vw, 2.1rem);
  font-weight: 500;
  letter-spacing: -0.025em;
  color: var(--navy);
}
.tech-copy p { color: var(--ink); margin: 0 0 1rem; }
.tech-kicker {
  margin: 0 0 0.4rem;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--teal-dark);
}
.tech-inset {
  margin: 1.25rem 0 1.1rem;
  max-width: 22rem;
}
.tech-inset img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  background: #111;
}
.photo-credit {
  margin: 0.45rem 0 0;
  font-size: 0.72rem;
  line-height: 1.45;
  color: var(--muted);
}
.photo-credit a { color: inherit; }

/* CTA band */
.cta-band {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.85rem;
  padding: 0 0 4.5rem;
}

/* Visit us */
.visit-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 1.75rem;
  align-items: stretch;
}
.map-shell {
  position: relative;
  min-height: 360px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background:
    radial-gradient(circle at 50% 46%, #fff 0 10px, transparent 11px),
    linear-gradient(180deg, #E7F2F4 0%, #E6DCCB 100%);
}
.map-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--navy);
  pointer-events: none;
  padding: 1rem;
}
.map-fallback svg { width: 36px; height: 36px; margin-bottom: 0.6rem; color: var(--teal-dark); }
.map-fallback p { margin: 0; font-weight: 500; }
.map-fallback .map-sub { font-weight: 400; color: var(--muted); font-size: 0.95rem; margin-top: 0.2rem; }
.map-frame {
  position: relative;
  z-index: 1;
  border: 0;
  border-radius: var(--radius);
  width: 100%;
  height: 360px;
  background: transparent;
}
.map-hint {
  margin: 0.7rem 0 0;
  font-size: 0.9rem;
  color: var(--muted);
}
.visit-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.75rem 1.6rem;
  border: 1px solid var(--line);
}
.visit-card h3 {
  margin: 0 0 0.35rem;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal-dark);
  font-weight: 600;
}
.visit-card p, .visit-card address {
  margin: 0 0 1.25rem;
  font-style: normal;
  color: var(--ink);
}
.visit-card p:last-child, .visit-card address:last-of-type { margin-bottom: 0.35rem; }

.placeholder-tag {
  display: inline-block;
  margin-left: 0.4rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--placeholder);
  background: var(--placeholder-bg);
  border-radius: 999px;
  padding: 0.12rem 0.45rem;
  vertical-align: middle;
}

/* Doctors */
.doctor-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.doctor-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 10px 30px rgba(10, 51, 83, 0.06);
  transition: transform 180ms ease, box-shadow 180ms ease;
}
.doctor-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(10, 51, 83, 0.10);
}
.doctor-card img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 15%;
  background: var(--sand);
}
.doctor-card-body { padding: 1.25rem 1.3rem 1.5rem; }
.doctor-card h2, .doctor-card h3 {
  margin: 0 0 0.15rem;
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--navy);
}
.credential {
  margin: 0 0 0.75rem;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal-dark);
  font-weight: 600;
}
.doctor-card p { margin: 0; color: var(--muted); font-size: 0.98rem; }


/* Insurance logo-style text row */
.insurance-logos {
  list-style: none;
  margin: 0;
  padding: 0.5rem 0 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: baseline;
  gap: 0.75rem 2.5rem;
}
.insurance-logos li {
  font-size: clamp(1.15rem, 2vw, 1.55rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--navy);
  margin: 0;
}
#insurances-preview { text-align: center; }
.insurance-home-note,
#insurances-preview .flag-note {
  display: block;
  width: fit-content;
  margin: 1.75rem auto 0;
  text-align: center;
}

/* Insurances */
.insurance-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 2rem 0 1rem;
}
.insurance-item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.25rem 1rem;
  text-align: center;
  font-weight: 500;
  color: var(--navy);
  letter-spacing: 0.04em;
}
.disclaimer {
  max-width: 40rem;
  margin: 1.25rem auto 1.75rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.95rem;
}
.flag-note {
  display: inline-block;
  background: var(--placeholder-bg);
  color: var(--placeholder);
  border-radius: 999px;
  padding: 0.35rem 0.8rem;
  font-size: 0.82rem;
  font-weight: 500;
  margin: 0 auto 1.5rem;
  text-align: center;
}
.page-actions { display: flex; justify-content: center; margin-top: 0.5rem; }

.insurance-photo-bleed {
  margin: 3.25rem 0 0;
}
.insurance-photo-bleed img {
  width: 100%;
  max-width: none;
  height: min(46vw, 520px);
  object-fit: cover;
  object-position: center 45%;
}

.retinal-layout {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 2.5rem;
  align-items: start;
  max-width: 64rem;
  margin: 0 auto;
}
.retinal-photo {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--sea);
}
.retinal-photo img {
  width: 100%;
  height: auto;
  object-fit: cover;
}
.retinal-layout .prose { max-width: none; margin: 0; }

/* Contact + page heroes */
.page-hero {
  background: var(--foam);
  padding: 3.5rem 0 2.6rem;
  text-align: center;
}
.page-hero h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(2rem, 3.4vw, 2.8rem);
  font-weight: 500;
  color: var(--navy);
  letter-spacing: -0.02em;
}
.page-hero p {
  margin: 0 auto;
  max-width: 36rem;
  color: var(--muted);
}

.prose {
  max-width: 40rem;
  margin: 0 auto;
}
.prose p { color: var(--ink); }
.prose a { font-weight: 500; }

.contact-details {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 1.75rem;
}

/* Footer */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.86);
  padding: 2.75rem 0 2rem;
}
.footer-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1.5rem;
  align-items: start;
}
.site-footer .logo-link img { height: 36px; }
.footer-meta { font-size: 0.95rem; }
.footer-meta p { margin: 0 0 0.25rem; }
.site-footer a { color: #D6F0F4; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; color: var(--white); }
.footer-legal {
  margin-top: 1.75rem;
  padding-top: 1.1rem;
  border-top: 1px solid rgba(255,255,255,0.12);
  font-size: 0.82rem;
  color: rgba(255,255,255,0.62);
}

/* Dialog */
.booking-dialog {
  border: 0;
  border-radius: 20px;
  padding: 0;
  max-width: 28rem;
  width: calc(100% - 2rem);
  box-shadow: var(--shadow);
}
.booking-dialog::backdrop { background: rgba(7, 38, 62, 0.55); }
.booking-dialog-inner { padding: 1.6rem 1.5rem 1.4rem; }
.booking-dialog h2 {
  margin: 0 0 0.6rem;
  font-weight: 500;
  color: var(--navy);
  font-size: 1.35rem;
}
.booking-dialog p { margin: 0 0 1.2rem; color: var(--muted); }
.booking-dialog-actions { display: flex; justify-content: flex-end; }

/* Responsive */
@media (max-width: 1180px) {
  .nav-desktop { display: none; }
  .menu-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .header-inner { height: 72px; }
  .logo-link img { height: 34px; }
  .btn-header-appt { display: none; }
}

@media (max-width: 980px) {
  .section { padding: 4rem 0; }
  .trust-strip-inner {
    grid-template-columns: 1fr 1fr;
    padding: 1.5rem 0;
  }
  .trust-item {
    padding: 1rem 1rem;
    border-left: 0;
    border-top: 1px solid var(--line);
  }
  .trust-item:nth-child(-n+2) { border-top: 0; }
  .service-grid,
  .doctor-grid,
  .visit-grid,
  .insurance-grid,
  .contact-details,
  .footer-inner,
  .retinal-layout {
    grid-template-columns: 1fr;
  }
  .map-shell, .map-frame { min-height: 280px; height: 280px; }
  .hero { min-height: min(76vh, 660px); padding: 3rem 0 2.5rem; align-items: flex-end; }
  .hero-inner { max-width: 100%; }
  .hero-overlay {
    background: linear-gradient(180deg,
      rgba(7, 38, 62, 0.15) 0%,
      rgba(7, 38, 62, 0.35) 38%,
      rgba(7, 38, 62, 0.82) 100%);
  }
  .hero-photo { object-position: 78% 50%; }
  .tech-row,
  .tech-row-reverse {
    grid-template-columns: 1fr;
    direction: ltr;
    gap: 1.5rem;
    margin-top: 2.5rem;
  }
  .tech-figure img { max-height: 480px; }
  .footer-inner { gap: 1.25rem; }
}

@media (min-width: 701px) and (max-width: 980px) {
  .doctor-grid,
  .insurance-grid,
  .contact-details { grid-template-columns: 1fr 1fr; }
  .service-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .service-card, .doctor-card { transition: none; }
  .service-card:hover, .doctor-card:hover { transform: none; }
}
