/* ==========================================================================
   BATX RC — Site styles
   Theme colors use CSS custom properties for future admin override.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Theme: Dark (default)
   Admin can override these via injected CSS or a small override file.
   -------------------------------------------------------------------------- */
:root,
[data-theme="dark"] {
  /* Primary palette */
  --color-bg: #0d1117;
  --color-bg-alt: #161b22;
  --color-surface: #21262d;
  --color-border: rgba(255, 255, 255, 0.12);
  --color-text: #e6edf3;
  --color-text-muted: #8b949e;
  --color-heading: #f0f6fc;
  /* Accent — can be changed in admin */
  --color-accent: #58a6ff;
  --color-accent-hover: #79b8ff;
  --color-accent-muted: rgba(88, 166, 255, 0.2);
  /* UI */
  --color-link: #58a6ff;
  --color-link-hover: #79b8ff;
  --color-focus-ring: rgba(88, 166, 255, 0.5);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
  --radius: 12px;
  --radius-lg: 16px;
  --max-width: 720px;
  --font-sans: "DM Sans", ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

/* --------------------------------------------------------------------------
   Theme: Light
   -------------------------------------------------------------------------- */
[data-theme="light"] {
  --color-bg: #ffffff;
  --color-bg-alt: #f6f8fa;
  --color-surface: #eaeef2;
  --color-border: rgba(0, 0, 0, 0.12);
  --color-text: #1f2328;
  --color-text-muted: #656d76;
  --color-heading: #0d1117;
  --color-accent: #0969da;
  --color-accent-hover: #0550ae;
  --color-accent-muted: rgba(9, 105, 218, 0.12);
  --color-link: #0969da;
  --color-link-hover: #0550ae;
  --color-focus-ring: rgba(9, 105, 218, 0.4);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--color-link);
  text-decoration: none;
}

a:hover {
  color: var(--color-link-hover);
}

a:focus-visible {
  outline: 2px solid var(--color-focus-ring);
  outline-offset: 2px;
}

/* --------------------------------------------------------------------------
   Skip link (a11y)
   -------------------------------------------------------------------------- */
.skip-link {
  position: absolute;
  top: -100%;
  left: 0.5rem;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--color-accent);
  color: #fff;
  font-weight: 600;
  border-radius: var(--radius);
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 0.5rem;
}

/* --------------------------------------------------------------------------
   Layout
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

@media (min-width: 768px) {
  .container {
    padding: 0 1.5rem;
  }
}

@media (min-width: 1024px) {
  .container {
    padding: 0 2rem;
  }
}

/* --------------------------------------------------------------------------
   Header (sticky)
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  backdrop-filter: saturate(180%) blur(12px);
  background-color: rgba(13, 17, 23, 0.85);
}

[data-theme="light"] .site-header {
  background-color: rgba(255, 255, 255, 0.9);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 0;
  min-height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  margin-right: 0;
}

.brand:focus-visible {
  outline: 2px solid var(--color-focus-ring);
  outline-offset: 2px;
  border-radius: var(--radius);
}

.logo-img {
  height: 38px;
  width: auto;
  object-fit: contain;
}

/* Nav (desktop) */
.nav {
  display: none;
}

@media (min-width: 900px) {
  .nav {
    display: flex;
    flex: 1 1 0;
    min-width: 0;
    justify-content: center;
    align-items: center;
  }

  .nav-list {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem 1.25rem;
    margin: 0;
    padding: 0;
    list-style: none;
    flex-wrap: wrap;
  }

  .nav-list a {
    color: var(--color-text);
    font-weight: 500;
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius);
  }

  .nav-list a:hover {
    color: var(--color-accent);
  }

  .nav-cta {
    margin-left: 0;
    padding: 0.5rem 1rem !important;
    background: var(--color-accent);
    color: #fff !important;
    border-radius: 999px;
    font-weight: 600;
  }

  .nav-cta:hover {
    background: var(--color-accent-hover);
    color: #fff !important;
  }
}

/* Header actions: theme toggle + mobile menu button */
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-bg-alt);
  color: var(--color-text);
  cursor: pointer;
  font-size: 1.25rem;
  transition: background 0.2s, border-color 0.2s;
}

.theme-toggle:hover {
  background: var(--color-surface);
  border-color: var(--color-text-muted);
}

.theme-toggle:focus-visible {
  outline: 2px solid var(--color-focus-ring);
  outline-offset: 2px;
}

/* Show sun in dark mode, moon in light mode */
[data-theme="dark"] .theme-icon.sun {
  display: inline;
}

[data-theme="dark"] .theme-icon.moon {
  display: none;
}

[data-theme="light"] .theme-icon.sun {
  display: none;
}

[data-theme="light"] .theme-icon.moon {
  display: inline;
}

/* Mobile menu button (hamburger) */
.menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-bg-alt);
  color: var(--color-text);
  cursor: pointer;
}

@media (min-width: 900px) {
  .menu-toggle {
    display: none;
  }
}

.menu-toggle[aria-expanded="true"] .hamburger {
  background: transparent;
}

.menu-toggle[aria-expanded="true"] .hamburger::before {
  transform: translateY(0) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .hamburger::after {
  transform: translateY(0) rotate(-45deg);
}

.hamburger,
.hamburger::before,
.hamburger::after {
  width: 22px;
  height: 2px;
  background: var(--color-text);
  border-radius: 1px;
  transition: transform 0.2s ease, background 0.2s ease;
}

.hamburger {
  position: relative;
}

.hamburger::before,
.hamburger::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
}

.hamburger::before {
  transform: translateY(-6px);
}

.hamburger::after {
  transform: translateY(6px);
}

