/*
  EnableTech static website
  Pages:
  - index.html: homepage/about page
  - projects.html: projects page

  Quick edits:
  - Replace images/enabletech-demo-day-sp26.jpg to change the banner photo.
  - Replace images/enabletech-logo.png to change the header logo.
  - Edit the text directly in index.html and projects.html.
*/

:root {
  --berkeley-blue: #002676;
  --enable-blue: #0c5d92;
  --california-gold: #FDB515;
  --blue-light: #edf5fb;
  --gold-light: #fff4cf;
  --text: #202124;
  --muted: #5f6368;
  --border: #d9dee8;
  --background: #ffffff;
  --page-background: #f8f9fb;
  --max-width: 1080px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--page-background);
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.65;
  font-size: 17px;
}

a {
  color: var(--enable-blue);
  font-weight: 700;
}

.topbar {
  height: 8px;
  background: linear-gradient(90deg, var(--enable-blue), var(--california-gold));
}

.site-header {
  background: var(--background);
  border-bottom: 1px solid var(--border);
}

.nav {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--enable-blue);
  text-decoration: none;
}

.logo {
  width: 54px;
  height: 54px;
  object-fit: contain;
  flex: 0 0 auto;
}

.site-title {
  font-size: 2rem;
  line-height: 1;
  font-weight: bold;
  letter-spacing: -0.03em;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
}

.nav-links a {
  color: var(--text);
  text-decoration: none;
  border-bottom: 2px solid transparent;
}

.nav-links a:hover {
  color: var(--enable-blue);
  border-bottom-color: var(--california-gold);
}

.hero-photo {
  position: relative;
  max-width: 1180px;
  margin: 30px auto 0;
  padding: 0 20px;
}

.hero-photo img {
  display: block;
  width: 100%;
  height: clamp(380px, 56vw, 640px);
  object-fit: cover;
  object-position: center 58%;
  border-radius: 8px;
  border: 1px solid var(--border);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.12);
}

.hero-photo::after {
  content: "";
  position: absolute;
  inset: 0 20px;
  border-radius: 8px;
  background: linear-gradient(90deg, rgba(0, 38, 118, 0.68), rgba(0, 38, 118, 0.22) 48%, rgba(0, 0, 0, 0.05));
  pointer-events: none;
}

.hero-caption {
  position: absolute;
  left: clamp(38px, 7vw, 85px);
  top: clamp(42px, 9vw, 105px);
  max-width: 540px;
  color: #ffffff;
  z-index: 1;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.38);
}

.hero-caption h1 {
  margin: 0;
  font-size: clamp(3rem, 8vw, 5.8rem);
  line-height: 0.95;
  letter-spacing: -0.06em;
}

.hero-caption p {
  margin: 12px 0 0;
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(1.15rem, 2.4vw, 1.7rem);
  font-weight: 800;
}

.wrapper {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

.intro {
  padding-top: 44px;
  padding-bottom: 50px;
}

.page {
  padding-top: 48px;
  padding-bottom: 60px;
  min-height: 58vh;
}

.page-title {
  padding-bottom: 22px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 34px;
}

.page-title h1,
.content-section h2,
.announcement-card h2 {
  color: var(--enable-blue);
  line-height: 1.15;
}

.page-title h1 {
  margin: 0;
  font-size: clamp(2.2rem, 6vw, 4rem);
  letter-spacing: -0.04em;
}

.content-section {
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 30px;
  margin: 26px 0;
}

.content-section h2 {
  margin-top: 0;
  font-size: 2rem;
}

.content-section h3 {
  margin-bottom: 6px;
  color: var(--text);
}

.announcement-card {
  background: linear-gradient(135deg, var(--gold-light), #ffffff);
  border: 2px solid var(--california-gold);
  border-radius: 8px;
  padding: 28px 30px;
  margin-bottom: 26px;
}

.announcement-label {
  margin: 0 0 8px;
  color: var(--berkeley-blue);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.announcement-card h2 {
  margin: 0 0 8px;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
}

.announcement-card p {
  margin-bottom: 0;
  color: var(--text);
}

.get-involved {
  border-left: 6px solid var(--enable-blue);
}

.three-column {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.three-column article {
  background: var(--blue-light);
  border: 1px solid #d8e4ff;
  padding: 20px;
  border-radius: 8px;
}

.work-progress {
  max-width: 760px;
}

.footer {
  margin-top: 50px;
  background: #111827;
  color: #e5e7eb;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.9rem;
  padding: 28px 0;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.footer p {
  margin: 0;
}

.footer a {
  color: var(--california-gold);
  font-weight: 700;
}

@media (max-width: 760px) {
  body {
    font-size: 16px;
  }

  .nav {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }

  .site-title {
    font-size: 1.8rem;
  }

  .logo {
    width: 48px;
    height: 48px;
  }

  .hero-photo {
    margin-top: 18px;
    padding: 0;
  }

  .hero-photo img,
  .hero-photo::after {
    border-radius: 0;
    border-left: 0;
    border-right: 0;
  }

  .hero-photo img {
    height: 430px;
    object-position: center 60%;
  }

  .hero-photo::after {
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 38, 118, 0.76), rgba(0, 38, 118, 0.25) 58%, rgba(0, 0, 0, 0.10));
  }

  .hero-caption {
    left: 24px;
    right: 24px;
    top: 38px;
  }

  .three-column {
    grid-template-columns: 1fr;
  }

  .content-section,
  .announcement-card {
    padding: 22px;
  }

  .footer-inner {
    display: block;
  }

  .footer p + p {
    margin-top: 8px;
  }
}
