/* =============================================
   THE SOCIETY FOR RNA THERAPEUTICS
   Main Stylesheet
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Raleway:wght@400;600;700&family=DM+Sans:wght@300;400;600&display=swap');

:root {
  --navy: #0d1b3e;
  --blue: #1a56db;
  --blue-light: #3b7de8;
  --purple: #7c3aed;
  --pink: #c0386b;
  --white: #ffffff;
  --off-white: #f4f6fb;
  --gray-light: #dde3f0;
  --gray: #6b7280;
  --text: #1e2640;
  --font-display: 'Raleway', sans-serif;
  --font-body: 'DM Sans', sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
}

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

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

/* ---- HEADER / NAV ---- */
header {
  background: var(--white);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 4px solid var(--blue);
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100px;
}

.site-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.site-logo img {
  height: 85px;
  width: auto;
  mix-blend-mode: multiply;
}

/* fallback text logo if image fails */
.site-logo-text {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.2;
  letter-spacing: 0.02em;
}

.site-logo-text span {
  display: block;
  font-size: 0.65rem;
  font-family: var(--font-body);
  font-weight: 300;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 2px;
}

/* NAV */
nav { display: flex; align-items: center; gap: 0; }

nav ul {
  list-style: none;
  display: flex;
  gap: 0;
  align-items: center;
}

nav > ul > li {
  position: relative;
}

nav > ul > li > a {
  display: block;
  padding: 0 1rem;
  height: 80px;
  line-height: 80px;
  color: var(--navy);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  text-decoration: none;
  border-bottom: 4px solid transparent;
  margin-bottom: -4px;
  transition: border-color 0.2s, color 0.2s;
}

nav > ul > li > a:hover,
nav > ul > li > a.active {
  border-bottom-color: var(--blue);
  color: var(--blue);
  text-decoration: none;
}

/* Dropdown */
.dropdown { position: relative; }

.dropdown-menu {
  display: none;
  position: absolute;
  top: 80px;
  left: 0;
  background: var(--white);
  min-width: 220px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  border-top: 3px solid var(--blue);
  z-index: 999;
}

.dropdown:hover .dropdown-menu { display: block; }

.dropdown-menu li a {
  display: block;
  padding: 0.65rem 1.25rem;
  color: var(--navy);
  font-size: 0.85rem;
  text-decoration: none;
  border-left: 3px solid transparent;
  transition: all 0.15s;
}

.dropdown-menu li a:hover {
  color: var(--blue);
  background: var(--off-white);
  border-left-color: var(--blue);
  text-decoration: none;
}

/* Hamburger */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 25px;
  height: 2px;
  background: var(--navy);
  transition: 0.3s;
}

/* ---- HERO ---- */
.hero {
  background: linear-gradient(135deg, rgba(13,27,62,0.82) 0%, rgba(26,86,219,0.72) 100%),
              url('images/hero-bg.jpeg') center/cover no-repeat;
  color: var(--white);
  padding: 7rem 1.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before { display: none; }

.hero-inner { position: relative; max-width: 800px; margin: 0 auto; }

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 1.25rem;
}

.hero p {
  font-size: 1.15rem;
  font-weight: 300;
  color: rgba(255,255,255,0.85);
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.btn {
  display: inline-block;
  padding: 0.8rem 2rem;
  border-radius: 3px;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
}
.btn-primary:hover {
  background: var(--white);
  color: var(--navy);
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255,255,255,0.2);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
  margin-left: 1rem;
}
.btn-outline:hover {
  background: var(--white);
  color: var(--navy);
  text-decoration: none;
}

/* Buttons inside cards (white background context) */
.card .btn-primary,
.card-body .btn-primary {
  background: var(--blue);
  color: var(--white);
  border-color: var(--blue);
}
.card .btn-primary:hover,
.card-body .btn-primary:hover {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
  box-shadow: 0 4px 12px rgba(26,86,219,0.3);
}

/* Page-level buttons (on white section backgrounds) */
.section .btn-primary:not(.card .btn-primary) {
  background: var(--blue);
  color: var(--white);
  border-color: var(--blue);
}
.section .btn-primary:not(.card .btn-primary):hover {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
}
.quote-band {
  background: var(--navy);
  color: var(--white);
  padding: 3rem 1.5rem;
  text-align: center;
}

.quote-band blockquote {
  max-width: 820px;
  margin: 0 auto;
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  font-style: italic;
  line-height: 1.6;
}

.quote-band cite {
  display: block;
  margin-top: 1rem;
  font-family: var(--font-body);
  font-style: normal;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.8);
}

/* ---- CONTENT SECTIONS ---- */
.section {
  padding: 4rem 1.5rem;
}

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

.container {
  max-width: 1200px;
  margin: 0 auto;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  color: var(--navy);
  margin-bottom: 1rem;
  font-weight: 700;
}

.section-title::after {
  content: '';
  display: block;
  width: 50px;
  height: 3px;
  background: var(--blue-light);
  margin-top: 0.5rem;
}

