/* === GIA Design System === */

:root {
  --navy: #1c2d3f;
  --coral: #c94e2b;
  --coral-hover: #b84320;
  --gray-body: #4a5568;
  --gray-light: #64748b;
  --gray-border: #e2e8f0;
  --gray-bg: #f7fafc;
  --white: #ffffff;
  --max-width: 1080px;
  --header-height: 72px;
}

/* === Reset === */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Ubuntu', sans-serif;
  font-weight: 300;
  font-size: 17px;
  line-height: 1.7;
  color: var(--gray-body);
  background: var(--white);
}

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

a {
  color: var(--coral);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--coral-hover);
}

h1, h2, h3 {
  font-weight: 400;
  line-height: 1.3;
  color: var(--navy);
}

h1 {
  font-size: 2rem;
}

h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

h3 {
  font-size: 1.15rem;
  color: var(--coral);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.75rem;
}

p + p {
  margin-top: 1rem;
}

/* === Layout === */

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 3rem 0;
}

.section + .section {
  border-top: 1px solid var(--gray-border);
}

.section-alt {
  background: var(--gray-bg);
}

/* === Header === */

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

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

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

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  color: var(--gray-body);
  font-size: 0.95rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--coral);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--gray-body);
}

.menu-toggle svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

/* === Mobile Nav === */

.mobile-nav {
  display: none;
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--white);
  z-index: 99;
  padding: 2rem 1.5rem;
}

.mobile-nav.open {
  display: block;
}

.mobile-nav a {
  display: block;
  color: var(--navy);
  font-size: 1.25rem;
  font-weight: 400;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--gray-border);
}

.mobile-nav a:hover,
.mobile-nav a.active {
  color: var(--coral);
}

/* === Banner === */

.banner {
  position: relative;
  height: 320px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.banner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(28, 45, 63, 0.7);
}

.banner-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 1.5rem;
}

.banner h1 {
  color: var(--coral);
  font-size: 2.25rem;
  font-weight: 400;
}

.banner .tagline {
  color: #e0e0e0;
  font-size: 1.05rem;
  margin-top: 0.5rem;
  font-weight: 300;
}

/* Per-page banner images */
.banner-home {
  height: 420px;
  background-image: url('/images/banner-home.jpg');
}

.banner-home h1 {
  font-size: 2.75rem;
}

.banner-engagements {
  background-image: url('/images/banner-engagements.jpg');
}

.banner-affiliations {
  background-image: url('/images/banner-affiliations.jpg');
}

.banner-bio {
  background-image: url('/images/banner-bio.jpg');
}

/* === Focus Areas (Home) === */

.focus-area {
  padding: 2.5rem 0;
}

.focus-area + .focus-area {
  border-top: 1px solid var(--gray-border);
}

.focus-area h3 {
  margin-bottom: 0.75rem;
}

/* === Intro Block === */

.intro {
  font-size: 1.05rem;
  line-height: 1.8;
}

/* === CTA Block === */

.cta-block {
  text-align: center;
  padding: 3rem 0;
  background: var(--gray-bg);
}

.cta-block h2 {
  margin-bottom: 0.5rem;
}

.cta-block p {
  margin-bottom: 1.5rem;
  color: var(--gray-light);
}

.btn {
  display: inline-block;
  padding: 0.7rem 2rem;
  border: 2px solid var(--coral);
  color: var(--coral);
  font-family: 'Ubuntu', sans-serif;
  font-size: 0.95rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  transition: background 0.2s, color 0.2s;
  cursor: pointer;
}

.btn:hover {
  background: var(--coral);
  color: var(--white);
}

/* === Bio Page === */

.bio-header {
  display: flex;
  gap: 2.5rem;
  align-items: flex-start;
}

.bio-photo {
  width: 220px;
  min-width: 220px;
  border-radius: 4px;
}

.bio-intro h2 {
  color: var(--navy);
  font-size: 1.75rem;
  margin-bottom: 0.75rem;
}

