/* UF Labs Launch template — tokens from DESIGN.md */
:root {
  --color-primary: #5c7a6e;
  --color-primary-dark: #3d5249;
  --color-background: #f7f5f2;
  --color-surface: #ffffff;
  --color-text: #2a2a28;
  --color-muted: #5c5c56;
  --color-accent: #c9a87c;
  --color-border: #e5e0d8;
  --max-width: 1080px;
  --radius: 14px;
  --radius-pill: 999px;
  --shadow: 0 10px 30px rgba(42, 42, 40, 0.08);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-background);
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--color-primary-dark); }
a:hover { color: var(--color-primary); }

.container {
  width: min(100% - 2rem, var(--max-width));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--color-primary-dark);
  color: #fff;
  padding: 0.5rem 1rem;
  z-index: 100;
}
.skip-link:focus { left: 0; }

/* Header */
.site-header {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--color-primary-dark);
  font-weight: 700;
  font-size: 1.05rem;
}

/* TNT horizontal logo — 2× prior 48px nav height */
.brand .site-logo,
.site-logo {
  height: 96px;
  width: auto;
  display: block;
}

/* TNT stacked logo — legacy accents (not used in footers) */
.site-logo-stacked {
  width: min(168px, 42vw);
  height: auto;
  display: block;
}

/* Mid-page section logo (cream backgrounds) */
.tnt-section-logo {
  width: min(320px, 72vw);
  height: auto;
  display: block;
  margin: 0 auto clamp(16px, 3vw, 28px);
}

/* Stacked logo on dark footers: no matte box, no link chrome */
.tnt-footer .site-logo-stacked,
.site-footer .site-logo-stacked {
  background: transparent;
  border: 0;
  box-shadow: none;
}

.tnt-footer__brand a,
.footer-brand a {
  display: inline-block;
  text-decoration: none;
  background: transparent;
  border: 0;
  padding: 0;
  line-height: 0;
}

.footer-brand {
  flex: 0 0 auto;
}

/* Rich footer (home + about) */
.tnt-footer {
  background: #1f2440;
  color: #b9beda;
  padding: clamp(36px, 5vw, 56px) clamp(16px, 4vw, 32px);
  border-top: 2px solid #343a5e;
}

.tnt-footer__main {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(200px, 300px) 1fr;
  gap: clamp(20px, 3vw, 36px);
  align-items: center;
}

.tnt-footer__brand {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tnt-footer__brand p {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
}

.tnt-footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(24px, 4vw, 40px);
  justify-content: flex-end;
  align-items: flex-start;
}

.tnt-footer__nav-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  min-width: 140px;
}

.tnt-footer__nav-col--social {
  gap: 10px;
}

.tnt-footer__nav-title {
  color: #fff;
  font-family: "Fredoka", sans-serif;
  font-size: 15px;
}

.tnt-footer__nav a {
  color: #b9beda;
  text-decoration: none;
}

.tnt-footer__nav a:hover {
  color: #ffc53d;
}

.tnt-footer__legal {
  max-width: 1200px;
  margin: 32px auto 0;
  font-size: 12px;
  font-weight: 600;
  border-top: 1px solid #343a5e;
  padding-top: 20px;
  text-align: center;
}

.tnt-footer__studio {
  max-width: 1200px;
  margin: 16px auto 0;
  display: flex;
  justify-content: center;
  padding-top: 4px;
}

@media (max-width: 900px) {
  .tnt-footer__main {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .tnt-footer__nav {
    justify-content: flex-start;
  }
}

.logo-mark {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 10px;
  background: var(--color-primary);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 0.4rem 0.65rem;
  font: inherit;
  cursor: pointer;
  color: var(--color-primary-dark);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 1rem;
}

.nav a {
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
}

.nav a[aria-current="page"] {
  color: var(--color-primary);
  font-weight: 700;
}

.nav .tel {
  font-weight: 700;
  white-space: nowrap;
}

@media (max-width: 720px) {
  .nav-toggle { display: block; }
  .nav {
    display: none;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    padding-bottom: 0.75rem;
  }
  .nav.is-open { display: flex; }
  .header-inner { flex-wrap: wrap; }
}

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 100%);
  color: #fff;
  padding: 3.5rem 0 3rem;
}

.hero h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  line-height: 1.15;
  max-width: 18ch;
}

.hero .lede {
  margin: 0 0 1.5rem;
  font-size: 1.1rem;
  opacity: 0.95;
  max-width: 42ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-block;
  padding: 0.7rem 1.35rem;
  border-radius: var(--radius-pill);
  font-weight: 700;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  font-size: 1rem;
}

.btn-primary {
  background: #fff;
  color: var(--color-primary-dark);
}
.btn-primary:hover { background: var(--color-background); color: var(--color-primary-dark); }

