/* ============================================
   ARC FUND — Global Styles
   thearcfund.org
   ============================================ */

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

/* ---- CSS Variables ---- */
:root {
  --oxblood:      #7A1E2C;
  --deep-wine:    #5B1220;
  --graphite:     #2B3137;
  --ivory:        #F5F1E8;
  --stone:        #C9BCAA;
  --bronze:       #A47B47;
  --forest:       #30463D;

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'Montserrat', sans-serif;

  --max-width: 1200px;
  --section-pad: 100px 40px;
  --section-pad-sm: 60px 24px;

  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--ivory);
  color: var(--graphite);
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden;
}

/* ---- Typography ---- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.15;
}
h1 { font-size: clamp(2.8rem, 6vw, 5rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(2rem, 4vw, 3.2rem); }
h3 { font-size: clamp(1.4rem, 2.5vw, 2rem); }
h4 { font-size: 1.25rem; }
p { font-size: 1rem; line-height: 1.75; }
a { color: inherit; text-decoration: none; }

/* ---- Layout ---- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 40px;
}
@media (max-width: 768px) {
  .container { padding: 0 24px; }
}

/* ============================================
   NAVIGATION
   ============================================ */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 0 40px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background var(--transition), box-shadow var(--transition);
  background: rgba(245, 241, 232, 0.0);
}
.site-nav.scrolled {
  background: rgba(245, 241, 232, 0.97);
  box-shadow: 0 1px 0 rgba(43, 49, 55, 0.08);
  backdrop-filter: blur(12px);
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--oxblood);
  letter-spacing: 0.02em;
}
.nav-logo svg { width: 36px; height: 22px; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}
.nav-links a {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--graphite);
  transition: color var(--transition);
}
.nav-links a:hover,
.nav-links a.active { color: var(--oxblood); }
.nav-cta {
  background: var(--oxblood);
  color: var(--ivory) !important;
  padding: 10px 24px;
  font-size: 0.75rem !important;
  letter-spacing: 0.1em;
  transition: background var(--transition) !important;
}
.nav-cta:hover { background: var(--deep-wine) !important; color: var(--ivory) !important; }

/* Light nav before scrolling (all pages have dark heroes) */
.site-nav:not(.scrolled) .nav-logo { color: var(--ivory); }
.site-nav:not(.scrolled) .nav-links a { color: rgba(245,241,232,0.55); }
.site-nav:not(.scrolled) .nav-links a:hover,
.site-nav:not(.scrolled) .nav-links a.active { color: var(--ivory); }
.site-nav:not(.scrolled) .nav-cta { background: var(--ivory) !important; color: var(--oxblood) !important; }
.site-nav:not(.scrolled) .nav-cta:hover { background: rgba(245,241,232,0.85) !important; }

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.nav-toggle span {
  width: 24px; height: 2px;
  background: var(--graphite);
  transition: var(--transition);
  display: block;
}

@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: 72px; left: 0; right: 0;
    background: var(--ivory);
    flex-direction: column;
    padding: 24px 40px 32px;
    gap: 20px;
    border-top: 1px solid rgba(43,49,55,0.1);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  }
  .nav-links.open { display: flex; }
  .nav-links a { font-size: 0.9rem; }
  .nav-cta { text-align: center; }
}

/* ============================================
   PAGE HERO (shared)
   ============================================ */
.page-hero {
  min-height: 420px;
  background: var(--graphite);
  display: flex;
  align-items: flex-end;
  padding: 120px 40px 80px;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--deep-wine) 0%, var(--graphite) 60%);
  opacity: 0.9;
}
.page-hero-arc {
  position: absolute;
  right: -60px; bottom: -40px;
  opacity: 0.06;
}
.page-hero-content {
  position: relative;
  z-index: 1;
  max-width: var(--max-width);
  margin: 0 auto;
  width: 100%;
}
.page-hero-eyebrow {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--stone);
  margin-bottom: 16px;
}
.page-hero h1 {
  color: var(--ivory);
  max-width: 700px;
}
.page-hero p {
  color: rgba(245,241,232,0.75);
  max-width: 560px;
  margin-top: 20px;
  font-size: 1.1rem;
}

/* ============================================
   SECTIONS
   ============================================ */
