﻿:root {
  --primary: #0b66a4;
  --primary-dark: #075184;
  --accent: #10a79d;
  --ink: #17293d;
  --muted: #657487;
  --light: #f3f8fc;
  --line: #d9e7f0;
  --white: #ffffff;
  --shadow: 0 12px 30px rgba(12, 63, 102, 0.14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); font-family: Arial, Helvetica, sans-serif; line-height: 1.6; background: var(--white); }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

.site-header { position: sticky; top: 0; z-index: 50; background: var(--white); box-shadow: 0 2px 18px rgba(10, 38, 61, 0.12); }
.top-strip { display: flex; justify-content: center; gap: 32px; padding: 8px 22px; color: var(--white); background: var(--primary-dark); font-size: 14px; font-weight: 700; }
.brand-row { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 28px; max-width: 1180px; margin: 0 auto; padding: 13px 22px; }
.brand { display: flex; align-items: center; gap: 14px; color: var(--primary); font-size: 24px; font-weight: 800; text-transform: uppercase; line-height: 1.1; }
.brand img { width: 76px; }
.header-info { display: flex; align-items: center; justify-content: flex-end; gap: 14px; }
.info-box { min-width: 168px; display: grid; gap: 2px; padding-left: 16px; border-left: 3px solid var(--accent); }
.info-box strong { color: var(--primary); font-size: 14px; text-transform: uppercase; }
.info-box span { color: var(--muted); font-size: 13px; font-weight: 700; }
.appointment-link, .button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 12px 22px; border: 0; border-radius: 2px; color: var(--white); background: var(--accent); font-weight: 800; text-transform: uppercase; cursor: pointer; }
.site-nav { display: flex; justify-content: center; gap: 0; background: var(--primary); }
.site-nav a { padding: 15px 25px; color: var(--white); font-weight: 800; border-left: 1px solid rgba(255,255,255,0.22); }
.site-nav a:hover { background: var(--primary-dark); }
.nav-toggle { display: none; width: 44px; height: 44px; padding: 10px; border: 1px solid var(--line); background: var(--white); }
.nav-toggle span { display: block; height: 2px; margin: 5px 0; background: var(--ink); }

