/* Salinas LULAC Council #2055
   Fraunces for display type, Montserrat for everything else.
   Palette follows lulac.org. */

:root {
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Montserrat", Arial, Helvetica, sans-serif;

  --ink: #1a1536;
  --ink-soft: #333333;
  --muted: #6b6b6b;
  --rule: #d6d6d6;
  --blue: #125fa6;
  --blue-deep: #0b2577;
  --blue-link: #0d4f8b;
  --red: #ed142e;
  --red-dark: #c40f26;
  --yellow: #ffe138;
  --surface-blue: #e0ecf8;
  --surface-gray: #f2f2f2;
  --white: #ffffff;

  --radius: 4px;
  --container: 1200px;
  --gutter: clamp(1rem, 4vw, 2rem);
  --section: clamp(3rem, 6vw, 5rem);
  --header-height: 76px;
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: auto; }
body {
  margin: 0;
  min-width: 320px;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  font-variation-settings: "WONK" 0;
}
body.menu-open { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: var(--blue-link); }
a:hover { color: var(--ink); }
button { font: inherit; border: 0; background: none; cursor: pointer; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }

h1, h2, .pullquote { font-family: var(--font-display); font-weight: 700; line-height: 1.15; color: var(--ink); }
h1 { font-size: clamp(2.25rem, 4.5vw, 3.25rem); }
h2 { font-size: clamp(1.6rem, 2.6vw, 2rem); }
h3 { font-size: 1.125rem; font-weight: 700; line-height: 1.35; }
h4 { font-size: 1rem; font-weight: 700; }
p + p { margin-top: 1rem; }
mark { background: var(--yellow); color: var(--ink); padding: 0 .25em; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section) 0; }
.section-gray { background: var(--surface-gray); }
.section-blue { background: var(--surface-blue); }

.section-head { margin-bottom: 2rem; padding-bottom: .75rem; border-bottom: 1px solid var(--rule); }
.section-head p { margin-top: .5rem; color: var(--ink-soft); max-width: 60ch; }

.label {
  display: block;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--muted);
}
.label-red { color: var(--red-dark); }
.label-blue { color: var(--blue); }
.lede { font-size: 1.125rem; color: var(--ink-soft); max-width: 62ch; }
.muted { color: var(--muted); }
.copy { max-width: 68ch; }
.copy a { text-decoration: underline; }

.icon { width: 1em; height: 1em; vertical-align: -.125em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .75rem 1.25rem;
  border-radius: var(--radius);
  border: 2px solid transparent;
  font-weight: 700;
  font-size: .95rem;
  line-height: 1.2;
  text-decoration: none;
  transition: background-color .15s, color .15s, border-color .15s;
}
.btn-red { background: var(--red-dark); border-color: var(--red-dark); color: var(--white); }
.btn-red:hover { background: #a50c1f; border-color: #a50c1f; color: var(--white); }
.btn-blue { background: var(--blue); border-color: var(--blue); color: var(--white); }
.btn-blue:hover { background: var(--blue-deep); border-color: var(--blue-deep); color: var(--white); }
.btn-outline { background: transparent; border-color: var(--white); color: var(--white); }
.btn-outline:hover { background: var(--white); color: var(--blue-deep); }
.btn-outline-dark { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn-outline-dark:hover { background: var(--ink); color: var(--white); }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; }
.copy + .btn-row, .section-head + .btn-row, p + .btn-row { margin-top: 1.25rem; }

.skip-link {
  position: absolute; top: .5rem; left: .5rem; z-index: 1000;
  transform: translateY(-200%);
  padding: .5rem 1rem; border-radius: var(--radius);
  background: var(--red); color: var(--white); font-weight: 700; text-decoration: none;
}
.skip-link:focus { transform: none; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 100; background: var(--white); border-bottom: 1px solid var(--rule); }
.navbar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: var(--header-height); }
.brand { display: flex; align-items: center; gap: .75rem; color: var(--ink); text-decoration: none; }
.brand-logo { width: 44px; height: 44px; object-fit: contain; }
.brand-copy { display: flex; flex-direction: column; line-height: 1.15; }
.brand-copy strong { font-family: var(--font-display); font-size: 1.15rem; font-weight: 700; }
.brand-copy small { font-size: .75rem; font-weight: 600; color: var(--muted); letter-spacing: .04em; text-transform: uppercase; }

