@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Libre+Caslon+Display&family=Italiana&display=swap");

:root {
  color: #2b1720;
  background: #f8f4ed;
  font-family: "DM Sans", Arial, sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  --wine: #6c172c;
  --wine-dark: #4d1020;
  --ink: #2d1921;
  --paper: #fbf8f2;
  --sand: #d9b18e;
  --line: rgba(78, 33, 42, 0.13);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: var(--paper); }
body.nav-open { overflow: hidden; }
a { color: inherit; text-decoration: underline; }
button { font: inherit; }

.site-shell { min-height: 100vh; overflow: hidden; }

.site-header {
  position: relative;
  z-index: 20;
  height: 84px;
  display: flex;
  align-items: center;
  gap: 44px;
  padding: 0 clamp(24px, 4.1vw, 76px);
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(70, 35, 39, 0.08);
  box-shadow: 0 1px 12px rgba(55, 31, 25, 0.035);
}

.brand { flex: 0 0 auto; display: flex; flex-direction: column; line-height: 1; }
.brand-name {
  color: var(--wine-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(26px, 2.25vw, 37px);
  font-weight: 700;
  letter-spacing: -1.5px;
}
.brand-tagline { margin-top: 5px; font-family: Georgia, serif; font-size: 7.5px; color: #3d2a2e; }

.primary-nav { margin-left: auto; display: flex; align-items: center; gap: clamp(20px, 3vw, 58px); }
.primary-nav a { text-decoration: none; }
.nav-links { display: flex; align-items: center; gap: clamp(12px, 1.75vw, 31px); }
.nav-item { position: relative; }
.nav-link {
  border: 0;
  padding: 14px 0;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #25171b;
  background: none;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 8px;
  height: 1px;
  background: var(--wine);
  transition: right 180ms ease;
}
.nav-link:hover::after, .nav-link:focus-visible::after { right: 0; }

.dropdown {
  visibility: hidden;
  opacity: 0;
  position: absolute;
  top: calc(100% + 8px);
  left: -20px;
  min-width: 190px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: #fff;
  box-shadow: 0 18px 45px rgba(49, 25, 28, 0.14);
  transform: translateY(-5px);
  transition: opacity 150ms ease, transform 150ms ease, visibility 150ms;
}
.dropdown.is-open { visibility: visible; opacity: 1; transform: translateY(0); }
.dropdown a { display: block; padding: 10px 11px; border-radius: 2px; font-size: 12px; }
.dropdown a:hover { color: var(--wine); background: #f8f2ec; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  gap: 9px;
  border: 1px solid transparent;
  border-radius: 2px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}
.button:hover { transform: translateY(-2px); }
.button-nav { min-width: 143px; height: 40px; padding: 0 20px; color: #45231e; background: #d9af8b; box-shadow: 0 7px 18px rgba(122, 76, 45, 0.13); }
.button-nav:hover { background: #e4bd9b; box-shadow: 0 9px 23px rgba(122, 76, 45, 0.2); }
.menu-toggle { display: none; margin-left: auto; border: 0; color: var(--wine); background: transparent; cursor: pointer; }

.hero {
  position: relative;
  min-height: clamp(470px, 50.4vw, 718px);
  display: grid;
  overflow: hidden;
  isolation: isolate;
  background: #eee6da;
}
.hero-photo {
  position: absolute;
  z-index: -3;
  inset: 0;
  background-image: url("/assets/campus-hero.png");
  background-position: center 42%;
  background-size: cover;
  transform: scale(1.01);
}
.hero-wash {
  position: absolute;
  z-index: -2;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(252, 249, 243, 0.99) 0%, rgba(252, 249, 243, 0.93) 28%, rgba(252, 249, 243, 0.48) 47%, rgba(252, 249, 243, 0.03) 68%),
    linear-gradient(0deg, rgba(67, 25, 24, 0.08), transparent 35%);
}
.hero-inner {
  width: min(100%, 1500px);
  margin: 0 auto;
  padding: clamp(54px, 7vw, 107px) clamp(28px, 7vw, 106px) 54px;
  display: flex;
  align-items: flex-start;
}
.hero-copy { width: min(600px, 49%); }
.eyebrow {
  margin: 0 0 17px;
  color: var(--wine);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}
.hero h1 {
  margin: 0;
  color: #2b1920;
  font-family: "Libre Caslon Display", Georgia, serif;
  font-size: clamp(45px, 5vw, 77px);
  font-weight: 400;
  line-height: 1.03;
  letter-spacing: -0.045em;
}
.hero h1 em {
  color: var(--wine);
  font-family: "Italiana", "Libre Caslon Display", Georgia, serif;
  font-weight: 400;
  letter-spacing: -0.03em;
}
.hero-description {
  width: min(100%, 510px);
  margin: 24px 0 27px;
  color: #3e2b31;
  font-size: clamp(14px, 1.15vw, 17px);
  line-height: 1.72;
}
.hero-actions { display: flex; align-items: center; gap: 31px; }
.button-primary { min-width: 163px; height: 44px; padding: 0 17px; color: #fff; background: var(--wine); box-shadow: 0 9px 22px rgba(88, 18, 38, 0.22); }
.button-primary:hover { background: #7a1a32; box-shadow: 0 12px 25px rgba(88, 18, 38, 0.28); }
.text-link { display: inline-flex; align-items: center; gap: 10px; height: 44px; padding: 0 16px; border: 1px solid rgba(43, 25, 32, 0.5); border-radius: 2px; color: #2b1920; font-size: 11px; font-weight: 700; text-transform: uppercase; text-decoration: none; text-shadow: 0 1px 0 rgba(255, 255, 255, 0.35); transition: border-color 180ms ease, background-color 180ms ease, color 180ms ease; }
.text-link:hover, .text-link:focus-visible { border-color: var(--wine); color: var(--wine); background: rgba(255, 255, 255, 0.45); }
.hero-note {
  position: absolute;
  left: 49%;
  bottom: 0;
  min-width: 270px;
  padding: 24px 29px 20px;
  background: rgba(255, 252, 247, 0.93);
  box-shadow: 0 -2px 20px rgba(60, 37, 29, 0.04);
  backdrop-filter: blur(4px);
}
.hero-note p { margin: 0 0 16px; color: var(--wine-dark); font-family: Georgia, serif; font-size: 17px; line-height: 1.55; }
.hero-note span { display: block; width: 34px; height: 1px; background: #a65c51; }

.highlights { padding: 42px clamp(24px, 6.5vw, 99px) 40px; background: #fbf8f3; border-top: 1px solid rgba(109, 61, 52, 0.09); }
.highlights-grid { max-width: 1370px; margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(25px, 4vw, 64px); }
.highlight { position: relative; display: grid; grid-template-columns: 48px 1fr; gap: 16px; min-width: 0; }
.highlight:not(:last-child)::after { content: ""; position: absolute; top: 3px; right: calc(clamp(25px, 4vw, 64px) / -2); width: 1px; height: 58px; background: var(--line); }
.highlight-icon { color: var(--wine); padding-top: 1px; }
.highlight h2 { margin: 0 0 8px; font-size: 12px; line-height: 1.3; }
.highlight p { margin: 0; color: #4e3a3e; font-family: Georgia, serif; font-size: 11px; line-height: 1.55; }

.testimonial { color: white; background: linear-gradient(108deg, #5e1227 0%, #791b31 45%, #4b0e20 100%); }
.testimonial-inner { position: relative; max-width: 1390px; min-height: 260px; margin: 0 auto; padding: 18px clamp(27px, 5.5vw, 84px) 6px; display: grid; grid-template-columns: minmax(300px, 680px) minmax(150px, 1fr) minmax(260px, 360px); align-items: center; gap: 25px; }
.testimonial blockquote { margin: 0; font-family: Georgia, serif; font-size: clamp(14px, 1.2vw, 17px); line-height: 1.6; }
.testimonial-copy { min-width: 0; }
.testimonial-credit { display: flex; flex-direction: column; gap: 5px; margin-top: 10px; font-family: Georgia, serif; font-size: 12px; }
.testimonial-credit span:last-child { font-style: italic; opacity: 0.88; }
.testimonial-side { grid-column: 3; grid-row: 1; align-self: stretch; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; }
.footer-contact { display: flex; flex-direction: column; align-items: center; gap: 6px; color: rgba(255, 255, 255, 0.75); font-size: 0.8rem; line-height: 1.5; text-align: center; }
.footer-contact strong { color: white; font-size: 0.95rem; }
.footer-contact a { color: inherit; }
.footer-copyright { margin: 0 auto 6px; color: rgba(255, 255, 255, 0.55); font-size: 0.7rem; line-height: 1.5; text-align: center; }
.social-links { justify-self: center; width: 160px; table-layout: fixed; transform: translateY(-8px); }
.social-links td { padding: 2px; }
.social-links img { display: block; width: 28px; height: auto; }
.footer-social-row { display: flex; align-items: center; gap: 12px; }
.testimonial-inner > .footer-copyright { position: absolute; left: 50%; bottom: 18px; margin: 0; transform: translateX(-50%); white-space: nowrap; }

@media (max-width: 1120px) {
  .site-header { gap: 24px; }
  .nav-links { gap: 15px; }
  .nav-link { font-size: 10px; }
  .button-nav { min-width: 125px; }
  .hero-note { left: auto; right: 31%; }
  .highlights-grid { grid-template-columns: repeat(2, 1fr); }
  .highlight:nth-child(2)::after { display: none; }
}

@media (max-width: 900px) {
  .site-header { height: 74px; padding-inline: 24px; }
  .menu-toggle { display: grid; place-items: center; }
  .primary-nav {
    position: fixed;
    top: 74px;
    right: 0;
    bottom: 0;
    width: min(390px, 100%);
    padding: 25px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 22px;
    background: #fffdfa;
    box-shadow: -18px 20px 40px rgba(55, 30, 35, 0.16);
    transform: translateX(103%);
    transition: transform 220ms ease;
    overflow-y: auto;
  }
  .primary-nav.is-open { transform: translateX(0); }
  .nav-links { align-items: stretch; flex-direction: column; gap: 0; }
  .nav-item { border-bottom: 1px solid var(--line); }
  .nav-link { width: 100%; padding: 16px 2px; justify-content: space-between; font-size: 14px; }
  .nav-link::after { display: none; }
  .dropdown { position: static; display: none; visibility: visible; opacity: 1; min-width: 0; padding: 0 0 10px; border: 0; box-shadow: none; transform: none; }
  .dropdown.is-open { display: block; }
  .dropdown a { padding-left: 15px; }
  .button-nav { min-height: 46px; }

  .hero { min-height: 660px; }
  .hero-photo { background-position: 64% center; }
  .hero-wash { background: linear-gradient(90deg, rgba(252, 249, 243, 0.98) 0%, rgba(252, 249, 243, 0.88) 45%, rgba(252, 249, 243, 0.16) 82%); }
  .hero-inner { padding-top: 75px; }
  .hero-copy { width: 63%; transform: none; }
  .hero-note { right: 22px; min-width: 245px; }

  .testimonial-inner { min-height: 0; grid-template-columns: minmax(0, 1fr) auto; }
  .testimonial-side { grid-column: 2; }
  .testimonial-inner > .footer-copyright { position: static; grid-column: 1 / -1; grid-row: auto; justify-self: center; transform: none; margin-top: 12px; }
  .testimonial-credit { grid-column: 2; justify-self: start; padding: 0; }
}

@media (max-width: 640px) {
  .brand-tagline { font-size: 6.5px; }
  .hero { min-height: 745px; align-items: stretch; }
  .hero-photo { inset: auto 0 0; height: 48%; background-position: 64% center; }
  .hero-wash {
    background:
      linear-gradient(180deg, #fbf8f2 0%, #fbf8f2 47%, rgba(251, 248, 242, 0.93) 55%, rgba(251, 248, 242, 0.02) 78%),
      linear-gradient(90deg, rgba(251, 248, 242, 0.35), transparent);
  }
  .hero-inner { padding: 47px 23px 0; }
  .hero-copy { width: 100%; }
  .eyebrow { font-size: 10px; margin-bottom: 14px; }
  .hero h1 { font-size: clamp(40px, 12vw, 58px); }
  .hero-description { max-width: 470px; margin: 18px 0 21px; font-size: 14px; line-height: 1.55; }
  .hero-actions { gap: 18px; flex-wrap: wrap; }
  .hero-note { display: none; }

  .highlights { padding: 35px 23px; }
  .highlights-grid { grid-template-columns: 1fr; gap: 28px; }
  .highlight { grid-template-columns: 46px 1fr; }
  .highlight::after { display: none !important; }
  .highlight h2 { font-size: 13px; }
  .highlight p { font-size: 12px; }

  .testimonial-inner { padding: 33px 23px 18px; grid-template-columns: 1fr; gap: 12px; }
  .testimonial-side { grid-column: 1; grid-row: auto; }
  .testimonial-credit { grid-column: 1; margin-top: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}

.employee-profile-hero h1 em {
  display: block;
  width: calc(100vw - clamp(42px, 5vw, 96px));
  max-width: 1320px;
  font-size: clamp(22px, 3vw, 44px);
  line-height: 1.2;
  white-space: nowrap;
}

@media (min-width: 701px) {
  .training-section:nth-of-type(4) .training-section-head p {
    flex: 0 0 calc(430px + 1.5in);
    max-width: calc(430px + 1.5in) !important;
  }
}

.training-individualized-note {
  margin-top: 30px;
  padding: 24px;
  background: #f1e8dc;
  border: 1px solid rgba(78, 33, 42, 0.16);
}

.training-individualized-note p {
  margin: 0;
  color: #4e3a3e;
  font-family: Georgia, serif;
  font-size: 17px;
  line-height: 1.75;
}

.departments-people-heading > div > p:last-child {
  max-width: 610px !important;
}

@media (min-width: 901px) {
  .departments-people-video {
    transform: translate(0.5in, -0.25in) !important;
  }
}

@media (min-width: 1600px) {
  .site-header > p > img[src="images/gemcor_logo.png"] {
    width: 225px !important;
    height: auto !important;
  }
}

.departments-page .employee-photo {
  width: 115px !important;
  height: 150px !important;
  object-fit: cover !important;
  object-position: center !important;
  border: 2px solid #000 !important;
  border-radius: 24px !important;
}

.support-page .support-main {
  padding: 60px clamp(24px, 8vw, 120px) 52px !important;
}

