/* =========================================================
   Clarke Lab — Site Styles (full file)
   ========================================================= */

/* ===== 1) Theme variables (edit these to change the look) ===== */
:root{
  /* Accent + neutrals */
  --brand:      #0e7c86;   /* primary accent (links/buttons) */
  --brand-ink:  #ffffff;   /* text on brand */
  --ink:        #0f172a;   /* main text */
  --muted:      #6b7280;   /* muted text */
  --bg:         #ffffff;   /* page background */
  --bg-soft:    #f6f8fb;   /* light band background */

  /* Footer */
  --footer-bg:  #0b1e2d;   /* dark footer */
  --footer-ink: #e5eef7;   /* footer text color */
  --footer-link:#a7d2ff;   /* footer link color */

  /* Cards & shadows */
  --card-bg:    #ffffff;
  --shadow-1:   0 2px 12px rgba(0,0,0,.06);
  --shadow-2:   0 12px 28px rgba(0,0,0,.12);
}

/* ===== 2) Base, typography, links ===== */
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

.btn.btn-primary {
  background: var(--brand);
  border-color: var(--brand);
  color: var(--brand-ink);
}
.btn.btn-outline-secondary:hover {
  border-color: var(--brand);
  color: var(--brand);
}

h1 { font-size: clamp(2.2rem, 3.5vw, 3rem); line-height: 1.15; margin-bottom: .5rem; }
h2 { font-size: clamp(1.6rem, 2.5vw, 2rem);  line-height: 1.2; }
h3, h4, h5, h6 { line-height: 1.25; }