.hero { min-height: 590px; display: grid; align-items: center; padding: 95px clamp(20px, 6vw, 90px); color: var(--white); background: linear-gradient(90deg, rgba(5, 46, 82, 0.9), rgba(8, 86, 137, 0.63), rgba(8, 86, 137, 0.2)), url("../images/hero-eye-care.jpg") center / cover; }
.hero-content { max-width: 760px; }
.eyebrow { margin: 0 0 10px; color: var(--accent); font-size: 14px; font-weight: 800; text-transform: uppercase; }
.hero .eyebrow { color: #9af7ef; font-size: 16px; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 18px; font-size: clamp(42px, 8vw, 82px); line-height: 0.98; letter-spacing: 0; text-transform: uppercase; }
h2 { margin-bottom: 18px; font-size: clamp(31px, 4vw, 50px); line-height: 1.1; letter-spacing: 0; }
h3 { margin-bottom: 10px; font-size: 21px; line-height: 1.25; }
.hero p { max-width: 650px; color: rgba(255,255,255,0.92); font-size: 20px; font-weight: 600; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.button.primary { background: var(--accent); }
.button.secondary { color: var(--primary); background: var(--white); }
.quick-cards { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; max-width: 1120px; margin: -62px auto 0; padding: 0 22px; }
.quick-cards article { min-height: 124px; padding: 26px; color: var(--white); background: var(--primary); border-bottom: 5px solid var(--accent); box-shadow: var(--shadow); }
.quick-cards article:nth-child(2) { background: var(--accent); border-color: var(--primary); }
.quick-cards strong { display: block; font-size: 27px; line-height: 1.1; }
.quick-cards span { color: rgba(255,255,255,0.88); font-weight: 700; }

.section { padding: 86px clamp(20px, 5vw, 80px); }
.intro, .doctor-section, .appointment { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 520px); gap: clamp(34px, 5vw, 72px); align-items: center; max-width: 1180px; margin: 0 auto; }
.doctor-section { max-width: none; grid-template-columns: minmax(280px, 430px) minmax(0, 680px); justify-content: center; background: var(--light); }
.section-copy p, .section-heading p { color: var(--muted); font-size: 18px; }
.lead { color: var(--ink) !important; font-weight: 800; }
.rounded-image, .doctor-photo { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border: 9px solid var(--white); box-shadow: var(--shadow); }
.doctor-photo { aspect-ratio: 3 / 4; object-position: top; }
.feature-list { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.feature-list span, .check-list li { padding: 10px 14px; color: var(--primary); background: #e7f5fb; font-weight: 800; }
.check-list { display: grid; gap: 10px; padding: 0; margin: 20px 0; list-style: none; }
.text-link { color: var(--primary); font-weight: 800; text-transform: uppercase; border-bottom: 2px solid var(--accent); }
.centered { max-width: 780px; margin: 0 auto 38px; text-align: center; }
.services { background: var(--white); }
.service-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; max-width: 1180px; margin: 0 auto; }
.service-card { overflow: hidden; background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow); }
.service-card img { width: 100%; height: 205px; object-fit: cover; background: var(--light); }
.service-card h3, .service-card p, .service-card a { margin-left: 22px; margin-right: 22px; }
.service-card h3 { margin-top: 24px; color: var(--primary); }
.service-card p { color: var(--muted); }
.service-card a { display: inline-flex; margin-bottom: 24px; padding: 9px 15px; color: var(--white); background: var(--primary); font-size: 13px; font-weight: 800; text-transform: uppercase; }
.equipment { background: var(--light); }
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; max-width: 1100px; margin: 0 auto; }
.gallery-grid img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border: 8px solid var(--white); box-shadow: var(--shadow); }
.appointment { max-width: none; grid-template-columns: minmax(0, 0.9fr) minmax(320px, 520px); padding-left: clamp(20px, 7vw, 110px); padding-right: clamp(20px, 7vw, 110px); background: linear-gradient(135deg, var(--primary-dark), var(--primary)); color: var(--white); }
.appointment-copy { max-width: 620px; justify-self: end; }
.appointment p { color: rgba(255,255,255,0.86); font-weight: 600; }
.contact-strip { display: grid; gap: 10px; margin-top: 24px; }
.contact-strip a { color: #bff9f3; font-weight: 800; }
.appointment-form { display: grid; gap: 14px; padding: 28px; background: var(--white); color: var(--ink); box-shadow: var(--shadow); }
.appointment-form label { display: grid; gap: 6px; font-weight: 800; }
.appointment-form input, .appointment-form select, .appointment-form textarea { width: 100%; border: 1px solid var(--line); padding: 13px 14px; color: var(--ink); font: inherit; background: var(--white); }
.appointment-form textarea { resize: vertical; }
.map-section iframe { display: block; width: 100%; height: 430px; border: 0; }
.site-footer { color: rgba(255,255,255,0.84); background: #08213a; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 0.8fr 1fr 1.1fr; gap: 34px; max-width: 1180px; margin: 0 auto; padding: 58px 22px 36px; }
.footer-grid img { width: 86px; margin-bottom: 12px; }
.footer-grid h3 { color: var(--white); text-transform: uppercase; }
.footer-grid a { display: block; margin: 8px 0; color: rgba(255,255,255,0.84); }
.footer-grid a:hover { color: #bff9f3; }
.copyright { margin: 0; padding: 16px 22px; text-align: center; color: rgba(255,255,255,0.72); background: #061727; }

@media (max-width: 960px) {
  .top-strip, .header-info { display: none; }
  .brand-row { grid-template-columns: 1fr auto; }
  .nav-toggle { display: block; }
  .site-nav { display: none; flex-direction: column; align-items: stretch; }
  .site-nav.is-open { display: flex; }
  .site-nav a { border-top: 1px solid rgba(255,255,255,0.2); }
  .quick-cards, .intro, .doctor-section, .appointment, .footer-grid { grid-template-columns: 1fr; }
  .appointment-copy { justify-self: start; }
  .service-grid, .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .brand { font-size: 18px; }
  .brand img { width: 58px; }
  .hero { min-height: 520px; padding-top: 70px; }
  .quick-cards, .service-grid, .gallery-grid { grid-template-columns: 1fr; }
  .section { padding-top: 62px; padding-bottom: 62px; }
  .service-card img { height: 190px; }
}

.page-hero {
  padding: 82px clamp(20px, 6vw, 90px);
  color: var(--white);
  background: linear-gradient(90deg, rgba(5, 46, 82, 0.94), rgba(8, 86, 137, 0.72)), url("../images/hero-eye-care.jpg") center / cover;
}

.page-hero h1 {
  max-width: 980px;
  margin: 0;
  font-size: clamp(38px, 6vw, 68px);
}

.page-content {
  max-width: 1120px;
  margin: 0 auto;
  padding: 76px 22px;
}

.wp-content h2 {
  margin-top: 34px;
  color: var(--primary);
  font-size: clamp(28px, 4vw, 44px);
}

.wp-content h3 {
  color: var(--primary-dark);
}

.wp-content p,
.wp-content li {
  color: var(--muted);
  font-size: 17px;
}

.wp-content img {
  width: min(100%, 820px);
  max-height: 620px;
  object-fit: cover;
  margin: 26px auto;
  border: 8px solid var(--white);
  box-shadow: var(--shadow);
}

.wp-content .appointment-form {
  max-width: 560px;
  margin: 30px 0;
  border: 1px solid var(--line);
}

.wp-content iframe {
  width: 100%;
  min-height: 420px;
  border: 0;
  box-shadow: var(--shadow);
}

.page-grid {
  max-width: none;
}

.blog-list article {
  padding: 28px;
  border-left: 5px solid var(--accent);
  background: var(--light);
}

.page-appointment {
  margin: 0;
  max-width: none;
}

.site-nav a.active {
  background: var(--primary-dark);
}

/* Clean hand-coded inner pages */
.inner-hero {
  min-height: 360px;
  display: grid;
  align-items: center;
  padding: 80px clamp(20px, 6vw, 90px);
  color: var(--white);
  background: linear-gradient(90deg, rgba(5, 46, 82, 0.92), rgba(8, 86, 137, 0.64)), var(--hero-image) center / cover;
}

.inner-hero > div {
  max-width: 850px;
}

.inner-hero h1 {
  margin: 0 0 14px;
  font-size: clamp(40px, 7vw, 74px);
}

.inner-hero p:last-child {
  max-width: 680px;
  color: rgba(255,255,255,0.9);
  font-size: 20px;
  font-weight: 700;
}

.split-section,
.doctor-profile,
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 520px);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
  max-width: 1180px;
  margin: 0 auto;
  padding: 82px 22px;
}

.doctor-profile {
  grid-template-columns: minmax(280px, 430px) minmax(0, 1fr);
}

.doctor-portrait {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: top;
  border: 9px solid var(--white);
  box-shadow: var(--shadow);
}

.stat-band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 22px 78px;
}

.stat-band article {
  padding: 30px;
  color: var(--white);
  background: var(--primary);
  border-bottom: 5px solid var(--accent);
  box-shadow: var(--shadow);
}

.stat-band article:nth-child(2) {
  background: var(--accent);
  border-color: var(--primary);
}

.stat-band strong {
  display: block;
  font-size: 34px;
  line-height: 1;
}

.stat-band span {
  font-weight: 800;
}

.light-section {
  background: var(--light);
}

.credential-grid,
.contact-card-grid,
.blog-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  max-width: 1080px;
  margin: 0 auto;
}

