/*
 * Starter theme — a clean, dependency-free base for a from-scratch site.
 * Colors resolve through the same CSS custom-property tokens the CMS theming
 * engine edits (--palette_*-rgb / --body-*-rgb), so "Brand & Colors" recolors
 * this theme too. Every static-color rule pairs a literal fallback with the
 * var() form for old browsers.
 */

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  color: #303030;
  color: rgba(var(--body-2-rgb), 1);
  background: #f2f2f2;
  background: rgba(var(--body-1-rgb), 1);
  /* sticky footer: short pages must not leave the footer floating mid-screen */
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
img { max-width: 100%; height: auto; }
a { color: #3d0c36; color: rgba(var(--palette_b-1-rgb), 1); }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

/* header + nav */
.site-header {
  background: #3d0c36;
  background: rgba(var(--palette_b-1-rgb), 1);
  color: #fff;
  color: rgba(var(--palette_b-2-rgb), 1);
}
.site-header .wrap { display: flex; align-items: center; gap: 20px; min-height: 76px; flex-wrap: wrap; }
.site-logo { font-size: 21px; font-weight: 800; letter-spacing: .2px; text-decoration: none; color: inherit; }
.site-logo img { max-height: 48px; width: auto; vertical-align: middle; }
.site-nav { margin-left: auto; }
.site-nav ul { list-style: none; display: flex; gap: 6px; margin: 0; padding: 0; flex-wrap: wrap; }
.site-nav a {
  display: block; padding: 8px 14px; border-radius: 8px; text-decoration: none;
  color: inherit; font-weight: 600; font-size: 15px; opacity: .92;
}
.site-nav a:hover { background: rgba(255, 255, 255, .14); opacity: 1; }
.site-nav a.current { background: rgba(255, 255, 255, .2); opacity: 1; }

/* hero band (home) */
.hero {
  background: #340a2e;
  background: rgba(var(--palette_c-1-rgb), 1);
  color: #ccc;
  color: rgba(var(--palette_c-2-rgb), 1);
  padding: 64px 0;
}
.hero h1 { font-size: clamp(30px, 5vw, 48px); margin: 0 0 12px; line-height: 1.1; }
.hero p { font-size: 19px; max-width: 60ch; margin: 0 auto; }
.hero .wrap { text-align: center; }
.btn {
  display: inline-block; margin-top: 22px; padding: 12px 26px; border-radius: 999px;
  font-weight: 700; text-decoration: none;
  background: #e0dbdf; background: rgba(var(--palette_d-1-rgb), 1);
  color: #303030; color: rgba(var(--palette_d-2-rgb), 1);
}

/* main content */
main { padding: 48px 0; }
main h1 { font-size: clamp(26px, 4vw, 38px); margin: 0 0 8px; color: rgba(var(--palette_b-1-rgb), 1); }
main h2 { font-size: 24px; margin: 34px 0 10px; color: rgba(var(--palette_c-1-rgb), 1); }
main p { margin: 0 0 16px; }
.lead { font-size: 19px; color: rgba(var(--body-2-rgb), .82); }

/* simple card grid for services / staff */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; margin: 24px 0; }
.card {
  background: #fff; background: rgba(var(--palette_a-1-rgb), 1);
  color: #303030; color: rgba(var(--palette_a-2-rgb), 1);
  border: 1px solid rgba(0, 0, 0, .08); border-radius: 12px; padding: 20px;
}
.card h3 { margin: 0 0 8px; font-size: 18px; }
.card .avatar {
  width: 72px; height: 72px; border-radius: 50%; margin-bottom: 12px;
  background: rgba(var(--palette_d-1-rgb), 1);
  display: flex; align-items: center; justify-content: center; font-size: 26px; font-weight: 800;
  color: rgba(var(--palette_d-2-rgb), 1);
}

/* contact block */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.contact-grid .label { font-weight: 700; text-transform: uppercase; font-size: 12px; letter-spacing: .06em; color: rgba(var(--body-2-rgb), .6); }

/* footer — margin-top:auto pins it to the viewport bottom on short pages */
.site-footer {
  margin-top: auto; padding: 32px 0;
  background: #303030; background: rgba(var(--palette_e-1-rgb), 1);
  color: #eee; color: rgba(var(--palette_e-2-rgb), 1);
  font-size: 14px;
}
.site-footer a { color: inherit; }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 16px 28px; flex-wrap: wrap; align-items: flex-start; }
.footer-contact { display: flex; flex-direction: column; gap: 4px; }
.footer-legal { display: flex; flex-direction: column; gap: 4px; text-align: right; opacity: .85; }

@media (max-width: 640px) {
  .site-header .wrap { min-height: 0; padding-top: 12px; padding-bottom: 12px; }
  .site-nav { margin-left: 0; width: 100%; }
  .hero { padding: 44px 0; }
}
