/* ---------- Fonts (self-hosted, no outside requests) ---------- */
@font-face {
  font-family: "Marcellus";
  src: url("../fonts/Marcellus.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Libre Franklin";
  src: url("../fonts/LibreFranklin.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Libre Franklin";
  src: url("../fonts/LibreFranklin-italic.woff2") format("woff2");
  font-weight: 100 900; font-style: italic; font-display: swap;
}

/* ---------- Colors (from the original site) ---------- */
:root {
  --mint: #a7f3d0;
  --teal: #43778d;        /* contacts / quote / footer */
  --teal-dark: #2a5263;   /* referrals */
  --sky: #67e8f9;         /* gallery */
  --ink: #083344;
  --ink-soft: #334155;
  --link: #075985;
  --white: #fff;
  --heading: "Marcellus", Georgia, "Times New Roman", serif;
  --body: "Libre Franklin", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
}
img { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--heading); font-weight: 400; line-height: 1.25; margin: 0 0 .75em; }
h1 { font-size: clamp(2rem, 4vw, 2.75rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; }
a { color: var(--link); }
section[id] { scroll-margin-top: 70px; }

.container { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.container.narrow { max-width: 720px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 28px;
  background: var(--white);
  box-shadow: 0 1px 6px rgba(0,0,0,.08);
}
.brand { font-family: var(--heading); font-size: 1.35rem; color: #0d0d0d; text-decoration: none; }
.site-nav { display: flex; gap: 28px; }
.site-nav a { color: #0d0d0d; text-decoration: none; font-size: .95rem; }
.site-nav a:hover { color: var(--link); text-decoration: underline; }
.nav-toggle { display: none; background: none; border: 0; padding: 6px; cursor: pointer; }
.nav-toggle span { display: block; width: 22px; height: 2px; margin: 5px 0; background: #0d0d0d; }

@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .site-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0; background: var(--white);
    box-shadow: 0 6px 10px rgba(0,0,0,.08);
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 14px 28px; border-top: 1px solid #eee; }
}

/* ---------- Home / hero ---------- */
.hero { position: relative; background: var(--mint); overflow: hidden; }
.hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: .39;
}
.hero-bg::after { content: ""; position: absolute; inset: 0; background: rgba(255,255,255,.35); }
.hero-content { position: relative; padding-block: 120px 140px; max-width: 760px; margin-left: max(20px, calc((100% - 1120px) / 2 + 20px)); }
.hero-content p { color: var(--ink-soft); font-size: 1.05rem; }
.hero-content strong { color: #0d0d0d; }

/* ---------- Quote banner ---------- */
.quote-banner { background: var(--teal); color: var(--white); text-align: center; padding: 64px 0; }
.quote-banner h2 { max-width: 640px; margin: 0 auto; font-size: clamp(1.35rem, 2.6vw, 1.75rem); }

/* ---------- Image banner ---------- */
.image-banner { position: relative; height: 320px; overflow: hidden; }
.image-banner img { width: 100%; height: 100%; object-fit: cover; }
.image-banner::after { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.2); }

/* ---------- Contacts ---------- */
.contacts { background: var(--teal); color: var(--white); padding: 64px 0 80px; }
.contacts p { font-family: var(--heading); font-size: 1.15rem; }
.contacts a { color: var(--white); }

/* ---------- Referrals ---------- */
.referrals { background: var(--teal-dark); color: var(--white); padding: 72px 0 88px; }
.referrals > .container > h2 { text-align: center; margin-bottom: 40px; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 40px; }
.card img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; margin-bottom: 20px; }
.card p { font-size: .95rem; }
.card a { color: var(--mint); }
.card .address { margin-top: 1.5em; }

/* ---------- Gallery ---------- */
.gallery { background: var(--sky); padding: 64px 0 72px; text-align: center; }
.carousel { position: relative; display: flex; align-items: center; gap: 12px; }
.slides { flex: 1; position: relative; aspect-ratio: 4 / 3; max-height: 70vh; margin: 0 auto; }
.slide { position: absolute; inset: 0; margin: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; opacity: 0; transition: opacity .4s; pointer-events: none; }
.slide.active { opacity: 1; pointer-events: auto; }
.slide img { max-height: calc(100% - 2em); width: auto; object-fit: contain; }
.slide figcaption { margin-top: .5em; font-size: .95rem; }
.carousel-btn {
  background: none; border: 0; cursor: pointer;
  font-size: 3rem; line-height: 1; color: var(--ink); padding: 8px 12px;
}
.carousel-btn:hover { color: var(--link); }
.counter { margin-top: 16px; font-size: .9rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--teal); color: var(--white); padding: 40px 0; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.site-footer .brand { color: var(--white); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 20px; }
.site-footer nav a { color: var(--white); text-decoration: none; }
.site-footer nav a:hover { text-decoration: underline; }
.copyright { width: 100%; margin: 8px 0 0; font-size: .85rem; opacity: .85; }
