/* =========================================================
   Phi Chi Theta | UW–Madison Iota Chapter
   Shared styles for index, brotherhood, professionalism, apply
   ========================================================= */

:root {
  --ink: #000;
  --muted: #7a7a7a;
  --white: #fff;
  --nav-gradient: linear-gradient(90deg, #efc874 0%, #e2ad7c 50%, #cf9a80 100%);
  --button: #f1d9c8;
  --page-pad: clamp(20px, 4vw, 56px);
  --font:
    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
    Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  overflow-x: hidden;
}

body {
  background: var(--white);
  color: var(--ink);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

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

a {
  color: inherit;
  text-decoration: none;
}

/* ---------- NAV ---------- */
.nav {
  width: 100%;
  min-height: 52px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 64px;
  padding: env(safe-area-inset-top, 0px)
    max(12px, env(safe-area-inset-right, 0px)) 0
    max(12px, env(safe-area-inset-left, 0px));
  background: var(--nav-gradient);
}

.nav a {
  color: var(--white);
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 6px 0;
  border-bottom: 1px solid transparent;
  transition: opacity 0.2s;
}

.nav a:hover {
  opacity: 0.8;
}

.nav a[aria-current="page"] {
  border-bottom-color: rgba(255, 255, 255, 0.8);
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
}

/* ---------- BACKGROUNDS ---------- */
/* lightened purple gradient */
.gradient-bg {
  background:
    linear-gradient(rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.3)),
    url("assets/gradient.jpg") center / cover no-repeat;
}

/* Bascom Hall photo washed with the purple gradient */
.photo-hero {
  position: relative;
  isolation: isolate;
  color: var(--white);
  text-align: center;
  background: #8e5fb3 url("assets/bascom.jpg") center 40% / cover no-repeat;
}

.photo-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.3)),
    url("assets/gradient.jpg") center / cover no-repeat;
  opacity: 0.78;
}

/* ---------- SHARED TYPE ---------- */
.section-title {
  margin: 0;
  font-size: clamp(26px, 3.2vw, 40px);
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1.2;
  text-transform: uppercase;
}

.lead {
  margin: 12px auto 0;
  max-width: 34ch;
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.5;
}

.signature {
  margin: 28px 0 0;
  font-size: 15px;
  line-height: 1.6;
}

.signature span {
  display: block;
  color: var(--muted);
}

.signature-mark {
  width: 110px;
  margin-top: 8px;
}

/* ---------- HOME: HERO ---------- */
.home-hero {
  min-height: min(750px, calc(100svh - 52px));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 56px var(--page-pad) 72px;
}

.home-hero .crest {
  width: clamp(150px, 18vw, 228px);
  height: auto;
  margin: 0 auto 40px;
}

.home-hero h1 {
  margin: 0 0 20px;
  font-size: clamp(38px, 4.6vw, 58px);
  font-weight: 300;
  letter-spacing: 0.02em;
}

.home-hero .chapter {
  margin: 0;
  font-size: clamp(18px, 2.2vw, 28px);
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: 0.02em;
}

/* ---------- HOME: ABOUT ---------- */
.about {
  display: grid;
  grid-template-columns: minmax(300px, 34%) 1fr;
  gap: clamp(28px, 4vw, 56px);
  padding: 28px var(--page-pad) 56px;
}

.about-photo {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  max-height: 560px;
  object-fit: cover;
  object-position: center top;
}

.about-copy h2 {
  margin: 0 0 20px;
  font-size: clamp(26px, 2.6vw, 34px);
  font-weight: 500;
  letter-spacing: 0.01em;
}

.about-copy p {
  max-width: 68ch;
  margin: 0 0 28px;
  font-size: clamp(16px, 1.45vw, 19px);
  line-height: 1.75;
}

/* ---------- PROFESSIONALISM ---------- */
.companies {
  padding: 48px var(--page-pad) 64px;
  color: var(--white);
  text-align: center;
}

.logo-grid {
  max-width: 1200px;
  margin: 48px auto 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: center;
  justify-items: center;
  gap: 48px 40px;
}

.logo-grid img {
  width: auto;
  max-width: 100%;
  max-height: 120px;
  object-fit: contain;
}

.intro {
  padding: 24px var(--page-pad) 28px;
}

.intro p {
  margin: 0;
  font-size: clamp(16px, 1.5vw, 20px);
  line-height: 1.45;
}

.band {
  height: 40px;
}

/* ---------- APPLY: RECRUITMENT PROCESS ---------- */
.process {
  padding: 48px var(--page-pad) 72px;
}

.process .lead {
  max-width: 62ch;
}

.steps {
  list-style: none;
  margin: 56px auto 0;
  padding: 0;
  display: grid;
  gap: 14px;
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.45;
}

