/* JRA Foundation — Shared Styles */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  --white: #ffffff;
  --off-white: #f7f8fa;
  --cream: #f9f7f5;
  --blue-light: #c8d9e8;
  --blue-mid: #6a93b0;
  --blue: #4a7499;
  --blue-dark: #1c3c52;
  --blue-navy: #10283c;
  --gray-50: #f6f7f8;
  --gray-100: #eaecef;
  --gray-300: #b0b8c1;
  --gray-500: #6b7785;
  --gray-700: #3a4452;
  --text: #1a2430;
  --text-2: #4a5568;
  --serif: 'Playfair Display', Georgia, serif;
  --sans: 'Inter', system-ui, -apple-system, sans-serif;
}

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

html, body {
  font-family: var(--sans);
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--serif);
  line-height: 1.2;
  font-weight: 400;
}

h1 {
  font-size: clamp(32px, 5vw, 56px);
  letter-spacing: -0.01em;
  margin-bottom: 1rem;
}

h2 {
  font-size: clamp(28px, 4vw, 42px);
  letter-spacing: -0.01em;
  margin-bottom: 0.8rem;
}

h3 {
  font-size: 20px;
  margin-bottom: 0.5rem;
}

p {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-2);
  margin-bottom: 1.2rem;
}

a {
  color: var(--blue);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--blue-dark);
}

/* Navigation */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--gray-100);
  transition: box-shadow 0.3s ease;
}

nav.scrolled {
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.2rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  height: 32px;
  display: flex;
  align-items: center;
}

.nav-logo svg {
  height: 32px;
  width: auto;
}

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

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--blue);
  transition: width 0.3s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-links a.active::after {
  width: 100%;
}

.nav-cta {
  background: var(--blue-navy);
  color: var(--white);
  padding: 0.6rem 1.4rem;
  border-radius: 4px;
  font-weight: 600;
  font-size: 13px;
  transition: background 0.2s ease;
}

.nav-cta:hover {
  background: var(--blue-dark);
  color: var(--white);
}

.nav-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 20px;
  color: var(--text);
}

/* Footer */
footer {
  background: var(--off-white);
  border-top: 1px solid var(--gray-100);
  margin-top: 6rem;
  padding: 3rem 2rem;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 2rem;
}

.footer-col h4 {
  font-family: var(--serif);
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 1rem;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 0.6rem;
}

.footer-col ul li a {
  font-size: 14px;
  color: var(--text-2);
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 2rem;
  border-top: 1px solid var(--gray-100);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--gray-500);
}

.footer-bottom-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.footer-logo {
  height: 24px;
}

/* Containers */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section {
  padding: 4rem 2rem;
}

.section.alt {
  background: var(--off-white);
}

.section.dark {
  background: var(--blue-navy);
  color: var(--white);
}

.section.dark p {
  color: rgba(255,255,255,0.9);
}

.section.dark h1, .section.dark h2, .section.dark h3 {
  color: var(--white);
}

/* Hero */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 4rem;
  padding: 6rem 2rem;
}

.hero-text h1 {
  margin-bottom: 1.5rem;
}

.hero-text p {
  font-size: 18px;
  margin-bottom: 2rem;
}

.hero-image {
  position: relative;
}

.hero-image img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 2px;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.8rem 2rem;
  background: var(--blue-navy);
  color: var(--white);
  border: none;
  border-radius: 4px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.1s ease;
  text-decoration: none;
}

.btn:hover {
  background: var(--blue-dark);
  transform: translateY(-1px);
}

.btn.secondary {
  background: transparent;
  border: 1px solid var(--blue-navy);
  color: var(--blue-navy);
}

.btn.secondary:hover {
  background: var(--off-white);
}

/* Cards */
.card {
  background: var(--white);
  border: 1px solid var(--gray-100);
  padding: 2rem;
  border-radius: 4px;
  transition: box-shadow 0.3s ease;
}

.card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

.card h3 {
  color: var(--text);
  margin-bottom: 0.8rem;
}

/* Grid */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

/* Stats */
.stat {
  text-align: center;
}

.stat-num {
  font-family: var(--serif);
  font-size: 2.5rem;
  font-weight: 600;
  color: var(--blue-navy);
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.5;
}

/* Quote */
.quote {
  border-left: 4px solid var(--blue);
  padding-left: 2rem;
  margin: 3rem 0;
}

.quote p {
  font-family: var(--serif);
  font-size: 24px;
  font-style: italic;
  line-height: 1.6;
  color: var(--text);
}

.quote-attr {
  font-size: 13px;
  color: var(--gray-500);
  margin-top: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 500;
}

/* Forms */
.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid var(--gray-100);
  border-radius: 4px;
  font-family: var(--sans);
  font-size: 14px;
  transition: border-color 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(74, 116, 153, 0.1);
}

/* Responsive */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .nav-menu-btn {
    display: block;
  }

  .hero {
    grid-template-columns: 1fr;
    padding: 3rem 1.5rem;
    gap: 2rem;
  }

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

  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
  }

  .section {
    padding: 2rem 1.5rem;
  }

  .grid-2, .grid-3 {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 28px;
  }

  h2 {
    font-size: 24px;
  }

  .quote p {
    font-size: 18px;
  }
}
