/* ========================================
   CASMA Global Styles
   ======================================== */

:root {
  --color-navy: #162338;
  --color-navy-light: #1e3050;
  --color-accent: #C2703E;
  --color-accent-hover: #a85d32;
  --color-text: #1a1a1a;
  --color-text-light: #6b7280;
  --color-bg: #ffffff;
  --color-bg-light: #f9fafb;
  --color-border: #e5e7eb;
  --font-body: 'DM Sans', sans-serif;
  --font-heading: 'Playfair Display', serif;
  --sidebar-width: 260px;
  /* Legacy aliases (used by onboarding, level-up toast, etc.) */
  --accent: #C2703E;
  --bg-dark: #162338;
  --text-dark: #333;
  --text-muted: #A09890;
  --text-light: #FAF6F1;
  --text-warm: #E8CDB5;
}

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

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

/* ========================================
   Public Header
   ======================================== */
.public-header {
  border-bottom: 1px solid var(--color-border);
  padding: 1rem 2rem;
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-navy);
}

.public-nav {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.public-nav a {
  font-size: 0.95rem;
  color: var(--color-text-light);
  transition: color 0.2s;
}

.public-nav a:hover {
  color: var(--color-navy);
}

.btn-login {
  background: var(--color-navy);
  color: #fff !important;
  padding: 0.5rem 1.25rem;
  border-radius: 6px;
}

.btn-login:hover {
  background: var(--color-navy-light);
}

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.mobile-menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-navy);
}

/* ========================================
   Public Main
   ======================================== */
.public-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

/* ========================================
   Shared Footer (all pages)
   ======================================== */
.site-footer {
  background: var(--color-navy);
  color: #A09890;
  padding: 3rem 2rem;
  margin-top: 4rem;
}

.footer-inner {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.footer-name {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 700;
  color: #FAF6F1;
  margin-bottom: 12px;
}

.footer-social {
  margin-bottom: 20px;
}

.footer-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  color: #A09890;
  transition: all 0.2s;
}

.footer-social-link:hover {
  background: var(--color-accent);
  color: #FAF6F1;
}

.footer-link-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
}

.footer-link-row a {
  font-family: 'Space Mono', monospace;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #A09890;
  text-decoration: underline !important;
  transition: color 0.2s;
}

.footer-link-row a:hover {
  color: var(--color-accent);
}

.footer-link-row span {
  font-size: 9px;
  color: #A09890;
}

.footer-address {
  margin-top: 24px;
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.5px;
  color: #A09890;
  line-height: 1.8;
}

.footer-address a {
  color: var(--color-accent);
  text-decoration: underline !important;
}

.footer-divider {
  width: 60px;
  height: 1px;
  background: rgba(255,255,255,0.15);
  margin: 20px auto;
}

.footer-contact {
  font-family: 'Space Mono', monospace;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #A09890;
  margin-bottom: 20px;
}

.footer-contact a {
  color: var(--color-accent);
  text-decoration: underline !important;
}

.footer-disclaimer {
  margin-top: 20px;
  padding: 0 1rem;
}

.footer-disclaimer p {
  font-family: 'Space Mono', monospace;
  font-size: 8px;
  line-height: 1.8;
  color: rgba(160,152,144,0.6);
}

.footer-facebook {
  font-family: 'Space Mono', monospace;
  font-size: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: rgba(160,152,144,0.4);
  margin-top: 16px;
}

/* ========================================
   Mobile – Public Pages
   ======================================== */
@media (max-width: 768px) {
  .public-nav {
    display: none;
  }

  .mobile-menu-toggle {
    display: flex;
  }

  .public-nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    padding: 1rem 2rem;
    border-bottom: 1px solid var(--color-border);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  }

  .footer-links {
    flex-direction: column;
    gap: 0.75rem;
  }
}
