/* =========================================================
   Global Complex Eye Care — lasikfailures.com
   Shared stylesheet. Every page links to this one file.
   Change a color here and it changes on the whole site.
   ========================================================= */

:root {
  --navy: #1f3550;        /* headings, header text */
  --navy-2: #3a5370;      /* original theme slate-blue */
  --blue: #2f8fc4;        /* buttons, links (darkened from #48afdb for readability) */
  --blue-light: #48afdb;  /* original theme accent */
  --sky: #eef6fb;         /* soft section background */
  --ink: #2b2f3a;         /* body text */
  --muted: #5d6878;
  --line: #d6dde3;
  --white: #ffffff;
  --radius: 10px;
  --max: 1160px;
  --font-head: "Montserrat", system-ui, sans-serif;
  --font-body: "Open Sans", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); }
a:hover { color: var(--navy); }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--navy); line-height: 1.25; margin: 0 0 .6em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.1rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 600; }
p { margin: 0 0 1em; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 22px; }
.section { padding: 76px 0; }
.section--sky { background: var(--sky); }
.section--navy { background: var(--navy); color: #dbe6f1; }
.section--navy h2, .section--navy h3 { color: var(--white); }
.eyebrow { font-family: var(--font-head); font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--blue); margin-bottom: .7em; display: block; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 760px; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }

/* ---------- Buttons ---------- */
.btn { display: inline-block; font-family: var(--font-head); font-weight: 600; font-size: 1rem; padding: 14px 26px; border-radius: 999px; text-decoration: none; border: 2px solid transparent; transition: background .2s, color .2s, border-color .2s; }
.btn--primary { background: var(--blue); color: var(--white); }
.btn--primary:hover { background: var(--navy); color: var(--white); }
.btn--outline { border-color: var(--blue); color: var(--blue); background: transparent; }
.btn--outline:hover { background: var(--blue); color: var(--white); }
.btn--white { background: var(--white); color: var(--navy); }
.btn--white:hover { background: var(--sky); color: var(--navy); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 1.4em; }
.center .btn-row { justify-content: center; }

/* ---------- Top bar + header ---------- */
.topbar { background: var(--navy); color: #c9d6e4; font-size: .88rem; }
.topbar .container { display: flex; justify-content: space-between; gap: 12px; padding-top: 8px; padding-bottom: 8px; flex-wrap: wrap; }
.topbar a { color: var(--white); text-decoration: none; font-weight: 600; }

.header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.97); border-bottom: 1px solid var(--line); }
.header .container { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 76px; }
.brand { text-decoration: none; display: flex; flex-direction: column; line-height: 1.15; }
.brand__name { white-space: nowrap; font-family: var(--font-head); font-weight: 700; font-size: 1.15rem; color: var(--navy); }
.brand__sub { font-size: .78rem; color: var(--muted); letter-spacing: .03em; }

.nav > ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; align-items: center; }
.nav li { position: relative; }
.nav a { display: block; padding: 10px 10px; white-space: nowrap; font-family: var(--font-head); font-size: .86rem; font-weight: 600; color: var(--navy); text-decoration: none; border-radius: 6px; }
.nav a:hover { background: var(--sky); color: var(--blue); }
.nav .sub { display: none; position: absolute; left: 0; top: 100%; min-width: 250px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 12px 30px rgba(31,53,80,.12); list-style: none; margin: 0; padding: 8px; }
.nav li:hover > .sub, .nav li:focus-within > .sub { display: block; }
.nav .sub a { font-weight: 500; }
.nav .nav-cta a { background: var(--blue); color: var(--white); border-radius: 999px; padding: 10px 18px; }
.nav .nav-cta a:hover { background: var(--navy); color: var(--white); }

/* Mobile menu uses <details>, so it needs no JavaScript */
.menu-toggle { display: none; }
.menu-toggle summary { list-style: none; cursor: pointer; font-family: var(--font-head); font-weight: 700; color: var(--navy); padding: 10px 14px; border: 1px solid var(--line); border-radius: 8px; }
.menu-toggle summary::-webkit-details-marker { display: none; }

@media (max-width: 1180px) {
  .nav--desktop { display: none; }
  .menu-toggle { display: block; }
  .menu-toggle .nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--white); border-bottom: 1px solid var(--line); padding: 10px 22px 20px; max-height: 75vh; overflow-y: auto; }
  .menu-toggle .nav > ul { flex-direction: column; align-items: stretch; }
  .menu-toggle .nav .sub { display: block; position: static; box-shadow: none; border: 0; padding: 0 0 0 14px; }
}

