/* ========================================
   Round Table System — Public Site Styles
   ======================================== */

:root {
  --color-primary: #1a365d;
  --color-primary-light: #2a4a7f;
  --color-primary-dark: #0f2440;
  --color-accent: #2b6cb0;
  --color-accent-light: #3182ce;
  --color-text: #1a202c;
  --color-text-muted: #4a5568;
  --color-text-light: #718096;
  --color-bg: #ffffff;
  --color-bg-alt: #f7fafc;
  --color-bg-subtle: #edf2f7;
  --color-border: #e2e8f0;
  --color-white: #ffffff;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "SF Mono", SFMono-Regular, Consolas, "Liberation Mono", Menlo, monospace;
  --max-width: 1140px;
  --radius: 8px;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.12);
  --transition: 0.2s ease;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

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

a:hover {
  color: var(--color-accent-light);
  text-decoration: underline;
}

/* ---- Typography ---- */
h1, h2, h3, h4, h5, h6 {
  color: var(--color-primary);
  line-height: 1.3;
  margin-bottom: 0.75em;
  font-weight: 700;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 1.875rem; }
h3 { font-size: 1.375rem; }
h4 { font-size: 1.125rem; }

p {
  margin-bottom: 1.25em;
  color: var(--color-text-muted);
}

ul, ol {
  margin-bottom: 1.25em;
  padding-left: 1.5em;
}

li {
  margin-bottom: 0.5em;
  color: var(--color-text-muted);
}

strong {
  color: var(--color-text);
}

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

main {
  flex: 1;
}

/* ---- Navigation ---- */
.site-nav {
  background: var(--color-primary);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-md);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 64px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  color: var(--color-white);
  font-size: 1.25rem;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.nav-brand:hover {
  color: var(--color-white);
  text-decoration: none;
}

.nav-brand svg {
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav-links a {
  color: rgba(255, 255, 255, 0.85);
  padding: 0.5rem 0.875rem;
  border-radius: var(--radius);
  font-size: 0.9375rem;
  font-weight: 500;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--color-white);
  background: rgba(255, 255, 255, 0.12);
  text-decoration: none;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--color-white);
}

.nav-toggle svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

/* ---- Hero Section ---- */
.hero {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
  padding: 5rem 0;
  text-align: center;
  color: var(--color-white);
}

.hero h1 {
  color: var(--color-white);
  font-size: 3rem;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.hero p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.25rem;
  max-width: 640px;
  margin: 0 auto 2rem;
  line-height: 1.6;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--color-white);
  color: var(--color-primary);
  padding: 0.875rem 2rem;
  border-radius: var(--radius);
  font-size: 1.0625rem;
  font-weight: 600;
  text-decoration: none;
  transition: all var(--transition);
  box-shadow: var(--shadow-md);
}

.hero-cta:hover {
  background: var(--color-bg-alt);
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
  text-decoration: none;
  color: var(--color-primary);
}

/* ---- Page Header (non-home pages) ---- */
.page-header {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
  padding: 3rem 0;
  text-align: center;
  color: var(--color-white);
}

.page-header h1 {
  color: var(--color-white);
  font-size: 2.25rem;
  margin-bottom: 0.5rem;
}

.page-header p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.125rem;
  margin: 0;
}

/* ---- Features Grid ---- */
.features {
  padding: 5rem 0;
  background: var(--color-bg-alt);
}

.features h2 {
  text-align: center;
  margin-bottom: 3rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.feature-card {
  background: var(--color-white);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
  transition: all var(--transition);
}

.feature-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.feature-icon {
  width: 48px;
  height: 48px;
  background: var(--color-bg-alt);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  color: var(--color-accent);
}

.feature-icon svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

.feature-card h3 {
  font-size: 1.125rem;
  margin-bottom: 0.75rem;
}

.feature-card p {
  font-size: 0.9375rem;
  margin-bottom: 0;
}

/* ---- Content Sections ---- */
.content-section {
  padding: 4rem 0;
}

.content-section:nth-child(even) {
  background: var(--color-bg-alt);
}

.content-section h2 {
  margin-bottom: 1.5rem;
}

.content-section h3 {
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

/* ---- Legal/Policy Content ---- */
.legal-content {
  padding: 3rem 0 5rem;
}

.legal-content .container {
  max-width: 800px;
}

.legal-content h2 {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--color-border);
}

.legal-content h2:first-of-type {
  border-top: none;
  padding-top: 0;
}

.legal-content h3 {
  margin-top: 1.75rem;
}

.legal-content ul {
  margin-bottom: 1.25em;
}

.legal-content .effective-date {
  color: var(--color-text-light);
  font-style: italic;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--color-border);
}

/* ---- Support/Contact ---- */
.contact-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 2rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.contact-card h3 {
  margin-top: 0;
  margin-bottom: 0.75rem;
}

.faq-item {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.5rem 2rem;
  margin-bottom: 1rem;
}

.faq-item h4 {
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}

.faq-item p {
  margin-bottom: 0;
  font-size: 0.9375rem;
}

/* ---- About Page ---- */
.mission-block {
  background: var(--color-bg-alt);
  border-left: 4px solid var(--color-accent);
  padding: 1.5rem 2rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 2rem 0;
}

.mission-block p {
  font-size: 1.125rem;
  color: var(--color-text);
  margin-bottom: 0;
  font-style: italic;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin: 2rem 0;
}

.value-item {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.value-item h4 {
  margin-bottom: 0.5rem;
}

.value-item p {
  margin-bottom: 0;
  font-size: 0.9375rem;
}

/* ---- Footer ---- */
.site-footer {
  background: var(--color-primary-dark);
  color: rgba(255, 255, 255, 0.7);
  padding: 3rem 0 2rem;
  margin-top: auto;
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 2rem;
}

.footer-brand {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 0.75rem;
}

.footer-desc {
  font-size: 0.875rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 0;
}

.footer-heading {
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 1rem;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9375rem;
  transition: color var(--transition);
}

.footer-links a:hover {
  color: var(--color-white);
  text-decoration: none;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.4);
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.5);
}

.footer-bottom a:hover {
  color: rgba(255, 255, 255, 0.8);
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }

  .hero { padding: 3.5rem 0; }
  .hero h1 { font-size: 2.25rem; }
  .hero p { font-size: 1.0625rem; }

  .page-header { padding: 2rem 0; }
  .page-header h1 { font-size: 1.75rem; }

  .features { padding: 3rem 0; }
  .features-grid { grid-template-columns: 1fr; gap: 1.25rem; }

  .content-section { padding: 2.5rem 0; }
  .legal-content { padding: 2rem 0 3rem; }

  .values-grid { grid-template-columns: 1fr; }

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

  .footer-bottom {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }

  /* Mobile nav */
  .nav-toggle {
    display: block;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--color-primary);
    flex-direction: column;
    padding: 0.5rem 1rem 1rem;
    box-shadow: var(--shadow-lg);
    gap: 0;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    display: block;
    padding: 0.75rem 1rem;
    border-radius: var(--radius);
    width: 100%;
  }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 1.75rem; }
  .hero p { font-size: 1rem; }
  .container { padding: 0 1rem; }
}
