/* ------------------------------------------------------------
   Fonts (Gotham, same family as dypatil.edu)
------------------------------------------------------------ */
@font-face {
  font-family: 'Gotham';
  src: url('../fonts/Gotham-Thin.woff2') format('woff2'),
    url('../fonts/Gotham-Thin.woff') format('woff');
  font-weight: 100;
  font-display: swap;
}
@font-face {
  font-family: 'Gotham';
  src: url('../fonts/Gotham-Light.woff2') format('woff2'),
    url('../fonts/Gotham-Light.woff') format('woff');
  font-weight: 300;
  font-display: swap;
}
@font-face {
  font-family: 'Gotham';
  src: url('../fonts/Gotham-Book.woff2') format('woff2'),
    url('../fonts/Gotham-Book.woff') format('woff');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Gotham-Medium';
  src: url('../fonts/Gotham-Medium.woff2') format('woff2'),
    url('../fonts/Gotham-Medium.woff') format('woff');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Gotham';
  src: url('../fonts/Gotham-Bold.woff2') format('woff2'),
    url('../fonts/Gotham-Bold.woff') format('woff');
  font-weight: 700;
  font-display: swap;
}

/* ------------------------------------------------------------
   Design tokens (from dypatil.edu tailwind config)
------------------------------------------------------------ */
:root {
  --primary: #9f1c33;
  --primary-hover: hsl(353, 52%, 49%); /* tints-800 */
  --shades-800: #140608;
  --tints-20: hsl(0, 54%, 97%);
  --tints-40: hsl(351, 50%, 95%);
  --tints-50: hsl(356, 50%, 94%);
  --tints-100: hsl(354, 51%, 93%);
  --card: #fbf3f3;
  --card-hover: #f9ecee;
  --neutral-dark: #58595b;
  --divider: #eaeaea;
  --text: #000;
  --white: #fff;
  --header-h: 80px;
  --gutter: 150px;
  --font: 'Gotham', ui-sans-serif, system-ui, sans-serif;
  --font-medium: 'Gotham-Medium', ui-sans-serif, system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: inherit;
  text-decoration: none;
}
h1,
h2,
h3,
p {
  margin: 0;
}
button {
  font: inherit;
  cursor: pointer;
}

