/* ==========================================================================
   Industry Innovation Lab — Stanford-themed stylesheet
   Modeled on the Stanford web identity (cife.stanford.edu)
   ========================================================================== */

:root {
  --cardinal: #8C1515;
  --cardinal-dark: #820000;
  --cardinal-light: #B83A4B;
  --charcoal: #2E2D29;
  --cool-grey: #53565A;
  --stone: #7F7776;
  --fog: #F4F4F4;
  --fog-light: #FAF9F9;
  --sandstone: #D2C295;
  --white: #FFFFFF;
  --link: #006CB8;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "Source Sans 3", "Helvetica Neue", Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--charcoal);
  background: var(--white);
}

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

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

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* --------------------------------------------------------------------------
   Stanford brand bar
   -------------------------------------------------------------------------- */
.brand-bar {
  background: var(--cardinal);
}
.brand-bar .container {
  display: flex;
  align-items: center;
  height: 50px;
}
.brand-bar a {
  color: var(--white);
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
}
.brand-bar a:hover { text-decoration: none; color: var(--white); }

/* --------------------------------------------------------------------------
   Site header + navigation
   -------------------------------------------------------------------------- */
.site-header {
  background: var(--white);
  border-bottom: 4px solid var(--cardinal);
}
.site-header .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
  gap: 1rem;
}
.site-title {
  font-family: var(--serif);
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--charcoal);
  line-height: 1.2;
}
.site-title a { color: var(--charcoal); text-decoration: none; }
.site-title a:hover { color: var(--cardinal); }
.site-title .subtitle {
  display: block;
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--cool-grey);
  letter-spacing: 0.02em;
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  gap: 0.25rem;
}
.site-nav a {
  display: block;
  padding: 0.55rem 0.95rem;
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--charcoal);
  text-decoration: none;
  border-bottom: 3px solid transparent;
}
.site-nav a:hover {
  color: var(--cardinal);
  text-decoration: none;
  border-bottom-color: var(--cardinal-light);
}
.site-nav a.active {
  color: var(--cardinal);
  border-bottom-color: var(--cardinal);
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 460px;
  display: flex;
  align-items: flex-end;
  background-size: cover;
  background-position: center;
  color: var(--white);
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(46,45,41,0) 30%, rgba(46,45,41,0.82) 100%);
}
.hero .container {
  position: relative;
  z-index: 1;
  width: 100%;
  padding-top: 4rem;
  padding-bottom: 3rem;
}
.hero h1 {
  font-family: var(--serif);
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 700;
  line-height: 1.15;
  max-width: 850px;
  text-shadow: 0 2px 12px rgba(0,0,0,0.45);
}
.hero p.lede {
  margin-top: 1rem;
  font-size: clamp(1.05rem, 2.2vw, 1.35rem);
  max-width: 720px;
  text-shadow: 0 1px 8px rgba(0,0,0,0.5);
}

.hero--interior {
  min-height: 280px;
}

/* Page header for pages without a photo hero */
.page-header {
  background: var(--fog);
  border-bottom: 1px solid #e3e3e3;
  padding: 3rem 0 2.5rem;
}
.page-header h1 {
  font-family: var(--serif);
  font-size: clamp(2rem, 4.5vw, 2.8rem);
  color: var(--charcoal);
}
.page-header p.lede {
  margin-top: 0.75rem;
  font-size: 1.25rem;
  color: var(--cool-grey);
  max-width: 780px;
}

/* --------------------------------------------------------------------------
   Sections + typography
   -------------------------------------------------------------------------- */
.section { padding: 3.5rem 0; }
.section--fog { background: var(--fog-light); border-top: 1px solid #ececec; border-bottom: 1px solid #ececec; }
.section--charcoal { background: var(--charcoal); color: var(--white); }
.section--cardinal { background: var(--cardinal); color: var(--white); }

.section h2 {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  color: var(--charcoal);
  margin-bottom: 1.25rem;
}
.section--charcoal h2, .section--cardinal h2 { color: var(--white); }

.section h3 {
  font-family: var(--serif);
  font-size: 1.35rem;
  color: var(--cardinal);
  margin: 1.75rem 0 0.5rem;
}
.section--charcoal h3, .section--cardinal h3 { color: var(--sandstone); }

.section p + p { margin-top: 1rem; }

.kicker {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cardinal);
  margin-bottom: 0.6rem;
}
.section--charcoal .kicker, .section--cardinal .kicker { color: var(--sandstone); }

.rule {
  width: 64px;
  height: 4px;
  background: var(--cardinal);
  border: 0;
  margin: 0 0 1.5rem;
}
.section--cardinal .rule, .section--charcoal .rule { background: var(--sandstone); }

.prose { max-width: 800px; }

