/* Shared styles for the Super Squirrel root site (index + subpages).
   The CFacil site has its own theme under src/CFacil/assets/. */
:root {
  --bg: #0e1116;
  --bg-card: #161b22;
  --accent: #f59e0b;
  --accent-soft: rgba(245, 158, 11, 0.12);
  --text: #e6edf3;
  --text-muted: #9aa7b4;
  --border: #2a313a;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  background: radial-gradient(1200px 800px at 70% -10%, #1d2733 0%, var(--bg) 55%);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3rem 1.5rem;
}
.badge {
  display: inline-block;
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: 999px;
  padding: 0.35rem 1rem;
  margin-bottom: 1.25rem;
}
h1 {
  font-size: clamp(2.2rem, 6vw, 3.6rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}
.accent { color: var(--accent); }
a.accent { text-decoration: none; }
a.accent:hover { text-decoration: underline; }
.tagline {
  color: var(--text-muted);
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  max-width: 38rem;
  line-height: 1.6;
  margin-bottom: 3rem;
}
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  max-width: 64rem;
  width: 100%;
}
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem 2rem;
  width: 100%;
  text-align: left;
  box-shadow: 0 8px 32px rgba(0,0,0,0.35);
  display: flex;
  flex-direction: column;
  position: relative;
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.card:hover {
  transform: translateY(-3px);
  border-color: rgba(245, 158, 11, 0.5);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.5);
}
.card-header {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 0.85rem;
}
.card-logo {
  width: 40px; height: 40px;
  flex-shrink: 0;
  border-radius: 12px;
  background: var(--accent-soft);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent);
}
.card-logo svg {
  width: 22px; height: 22px;
  display: block;
}
.card .kicker {
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}
.card h2 {
  font-size: 1.35rem;
  margin: 0;
}
.card p {
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.25rem;
}
.features {
  list-style: none;
  margin-bottom: 1.25rem;
}
.features li {
  color: var(--text-muted);
  line-height: 1.6;
  padding-left: 1.5rem;
  position: relative;
  margin-bottom: 0.4rem;
}
.features li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}
.card .status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--accent);
}
.card h2 a { color: inherit; text-decoration: none; }
.card h2 a:hover { color: var(--accent); }
/* Stretch the card's heading link over the whole card so it is fully
   clickable; the CTA below sits above this overlay via z-index. */
.card h2 a::after { content: ""; position: absolute; inset: 0; z-index: 0; }
.card .card-footer .cta { position: relative; z-index: 1; }
.card .visit {
  display: inline-block;
  margin-left: 1.25rem;
  font-size: 0.85rem;
  color: var(--accent);
  text-decoration: none;
}
.card .visit:hover { text-decoration: underline; }
.card .card-footer { margin-top: auto; }
.cta {
  display: inline-block;
  background: var(--accent);
  color: var(--bg);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.55rem 1.15rem;
  border-radius: 8px;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  font-family: inherit;
}
.cta:hover { filter: brightness(1.12); }
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}
.contact {
  margin-top: 2.5rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}
.contact a { color: var(--accent); text-decoration: none; }
.contact a:hover { text-decoration: underline; }
footer {
  border-top: 1px solid var(--border);
  padding: 1.25rem 1.5rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.8rem;
  line-height: 1.6;
}

/* ===== Subpages (offering and contact pages) ===== */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border);
}
.site-header .home {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
}
/* Logo placeholder: bordered tile holding the squirrel mark. */
.site-header .home .mark {
  width: 34px; height: 34px;
  flex-shrink: 0;
  border-radius: 9px;
  background: var(--accent-soft);
  border: 1px solid var(--border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  line-height: 1;
}
.site-nav { display: flex; gap: 1.1rem; flex-wrap: wrap; }
.site-nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
}
.site-nav a:hover,
.site-nav a[aria-current="page"] { color: var(--accent); }

/* Index hero: smaller than the default h1 scale now the nav carries the mark. */
.hero h1 { font-size: clamp(1.9rem, 4.5vw, 2.8rem); margin-bottom: 0.6rem; }
.hero .tagline { margin-bottom: 2.25rem; }

/* Contact page: service-specific sub-header revealed by query string. */
.contact-subhead {
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 0.75rem;
}

main.subpage {
  align-items: flex-start;
  justify-content: flex-start;
  text-align: left;
  width: 100%;
  max-width: 52rem;
  margin: 0 auto;
}
.subpage h1 { font-size: clamp(1.9rem, 5vw, 2.8rem); }
.subpage .tagline { margin-bottom: 2rem; max-width: none; }
.subpage section { width: 100%; margin-bottom: 2.25rem; }
.subpage h2 { font-size: 1.3rem; margin-bottom: 0.6rem; }
.subpage p { color: var(--text-muted); line-height: 1.7; margin-bottom: 1rem; }
.subpage .page-cta { display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap; }
.subpage .page-cta .alt { color: var(--text-muted); font-size: 0.9rem; }
.subpage .page-cta .alt a { color: var(--accent); text-decoration: none; }
.subpage .page-cta .alt a:hover { text-decoration: underline; }

/* Contact page */
.contact-split {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 2rem;
  width: 100%;
}
@media (max-width: 720px) {
  .contact-split { grid-template-columns: 1fr; }
}
.contact-form { display: flex; flex-direction: column; gap: 1rem; }
.field { display: flex; flex-direction: column; gap: 0.35rem; }
/* .field sets display:flex, which out-specifies the UA [hidden] rule; restore it. */
.field[hidden] { display: none; }
.field label { font-size: 0.85rem; color: var(--text-muted); }
.field input,
.field textarea {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.6rem 0.75rem;
  color: var(--text);
  font: inherit;
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
/* Honeypot: visually removed but still submittable by naive bots. */
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; }
.btn-block { display: block; width: 100%; text-align: center; }
