/* ===========================
   VERANDAH PROJECT — SHARED CSS
   =========================== */

@import url('https://fonts.googleapis.com/css2?family=Barlow:ital,wght@0,400;0,700;1,400&family=Barlow+Condensed:wght@400;700&display=swap');

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

:root {
  --charcoal: #3d3d3b;
  --light-gray: #f5f5f3;
  --mid-gray: #9a9a97;
  --border: #d8d8d5;
  --white: #ffffff;
  --font-main: 'Barlow', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --max-width: 1040px;
  --content-width: 500px;
}

html {
  font-size: 16px;
}

body {
  font-family: var(--font-main);
  color: var(--charcoal);
  background: var(--white);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

a:hover {
  text-decoration: underline;
}

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

/* ===========================
   HEADER / NAV
   =========================== */

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 48px;
  border-bottom: none;
}

.logo {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--charcoal);
  text-decoration: none;
}

.logo span.logo-top {
  font-size: 22px;
}

.logo span.logo-bottom {
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 2px;
  text-transform: lowercase;
  color: var(--mid-gray);
  margin-top: -2px;
}

/* SVG-style logo text */
.logo-text {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--charcoal);
  line-height: 1;
}

.logo-text em {
  font-style: italic;
  font-weight: 400;
}

.logo-sub {
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  color: var(--mid-gray);
  text-transform: lowercase;
  padding-left: 2px;
}

nav {
  display: flex;
  gap: 36px;
  align-items: center;
}

nav a {
  font-size: 0.95rem;
  color: var(--charcoal);
  text-decoration: none;
  letter-spacing: 0.01em;
}

nav a:hover {
  text-decoration: underline;
}

nav a.active {
  font-weight: 600;
}

/* ===========================
   MAIN CONTENT
   =========================== */

main {
  flex: 1;
  padding: 0 48px;
  max-width: var(--max-width);
  margin: 0 auto;
  width: 100%;
}

/* ===========================
   HERO (index page)
   =========================== */

.hero {
  padding: 100px 0 80px;
}

.hero-body {
  font-size: 2rem;
  line-height: 1.25;
  color: var(--charcoal);
  font-weight: 400;
  max-width: 800px;
  margin-bottom: 40px;
}

.hero-cta {
  font-size: 2rem;
  color: var(--charcoal);
  font-weight: 400;
}

.hero-cta a {
  font-weight: 700;
  text-decoration: none;
  color: var(--charcoal);
}

.hero-cta a:hover {
  text-decoration: underline;
}

/* ===========================
   CONTENT PAGES
   =========================== */

.page-content {
  padding: 80px 0 60px;
  max-width: var(--content-width);
  margin-left: 240px;
}

.page-title {
  font-size: 2.6rem;
  font-weight: 700;
  color: var(--charcoal);
  margin-bottom: 40px;
  line-height: 1.1;
}

.page-body p {
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--charcoal);
  margin-bottom: 18px;
}

.page-body p:last-child {
  margin-bottom: 0;
}

/* Project navigation links */
.project-nav {
  margin: 36px 0;
}

.project-nav p.label {
  font-size: 0.82rem;
  color: var(--mid-gray);
  margin-bottom: 12px;
}

.project-nav ul {
  list-style: none;
  padding: 0;
}

.project-nav ul li {
  margin-bottom: 4px;
}

.project-nav ul li a {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--charcoal);
  text-decoration: none;
}

.project-nav ul li a:hover {
  text-decoration: underline;
}

/* Divider */
.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 40px 0;
  max-width: 400px;
}

/* Secondary body text blocks */
.secondary-body p {
  font-size: 0.88rem;
  line-height: 1.7;
  color: var(--charcoal);
  margin-bottom: 16px;
}

/* In-page CTA links */
.inline-cta {
  font-size: 0.88rem;
  margin-top: 24px;
  color: var(--charcoal);
}

.inline-cta a {
  font-weight: 700;
  text-decoration: none;
  color: var(--charcoal);
}