/* ---------- Hero ---------- */
.hero { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 55%, #2f6f97 100%); color: #dfe9f3; padding: 92px 0 84px; position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; right: -120px; top: -120px; width: 520px; height: 520px; border-radius: 50%; border: 60px solid rgba(255,255,255,.05); }
.hero h1 { color: var(--white); max-width: 820px; }
.hero .lead { color: #cfdceb; }
.hero .eyebrow { color: #9fd3ee; }
.hero__badges { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 34px; font-size: .92rem; color: #b9cbdd; }
.hero__badges span::before { content: "✓ "; color: var(--blue-light); font-weight: 700; }

/* ---------- Grids + cards ---------- */
.grid { display: grid; gap: 24px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .grid--3, .grid--4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .grid--3, .grid--4, .grid--2 { grid-template-columns: 1fr; } }

.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; }
.card p { color: var(--muted); }
.card .more { margin-top: auto; font-family: var(--font-head); font-weight: 600; text-decoration: none; }
.card .more::after { content: " →"; }
.card__icon { width: 46px; height: 46px; border-radius: 12px; background: var(--sky); color: var(--blue); display: grid; place-items: center; font-family: var(--font-head); font-weight: 700; margin-bottom: 16px; }

.symptoms { list-style: none; padding: 0; margin: 26px 0 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px 30px; }
.symptoms li { padding-left: 30px; position: relative; }
.symptoms li::before { content: ""; position: absolute; left: 0; top: .45em; width: 16px; height: 16px; border-radius: 50%; border: 4px solid var(--blue-light); }
@media (max-width: 620px) { .symptoms { grid-template-columns: 1fr; } }

.split { display: grid; grid-template-columns: 1.1fr 1fr; gap: 54px; align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 30px; } }

.stat { border-left: 4px solid var(--blue-light); padding-left: 18px; }
.stat strong { display: block; font-family: var(--font-head); color: var(--white); font-size: 1.15rem; margin-bottom: 4px; }

/* Doctor cards — compact, link to bios */
.doc { text-align: left; }
.doc__photo { width: 84px; height: 84px; border-radius: 50%; background: var(--sky); border: 3px solid var(--white); box-shadow: 0 0 0 1px var(--line); display: grid; place-items: center; font-family: var(--font-head); font-weight: 700; color: var(--navy-2); margin-bottom: 16px; object-fit: cover; }
.doc__role { font-size: .9rem; color: var(--blue); font-weight: 600; margin-bottom: .6em; }

/* Articles */
.post { border-top: 3px solid var(--blue-light); }
.post h3 a { color: var(--navy); text-decoration: none; }
.post h3 a:hover { color: var(--blue); }

/* CTA band */
.cta-band { background: linear-gradient(120deg, var(--blue) 0%, var(--navy-2) 100%); color: var(--white); text-align: center; }
.cta-band h2 { color: var(--white); }
.cta-band .lead { margin-left: auto; margin-right: auto; }
.cta-band .btn-row { justify-content: center; }
.cta-band .lead { color: #e3eef8; }

/* Contact */
.contact-box { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; }
.contact-list { list-style: none; padding: 0; margin: 0 0 1.2em; }
.contact-list li { margin-bottom: .7em; }
.contact-list strong { font-family: var(--font-head); color: var(--navy); display: block; font-size: .85rem; letter-spacing: .06em; text-transform: uppercase; }
.big-phone { font-family: var(--font-head); font-size: 1.7rem; font-weight: 700; text-decoration: none; }

/* ---------- Footer ---------- */
.footer { background: #16263a; color: #a9b9cb; font-size: .93rem; padding: 60px 0 26px; }
.footer h4 { color: var(--white); font-size: .95rem; letter-spacing: .05em; text-transform: uppercase; }
.footer a { color: #d6e2ee; text-decoration: none; }
.footer a:hover { color: var(--white); text-decoration: underline; }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin-bottom: .45em; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; }
@media (max-width: 900px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer__grid { grid-template-columns: 1fr; } }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 40px; padding-top: 20px; font-size: .82rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* Sticky mobile call button */
.mobile-call { display: none; }
@media (max-width: 700px) {
  .mobile-call { display: block; position: fixed; bottom: 14px; left: 14px; right: 14px; z-index: 60; text-align: center; background: var(--blue); color: var(--white); font-family: var(--font-head); font-weight: 700; padding: 15px; border-radius: 999px; text-decoration: none; box-shadow: 0 8px 24px rgba(0,0,0,.25); }
  body { padding-bottom: 76px; }
}

/* Accessibility */
.skip { position: absolute; left: -999px; top: 0; background: var(--white); padding: 10px; z-index: 100; }
.skip:focus { left: 10px; }
:focus-visible { outline: 3px solid var(--blue-light); outline-offset: 2px; }

@media (max-width: 620px) {
  .topbar { display: none; }
  .menu-toggle summary { white-space: nowrap; padding: 8px 12px; }
  .brand__name { font-size: 1.05rem; }
  .brand__sub { font-size: .72rem; }
}

/* ---------- Additions for full site ---------- */
.section--tight { padding: 56px 0 40px; }
.btn--outline-light { border-color: var(--white); color: var(--white); background: transparent; }
.btn--outline-light:hover { background: var(--white); color: var(--navy); }
.eyebrow--light { color: #9fd3ee; }
.symptoms--one { grid-template-columns: 1fr; margin-top: 14px; }
.tile { display: flex; align-items: flex-end; min-height: 150px; padding: 22px; border-radius: var(--radius); text-decoration: none; color: var(--white); font-family: var(--font-head); font-weight: 700; font-size: 1.15rem; background: linear-gradient(140deg, var(--navy-2), var(--blue)); transition: transform .2s, box-shadow .2s; }
.tile:nth-child(2) { background: linear-gradient(140deg, #24496b, #3a8fb7); }
.tile:nth-child(3) { background: linear-gradient(140deg, #1f3550, #4f7ea3); }
.tile:nth-child(4) { background: linear-gradient(140deg, #2b3e63, #5a74a8); }
.tile:hover { color: var(--white); transform: translateY(-3px); box-shadow: 0 12px 26px rgba(31,53,80,.25); }
.tile span::after { content: " →"; }
.post--all { background: var(--sky); }

/* Inner page hero */
.page-hero { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%); color: #cfdceb; padding: 46px 0 40px; }
.page-hero h1 { color: var(--white); font-size: clamp(1.8rem, 3.6vw, 2.6rem); max-width: 900px; margin-bottom: .3em; }
.page-hero .meta { font-size: .92rem; color: #b9cbdd; }
.crumbs { font-size: .85rem; margin-bottom: 14px; color: #b9cbdd; }
.crumbs a { color: #dfe9f3; text-decoration: none; }
.crumbs a:hover { text-decoration: underline; color: var(--white); }

/* Article layout */
.page-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 50px; padding: 50px 22px 70px; }
@media (max-width: 960px) { .page-wrap { grid-template-columns: 1fr; } }
.prose { min-width: 0; }
.prose h2 { font-size: 1.6rem; margin-top: 1.4em; }
.prose h3 { font-size: 1.25rem; margin-top: 1.3em; }
.prose h4 { font-size: 1.05rem; margin-top: 1.2em; }
.prose img { border-radius: 8px; margin: 10px 0 18px; }
.prose img.alignright, .prose .alignright { float: right; margin: 6px 0 16px 24px; max-width: 45%; }
.prose img.alignleft, .prose .alignleft { float: left; margin: 6px 24px 16px 0; max-width: 45%; }
.prose .aligncenter { margin-left: auto; margin-right: auto; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .35em; }
.prose blockquote { border-left: 4px solid var(--blue-light); margin: 1.4em 0; padding: .4em 0 .4em 1.2em; color: var(--muted); font-style: italic; }
.prose table { border-collapse: collapse; width: 100%; margin: 1em 0; }
.prose td, .prose th { border: 1px solid var(--line); padding: 8px 10px; }
.prose::after { content: ""; display: table; clear: both; }
.vc-row { display: flex; flex-wrap: wrap; gap: 0 32px; clear: both; }
.vc-col { flex: 1 1 100%; min-width: 0; }
.vc-col.w-1-2 { flex: 1 1 calc(50% - 16px); }
.vc-col.w-1-3 { flex: 1 1 calc(33.33% - 22px); }
.vc-col.w-2-3 { flex: 1 1 calc(66.66% - 11px); }
.vc-col.w-1-4 { flex: 1 1 calc(25% - 24px); }
.vc-col.w-3-4 { flex: 1 1 calc(75% - 8px); }
@media (max-width: 760px) { .vc-col { flex-basis: 100% !important; } .prose img.alignright, .prose img.alignleft { float: none; max-width: 100%; margin: 10px 0; } }
.video { position: relative; padding-top: 56.25%; margin: 1.2em 0; border-radius: 10px; overflow: hidden; background: #000; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.dropcap { float: left; font-family: var(--font-head); font-size: 3.2em; line-height: .9; margin: 6px 10px 0 0; color: var(--navy-2); }
.faq details { border: 1px solid var(--line); border-radius: 8px; margin: 0 0 10px; background: var(--white); }
.faq summary { cursor: pointer; padding: 14px 18px; font-family: var(--font-head); font-weight: 600; color: var(--navy); }
.faq details[open] summary { border-bottom: 1px solid var(--line); }
.faq details > div { padding: 14px 18px 4px; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; margin: 1.2em 0; }
.gallery img { margin: 0; width: 100%; height: 180px; object-fit: cover; }
.team { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 22px; margin: 1.4em 0; }
.team .card { padding: 22px; }
.team img { width: 120px; height: 120px; object-fit: cover; border-radius: 50%; margin: 0 0 14px; }
.links-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; margin: 1.2em 0; }
.links-grid a { display: block; padding: 16px 18px; border-radius: 8px; background: var(--sky); border: 1px solid var(--line); font-family: var(--font-head); font-weight: 600; text-decoration: none; color: var(--navy); }
.links-grid a:hover { background: var(--blue); color: var(--white); }
.post-list { list-style: none; padding: 0 !important; margin: 1em 0; }
.post-list li { border-bottom: 1px solid var(--line); padding: 14px 0; margin: 0; }
.post-list a { font-family: var(--font-head); font-weight: 600; text-decoration: none; font-size: 1.05rem; }
.post-list .date { display: block; font-size: .85rem; color: var(--muted); }
.testimonial { background: var(--sky); border-radius: var(--radius); padding: 20px 24px; margin: 0 0 16px; }
.testimonial cite { display: block; margin-top: 8px; font-style: normal; font-weight: 600; color: var(--navy); }

/* Sidebar */
.sidebar { align-self: start; position: sticky; top: 96px; }
.sidebar .side-cta { background: var(--navy); color: #cfdceb; border-radius: var(--radius); padding: 26px; margin-bottom: 22px; }
.sidebar .side-cta h3 { color: var(--white); }
.sidebar .side-cta .big-phone { color: var(--white); display: block; margin: 6px 0 14px; font-size: 1.5rem; }
.sidebar .side-links { border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.sidebar .side-links ul { list-style: none; padding: 0; margin: 0; }
.sidebar .side-links li { border-bottom: 1px solid var(--line); }
.sidebar .side-links li:last-child { border-bottom: 0; }
.sidebar .side-links a { display: block; padding: 9px 0; text-decoration: none; font-size: .95rem; }
@media (max-width: 960px) { .sidebar { position: static; } }
.page-cta { background: var(--sky); border-radius: var(--radius); padding: 28px; margin-top: 40px; clear: both; }
.page-cta h2 { margin-top: 0 !important; font-size: 1.4rem !important; }
.prose img.featured { width: 100%; max-height: 420px; object-fit: cover; margin: 0 0 26px; }
.video-caption { text-align: center; font-family: var(--font-head); font-weight: 600; font-size: .9rem; color: var(--navy); margin-top: -8px; }
.bio-section { clear: both; margin-top: 44px; padding-top: 30px; border-top: 1px solid var(--line); scroll-margin-top: 100px; }
.bio { display: flex; gap: 28px; align-items: flex-start; }
.prose img.bio__photo { width: 180px; height: 180px; object-fit: cover; border-radius: 50%; margin: 0; flex: 0 0 auto; }
@media (max-width: 620px) { .bio { flex-direction: column; } .prose img.bio__photo { width: 140px; height: 140px; } }
.page-hero p.meta { color: #cfdceb; font-size: 1.05rem; margin: 0; }
.related { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); clear: both; }
.related h2 { font-size: 1.25rem !important; margin-top: 0 !important; }
.related ul { list-style: none; padding: 0 !important; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.related li { margin: 0; }
.related a { display: block; padding: 12px 14px; border: 1px solid var(--line); border-radius: 8px; text-decoration: none; font-weight: 600; font-size: .95rem; }
.related a:hover { background: var(--sky); }
@media (max-width: 620px) { .related ul { grid-template-columns: 1fr; } }
.prose img { height: auto; }
@media (max-width: 1180px) { .topbar span:first-child { font-size: .8rem; } }
.visit-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 0 0 30px; }
.visit-card { background: var(--sky); border-radius: var(--radius); padding: 22px; }
.visit-card h2 { font-size: 1.1rem !important; margin: 0 0 .5em !important; }
.visit-card .big-phone { font-size: 1.4rem; }
@media (max-width: 760px) { .visit-grid { grid-template-columns: 1fr; } }
