/* =========================
   Xian Mallory Lab Website
   Global Stylesheet
   ========================= */

/* ---------- CSS Variables ---------- */
:root {
  --fsu-garnet: #782f40;
  --fsu-gold: #ceb888;

  --primary: #123c56;
  --primary-dark: #0d2c3f;
  --accent: #1c7c7d;
  --accent-soft: #e8f5f5;

  --text: #1f2933;
  --text-light: #5b6770;
  --muted: #eef3f6;
  --border: #d9e2e8;
  --white: #ffffff;
  --bg: #f8fbfc;

  --shadow-sm: 0 2px 8px rgba(16, 24, 40, 0.06);
  --shadow-md: 0 12px 30px rgba(16, 24, 40, 0.08);

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;

  --container: 1180px;
  --transition: 0.25s ease;
}

/* ---------- Base Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

/* ---------- Utilities ---------- */
.container {
  width: min(100% - 2rem, var(--container));
  margin-inline: auto;
}

.section {
  padding: 5rem 0;
}

.section-sm {
  padding: 3rem 0;
}

.section-header {
  max-width: 760px;
  margin-bottom: 2.5rem;
}

.section-kicker {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fsu-garnet);
  margin-bottom: 0.9rem;
}

.section-title {
  margin: 0 0 0.8rem;
  font-size: clamp(1.8rem, 3vw, 2.75rem);
  line-height: 1.15;
  color: var(--primary-dark);
}

.section-subtitle {
  margin: 0;
  color: var(--text-light);
  font-size: 1.02rem;
}

.grid {
  display: grid;
  gap: 1.5rem;
}

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

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

.grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.text-center {
  text-align: center;
}

.surface {
  background: var(--white);
  border: 1px solid rgba(18, 60, 86, 0.08);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

/* ---------- Buttons ---------- */
.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.88rem 1.25rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  transition: var(--transition);
  cursor: pointer;
}

.btn-primary {
  background: var(--fsu-garnet);
  color: var(--white);
}

.btn-primary:hover {
  background: #642635;
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--white);
  color: var(--primary-dark);
  border-color: var(--border);
}

.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-1px);
}

.btn-link {
  color: var(--accent);
  font-weight: 600;
}

.btn-link:hover {
  color: var(--primary);
}

/* ---------- Top Accent Bar ---------- */
.topbar {
  height: 6px;
  background: linear-gradient(
    90deg,
    var(--fsu-garnet) 0%,
    var(--fsu-garnet) 50%,
    var(--fsu-gold) 100%
  );
}

/* ---------- Navbar ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(18, 60, 86, 0.08);
}

.navbar {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--primary-dark);
}

.brand-subtitle {
  font-size: 0.82rem;
  color: var(--text-light);
  margin-top: 0.2rem;
}

.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: none;
  border-radius: 12px;
  background: var(--muted);
  color: var(--primary-dark);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: currentColor;
  margin: 4px auto;
  border-radius: 999px;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.35rem;
}

.nav-link {
  position: relative;
  font-weight: 600;
  color: var(--text);
  padding: 0.4rem 0;
  transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
  color: var(--fsu-garnet);
}

.nav-link.active::after,
.nav-link:hover::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.35rem;
  width: 100%;
  height: 2px;
  background: var(--fsu-gold);
  border-radius: 999px;
}

/* ---------- Hero ---------- */
.hero {
  padding: 4.5rem 0 3.5rem;
  background:
    radial-gradient(circle at top right, rgba(28, 124, 125, 0.08), transparent 26%),
    radial-gradient(circle at left center, rgba(120, 47, 64, 0.05), transparent 20%),
    linear-gradient(180deg, #ffffff 0%, #f8fbfc 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 2.2rem;
  align-items: center;
}

.hero-copy {
  max-width: 680px;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.84rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--fsu-garnet);
  margin-bottom: 1rem;
}

.hero-kicker::before {
  content: "";
  width: 28px;
  height: 2px;
  background: var(--fsu-gold);
  border-radius: 999px;
}

.hero-title {
  margin: 0 0 1rem;
  font-size: clamp(2.4rem, 5vw, 4.5rem);
  line-height: 1.05;
  color: var(--primary-dark);
}

