/* Santiago Creek Dam Improvement Project: static copy of the current site.
   Measurements were taken from the live page at 1920px wide. */

/* The live site uses Proxima Nova, which is a licensed font. To match exactly,
   put IRWD's Proxima Nova files in a fonts/ folder and uncomment this block.
   Until then the page falls back to Figtree, which is close in shape.

@font-face { font-family: "Proxima Nova"; font-weight: 400; font-style: normal;
  src: url("fonts/ProximaNova-Regular.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Proxima Nova"; font-weight: 400; font-style: italic;
  src: url("fonts/ProximaNova-RegularIt.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Proxima Nova"; font-weight: 700; font-style: normal;
  src: url("fonts/ProximaNova-Bold.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Proxima Nova"; font-weight: 800; font-style: normal;
  src: url("fonts/ProximaNova-Extrabld.woff2") format("woff2"); font-display: swap; }
*/

:root {
  --navy: #0e3f6d;
  --title-blue: #257acb;
  --link: #0088cc;
  --panel: #e4eef7;
  --text: #333333;
  --font-proxima: "Proxima Nova", "proxima-nova", Figtree, Arial, Helvetica, sans-serif;
  --font-base: Arial, Helvetica, sans-serif;
}

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

body {
  margin: 0;
  background: #ffffff;
  color: var(--text);
  font-family: var(--font-base);
  font-size: 16px;
  line-height: 1.5;
}

img { max-width: 100%; height: auto; vertical-align: middle; border: 0; }
img.full { display: block; width: 100%; }

a { color: var(--link); text-decoration: none; }
a:hover, a:focus { text-decoration: underline; }
a:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; }

.page {
  max-width: 1140px;
  margin: 0 auto;
  padding: 39px 0 60px;
}

@media (max-width: 1170px) {
  .page { padding-left: 15px; padding-right: 15px; }
}

/* Text inside the page */
.page p,
.page li {
  font-family: var(--font-proxima);
  font-size: 13px;
  line-height: 1.6;
}

.page p { margin: 0 0 8px; }

.page-title {
  margin: 0 0 12px;
  color: var(--title-blue);
  font-family: var(--font-proxima);
  font-size: 30px;
  font-weight: 800;
  line-height: 36px;
  text-align: center;
}

.page p.tagline {
  margin: 0 0 55px;
  color: #000000;
  font-family: var(--font-base);
  font-size: 16px;
  font-style: italic;
  line-height: 24px;
  text-align: center;
}

.video {
  aspect-ratio: 1140 / 640;
  margin-bottom: 40px;
  background: #000000;
}
.video iframe { display: block; width: 100%; height: 100%; border: 0; }

.heading {
  margin: 10px 0;
  color: var(--navy);
  font-family: var(--font-proxima);
  font-size: 14px;
  font-weight: 700;
  line-height: 17px;
}
.heading--small { font-size: 13.33px; }

/* Light blue panels: history and benefits */
.panel {
  background: var(--panel);
  border-radius: 4px;
}

.panel--history { display: flex; flex-wrap: wrap; }

.panel__media {
  flex: 0 0 25%;
  max-width: 25%;
  padding: 10px 15px 4px;
}

.panel__body {
  flex: 0 0 75%;
  max-width: 75%;
  padding: 0 15px 1px;
}

.panel--benefits {
  margin-top: 44px;
  padding: 1px 15px 5px;
}

.benefits {
  margin: 0 0 14px;
  padding-left: 38px;
  list-style: disc;
  color: #000000;
}
.page .benefits li { line-height: 20px; }

/* Three text columns under the details image */
.columns {
  display: flex;
  flex-wrap: wrap;
  margin: 22px 0 6px;
}
.column {
  flex: 0 0 33.3333%;
  max-width: 33.3333%;
  padding: 0 15px;
}

/* Indented lists in the EIR section (no bullets on the live site) */
.indent {
  margin: 0 0 14px;
  padding-left: 38px;
  list-style: none;
}
.page .indent li { line-height: 20px; }
.indent--note { margin-top: 2px; margin-bottom: 16px; }

/* Videos */
.heading--videos { margin: 34px 0 12px 15px; }

.videos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px 0;
  padding: 0 15px;
}
.videos__item { padding: 0 15px; }
.videos__item a { display: block; color: var(--text); }
.videos__item strong {
  display: block;
  margin-bottom: 8px;
  font-family: var(--font-base);
  font-size: 16px;
  font-weight: 700;
  line-height: 24px;
}
.videos__item img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
/* Two per row, as on the live site (third column left empty) */
.videos__item:nth-child(2n) { grid-column: 2; }
.videos__item:nth-child(2n+1) { grid-column: 1; }

/* Small screens: same breakpoints as the live site's grid */
@media (max-width: 767px) {
  .column { flex-basis: 100%; max-width: 100%; }
  .videos { grid-template-columns: 1fr; }
  .videos__item:nth-child(n) { grid-column: 1; }
}

@media (max-width: 575px) {
  .panel__media, .panel__body { flex-basis: 100%; max-width: 100%; }
  .page-title { font-size: 24px; line-height: 30px; }
}