/* Mobile nav drawer */
.mobile-nav {
  display: none;
  padding: 1rem 0;
  border-top: 1px solid var(--color-border);
  background: var(--color-bg);
}

.mobile-nav.is-open {
  display: block;
}

@media (min-width: 900px) {
  .mobile-nav {
    display: none !important;
  }
}

.mobile-nav-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.mobile-nav-list li {
  margin: 0;
}

.mobile-nav-list a {
  display: block;
  padding: 0.75rem 0;
  color: var(--color-text);
  font-weight: 500;
  border-radius: var(--radius);
}

.mobile-nav-list a:hover {
  color: var(--color-accent);
}

.mobile-nav-list .nav-cta {
  margin-top: 0.5rem;
  text-align: center;
  background: var(--color-accent);
  color: #fff !important;
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
}

.mobile-theme {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.theme-label {
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

.theme-toggle-mobile {
  padding: 0.5rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-bg-alt);
  color: var(--color-text);
  cursor: pointer;
  font-size: 1rem;
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  padding: 4rem 0 5rem;
  text-align: center;
  background-image: url("../assets/BATX_NFO_0001.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 0;
}

@media (min-width: 768px) {
  .hero {
    padding: 5rem 0 6rem;
  }
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: var(--max-width);
  margin: 0 auto;
}

.hero-eyebrow {
  display: inline-block;
  margin: 0 0 1rem;
  padding: 0.35rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  letter-spacing: 0.02em;
}

.hero-title {
  margin: 0 0 1rem;
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 700;
  line-height: 1.2;
  color: #fff;
  letter-spacing: -0.02em;
}

.hero-lead {
  margin: 0 0 1.5rem;
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.85);
  max-width: 42ch;
  margin-left: auto;
  margin-right: auto;
}

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

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.25rem;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.25;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.btn:focus-visible {
  outline: 2px solid var(--color-focus-ring);
  outline-offset: 2px;
}

.btn-primary {
  background: var(--color-accent);
  color: #fff;
  border-color: var(--color-accent);
}

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

.btn-secondary {
  background: var(--color-bg-alt);
  color: var(--color-text);
  border-color: var(--color-border);
}

.btn-secondary:hover {
  background: var(--color-surface);
  border-color: var(--color-text-muted);
}

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */
.section {
  padding: 3.5rem 0;
}

.section-alt {
  background: var(--color-bg-alt);
}

@media (min-width: 768px) {
  .section {
    padding: 4.5rem 0;
  }
}

.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.section-title {
  margin: 0 0 1rem;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--color-heading);
  letter-spacing: -0.02em;
}

.section-lead {
  margin: 0 0 1.5rem;
  font-size: 1.125rem;
  color: var(--color-text-muted);
}

/* --------------------------------------------------------------------------
   Prose (content blocks)
   -------------------------------------------------------------------------- */
.prose {
  font-size: 1.0625rem;
}

.prose .lead {
  font-size: 1.125rem;
  color: var(--color-text);
  margin-bottom: 1rem;
}

.prose p {
  margin: 0 0 1rem;
}

.prose p:last-child {
  margin-bottom: 0;
}

.prose ul {
  margin: 0 0 1rem;
  padding-left: 1.5rem;
}

.prose li {
  margin-bottom: 0.35rem;
}

.prose li:last-child {
  margin-bottom: 0;
}

.prose strong {
  color: var(--color-heading);
}

/* --------------------------------------------------------------------------
   FAQ
   -------------------------------------------------------------------------- */
.faq-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.faq-item {
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--color-border);
}

.faq-item:first-child {
  padding-top: 0;
}

.faq-item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.faq-item dt {
  margin: 0 0 0.5rem;
  font-weight: 600;
  font-size: 1.0625rem;
  color: var(--color-heading);
}

.faq-item dd {
  margin: 0;
  font-size: 1rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   Contact form
   -------------------------------------------------------------------------- */
.contact-form {
  max-width: 32rem;
  margin-top: 1rem;
}

.form-row {
  margin-bottom: 1rem;
}

.form-row-full {
  margin-bottom: 1rem;
}

.form-row label {
  display: block;
  margin-bottom: 0.35rem;
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--color-text);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: var(--font-sans);
  font-size: 1rem;
  color: var(--color-text);
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  transition: border-color 0.2s;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: var(--color-text-muted);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--color-accent);
}

.contact-form textarea {
  min-height: 140px;
  resize: vertical;
}

.form-actions {
  margin-top: 1.25rem;
  margin-bottom: 0;
}

.contact-form .btn {
  min-width: 10rem;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer {
  padding: 2.5rem 0;
  margin-top: 3rem;
  border-top: 1px solid var(--color-border);
  background: var(--color-bg-alt);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.footer-top {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 640px) {
  .footer-top {
    grid-template-columns: 1fr auto auto;
    align-items: start;
    gap: 3rem;
  }
}

.footer-brand img,
.footer-logo {
  height: 156px;
  width: auto;
  object-fit: contain;
  margin-bottom: 0.5rem;
}

.footer-tagline {
  margin: 0;
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

.footer-nav-label,
.footer-social-label {
  display: block;
  margin-bottom: 0.75rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.footer-nav-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-nav-list a {
  color: var(--color-text-muted);
  font-size: 0.9375rem;
}

.footer-nav-list a:hover {
  color: var(--color-accent);
}

.social-links {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
}

.social-links a {
  color: var(--color-text-muted);
  font-size: 0.9375rem;
}

.social-links a:hover {
  color: var(--color-accent);
}

.footer-legal {
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-border);
}

.footer-legal p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--color-text-muted);
}