.hero-title span {
  color: var(--fsu-garnet);
}

.hero-text {
  margin: 0 0 1.5rem;
  font-size: 1.08rem;
  color: var(--text-light);
  max-width: 62ch;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 1.4rem;
}

.meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.65rem 0.9rem;
  border-radius: 999px;
  background: var(--white);
  border: 1px solid rgba(18, 60, 86, 0.08);
  box-shadow: var(--shadow-sm);
  color: var(--text-light);
  font-size: 0.92rem;
  font-weight: 600;
}

.hero-media {
  position: relative;
}

.hero-photo-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--white);
  border: 1px solid rgba(18, 60, 86, 0.08);
  box-shadow: var(--shadow-md);
}

.hero-photo {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.hero-badge {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  background: rgba(18, 60, 86, 0.92);
  color: var(--white);
  padding: 0.85rem 1rem;
  border-radius: 14px;
  max-width: 260px;
  box-shadow: var(--shadow-md);
}

.hero-badge strong {
  display: block;
  font-size: 0.92rem;
  margin-bottom: 0.2rem;
}

.hero-badge span {
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.82);
}

/* ---------- Cards ---------- */
.card {
  background: var(--white);
  border: 1px solid rgba(18, 60, 86, 0.08);
  border-radius: var(--radius-md);
  padding: 1.4rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

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

.card-title {
  margin: 0 0 0.65rem;
  font-size: 1.2rem;
  color: var(--primary-dark);
}

.card-text {
  margin: 0;
  color: var(--text-light);
}

.research-card {
  height: 100%;
  position: relative;
  overflow: hidden;
}

.research-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: linear-gradient(180deg, var(--accent), var(--fsu-garnet));
  border-radius: 999px;
}

.research-card-inner {
  padding-left: 0.8rem;
}

.research-tag {
  display: inline-block;
  margin-bottom: 0.75rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

/* ---------- Stats / Highlights ---------- */
.highlights {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.highlight-box {
  padding: 1.35rem;
  border-radius: var(--radius-md);
  background: var(--white);
  border: 1px solid rgba(18, 60, 86, 0.08);
  box-shadow: var(--shadow-sm);
}

.highlight-number {
  display: block;
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--fsu-garnet);
  line-height: 1.1;
  margin-bottom: 0.35rem;
}

.highlight-label {
  color: var(--text-light);
  font-size: 0.96rem;
}

/* ---------- Publication List ---------- */
.pub-list {
  display: grid;
  gap: 1rem;
}

.pub-item {
  padding: 1.2rem 1.3rem;
  background: var(--white);
  border: 1px solid rgba(18, 60, 86, 0.08);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.pub-title {
  margin: 0 0 0.45rem;
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--primary-dark);
}

.pub-meta {
  margin: 0 0 0.65rem;
  color: var(--text-light);
  font-size: 0.95rem;
}

.pub-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.pub-links a {
  color: var(--accent);
  font-weight: 600;
  font-size: 0.92rem;
}

.pub-links a:hover {
  color: var(--fsu-garnet);
}

/* ---------- People Cards ---------- */
.people-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.person-card {
  overflow: hidden;
  padding: 0;
}

.person-photo {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: linear-gradient(135deg, #dfe8ee, #edf3f7);
}

.person-content {
  padding: 1.25rem;
}

.person-name {
  margin: 0 0 0.3rem;
  font-size: 1.18rem;
  color: var(--primary-dark);
}

.person-role {
  margin: 0 0 0.75rem;
  color: var(--fsu-garnet);
  font-weight: 700;
  font-size: 0.92rem;
}

.person-interest {
  margin: 0 0 0.75rem;
  color: var(--text);
  font-size: 0.96rem;
}

.person-bio {
  margin: 0 0 1rem;
  color: var(--text-light);
  font-size: 0.95rem;
}

.person-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.person-links a {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--accent);
}

.person-links a:hover {
  color: var(--fsu-garnet);
}

/* ---------- PI Feature ---------- */
.pi-feature {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 1.75rem;
  align-items: start;
  padding: 1.5rem;
}

.pi-photo {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, #dfe8ee, #edf3f7);
}

.pi-details h3 {
  margin: 0 0 0.4rem;
  font-size: 1.6rem;
  color: var(--primary-dark);
}

.pi-title {
  margin: 0 0 1rem;
  font-weight: 700;
  color: var(--fsu-garnet);
}

.pi-details p {
  margin: 0 0 1rem;
  color: var(--text-light);
}

/* ---------- Alumni ---------- */
.alumni-list {
  display: grid;
  gap: 1rem;
}

.alumni-item {
  padding: 1.1rem 1.25rem;
  background: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid rgba(18, 60, 86, 0.08);
  box-shadow: var(--shadow-sm);
}

.alumni-name {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
  color: var(--primary-dark);
}

.alumni-meta {
  margin: 0;
  color: var(--text-light);
}

/* ---------- News ---------- */
.news-list {
  display: grid;
  gap: 1rem;
}

.news-item {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 1rem;
  padding: 1.2rem 1.3rem;
  background: var(--white);
  border: 1px solid rgba(18, 60, 86, 0.08);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.news-date {
  font-weight: 700;
  color: var(--fsu-garnet);
}

.news-content h3 {
  margin: 0 0 0.4rem;
  color: var(--primary-dark);
  font-size: 1.08rem;
}

.news-content p {
  margin: 0;
  color: var(--text-light);
}

/* ---------- Footer ---------- */
.site-footer {
  margin-top: 3rem;
  background: var(--fsu-garnet);
  color: rgba(255, 255, 255, 0.92);
}

.footer-top {
  padding: 3rem 0 2rem;
}

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

.footer-title {
  margin: 0 0 0.8rem;
  color: var(--white);
  font-size: 1.1rem;
}

.footer-text,
.footer-links a,
.footer-meta {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.96rem;
}

.footer-links {
  display: grid;
  gap: 0.65rem;
}

.footer-links a:hover {
  color: var(--fsu-gold);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  padding: 1rem 0;
}

.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.68);
}