.experience-entry {
  margin-bottom: 2rem;
}

.experience-entry h3 {
  text-transform: none;
  letter-spacing: normal;
  font-size: 1.05rem;
  margin-bottom: 0.25rem;
}

.experience-entry .role {
  color: var(--gray-light);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.experience-entry .role-subsequent {
  margin-top: 0.75rem;
}

/* === Affiliations List === */

.affiliations-list {
  list-style: none;
}

.affiliations-list li {
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--gray-border);
  line-height: 1.5;
}

.affiliations-list li:last-child {
  border-bottom: none;
}

.affiliation-org {
  font-weight: 400;
  color: var(--navy);
}

.affiliation-role {
  color: var(--gray-light);
  font-size: 0.9rem;
}

/* === Photo Gallery === */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.gallery-grid img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 2px;
}

/* === Contact Form === */

.contact-intro {
  margin-bottom: 2rem;
}

.contact-form {
  max-width: 600px;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--navy);
  margin-bottom: 0.3rem;
}

.form-group label .required {
  color: var(--coral);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--gray-border);
  border-radius: 3px;
  font-family: 'Ubuntu', sans-serif;
  font-size: 0.95rem;
  font-weight: 300;
  color: var(--gray-body);
  transition: border-color 0.2s;
  background: var(--white);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--coral);
}

.form-group textarea {
  min-height: 140px;
  resize: vertical;
}

.form-row {
  display: flex;
  gap: 1rem;
}

.form-row .form-group {
  flex: 1;
}

.form-hp {
  position: absolute;
  left: -9999px;
  top: -9999px;
}

.form-submit {
  display: inline-block;
  padding: 0.7rem 2.5rem;
  background: var(--coral);
  color: var(--white);
  border: 2px solid var(--coral);
  font-family: 'Ubuntu', sans-serif;
  font-size: 0.95rem;
  font-weight: 400;
  cursor: pointer;
  transition: background 0.2s, opacity 0.2s;
}

.form-submit:hover:not(:disabled) {
  background: var(--coral-hover);
  border-color: var(--coral-hover);
}

.form-submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.form-message {
  display: none;
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  border-radius: 3px;
  font-size: 0.95rem;
}

.form-message.success {
  display: block;
  background: #f0fff4;
  color: #276749;
  border: 1px solid #c6f6d5;
}

.form-message.error {
  display: block;
  background: #fff5f5;
  color: #c53030;
  border: 1px solid #feb2b2;
}

.cf-turnstile {
  margin-bottom: 1rem;
}

/* === Footer === */

.site-footer {
  background: var(--navy);
  color: #b0bec5;
  padding: 2.5rem 0;
  font-size: 0.9rem;
  line-height: 1.6;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 3rem;
}

.footer-desc {
  flex: 1;
  max-width: 520px;
}

.footer-nav {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer-nav a {
  color: #b0bec5;
  font-size: 0.9rem;
  transition: color 0.2s;
}

.footer-nav a:hover {
  color: var(--coral);
}

/* === 404 === */

.error-page {
  text-align: center;
  padding: 6rem 1.5rem;
}

.error-page h1 {
  font-size: 4rem;
  color: var(--navy);
  margin-bottom: 0.5rem;
}

.error-page p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

/* === Responsive === */

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .banner {
    height: 240px;
  }

  .banner-home {
    height: 300px;
  }

  .banner h1 {
    font-size: 1.75rem;
  }

  .banner-home h1 {
    font-size: 2rem;
  }

  .bio-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .bio-photo {
    width: 180px;
    min-width: 180px;
  }

  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .form-row {
    flex-direction: column;
    gap: 0;
  }

  .footer-inner {
    flex-direction: column;
    gap: 1.5rem;
  }

  .footer-nav {
    gap: 1rem;
  }

  .section {
    padding: 2rem 0;
  }
}

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

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

  .banner {
    height: 200px;
  }

  .banner-home {
    height: 260px;
  }
}
