/* Theme tokens (measured from the reference design) */
:root {
  /* Light green + sky blue theme (same roles as the reference's two blues) */
  --blue: #45b4ea;        /* sky blue: menu bar, footer line */
  --blue-dark: #4cae4c;   /* light green: active tab, forms, headings, footer bar */
  --link: #1f8ccc;        /* sky blue links, dark enough to read */
  --text: #333333;
  --grey: #999999;
  --page-bg: #eef8fd;
  --caption-bg: #5cb85ccc;
  --req: #1b5e20;
  --hover-dark: #3d8b3d;
  --font: "Titillium Web", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --radius-sm: 3px;
  --radius: 5px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.42857;
  color: var(--text);
  background-color: var(--page-bg);
  background-image:
    linear-gradient(120deg, rgba(255,255,255,.55) 0 18%, transparent 18% 100%),
    linear-gradient(60deg, transparent 0 62%, rgba(208,236,250,.45) 62% 78%, transparent 78% 100%),
    linear-gradient(150deg, transparent 0 40%, rgba(255,255,255,.5) 40% 55%, transparent 55% 100%),
    linear-gradient(30deg, rgba(226,244,228,.6) 0 30%, transparent 30% 100%);
  background-size: 520px 520px, 640px 640px, 760px 760px, 900px 900px;
  background-attachment: fixed;
  overflow-x: hidden;
}
a { color: var(--link); text-decoration: none; }
a:hover, a:focus { text-decoration: underline; }
img, svg { max-width: 100%; }
h1, h2, h3 { font-family: var(--font); }
p { margin: 0 0 10px; }

/* Page container (white sheet with soft shadow) */
.site {
  width: 100%;
  max-width: 1170px;
  margin: 0 auto;
  padding: 30px 15px 0;
  background: #fff;
  box-shadow: rgb(128, 128, 128) 0 0 18px 0;
}
@media (max-width: 1199px) { .site { max-width: 970px; } }
@media (max-width: 991px) { .site { max-width: 750px; } }
@media (max-width: 767px) { .site { max-width: none; } }

/* ---------- Header ---------- */
.header-row { display: flex; margin: 0 -15px 37px; }
.logo-col { flex: 0 0 41.6667%; max-width: 41.6667%; padding: 0 15px; }
.contact-col { flex: 0 0 58.3333%; max-width: 58.3333%; padding: 0 15px; text-align: right; }
.site-title {
  margin: 0;
  padding: 6px 0 8px;
  font-size: 32px;
  font-weight: 700;
  line-height: 48px;
  text-transform: uppercase;
}
.site-title a { color: var(--blue); }
.site-title a:hover { text-decoration: none; }
.header-contact p { margin: 0 0 10px; font-size: 18px; line-height: 16px; }
.header-contact span { display: inline-block; margin-left: 30px; font-weight: 700; line-height: 29px; white-space: nowrap; }
.header-contact span a { color: var(--text); }
.ico { display: inline-block; width: 1.28571em; text-align: center; font-style: normal; color: var(--blue); vertical-align: -1px; margin-right: 6px; }
.ico svg { width: 14px; height: 14px; display: inline-block; vertical-align: middle; }

@media (max-width: 767px) {
  .header-row { flex-direction: column; }
  .logo-col, .contact-col { max-width: 100%; flex: 0 0 auto; text-align: center; }
  .contact-col { padding-top: 28px; }
  .header-contact span { margin: 0 14px; }
}

/* ---------- Navigation ---------- */
.main-navigation { position: relative; z-index: 40; }
.main-navigation .menu {
  display: flex;
  margin: 0;
  padding: 0;
  list-style: none;
  height: 50px;
  background: var(--blue);
  box-shadow: inset 0 -3px 0 var(--blue-dark);
}
.main-navigation .menu > li { position: relative; flex: 1 1 auto; }
.main-navigation .menu > li > a {
  display: block;
  height: 50px;
  padding: 0 10px;
  line-height: 50px;
  color: #fff;
  font-size: 16px;
  font-weight: 400;
  text-align: center;
  text-transform: uppercase;
  white-space: nowrap;
  transition: background-color .2s;
}
.main-navigation .menu > li > a:hover,
.main-navigation .menu > li > a:focus,
.main-navigation .menu > li.current > a,
.main-navigation .menu > li.open > a { background: var(--blue-dark); text-decoration: none; }
.caret {
  display: inline-block;
  margin-left: 12px;
  width: 0; height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid #fff;
  vertical-align: 2px;
}
.sub-menu {
  position: absolute;
  top: 50px;
  left: 0;
  width: 180px;
  margin: 0;
  padding: 0;
  list-style: none;
  background: var(--blue-dark);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity .2s ease, transform .2s ease, visibility 0s linear .2s;
  z-index: 60;
}
.has-sub.open > .sub-menu { opacity: 1; visibility: visible; transform: none; transition: opacity .2s ease, transform .2s ease, visibility 0s; }
.sub-menu a {
  display: block;
  padding: 0 15px;
  line-height: 35px;
  font-size: 14px;
  color: #fff;
  white-space: nowrap;
}
.sub-menu a:hover, .sub-menu a:focus, .sub-menu a[aria-current] { background: var(--blue); text-decoration: none; }
.menu-toggle { display: none; }