.container {
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* ------------------------------------------------------------
   Buttons (btn-primary / btn-outline / btn-tertiary)
------------------------------------------------------------ */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 24px;
  font-family: var(--font-medium);
  font-weight: 600;
  line-height: 20px;
  border: 0;
  overflow: hidden;
  z-index: 0;
  transition: color 0.3s;
}
/* hover.css sweep-to-right */
.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 0.3s ease-out;
}
.btn:hover::before,
.btn:focus-visible::before {
  transform: scaleX(1);
}
.btn-primary {
  background: var(--primary);
  color: var(--white);
  box-shadow: 0 0 0 2px var(--primary);
}
.btn-primary::before {
  background: var(--primary-hover);
}
.btn-outline {
  background: transparent;
  color: var(--white);
  box-shadow: 0 0 0 2px var(--white);
}
.btn-outline::before {
  background: rgba(255, 255, 255, 0.1);
}
.btn-tertiary {
  background: none;
  border: 0;
  padding: 0;
  color: var(--primary);
  font-family: var(--font-medium);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn-tertiary .arrow {
  transition: transform 0.3s;
}
.btn-tertiary:hover .arrow {
  transform: translateX(4px);
}

/* ------------------------------------------------------------
   Header
------------------------------------------------------------ */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  box-shadow: 0 1px 0 var(--divider);
  transition: box-shadow 0.2s;
}
.header.is-scrolled {
  box-shadow: 0 4px 16px rgba(20, 6, 8, 0.08);
}
.header__inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.header__logo img {
  height: 60px;
  width: auto;
}
.nav {
  display: flex;
  align-items: stretch;
  gap: 24px;
  height: 100%;
}
.nav__link {
  display: flex;
  align-items: center;
  font-size: 0.85rem;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.nav__link:hover,
.nav__link.is-active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}
.header__toggle {
  display: none;
  width: 40px;
  height: 40px;
  background: none;
  border: 0;
  padding: 8px;
  flex-direction: column;
  justify-content: space-between;
}
.header__toggle span {
  display: block;
  height: 2px;
  background: var(--shades-800);
  transition: transform 0.2s, opacity 0.2s;
}
.header__toggle[aria-expanded='true'] span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}
.header__toggle[aria-expanded='true'] span:nth-child(2) {
  opacity: 0;
}
.header__toggle[aria-expanded='true'] span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/* ------------------------------------------------------------
   Hero (gradients from _hero.css)
------------------------------------------------------------ */
.hero,
.cta {
  position: relative;
  overflow: hidden;
  background: var(--shades-800);
  color: var(--white);
}
.hero {
  min-height: calc(100vh - var(--header-h));
  min-height: max(568px, calc(100svh - var(--header-h)));
  display: flex;
  align-items: center;
}
.bg-gradient-2 {
  position: absolute;
  width: 793px;
  height: 405px;
  left: -159px;
  top: 470px;
  background: var(--primary);
  filter: blur(100px);
  z-index: 4;
}
.bg-gradient-3 {
  position: absolute;
  width: 929px;
  height: 474px;
  left: -30%;
  top: -44px;
  background: var(--primary);
  filter: blur(115px);
  transform: rotate(40deg);
  opacity: 0.7;
  z-index: 3;
}
.bg-gradient-4 {
  position: absolute;
  width: 654px;
  height: 398px;
  left: 10%;
  bottom: 44px;
  background: var(--shades-800);
  filter: blur(102px);
  z-index: 6;
}
.hero__content {
  position: relative;
  z-index: 10;
  padding-top: 80px;
  padding-bottom: 80px;
}
.hero__eyebrow {
  font-family: var(--font-medium);
  font-weight: 800;
  margin-bottom: 40px;
}
.hero__title {
  font-size: 3.75rem;
  line-height: 1.1;
  font-weight: 100;
  margin-bottom: 24px;
}
.hero__title strong {
  font-weight: 700;
}
.hero__text {
  max-width: 65ch;
  font-weight: 300;
  line-height: 1.6;
}
.hero__actions {
  margin-top: 40px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

/* ------------------------------------------------------------
   Sections
------------------------------------------------------------ */
.section {
  padding: 80px 0;
}
.section--tint {
  background: var(--tints-20);
}
.heading {
  font-size: 2.25rem;
  font-weight: 300;
  line-height: 48px;
}
.heading strong {
  font-weight: 600;
}
.heading--light {
  color: var(--white);
}
.lead {
  font-size: 2.25rem;
  font-weight: 300;
  line-height: 48px;
  margin-bottom: 16px;
}
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
.split p:not(.lead) {
  line-height: 26px;
}
.section__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

/* Stats */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 56px;
}
.stat {
  background: var(--tints-20);
  padding: 20px;
  transition: background 0.25s;
}
.stat:hover {
  background: var(--tints-40);
}
.stat__count {
  font-size: 3.75rem;
  font-weight: 300;
  line-height: 1.1;
  margin-bottom: 20px;
  transition: font-family 0.75s;
}
.stat:hover .stat__count {
  font-family: var(--font-medium);
}