.credential-grid article,
.contact-card-grid article {
  padding: 26px;
  background: var(--white);
  border-left: 5px solid var(--accent);
  box-shadow: var(--shadow);
}

.credential-grid h3,
.contact-card-grid strong {
  display: block;
  color: var(--primary);
}

.contact-card-grid span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-weight: 700;
}

.cta-band {
  display: grid;
  justify-items: center;
  gap: 14px;
  padding: 64px 22px;
  color: var(--white);
  text-align: center;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
}

.cta-band h2,
.cta-band p {
  max-width: 840px;
  margin: 0;
}

.cta-band p {
  color: rgba(255,255,255,0.85);
  font-weight: 700;
}

.masonry-gallery {
  columns: 3 280px;
  column-gap: 18px;
  max-width: 1160px;
  margin: 0 auto;
}

.gallery-item {
  display: block;
  width: 100%;
  margin: 0 0 18px;
  padding: 0;
  overflow: hidden;
  border: 8px solid var(--white);
  background: var(--white);
  box-shadow: var(--shadow);
  cursor: pointer;
  break-inside: avoid;
}

.gallery-item img {
  width: 100%;
  height: auto;
  transition: transform 180ms ease;
}

.gallery-item:hover img {
  transform: scale(1.04);
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(4, 21, 36, 0.88);
}

