/* ==========================================================================
   McDowell Eye Care — site stylesheet
   Palette pays homage to the original site: deep navy + friendly blues.
   The accent colours come straight from the logo: the swoosh is #8080ff and
   turns #4040bf where it crosses the brow. The darker one carries the phone
   number / calls to action; the lighter one is used for small highlights.
   ========================================================================== */

:root {
  --navy: #22345a;
  --navy-soft: #3c5480;
  --blue: #3e6fc0;
  --blue-deep: #2f579b;
  --blue-bright: #5b8ad6;
  --sky: #eaf3fc;
  --sky-deep: #d7e7f8;
  --accent: #4040bf;
  --accent-deep: #33339c;
  --accent-light: #8080ff;
  --accent-pale: #c9c9ff;
  --ink: #2c3a52;
  --ink-soft: #5b6a84;
  --line: #dde7f2;
  --card: #ffffff;
  --bg: #f6fafe;
  --radius: 18px;
  --shadow: 0 6px 24px rgba(34, 52, 90, 0.10);
  --shadow-soft: 0 2px 10px rgba(34, 52, 90, 0.07);
  --font: "Nunito", "Segoe UI", Tahoma, Arial, Helvetica, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
}

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

a { color: var(--blue-deep); }
a:hover { color: var(--blue); }

.container {
  width: min(1120px, 100% - 2.5rem);
  margin-inline: auto;
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.site-header .container {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  min-height: 76px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--navy);
  font-weight: 800;
  font-size: 1.28rem;
  letter-spacing: 0.2px;
  white-space: nowrap;
}

.brand-logo {
  flex: none;
  height: 34px;
  width: auto;
}

.brand-text { white-space: nowrap; }

.site-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.site-nav a {
  text-decoration: none;
  color: var(--ink-soft);
  font-weight: 700;
  font-size: 0.99rem;
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  transition: background 0.15s ease, color 0.15s ease;
}

.site-nav a:hover {
  color: var(--navy);
  background: var(--sky);
}

.site-nav a[aria-current="page"] {
  color: var(--blue-deep);
  background: var(--sky);
}

.call-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--accent);
  color: #fff !important;
  font-weight: 800;
  text-decoration: none;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  white-space: nowrap;
  box-shadow: 0 3px 12px rgba(64, 64, 191, 0.35);
  transition: background 0.15s ease, transform 0.15s ease;
}

/* Extra specificity so this beats the generic .site-nav a:hover rule */
.call-pill:hover,
.site-nav a.call-pill:hover {
  background: var(--accent-deep);
  color: #fff;
  transform: translateY(-1px);
}

.site-nav .call-pill { margin-left: 0.5rem; }

.nav-toggle {
  display: none;
  margin-left: auto;
  background: none;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.45rem 0.6rem;
  cursor: pointer;
  color: var(--navy);
}

/* --------------------------------------------------------------------------
   Home hero (seasonal photo)
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  isolation: isolate;
  color: #fff;
  overflow: hidden;
}

.hero-photo {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 62%;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    to right,
    rgba(20, 33, 61, 0.78) 0%,
    rgba(28, 46, 82, 0.55) 45%,
    rgba(34, 52, 90, 0.18) 100%
  );
}

.hero-inner {
  padding: clamp(4.5rem, 11vw, 8.5rem) 0;
  max-width: 620px;
}

.hero-kicker {
  display: inline-block;
  font-weight: 800;
  font-size: 0.86rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-pale);
  background: rgba(0, 0, 0, 0.28);
  padding: 0.3rem 0.85rem;
  border-radius: 999px;
  margin-bottom: 1.1rem;
}

.hero h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(2.1rem, 4.6vw, 3.3rem);
  line-height: 1.12;
  font-weight: 900;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.35);
}

.hero p {
  margin: 0 0 1.75rem;
  font-size: clamp(1.02rem, 1.7vw, 1.2rem);
  color: #eaf2ff;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.4);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  font-weight: 800;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  font-size: 1.02rem;
  transition: background 0.15s ease, transform 0.15s ease;
}

.btn:hover { transform: translateY(-1px); }

.btn-accent {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 16px rgba(64, 64, 191, 0.4);
}
.btn-accent:hover { background: var(--accent-deep); color: #fff; }

.btn-ghost {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(4px);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.26); color: #fff; }

.btn-blue {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 4px 16px rgba(62, 111, 192, 0.35);
}
.btn-blue:hover { background: var(--blue-deep); color: #fff; }

/* --------------------------------------------------------------------------
   Page hero (interior pages)
   -------------------------------------------------------------------------- */

