/* ===================== UARK COLOR SCHEME ===================== */
:root {
  --cardinal: #9D2235;      /* Razorback Cardinal Red */
  --cardinal-dark: #6E1722;
  --cardinal-light: #C0394C;
  --uark-gray: #5D6770;
  --ink: #1c1c1c;
  --paper: #f4f2ef;
  --white: #ffffff;

  --header-bg: #eef0f1;
  --nav-bg: #f4f5f6;
  --line: #d8dadd;
  --text: #3f4750;
  --footer-light: #ececec;
  --footer-dark: #3b3b3b;

  --maxw: 1480px;
  --gap: 14px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Helvetica Neue", Arial, sans-serif;
  background: var(--white);
  color: var(--ink);
}

a { color: var(--cardinal); }

.ua-container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 28px;
}

/* ===================== TOP HEADER ===================== */
.ua-header {
  background: var(--header-bg);
  border-bottom: 1px solid var(--line);
}
.ua-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 28px;
}

.ua-brand {
  display: flex;
  align-items: center;
  gap: 18px;
  text-decoration: none;
}
.ua-logo { height: 60px; width: auto; display: block; }
.ua-brand__divider {
  width: 1px;
  height: 52px;
  background: #c2c5c8;
}
.ua-brand__title {
  font-size: clamp(1.3rem, 2.2vw, 1.95rem);
  font-weight: 400;
  color: #4a4a4a;
  letter-spacing: 0.2px;
}

.ua-header__right {
  display: flex;
  align-items: center;
  gap: 22px;
}

/* --- Quicklinks dropdown --- */
.quicklinks { position: relative; }
.quicklinks__toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--cardinal);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.6px;
}
.quicklinks__caret {
  width: 0; height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid var(--cardinal);
  transition: transform 0.2s ease;
}
.quicklinks.open .quicklinks__caret { transform: rotate(180deg); }
.quicklinks__menu {
  list-style: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 200px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 4px;
  box-shadow: 0 14px 30px rgba(0,0,0,0.18);
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
  z-index: 70;
}
.quicklinks.open .quicklinks__menu { opacity: 1; transform: translateY(0); pointer-events: auto; }
.quicklinks__menu a {
  display: block;
  padding: 9px 16px;
  text-decoration: none;
  color: var(--text);
  font-size: 0.9rem;
  border-bottom: 1px solid #eee;
}
.quicklinks__menu li:last-child a { border-bottom: none; }
.quicklinks__menu a:hover { background: var(--paper); color: var(--cardinal); }

/* --- Search this site --- */
.ua-search {
  display: flex;
  align-items: stretch;
  border: 1px solid #c7c9cc;
  border-radius: 3px;
  overflow: hidden;
  background: var(--white);
}
.ua-search__input {
  border: none;
  outline: none;
  padding: 9px 14px;
  font-size: 0.9rem;
  width: 210px;
  max-width: 40vw;
  color: var(--ink);
}
.ua-search__btn {
  border: none;
  background: var(--cardinal);
  color: var(--white);
  padding: 0 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  transition: background 0.18s ease;
}
.ua-search__btn:hover { background: var(--cardinal-dark); }

