/* ============ Theme tokens ============ */
:root{
  --bg:#ffffff;
  --fg:#500000;
  --muted:#7a7a7a;
  --brand:#500000;    /* TAMU maroon */
  --accent:#841617;   /* lighter maroon */
  --card:#f9f9f9;
  --alt:#f3f3f3;
  --line:#dddddd;
  --max:900px;
}

/* ============ Base ============ */
*{box-sizing:border-box}
html,body{margin:0;padding:0;background:var(--bg);color:var(--fg);font:16px/1.6 system-ui,-apple-system,Segoe UI,Roboto,Inter,Arial,sans-serif}
img{max-width:100%;display:block;border-radius:12px}
a{color:var(--brand);text-decoration:underline;text-underline-offset:2px;font-weight:550}
a:hover{text-decoration-thickness:2px}
.container{max-width:var(--max);margin:0 auto;padding:0 20px}

/* ============ Header / Nav ============ */
.site-header{
  position:sticky;top:0;z-index:50;
  background-color:var(--brand);
  border-bottom:none;
}
.site-header .container{display:flex;align-items:center;gap:16px;padding:12px 20px}
.brand{display:flex;align-items:center;gap:12px;font-weight:700;color:#fff}
.site-header .nav{margin-left:auto;display:flex;gap:18px}
.site-header .nav a{color:#fff !important;font-weight:600;text-decoration:none}
.site-header .nav a:hover{text-decoration:underline}
.menu{display:none;margin-left:auto;background:transparent;border:0;color:#fff;font-size:20px}
.nav.open{display:flex}

/* Header logos */
.tam-logo{height:28px;width:auto}
.tam-logo-footer{height:40px;width:auto;vertical-align:middle;margin-right:8px}

@media (max-width:800px){
  .site-header .nav{display:none;flex-direction:column;position:absolute;right:16px;top:56px;background:var(--card);padding:12px;border:1px solid var(--line);border-radius:12px}
  .menu{display:block}
}

/* ============ Hero ============ */
.hero{
  position: relative;
  background: url("/assets/img/CML-1022.svg")
              no-repeat
              center bottom
              / 50% auto;     
  padding-top: clamp(2rem, 5vw, 4rem);
  padding-bottom: 4rem;           /* keeps button comfortably clear of bottom */
  min-height: 520px;              /* adjust if desired */
}

.hero h1{font-size:42px;line-height:1.15;margin:0 0 8px}
.affil{color:var(--muted);margin:0 0 20px}

/* Stack hero content and center */
.hero-content{
  position: relative;
  z-index: 2;
  text-align: center;
}

/* CTA button */
.button{display:inline-block;padding:10px 14px;border-radius:999px;background:var(--brand);color:#fff;font-weight:700;border:1px solid var(--brand)}
.button:hover{background:var(--accent);border-color:var(--accent)}

/* The centered logo that sits on the section line */
.hero-logo-centered{
  display: none !important;
}


/* ============ Sections ============ */
.section{padding:56px 0;border-top:1px solid var(--line)}
.section.alt{background:var(--brand);color:#fff}
.section.alt h2,
.section.alt a,
.section.alt p,
.section.alt .note{color:#fff !important}
.section.alt .button{background:#fff;color:var(--brand);border-color:#fff}
.section.alt .button:hover{background:#eee;border-color:#eee}
.section.alt a:hover{color:var(--accent)}
/* Cards inside maroon sections pop a bit */
.section.alt .card{background-color:rgba(255,255,255,0.1);border-color:rgba(255,255,255,0.2)}

/* ============ Grid / Cards / People ============ */
.grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:16px;margin-top:16px;justify-content:start}
.card{background:var(--card);padding:16px;border:1px solid var(--line);border-radius:16px}
.pub{padding:12px 0;border-bottom:1px dashed var(--line)}
.note{color:var(--muted);margin-top:12px}

.card.person{
  display:flex;align-items:center;gap:24px;
  background:var(--card);border:1px solid var(--line);border-radius:16px;padding:20px;
  margin:0 0 20px;width:100%;
}
.card.person .portrait{flex-shrink:0;width:200px;height:200px;border-radius:50%;overflow:hidden;box-shadow:0 4px 10px rgba(0,0,0,0.15)}
.card.person .portrait img{width:100%;height:100%;object-fit:cover;object-position:center}
.card.person .info{flex:1;text-align:left}

/* Make profile images pretty (also used elsewhere) */
.card img{
  display:block;margin:0 auto 16px;border-radius:50%;
  width:260px;height:260px;object-fit:cover;image-rendering:auto;max-width:100%;
  box-shadow:0 6px 16px rgba(0,0,0,0.2);
}

/* ============ Contact block ============ */
.contact-block{display:flex;align-items:center;justify-content:flex-start;gap:200px;flex-wrap:wrap;margin-top:20px}
.contact-info{flex:0 1 auto;min-width:280px}
.contact-info address{margin:8px 0 0;line-height:1.6}
.contact-logo{flex:0 0 auto}
.contact-logo img{height:150px;width:auto;display:block}
.section.alt .contact-logo img{filter:brightness(0) invert(1)}

/* ============ Footer ============ */
.site-footer{border-top:1px solid var(--line);padding:24px 0;color:var(--muted)}
.site-header .nav a{font-weight:600;text-decoration:none}
.site-header .nav a:hover{text-decoration:underline}

/* ============ Responsive tweaks ============ */
@media (max-width:900px){
  .hero h1{font-size:34px}
  .contact-block{gap:24px}
}
@media (max-width:700px){
  .contact-block{flex-direction:column;align-items:flex-start;gap:12px}
  .contact-logo img{height:80px}
}
@media (max-width:600px){
  :root{--heroLogoH: 200px;}
  .tam-logo{height:26px}
  .tam-logo-footer{height:32px}
  .card.person{flex-direction:column;text-align:center}
  .card.person .portrait{width:180px;height:180px;margin-bottom:12px}
}

@media (max-width: 600px){
  .hero{
    /* prefer full image visibility on small screens */
    background-size: 50%;

  }
}



/* === FINAL, HARD OVERRIDES === */
.hero{
  position: relative;                 /* ensure pseudo-elements position correctly */
  min-height: 520px;                  /* keep the section tall enough to see bg */
  background-color: var(--bg);        /* keep your white page background */

  /* Set background image with longhand so nothing gets reset by accident */
  background-image: url("/assets/img/CML-1022.svg");
  background-repeat: no-repeat;
  background-position: center bottom;
  background-size: 50% auto;          /* <— adjust this number to change size */
}

/* Hide the old inline img so it doesn't sit on top of text */
.hero-logo-centered{ display: none !important; }

/* (Optional) readability veil — won’t block clicks */
.hero::before{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  z-index:1; /* sits between bg and text */
  background: linear-gradient(
    to top,
    rgba(255,255,255,0.00) 0%,    /* bottom: no veil */
    rgba(255,255,255,0.40) 45%,   /* mid: gentle lift */
    rgba(255,255,255,0.80) 100%   /* top: strongest fade */
  );
}
.hero-content{
  position:relative;
  z-index:2;   /* text stays above gradient */
}

.affil {
  color: #000 !important;
  font-weight: 500; /* optional: adds clarity */
}
