/* Fira Sans – self-hosted (Fontsource), replaces the old Cufon "Antigoni" */
@font-face { font-family: "Fira Sans"; font-weight: 400; font-display: swap; src: url(../fonts/fira-sans-latin-400.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Fira Sans"; font-weight: 400; font-display: swap; src: url(../fonts/fira-sans-latin-ext-400.woff2) format("woff2"); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Fira Sans"; font-weight: 600; font-display: swap; src: url(../fonts/fira-sans-latin-600.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Fira Sans"; font-weight: 600; font-display: swap; src: url(../fonts/fira-sans-latin-ext-600.woff2) format("woff2"); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Fira Sans"; font-weight: 700; font-display: swap; src: url(../fonts/fira-sans-latin-700.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Fira Sans"; font-weight: 700; font-display: swap; src: url(../fonts/fira-sans-latin-ext-700.woff2) format("woff2"); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --navy: #07253f;
  --blue: #066ba9;
  --sky: #48c3f8;
  --sky-light: #7cdafe;
  --text: #0e2235;
  --muted: #4a5d6e;
  --line: #d5e3ea;
  --panel: #f3f9fc;
  --font: "Fira Sans", system-ui, "Segoe UI", Roboto, Arial, sans-serif;
  --wrap: 924px;
  --gutter: clamp(16px, 3.3vw, 30px);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font: 400 1rem/1.6 var(--font);
  color: var(--text);
  background: #fff url(../img/main-bg.jpg) center top no-repeat;
  background-color: #fff;
}

img { max-width: 100%; height: auto; }

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

h1, h2, h3 { font-family: var(--font); line-height: 1.2; }
h2 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 1.9rem); font-weight: 700; color: var(--blue); margin: 0 0 .8em; }
h3 { font-size: 1.25rem; font-weight: 600; color: var(--navy); margin: 1.4em 0 .5em; }
.alt { color: var(--sky); }

.page {
  max-width: var(--wrap);
  margin: 0 auto;
  background: #fff;
  box-shadow: 0 0 40px rgba(7, 37, 63, .08);
}
@media (min-width: 960px) {
  .page { margin-top: 24px; }
}

/* ---------- header ---------- */
.site-header { position: relative; background: var(--navy); }

.lang {
  position: absolute;
  top: 10px;
  right: var(--gutter);
  display: flex;
  gap: 6px;
  z-index: 2;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .05em;
}
.lang a, .lang span {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 3px;
  color: #fff;
  text-decoration: none;
  background: rgba(7, 37, 63, .55);
  border: 1px solid transparent;
}
.lang span { background: var(--sky); border-color: var(--sky); color: var(--navy); }
.lang a:hover { background: var(--navy); color: #fff; }

.logo {
  display: block;
  width: max-content;
  margin: 0 0 0 var(--gutter);
  padding: 22px 22px 18px;
  background: linear-gradient(160deg, #6ee0fe, #3cc6f7 70%, #2bb6ef);
  border-radius: 40px 4px 4px 4px;
  color: #fff;
  text-decoration: none;
  line-height: 1.05;
  position: relative;
  z-index: 1;
  transform: translateY(-14px);
  margin-bottom: -14px;
}
.logo:hover { color: #fff; }
.logo small { display: block; font-size: 1.15rem; font-weight: 400; margin-bottom: 4px; }
.logo strong { display: block; font-size: 1.85rem; font-weight: 700; }

.site-header .top { display: flex; flex-wrap: wrap; align-items: flex-end; padding-top: 42px; }

.nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; }
.nav a {
  display: block;
  padding: .9em .75em;
  color: #fff;
  text-decoration: none;
  text-transform: uppercase;
  font-size: .95rem;
  font-weight: 400;
  letter-spacing: .02em;
}
.nav a:hover, .nav a[aria-current] { background: var(--sky); color: var(--navy); }

@media (min-width: 760px) {
  .site-header .top { flex-wrap: nowrap; justify-content: space-between; padding-top: 0; }
  .logo { margin-top: 0; transform: none; margin-bottom: -50px; align-self: flex-start; margin-top: -0px; }
  .site-header { margin-top: 70px; }
  .lang { top: -46px; }
  .nav { padding-right: calc(var(--gutter) - .75em); }
  .nav a { padding: 1.45em .6em; }
}
@media (max-width: 759px) {
  .site-header .top { flex-direction: column; align-items: stretch; }
  .logo { width: auto; margin-right: var(--gutter); transform: none; margin-bottom: 0; border-radius: 30px 4px 4px 4px; }
  .logo strong { font-size: 1.5rem; }
  .nav ul { justify-content: center; padding: 6px 0; }
  .nav a { padding: .55em .65em; font-size: .85rem; }
}

/* banner with cross-fading photos */
.banner {
  position: relative;
  height: clamp(110px, 21.65vw, 200px);
  overflow: hidden;
  background: #f6f8fb;
  border-bottom: 6px solid #fff;
}
.banner img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
}
/* first photo stays underneath, the other two fade in over it in turn */
.banner img + img { opacity: 0; animation: fade 18s infinite; }
.banner img:nth-child(3) { animation-delay: 6s; }
@keyframes fade {
  0%, 30% { opacity: 0; }
  36%, 63% { opacity: 1; }
  69%, 100% { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .banner img + img { animation: none; }
}
.banner .slogan {
  position: absolute;
  left: var(--gutter);
  top: 50%;
  transform: translateY(-50%);
  max-width: 60%;
  margin: 0;
  font-size: clamp(1.15rem, .8rem + 1.7vw, 2rem);
  font-weight: 700;
  color: #3aa0e6;
  text-shadow: 0 0 12px #fff, 0 0 4px #fff;
}
@media (min-width: 760px) {
  .banner .slogan { left: 128px; }
}

/* ---------- layout ---------- */
main { padding: 32px var(--gutter) 40px; background: linear-gradient(#f2f8fb, #fff 400px); }

.cols { display: grid; gap: 32px; }
@media (min-width: 760px) {
  .cols { grid-template-columns: 250px 1fr; gap: 40px; }
  .cols.contact { grid-template-columns: 1fr 240px; }
}

.content > :first-child { margin-top: 0; }
.content p, .content li { max-width: 68ch; }

/* sidebar service list */
.list1 { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.list1 li { border-bottom: 1px solid var(--line); }
.list1 a {
  display: block;
  padding: 6px 0 6px 12px;
  font-weight: 600;
  font-size: .95rem;
  text-decoration: none;
  color: var(--blue);
  position: relative;
}
.list1 a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  margin-top: -4px;
  border: 4px solid transparent;
  border-left-color: var(--sky);
}
.list1 a:hover, .list1 a[aria-current] { color: var(--sky); }

/* homepage feature boxes */
.boxes {
  display: grid;
  gap: 15px;
  padding: 0 var(--gutter) 32px;
  margin-top: -40px;
  position: relative;
}
@media (min-width: 640px) {
  .boxes { grid-auto-flow: column; grid-auto-columns: 1fr; margin-top: -70px; }
}
.box {
  display: block;
  padding: 20px 30px;
  color: #fff;
  background: linear-gradient(150deg, #3bbaf6, #5fd9fd);
}
.box.dark { background: linear-gradient(150deg, #2aa6ee, #4ec7f9); }
.box h3 { color: #fff; margin: 0 0 .4em; font-size: clamp(1.7rem, 1.2rem + 1.4vw, 2.5rem); font-weight: 600; line-height: 1; }
.box h3 span { font-weight: 400; }
.box p { margin: 0; font-size: .85rem; line-height: 1.4; }

/* homepage contact strip */
.contact-strip { border-top: 1px solid #c8d3da; margin-top: 32px; padding-top: 20px; color: var(--blue); }
.contact-strip strong { display: block; margin-bottom: .4em; }
.contact-strip ul { list-style: none; margin: 0 0 .4em; padding: 0; }

/* contact page */
.address-card { display: flex; flex-wrap: wrap; gap: 16px 20px; align-items: flex-start; margin-bottom: 1em; }
.address-card img { flex: 0 0 auto; }
.address-card dl { margin: 0; }
.address-card dt { color: var(--blue); margin-bottom: .3em; }
.address-card dd { margin: 0; }
.fb { padding-left: 26px; background: url(../img/fcb.png) left center no-repeat; }
.hours { width: 100%; border-collapse: collapse; margin-bottom: 1.2em; }
.hours th { text-align: left; font-weight: 400; padding: 3px 0; vertical-align: top; }
.hours td { text-align: right; padding: 3px 0; }
.hours caption { text-align: left; font-weight: 700; font-size: .9rem; padding-bottom: 4px; }
.note { font-style: italic; font-size: .95rem; padding: 12px 14px; background: #e6f6fe; border-left: 4px solid var(--sky); }
.map { width: 100%; aspect-ratio: 1 / 1; max-height: 480px; border: 0; display: block; margin: 1em 0 .4em; }

/* pricing */
.table-wrap { overflow-x: auto; }
.prices { width: 100%; max-width: 640px; border-collapse: collapse; margin-bottom: 1.5em; }
.prices th { text-align: left; color: var(--navy); font-size: 1.1rem; font-weight: 600; padding: 18px 8px 6px; border-bottom: 2px solid var(--sky); }
.prices td { padding: 6px 8px; border-bottom: 1px solid var(--line); }
.prices td:last-child { text-align: right; white-space: nowrap; }

/* insurers */
.insurers { list-style: none; margin: 0; padding: 0; max-width: 760px; }
.insurers li { border-bottom: 1px solid var(--line); }
.insurers li:last-child { border-bottom: 0; }
.insurers a { display: grid; grid-template-columns: 200px 1fr; align-items: center; gap: 32px; padding: 24px 0; }
/* logos keep their natural size (max 170px), only scaled down */
.insurers img { width: auto; height: auto; max-width: 100%; max-height: 90px; }
@media (max-width: 639px) {
  .insurers a { grid-template-columns: 110px 1fr; gap: 20px; padding: 18px 0; }
  .insurers img { max-height: 70px; }
}

/* gallery */
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin-top: 12px; }
.gallery a, .gallery img { display: block; }
.gallery img { width: 100%; height: 220px; object-fit: cover; }

/* testimonials */
.testimonial { margin: 0 0 1.5em; padding: 16px 20px; background: #fff; border-left: 4px solid var(--sky); box-shadow: 0 1px 4px rgba(7, 37, 63, .08); }
.testimonial blockquote { margin: 0; font-style: italic; }
.testimonial blockquote p { margin: 0 0 .5em; }
.testimonial figcaption { font-weight: 600; color: var(--blue); font-size: .9rem; }

/* ---------- footer ---------- */
.site-footer {
  background: var(--navy);
  color: #fff;
  padding: 22px var(--gutter);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px 24px;
  font-size: .9rem;
}
.site-footer ul { list-style: none; margin: 0 0 6px; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 22px; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: var(--sky-light); text-decoration: underline; }
.site-footer .copy { color: var(--sky); display: flex; align-items: center; gap: 12px; }
.site-footer .fb-icon { display: inline-block; width: 20px; height: 20px; background: url(../img/fcb.png) no-repeat; }

.sidebar h2 { color: var(--sky); }

@media (max-width: 759px) {
  .cols > .sidebar { order: 2; }
  .banner { display: none; }
  .boxes { margin-top: 0; padding-top: 16px; }
}
@media (max-width: 639px) {
  .boxes { margin-top: 0; padding-top: 16px; gap: 10px; padding-bottom: 8px; }
  .box { padding: 16px 20px; }
  .box h3 { font-size: 1.5rem; }
}
.sidebar > :first-child { margin-top: 0; }
/* the English headings are longer: scale them to the box width so they stay on one line */
html:lang(en) .box { container-type: inline-size; }
html:lang(en) .box h3 { font-size: min(2.5rem, 7.2cqi); white-space: nowrap; }
