/*
Theme Name: WEA Lean
Theme URI: https://wea.org.au/
Author: Winery Engineering Association
Description: Lightweight custom theme for the Winery Engineering Association website.
Version: 1.0.15
Text Domain: wea-lean
*/

:root {
  --ink: #242321;
  --muted: #66615c;
  --line: #e5dfd8;
  --paper: #fbfaf7;
  --white: #ffffff;
  --green: #0c7a32;
  --green-dark: #075423;
  --green-soft: #e9f4ec;
  --gold: #c2a052;
  --max: 1120px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
  overflow-x: hidden;
}

a {
  color: var(--green-dark);
}

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

.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 5;
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 750;
}

.brand img {
  width: auto;
  height: 72px;
  max-width: 190px;
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 0.95rem;
}

.nav-links a {
  color: var(--ink);
  text-decoration: none;
}

.nav-links a:hover,
.nav-menu summary:hover {
  color: var(--green);
}

.nav-menu {
  position: relative;
}

.nav-menu summary {
  cursor: pointer;
  list-style: none;
  color: var(--ink);
}

.nav-menu summary::-webkit-details-marker {
  display: none;
}

.nav-menu summary::after {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-left: 8px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-3px) rotate(45deg);
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  min-width: 210px;
  padding: 8px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 35px rgba(35, 31, 28, 0.12);
}

.dropdown-menu a {
  display: block;
  padding: 8px 10px;
  border-radius: 6px;
  white-space: nowrap;
}

.dropdown-menu a:hover {
  background: var(--green-soft);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 6px;
  background: var(--green);
  color: var(--white);
  text-decoration: none;
  font-weight: 750;
}

.button.secondary {
  background: var(--white);
  color: var(--green-dark);
  border: 1px solid var(--line);
}

.hero {
  background: linear-gradient(180deg, var(--white), var(--green-soft));
}

.hero-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 44px 22px 34px;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 44px;
  align-items: center;
}

.eyebrow {
  color: var(--green-dark);
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
  font-size: 0.78rem;
}

h1 {
  margin: 10px 0 18px;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.05;
  letter-spacing: 0;
}

h2 {
  margin: 0 0 18px;
  font-size: clamp(1.75rem, 3vw, 2.7rem);
  line-height: 1.08;
}

h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
}

.lead {
  color: var(--muted);
  font-size: 1.15rem;
  max-width: 66ch;
}

.hero-motto {
  margin: 0;
  color: var(--green-dark);
  font-size: clamp(1.35rem, 2.4vw, 2.1rem);
  font-weight: 850;
  line-height: 1.1;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.conference-mark {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 28px;
  box-shadow: 0 18px 45px rgba(40, 30, 20, 0.08);
  min-width: 0;
}

.conference-mark img {
  width: 100%;
  height: auto;
}

.conference-feature {
  min-width: 0;
}

.conference-price {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 58px 0 0;
  color: var(--green-dark);
  font-size: clamp(1.9rem, 3.3vw, 2.7rem);
  font-weight: 900;
  line-height: 1;
}

.conference-price span {
  display: block;
  max-width: 30ch;
  color: var(--muted);
  font-size: clamp(0.76rem, 1.05vw, 0.9rem);
  font-weight: 650;
  line-height: 1.35;
  text-align: left;
}

.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 48px 22px;
}

.linkedin-section {
  padding-top: 34px;
  padding-bottom: 0;
}

.linkedin-section + .conference-details {
  padding-top: 24px;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 40px;
}

.archive-band .split {
  display: block;
}

.conference-details {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 40px;
  align-items: start;
  padding-bottom: 24px;
}

.conference-details + .section {
  padding-top: 24px;
}

.detail-grid {
  display: grid;
  gap: 18px;
  color: var(--muted);
  font-size: 1.08rem;
}

.detail-grid p {
  margin: 0;
}

@media (min-width: 851px) {
  .conference-feature {
    margin-top: 22px;
  }

  .conference-details .detail-grid {
    padding-top: 36px;
  }
}

.conference-highlights {
  display: flex;
  justify-content: center;
  flex-wrap: nowrap !important;
  align-items: center;
  gap: clamp(4px, 1vw, 10px);
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
  white-space: nowrap;
}

.conference-highlights li {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--green-dark);
  font-weight: 800;
  font-size: clamp(0.68rem, 1.1vw, 0.92rem);
  line-height: 1;
  white-space: nowrap;
  flex: 0 1 auto;
  min-width: 0;
}

.conference-highlights li + li::before {
  content: "•";
  margin-right: clamp(4px, 1vw, 10px);
  color: var(--gold);
}

.photo-grid {
  display: flex !important;
  flex-wrap: wrap;
  gap: 12px;
}

.photo-grid img {
  flex: 0 0 calc((100% - 36px) / 4);
  width: calc((100% - 36px) / 4);
  min-width: 0;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px;
}

.archive-band {
  background: var(--white);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.archive-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 28px;
}

.archive-card {
  display: block;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px 18px 20px;
  min-height: 160px;
  background: var(--paper);
  text-decoration: none;
  color: var(--ink);
  position: relative;
  overflow: hidden;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.archive-card::before {
  content: "";
  display: block;
  width: 44px;
  height: 4px;
  border-radius: 999px;
  background: var(--green);
  margin-bottom: 18px;
}

.archive-card:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--green) 45%, var(--line));
  box-shadow: 0 14px 28px rgba(35, 31, 28, 0.08);
}