/* ===================== PRIMARY NAV ===================== */
.ua-nav {
  background: var(--nav-bg);
  border-bottom: 1px solid var(--line);
}
.ua-nav .ua-container { position: relative; }
.ua-nav__list {
  list-style: none;
  display: flex;
  justify-content: space-around;
  align-items: center;
}
.ua-nav__list a {
  display: block;
  text-decoration: none;
  color: var(--text);
  font-size: 1.08rem;
  font-weight: 500;
  padding: 18px 14px;
  transition: color 0.18s ease, box-shadow 0.18s ease;
}
.ua-nav__list a:hover {
  color: var(--cardinal);
  box-shadow: inset 0 -3px 0 var(--cardinal);
}
.ua-nav__toggle {
  display: none;
  align-items: center;
  gap: 8px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 14px 0;
}
.ua-nav__bars {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.ua-nav__bars span {
  display: block;
  width: 22px;
  height: 3px;
  background: var(--cardinal);
  border-radius: 2px;
}

/* ===================== PAGE BODY ===================== */
.ua-page { padding-bottom: 48px; }

/* Breadcrumb */
.breadcrumb {
  padding: 22px 0 18px;
  font-size: 1rem;
  color: var(--uark-gray);
  border-bottom: 1px solid var(--line);
  margin-bottom: 26px;
}
.breadcrumb a { text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb__sep { margin: 0 10px; color: #b7bbbf; }
.breadcrumb__current { color: var(--uark-gray); }

/* Intro: heading + body + contact */
.intro {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 48px;
  margin-top: 40px;
  margin-bottom: 44px;
}
.intro__title {
  font-size: clamp(2rem, 3.6vw, 2.7rem);
  font-weight: 400;
  color: #4a4a4a;
  margin-bottom: 22px;
}
.intro__main p {
  font-size: 1.12rem;
  line-height: 1.6;
  color: #333;
  margin-bottom: 18px;
}
.intro__note { font-weight: 700; }

.intro__contact {
  border-left: 1px solid var(--line);
  padding-left: 34px;
}
.intro__contact h2 {
  font-size: 1.5rem;
  font-weight: 400;
  color: #4a4a4a;
  margin-bottom: 16px;
}
.intro__contact p { font-size: 1rem; line-height: 1.5; color: #333; margin-bottom: 6px; }
.intro__contact a { text-decoration: none; }
.intro__contact a:hover { text-decoration: underline; }
.contact__name { font-weight: 700; }
.contact__personnel { margin-top: 16px; }
.contact__personnel a { font-weight: 700; }

/* Section heading above tiles */
.section-heading {
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--cardinal);
  letter-spacing: -0.5px;
  margin: 8px 0 18px;
  padding-bottom: 10px;
  border-bottom: 3px solid var(--cardinal);
}

/* ===================== MAIN STAGE (angled panels) =====================
   Panels overlap in the center band; a clip-path on each one carves a single
   continuous diagonal seam from the top-center down to the bottom-center.
   Left column:  Events Center (top half), Meeting Rooms (bottom half)
   Right column: Makerspace, Recording Studios, Immersive Media (thirds)
*/
.grid {
  position: relative;
  height: 78vh;
  min-height: 600px;
  margin-bottom: var(--gap);
}

/* The seams are two straight diagonals across the whole grid. Each tile's
   clip vertices are sampled from that global line at the tile's true top/bottom
   so the angle stays colinear ACROSS the gaps (no sawtooth). Gaps are a 1%
   half-gap (2% total) of grid height so the math holds at any viewport height.
   Left seam runs 74%->95% of column width; right seam runs 5%->26%. */

/* Left column panels: straight left edge, slanted right edge */
.tile--events {
  top: 0; left: 0; right: 42%; bottom: 51%;
  clip-path: polygon(0 0, 74% 0, 84.29% 100%, 0 100%);
}
.tile--meeting {
  top: 51%; left: 0; right: 42%; bottom: 0;
  clip-path: polygon(0 0, 84.71% 0, 95% 100%, 0 100%);
}

/* Right column panels: slanted left edge, straight right edge */
.tile--makerspace {
  top: 0; left: 42%; right: 0; bottom: 67.667%;
  clip-path: polygon(5% 0, 100% 0, 100% 100%, 11.79% 100%);
}
.tile--recording {
  top: 34.333%; left: 42%; right: 0; bottom: 34.333%;
  clip-path: polygon(12.21% 0, 100% 0, 100% 100%, 18.79% 100%);
}
.tile--immersive {
  top: 67.667%; left: 42%; right: 0; bottom: 0;
  clip-path: polygon(19.21% 0, 100% 0, 100% 100%, 26% 100%);
}

/* Right-column text hugs the diagonal cut: an invisible slanted float
   (shape-outside) pushes each line right to follow the angled edge, so the
   text steps along the slant instead of clearing it with a flat indent. */
.tile--makerspace .tile__content::before,
.tile--recording  .tile__content::before,
.tile--immersive  .tile__content::before {
  content: "";
  float: left;
  height: 100%;
}
.tile--makerspace .tile__content::before {
  width: 13%;
  shape-outside: polygon(0 0, 46% 0, 100% 100%, 0 100%);
}
.tile--recording .tile__content::before {
  width: 17%;
  shape-outside: polygon(0 0, 59% 0, 100% 100%, 0 100%);
}
.tile--immersive .tile__content::before {
  width: 24%;
  shape-outside: polygon(0 0, 71% 0, 100% 100%, 0 100%);
}

/* Recording + Immersive sit tight to the slant — push their whole text
   block right by an equal amount (heading and bullets together) */
.tile--recording .tile__content,
.tile--immersive .tile__content { padding-left: 52px; }

/* Nudge just the Recording Studios bullet list a touch further right */
.tile--recording .tile__content ul { padding-left: 14px; }

/* Pull the Makerspace bullet list up slightly */
.tile--makerspace .tile__content ul { margin-top: -8px; }

/* ===================== TILES ===================== */
.tile {
  position: absolute;
  overflow: hidden;
  background-image: var(--bg);
  background-size: cover;
  background-position: center;
  cursor: pointer;
  transform-origin: center;
  transition: transform 0.28s ease, filter 0.28s ease;
  filter: drop-shadow(0 5px 9px rgba(0,0,0,0.28));
}

.tile:hover {
  transform: scale(1.04);
  z-index: 10;
  filter: drop-shadow(0 16px 26px rgba(110,23,34,0.5));
}

.tile__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(48,48,48,0.78) 0%,
    rgba(48,48,48,0.55) 28%,
    rgba(48,48,48,0.18) 60%,
    rgba(48,48,48,0) 90%
  );
  transition: background 0.28s ease;
}
.tile:hover .tile__overlay {
  background: linear-gradient(
    to right,
    rgba(70,70,70,0.62) 0%,
    rgba(48,48,48,0.4) 28%,
    rgba(48,48,48,0.12) 60%,
    rgba(48,48,48,0) 90%
  );
}

.tile__content {
  position: relative;
  z-index: 2;
  padding: 22px 26px;
  color: var(--white);
  height: 100%;
}
.tile__content h2 {
  font-size: clamp(1.4rem, 2.2vw, 2.1rem);
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 12px;
  text-shadow: 0 2px 6px rgba(0,0,0,0.5);
}
.tile__content ul { list-style: none; }
.tile__content li { margin: 6px 0; }
.tile__content li a {
  color: var(--white);
  text-decoration: none;
  font-size: 1.02rem;
  font-weight: 500;
  padding-left: 16px;
  position: relative;
  display: inline-block;
  text-shadow: 0 1px 4px rgba(0,0,0,0.55);
  transition: padding-left 0.2s ease, color 0.2s ease;
}
.tile__content li a::before { content: "–"; position: absolute; left: 0; }
.tile__content li a:hover { padding-left: 22px; color: #ffd7dd; }

/* ===================== FOOTER ===================== */
.ua-footer__libraries { background: var(--footer-light); }
.ua-footer__libraries-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 30px 28px;
}
.ua-footer__address {
  font-style: normal;
  font-size: 1rem;
  line-height: 1.6;
  color: #444;
}
.ua-footer__social { display: flex; gap: 20px; }
.ua-footer__social a { color: #555; transition: color 0.18s ease; }
.ua-footer__social a:hover { color: var(--cardinal); }
.ua-footer__phone { font-size: 1rem; color: #444; }

.ua-footer__university { background: var(--footer-dark); color: #e6e6e6; }
.ua-footer__university-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 26px 28px;
  flex-wrap: wrap;
}
.ua-footer__u-title {
  display: inline-block;
  color: var(--white);
  font-size: 1.4rem;
  font-weight: 800;
  text-decoration: none;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}
.ua-footer__u-nav { display: flex; flex-wrap: wrap; gap: 22px; }
.ua-footer__u-nav a {
  color: #cfcfcf;
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: color 0.18s ease;
}
.ua-footer__u-nav a:hover { color: var(--white); }
.ua-footer__u-social { display: flex; gap: 18px; }
.ua-footer__u-social a { color: #cfcfcf; transition: color 0.18s ease; }
.ua-footer__u-social a:hover { color: var(--white); }

/* ===================== RESPONSIVE ===================== */
@media (max-width: 980px) {
  .ua-header__inner { flex-wrap: wrap; }
  .ua-brand { flex: 1 1 100%; }
  .ua-header__right { width: 100%; justify-content: space-between; }
  .ua-search__input { width: 100%; max-width: none; flex: 1; }
  .ua-search { flex: 1; }

  /* Quicklinks sits on the left once the header wraps — open the menu
     rightward from its left edge so it stays on screen */
  .quicklinks__menu { left: 0; right: auto; }

  /* Collapse nav into a toggle */
  .ua-nav__toggle { display: inline-flex; }
  .ua-nav__list {
    display: none;
    flex-direction: column;
    align-items: stretch;
  }
  .ua-nav__list.open { display: flex; }
  .ua-nav__list a {
    padding: 14px 4px;
    border-top: 1px solid var(--line);
  }
  .ua-nav__list a:hover { box-shadow: inset 4px 0 0 var(--cardinal); }

  .intro { grid-template-columns: 1fr; gap: 28px; }
  .intro__contact { border-left: none; border-top: 1px solid var(--line); padding-left: 0; padding-top: 24px; }
}

@media (max-width: 760px) {
  /* Drop the angled overlap and stack rectangular panels on small screens */
  .grid {
    position: static;
    height: auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    gap: var(--gap);
  }
  .tile {
    position: relative;
    inset: auto;
    clip-path: none !important;
    min-height: 180px;
    border-radius: 6px;
  }
  .tile__content { padding-left: 26px !important; }
  /* Tiles are rectangular on mobile — drop the slant float and the
     desktop-only Recording bullet nudge so all tiles align */
  .tile__content::before { display: none; }
  .tile--recording .tile__content ul { padding-left: 0; }

  .ua-footer__libraries-inner,
  .ua-footer__university-inner { flex-direction: column; align-items: flex-start; }
  .ua-brand__title { font-size: 1.3rem; }
}
