/* ============================================================
   Cardano Bloom Cleaning - shared site styles
   Brand: accent #6b5b95, hover #5c4d86, 14px radius, system fonts,
   soft shadows, generous whitespace. Mobile-first: base rules are for
   phones, @media (min-width: ...) blocks add the desktop layout.
   ============================================================ */
:root {
  --accent: #6b5b95;
  --accent-2: #5c4d86;
  --ink: #1f2937;        /* body text */
  --muted: #6b7280;      /* secondary text */
  --line: #e5e7eb;       /* borders */
  --bg: #ffffff;
  --soft: #f7f6fb;       /* tinted section background */
  --radius: 14px;
  --shadow: 0 6px 22px rgba(0, 0, 0, .08);
  --maxw: 1100px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, Inter, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font: 400 16px/1.65 var(--font);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); }
h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 .5em; font-weight: 800; }
h1 { font-size: clamp(2rem, 6vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 4.5vw, 2.3rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
ul { padding-left: 1.2em; margin: 0 0 1em; }
li { margin-bottom: .35em; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 5vw; }
.muted { color: var(--muted); }
.center { text-align: center; }
.eyebrow {
  display: inline-block; color: var(--accent); font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase; font-size: .8rem; margin-bottom: .6em;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 22px; border-radius: 999px; border: 2px solid var(--accent);
  background: var(--accent); color: #fff; font-weight: 800; font-size: .95rem;
  text-decoration: none; cursor: pointer; transition: background .15s, border-color .15s;
}
.btn:hover { background: var(--accent-2); border-color: var(--accent-2); }
.btn.outline { background: transparent; color: var(--accent); }
.btn.outline:hover { background: var(--accent); color: #fff; }
.btn.light { background: #fff; border-color: #fff; color: var(--accent); }
.btn.light:hover { background: #f1eef8; border-color: #f1eef8; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .96); backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  position: relative;
  display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 66px;
}
.brand { display: block; line-height: 0; }
.brand img { height: 48px; width: auto; }

/* Hamburger button (phones only) */
.nav-toggle {
  display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px; padding: 10px; border: 1px solid var(--line);
  border-radius: 10px; background: #fff; cursor: pointer;
}
.nav-toggle span { display: block; height: 2px; background: var(--ink); border-radius: 2px; }

/* Mobile menu: hidden until .open is added by site.js */
.site-nav {
  display: none; position: absolute; left: 0; right: 0; top: 100%;
  background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
  padding: 10px 5vw 18px; flex-direction: column; gap: 4px;
}
.site-nav.open { display: flex; }
.site-nav a { padding: 12px 6px; text-decoration: none; color: var(--ink); font-weight: 600; border-radius: 8px; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--accent); }
.site-nav .btn { margin-top: 8px; color: #fff; align-self: flex-start; }
.site-nav .btn:hover, .site-nav .btn[aria-current="page"] { color: #fff; }

@media (min-width: 860px) {
  .nav-toggle { display: none; }
  .site-nav {
    display: flex; position: static; flex-direction: row; align-items: center; gap: 6px;
    background: none; border: 0; box-shadow: none; padding: 0;
  }
  .site-nav a { padding: 8px 12px; }
  .site-nav .btn { margin: 0 0 0 8px; padding: 10px 18px; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; color: #fff; overflow: hidden;
  background: var(--accent-2);
}
.hero img.hero-bg {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55;
}
.hero::after { /* dark gradient so white text stays readable over the photo */
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(50, 40, 80, .55), rgba(50, 40, 80, .75));
}
.hero .wrap { position: relative; z-index: 1; padding-top: 72px; padding-bottom: 72px; max-width: 760px; }
.hero p { font-size: 1.1rem; max-width: 560px; }
.hero.small .wrap { padding-top: 48px; padding-bottom: 48px; }
@media (min-width: 860px) {
  .hero .wrap { padding-top: 110px; padding-bottom: 110px; }
  .hero.small .wrap { padding-top: 64px; padding-bottom: 64px; }
}

/* ---------- Sections ---------- */
.section { padding: 56px 0; }
.section.soft { background: var(--soft); }
.section-head { max-width: 640px; margin-bottom: 32px; }
@media (min-width: 860px) { .section { padding: 80px 0; } }

/* Two-column text + image */
.split { display: grid; gap: 28px; align-items: center; }
.split img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; object-fit: cover; }
.split img.portrait { max-height: 520px; }
@media (min-width: 860px) {
  .split { grid-template-columns: 1fr 1fr; gap: 56px; }
  .split.reverse > :first-child { order: 2; }
}

/* ---------- Cards ---------- */
.cards { display: grid; gap: 20px; }
@media (min-width: 640px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .cards.cols-3 { grid-template-columns: repeat(3, 1fr); } }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column;
}
.card img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.card .card-body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.card h3 { margin-bottom: .4em; }
.card h3 a { text-decoration: none; color: inherit; }
.card h3 a:hover { color: var(--accent); }
.card p.muted { font-size: .95rem; }
.card ul { font-size: .95rem; color: var(--ink); }
.card .btn { align-self: flex-start; margin-top: auto; }

/* Values list (About page) */
.values { list-style: none; padding: 0; display: grid; gap: 12px; }
.values li { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; margin: 0; }
.values b { color: var(--accent); }

/* Contact page */
.contact-grid { display: grid; gap: 20px; }
@media (min-width: 720px) { .contact-grid { grid-template-columns: repeat(3, 1fr); } }
.contact-tile {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 24px;
}
.contact-tile h3 { font-size: 1rem; color: var(--muted); font-weight: 700; margin-bottom: .5em; }
.contact-tile a { font-weight: 700; text-decoration: none; font-size: 1.15rem; }
.contact-tile a:hover { text-decoration: underline; }

/* Call-to-action band */
.cta-band { background: var(--accent); color: #fff; text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band p { max-width: 560px; margin: 0 auto 1.4em; }

/* Prose pages (privacy) */
.prose { max-width: 720px; }
.prose h2 { font-size: 1.35rem; margin-top: 1.8em; }

/* Thanks / pay / 404 */
.photo-pair { display: grid; gap: 16px; grid-template-columns: 1fr 1fr; max-width: 640px; margin: 32px auto 0; }
.photo-pair img { border-radius: var(--radius); box-shadow: var(--shadow); aspect-ratio: 3 / 4; object-fit: cover; width: 100%; }

/* ---------- Footer ---------- */
.site-footer { background: #1f1b2e; color: #cfc9e2; padding: 48px 0 24px; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer h4 { color: #fff; font-size: .9rem; letter-spacing: .05em; text-transform: uppercase; margin-bottom: .8em; }
.footer-grid { display: grid; gap: 28px; }
@media (min-width: 720px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.footer-logo { background: #fff; border-radius: 10px; padding: 6px 10px; display: inline-block; margin-bottom: 12px; }
.footer-logo img { height: 40px; width: auto; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 32px; padding-top: 20px; font-size: .9rem; }
.footer-bottom p { margin: 0; }