.page-hero {
  background:
    radial-gradient(1100px 320px at 12% 115%, rgba(91, 138, 214, 0.55), transparent 65%),
    radial-gradient(900px 300px at 88% -35%, rgba(128, 128, 255, 0.45), transparent 60%),
    linear-gradient(120deg, var(--navy) 0%, var(--blue-deep) 70%, var(--blue) 100%);
  color: #fff;
  padding: clamp(2.6rem, 6vw, 4.2rem) 0;
}

.page-hero h1 {
  margin: 0;
  font-size: clamp(1.9rem, 4vw, 2.7rem);
  font-weight: 900;
}

.page-hero p {
  margin: 0.6rem 0 0;
  max-width: 640px;
  color: #dbe7fa;
  font-size: 1.06rem;
}

/* --------------------------------------------------------------------------
   Sections & cards
   -------------------------------------------------------------------------- */

.section { padding: clamp(2.8rem, 6vw, 4.5rem) 0; }

.section-tight { padding: clamp(2rem, 4vw, 3rem) 0; }

.section-sky { background: linear-gradient(180deg, var(--sky) 0%, var(--bg) 100%); }

.section h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 900;
  color: var(--navy);
  margin: 0 0 1.1rem;
}

.eyebrow {
  display: block;
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 0.35rem;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.4rem;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.7rem 1.6rem;
  box-shadow: var(--shadow-soft);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

a.card { text-decoration: none; color: inherit; display: block; }

a.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  color: inherit;
}

.card-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--sky);
  color: var(--blue-deep);
  margin-bottom: 1rem;
}

a.card:hover .card-icon { background: var(--sky-deep); }

.card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.22rem;
  font-weight: 800;
  color: var(--navy);
}

.card p { margin: 0; color: var(--ink-soft); font-size: 0.99rem; }

.card .card-more {
  display: inline-block;
  margin-top: 0.9rem;
  font-weight: 800;
  color: var(--blue-deep);
  font-size: 0.96rem;
}

/* Two-column layout with sidebar */
.split {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 2.2rem;
  align-items: start;
}

.prose p { margin: 0 0 1.05rem; }
.prose p:last-child { margin-bottom: 0; }

/* --------------------------------------------------------------------------
   Office hours
   -------------------------------------------------------------------------- */

.hours-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.hours-card .hours-head {
  background: linear-gradient(120deg, var(--blue-deep), var(--blue));
  color: #fff;
  padding: 0.95rem 1.4rem;
  font-weight: 800;
  font-size: 1.08rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.hours-list {
  list-style: none;
  margin: 0;
  padding: 0.65rem 1.4rem 0.9rem;
}

.hours-list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.44rem 0;
  border-bottom: 1px dashed var(--line);
  font-size: 0.98rem;
}

.hours-list li:last-child { border-bottom: none; }

.hours-list .day { font-weight: 700; color: var(--navy-soft); }

.hours-list .closed { color: var(--ink-soft); }

.hours-list li.today {
  background: var(--sky);
  border-radius: 10px;
  padding-inline: 0.7rem;
  margin-inline: -0.7rem;
  border-bottom-color: transparent;
}

.hours-list li.today .day::after {
  content: "today";
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #fff;
  background: var(--accent);
  border-radius: 999px;
  padding: 0.12rem 0.5rem;
  margin-left: 0.5rem;
  vertical-align: 1px;
}

/* --------------------------------------------------------------------------
   Insurance list
   -------------------------------------------------------------------------- */

.insurance-grid {
  list-style: none;
  margin: 1.2rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 0.7rem;
}

.insurance-grid li {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.7rem 1rem;
  font-weight: 700;
  color: var(--navy-soft);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  box-shadow: var(--shadow-soft);
  transition: transform 0.15s ease;
}

/* Same subtle lift as the .btn buttons */
.insurance-grid li:hover { transform: translateY(-1px); }

.insurance-grid li::before {
  content: "";
  flex: none;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--blue-bright);
}

/* --------------------------------------------------------------------------
   Doctor page timeline
   -------------------------------------------------------------------------- */

.timeline {
  list-style: none;
  margin: 1.4rem 0 0;
  padding: 0 0 0 1.6rem;
  border-left: 3px solid var(--sky-deep);
}

.timeline li {
  position: relative;
  padding: 0 0 1.6rem 1.1rem;
}

.timeline li:last-child { padding-bottom: 0.2rem; }

