/* Tech4Cancer — shared tokens, reset, and Nav/Footer styles */

:root {
  /* Overridden at runtime from assets/js/config.js (window.T4C_CONFIG.theme) */
  --accent: #203bd4;
  --warm: #ff734d;
  --page-bg: #F1F4F9;
  --ink: #101A33;
  --ink-text: #2C3550;
  --body-text: #515A6B;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Assistant', sans-serif;
  color: var(--ink-text);
  background: var(--page-bg);
}
a { transition: opacity 0.15s; }
img { max-width: 100%; }

.t4c-btn {
  display: inline-block;
  font-weight: 600;
  font-size: 18px;
  padding: 16px 42px;
  border-radius: 8px;
  text-decoration: none;
  border: none;
  cursor: pointer;
}
.t4c-btn-accent { background: var(--accent); color: #fff; }
.t4c-btn-outline { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,0.4); }

/* ---------- Nav ---------- */
.t4c-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 48px;
  background: rgba(245,247,252,0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(15,26,68,0.08);
  font-family: 'Assistant', sans-serif;
}
.t4c-nav-logo { display: block; flex-shrink: 0; }
.t4c-nav-logo img { height: 40px; width: auto; display: block; }
.t4c-nav-links { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
@media (min-width: 861px) {
  .t4c-nav[dir="rtl"] { justify-content: flex-start; padding-inline: 24px; }
  .t4c-nav[dir="rtl"] .t4c-nav-links { margin-inline-start: 16px; }
  .t4c-nav[dir="rtl"] .t4c-nav-actions { margin-inline-start: auto; }
}
.t4c-nav-link {
  text-decoration: none;
  color: #2a3457;
  font-weight: 600;
  font-size: 17px;
  padding-bottom: 3px;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  transition: color 0.15s;
}
.t4c-nav-link.is-active {
  color: var(--accent);
  font-weight: 700;
  border-bottom: 2px solid var(--accent);
}
.t4c-nav-actions { display: flex; align-items: center; gap: 16px; flex-shrink: 0; }
.t4c-lang-toggle { font-size: 14px; font-weight: 700; color: #8a92ad; letter-spacing: 0.02em; }
.t4c-lang-toggle a { color: #8a92ad; text-decoration: none; }
.t4c-lang-toggle .is-current { color: var(--accent); }
.t4c-lang-sep { opacity: 0.4; }
.t4c-nav-cta { font-size: 16px; padding: 11px 26px; }

.t4c-nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  flex-shrink: 0;
}
.t4c-nav-toggle-bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink-text);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.t4c-nav-toggle[aria-expanded="true"] .t4c-nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.t4c-nav-toggle[aria-expanded="true"] .t4c-nav-toggle-bar:nth-child(2) { opacity: 0; }
.t4c-nav-toggle[aria-expanded="true"] .t4c-nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* mount wrapper must not clip its sticky child */
[data-t4c-nav] { position: sticky; top: 0; z-index: 100; width: 100%; }

/* ---------- Footer ---------- */
.t4c-footer {
  background: var(--page-bg);
  font-family: 'Assistant', sans-serif;
  border-top: 1px solid rgba(21,23,28,0.12);
}
.t4c-footer-inner { max-width: 1120px; margin: 0 auto; padding: 72px 48px 38px; }
.t4c-footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(21,23,28,0.12);
}
.t4c-footer-brand { max-width: 360px; }
.t4c-footer-brand-row { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.t4c-footer-brand-row img { height: 46px; width: auto; display: block; }
.t4c-footer-brand-row span { font-weight: 700; font-size: 24px; color: var(--ink-text); }
.t4c-footer-desc { font-size: 15.5px; line-height: 1.65; color: var(--body-text); margin: 0; font-weight: 500; }
.t4c-footer-social { display: flex; gap: 10px; margin-top: 22px; }
.t4c-footer-social a {
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(21,23,28,0.06);
  display: flex; align-items: center; justify-content: center;
  color: #15171C; text-decoration: none; font-weight: 700; font-size: 13px;
}
.t4c-footer-head { font-size: 12px; font-weight: 700; letter-spacing: 0.12em; color: var(--warm); margin-bottom: 18px; }
.t4c-footer-nav { display: flex; flex-direction: column; gap: 13px; font-size: 15.5px; font-weight: 500; }
.t4c-footer-nav a { color: #15171C; text-decoration: none; }
.t4c-footer-email { font-size: 21px; color: var(--ink-text); font-weight: 600; text-decoration: none; display: block; margin-bottom: 10px; }
.t4c-footer-talk-desc { font-size: 14.5px; line-height: 1.6; color: #6a7282; margin: 0 0 20px; font-weight: 500; }
.t4c-footer-cta { font-size: 14.5px; padding: 12px 28px; }
.t4c-footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 12px; padding-top: 26px;
}
.t4c-footer-copyright { font-size: 13px; color: #8b93a3; }
.t4c-footer-legal { display: flex; gap: 22px; font-size: 13px; }
.t4c-footer-legal a { color: #8b93a3; text-decoration: none; }

@media (max-width: 860px) {
  .t4c-nav { padding: 12px 16px; flex-wrap: wrap; }
  .t4c-nav-toggle { display: flex; }
  .t4c-nav[dir="rtl"] .t4c-nav-toggle { order: -1; }
  .t4c-nav-links {
    display: none;
    order: 3;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(15,26,68,0.08);
  }
  .t4c-nav-links.is-open { display: flex; }
  .t4c-nav-link { padding: 10px 4px; border-bottom: 1px solid rgba(15,26,68,0.06); }
  .t4c-nav-link.is-active { border-bottom: 1px solid rgba(15,26,68,0.06); }
  .t4c-nav-logo img { height: 28px; }
  .t4c-nav-actions { gap: 8px; }
  .t4c-lang-toggle { font-size: 12px; }
  .t4c-nav-cta { font-size: 13px; padding: 8px 12px; }
  .t4c-footer-top { grid-template-columns: 1fr; }
}
