:root {
  --navy: #1f386b;
  --navy-2: #1c325f;
  --navy-3: #172a4f;
  --navy-soft: #25427f;
  --red: #e41937;
  --red-dark: #c4122c;
  --ink: #333333;
  --muted: #777777;
  --line: #e8e8e8;
  --bg: #f7f8fb;
  --black: #222222;
  --black-2: #111111;
  --white: #ffffff;
  --shadow: 0 12px 30px rgba(23, 42, 79, 0.12);
  --max: 1170px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  font-family: "Open Sans", "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.75;
  background: var(--white);
}
img { max-width: 100%; display: block; }
a { color: var(--navy); text-decoration: none; }
a:hover { color: var(--red); }
h1, h2, h3, h4, h5 {
  font-family: Raleway, "Segoe UI", sans-serif;
  font-weight: 700;
  line-height: 1.25;
  color: #222;
  margin: 0 0 12px;
}
p { margin: 0 0 14px; }
ul { margin: 0; padding: 0; }

.container { width: min(var(--max), calc(100% - 32px)); margin: 0 auto; }
.topbar {
  background: var(--red);
  color: #fff;
  font-size: 13px;
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  min-height: 42px;
}
.topbar a, .topbar span { color: #fff; }
.topbar-left, .topbar-right { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.topbar i { margin-right: 6px; }
.topbar-right a:hover { opacity: 0.85; }

.header {
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 40;
  box-shadow: 0 1px 0 rgba(0,0,0,.06);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 86px;
  gap: 20px;
}
.brand { display: flex; align-items: center; }
.brand img { height: 62px; width: auto; }
.menu { display: flex; align-items: center; gap: 4px; list-style: none; }
.menu a {
  display: block;
  padding: 10px 12px;
  color: #333;
  font-family: Raleway, sans-serif;
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: .2px;
}
.menu a:hover, .menu a.active { color: var(--red); }
.menu-toggle {
  display: none;
  border: 0;
  background: var(--navy);
  color: #fff;
  width: 44px;
  height: 40px;
  border-radius: 2px;
  font-size: 18px;
  cursor: pointer;
}

.hero { position: relative; overflow: hidden; background: #0d1b38; }
.slides { position: relative; min-height: 620px; }
.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .7s ease;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
}
.slide.active { opacity: 1; position: relative; }
.slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(13, 24, 48, .62), rgba(13, 24, 48, .28));
}
.slide-inner { position: relative; z-index: 1; color: #fff; width: min(var(--max), calc(100% - 32px)); margin: 0 auto; padding: 70px 0 120px; }
.slide.center .slide-inner { text-align: center; }
.slide.right .slide-inner { text-align: right; }
.kicker {
  display: inline-block;
  background: rgba(31, 56, 107, .78);
  border-left: 6px solid var(--red);
  padding: 8px 18px;
  font-family: Raleway, sans-serif;
  font-weight: 600;
  letter-spacing: .4px;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.slide.center .kicker { border-right: 6px solid var(--red); border-radius: 30px; }
.slide.right .kicker { border-left: 0; border-right: 6px solid var(--red); }
.slide h1 {
  color: #fff;
  font-size: clamp(36px, 5vw, 72px);
  text-transform: uppercase;
  margin-bottom: 12px;
  text-shadow: 0 8px 24px rgba(0,0,0,.25);
}
.slide p { color: #fff; font-size: 16px; max-width: 560px; }
.slide.center p, .slide.right p { margin-left: auto; margin-right: auto; }
.slide.right p { margin-right: 0; }
.hero-nav {
  position: absolute;
  right: 24px;
  bottom: 130px;
  z-index: 2;
  display: flex;
  gap: 8px;
}
.hero-nav button, .dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid #fff;
  background: transparent;
  cursor: pointer;
}
.hero-nav button.active { background: var(--red); border-color: var(--red); }

.overlap { margin-top: -90px; position: relative; z-index: 3; }
.trio { display: grid; grid-template-columns: repeat(3, 1fr); }
.card-navy, .card-navy-deep {
  color: #fff;
  padding: 32px 28px 28px;
  min-height: 280px;
}
.card-navy { background: var(--navy); }
.card-navy-deep { background: var(--navy-2); }
.card-navy h3, .card-navy-deep h3, .card-navy p, .card-navy-deep p { color: #fff; }
.hours { list-style: none; }
.hours li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid rgba(255,255,255,.15);
  padding: 8px 0;
  font-size: 14px;
}
.link-more { color: #fff; font-weight: 700; font-size: 14px; }
.link-more:hover { color: #ffd0d6; }
.btn {
  display: inline-block;
  background: var(--navy);
  color: #fff;
  border: 0;
  padding: 12px 22px;
  font-family: Raleway, sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .4px;
  cursor: pointer;
  border-left: 5px solid var(--red);
  transition: .2s ease;
}
.btn:hover { background: var(--red); color: #fff; border-left-color: var(--navy); }
.btn-red { background: var(--red); border-left-color: #fff; }
.btn-red:hover { background: var(--navy); }
.btn-ghost {
  background: transparent;
  border: 2px solid #fff;
  border-left-width: 2px;
  border-radius: 30px;
  color: #fff;
}
.btn-ghost:hover { background: #fff; color: var(--navy); }

.section { padding: 78px 0; }
.section h2 { font-size: 32px; text-transform: uppercase; }
.accent { color: var(--red); }
.lead { font-size: 16px; color: #555; }
.center { text-align: center; }
.narrow { max-width: 760px; margin: 0 auto 28px; }
.split { display: grid; grid-template-columns: 1.4fr .8fr; gap: 36px; align-items: start; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.service-mini h4 { text-transform: uppercase; letter-spacing: .4px; font-size: 18px; }
.icon-list { border: 10px solid #f3f5f8; padding: 8px 18px 18px; }
.icon-row { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.icon-row:last-child { border-bottom: 0; }
.icon-bubble {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 2px solid var(--navy);
  color: var(--navy);
  display: grid;
  place-items: center;
  flex: 0 0 52px;
  font-size: 20px;
}
.icon-row h5 { margin: 0 0 4px; font-size: 16px; }
.icon-row p { margin: 0; color: var(--muted); font-size: 13px; }

.why { display: grid; grid-template-columns: 1fr 1fr; min-height: 460px; }
.why-copy { background: var(--navy); color: #fff; padding: 64px 8vw 64px 10vw; }
.why-copy h2, .why-copy h4, .why-copy p { color: #fff; }
.why-copy h2 { position: relative; padding-bottom: 14px; margin-bottom: 26px; }
.why-copy h2::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 70px; height: 3px;
  background: var(--red);
}
.why-item { display: flex; gap: 18px; margin-bottom: 22px; }
.why-item i { font-size: 42px; width: 56px; }
.why-photo { background-size: cover; background-position: center; min-height: 320px; }

.cards-3, .cards-4 { display: grid; gap: 22px; }
.cards-3 { grid-template-columns: repeat(3, 1fr); }
.cards-4 { grid-template-columns: repeat(4, 1fr); }
.project { border: 2px solid #eee; background: #fff; height: 100%; display: flex; flex-direction: column; }
.project img { width: 100%; height: 190px; object-fit: cover; }
.project-body { background: var(--navy); color: #fff; padding: 18px 16px 16px; text-align: center; flex: 1; }
.project-body h4, .project-body p, .project-body a { color: #fff; }
.project-body h4 { text-transform: uppercase; font-size: 16px; margin-bottom: 8px; }
.project-body p { font-size: 13.5px; margin: 0; }

.stats {
  background-size: cover;
  background-position: center;
  position: relative;
  color: #fff;
}
.stats::before { content: ""; position: absolute; inset: 0; background: rgba(31, 56, 107, .82); }
.stats .container { position: relative; z-index: 1; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; text-align: center; }
.stats i { font-size: 34px; }
.stats strong { display: block; font-size: 38px; font-family: Raleway, sans-serif; margin: 8px 0 4px; }
.stats span { text-transform: uppercase; letter-spacing: .6px; font-weight: 700; }

.team { border: 2px solid #eee; background: #fff; }
.team img { width: 100%; height: 280px; object-fit: cover; }
.team-social { background: var(--navy); display: flex; justify-content: center; gap: 8px; padding: 10px; }
.team-social a {
  width: 30px; height: 30px; border-radius: 50%;
  background: #111; color: #fff; display: grid; place-items: center; font-size: 13px;
}
.team-social a:hover { background: var(--red); color: #fff; }
.team-body { padding: 18px 16px 22px; text-align: center; }
.team-body p { color: var(--muted); font-size: 14px; }
.tag { color: var(--red); font-size: 13px; font-weight: 700; letter-spacing: .3px; }

.band {
  background-size: cover;
  background-position: center;
  position: relative;
  color: #fff;
}
.band::before { content: ""; position: absolute; inset: 0; background: rgba(10, 16, 32, .78); }
.band .container { position: relative; z-index: 1; }
.band h2, .band p, .band h4, .band a { color: #fff; }
.events { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.event {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 16px;
  align-items: center;
}
.event img { width: 100%; height: 130px; object-fit: cover; }
.date-badge { display: inline-flex; flex-direction: column; min-width: 54px; text-align: center; margin-bottom: 8px; }
.date-badge b { background: #f1f1f1; color: #222; padding: 4px 10px; }
.date-badge span { background: var(--navy); color: #fff; font-size: 12px; text-transform: uppercase; padding: 3px 10px; }

.filters { display: flex; justify-content: center; gap: 18px; margin: 10px 0 22px; flex-wrap: wrap; }
.filters button {
  background: none; border: 0; cursor: pointer;
  font-family: Raleway, sans-serif; font-weight: 700; text-transform: uppercase; color: #444;
}
.filters button.active, .filters button:hover { color: var(--red); }
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.gallery figure { margin: 0; position: relative; overflow: hidden; cursor: pointer; }
.gallery img { width: 100%; height: 180px; object-fit: cover; transition: transform .35s; }
.gallery figure:hover img { transform: scale(1.06); }
.gallery figcaption {
  position: absolute; inset: auto 0 0 0;
  background: rgba(31, 56, 107, .86);
  color: #fff; text-align: center; padding: 8px;
  font-family: Raleway, sans-serif; font-weight: 700; font-size: 13px;
}
.lightbox {
  position: fixed; inset: 0; background: rgba(0,0,0,.88);
  display: none; align-items: center; justify-content: center; z-index: 80; padding: 24px;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: min(1000px, 92vw); max-height: 86vh; object-fit: contain; }
.lightbox button {
  position: absolute; top: 16px; right: 16px; background: var(--red); color: #fff; border: 0;
  width: 40px; height: 40px; font-size: 22px; cursor: pointer;
}

.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.quote {
  background: var(--red);
  color: #fff;
  padding: 26px 22px 22px;
  position: relative;
  margin-top: 28px;
}
.quote img {
  width: 74px; height: 74px; border-radius: 50%; object-fit: cover;
  border: 4px solid #fff; margin-top: -58px; margin-bottom: 10px;
}
.quote h4, .quote p, .quote h6 { color: #fff; }
.quote h6 { font-weight: 500; opacity: .9; margin-bottom: 10px; font-family: "Open Sans", sans-serif; }
.quote p { font-style: italic; font-size: 14.5px; }

.post { background: #fff; border: 1px solid #eee; height: 100%; display: flex; flex-direction: column; }
.post img { width: 100%; height: 210px; object-fit: cover; }
.post-body { padding: 18px 18px 8px; flex: 1; }
.post-body h3 { font-size: 18px; text-transform: capitalize; }
.post-meta {
  background: var(--navy);
  color: #fff;
  text-align: center;
  padding: 10px 8px;
  font-size: 13px;
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}
.read { color: var(--navy); font-weight: 700; }
.read:hover { color: var(--red); }

.page-banner {
  background-size: cover;
  background-position: center;
  position: relative;
  color: #fff;
  padding: 78px 0;
}
.page-banner::before { content: ""; position: absolute; inset: 0; background: rgba(31, 56, 107, .78); }
.page-banner .container { position: relative; z-index: 1; }
.page-banner h1 { color: #fff; text-transform: uppercase; font-size: clamp(30px, 4vw, 44px); }
.crumbs { color: #fff; font-size: 14px; }
.crumbs a { color: #fff; }
.crumbs a:hover { color: #ffd0d6; }

.prose h2 { font-size: 26px; text-transform: none; margin-top: 28px; }
.prose h3 { font-size: 20px; margin-top: 22px; }
.prose ul, .prose ol { margin: 0 0 16px 20px; }
.prose li { margin: 6px 0; }
.note {
  background: #f6f8fc;
  border-left: 5px solid var(--red);
  padding: 14px 16px;
  margin: 16px 0;
}

.form {
  background: #fff;
  border: 1px solid #eee;
  box-shadow: var(--shadow);
  padding: 28px;
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
label { font-weight: 700; font-size: 13px; color: #333; }
input, select, textarea {
  width: 100%;
  border: 1px solid #d9d9d9;
  padding: 11px 12px;
  font: inherit;
  color: #333;
  background: #fff;
}
input:focus, select:focus, textarea:focus { outline: 2px solid rgba(31, 56, 107, .25); border-color: var(--navy); }
textarea { min-height: 130px; resize: vertical; }
.error { color: var(--red); font-size: 12px; min-height: 16px; }
input.invalid, select.invalid, textarea.invalid { border-color: var(--red); }
.success {
  display: none;
  background: #eef8f0;
  border: 1px solid #b7e0c2;
  color: #146c36;
  padding: 14px 16px;
  margin-bottom: 16px;
  font-weight: 700;
}
.success.show { display: block; }
.field.check {
  flex-direction: row;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
}
.field.check input[type="checkbox"] {
  width: 18px;
  height: 18px;
  min-width: 18px;
  flex: 0 0 18px;
  margin: 2px 0 0;
  padding: 0;
  accent-color: var(--navy);
}
.field.check .error { display: block; min-height: 0; }
.field.check .error:empty { display: none; }

.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
.plan {
  border: 2px solid #eee;
  text-align: center;
  background: #fff;
  display: flex;
  flex-direction: column;
}
.plan.featured { border-color: var(--navy); transform: translateY(-10px); box-shadow: var(--shadow); }
.plan-head { background: var(--navy); color: #fff; padding: 26px 16px 18px; }
.plan.featured .plan-head { background: var(--red); }
.plan-head h3, .plan-head p { color: #fff; }
.price { font-size: 42px; font-family: Raleway, sans-serif; font-weight: 800; }
.price small { font-size: 14px; font-weight: 600; }
.plan ul { list-style: none; padding: 18px 22px; text-align: left; flex: 1; }
.plan li { padding: 8px 0 8px 22px; border-bottom: 1px solid #f0f0f0; position: relative; }
.plan li::before { content: "\f00c"; font-family: FontAwesome; position: absolute; left: 0; color: var(--red); }
.plan .btn { margin: 0 22px 22px; }

.doctor-tools { display: flex; gap: 12px; margin-bottom: 22px; flex-wrap: wrap; }
.doctor-tools input, .doctor-tools select { max-width: 320px; }
.doc-card { border: 2px solid #eee; background: #fff; }
.doc-card img { width: 100%; height: 260px; object-fit: cover; }
.doc-card .pad { padding: 16px 16px 18px; }
.badge { display: inline-block; background: rgba(228, 25, 55, .1); color: var(--red); font-size: 12px; font-weight: 700; padding: 3px 8px; margin-bottom: 6px; }

.footer { background: #1b1b1b; color: #c7c7c7; padding-top: 60px; }
.footer h5 {
  color: #fff;
  text-transform: uppercase;
  font-size: 16px;
  position: relative;
  padding-bottom: 10px;
  margin-bottom: 16px;
}
.footer h5::after { content: ""; position: absolute; left: 0; bottom: 0; width: 42px; height: 2px; background: var(--red); }
.footer a { color: #c7c7c7; }
.footer a:hover { color: var(--red); }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.1fr; gap: 28px; }
.footer .brand img { height: 58px; margin-bottom: 12px; }
.socials { display: flex; gap: 8px; margin-top: 16px; }
.socials a {
  width: 34px; height: 34px; display: grid; place-items: center; color: #fff; background: #111;
}
.socials a.fb { background: #3b5998; }
.socials a.tw { background: #02b0e8; }
.socials a.ig { background: #c13584; }
.socials a.yt { background: #c22e2a; }
.socials a.li { background: #0a66c2; }
.socials a:hover { color: #fff; filter: brightness(1.1); }
.news-item { display: flex; gap: 10px; margin-bottom: 12px; }
.news-item img { width: 74px; height: 54px; object-fit: cover; }
.news-item h6 { margin: 0 0 2px; font-size: 14px; }
.news-item h6 a { color: #eee; }
.footer ul { list-style: none; }
.footer li { border-bottom: 1px solid rgba(255,255,255,.08); }
.footer li a { display: block; padding: 7px 0; }
.newsletter { display: flex; margin-top: 8px; }
.newsletter input { border: 0; padding: 10px; flex: 1; }
.newsletter button { border: 0; background: var(--navy); color: #fff; padding: 0 14px; cursor: pointer; }
.footer .success { width: 100%; margin-bottom: 8px; }
.newsletter button:hover { background: var(--red); }
.footer-bottom {
  background: #111;
  margin-top: 36px;
  padding: 16px 0;
  color: #9a9a9a;
  font-size: 13px;
}
.footer-bottom .container { display: flex; justify-content: space-between; gap: 12px; align-items: center; flex-wrap: wrap; }
.footer-bottom ul { display: flex; gap: 10px; list-style: none; align-items: center; }
.footer-bottom a { color: #ddd; }
.to-top {
  position: fixed; right: 18px; bottom: 18px; width: 42px; height: 42px;
  background: var(--red); color: #fff; display: none; place-items: center; z-index: 30;
}
.to-top.show { display: grid; }
.muted { color: var(--muted); }
.mb-0 { margin-bottom: 0; }
.mt { margin-top: 22px; }
.article-layout { display: grid; grid-template-columns: 1fr 320px; gap: 32px; }
.side-box { background: #f7f8fb; padding: 18px; margin-bottom: 18px; }
.side-box h4 { font-size: 16px; text-transform: uppercase; }
.side-box a { display: block; padding: 6px 0; border-bottom: 1px solid #e6e6e6; }

@media (max-width: 992px) {
  .menu-toggle { display: inline-grid; place-items: center; }
  .menu {
    display: none;
    position: absolute;
    left: 0; right: 0; top: 86px;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    padding: 8px 16px 16px;
    box-shadow: var(--shadow);
  }
  .header { position: sticky; }
  .nav { position: relative; }
  .menu.open { display: flex; }
  .trio, .split, .why, .cards-3, .events, .quotes, .plans, .article-layout, .footer-grid { grid-template-columns: 1fr; }
  .cards-4, .gallery, .stats-grid { grid-template-columns: 1fr 1fr; }
  .plan.featured { transform: none; }
  .why-copy { padding: 40px 24px; }
  .slides { min-height: 520px; }
  .overlap { margin-top: 0; }
}
@media (max-width: 680px) {
  .topbar .container, .footer-bottom .container { flex-direction: column; align-items: flex-start; padding: 8px 0; }
  .cards-4, .gallery, .stats-grid, .form-grid, .two, .event { grid-template-columns: 1fr; }
  .slide h1 { font-size: 34px; }
  .hero-nav { bottom: 16px; }
  .section { padding: 52px 0; }
}