/* ===== 3) Navbar ===== */
/* If your HTML still has bg/utility classes, either remove them or keep these overrides */
.navbar {
  background: #f8fafc;
  border-bottom: 1px solid #e5e7eb;
}
.navbar .navbar-brand { color: #0f172a; }
.navbar .nav-link { color: #334155 !important; }
.navbar .nav-link:hover { color: var(--brand) !important; }

/* ===== 4) HERO (full set) ===== */
.hero {
  position: relative;
  min-height: 58vh;           /* overall height on desktop */
  isolation: isolate;         /* ensure overlay layers correctly */
}
.hero-img {
  display: block;
  width: 100%;
  height: 70vh;               /* image height; adjust to taste */
  max-height: 80vh;
  object-fit: cover;          /* preserve crop */
  object-position: center;    /* feel free to tune per-image */
}

.hero-content {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  z-index: 2;
  color: #fff;
  padding-top: 2rem;          /* breathing room over nav */
  padding-bottom: 2rem;
}
.hero .btn.btn-primary {
  background: var(--brand);
  border-color: var(--brand);
  color: var(--brand-ink);
}

/* Carousel variant (if you use slides in hero.html) */
.carousel .hero-img { height: 70vh; max-height: 80vh; }

/* ===== 5) Section bands for visual rhythm ===== */
.section-soft { background: var(--bg-soft) !important; }
section.bg-light { background: var(--bg-soft) !important; } /* keep for older markup */
.mm-section { padding: 2.5rem 0; }  /* legacy class, safe to keep */

/* ===== 6) Cards & hovers (home tiles) ===== */
.card, .card-feature {
  background: var(--card-bg);
  box-shadow: var(--shadow-1);
  border: 0;
}
.card-feature{
  text-decoration: none;
  color: inherit;
  transition: transform .15s ease, box-shadow .15s ease;
  border-radius: .75rem;
  overflow: hidden;
  display: block;
}
.card-feature:hover{
  transform: translateY(-3px);
  box-shadow: var(--shadow-2);
}
.card-feature .card-img-top{
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
}

/* ===== 8) Resources grid (if enabled) ===== */
.resources-grid{
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}
.resource-card{
  display: block;
  padding: 1rem;
  border-radius: .75rem;
  background: var(--card-bg);
  box-shadow: var(--shadow-1);
  text-decoration: none;
  color: inherit;
  transition: transform .15s ease, box-shadow .15s ease;
}
.resource-card:hover{
  transform: translateY(-3px);
  box-shadow: var(--shadow-2);
}
.resource-card__icon{
  width: 28px;
  height: 28px;
  margin-bottom: .5rem;
  opacity: .85;
}

/* ===== 9) Gallery thumbs ===== */
.gallery-grid{
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}
.gallery-grid img{
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: .5rem;
}
.gallery-grid figcaption{
  font-size: .85rem;
  color: var(--muted);
  margin-top: .35rem;
}

/* ===== 10) Footer (dark band) ===== */
footer {
  background: var(--footer-bg);
  color: var(--footer-ink);
}
footer, footer * { color: var(--footer-ink) !important; }
footer a { color: var(--footer-link) !important; text-decoration: underline; }
footer .border-top { border-top: none !important; } /* hide light border if present */

/* ===== 11) Utilities & a11y niceties ===== */
.img-cover { width: 100%; height: 100%; object-fit: cover; }
.rounded-xl { border-radius: 1rem; }
.shadow-1 { box-shadow: var(--shadow-1); }
.shadow-2 { box-shadow: var(--shadow-2); }

@media (max-width: 576px){
  .hero-img { height: 48vh; }
}

@media (prefers-reduced-motion: reduce){
  * { transition: none !important; animation: none !important; }
}

/* ===== Research list — "simple-style" ===== */
.research-list {
  display: grid;
  gap: 0; /* we'll use separators instead of gaps */
}

/* Same-row alternating layout (kept from before) */
.research-item{
  display: grid;
  grid-template-columns: 240px 1fr;       /* square image column + text */
  grid-template-areas: "image text";
  column-gap: 1.25rem;
  align-items: start;
  padding: 1.25rem 0;
}
.research-thumb{ grid-area: image; }
.research-body{  grid-area: text;  }

.research-item:nth-child(even){
  grid-template-columns: 1fr 240px;       /* text | image */
  grid-template-areas: "text image";
}

/* Separator line */
.research-item + .research-item{ border-top: 1px solid #e5e7eb; }

/* TRUE square, no cropping */
.research-thumb{
  width: 240px;           /* must match the image column width above */
  height: 240px;          /* square */
  object-fit: contain;    /* show entire image without cropping */
  object-position: center;
  background: #f8fafc;    /* subtle backdrop so transparent PNGs look okay */
  border-radius: 0;       /* square corners */
  display: block;
}

/* Mobile: stack */
@media (max-width: 600px){
  .research-item{
    grid-template-columns: 1fr;
    grid-template-areas:
      "image"
      "text";
  }
  .research-thumb{
    width: 100%;
    max-width: 320px;      /* keeps it reasonable on phones */
    height: auto;          /* let it scale naturally on mobile */
    aspect-ratio: 1 / 1;   /* still square when width expands */
    justify-self: start;
  }
}


/* ===== Team (horizontal layout) ===== */
.team-row{
  display: grid;
  grid-template-columns: 240px 1fr; /* photo+icons | bio */
  gap: 1.25rem;
  padding: 1.25rem 0;
}
.team-row + .team-row{
  border-top: 1px solid #e5e7eb;    /* simple separator line */
}

/* Left column: photo with icon row underneath */
.team-left{
  display: grid;
  grid-template-rows: auto auto;     /* image, then icons */
  align-content: start;
  gap: .5rem;
}
.team-photo{
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 8px;                 /* square corners; change to 50% for circle */
}

/* Icon row under the photo */
.team-links{
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
}
.team-icon{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border-radius: 999px;
  border: 1px solid #e5e7eb;
  text-decoration: none;
}
.team-icon i { font-size: 1rem; }
.team-icon img { width: 18px; height: 18px; display: block; }
.team-icon:hover{ border-color: var(--brand); color: var(--brand); }

/* Right column: name, role, bio */
.team-right p { margin-bottom: .5rem; }
.team-right p:last-child { margin-bottom: 0; }

/* Alumni list style */
.alumni-list{ margin: 0; padding-left: 1.2rem; }
.alumni-list li{ margin-bottom: .35rem; }

/* Mobile: stack vertically */
@media (max-width: 640px){
  .team-row{ grid-template-columns: 1fr; }
  .team-left{ grid-template-columns: 140px 1fr; grid-template-rows: auto; gap: .75rem; }
  .team-photo{ width: 140px; }
  .team-links{ align-self: center; }
}

/* Tighter reading width + nicer spacing for pure text sections */
.prose { max-width: 72ch; }
.prose p { line-height: 1.7; margin-bottom: 1rem; }

/* Light note block */
.callout{
  border: 1px solid #e5e7eb;
  border-left: 4px solid var(--brand);
  border-radius: .5rem;
  background: #f9fafb;
  padding: .9rem 1rem;
  color: #334155;
}

/* Contact page cards + map */
.contact-cards{
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.contact-card{
  border: 1px solid #e5e7eb;
  border-radius: .75rem;
  background: #fff;
  padding: 1rem;
}
.map-embed iframe{
  width: 100%;
  height: 340px;
  border: 0;
  border-radius: .75rem;
}

/* News list */
.news-list { list-style: none; padding: 0; margin: 0; }
.news-item { padding: .9rem 0; border-top: 1px solid #e5e7eb; }
.news-item:first-child { border-top: 0; }

.news-head { display: flex; gap: .5rem; flex-wrap: wrap; align-items: baseline; }
.news-date { color: #64748b; font-size: .95rem; }
.news-title { font-weight: 600; }

.news-excerpt { margin: .25rem 0 .35rem; color: #334155; }
.news-links a { text-decoration: none; border-bottom: 1px solid transparent; font-size: .95rem; }
.news-links a:hover { border-bottom-color: currentColor; }