.desktop-nav { display: flex; align-items: center; gap: .25rem; }
.nav-link {
  display: inline-flex; align-items: center; gap: .25rem;
  padding: .6rem .7rem;
  font-size: .8rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
  color: var(--ink); text-decoration: none; border-bottom: 2px solid transparent;
}
.nav-link:hover, .nav-link.is-active { color: var(--blue); border-bottom-color: var(--blue); }
.nav-dropdown { position: relative; }
.nav-dropdown-toggle .icon { width: .9em; height: .9em; }
.nav-dropdown-menu {
  position: absolute; top: 100%; right: 0; min-width: 240px; padding: .5rem 0;
  background: var(--white); border: 1px solid var(--rule); border-radius: var(--radius);
}
.dropdown-link { display: block; padding: .55rem 1rem; font-size: .9rem; font-weight: 500; color: var(--ink); text-decoration: none; }
.dropdown-link:hover, .dropdown-link.is-active { background: var(--surface-blue); color: var(--blue-deep); }
.nav-donate { margin-left: .5rem; padding: .6rem 1.1rem; font-size: .8rem; letter-spacing: .04em; text-transform: uppercase; }

.mobile-toggle { display: none; width: 44px; height: 44px; padding: 10px; flex-direction: column; justify-content: center; gap: 5px; }
.mobile-toggle-bar { display: block; height: 2px; background: var(--ink); }
.mobile-menu-overlay { position: fixed; inset: var(--mobile-menu-top, var(--header-height)) 0 0; background: rgba(26, 21, 54, .5); z-index: 90; }
.mobile-menu { position: fixed; top: var(--mobile-menu-top, var(--header-height)); left: 0; right: 0; bottom: 0; overflow-y: auto; background: var(--white); z-index: 95; }
.mobile-menu-container { padding: .5rem var(--gutter) 2rem; }
.mobile-link { display: block; padding: .9rem 0; border-bottom: 1px solid var(--rule); font-weight: 600; color: var(--ink); text-decoration: none; }
.mobile-link.is-active { color: var(--blue); }
.mobile-link.mobile-donate { margin-top: 1rem; border: 0; text-align: center; }

/* Home hero */
.hero { background: var(--blue-deep); color: var(--white); }
.hero .container { display: grid; grid-template-columns: 5fr 7fr; gap: 3rem; align-items: start; padding-top: 3rem; padding-bottom: 3rem; }
.hero-media img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; object-position: center 45%; border-radius: var(--radius); }
.hero-copy .label { color: var(--surface-blue); margin-bottom: .75rem; }
.hero-copy h1 { color: var(--white); }
.hero-copy h1 mark { padding: 0 .2em; }
.hero-copy p { margin-top: 1.25rem; font-size: 1.05rem; max-width: 56ch; }
.hero-copy .btn-row { margin-top: 1.5rem; }

/* Events and meetings */
.events-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.meeting-card { padding: 1.75rem; background: var(--surface-blue); border-radius: var(--radius); }
.meeting-card h3 { font-family: var(--font-display); font-size: 1.5rem; }
.meeting-card p { margin-top: .75rem; }
.contact-lines { margin-top: 1rem; display: grid; gap: .4rem; }
.contact-lines a { display: inline-flex; align-items: center; gap: .5rem; font-weight: 600; text-decoration: none; }
.contact-lines a:hover { text-decoration: underline; }
.event-card { display: grid; grid-template-columns: 200px 1fr; gap: 1.25rem; align-items: start; }
.event-card img { width: 100%; aspect-ratio: 4 / 5; object-fit: contain; background: var(--surface-gray); border-radius: var(--radius); }
.event-card h3 { font-family: var(--font-display); font-size: 1.5rem; margin-top: .25rem; }
.event-card p { margin-top: .5rem; color: var(--ink-soft); }
.event-card a.more { display: inline-block; margin-top: .75rem; font-weight: 600; }

/* Recent row */
.recent-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; }
.recent-card img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius); }
.recent-card .label { margin-top: .75rem; }
.recent-card h3 { margin-top: .25rem; }
.recent-card h3 a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.recent-card h3 a:hover { color: var(--blue); }
.recent-card p { margin-top: .4rem; font-size: .95rem; color: var(--ink-soft); }