.btn-secondary {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.85);
}
.btn-secondary:hover { background: rgba(255, 255, 255, 0.12); color: #fff; }

/* Sections */
.section { padding: 2.75rem 0; }
.section-alt { background: var(--color-surface); }

.section h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--color-primary-dark);
}

.section p { margin: 0 0 1rem; color: var(--color-muted); }
.section p:last-child { margin-bottom: 0; }

.grid-3 {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  margin-top: 1.5rem;
}

.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.35rem;
  box-shadow: var(--shadow);
}

.card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
  color: var(--color-primary-dark);
}

.card p { margin: 0; font-size: 0.95rem; }

/* Contact form */
.form-grid {
  display: grid;
  gap: 1rem;
  max-width: 36rem;
}

label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: var(--color-primary-dark);
}

input, textarea, select {
  width: 100%;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  font: inherit;
  background: var(--color-surface);
}

textarea { min-height: 8rem; resize: vertical; }

.honeypot { position: absolute; left: -9999px; }

.form-error {
  display: none;
  margin-top: 0.5rem;
  padding: 1rem 1.25rem;
  border-radius: 10px;
  background: rgba(180, 60, 40, 0.08);
  border: 1px solid rgba(180, 60, 40, 0.35);
  font-size: 0.95rem;
  color: var(--color-primary-dark);
}

.form-error[hidden] { display: none !important; }

.form-error:not([hidden]) { display: block; }

/* Footer */
.site-footer {
  background: var(--color-primary-dark);
  color: rgba(255, 255, 255, 0.88);
  padding: 2rem 0;
  font-size: 0.9rem;
}

.site-footer a { color: #fff; }
.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  justify-content: space-between;
  align-items: flex-start;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
}

.footer-links a { text-decoration: none; opacity: 0.9; }
.footer-links a:hover { opacity: 1; text-decoration: underline; }

/* Cookie consent (GA4) — styling for #cookie-consent now lives in
   site/js/analytics.js (injectStyles()), not here. It is a shared
   component appended on every page (including custom-templated pages
   like index.html/about.html/party-sessions.html/schools-and-nurseries.html/
   book.html that do not load this stylesheet at all), so it owns its own
   CSS to guarantee it always renders correctly regardless of which page
   template loads it. Do not re-add .cookie-consent rules here — fix or
   extend the banner's styling in analytics.js so every page stays
   consistent. (2026-07-26 fix: banner rendered unstyled/overlapping on
   pages that never linked this file.) */

/* Utility */
.page-title {
  margin: 0 0 0.5rem;
  font-size: clamp(1.75rem, 3.5vw, 2.25rem);
  color: var(--color-primary-dark);
}

.prose { max-width: 65ch; }
.prose h2 { font-size: 1.25rem; margin: 1.5rem 0 0.5rem; color: var(--color-primary-dark); }
.prose ul { padding-left: 1.25rem; color: var(--color-muted); }

.centered { text-align: center; padding: 4rem 0; }

/* Studio credit (care.footer_credit) — UF Labs mark + wordmark */
.footer-studio {
  display: flex;
  justify-content: center;
  padding: 14px 1rem 16px;
  background: #0d1113;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.site-footer .footer-studio {
  flex-basis: 100%;
  margin-top: 1.25rem;
  padding-top: 1rem;
  background: transparent;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.studio-credit {
  display: inline-flex;
  text-decoration: none;
  color: rgba(237, 240, 241, 0.72);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.studio-credit:hover {
  color: #edf0f1;
}

.studio-credit-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
  line-height: 1.35;
  text-align: center;
}

.studio-credit-line {
  letter-spacing: 0.02em;
}


.studio-credit-lockup {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  text-align: center;
}

.studio-credit-wordmark {
  font-family: Inter, system-ui, -apple-system, Segoe UI, sans-serif;
  font-weight: 800;
  font-size: 1.15rem;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: #edf0f1;
  text-transform: lowercase;
}

.studio-credit-dot {
  display: inline-block;
  width: 0.34em;
  height: 0.34em;
  margin: 0 0.12em;
  border-radius: 50%;
  background-color: #12a574;
  vertical-align: 0.1em;
}

.studio-credit-tagline {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-weight: 400;
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(237, 240, 241, 0.55);
}

.studio-credit:hover .studio-credit-wordmark {
  color: #edf0f1;
}


/* Optional social CTAs (hidden when manifest URLs empty) */
.social-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1rem 0 0;
}

.social-cta-row[hidden] {
  display: none !important;
}

.btn-social {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 0.9rem;
  border: 1px solid var(--color-border, rgba(0, 0, 0, 0.12));
  border-radius: 8px;
  text-decoration: none;
  color: var(--color-text, #1a1a1a);
  font-size: 0.9rem;
  background: transparent;
}

.btn-social:hover {
  border-color: var(--color-primary, #0d1113);
}

.btn-social[hidden] {
  display: none !important;
}