.section { padding: var(--section-pad); }
.section-sm { padding: var(--section-pad-sm); }

@media (max-width: 768px) {
  .section { padding: var(--section-pad-sm); }
}

.section-label {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--bronze);
  margin-bottom: 16px;
  display: block;
}
.section-title {
  font-family: var(--font-display);
  margin-bottom: 24px;
}
.section-subtitle {
  font-size: 1.05rem;
  color: rgba(43,49,55,0.7);
  max-width: 600px;
  line-height: 1.75;
}

/* Background variants */
.bg-ivory     { background: var(--ivory); }
.bg-graphite  { background: var(--graphite); color: var(--ivory); }
.bg-oxblood   { background: var(--oxblood); color: var(--ivory); }
.bg-forest    { background: var(--forest); color: var(--ivory); }
.bg-cream     { background: #EDE8DC; }
.bg-light     { background: #F0EBE0; }

/* ============================================
   STAT BLOCKS
   ============================================ */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2px;
  background: rgba(43,49,55,0.1);
  border: none;
}
.stat-block {
  background: var(--ivory);
  padding: 40px 36px;
}
.stat-number {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 5vw, 4rem);
  font-weight: 300;
  color: var(--oxblood);
  line-height: 1;
  margin-bottom: 8px;
}
.stat-label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--graphite);
  opacity: 0.6;
}
.stat-sub {
  font-size: 0.85rem;
  color: rgba(43,49,55,0.55);
  margin-top: 6px;
}

/* ============================================
   CARDS
   ============================================ */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}
.card {
  background: #fff;
  border: 1px solid rgba(43,49,55,0.08);
  padding: 40px 36px;
  transition: box-shadow var(--transition), transform var(--transition);
}
.card:hover {
  box-shadow: 0 12px 40px rgba(43,49,55,0.1);
  transform: translateY(-2px);
}
.card-icon {
  width: 44px; height: 44px;
  margin-bottom: 24px;
}
.card h3 {
  font-size: 1.4rem;
  margin-bottom: 14px;
  color: var(--graphite);
}
.card p {
  font-size: 0.9rem;
  color: rgba(43,49,55,0.65);
  line-height: 1.75;
}

/* Dark card variant */
.card-dark {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  color: var(--ivory);
}
.card-dark h3 { color: var(--ivory); }
.card-dark p { color: rgba(245,241,232,0.65); }

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 16px 32px;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  text-decoration: none;
}
.btn-primary {
  background: var(--oxblood);
  color: var(--ivory);
}
.btn-primary:hover { background: var(--deep-wine); }

.btn-secondary {
  background: transparent;
  color: var(--oxblood);
  border: 1.5px solid var(--oxblood);
}
.btn-secondary:hover {
  background: var(--oxblood);
  color: var(--ivory);
}
.btn-ivory {
  background: var(--ivory);
  color: var(--graphite);
}
.btn-ivory:hover { background: var(--stone); }

.btn-outline-ivory {
  background: transparent;
  color: var(--ivory);
  border: 1.5px solid rgba(245,241,232,0.5);
}
.btn-outline-ivory:hover {
  background: rgba(245,241,232,0.1);
  border-color: var(--ivory);
}

/* ============================================
   ARC VISUAL MOTIF (SVG component)
   ============================================ */