@media (max-width: 991px) {
  .main-navigation .menu > li > a { font-size: 14px; padding: 0 6px; }
  .caret { margin-left: 8px; }
}

@media (max-width: 767px) {
  .menu-toggle { display: flex; height: 40px; background: var(--blue-dark); }
  .menu-toggle .tb { flex: 1 1 0; display: flex; }
  .menu-toggle .tb-right { justify-content: flex-end; }
  .menu-toggle button {
    display: flex; align-items: center; gap: 8px;
    margin-left: auto; height: 40px; padding: 0 9px 0 10px;
    background: none; border: 0; color: #fff; cursor: pointer;
    font-family: var(--font); font-size: 16px;
  }
  .toggle-ico { display: inline-flex; width: 22px; height: 22px; }
  .toggle-ico svg { width: 22px; height: 22px; }
  .close-ico { display: none; }
  .nav-open .open-ico { display: none; }
  .nav-open .close-ico { display: inline-flex; }
  .main-navigation .menu { display: none; height: auto; flex-direction: column; box-shadow: none; background: #222; }
  .nav-open .menu { display: flex; }
  .main-navigation .menu > li > a { height: 40px; line-height: 40px; font-size: 16px; position: relative; }
  .main-navigation .menu > li > a:hover, .main-navigation .menu > li > a:focus { background: #333; }
  .main-navigation .menu > li.current > a { background: var(--blue-dark); }
  .main-navigation .menu > li.has-sub > a { background: transparent; }
  .main-navigation .menu > li.has-sub.current > a { background: var(--blue-dark); }
  .caret { position: absolute; right: 15px; top: 18px; margin: 0; }
  .sub-menu { position: static; width: auto; opacity: 1; visibility: visible; transform: none; display: none; background: #333; transition: none; }
  .has-sub.open > .sub-menu { display: block; }
  .sub-menu a { text-align: center; line-height: 40px; font-size: 15px; }
}

/* ---------- Slider ---------- */
.slider-wrap { max-width: 1110px; margin: 0 auto; }
.slider {
  position: relative;
  width: 100%;
  aspect-ratio: 1110 / 570;
  overflow: hidden;
  container-type: inline-size;
  touch-action: pan-y;
  user-select: none;
  cursor: grab;
}
.slides { display: flex; height: 100%; transition: transform .6s ease; will-change: transform; }
.slide { position: relative; flex: 0 0 100%; height: 100%; overflow: hidden; }
.slide-link { position: absolute; inset: 0; z-index: 3; }
.slide-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
.s1 { background: linear-gradient(180deg, #cfe5f6 0%, #a9cdea 46%, #7fa9c6 58%, #c9b9a8 100%); }
.s2 { background: linear-gradient(115deg, #f4f1ec 0%, #e7ddd3 42%, #8aa6bf 42.2%, #7d9ab4 100%); }
.s3 { background: linear-gradient(160deg, #fbe9cf 0%, #f1d4a8 45%, #d9b97a 75%, #a7b86a 100%); }
.orb { position: absolute; border-radius: 50%; }
.s1 .o1 { width: 36cqw; height: 36cqw; right: 12cqw; top: 6cqw; background: radial-gradient(circle at 40% 40%, #f6dcc8, #e9bfa2 60%, #d9a688); }
.s1 .o2 { width: 22cqw; height: 22cqw; right: 4cqw; top: 26cqw; background: radial-gradient(circle, rgba(255,255,255,.55), rgba(255,255,255,0) 70%); }
.s1 .o3 { width: 60cqw; height: 14cqw; left: -10cqw; bottom: -4cqw; background: radial-gradient(ellipse, rgba(255,255,255,.45), rgba(255,255,255,0) 70%); }
.s2 .o1 { width: 30cqw; height: 34cqw; left: 6cqw; top: 6cqw; background: radial-gradient(circle at 45% 40%, #f5dccb, #e3b99c 65%, #c99a7e); border-radius: 48% 52% 46% 54%; }
.s2 .o2 { width: 26cqw; height: 40cqw; right: 8cqw; top: 2cqw; background: radial-gradient(circle at 50% 35%, #f3d8c4, #d9ad8f 70%); border-radius: 50% 50% 44% 44%; }
.s2 .o3 { width: 70cqw; height: 18cqw; left: 0; bottom: -6cqw; background: radial-gradient(ellipse, #fff, rgba(255,255,255,0) 70%); }
.s3 .o1 { width: 40cqw; height: 40cqw; right: 6cqw; top: 2cqw; background: radial-gradient(circle at 45% 40%, #f0cfb2, #d7a885 60%, #b5835f); }
.s3 .o2 { width: 50cqw; height: 50cqw; left: -12cqw; top: -18cqw; background: radial-gradient(circle, rgba(255,255,255,.6), rgba(255,255,255,0) 68%); }
.s3 .o3 { width: 30cqw; height: 12cqw; right: 4cqw; bottom: 2cqw; background: radial-gradient(ellipse, #f5d24a, rgba(245,210,74,0) 70%); }
.slide-caption {
  position: absolute;
  z-index: 2;
  left: 10cqw;
  bottom: 8.7cqw;
  width: calc(40cqw + 40px);
  min-height: 135px;
  padding: 20px;
  background: var(--caption-bg);
  border-left: 3px solid #fff;
  color: #fff;
  pointer-events: none;
}
.sl-caption { font-size: max(12px, calc(4.6cqw - 15px)); line-height: 1.15; font-weight: 400; margin-bottom: 6px; }
.sl-desc { font-size: max(8px, calc(2cqw - 4px)); line-height: 1.5; }
@media (max-width: 767px) { .sl-caption { font-weight: 700; } }
.ms-nav {
  position: absolute;
  z-index: 4;
  top: 50%;
  width: 40px;
  height: 56px;
  margin-top: -28px;
  padding: 10px;
  border: 0;
  background: none;
  cursor: pointer;
  filter: drop-shadow(0 0 3px rgba(0,0,0,.35));
}
.ms-nav svg { width: 22px; height: 36px; display: block; }
.ms-prev { left: 24px; }
.ms-next { right: 24px; }

/* ---------- Home: service boxes ---------- */
.front-boxes {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  column-gap: 40px;
  margin-top: 40px;
}
.front-box { margin: 0; }
.front-box a {
  position: relative;
  display: block;
  aspect-ratio: 240 / 250;
  overflow: hidden;
  color: #fff;
}
.front-box a:hover { text-decoration: none; }
.b1 { background: radial-gradient(circle at 50% 35%, #f6dccb 0, #e8bea1 45%, #c98f6e 100%); }
.b2 { background: radial-gradient(circle at 60% 30%, #fbe4c4 0, #f2c98f 45%, #b99a5f 100%); }
.b3 { background: radial-gradient(circle at 35% 30%, #e6eef6 0, #b8c9da 50%, #7f95ab 100%); }
.b4 { background: radial-gradient(circle at 45% 40%, #f3cdb4 0, #d99f7f 50%, #a8644a 100%); }
.front-box img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.front-box a:hover img { transform: scale(1.04); }
.front-box strong {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 50px;
  line-height: 50px;
  background: var(--caption-bg);
  font-size: 22px;
  font-weight: 700;
  text-align: center;
  text-transform: uppercase;
}

/* ---------- Home: intro + appointment form ---------- */
.intro {
  display: grid;
  grid-template-columns: 550fr 560fr;
  column-gap: 30px;
  margin-top: 50px;
  align-items: start;
}
.intro-text { padding-top: 39px; }
.intro-text h2, .entry-content h1 { margin: 0 0 10px; font-size: 30px; font-weight: 500; line-height: 1.1; color: var(--text); }
.intro-text p { font-size: 20px; line-height: 1.42857; }

.appt-box { background: var(--blue-dark); color: #fff; padding: 35px 30px 45px; }
.form-title { margin: 0 0 6px; font-size: 36px; font-weight: 700; line-height: 40px; }
.form-desc { margin: 0 0 18px; font-size: 18px; line-height: 25.5px; }
.fields { display: flex; flex-wrap: wrap; margin: 0; padding: 0; list-style: none; }
.fields li { width: 100%; margin-top: 16px; }
.fields li.half { width: 50%; padding-right: 16px; }
.fields li.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; margin: 0; }
.appt-form { position: relative; }
.fields label { display: block; margin-bottom: 14px; font-size: 16px; font-weight: 700; line-height: 24px; }
.req { margin-left: 8px; color: var(--req); }
.req-text { margin-left: 4px; font-weight: 400; font-size: 14px; opacity: .85; }
.fields input, .fields select, .fields textarea {
  display: block;
  width: 100%;
  height: 36px;
  padding: 5px 4px;
  border: 1px solid #fff;
  border-radius: 0;
  background: #fff;
  color: var(--text);
  font-family: var(--font);
  font-size: 18px;
}
.fields select { height: 29px; padding: 2px; }
.fields textarea { height: 120px; resize: vertical; }
.fields input:focus, .fields select:focus, .fields textarea:focus { outline: 2px solid #a6dcf5; outline-offset: 0; }
.field-msg { display: none; margin-top: 6px; padding: 4px 8px; background: #fff3f2; color: #b40000; font-size: 14px; line-height: 1.4; }
.fields li.invalid .field-msg { display: block; }
.fields li.invalid input, .fields li.invalid select { border-color: #c02b0a; }
.form-error { margin: 0 0 6px; padding: 10px 12px; background: #fff3f2; color: #b40000; font-size: 16px; border-left: 4px solid #c02b0a; }
.char-count { margin-top: 4px; font-size: 14px; }
.form-footer { margin-top: 16px; padding-top: 16px; }
.button {
  height: 48px;
  padding: 0 29px;
  border: 0;
  border-radius: 0;
  background: var(--link);
  color: #fff;
  font-family: var(--font);
  font-size: 18px;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color .2s;
}
.button:hover, .button:focus { background: var(--hover-dark); }
.form-done { padding: 16px 0 0; font-size: 20px; line-height: 1.5; }

/* ---------- Home: affiliations + mission ---------- */
.affiliations { margin-top: 60px; padding: 0 60px; text-align: center; }
.affiliations h2 { margin: 0 0 50px; font-size: 30px; font-weight: 500; line-height: 1.1; }
.aff-logos { max-width: 720px; margin: 0 auto; }
.aff-logos img { display: block; width: 100%; height: auto; }
.aff { display: flex; align-items: center; gap: 10px; color: #7cc6ec; text-align: left; }
.aff svg { width: 44px; height: 52px; flex: none; }
.aff-wave svg { width: 66px; }
.aff-text span { display: block; line-height: 1.1; }
.aff .l1 { font-size: 26px; font-family: Georgia, "Times New Roman", serif; color: #7cc6ec; }
.aff .l2 { font-size: 13px; letter-spacing: 3px; color: #7cc6ec; }
.aff-wave .l1, .aff-wave .l2 { font-family: var(--font); font-size: 15px; letter-spacing: 0; font-weight: 600; text-align: right; }
.aff-wave .l3 { font-size: 11px; color: #7cc6ec; text-align: right; }
.aff-wave { flex-direction: row-reverse; }

.mission { display: flex; align-items: center; justify-content: center; min-height: 517px; margin-top: 20px; padding: 40px 0; text-align: center; }
.mission-inner { max-width: 820px; }
.mission h2 { margin: 0 0 18px; font-size: 30px; font-weight: 500; line-height: 1.1; color: var(--blue-dark); }
.mission blockquote { margin: 0 0 14px; font-size: 20px; font-style: italic; line-height: 1.6; color: var(--text); }
.mission .sig { font-weight: 700; margin-bottom: 22px; }
.mission-btn, .btn {
  display: inline-block;
  padding: 0 24px;
  line-height: 44px;
  background: var(--link);
  color: #fff;
  border-radius: var(--radius-sm);
  font-size: 17px;
  text-transform: uppercase;
}
.mission-btn:hover, .btn:hover { background: var(--hover-dark); text-decoration: none; }

/* ---------- Inner pages ---------- */
.inner { padding-top: 40px; }
.inner-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); column-gap: 30px; align-items: start; }
.entry-content h1 { margin-bottom: 20px; }
.entry-photo { float: right; width: 45%; max-width: 360px; height: auto; margin: 4px 0 16px 24px; }
@media (max-width: 600px) { .entry-photo { float: none; display: block; width: 100%; max-width: none; margin: 0 0 16px; } }
.entry-content h3 { margin: 24px 0 8px; font-size: 22px; font-weight: 700; color: var(--blue-dark); line-height: 1.2; }
.entry-content ul { margin: 0 0 12px; padding-left: 22px; }
.entry-content li { margin-bottom: 6px; }
.entry-content blockquote { margin: 0 0 10px; padding-left: 16px; border-left: 3px solid var(--blue); font-style: italic; }
.appt-box.compact { padding: 26px 20px 30px; }
.appt-box.compact .form-title { font-size: 28px; line-height: 32px; }
.appt-box.compact .fields li.half { width: 100%; padding-right: 0; }
.side-card { padding: 26px 20px; background: var(--page-bg); border-top: 4px solid var(--blue); }
.side-card h3 { margin: 0 0 10px; font-size: 22px; color: var(--blue-dark); }
.contact-form-box { margin-top: 30px; padding: 26px 24px 30px; background: var(--blue-dark); color: #fff; }
.contact-form-box h3 { margin: 0; color: #fff; font-size: 30px; }

/* ---------- Footer ---------- */
.footer { margin-top: 39px; border-top: 8px solid var(--blue); }
.footer-row { display: flex; margin: 0 -15px; }
.fcol { padding: 0 15px; }
.fcol-3 { flex: 0 0 25%; max-width: 25%; }
.fcol-6 { flex: 0 0 50%; max-width: 50%; }
.widget-title { margin: 20px 0 9px; font-size: 19px; font-weight: 700; line-height: 21px; color: var(--blue-dark); text-transform: uppercase; }
.footer .menu { margin: 1px 0 0; padding: 0; list-style: none; }
.footer .menu li { line-height: 25.7px; }
.fline { display: flex; margin-bottom: 10px; line-height: 25.7px; }
.fline .ico { flex: none; margin-right: 4px; color: var(--link); }
.fline .ico svg { vertical-align: -1px; }
.fline a.plain { color: var(--text); }
.social ul { display: flex; gap: 12px; margin: 22px 0 0 6px; padding: 0; list-style: none; }
.social a { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: var(--radius-sm); background: var(--grey); color: #fff; transition: background-color .2s; }
.social a:hover { background: #666; }
.social svg { width: 18px; height: 18px; }
.textwidget p { line-height: 25.5px; }
.textwidget p:first-child { margin-top: 36px; }
.textwidget p:last-child { margin-bottom: 30px; }
.footer-info {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 20px;
  padding: 14px 15px;
  background: var(--blue-dark);
  color: #fff;
  font-size: 12px;
  line-height: 19px;
}
.footer-info a { color: #fff; }

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
  .footer-row { flex-direction: column; }
  .fcol-3, .fcol-6 { max-width: 100%; flex: 0 0 auto; }
  .textwidget p:first-child { margin-top: 20px; }
  .inner-grid { grid-template-columns: 1fr; }
  .inner-side { margin-top: 30px; }
}

@media (max-width: 768px) {
  .front-boxes { grid-template-columns: 1fr; justify-items: center; row-gap: 52px; }
  .front-box { width: 100%; max-width: 400px; }
  .front-box a { margin: 0 20px; }
  .intro { grid-template-columns: 1fr; }
  .intro-text { padding-top: 39px; }
  .intro-form { margin-top: 24px; }
  .appt-box { padding: 30px 20px 45px; }
  .affiliations { padding: 0; }
  .mission { min-height: 550px; }
}

@media (max-width: 767px) {
  .footer-info { flex-direction: column; gap: 0; text-align: center; }
}

@media (max-width: 641px) {
  .fields li.half { width: 100%; padding-right: 0; }
  .form-footer .button { width: 100%; }
  .form-title { font-size: 30px; line-height: 34px; }
}

@media (max-width: 600px) {
  .mission { min-height: 781px; }
  .header-contact span { margin: 0 10px; }
}
@media (max-width: 440px) {
  .header-contact span { margin: 0 5px; font-size: 15px; }
  .header-contact .ico { width: 1em; margin-right: 4px; }
}