/* Photo tiles */
.tile-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; }
.tile { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--radius); background: var(--ink); text-decoration: none; }
.tile img { width: 100%; height: 100%; object-fit: cover; opacity: .62; transition: opacity .2s; }
.tile:hover img { opacity: .75; }
.tile span { position: absolute; left: 1.25rem; right: 1.25rem; bottom: 1.1rem; font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; color: var(--white); line-height: 1.15; text-shadow: 0 1px 2px rgba(0,0,0,.5); }

/* About / pull quote */
.pullquote { font-size: clamp(1.5rem, 2.6vw, 2.1rem); font-weight: 500; max-width: 26ch; }
.about-grid { display: grid; grid-template-columns: 7fr 5fr; gap: 3rem; align-items: start; }
.about-aside { padding: 1.5rem; border-left: 4px solid var(--red); background: var(--surface-gray); }
.about-aside h3 { font-family: var(--font-display); font-size: 1.35rem; }
.about-aside p { margin-top: .5rem; }
.about-aside .btn { margin-top: 1rem; }

/* Interior page head */
.page-head { background: var(--surface-blue); padding: 2.5rem 0; }
.page-head .label { margin-bottom: .5rem; color: var(--blue); }
.page-head p { margin-top: .75rem; color: var(--ink-soft); max-width: 62ch; }
.page-head .btn-row { margin-top: 1.25rem; }

/* Officers */
.officer-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem 1.5rem; }
.officer-photo { aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--radius); background: var(--surface-gray); }
.officer-photo img { width: 100%; height: 100%; object-fit: cover; }
.officer-photo.is-placeholder { display: grid; place-items: center; background: var(--surface-blue); }
.officer-photo.is-placeholder span { font-family: var(--font-display); font-size: 2.75rem; font-weight: 700; color: var(--blue-deep); }
.officer h3 { margin-top: .75rem; }
.officer p { color: var(--muted); font-size: .95rem; }

/* Definition-list grids (issues, contact) */
.dl-grid { display: grid; grid-template-columns: 1fr 1fr; column-gap: 3rem; }
.dl-grid > div { padding: 1.1rem 0; border-bottom: 1px solid var(--rule); }
.dl-grid dt { font-weight: 700; font-size: 1.05rem; }
.dl-grid dd { margin-top: .25rem; color: var(--ink-soft); }

.contact-dl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem 2rem; }
.contact-dl div { padding-top: .75rem; border-top: 2px solid var(--ink); }
.contact-dl dt { font-size: .8rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.contact-dl dd { margin-top: .25rem; font-weight: 600; }
.contact-dl dd a { text-decoration: none; }
.contact-dl dd a:hover { text-decoration: underline; }

/* Feature split (form download, video, etc.) */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.feature img { width: 100%; border: 1px solid var(--rule); border-radius: var(--radius); }
.feature h2 { margin-bottom: .75rem; }
.feature .btn-row { margin-top: 1.25rem; }

/* Logo rows and grids */
.logo-row { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1rem; align-items: center; }
.logo-row a, .logo-row div { display: grid; place-items: center; height: 110px; padding: .75rem; background: var(--white); border: 1px solid var(--rule); border-radius: var(--radius); }
.logo-row img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.logo-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.logo-cell { display: grid; place-items: center; height: 150px; padding: 1.25rem; background: var(--white); border: 1px solid var(--rule); border-radius: var(--radius); }
.logo-cell img { max-width: 100%; max-height: 72px; width: auto; height: auto; object-fit: contain; }
.logo-cell figcaption { display: none; }

/* Resource rows (help page) */
.resource-list > article { display: grid; grid-template-columns: 1fr 160px; gap: 2rem; padding: 2rem 0; border-bottom: 1px solid var(--rule); }
.resource-list > article:first-child { padding-top: 0; }
.resource-logo { display: grid; place-items: center; height: 96px; padding: .5rem; border: 1px solid var(--rule); border-radius: var(--radius); align-self: start; }
.resource-logo img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.resource-copy { max-width: 68ch; }
.resource-copy p { margin-top: .5rem; color: var(--ink-soft); }
.resource-copy ul { margin-top: .5rem; padding-left: 1.25rem; list-style: disc; color: var(--ink-soft); }
.resource-meta { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; margin-top: .75rem; }
.resource-meta a { display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; text-decoration: none; }
.resource-meta a:hover { text-decoration: underline; }

/* Link lists (politics) */
.link-list > li { padding: 1.1rem 0; border-bottom: 1px solid var(--rule); }
.link-list a, .link-list strong { display: inline-flex; align-items: center; gap: .4rem; font-size: 1.1rem; font-weight: 700; }
.link-list p { margin-top: .25rem; color: var(--ink-soft); }

/* Photo grids */
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: .75rem; }
.photo-grid figure { margin: 0; }
.photo-grid img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); background: var(--surface-gray); }
.photo-grid.portrait img { aspect-ratio: 3 / 4; }
.photo-grid .contain img { object-fit: contain; background: var(--surface-gray); }
.photo-grid figcaption { margin-top: .4rem; font-size: .9rem; color: var(--muted); }