.archive-card span {
  display: block;
  color: var(--green-dark);
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
}

.archive-card h3 {
  margin: 8px 0;
  font-size: 1.16rem;
  line-height: 1.15;
}

.archive-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.4;
}

.site-footer {
  background: var(--green-dark);
  color: var(--white);
  margin-top: 24px;
}

.page-main {
  min-height: 70vh;
}

.page-hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: 44px 22px 0;
}

.page-hero h1 {
  max-width: 850px;
}

.page-section {
  padding-top: 24px;
}

.current-banner-section {
  padding-top: 18px;
  padding-bottom: 14px;
}

.current-page-kicker {
  max-width: var(--max);
  margin: 0 auto;
  padding: 44px 22px 0;
}

.narrow-content {
  max-width: 820px;
  font-size: 1.08rem;
}

.about-intro {
  font-size: 1.08rem;
}

.about-intro p,
.contact-content p {
  max-width: 820px;
}

.contact-content {
  font-size: 1.08rem;
}

.spaced-link {
  margin-top: 28px;
}

.page-banner {
  width: min(760px, 100%);
  height: auto;
  margin: 0 auto;
}

.page-banner.current-banner {
  margin-left: 0;
  margin-right: auto;
}

.page-banner.compact-banner {
  width: min(560px, 100%);
}

.video-frame {
  margin-top: 14px;
  width: min(760px, 100%);
  aspect-ratio: 16 / 9;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.video-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.about-photo-grid {
  display: flex !important;
  flex-wrap: wrap;
  gap: 12px;
}

.about-photo-grid img {
  flex: 0 0 calc((100% - 36px) / 4);
  width: calc((100% - 36px) / 4);
  min-width: 0;
  aspect-ratio: 400 / 284;
  object-fit: cover;
  border-radius: 8px;
}

.program-list,
.speaker-list {
  display: grid;
  gap: 12px;
}

.program-item,
.speaker-card {
  padding: 18px 0;
  border-top: 1px solid var(--line);
}

.program-item h2,
.speaker-card h2 {
  margin: 0 0 6px;
  font-size: 1.12rem;
  line-height: 1.25;
}

.speaker {
  margin: 0;
  color: var(--ink);
  font-weight: 750;
}

.speaker span {
  color: var(--muted);
  font-weight: 500;
}

.download-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

.people-grid {
  max-width: var(--max);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.people-grid div {
  border-top: 1px solid var(--line);
  padding: 14px 0;
}

.people-grid strong,
.people-grid span {
  display: block;
}

.people-grid strong {
  color: var(--green-dark);
  margin-bottom: 4px;
}

.people-grid.compact div {
  color: var(--ink);
  font-weight: 400;
}

.text-link {
  color: var(--green-dark);
  font-weight: 800;
}

.poster-grid {
  display: flex !important;
  flex-wrap: wrap;
  gap: 18px;
}

.poster-card {
  display: grid;
  flex: 0 0 calc((100% - 54px) / 4);
  width: calc((100% - 54px) / 4);
  min-width: 0;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
}

.poster-card img {
  width: 100%;
  aspect-ratio: 216 / 300;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.poster-card span {
  color: var(--green-dark);
  font-weight: 800;
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 28px 22px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: #f0e7e4;
}

.footer-inner a {
  color: var(--white);
}

@media (max-width: 850px) {
  .nav,
  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-links {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .dropdown-menu {
    left: 0;
    right: auto;
  }

  .hero-inner,
  .split,
  .conference-details,
  .people-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .conference-details {
    gap: 14px;
  }

  .hero-inner > *,
  .split > *,
  .conference-details > * {
    min-width: 0;
  }

  .photo-grid,
  .about-photo-grid,
  .poster-grid {
    grid-template-columns: none;
  }
}

@media (max-width: 520px) {
  .nav {
    padding: 10px 16px;
  }

  .nav-links {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 16px;
    font-size: 0.9rem;
  }

  .nav-menu {
    min-width: 0;
  }

  .brand img {
    height: 62px;
    max-width: 170px;
  }

  .hero-inner,
  .section {
    padding-left: 16px;
    padding-right: 16px;
  }

  .hero-inner {
    gap: 12px;
  }

  .lead,
  h1,
  h2,
  p {
    overflow-wrap: break-word;
  }

  .conference-mark {
    padding: 18px;
  }

  .conference-price {
    gap: 10px;
    justify-content: center;
    margin-top: 38px;
  }

  .conference-price span {
    max-width: none;
    font-size: clamp(0.72rem, 2.8vw, 0.82rem);
  }

  .conference-highlights {
    flex-wrap: nowrap !important;
    justify-content: center;
    gap: 2px;
    width: 100%;
  }

  .conference-highlights li {
    font-size: clamp(0.58rem, 2.55vw, 0.76rem);
    letter-spacing: 0;
  }

  .conference-highlights li + li::before {
    margin-right: 2px;
  }

  .actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .archive-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .photo-grid img,
  .about-photo-grid img,
  .poster-card {
    flex-basis: calc((100% - 12px) / 2);
    width: calc((100% - 12px) / 2);
  }
}

