/* ================================
   Johna Meldau — Shared Styles
   ================================ */

:root {
  --ink: #1a2b2e;
  --paper: #f5efe6;
  --paper-warm: #ede4d3;
  --teal: #2d5a5e;
  --teal-deep: #1f3f43;
  --terracotta: #c46a4a;
  --sand: #d4b896;
  --muted: #6b7770;
  --rule: rgba(26, 43, 46, 0.12);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  font-weight: 400;
  overflow-x: hidden;
}

.serif { font-family: 'Fraunces', serif; }

/* NAV */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.5rem 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(245, 239, 230, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--rule);
}

.logo {
  font-family: 'Fraunces', serif;
  font-weight: 500;
  font-size: 1.5rem;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none;
}

.logo span {
  color: var(--terracotta);
  font-style: italic;
}

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

.nav-links a {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: color 0.2s;
  position: relative;
}

.nav-links a:hover { color: var(--terracotta); }

.nav-links a.active {
  color: var(--teal);
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--terracotta);
  border-radius: 2px;
}

.nav-cta {
  padding: 0.6rem 1.4rem;
  background: var(--teal);
  color: var(--paper) !important;
  border-radius: 100px;
  transition: background 0.2s;
}

.nav-cta:hover { background: var(--teal-deep); }
.nav-cta::after { display: none !important; }

/* BUTTONS */
.btn-primary {
  padding: 1rem 2rem;
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  border-radius: 100px;
  transition: background 0.2s ease, transform 0.18s ease, box-shadow 0.18s ease, filter 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 0;
  font-family: inherit;
  cursor: pointer;
}

.btn-primary:hover {
  background: var(--teal);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(26, 43, 46, 0.18);
  filter: brightness(1.05);
}
.btn-primary:active { transform: translateY(0); box-shadow: 0 2px 8px rgba(26, 43, 46, 0.18); }

.btn-secondary {
  padding: 1rem 2rem;
  color: var(--ink);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  border-bottom: 1px solid var(--ink);
  transition: opacity 0.2s;
}

.btn-secondary:hover { opacity: 0.6; }

/* SECTIONS */
section { padding: 6rem 3rem; }

.section-head {
  max-width: 800px;
  margin: 0 auto 5rem;
  text-align: center;
}

.section-eyebrow {
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--terracotta);
  margin-bottom: 1.25rem;
  display: block;
}

.section-head h2 {
  font-family: 'Fraunces', serif;
  font-size: clamp(2.25rem, 4vw, 3.5rem);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
}

.section-head h2 em {
  font-style: italic;
  color: var(--teal);
}

.section-head p {
  font-size: 1.05rem;
  color: var(--muted);
  line-height: 1.7;
}

/* PAGE HEADER (subpages) */
.page-header {
  padding: 9rem 3rem 5rem;
  text-align: center;
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  top: -150px;
  right: -150px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(45, 90, 94, 0.06), transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.page-header .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--teal);
  margin-bottom: 2rem;
}

.page-header .eyebrow::before,
.page-header .eyebrow::after {
  content: '';
  width: 32px;
  height: 1px;
  background: var(--teal);
}

.page-header h1 {
  font-family: 'Fraunces', serif;
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin-bottom: 1.5rem;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-header h1 em {
  font-style: italic;
  color: var(--terracotta);
  font-weight: 300;
}

.page-header .lede {
  font-size: 1.15rem;
  line-height: 1.65;
  color: var(--muted);
  max-width: 640px;
  margin: 0 auto;
}

/* FULBRIGHT DISCLAIMER */
.fulbright-disclaimer {
  background: #2a3b3e;
  padding: 2.25rem 1.5rem;
}
.fulbright-disclaimer-inner {
  max-width: 920px;
  margin: 0 auto;
  text-align: center;
}
.fulbright-disclaimer p {
  color: #ffffff;
  font-size: 0.85rem;
  line-height: 1.7;
  letter-spacing: 0.01em;
  font-style: italic;
}
@media (max-width: 900px) {
  .fulbright-disclaimer { padding: 3rem 1.5rem; }
}

/* FOOTER */
footer {
  background: var(--ink);
  color: var(--paper);
  padding: 5rem 3rem 2rem;
}

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

.footer-brand h3 {
  font-family: 'Fraunces', serif;
  font-size: 1.75rem;
  font-weight: 400;
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
}

.footer-brand h3 em {
  color: var(--terracotta);
  font-style: italic;
}

.footer-brand p {
  color: rgba(245, 239, 230, 0.6);
  font-size: 0.95rem;
  line-height: 1.6;
  max-width: 340px;
}

.footer-col h4 {
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--sand);
  margin-bottom: 1.25rem;
  font-weight: 500;
}

.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.75rem; }

.footer-col a {
  color: rgba(245, 239, 230, 0.75);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
}

.footer-col a:hover { color: var(--terracotta); }

.footer-col li > span {
  color: rgba(245, 239, 230, 0.5);
  font-size: 0.9rem;
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 2rem;
  border-top: 1px solid rgba(245, 239, 230, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: rgba(245, 239, 230, 0.5);
}

/* RESPONSIVE */
/* HAMBURGER (mobile only) */
.nav-toggle {
  display: none;
  background: transparent;
  border: 0;
  padding: 0.5rem;
  cursor: pointer;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
}
.nav-toggle .bar {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--ink);
  position: relative;
  transition: transform 0.25s ease, opacity 0.25s ease, top 0.25s ease;
}
.nav-toggle .bar::before,
.nav-toggle .bar::after {
  content: '';
  position: absolute;
  left: 0;
  width: 22px;
  height: 1.5px;
  background: var(--ink);
  transition: transform 0.25s ease, top 0.25s ease;
}
.nav-toggle .bar::before { top: -7px; }
.nav-toggle .bar::after { top: 7px; }
.nav-toggle.open .bar { background: transparent; }
.nav-toggle.open .bar::before { top: 0; transform: rotate(45deg); }
.nav-toggle.open .bar::after { top: 0; transform: rotate(-45deg); }

@media (max-width: 900px) {
  nav { padding: 1rem 1.5rem; }
  .nav-toggle { display: inline-flex; }
  .nav-links {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    height: calc(100vh - 64px);
    background: var(--paper);
    border-bottom: 1px solid var(--rule);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 1rem 1.5rem 1.5rem;
    transform: translateY(-110%);
    transition: transform 0.3s ease;
    list-style: none;
    margin: 0;
    box-shadow: 0 8px 20px rgba(26, 43, 46, 0.06);
    overflow-y: auto;
    pointer-events: none;
  }
  .nav-links.open {
    transform: translateY(0);
    display: flex;
    pointer-events: auto;
  }
  .nav-links li { width: 100%; }
  .nav-links a {
    display: block;
    padding: 0.85rem 0;
    width: 100%;
    border-bottom: 1px solid var(--rule);
    font-size: 1rem;
  }
  .nav-links li:last-child a { border-bottom: 0; }
  .nav-links .nav-cta {
    margin-top: 0.75rem;
    text-align: center;
    border-bottom: 0 !important;
    border-radius: 100px;
  }
  .nav-links a.active::after { display: none; }

  section { padding: 4rem 1.5rem; }
  .page-header { padding: 7rem 1.5rem 3rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .footer-bottom { flex-direction: column; gap: 1rem; }
}

/* ANIMATIONS */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.page-header > * {
  animation: fadeUp 0.9s ease forwards;
  opacity: 0;
}
.page-header .eyebrow { animation-delay: 0.1s; }
.page-header h1 { animation-delay: 0.25s; }
.page-header .lede { animation-delay: 0.4s; }