/* Video */
.video-box { max-width: 900px; }
.video-box iframe { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; background: #000; border-radius: var(--radius); }
.video-box p { margin-top: 1rem; max-width: 68ch; }

/* Footer */
.site-footer { background: var(--ink); color: var(--white); padding: 3rem 0 1.5rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.5rem; }
.footer-brand { display: flex; align-items: center; gap: .75rem; margin-bottom: 1rem; }
.footer-brand img { width: 40px; height: 40px; background: var(--white); padding: 4px; border-radius: var(--radius); }
.footer-brand strong { font-family: var(--font-display); font-size: 1.15rem; }
.footer-col h2 { font-family: var(--font-body); font-size: .8rem; letter-spacing: .04em; text-transform: uppercase; color: #b9c3d8; margin-bottom: .75rem; }
.footer-col p, .footer-col li { color: #dfe4ee; font-size: .95rem; }
.footer-col li + li { margin-top: .4rem; }
.footer-col a { color: var(--white); text-decoration: none; }
.footer-col a:hover { text-decoration: underline; }
.footer-col .btn { margin-top: .75rem; }
.footer-bottom { margin-top: 2.5rem; padding-top: 1rem; border-top: 1px solid rgba(255, 255, 255, .15); display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; font-size: .85rem; color: #b9c3d8; }
.footer-bottom a { color: #dfe4ee; }

/* Responsive */
@media (max-width: 1100px) {
  .officer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .logo-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  .desktop-nav { display: none; }
  .mobile-toggle { display: flex; }
  .hero .container { grid-template-columns: 1fr; gap: 2rem; }
  .hero-media { order: 2; }
  .events-grid, .about-grid, .feature { grid-template-columns: 1fr; }
  .recent-grid, .tile-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .logo-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  :root { --header-height: 64px; }
  .brand-logo { width: 36px; height: 36px; }
  .brand-copy strong { font-size: 1rem; }
  .recent-grid, .tile-grid, .dl-grid, .contact-dl, .footer-grid { grid-template-columns: 1fr; }
  .officer-grid, .logo-grid, .logo-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .event-card { grid-template-columns: 1fr; }
  .event-card img { max-width: 260px; }
  .resource-list > article { grid-template-columns: 1fr; }
  .resource-logo { justify-self: start; width: 160px; }
  .tile { aspect-ratio: 16 / 9; }
  .photo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; }
  .pullquote { max-width: none; }
}

/* Field background and content sheet */
:root {
  --sheet-gap: clamp(0px, 4vw, 3rem);
}

body {
  background: var(--surface-gray);
  padding-top: clamp(72px, 12vw, 200px);
  padding-bottom: clamp(48px, 6vw, 120px);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background: #2c4a1f url("../img/salinas-bg.jpg") center / cover no-repeat;
}

.site-header,
main,
.site-footer {
  width: min(100% - 2 * var(--sheet-gap), 1260px);
  margin-inline: auto;
}

.site-header,
main {
  background: var(--white);
}

.site-header {
  border-radius: var(--radius) var(--radius) 0 0;
}

.site-footer {
  border-radius: 0 0 var(--radius) var(--radius);
}

.site-header .container,
main .container,
.site-footer .container {
  max-width: 100%;
  padding: 0 clamp(1rem, 3vw, 2.5rem);
}

@media (max-width: 640px) {
  :root {
    --sheet-gap: 0px;
  }
}