.inline-cta a:hover {
  text-decoration: underline;
}

/* ===========================
   BIO PAGES
   =========================== */

.bio-role {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--mid-gray);
  margin-bottom: 28px;
}

.bio-photo {
  width: 260px;
  max-width: 100%;
  aspect-ratio: 1 / 1;
  background: #ebebeb;
  display: block;
  margin-bottom: 32px;
  object-fit: cover;
  object-position: center;
}

.bio-back {
  font-size: 0.88rem;
  margin-top: 36px;
  color: var(--charcoal);
}

.bio-back a {
  font-weight: 700;
  color: var(--charcoal);
}

.bio-back a:hover {
  text-decoration: underline;
}

/* ===========================
   BULLET LIST (Vision page)
   =========================== */

.vision-list {
  list-style: none;
  padding: 0;
  margin: 16px 0 24px 0;
}

.vision-list li {
  font-size: 0.88rem;
  line-height: 1.7;
  padding-left: 20px;
  position: relative;
  margin-bottom: 10px;
  color: var(--charcoal);
}

.vision-list li::before {
  content: '–';
  position: absolute;
  left: 0;
}

/* ===========================
   TEAM PAGE
   =========================== */

.team-intro {
  max-width: var(--content-width);
  margin-left: 240px;
  padding: 80px 0 40px;
}

.team-intro .page-title {
  margin-bottom: 20px;
}

.team-intro p {
  font-size: 0.88rem;
  line-height: 1.7;
  max-width: 620px;
}

.team-photo-full {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
  background: #ccc;
  display: block;
  margin: 0 -48px;
  width: calc(100% + 96px);
}

.team-photo-placeholder {
  display: block;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  height: auto;
}

.team-credits {
  display: flex;
  justify-content: space-around;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 40px;
}

.team-credits .member {
  font-size: 0.82rem;
  color: var(--charcoal);
}

.team-credits .member a {
  font-weight: 400;
  color: var(--mid-gray);
}

.team-more {
  max-width: var(--content-width);
  margin-left: 240px;
  padding-bottom: 60px;
}

.team-more p {
  font-size: 0.88rem;
  line-height: 1.7;
  color: var(--charcoal);
}

video {
  width: 100%;
  height: auto;
}

/* ===========================
   PARTNERS PAGE
   =========================== */

.partners-content {
  padding: 80px 0 60px;
  max-width: 540px;
  margin-left: 140px;
}

.partners-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin: 36px 0;
}

.partner-card img,
.partner-card .img-placeholder {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #ebebeb;
  display: block;
  margin-bottom: 10px;
  object-fit: cover;
  object-position: center;
}

.partner-card .name {
  font-size: 0.82rem;
  font-weight: 400;
  color: var(--charcoal);
}

.partner-card .name a {
  color: var(--mid-gray);
}

.partner-card .title {
  font-size: 0.78rem;
  color: var(--mid-gray);
  line-height: 1.4;
}

.institutional {
  margin-top: 50px;
}

.institutional h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 28px;
}

.institutional-grid {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px 24px;
  align-items: center;
  max-width: 380px;
}

.institutional-grid .logo-placeholder {
  width: 150px;
  height: 68px;
  background: #ebebeb;
  display: block;
}

.institutional-grid .org-name {
  font-size: 0.88rem;
  font-weight: 400;
}

.institutional-grid .org-name a {
  color: var(--mid-gray);
}

/* ===========================
   CONTACT / GET IN TOUCH
   =========================== */

.contact-content {
  padding: 80px 0 60px;
  max-width: 560px;
  margin-left: 140px;
}

.contact-lead {
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--charcoal);
  margin-bottom: 36px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 480px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-field label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--charcoal);
  letter-spacing: 0.02em;
}

.form-field input,
.form-field textarea {
  font-family: var(--font-main);
  font-size: 0.9rem;
  color: var(--charcoal);
  background: var(--light-gray);
  border: 1px solid var(--border);
  border-radius: 2px;
  padding: 12px 14px;
  width: 100%;
}

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--charcoal);
  background: var(--white);
}