.timeline li::before {
  content: "";
  position: absolute;
  left: -2.31rem;
  top: 0.42rem;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--blue);
  border: 3px solid #fff;
  box-shadow: 0 0 0 2px var(--blue-bright);
}

.timeline .tl-year {
  font-weight: 900;
  color: var(--accent);
  font-size: 0.95rem;
  letter-spacing: 0.04em;
}

.timeline h3 {
  margin: 0.1rem 0 0.25rem;
  font-size: 1.12rem;
  font-weight: 800;
  color: var(--navy);
}

.timeline p { margin: 0; color: var(--ink-soft); font-size: 0.97rem; }

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 1rem 0 0;
}

.badge {
  background: var(--sky);
  color: var(--blue-deep);
  border: 1px solid var(--sky-deep);
  font-weight: 800;
  font-size: 0.9rem;
  padding: 0.32rem 0.9rem;
  border-radius: 999px;
}

/* --------------------------------------------------------------------------
   Contact page
   -------------------------------------------------------------------------- */

.contact-list {
  list-style: none;
  margin: 1.2rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.9rem;
}

.contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
}

.contact-list .contact-icon {
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--sky);
  color: var(--blue-deep);
}

.contact-list .label {
  display: block;
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-soft);
}

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

.map-frame {
  border: 0;
  width: 100%;
  height: 100%;
  min-height: 380px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* --------------------------------------------------------------------------
   Facebook section
   -------------------------------------------------------------------------- */

.fb-wrap {
  display: flex;
  justify-content: center;
}

.fb-frame {
  border: 0;
  width: 100%;
  max-width: 500px;
  height: 740px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background: #fff;
}

.fb-follow { text-align: center; margin-top: 1.2rem; }

/* --------------------------------------------------------------------------
   Forms page
   -------------------------------------------------------------------------- */

.form-download {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.3rem 1.5rem;
  box-shadow: var(--shadow-soft);
  text-decoration: none;
  max-width: 460px;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

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

.form-download .card-icon { margin: 0; }

.form-download strong { color: var(--navy); font-size: 1.1rem; display: block; }

.form-download span { color: var(--ink-soft); font-size: 0.92rem; }

/* --------------------------------------------------------------------------
   Callout band
   -------------------------------------------------------------------------- */

.callout {
  background: linear-gradient(120deg, var(--blue-deep), var(--blue) 60%, var(--blue-bright));
  color: #fff;
  border-radius: calc(var(--radius) + 6px);
  padding: clamp(1.8rem, 4vw, 2.8rem) clamp(1.5rem, 4vw, 3rem);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.4rem;
  box-shadow: var(--shadow);
}

.callout h2 { color: #fff; margin: 0 0 0.3rem; }

.callout p { margin: 0; color: #dce9fc; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
  background: var(--navy);
  color: #c6d4ec;
  margin-top: clamp(2.5rem, 6vw, 4rem);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  padding: clamp(2.2rem, 5vw, 3.2rem) 0;
}

.site-footer h4 {
  color: #fff;
  font-size: 1.02rem;
  font-weight: 800;
  margin: 0 0 0.75rem;
  letter-spacing: 0.03em;
}

.site-footer p { margin: 0 0 0.4rem; font-size: 0.95rem; }

.site-footer a { color: #e8f0fc; text-decoration: none; font-weight: 600; }
.site-footer a:hover { color: var(--accent-light); }

.footer-hours {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.95rem;
}

.footer-hours li {
  display: flex;
  justify-content: space-between;
  max-width: 240px;
  padding: 0.12rem 0;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding: 1.1rem 0 1.3rem;
  font-size: 0.88rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.5rem;
  align-items: center;
  justify-content: space-between;
}

.footer-bottom a { color: #9db4d8; }

.footer-links { display: flex; flex-wrap: wrap; gap: 0.4rem 1.4rem; }

/* Long-form policy text */
.policy { max-width: 720px; }
.policy h2 { font-size: 1.25rem; margin: 2rem 0 0.6rem; }
.policy ul { margin: 0 0 1.05rem; padding-left: 1.3rem; }
.policy li { margin-bottom: 0.4rem; }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

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

@media (max-width: 820px) {
  .nav-toggle { display: inline-flex; align-items: center; gap: 0.5rem; font-weight: 800; }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    padding: 0.8rem 1.2rem 1.2rem;
    gap: 0.3rem;
  }

  .site-nav.open { display: flex; }

  .site-nav a { padding: 0.7rem 0.9rem; border-radius: 12px; }

  .site-nav .call-pill {
    margin: 0.5rem 0 0;
    justify-content: center;
  }
}
