@import url("https://use.typekit.net/fhh1zvd.css");
@import url("https://use.typekit.net/pgb6ypz.css");

:root {
  --navy: #0c2340;
  --navy-2: #14283d;
  --orange: #d34f21;
  --orange-dark: #ad3614;
  --cream: #f7f1df;
  --paper: #fffdf8;
  --ink: #20262c;
  --muted: #59636d;
  --line: #d8d4ca;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  color: var(--ink);
  background: var(--paper);
  font-family: libre-franklin, Helvetica, "Helvetica Neue", system-ui, -apple-system, Arial, sans-serif;
  font-size: 1.03rem;
  line-height: 1.68;
}
a { color: var(--orange-dark); text-underline-offset: .18em; }
a:hover { color: var(--orange); }
h1, h2, h3, .navbar-brand, .btn {
  font-family: arsenal, sans-serif;
  font-weight: 800;
  letter-spacing: -.025em;
}
h1 { font-size: clamp(2.7rem, 6vw, 5.5rem); line-height: .98; }
h2 { color: var(--navy); font-size: clamp(2rem, 3.6vw, 3.25rem); line-height: 1.08; margin-top: 2.5rem; }
h3 { color: var(--navy); line-height: 1.18; }

.navbar {
  min-height: 118px;
  padding: 0 clamp(1rem, 4vw, 4rem);
  background: var(--navy-2) !important;
  border-top: 8px solid var(--orange);
  border-bottom: 1px solid rgba(255,255,255,.14);
}
.navbar::before {
  content: "UT SAN ANTONIO  /  SCHOOL OF ARCHITECTURE + PLANNING";
  position: absolute;
  top: 10px;
  left: clamp(1rem, 4vw, 4rem);
  color: #fff;
  font-size: .67rem;
  font-weight: 800;
  letter-spacing: .12em;
  opacity: .78;
}
.navbar .container-fluid { padding-top: 25px; }
.navbar-brand img { max-height: 58px; width: auto; filter: brightness(0) invert(1); }
.navbar-title { display: none; }
.navbar-nav .nav-link { color: white !important; font-size: .88rem; font-weight: 800; text-transform: uppercase; letter-spacing: .045em; padding: 1rem .85rem !important; }
.navbar-nav .nav-link:hover, .navbar-nav .nav-link.active { color: #ffb18f !important; }
.navbar-nav.navbar-nav-scroll.ms-auto .nav-link {
  background: var(--orange);
  padding: .7rem 1.1rem !important;
  margin-left: .65rem;
}
.dropdown-menu { border: 0; border-radius: 0; border-top: 4px solid var(--orange); box-shadow: 0 14px 35px rgba(0,0,0,.18); }
.dropdown-item { font-weight: 700; padding: .75rem 1rem; }

#quarto-content { overflow: hidden; }
main.content { max-width: 1180px; padding: 3rem 1.5rem 6rem; }
.page-columns .content { grid-column: body-start / body-end; }
.quarto-title-banner { background: var(--cream); color: var(--navy); padding: 4.8rem 0 3.2rem; border-bottom: 12px solid var(--orange); }
.quarto-title-banner .title { font-size: clamp(2.8rem, 6vw, 5.2rem); max-width: 1000px; }
.quarto-title-banner .subtitle { color: var(--muted); font-size: 1.25rem; }

body:has(.hero) main.content { max-width: none; padding-top: 0; padding-bottom: 0; }
.hero {
  position: relative;
  min-height: min(720px, 75vh);
  display: flex;
  align-items: flex-end;
  margin: 0 calc(50% - 50vw);
  padding: clamp(5rem, 12vw, 9rem) clamp(1.5rem, 8vw, 8rem);
  color: white;
  background: linear-gradient(90deg, rgba(3,18,37,.94) 0%, rgba(3,18,37,.75) 48%, rgba(3,18,37,.2) 100%), url("images/wix/956e9fc2f8e54e1986a77286578d15bc.jpg") center/cover;
}
.hero::after { content: ""; position: absolute; right: 0; top: 0; width: 30vw; height: 42px; background: var(--orange); clip-path: polygon(12% 0,100% 0,100% 100%,22% 100%); }
.hero-content { position: relative; z-index: 1; max-width: 900px; }
.hero h1 { color: white; max-width: 850px; margin: .6rem 0 1.4rem; }
.hero p:not(.eyebrow) { max-width: 720px; font-size: clamp(1.1rem, 2vw, 1.4rem); }
.eyebrow, .section-kicker { margin: 0; text-transform: uppercase; letter-spacing: .16em; font-size: .75rem; font-weight: 800; }
.eyebrow { color: #ffb18f; }
.section-kicker { color: var(--orange-dark); margin-top: 5rem; }
.btn { border-radius: 0; text-transform: uppercase; letter-spacing: .06em; font-size: .77rem; padding: .9rem 1.25rem; border-width: 2px; margin: .5rem .4rem .25rem 0; }
.btn-primary { background: var(--orange); border-color: var(--orange); }
.btn-primary:hover { background: var(--orange-dark); border-color: var(--orange-dark); }

.mission-band { display: grid; grid-template-columns: 150px minmax(0, 760px); gap: 2rem; align-items: start; margin: 0 calc(50% - 50vw); padding: clamp(3rem, 7vw, 6rem) max(1.5rem, calc((100vw - 1120px)/2)); background: var(--cream); }
.mission-number { color: var(--orange); font-size: 4.5rem; font-weight: 900; line-height: 1; border-top: 6px solid var(--orange); padding-top: .75rem; }
.mission-copy h2 { margin: 0 0 1.2rem; }
.mission-copy { font-size: 1.2rem; }

.focus-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin: 2rem 0 6rem; }
.feature-card { background: #fff; border: 1px solid var(--line); border-bottom: 7px solid var(--orange); transition: transform .2s ease, box-shadow .2s ease; }
.feature-card:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(12,35,64,.14); }
.feature-card img { width: 100%; aspect-ratio: 4/3; object-fit: cover; margin: 0; }
.card-copy { padding: 1.5rem; }
.card-copy h3 { font-size: 1.45rem; margin: .35rem 0 .8rem; }
.card-copy p { color: var(--muted); }
.card-index { color: var(--orange); font-weight: 900; }
.card-copy a { font-weight: 800; text-transform: uppercase; font-size: .78rem; letter-spacing: .06em; text-decoration: none; }

.split-feature { display: grid; grid-template-columns: 1.15fr .85fr; margin: 0 calc(50% - 50vw); background: var(--navy); color: white; }
.split-image img { width: 100%; height: 100%; min-height: 520px; object-fit: cover; margin: 0; }
.split-copy { padding: clamp(3rem, 7vw, 6.5rem); align-self: center; }
.split-copy .section-kicker { color: #ffb18f; margin-top: 0; }
.split-copy h2 { color: white; }
.cta-band { margin: 0 calc(50% - 50vw); padding: clamp(4rem, 8vw, 7rem) max(1.5rem, calc((100vw - 1120px)/2)); background: var(--orange); color: white; }
.cta-band h2 { color: white; max-width: 850px; }
.cta-band .eyebrow { color: white; }

.project, .person { background: white; border: 1px solid var(--line); border-radius: 0; box-shadow: none; padding: 1.6rem; }
.project { margin: 1.5rem 0; border-left: 7px solid var(--orange); overflow: hidden; }
.project h2 { font-size: 1.55rem; margin-top: 0; }
.project img { width: 300px; height: 220px; object-fit: cover; float: right; margin: 0 0 1rem 1.5rem; }
.project::after { content: ""; clear: both; display: table; }
.people { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.25rem; }
.person { text-align: left; border-top: 6px solid var(--navy); }
.person img { width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: 0; }
.person h3 { font-size: 1.1rem; }
.initials { display: grid; place-items: center; width: 100%; aspect-ratio: 4/5; background: var(--navy); color: white; font-size: 4rem; font-weight: 900; }
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: .75rem; }
.gallery img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
blockquote { border-left: 7px solid var(--orange); background: var(--cream); padding: 1.5rem 2rem; font-size: 1.25rem; }

.nav-footer { background: var(--navy-2); color: white; border-top: 10px solid var(--orange); padding: 3.5rem clamp(1.5rem, 6vw, 6rem); }
.nav-footer a { color: #ffb18f; }
.nav-footer-left, .nav-footer-right { text-align: left; }

@media (max-width: 991px) {
  .navbar { min-height: 92px; }
  .navbar-collapse { background: var(--navy-2); padding: 1rem; }
  .focus-grid { grid-template-columns: 1fr; }
  .feature-card { display: grid; grid-template-columns: 1fr 1.2fr; }
  .split-feature { grid-template-columns: 1fr; }
  .split-image img { min-height: 380px; }
}
@media (max-width: 650px) {
  .hero { min-height: 680px; }
  .mission-band { grid-template-columns: 1fr; }
  .mission-number { font-size: 3rem; }
  .feature-card { display: block; }
  .project img { float: none; width: 100%; height: auto; aspect-ratio: 4/3; margin: 0 0 1rem; }
  .navbar::before { content: "UT SAN ANTONIO  /  HOUSED LAB"; }
}

/* SPUR Center alignment */
body { background: var(--navy); color: #f4f6f8; }
.navbar {
  min-height: 82px;
  background: #0c2340 !important;
  border-top: 0;
  border-bottom: 1px solid rgba(255,255,255,.18);
}
.navbar::before { content: none; }
.navbar .container-fluid { padding-top: 0; }
.navbar-brand img {
  width: 172px;
  max-height: 34px;
  filter: none;
}
.navbar-nav .nav-link {
  text-transform: none;
  letter-spacing: 0;
  font-size: .96rem;
}
.navbar-nav.navbar-nav-scroll.ms-auto .nav-link {
  background: transparent;
  margin-left: 0;
  padding: 1rem .85rem !important;
}

.spur-context-bar {
  background: #53647f;
  color: white;
  padding: .85rem 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,.25);
  position: relative;
  z-index: 9;
}
.spur-context-inner {
  width: min(1180px, 100%);
  margin: 0 auto;
  display: flex;
  gap: .6rem;
  align-items: center;
  flex-wrap: wrap;
  font-size: .92rem;
}
.spur-context-bar a { color: white; font-weight: 700; }
.spur-context-bar a:hover { color: #ffb18f; }

#quarto-content { background: #0c2340; }
main.content { color: #f4f6f8; }
main.content > p, main.content > ul, main.content > ol { color: #e5e9ed; }
main.content h1, main.content h2, main.content h3 { color: white; }
.quarto-title-banner {
  background: #0c2340;
  color: white;
  border-bottom: 8px solid var(--orange);
}
.quarto-title-banner .title, .quarto-title-banner .subtitle { color: white; }

#quarto-sidebar {
  background: #162c49;
  color: white;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 0;
}
.sidebar-menu-container::before {
  content: "SPUR Center";
  display: block;
  color: white;
  font-size: 1.25rem;
  font-weight: 800;
  border-bottom: 4px solid var(--orange);
  padding: .5rem 0 1rem;
  margin: 0 0 1rem;
}
.sidebar-title { color: white; font-weight: 800; border-bottom: 4px solid var(--orange); padding-bottom: .8rem; }
.sidebar-item-text, .sidebar-item-container a { color: #f4f6f8 !important; }
.sidebar-item-container a:hover, .sidebar-item-container a.active { color: #ffb18f !important; }
.sidebar-section .sidebar-item-text { font-weight: 800; }

.project, .person, .feature-card { color: var(--ink); }
.project h2, .project h3, .person h2, .person h3, .feature-card h3 { color: var(--navy); }
.project p, .person p, .feature-card p { color: var(--muted); }
.mission-band, .mission-band h2 { color: var(--navy); }
.focus-grid + *, .section-kicker + h2 { color: white; }
.gallery + p { color: #f4f6f8; }

.utsa-site-footer {
  position: relative;
  z-index: 10;
  color: white;
  margin-top: 0;
}
.klesse-footer {
  background: #22272d;
  padding: 4rem max(1.5rem, calc((100vw - 1180px)/2));
  border-top: 8px solid var(--orange);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.1fr .8fr 1.1fr;
  gap: clamp(2rem, 5vw, 5rem);
}
.utsa-site-footer h2 {
  color: white;
  font-size: 1.2rem;
  margin: 0 0 1rem;
  line-height: 1.25;
}
.klesse-footer-logo img {
  width: min(360px, 100%);
  max-height: 78px;
  margin-bottom: 1.25rem;
  filter: brightness(0) invert(1);
}
.utsa-site-footer p { font-size: .92rem; line-height: 1.65; }
.utsa-site-footer a { color: white; font-weight: 700; }
.utsa-site-footer a:hover { color: #ffb18f; }
.social-links { display: flex; flex-direction: column; gap: .55rem; }
.utsa-footer-bottom {
  background: #0c2340;
  padding: 3rem max(1.5rem, calc((100vw - 1180px)/2)) 1.5rem;
}
.footer-grid-bottom { align-items: start; grid-template-columns: 1.2fr 1fr 1fr; }
.utsa-footer-bottom img { width: 210px; max-height: 46px; margin-bottom: .75rem; }
.utsa-footer-bottom nav { display: flex; flex-direction: column; gap: .5rem; }
.copyright { border-top: 1px solid rgba(255,255,255,.24); margin-top: 2rem; padding-top: 1rem; opacity: .8; }
.nav-footer { display: none; }

@media (max-width: 991px) {
  .navbar { min-height: 72px; }
  .footer-grid { grid-template-columns: 1fr; }
  .spur-context-inner { font-size: .82rem; }
  .quarto-secondary-nav { display: flex; }
}

@media (min-width: 992px) {
  .quarto-secondary-nav { display: none; }
}

/* Final SPUR frame refinements */
body,
#quarto-content {
  background: #343a40;
}
.navbar {
  background: #343a40 !important;
}
.navbar-collapse {
  flex: 1 1 auto;
  justify-content: flex-end;
}
.navbar .navbar-brand-container.mx-auto {
  margin-left: 0 !important;
  margin-right: auto !important;
  flex: 0 0 auto;
}
.navbar-collapse .navbar-nav {
  margin-left: auto !important;
  margin-right: 0 !important;
  justify-content: flex-end;
}
.navbar-nav .nav-link {
  color: #fff !important;
  font-weight: 700;
  padding: 1.65rem 1rem !important;
}
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active,
.navbar-nav .dropdown-toggle.show {
  color: #f15a24 !important;
}
.navbar-nav .dropdown-toggle::after {
  color: #f15a24;
  margin-left: .45rem;
}
.dropdown-menu {
  background: #fff;
  border-top: 4px solid #f15a24;
}
.dropdown-item { color: #343a40; }
.dropdown-item:hover,
.dropdown-item:focus {
  background: #f1f1f1;
  color: #c9471b;
}

#quarto-sidebar {
  background: #343a40;
}

.utsa-site-footer {
  width: 100%;
  max-width: none;
}
.klesse-footer {
  background: #eeeeee;
  color: #343a40;
  width: 100%;
}
.klesse-footer h2 { color: #0c2340; }
.klesse-footer p { color: #343a40; }
.klesse-footer a { color: #0c2340; }
.klesse-footer a:hover { color: #c9471b; }
.klesse-footer-logo img {
  filter: none;
}
.utsa-footer-bottom {
  background: #0c2340;
  width: 100%;
}

/* SPUR two-level header and 780/390 content frame */
@media (min-width: 992px) {
  .navbar {
    min-height: 158px;
    padding: 0 clamp(1.5rem, 5vw, 5rem);
    align-items: stretch;
  }
  .navbar::after {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 44px;
    background: #0c2340;
    z-index: 0;
  }
  .navbar .container-fluid {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: flex-start;
    flex-wrap: wrap;
    width: min(1302px, 100%);
    max-width: 1302px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 66px;
    padding-right: 66px;
  }
  .navbar .navbar-brand-container.mx-auto {
    width: 100%;
    height: 44px;
    display: flex;
    align-items: center;
  }
  .navbar-brand img {
    width: 172px;
    max-height: 24px;
  }
  .navbar-collapse {
    width: 100%;
    flex: 0 0 100%;
    display: flex !important;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-content: center;
    padding: 12px 0 8px;
  }
  .navbar-collapse::before {
    content: "Klesse College of Engineering & Integrated Design";
    flex: 0 0 100%;
    color: white;
    font-family: libre-franklin, Helvetica, sans-serif;
    font-size: 1.65rem;
    font-weight: 800;
    line-height: 1.1;
    margin: 0 0 .3rem;
  }
  .navbar-collapse .navbar-nav {
    margin: 0 !important;
    justify-content: flex-start;
  }
  .navbar-nav .nav-link {
    padding: .65rem 1.7rem .65rem 0 !important;
  }

  #quarto-content {
    width: min(1302px, calc(100% - 3rem));
    max-width: 1302px;
    margin-left: auto;
    margin-right: auto;
    display: grid;
    grid-template-columns: minmax(0, 780px) minmax(300px, 390px);
    column-gap: clamp(2rem, 6vw, 132px);
    align-items: start;
  }
  #quarto-content > main.content {
    grid-column: 1;
    grid-row: 1;
    width: 100%;
    max-width: 780px;
    padding-left: 0;
    padding-right: 0;
  }
  #quarto-sidebar {
    grid-column: 2;
    grid-row: 1;
    width: 100%;
    max-width: 390px;
    margin: 3rem 0 0;
    position: sticky;
    top: 2rem;
    background: #212529;
    color: white;
    border: 0;
    box-shadow: none;
  }
  .sidebar-menu-container::before {
    color: white;
    border-bottom-color: #f15a24;
    padding-left: 1rem;
    padding-right: 1rem;
  }
  #quarto-sidebar .sidebar-item-text,
  #quarto-sidebar .sidebar-item-container a {
    color: white !important;
    display: block;
    width: 100%;
    padding: .78rem 1rem;
    text-decoration: none;
    transition: background-color .15s ease, color .15s ease;
  }
  #quarto-sidebar .sidebar-item-container {
    width: 100%;
    margin: 0;
  }
  #quarto-sidebar .sidebar-item-container:hover,
  #quarto-sidebar .sidebar-item-container:focus-within {
    background: #0c2340;
  }
  #quarto-sidebar .sidebar-item-container:has(a.active) {
    background: #f15a24;
  }
  #quarto-sidebar .sidebar-item-container a:hover,
  #quarto-sidebar .sidebar-item-container a.active {
    color: white !important;
  }
  #quarto-sidebar .sidebar-section {
    padding-left: 0;
  }
  #quarto-sidebar .sidebar-item-toggle {
    color: white !important;
  }
}

.mission-band {
  margin-left: 0;
  margin-right: 0;
  background: #343a40;
  color: white;
  padding-left: 0;
  padding-right: 0;
}
.hero,
.cta-band {
  margin-left: 0;
  margin-right: 0;
}
.hero { padding-left: clamp(2rem, 6vw, 4.5rem); padding-right: clamp(2rem, 6vw, 4.5rem); }
.cta-band { padding-left: clamp(2rem, 6vw, 4.5rem); padding-right: clamp(2rem, 6vw, 4.5rem); }
.mission-band h2 { color: white; }
.focus-grid {
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
.focus-grid .feature-card {
  display: grid;
  grid-template-columns: minmax(250px, 42%) 1fr;
  align-items: stretch;
}
.focus-grid .feature-card img {
  height: 100%;
  aspect-ratio: auto;
  min-height: 280px;
}
.split-feature {
  margin-left: 0;
  margin-right: 0;
  grid-template-columns: 1fr;
}
.split-image img { min-height: 400px; }
.split-copy { padding: clamp(2.5rem, 6vw, 4.5rem); }

@media (max-width: 650px) {
  .focus-grid .feature-card { display: block; }
}