.form-field textarea {
  resize: vertical;
  min-height: 130px;
}

.form-submit {
  font-family: var(--font-main);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--white);
  background: var(--charcoal);
  border: none;
  border-radius: 2px;
  padding: 13px 28px;
  cursor: pointer;
  align-self: flex-start;
  letter-spacing: 0.02em;
}

.form-submit:hover {
  background: #2b2b29;
}

/* Form status messages (Formspree AJAX) */
.form-success {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--charcoal);
  background: var(--light-gray);
  border: 1px solid var(--border);
  border-left: 3px solid var(--charcoal);
  border-radius: 2px;
  padding: 14px 16px;
  margin-bottom: 24px;
}

.form-error {
  font-size: 0.88rem;
  color: #a12626;
  margin-bottom: 16px;
}

.form-error:empty {
  display: none;
}

.field-error {
  font-size: 0.78rem;
  color: #a12626;
}

.field-error:empty {
  display: none;
}

.form-field input[aria-invalid="true"],
.form-field textarea[aria-invalid="true"] {
  border-color: #a12626;
}

.contact-direct {
  margin-top: 48px;
}

.contact-direct h2 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.contact-direct p {
  font-size: 0.88rem;
  line-height: 1.7;
  color: var(--charcoal);
  margin-bottom: 8px;
}

.contact-direct a {
  font-weight: 700;
  color: var(--charcoal);
}

.contact-direct a:hover {
  text-decoration: underline;
}

.social-links {
  display: flex;
  gap: 24px;
  margin-top: 16px;
}

.social-links a {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--charcoal);
}

.social-links a:hover {
  text-decoration: underline;
}

@media (max-width: 768px) {
  .contact-content {
    margin-left: 0;
  }
}

/* ===========================
   FOOTER TAGLINE
   =========================== */

.footer-tagline {
  padding: 48px 48px 0;
  width: 100%;
}

.tagline-text {
  font-size: 1.9rem;
  font-weight: 400;
  color: var(--charcoal);
  margin-bottom: 20px;
}

.tagline-text strong {
  font-weight: 700;
}

/* ===========================
   FOOTER
   =========================== */

footer {
  margin-top: auto;
  border-top: 1px solid var(--border);
  padding: 32px 48px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  width: 100%;
}

.footer-columns {
  display: flex;
  gap: 80px;
}

.footer-col h4 {
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--charcoal);
}

.footer-col ul {
  list-style: none;
  padding: 0;
}

.footer-col ul li {
  margin-bottom: 4px;
}

.footer-col ul li a {
  font-size: 0.72rem;
  color: var(--charcoal);
  text-decoration: none;
}

.footer-col ul li a:hover {
  text-decoration: underline;
}

.footer-logo {
  align-self: flex-end;
}

.footer-logo .logo-text {
  font-size: 1.1rem;
  text-align: right;
}

/* ===========================
   RESPONSIVE
   =========================== */

@media (max-width: 768px) {
  header {
    padding: 20px 24px;
    flex-wrap: wrap;
    gap: 16px;
  }

  nav {
    gap: 20px;
  }

  main {
    padding: 0 24px;
  }

  .page-content,
  .team-intro,
  .team-more {
    margin-left: 0;
    padding-top: 48px;
  }

  .hero-body {
    font-size: 1.2rem;
  }

  .hero-cta {
    font-size: 1.2rem;
  }

  .footer-tagline {
    padding: 32px 24px 0;
  }

.tagline-text {
  font-size: 1.2rem;
}
    
  footer {
    flex-direction: column;
    gap: 32px;
    padding: 24px;
  }

  .footer-columns {
    gap: 40px;
    flex-wrap: wrap;
  }

  .partners-content {
    margin-left: 0;
  }

  .team-photo-placeholder {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
  }
}