.section-title.centered { text-align: center; }
.section-title.centered::after { margin: 0.5rem auto 0; }

/* ---- CARD GRID ---- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2.5rem;
}

.card {
  background: var(--white);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 28px rgba(0,0,0,0.13);
}

.card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.card-body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-body h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--navy);
  margin-bottom: 0.75rem;
}

.card-body p { color: var(--gray); font-size: 0.95rem; flex: 1; }

.card-body .btn { margin-top: 1.25rem; align-self: flex-start; }

/* ---- PAGE HERO (inner pages) ---- */
.page-hero {
  background: var(--navy);
  color: var(--white);
  padding: 3rem 1.5rem;
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
}

.page-hero p {
  color: rgba(255,255,255,0.75);
  margin-top: 0.5rem;
  font-size: 1.05rem;
}

/* ---- PROSE ---- */
.prose {
  max-width: 820px;
  font-size: 1.02rem;
  line-height: 1.8;
  color: var(--text);
}

.prose h2 {
  font-family: var(--font-display);
  font-size: 1.7rem;
  color: var(--navy);
  margin: 2rem 0 0.75rem;
}

.prose p { margin-bottom: 1.1rem; }
.prose strong { color: var(--navy); }

.prose ul {
  padding-left: 1.5rem;
  margin-bottom: 1.1rem;
}
.prose ul li { margin-bottom: 0.4rem; }

/* ---- BOARD GRID ---- */
.board-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

.board-card {
  padding: 1.5rem;
  background: var(--white);
  border-radius: 4px;
  border-top: 4px solid var(--blue);
  box-shadow: 0 2px 10px rgba(0,0,0,0.07);
  transition: transform 0.2s, box-shadow 0.2s;
}

.board-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

.board-card img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  object-position: center top;
  margin: -1.5rem -1.5rem 1rem -1.5rem;
  width: calc(100% + 3rem);
  border-radius: 4px 4px 0 0;
  border: none;
}

.board-card h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--navy);
  margin-bottom: 0.3rem;
  font-weight: 700;
}

.board-card .title {
  font-size: 0.85rem;
  color: var(--blue);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.board-card .institution {
  font-size: 0.85rem;
  color: var(--gray);
  line-height: 1.6;
}

@media (max-width: 900px) {
  .board-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 550px) {
  .board-grid { grid-template-columns: 1fr; }
}

/* ---- CONTACT FORM ---- */
.contact-form {
  max-width: 600px;
  margin-top: 2rem;
}

.form-group { margin-bottom: 1.25rem; }

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.35rem;
  font-size: 0.9rem;
  color: var(--navy);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.65rem 0.9rem;
  border: 1px solid var(--gray-light);
  border-radius: 3px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text);
  background: var(--white);
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(30,122,120,0.1);
}

.form-group textarea { resize: vertical; min-height: 130px; }

/* ---- FOOTER ---- */
footer {
  background: var(--navy);
  color: rgba(255,255,255,0.7);
  padding: 3rem 1.5rem 1.5rem;
}

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

footer h4 {
  color: var(--white);
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

footer ul { list-style: none; }
footer ul li { margin-bottom: 0.4rem; }
footer ul li a { color: rgba(255,255,255,0.65); font-size: 0.9rem; }
footer ul li a:hover { color: var(--blue-light); text-decoration: none; }

.footer-bottom {
  max-width: 1200px;
  margin: 2rem auto 0;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.82rem;
}

.social-links { display: flex; gap: 0.75rem; align-items: center; }

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  color: var(--white);
  font-size: 0.85rem;
  transition: background 0.2s;
  text-decoration: none;
}

.social-links a:hover { background: var(--blue-light); color: var(--navy); }

/* ---- RESPONSIVE ---- */
@media (max-width: 900px) {
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 700px) {
  nav ul { display: none; flex-direction: column; width: 100%; }
  nav ul.open {
    display: flex;
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--navy);
    overflow-y: auto;
    padding: 1rem 0;
    z-index: 998;
    align-items: flex-start;
  }

  nav > ul > li { width: 100%; }
  nav > ul > li > a { height: auto; line-height: 1.4; padding: 0.85rem 1.5rem; border-bottom: 1px solid rgba(255,255,255,0.08); border-left: none; }
  nav > ul > li > a:hover, nav > ul > li > a.active { border-bottom: 1px solid rgba(255,255,255,0.08); background: rgba(255,255,255,0.07); }

  .dropdown-menu {
    position: static;
    display: none;
    box-shadow: none;
    border-top: none;
    border-left: 3px solid var(--blue-light);
    margin-left: 1.5rem;
  }
  .dropdown.open .dropdown-menu { display: block; }

  .nav-toggle { display: flex; }

  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; text-align: center; }

  .btn-outline { margin-left: 0; margin-top: 0.75rem; }
}

/* ---- UTILITY ---- */
.text-center { text-align: center; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mb-1 { margin-bottom: 1rem; }
.highlight-box {
  background: var(--off-white);
  border-left: 4px solid var(--blue);
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
  border-radius: 0 4px 4px 0;
}