/* --------------------------------------------------------------------------
   Cards
   -------------------------------------------------------------------------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.75rem;
  margin-top: 2rem;
}
.card {
  background: var(--white);
  border: 1px solid #e5e3e0;
  border-top: 5px solid var(--cardinal);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  box-shadow: 0 1px 4px rgba(46,45,41,0.06);
}
.card h3 {
  font-family: var(--serif);
  font-size: 1.3rem;
  color: var(--charcoal);
  margin: 0 0 0.6rem;
}
.card p { font-size: 1.02rem; color: var(--cool-grey); flex: 1; }
.card .card-link {
  margin-top: 1.25rem;
  font-weight: 700;
  color: var(--cardinal);
}
.card .card-link:hover { color: var(--cardinal-dark); }

.card--photo { padding: 0; overflow: hidden; }
.card--photo img { width: 100%; height: 210px; object-fit: cover; }
.card--photo .card-body { padding: 1.5rem 1.75rem 1.75rem; display: flex; flex-direction: column; flex: 1; }

/* --------------------------------------------------------------------------
   Split (text + image) layout
   -------------------------------------------------------------------------- */
.split {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 3rem;
  align-items: center;
}
.split img {
  width: 100%;
  height: 100%;
  max-height: 460px;
  object-fit: cover;
  border-radius: 2px;
}
@media (max-width: 820px) {
  .split { grid-template-columns: 1fr; }
  .split img { max-height: 340px; }
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-block;
  padding: 0.75rem 1.6rem;
  font-family: var(--sans);
  font-size: 1.05rem;
  font-weight: 700;
  background: var(--cardinal);
  color: var(--white);
  border: 2px solid var(--cardinal);
  text-decoration: none;
  transition: background 0.15s ease;
}
.btn:hover { background: var(--cardinal-dark); border-color: var(--cardinal-dark); text-decoration: none; color: var(--white); }

.btn--ghost {
  background: transparent;
  color: var(--cardinal);
}
.btn--ghost:hover { background: var(--cardinal); color: var(--white); }

.section--cardinal .btn { background: var(--white); color: var(--cardinal); border-color: var(--white); }
.section--cardinal .btn:hover { background: var(--fog); }

/* --------------------------------------------------------------------------
   Membership table
   -------------------------------------------------------------------------- */
.table-wrap { overflow-x: auto; margin-top: 2rem; }
table.tiers {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  font-size: 1.02rem;
  min-width: 640px;
}
table.tiers th, table.tiers td {
  padding: 0.9rem 1.1rem;
  border: 1px solid #e0ddd9;
  text-align: center;
}
table.tiers th {
  font-family: var(--serif);
  font-size: 1.08rem;
}
table.tiers thead th {
  background: var(--cardinal);
  color: var(--white);
  border-color: var(--cardinal-dark);
}
table.tiers td:first-child, table.tiers th:first-child {
  text-align: left;
  font-weight: 600;
}
table.tiers tbody tr:nth-child(even) { background: var(--fog-light); }
table.tiers .check { color: var(--cardinal); font-size: 1.2rem; font-weight: 700; }
table.tiers .fee { font-weight: 700; color: var(--charcoal); }

/* --------------------------------------------------------------------------
   Benefit / course lists
   -------------------------------------------------------------------------- */
.feature-list { list-style: none; margin-top: 1.5rem; }
.feature-list > li {
  padding: 1.6rem 0;
  border-bottom: 1px solid #e7e4e1;
  max-width: 860px;
}
.feature-list > li:last-child { border-bottom: 0; }
.feature-list h3 { margin: 0 0 0.4rem; }
.feature-list p { color: var(--cool-grey); font-size: 1.05rem; }
.feature-list .tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white);
  background: var(--cardinal);
  padding: 0.15rem 0.55rem;
  border-radius: 2px;
  margin-left: 0.5rem;
  vertical-align: middle;
}

/* --------------------------------------------------------------------------
   Stat strip
   -------------------------------------------------------------------------- */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  text-align: center;
}
.stats .stat .num {
  font-family: var(--serif);
  font-size: 2.6rem;
  font-weight: 700;
  color: var(--sandstone);
  line-height: 1.1;
}
.stats .stat .label {
  margin-top: 0.35rem;
  font-size: 1rem;
  letter-spacing: 0.02em;
}

/* --------------------------------------------------------------------------
   Info / schedule box
   -------------------------------------------------------------------------- */
.info-box {
  background: var(--fog);
  border-left: 5px solid var(--cardinal);
  padding: 1.5rem 1.75rem;
  margin-top: 1.75rem;
  max-width: 720px;
}
.info-box h3 { margin-top: 0; color: var(--charcoal); }
.info-box dl { display: grid; grid-template-columns: max-content 1fr; gap: 0.4rem 1.25rem; margin-top: 0.75rem; }
.info-box dt { font-weight: 700; color: var(--cardinal); }
.info-box dd { color: var(--charcoal); }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--charcoal);
  color: #d5d2cd;
  padding: 3rem 0 2rem;
  font-size: 0.98rem;
}
.site-footer .footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2.5rem;
}
.site-footer h4 {
  font-family: var(--serif);
  color: var(--white);
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
}
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 0.45rem; }
.site-footer a { color: #d5d2cd; }
.site-footer a:hover { color: var(--white); }
.footer-stanford {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--white);
}
.footer-bottom {
  border-top: 1px solid #4a4844;
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.88rem;
  color: #a8a49e;
}
.footer-bottom a { color: #a8a49e; margin-right: 1.1rem; }

@media (max-width: 820px) {
  .site-footer .footer-grid { grid-template-columns: 1fr; gap: 1.75rem; }
  .site-header .container { flex-direction: column; align-items: flex-start; }
}
