/* Keratoconus Specialists of Maryland - site styles */
:root {
  --navy: #0b3a5b;
  --brand: #005e85;
  --sky: #01a1e0;
  --sky-soft: #e6f5fc;
  --ink: #17232f;
  --muted: #5a6a79;
  --line: #dde6ee;
  --tint: #f4f8fb;
  --white: #fff;
  --radius: 14px;
  --shadow: 0 10px 30px -12px rgba(11, 58, 91, .25);
  --wrap: 1180px;
  --head: 'Plus Jakarta Sans', 'Segoe UI', system-ui, sans-serif;
  --body: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 17px/1.7 var(--body); color: var(--ink); background: var(--white); overflow-x: hidden; overflow-x: clip; }
img { max-width: 100%; height: auto; }
a { color: var(--brand); text-underline-offset: 3px; }
a:hover { color: var(--sky); }
h1, h2, h3, h4 { font-family: var(--head); color: var(--navy); line-height: 1.2; letter-spacing: -.01em; margin: 1.6em 0 .55em; }
h1 { font-size: clamp(2rem, 4.2vw, 3rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 2.8vw, 2.1rem); font-weight: 700; }
h3 { font-size: 1.3rem; font-weight: 700; }
h4 { font-size: 1.08rem; }
p { margin: 0 0 1.1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 22px; }
.center { text-align: center; }
.skip { position: absolute; left: -999px; top: 0; background: var(--navy); color: #fff; padding: 10px 16px; z-index: 100; }
.skip:focus { left: 10px; }
.ico { width: 1.05em; height: 1.05em; vertical-align: -.15em; flex: none; }

/* Top bar + header */
.topbar { background: var(--navy); color: #cfe3f0; font-size: 14px; }
.topbar-in { display: flex; justify-content: space-between; gap: 16px; padding-top: 7px; padding-bottom: 7px; flex-wrap: wrap; }
.topbar span { display: inline-flex; gap: 8px; align-items: center; }
.topbar a { color: #fff; text-decoration: none; font-weight: 500; margin-left: 18px; }
.topbar a:hover { color: var(--sky); }
.top-phone { display: inline-flex; gap: 6px; align-items: center; }
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .97); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid transparent; transition: box-shadow .2s, border-color .2s; }
.site-header.scrolled { box-shadow: 0 6px 24px -14px rgba(11, 58, 91, .45); border-color: var(--line); }
.head-in { display: flex; align-items: center; gap: 24px; min-height: 78px; }
.logo img { display: block; width: 230px; height: auto; }
.site-nav { margin-left: auto; display: flex; align-items: center; gap: 18px; }
.menu { list-style: none; display: flex; gap: 2px; margin: 0; padding: 0; }
.menu > li { position: relative; }
.menu > li > a, .menu > li > span { display: block; padding: 10px 12px; color: var(--ink); text-decoration: none; font-weight: 500; font-size: 15.5px; border-radius: 8px; cursor: pointer; }
.menu > li > a:hover, .menu > li:hover > span { color: var(--brand); background: var(--tint); }
.has-sub > a::after, .has-sub > span::after { content: ''; display: inline-block; width: 6px; height: 6px; margin-left: 7px; border: solid currentColor; border-width: 0 1.6px 1.6px 0; transform: rotate(45deg) translateY(-3px); opacity: .6; }
.sub { list-style: none; position: absolute; left: 0; top: 100%; min-width: 260px; padding: 10px; margin: 0; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(6px); transition: .18s; }
.has-sub:hover > .sub, .has-sub:focus-within > .sub { opacity: 1; visibility: visible; transform: none; }
.sub a { display: block; padding: 8px 12px; color: var(--ink); text-decoration: none; border-radius: 8px; font-size: 15px; line-height: 1.35; }
.sub a:hover { background: var(--sky-soft); color: var(--brand); }
.sub-head { padding: 10px 12px 4px; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.sub-toggle { display: none; }
.nav-toggle { display: none; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 24px; border-radius: 999px; font: 600 15.5px/1.2 var(--body); text-decoration: none; border: 2px solid transparent; transition: .18s; text-align: center; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--navy); color: #fff; transform: translateY(-1px); }
.btn-outline { border-color: var(--brand); color: var(--brand); background: transparent; }
.btn-outline:hover { background: var(--brand); color: #fff; }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { background: var(--sky-soft); color: var(--navy); }
.btn-outline-light { border-color: rgba(255, 255, 255, .8); color: #fff; }
.btn-outline-light:hover { background: #fff; color: var(--navy); }
.btn-row { margin: 1.4em 0; }
.nav-cta { padding: 11px 18px; font-size: 14.5px; white-space: nowrap; }

/* Hero (home) */
.hero { position: relative; color: #fff; background: linear-gradient(100deg, rgba(8, 40, 64, .94) 0%, rgba(8, 48, 78, .82) 45%, rgba(0, 94, 133, .35) 100%), var(--hero) center/cover no-repeat; }
.hero-in { padding-top: clamp(64px, 10vw, 128px); padding-bottom: clamp(64px, 10vw, 128px); max-width: var(--wrap); }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: 13px; font-weight: 600; color: #9fdcf5; margin-bottom: 18px; }
.hero-title { font: 800 clamp(2.1rem, 5vw, 3.6rem)/1.1 var(--head); max-width: 760px; margin: 0 0 20px; letter-spacing: -.02em; }
.hero-sub { font-size: clamp(1.05rem, 1.6vw, 1.25rem); max-width: 620px; color: #dbeaf3; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }

/* Inner page band */
.page-band { position: relative; color: #fff; background: linear-gradient(90deg, rgba(8, 40, 64, .95) 0%, rgba(8, 48, 78, .86) 55%, rgba(0, 94, 133, .55) 100%), var(--band) center/cover no-repeat; }
.page-band .wrap { padding-top: 46px; padding-bottom: 50px; }
.page-band.slim .wrap { padding-top: 18px; padding-bottom: 18px; }
.page-band h1 { color: #fff; margin: 10px 0 0; max-width: 900px; }
.post-meta { margin: 14px 0 0; color: #cfe3f0; font-size: 15px; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; font-size: 14px; color: #b9d6e7; }
.crumbs li + li::before { content: '/'; margin-right: 6px; opacity: .6; }
.crumbs a { color: #e3f1f9; text-decoration: none; }
.crumbs a:hover { color: #fff; text-decoration: underline; }

/* Content */
.content { padding-top: 44px; padding-bottom: 72px; }
.prose { max-width: 100%; }
.prose > :first-child, .prose .row:first-child > :first-child, .prose .col > :first-child { margin-top: 0; }
.prose h1 { margin-top: .2em; }
.home .prose h1 { text-align: center; font-size: clamp(1.8rem, 3.4vw, 2.6rem); max-width: 900px; margin-left: auto; margin-right: auto; }
.prose h2.center, .prose h3.center { margin-left: auto; margin-right: auto; max-width: 860px; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.prose li { margin: .3em 0; }
.prose .lead { font-size: 1.15rem; color: var(--muted); }
.prose p, .prose > ul, .prose > ol, .prose .col > ul, .prose .col > ol { max-width: 78ch; }
.prose p[style*="center"], .prose .center p, .prose p.center { margin-left: auto; margin-right: auto; }
.row { margin: 0 0 8px; }
.row.grid { display: flex; flex-wrap: wrap; gap: 28px 40px; align-items: flex-start; }
.col { min-width: 0; flex: 1 1 100%; }
.grid > .w-1-2 { flex: 1 1 calc(50% - 20px); }
.grid > .w-1-3 { flex: 1 1 calc(33.333% - 27px); }
.grid > .w-2-3 { flex: 1 1 calc(66.666% - 14px); }
.grid > .w-1-4 { flex: 1 1 calc(25% - 30px); }
.grid > .w-3-4 { flex: 1 1 calc(75% - 10px); }
.grid > .w-1-6 { flex: 1 1 calc(16.666% - 34px); }
.grid > .w-5-6 { flex: 1 1 calc(83.333% - 6px); }
.prose img { border-radius: 12px; }
.alignright { float: right; margin: 6px 0 18px 32px; max-width: 46%; }
.alignleft { float: left; margin: 6px 32px 18px 0; max-width: 46%; }
.aligncenter { display: block; margin: 20px auto; }
.prose p::after { content: ''; display: table; clear: both; }
figure { margin: 0 0 1.4em; }
figcaption { font-size: 14px; color: var(--muted); margin-top: 8px; }
.prose figure.alignright, .prose figure.alignleft { width: auto; }
.prose iframe { max-width: 100%; border: 0; border-radius: 12px; }
.prose iframe[src*="vimeo"], .prose iframe[src*="youtube"] { width: 100%; aspect-ratio: 16 / 9; height: auto; }
.map iframe { width: 100%; height: 380px; border: 0; border-radius: var(--radius); display: block; }
.map { margin: 1.5em 0; box-shadow: var(--shadow); border-radius: var(--radius); }

/* Bands inside content (former full-width rows) */
.band { margin: 48px calc(50% - 50vw); padding: 56px 0; }
.band-in { max-width: var(--wrap); margin: 0 auto; padding: 0 22px; }
.band-brand { background: linear-gradient(120deg, var(--navy), var(--brand)); color: #e7f3fa; }
.band-brand h1, .band-brand h2, .band-brand h3, .band-brand h4 { color: #fff; }
.band-brand a:not(.btn) { color: #9fdcf5; }
.band-brand .btn-primary { background: #fff; color: var(--navy); }
.band-brand .btn-outline { border-color: #fff; color: #fff; }
.band-brand .btn-outline:hover { background: #fff; color: var(--navy); }
.band-tint, .band-plain { background: var(--tint); }
.band > .band-in > :first-child { margin-top: 0; }

/* Cards (former quickfinders) */
.cards { display: grid; gap: 22px; margin: 34px 0; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.card { display: block; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px; text-decoration: none; color: var(--ink); transition: .2s; box-shadow: 0 1px 0 rgba(11, 58, 91, .04); }
a.card:hover { border-color: var(--sky); box-shadow: var(--shadow); transform: translateY(-3px); color: var(--ink); }
.card .ico { width: 46px; height: 46px; padding: 10px; border-radius: 12px; background: var(--sky-soft); color: var(--brand); }
.card h3 { margin: 16px 0 6px; font-size: 1.12rem; }
.card p { margin: 0; color: var(--muted); font-size: 15.5px; line-height: 1.55; }
.band-brand .card { background: rgba(255, 255, 255, .07); border-color: rgba(255, 255, 255, .18); color: #e7f3fa; }
.band-brand .card h3 { color: #fff; }
.band-brand .card p { color: #cfe3f0; }
.band-brand .card .ico { background: rgba(255, 255, 255, .12); color: #9fdcf5; }

/* Checklists, FAQ, CTA box, steps */
.checklist ul { list-style: none; padding: 0; }
.checklist li { position: relative; padding-left: 34px; margin: .55em 0; }
.checklist li::before { content: ''; position: absolute; left: 0; top: .38em; width: 20px; height: 20px; border-radius: 50%; background: var(--sky-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23005e85' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12l4 4 8-8'/%3E%3C/svg%3E") center/13px no-repeat; }
.faq { border: 1px solid var(--line); border-radius: 12px; margin: 12px 0; background: #fff; transition: border-color .2s; }
.faq[open] { border-color: var(--sky); box-shadow: 0 6px 20px -14px rgba(0, 94, 133, .5); }
.faq summary { cursor: pointer; list-style: none; padding: 17px 52px 17px 20px; font: 600 1.03rem/1.4 var(--head); color: var(--navy); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); width: 26px; height: 26px; border-radius: 50%; background: var(--sky-soft); color: var(--brand); display: grid; place-items: center; font: 500 20px/1 var(--body); }
.faq[open] summary::after { content: '–'; }
.faq-a { padding: 0 20px 6px; color: #2b3a48; }
.cta-box { background: var(--tint); border-left: 4px solid var(--sky); border-radius: 12px; padding: 26px 28px; margin: 2em 0; }
.cta-box h2 { margin-top: 0; font-size: 1.45rem; }
.steps { border: 1px solid rgba(255, 255, 255, .3); border-radius: var(--radius); padding: 26px; }
.step-num { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #fff; color: var(--navy); font-weight: 700; margin-right: 10px; float: left; }

/* Reviews */
.reviews { margin: 40px 0; padding: 34px; background: var(--tint); border-radius: 20px; }
.reviews-head { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; margin-bottom: 24px; }
.reviews-head p { margin: 0; color: var(--muted); }
.reviews .big { font: 800 2.6rem/1 var(--head); color: var(--navy); }
.stars { color: #f5a623; letter-spacing: 2px; font-size: 1.15rem; }
.review-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.review { margin: 0; background: #fff; border-radius: var(--radius); padding: 22px; border: 1px solid var(--line); display: flex; flex-direction: column; }
.review blockquote { margin: 10px 0 16px; font-size: 15.5px; line-height: 1.6; color: #2b3a48; flex: 1; }
.review figcaption { margin: 0; display: flex; flex-direction: column; font-size: 14px; }
.review figcaption strong { color: var(--navy); font-size: 15px; }

/* Menu grids (state / city lists) */
.menu-grid { display: grid; gap: 18px 28px; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); margin: 24px 0; }
.menu-group h4 { margin: 0 0 6px; }
.menu-group h4 a { text-decoration: none; color: var(--navy); }
.menu-group ul { list-style: none; padding: 0; margin: 0; font-size: 15px; }
.menu-group li { margin: 3px 0; }
.menu-group li a { text-decoration: none; color: var(--muted); }
.menu-group li a:hover { color: var(--brand); }

/* Contact form */
.form-wrap { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); margin: 1.5em 0; }
.icon-line { font-weight: 500; }

/* Blog */
.post-grid { display: grid; gap: 24px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); margin: 26px 0; }
.post-card { display: flex; flex-direction: column; text-decoration: none; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: .2s; }
.post-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); color: var(--ink); }
.post-card img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; border-radius: 0; }
.post-card small { padding: 16px 20px 0; color: var(--muted); }
.post-card span { padding: 8px 20px 0; font: 700 1.08rem/1.35 var(--head); color: var(--navy); }
.post-card p { padding: 8px 20px 20px; margin: 0; color: var(--muted); font-size: 15px; }
.post-card > span:last-child { padding-bottom: 20px; }
.post { max-width: 820px; margin: 0 auto; }
.related { max-width: var(--wrap); margin: 60px auto 0; border-top: 1px solid var(--line); padding-top: 10px; }

/* Pre-footer CTA + footer */
.cta-band { background: linear-gradient(120deg, var(--brand), var(--sky)); color: #fff; }
.cta-in { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding-top: 46px; padding-bottom: 46px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; margin: 0 0 6px; }
.cta-band p { margin: 0; color: #e6f5fc; max-width: 640px; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.site-footer { background: #0a2536; color: #b8cad7; font-size: 15px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-top: 60px; padding-bottom: 44px; }
.foot-logo { width: 230px; height: auto; margin-bottom: 14px; }
.site-footer h3 { color: #fff; font-size: 1rem; margin: 0 0 14px; letter-spacing: .02em; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: 7px 0; line-height: 1.4; }
.site-footer a { color: #d5e4ee; text-decoration: none; }
.site-footer a:hover { color: var(--sky); }
.nap { display: flex; gap: 10px; align-items: flex-start; margin: 10px 0; }
.nap .ico { margin-top: 4px; color: var(--sky); }
.foot-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid rgba(255, 255, 255, .1); padding-top: 18px; padding-bottom: 22px; font-size: 14px; }
.foot-links { display: flex; gap: 18px; }

/* Legacy inline styles from the old page builder */
.prose [style*="color: #ffffff"], .prose [style*="color:#ffffff"] { color: inherit !important; }
.prose .vc_custom_heading, .raw style + * { max-width: 100%; }

/* Responsive */
@media (max-width: 1080px) {
  .nav-toggle { display: inline-grid; place-items: center; margin-left: auto; width: 46px; height: 46px; border: 1px solid var(--line); border-radius: 10px; background: #fff; cursor: pointer; }
  .nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { display: block; width: 20px; height: 2px; background: var(--navy); position: relative; transition: .2s; }
  .nav-toggle span::before, .nav-toggle span::after { content: ''; position: absolute; left: 0; }
  .nav-toggle span::before { top: -6px; }
  .nav-toggle span::after { top: 6px; }
  .nav-open .nav-toggle span { background: transparent; }
  .nav-open .nav-toggle span::before { top: 0; transform: rotate(45deg); }
  .nav-open .nav-toggle span::after { top: 0; transform: rotate(-45deg); }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-top: 1px solid var(--line); box-shadow: var(--shadow); padding: 12px 22px 22px; flex-direction: column; align-items: stretch; max-height: calc(100vh - 120px); overflow: auto; }
  .nav-open .site-nav { display: flex; }
  .menu { flex-direction: column; }
  .menu > li { border-bottom: 1px solid var(--line); }
  .menu > li > a, .menu > li > span { padding: 14px 4px; font-size: 16.5px; }
  .has-sub > a::after, .has-sub > span::after { display: none; }
  .sub-toggle { display: block; position: absolute; right: 0; top: 6px; width: 44px; height: 40px; border: 0; background: none; cursor: pointer; }
  .sub-toggle::after { content: ''; position: absolute; left: 17px; top: 13px; width: 8px; height: 8px; border: solid var(--navy); border-width: 0 2px 2px 0; transform: rotate(45deg); transition: .2s; }
  .open > .sub-toggle::after { transform: rotate(-135deg); top: 18px; }
  .sub { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 10px 8px; display: none; min-width: 0; }
  .has-sub:hover > .sub { display: none; }
  .has-sub.open > .sub { display: block; }
  .nav-cta { margin-top: 16px; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  body { font-size: 16.5px; }
  .topbar-in > span:first-child { display: none; }
  .topbar-in { justify-content: center; }
  .head-in { min-height: 66px; }
  .logo img { width: 190px; }
  .row.grid { gap: 8px; }
  .grid > .col { flex-basis: 100%; }
  .alignright, .alignleft { float: none; margin: 12px 0 20px; max-width: 100%; }
  .reviews { padding: 22px; margin-left: -6px; margin-right: -6px; }
  .foot-grid { grid-template-columns: 1fr; gap: 28px; }
  .cta-actions .btn, .hero-actions .btn { width: 100%; }
  .map iframe { height: 300px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