/* Jobs */
.jobs {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
.job {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border-top: 4px solid var(--primary);
  padding: 24px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  transition: background 0.2s, box-shadow 0.2s;
}
.job:hover {
  background: var(--card-hover);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}
.job__tag {
  align-self: flex-start;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-family: var(--font-medium);
  color: var(--primary);
  background: var(--tints-50);
  padding: 4px 12px;
  margin-bottom: 16px;
}
.job h3 {
  font-family: var(--font-medium);
  font-weight: 400;
  font-size: 1.25rem;
  line-height: 28px;
  margin-bottom: 8px;
}
.job__school {
  font-size: 0.875rem;
  color: var(--neutral-dark);
  margin-bottom: 16px;
}
.job__desc {
  line-height: 26px;
  margin-bottom: 24px;
  flex: 1;
}
.job__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.875rem;
  color: var(--neutral-dark);
  margin-bottom: 24px;
}
.job__meta b {
  font-family: var(--font-medium);
  font-weight: 400;
  color: var(--text);
}
.job__docs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.job__doc {
  justify-content: space-between;
  text-align: left;
  padding: 12px 20px;
}
.job__doc-type {
  flex-shrink: 0;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  opacity: 0.8;
}

/* PDF viewer */
.viewer {
  width: min(960px, calc(100% - 32px));
  max-width: none;
  height: calc(100vh - 48px);
  max-height: none;
  padding: 0;
  border: 0;
  border-top: 4px solid var(--primary);
  background: var(--white);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4);
}
.viewer[open] {
  display: flex;
  flex-direction: column;
}
.viewer::backdrop {
  background: rgba(20, 6, 8, 0.75);
}
.viewer__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 24px;
  border-bottom: 1px solid var(--divider);
}
.viewer__title {
  font-family: var(--font-medium);
  font-weight: 400;
  font-size: 1.125rem;
  line-height: 1.4;
}
.viewer__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.viewer__close {
  width: 40px;
  height: 40px;
  border: 0;
  background: none;
  font-size: 2rem;
  line-height: 1;
  color: var(--neutral-dark);
  transition: color 0.2s;
}
.viewer__close:hover {
  color: var(--primary);
}
.viewer__body {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  background: var(--tints-20);
}
.viewer__page {
  display: block;
  width: 100%;
  height: auto;
  margin: 0 auto 16px;
  background: var(--white);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}
.viewer__status {
  padding: 48px 0;
  text-align: center;
  color: var(--neutral-dark);
}
.viewer__frame {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Perks */
.perks {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
  margin-top: 40px;
}
.perk {
  background: var(--card);
  padding: 24px;
  transition: background 0.2s;
}
.perk:hover {
  background: var(--card-hover);
}
.perk__num {
  font-size: 3rem;
  font-weight: 100;
  color: var(--primary);
  margin-bottom: 16px;
  line-height: 1;
}
.perk h3,
.step h3 {
  font-family: var(--font-medium);
  font-weight: 400;
  font-size: 1.25rem;
  margin-bottom: 12px;
}
.perk p {
  line-height: 26px;
}

/* Steps */
.steps {
  list-style: none;
  padding: 0;
  margin: 40px 0 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.step {
  background: var(--white);
  padding: 24px;
}
.step__num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--primary);
  color: var(--white);
  font-family: var(--font-medium);
  margin-bottom: 16px;
}
.step h3 {
  font-size: 1.125rem;
  margin-bottom: 8px;
}
.step p {
  font-size: 0.875rem;
  line-height: 26px;
}

/* FAQs */
.faqs {
  display: flex;
  flex-direction: column;
}
.faq {
  border-bottom: 1px solid var(--divider);
}
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 40px 20px 0;
  font-family: var(--font-medium);
  position: relative;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  color: var(--primary);
  font-family: var(--font);
  font-weight: 300;
}
.faq[open] summary::after {
  content: '\2212';
}
.faq[open] summary {
  color: var(--primary);
}
.faq p {
  padding-bottom: 20px;
  line-height: 26px;
}

