/* Shared styles for all four sites. Each page sets --brand, --accent and --ink (see views.tsx). */
:root {
  --bg: #ffffff;
  --bg-alt: #f5f5f3;
  --text: #1d1d1f;
  --muted: #5f6368;
  --line: #e3e3e0;
  --radius: 14px;
  --wrap: 1120px;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--brand); }
h1, h2, h3 { line-height: 1.15; margin: 0 0 0.5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.small { font-size: 0.875rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.plain { list-style: none; padding: 0; margin: 0; }

.env-bar { background: #ff8a00; color: #1d1d1f; text-align: center; font-size: 0.8rem; font-weight: 600; padding: 4px; }

/* Header */
.top { position: sticky; top: 0; z-index: 10; background: var(--ink); color: #fff; }
.top-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 700; }
.logo { height: 48px; width: auto; }
.logo-angelstar { height: 40px; }
.logo-clss { height: 54px; background: #fff; border-radius: 8px; padding: 2px; }
.logo-sunking { height: 40px; }
.wordmark { font-size: 1.1rem; }
.nav { display: flex; align-items: center; gap: 18px; font-size: 0.95rem; }
.nav a { color: #fff; text-decoration: none; opacity: 0.9; }
.nav a:hover { opacity: 1; }
.nav-phone { font-weight: 600; }
@media (max-width: 720px) {
  .nav a:not(.btn) { display: none; }
  .logo { height: 36px; }
  .logo-clss { height: 44px; }
}

/* Buttons */
.btn {
  display: inline-block;
  background: var(--brand);
  color: #fff !important;
  border: 0;
  border-radius: 999px;
  padding: 12px 22px;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}
.btn:hover { filter: brightness(1.08); }
.btn-small { padding: 8px 16px; font-size: 0.9rem; }
.btn-ghost { background: transparent; border: 2px solid rgba(255, 255, 255, 0.8); }
.link { font-weight: 600; text-decoration: none; }

/* Hero */
.hero {
  position: relative;
  color: #fff;
  background: linear-gradient(100deg, color-mix(in srgb, var(--ink) 92%, transparent) 30%, color-mix(in srgb, var(--ink) 45%, transparent)),
    var(--hero, none) center / cover, var(--ink);
}
.hero::after { content: ""; position: absolute; inset: auto 0 0 0; height: 5px; background: linear-gradient(90deg, var(--brand), var(--accent)); }
.hero-inner { padding: 96px 20px 88px; max-width: var(--wrap); }
.eyebrow { text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.8rem; font-weight: 700; color: var(--accent); }
.lead { font-size: 1.2rem; max-width: 640px; opacity: 0.92; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

/* Sections */
.section { padding: 72px 0; }
.section-alt { background: var(--bg-alt); }

/* Service cards */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; margin-top: 24px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.card-img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; background: var(--bg-alt); }
.card-img-blank { background: linear-gradient(135deg, var(--brand), var(--accent)); opacity: 0.85; }
.card-body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.card-body p { color: var(--muted); }
.card-body .link { margin-top: auto; }
.ticks { padding: 0; margin: 0 0 14px; list-style: none; font-size: 0.92rem; }
.ticks li { padding-left: 22px; position: relative; margin: 2px 0; }
.ticks li::before { content: "✓"; position: absolute; left: 0; color: var(--brand); font-weight: 700; }

/* Family (hub) */
.family { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; margin: 24px 0 32px; }
.family-card {
  display: flex; flex-direction: column; gap: 6px; padding: 20px; border-radius: var(--radius);
  background: #fff; border: 1px solid var(--line); border-top: 5px solid var(--c); color: var(--text); text-decoration: none;
}
.family-card:hover { box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08); }
.family-card strong { color: var(--c); font-size: 1.1rem; }
.callout {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
  padding: 24px; border-radius: var(--radius); background: var(--ink); color: #fff;
}
.callout p { margin: 4px 0 0; opacity: 0.85; }

/* About */
.about { max-width: 760px; }
.award { width: 120px; margin-top: 12px; }

/* Contact */
.contact { display: grid; grid-template-columns: 1fr 1.4fr; gap: 40px; }
@media (max-width: 820px) { .contact { grid-template-columns: 1fr; } }
.form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: grid; gap: 14px; }
.form label { display: grid; gap: 6px; font-weight: 600; font-size: 0.92rem; }
.form input, .form select, .form textarea {
  font: inherit; font-weight: 400; padding: 10px 12px; border: 1px solid #cfcfcb; border-radius: 10px; background: #fff; width: 100%;
}
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--brand); outline-offset: 1px; border-color: transparent; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .row2 { grid-template-columns: 1fr; } }
.hp { position: absolute; left: -9999px; }
.notice { padding: 12px 14px; border-radius: 10px; font-weight: 600; }
.notice.ok { background: #e7f6ec; color: #1e6b3a; }
.notice.err { background: #fdecec; color: #9b1c1c; }

/* Footer */
.foot { background: var(--ink); color: rgba(255, 255, 255, 0.85); padding: 48px 0 24px; }
.foot a { color: #fff; }
.foot .muted { color: rgba(255, 255, 255, 0.6); }
.foot-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 32px; margin-bottom: 24px; }
@media (max-width: 720px) { .foot-grid { grid-template-columns: 1fr; } }
.foot li { margin: 4px 0; }
.foot [aria-current] { font-weight: 700; }