.arc-divider {
  width: 100%;
  overflow: hidden;
  line-height: 0;
}
.arc-divider svg { display: block; width: 100%; }

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background: var(--graphite);
  color: var(--ivory);
  padding: 80px 40px 48px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 60px;
  max-width: var(--max-width);
  margin: 0 auto 64px;
}
@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
}
@media (max-width: 520px) {
  .footer-grid { grid-template-columns: 1fr; }
}
.footer-brand .nav-logo {
  color: var(--ivory);
  margin-bottom: 16px;
}
.footer-brand p {
  font-size: 0.88rem;
  color: rgba(245,241,232,0.55);
  line-height: 1.7;
  max-width: 280px;
}
.footer-col h5 {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--stone);
  margin-bottom: 20px;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul a {
  font-size: 0.88rem;
  color: rgba(245,241,232,0.6);
  transition: color var(--transition);
}
.footer-col ul a:hover { color: var(--ivory); }
.footer-bottom {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-top: 32px;
  border-top: 1px solid rgba(245,241,232,0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  color: rgba(245,241,232,0.35);
  flex-wrap: wrap;
  gap: 12px;
}

/* ============================================
   UTILITY
   ============================================ */
.text-oxblood { color: var(--oxblood); }
.text-bronze  { color: var(--bronze); }
.text-stone   { color: var(--stone); }
.text-ivory   { color: var(--ivory); }
.text-muted   { color: rgba(43,49,55,0.55); }

.divider {
  border: none;
  border-top: 1px solid rgba(43,49,55,0.1);
  margin: 60px 0;
}
.divider-light {
  border-top-color: rgba(245,241,232,0.12);
}

/* ---- Animations ---- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(32px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.anim-fade-up { animation: fadeUp 0.7s ease forwards; }
.anim-fade    { animation: fadeIn 0.8s ease forwards; }

/* ---- Stagger delays ---- */
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.25s; }
.delay-3 { animation-delay: 0.4s; }
.delay-4 { animation-delay: 0.55s; }

/* ---- Two-column layout ---- */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
@media (max-width: 768px) {
  .two-col { grid-template-columns: 1fr; gap: 40px; }
}

/* ---- Tag pill ---- */
.tag {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  padding: 5px 12px;
  background: rgba(122,30,44,0.1);
  color: var(--oxblood);
  margin: 4px;
}

/* ---- Table ---- */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.data-table th {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(43,49,55,0.5);
  padding: 12px 20px;
  text-align: left;
  border-bottom: 2px solid rgba(43,49,55,0.1);
}
.data-table td {
  padding: 16px 20px;
  border-bottom: 1px solid rgba(43,49,55,0.06);
  color: var(--graphite);
}
.data-table tr:hover td { background: rgba(122,30,44,0.03); }
.data-table td:first-child { font-weight: 500; }

/* ---- Highlighted callout box ---- */
.callout {
  border-left: 3px solid var(--oxblood);
  padding: 24px 32px;
  background: rgba(122,30,44,0.04);
  margin: 40px 0;
}
.callout p { font-size: 1.05rem; font-style: italic; }

/* ---- Process step ---- */
.steps { counter-reset: step; }
.step {
  display: flex;
  gap: 32px;
  padding: 36px 0;
  border-bottom: 1px solid rgba(43,49,55,0.08);
  counter-increment: step;
}
.step:last-child { border-bottom: none; }
.step-num {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 300;
  color: var(--stone);
  line-height: 1;
  min-width: 56px;
}
.step-content h4 { margin-bottom: 8px; font-size: 1.2rem; }
.step-content p { font-size: 0.9rem; color: rgba(43,49,55,0.65); }

/* ---- Contact form ---- */
.form-group { margin-bottom: 24px; }
.form-group label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(43,49,55,0.6);
  margin-bottom: 8px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid rgba(43,49,55,0.2);
  background: #fff;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--graphite);
  transition: border-color var(--transition);
  outline: none;
  appearance: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--oxblood);
}
.form-group textarea { resize: vertical; min-height: 120px; }

/* ---- Accordion ---- */
.accordion-item {
  border-bottom: 1px solid rgba(43,49,55,0.1);
}
.accordion-btn {
  width: 100%;
  background: none;
  border: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--graphite);
  text-align: left;
  gap: 16px;
}
.accordion-icon {
  width: 24px; height: 24px;
  border: 1.5px solid var(--stone);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: var(--transition);
  font-size: 1rem;
  color: var(--oxblood);
}
.accordion-btn.open .accordion-icon { transform: rotate(45deg); background: var(--oxblood); color: var(--ivory); border-color: var(--oxblood); }
.accordion-body {
  display: none;
  padding: 0 0 28px;
  font-size: 0.95rem;
  color: rgba(43,49,55,0.7);
  line-height: 1.75;
  max-width: 720px;
}
.accordion-body.open { display: block; }

/* ---- Responsive helpers ---- */
@media (max-width: 768px) {
  h1 { font-size: 2.6rem; }
  .section { padding: 64px 24px; }
  .page-hero { padding: 100px 24px 60px; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .stat-grid { grid-template-columns: 1fr; }
}