.lightbox.is-open {
  display: flex;
}

.lightbox img {
  max-width: min(100%, 1040px);
  max-height: 82vh;
  object-fit: contain;
  box-shadow: var(--shadow);
}

.lightbox-close {
  position: absolute;
  top: 22px;
  right: 22px;
  padding: 10px 16px;
  border: 0;
  color: var(--primary);
  background: var(--white);
  font-weight: 800;
  cursor: pointer;
}

.blog-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.blog-grid article {
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.blog-grid img {
  width: 100%;
  height: 210px;
  object-fit: cover;
}

.blog-grid article > div {
  padding: 24px;
}

.blog-grid a {
  color: var(--primary);
  font-weight: 800;
  text-transform: uppercase;
  border-bottom: 2px solid var(--accent);
}

.contact-layout {
  grid-template-columns: minmax(0, 1fr) minmax(320px, 500px);
  align-items: start;
}

.contact-details h2 {
  max-width: 720px;
}

.contact-form-panel {
  padding: 28px;
  background: var(--light);
  box-shadow: var(--shadow);
}

.contact-form-panel h2 {
  margin-bottom: 18px;
  color: var(--primary);
  font-size: clamp(26px, 3vw, 38px);
}

.contact-form-panel .appointment-form {
  padding: 0;
  background: transparent;
  box-shadow: none;
}

.appointment-form textarea {
  min-height: 112px;
}

.appointment-only {
  align-items: center;
}

.map-section iframe {
  display: block;
  width: 100%;
  height: clamp(360px, 42vw, 520px);
  border: 0;
}

@media (max-width: 960px) {
  .split-section,
  .doctor-profile,
  .contact-layout,
  .stat-band,
  .credential-grid,
  .contact-card-grid,
  .blog-grid {
    grid-template-columns: 1fr;
  }

  .inner-hero {
    min-height: 300px;
    padding-top: 62px;
    padding-bottom: 62px;
  }

  .contact-form-panel {
    padding: 22px;
  }
}

@media (max-width: 640px) {
  .inner-hero p:last-child {
    font-size: 17px;
  }

  .split-section,
  .doctor-profile,
  .contact-layout {
    padding-top: 58px;
    padding-bottom: 58px;
  }

  .stat-band {
    padding-bottom: 58px;
  }

  .masonry-gallery {
    columns: 1;
  }
}

.featured-post-wrap {
  max-width: 980px;
  margin: 0 auto;
}

.featured-post {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1fr);
  gap: 0;
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow);
}

.featured-post img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
}

.featured-post div {
  padding: clamp(26px, 5vw, 54px);
}

.single-post {
  max-width: 900px;
  margin: 0 auto;
  padding: 82px 22px;
}

.single-post article {
  padding: clamp(28px, 5vw, 58px);
  background: var(--white);
  border-top: 6px solid var(--accent);
  box-shadow: var(--shadow);
}

.single-post h2 {
  color: var(--primary);
}

.post-meta {
  color: var(--accent);
  font-weight: 800;
  text-transform: uppercase;
}

.post-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button.outline {
  color: var(--primary);
  background: var(--white);
  border: 2px solid var(--primary);
}

@media (max-width: 760px) {
  .featured-post {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 420px) {
  .brand-row {
    padding: 10px 14px;
  }

  .brand {
    gap: 9px;
    font-size: 16px;
  }

  .brand img {
    width: 52px;
  }

  .inner-hero,
  .hero {
    padding-left: 16px;
    padding-right: 16px;
  }

  .contact-layout,
  .split-section,
  .doctor-profile,
  .section {
    padding-left: 16px;
    padding-right: 16px;
  }

  .contact-form-panel,
  .appointment-form,
  .single-post article {
    padding: 18px;
  }

  .contact-form-panel .appointment-form {
    padding: 0;
  }

  .appointment-form input,
  .appointment-form select,
  .appointment-form textarea {
    padding: 12px;
  }

  .site-nav a {
    padding: 13px 18px;
  }
}