/* ---------- Page Header ---------- */
.page-hero {
  padding: 3.5rem 0 2.5rem;
  background: linear-gradient(180deg, #ffffff 0%, #f7fbfd 100%);
}

.page-hero h1 {
  margin: 0 0 0.8rem;
  font-size: clamp(2rem, 4vw, 3.25rem);
  color: var(--primary-dark);
}

.page-hero p {
  margin: 0;
  color: var(--text-light);
  max-width: 70ch;
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .hero-grid,
  .pi-feature,
  .footer-grid {
    grid-template-columns: 1fr;
  }

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

  .highlights {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 860px) {
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
  }

  .nav-menu {
    position: absolute;
    top: calc(100% + 0px);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.2rem;
    background: var(--white);
    border-bottom: 1px solid rgba(18, 60, 86, 0.08);
    padding: 0.75rem 1rem 1rem;
    box-shadow: var(--shadow-md);
  }

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

  .nav-link {
    width: 100%;
    display: flex;
    align-items: center;
    min-height: 56px;
    padding: 1rem 0.4rem;
    border-bottom: 1px solid rgba(18, 60, 86, 0.06);
  }

  .nav-link:last-child {
    border-bottom: none;
  }

  .nav-link.active::after,
  .nav-link:hover::after {
    bottom: 0.7rem;
    width: 32px;
  }

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

  .news-item {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 4rem 0;
  }

  .hero {
    padding: 3.75rem 0 2.8rem;
  }

  .hero-title {
    font-size: clamp(2.1rem, 9vw, 3.4rem);
  }
}

@media (max-width: 560px) {
  .container {
    width: min(100% - 1.2rem, var(--container));
  }

  .navbar {
    min-height: 70px;
  }

  .brand-title {
    font-size: 1rem;
  }

  .brand-subtitle {
    font-size: 0.75rem;
  }

  .hero-text,
  .section-subtitle,
  .page-hero p {
    font-size: 0.98rem;
  }

  .btn {
    width: 100%;
  }

  .btn-group {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-badge {
    position: static;
    margin-top: 1rem;
    max-width: none;
  }

  .card,
  .pub-item,
  .alumni-item,
  .news-item {
    padding: 1rem;
  }

  .person-content {
    padding: 1rem;
  }
}