.steps strong {
  display: block;
  font-weight: 600;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 48px;
  padding: 18px 40px;
  min-height: 48px;
  border-radius: 12px;
  background: var(--button);
  color: var(--ink);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: background 0.2s;
}

.btn:hover {
  background: #f7e6da;
}

/* ---------- MESSAGE SECTIONS (recruitment + president) ---------- */
.message {
  display: grid;
  gap: clamp(28px, 4vw, 56px);
  padding: 48px var(--page-pad) 56px;
  align-items: start;
}

.message h2 {
  margin: 0 0 18px;
  font-size: clamp(24px, 2.4vw, 32px);
  font-weight: 400;
  line-height: 1.2;
  text-transform: uppercase;
}

.message p {
  margin: 0 0 18px;
  max-width: 62ch;
  font-size: clamp(16px, 1.35vw, 18px);
  line-height: 1.75;
}

.recruit-message {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.photo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.photo-grid img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.president {
  padding: 48px var(--page-pad) 64px;
}

.president > h2 {
  margin: 0 0 40px;
  text-align: center;
  font-size: clamp(22px, 2.4vw, 32px);
  font-weight: 400;
  line-height: 1.25;
  text-transform: uppercase;
}

.president .message {
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  padding: 0;
}

.president .message p {
  line-height: 1.6;
}

.leaders-photo {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

/* ---------- BROTHERHOOD: TEAM GRID ---------- */
.team {
  padding: 48px var(--page-pad) 32px;
}

.team-grid {
  --cols: 5;
  --gap: clamp(16px, 2.2vw, 32px);
  max-width: 1180px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 32px var(--gap);
}

.member {
  flex: 0 0 calc((100% - (var(--cols) - 1) * var(--gap)) / var(--cols));
  text-align: center;
  color: var(--white);
}

.member img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center top;
  background: rgba(255, 255, 255, 0.2);
}

.member h3 {
  margin: 12px 0 2px;
  font-size: clamp(14px, 1.3vw, 17px);
  font-weight: 500;
  line-height: 1.3;
}

.member p {
  margin: 0;
  font-size: clamp(12px, 1.1vw, 15px);
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.78);
}

/* ---------- CONNECT WITH US ---------- */
.connect {
  display: flex;
  justify-content: center;
  padding: 24px var(--page-pad) calc(40px + env(safe-area-inset-bottom, 0px));
}

.connect-map {
  position: relative;
  width: min(430px, 92%);
  aspect-ratio: 430 / 250;
}

.connect-label {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-size: clamp(15px, 1.5vw, 19px);
  white-space: nowrap;
  z-index: 2;
}

.connect-map a {
  position: absolute;
  display: block;
}

.connect-map .instagram {
  width: 42%;
  right: 3%;
  top: 0;
}

.connect-map .linkedin {
  width: 34%;
  left: 5%;
  bottom: 0;
}

.connect-map img {
  width: 100%;
  height: auto;
}

/* the icon PNGs have white backgrounds; multiply drops them on color */
.on-color .connect-map img {
  mix-blend-mode: multiply;
}

.about-copy .connect {
  padding: 8px 0 0;
}

/* ---------- TABLET ---------- */
@media (max-width: 900px) {
  .nav {
    gap: 6px 28px;
  }
  .nav a {
    font-size: 13px;
  }

  .about,
  .recruit-message,
  .president .message {
    grid-template-columns: 1fr;
  }

  .about-photo {
    max-height: 640px;
  }

  .logo-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px 32px;
  }
  .logo-grid img {
    max-height: 84px;
  }

  .team-grid {
    --cols: 3;
  }

  .leaders-photo {
    max-width: 520px;
    margin: 0 auto;
  }
}

/* ---------- PHONE ---------- */
@media (max-width: 560px) {
  .nav {
    min-height: 46px;
    gap: 4px 16px;
    padding-top: calc(6px + env(safe-area-inset-top, 0px));
    padding-bottom: 6px;
  }
  .nav a {
    font-size: 11px;
  }

  .home-hero {
    min-height: calc(100svh - 46px);
    max-height: 760px;
    padding-top: 40px;
    padding-bottom: 56px;
  }
  .home-hero .crest {
    margin-bottom: 30px;
  }

  .companies {
    padding-top: 36px;
    padding-bottom: 44px;
  }
  .logo-grid {
    margin-top: 36px;
    gap: 32px 20px;
  }
  .logo-grid img {
    max-height: 64px;
  }

  .process {
    padding-top: 40px;
    padding-bottom: 56px;
  }
  .steps {
    margin-top: 36px;
    gap: 16px;
  }
  .btn {
    margin-top: 36px;
    padding: 16px 32px;
  }

  .message,
  .president {
    padding-top: 36px;
  }

  .photo-grid {
    gap: 10px;
  }

  .president > h2 {
    margin-bottom: 28px;
  }

  .team-grid {
    --cols: 2;
    row-gap: 28px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}