/* CTA */
.cta__inner {
  position: relative;
  z-index: 10;
  padding-top: 64px;
  padding-bottom: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.cta p {
  margin-top: 16px;
  max-width: 65ch;
  font-weight: 300;
  line-height: 26px;
}
.cta .btn {
  white-space: nowrap;
  flex-shrink: 0;
}

/* ------------------------------------------------------------
   Footer (from dypu-footer)
------------------------------------------------------------ */
.footer__strip {
  background: var(--primary);
  color: var(--white);
  padding: 40px 0;
}
.footer__strip-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-family: var(--font-medium);
}
.footer__strip-inner p:first-child {
  font-size: 1.25rem;
}
.footer__main {
  background: var(--shades-800);
  color: var(--white);
  padding-top: 64px;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1.2fr 1fr;
  gap: 36px;
  padding-bottom: 48px;
}
.footer__logo {
  height: 96px;
  width: auto;
  padding: 8px 12px;
  background: var(--white);
  border-radius: 8px;
}
.footer__head {
  font-family: var(--font-medium);
  font-weight: 400;
  font-size: 1.25rem;
  line-height: 26px;
  margin-bottom: 24px;
}
.footer__links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}
.footer__links a,
.footer__grid p {
  opacity: 0.5;
  line-height: 18px;
  transition: opacity 0.2s, color 0.2s;
}
.footer__grid p {
  line-height: 24px;
  padding-bottom: 12px;
}
.footer__links a:hover {
  opacity: 1;
  color: var(--primary);
}
.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.23);
  padding-top: 24px;
  padding-bottom: 24px;
  font-size: 0.875rem;
  opacity: 0.6;
}

/* ------------------------------------------------------------
   Responsive
------------------------------------------------------------ */
@media (max-width: 1280px) {
  :root {
    --gutter: 50px;
  }
  .nav {
    gap: 16px;
  }
}

@media (max-width: 1023px) {
  :root {
    --header-h: 64px;
    --gutter: 20px;
  }
  .header__logo img {
    height: 48px;
  }
  .header__toggle {
    display: flex;
  }
  .nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    height: auto;
    flex-direction: column;
    gap: 0;
    background: var(--white);
    padding: 8px var(--gutter) 24px;
    box-shadow: 0 12px 24px rgba(20, 6, 8, 0.12);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
  }
  .nav.is-open {
    transform: none;
    opacity: 1;
    visibility: visible;
  }
  .nav__link {
    padding: 14px 0;
    font-size: 1rem;
    border-bottom: 1px solid var(--divider);
  }
  .nav__link:hover,
  .nav__link.is-active {
    border-bottom-color: var(--divider);
  }
  .hero__title {
    font-size: 2.25rem;
    letter-spacing: 0.05em;
  }
  .hero__title strong {
    font-weight: 600;
  }
  .hero__text {
    font-size: 0.9rem;
  }
  .hero__actions .btn {
    width: 100%;
  }
  .bg-gradient-2 {
    width: 504px;
    height: 258px;
    left: -227px;
    top: 236px;
  }
  .bg-gradient-3 {
    width: 590px;
    height: 301px;
    left: -100%;
    top: 0;
  }
  .bg-gradient-4 {
    width: 416px;
    height: 253px;
    left: 148px;
    top: 355px;
  }
  .section {
    padding: 56px 0;
  }
  .split {
    grid-template-columns: 1fr;
  }
  .lead {
    font-size: 1.875rem;
    line-height: 40px;
  }
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .stat__count {
    font-size: 2.5rem;
  }
  .perks,
  .steps {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  .cta__inner {
    flex-direction: column;
    align-items: flex-start;
  }
  .cta .btn {
    width: 100%;
  }
  .footer__grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .job__docs,
  .perks,
  .steps,
  .stats,
  .footer__grid {
    grid-template-columns: 1fr;
  }
  .footer__strip-inner {
    flex-direction: column;
    align-items: flex-start;
  }
  .viewer {
    width: 100%;
    height: 100%;
  }
  .viewer__bar {
    flex-wrap: wrap;
    padding: 12px 16px;
  }
  .viewer__title {
    flex: 1;
    font-size: 1rem;
  }
  .viewer__actions {
    order: 3;
    width: 100%;
  }
  .viewer__actions .btn {
    flex: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition: none !important;
  }
}
