/* =============================================
   ChadTax — Global Styles
   ============================================= */

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

:root {
  --white:    #ffffff;
  --off-white:#eceef1;   /* page */
  --ink:      #16181d;
  --mid:      #6b7280;
  --light:    #9aa0aa;
  --accent:   #ff5a3c;   /* coral */
  --accent-lt:#fff4f1;
  --navy:     #0c1b38;
  --border:   #e2e5ea;

  --font-sans: 'Manrope', system-ui, -apple-system, sans-serif;
  --font-display: 'Manrope', system-ui, -apple-system, sans-serif;
  --font-mono: 'Space Mono', ui-monospace, monospace;

  --max-w: 1100px;
  --section-pad: 96px;
}

/* Swiss Period wordmark logo (live text) */
.nav-wm { font-family: var(--font-display); font-weight: 800; font-size: 26px; letter-spacing: -0.04em; color: var(--ink); }
.nav-wm .dot { color: var(--accent); }
.footer-wm { font-family: var(--font-display); font-weight: 800; font-size: 32px; letter-spacing: -0.04em; color: var(--white); }
.footer-wm .dot { color: var(--accent); }
.dot { color: var(--accent); }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--white);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* ---- Typography ---- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.2;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); font-weight: 700; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 600; }
p  { color: var(--mid); max-width: 62ch; }

a { color: inherit; text-decoration: none; }

/* ---- Layout ---- */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

section { padding: var(--section-pad) 0; }

.section-label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
  display: block;
}

.divider {
  width: 40px;
  height: 2px;
  background: var(--accent);
  margin: 20px 0 32px;
}

/* ---- Nav ---- */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  height: 88px;
  display: flex;
  align-items: center;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.nav-logo span { color: var(--accent); }

.nav-logo-img {
  height: 72px;
  width: auto;
  display: block;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
}

.nav-links a {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--light);
  transition: color 0.2s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--ink); }

.nav-cta {
  font-size: 0.85rem;
  font-weight: 600;
  background: var(--ink);
  color: var(--white) !important;
  padding: 9px 20px;
  border-radius: 6px;
  transition: background 0.2s;
  white-space: nowrap;
}
.nav-cta:hover { background: var(--accent) !important; }

/* Mobile nav */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  flex-direction: column;
  gap: 5px;
  margin-left: 8px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ink);
  transition: all 0.25s;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 14px 28px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--ink);
  color: var(--white);
}
.btn-primary:hover { background: var(--accent); }

.btn-outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--border);
}
.btn-outline:hover { border-color: var(--ink); }

/* ---- Simple footer (used on all pages) ---- */
.simple-footer { background: var(--navy); padding: 48px 0; }
.simple-footer-inner { display: flex; flex-direction: column; align-items: center; gap: 20px; text-align: center; }
.footer-logo { height: 32px; width: auto; filter: brightness(0) invert(1); opacity: 0.7; }
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; justify-content: center; }
.footer-links a { font-size: 0.82rem; color: rgba(255,255,255,0.45); transition: color 0.2s; }
.footer-links a:hover { color: rgba(255,255,255,0.8); }
.footer-legal { font-size: 0.75rem; color: rgba(255,255,255,0.3); line-height: 1.7; }

/* ---- Legacy footer (kept for reference) ---- */
.site-footer {
  background: var(--ink);
  color: rgba(255,255,255,0.5);
  padding: 56px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  margin-bottom: 32px;
}

.footer-brand .nav-logo { color: var(--white); }
.footer-brand p { color: rgba(255,255,255,0.45); margin-top: 12px; font-size: 0.88rem; max-width: 28ch; }

.footer-col h4 {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  margin-bottom: 16px;
}

.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul a {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.5);
  transition: color 0.2s;
}
.footer-col ul a:hover { color: var(--white); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
}
.footer-bottom a { color: rgba(255,255,255,0.5); }
.footer-bottom a:hover { color: var(--white); }

/* ---- Utilities ---- */
.bg-off { background: var(--off-white); }
.text-center { text-align: center; }
.mt-4 { margin-top: 16px; }
.mt-8 { margin-top: 32px; }
.mt-12 { margin-top: 48px; }

/* ---- Fade-in on scroll ---- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---- Page header (interior pages) ---- */
.page-header {
  padding: calc(68px + 80px) 0 80px;
  border-bottom: 1px solid var(--border);
}
.page-header .section-label { margin-bottom: 12px; }
.page-header p { margin-top: 16px; font-size: 1.1rem; }

/* ---- Responsive ---- */
@media (max-width: 768px) {
  :root { --section-pad: 64px; }

  .nav-right { gap: 10px; }
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    gap: 0;
    position: fixed;
    top: 68px; left: 0; right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 12px 24px 20px;
    z-index: 99;
  }
  .nav-links.open li { padding: 10px 0; border-bottom: 1px solid var(--border); }
  .nav-links.open li:last-child { border-bottom: none; }
  .nav-links.open a { font-size: 0.9rem; color: var(--mid); }
  .nav-cta { display: inline-flex; font-size: 0.8rem; padding: 8px 14px; }
  .nav-toggle { display: flex; }

  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
}
