:root {
  --bg: #f8f7f2;
  --surface: #ffffff;
  --ink: #1f2430;
  --muted: #525b6b;
  --brand: #0b6e4f;
  --brand-2: #0f8f66;
  --border: #d8ddcf;
}

* {
  box-sizing: border-box;
}

html {
  overflow-x: clip;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: "Segoe UI", Tahoma, Verdana, sans-serif;
  color: var(--ink);
  background: var(--bg);
}

body {
  min-width: 0;
  overflow-x: hidden;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(6px);
}

.nav-inner {
  width: min(1100px, 92vw);
  margin: 0 auto;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.brand small {
  display: block;
  font-size: 0.75rem;
  color: var(--muted);
  font-weight: 500;
}

.brand-with-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-with-logo img {
  width: 58px;
  height: auto;
  flex: 0 0 auto;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.nav-links a {
  text-decoration: none;
  padding: 8px 10px;
  border-radius: 8px;
  color: var(--muted);
}

.nav-links a:hover,
.nav-links a.active {
  background: #edf5f1;
  color: var(--brand);
}

main {
  width: min(1100px, 92vw);
  margin: 0 auto;
  padding: 32px 0 60px;
}

.hero {
  border-radius: 16px;
  overflow: hidden;
  background: #e9f3ee;
  border: 1px solid var(--border);
}

.hero-image {
  width: 100%;
  height: min(48vw, 420px);
  background: url('/assets/hero.svg') center/cover no-repeat;
}

.hero-copy {
  padding: 28px;
  background: var(--surface);
}

.hero h1,
.page-title {
  margin: 0 0 10px;
  line-height: 1.2;
}

.hero p,
.lead,
p {
  color: var(--muted);
  line-height: 1.65;
}

.grid {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.card {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 12px;
  padding: 16px;
}

.card h3 {
  margin-top: 0;
}

.button {
  display: inline-block;
  margin-top: 8px;
  background: var(--brand);
  color: #fff;
  text-decoration: none;
  padding: 10px 14px;
  border-radius: 10px;
  font-weight: 600;
}

.button:hover {
  background: var(--brand-2);
}

.secondary-button {
  background: transparent;
  color: var(--brand);
  border: 1px solid var(--brand);
}

.secondary-button:hover {
  background: #edf5f1;
}

.home-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.9fr);
  align-items: stretch;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
}

.home-hero-copy {
  padding: clamp(28px, 5vw, 64px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.home-hero h1 {
  margin: 0 0 16px;
  font-size: clamp(2.2rem, 6vw, 4.8rem);
  line-height: 1.05;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--brand);
  font-weight: 700;
}

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

.home-hero-media {
  min-height: 420px;
}

.home-hero-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.content-section {
  margin-top: 28px;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 12px;
  padding: clamp(22px, 4vw, 40px);
}

.content-section h2 {
  margin-top: 0;
}

.page-hero {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
}

.page-hero img {
  display: block;
  width: 100%;
  height: min(44vw, 420px);
  object-fit: cover;
}

.page-hero-copy {
  padding: clamp(22px, 4vw, 40px);
}

.page-hero-copy h1 {
  margin: 0 0 10px;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1.1;
}

.simple-list {
  margin: 18px 0 0;
  padding-left: 1.25rem;
}

.simple-list li {
  margin: 0 0 12px;
  color: var(--muted);
  line-height: 1.65;
}

.event-letter {
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
}

.signature {
  margin-top: 24px;
}

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

.two-column,
.contact-section {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}

.impact-grid .card {
  border-radius: 8px;
}

.image-carousel {
  margin-top: 28px;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  max-width: 100%;
}

.carousel-track {
  display: flex;
  width: 100%;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
}

.carousel-track::-webkit-scrollbar {
  display: none;
}

.carousel-slide {
  flex: 0 0 100%;
  min-width: 0;
  max-width: 100%;
  margin: 0;
  scroll-snap-align: center;
}

.carousel-slide img {
  display: block;
  width: 100%;
  height: min(62vw, 540px);
  object-fit: contain;
  background: #f0f2ec;
}

.carousel-slide.portrait-slide img {
  object-fit: contain;
  background: #f0f2ec;
}

.carousel-button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  background: rgba(31, 36, 48, 0.7);
  color: #fff;
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.carousel-button:hover {
  background: rgba(31, 36, 48, 0.9);
}

.carousel-button.prev {
  left: 12px;
}

.carousel-button.next {
  right: 12px;
}

.carousel-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 12px;
  display: flex;
  justify-content: center;
  gap: 8px;
}

.carousel-dot {
  width: 9px;
  height: 9px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  cursor: pointer;
}

.carousel-dot[aria-current="true"] {
  background: var(--brand);
}

.profile-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.7fr) minmax(0, 1.3fr);
  gap: 28px;
  align-items: start;
}

address {
  color: var(--muted);
  font-style: normal;
  line-height: 1.75;
}

.contact-form {
  display: grid;
  gap: 12px;
}

.contact-form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-weight: 600;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 11px 12px;
  font: inherit;
  color: var(--ink);
  background: #fff;
}

.contact-form textarea {
  resize: vertical;
}

.content {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 12px;
  padding: 22px;
}

ul {
  color: var(--muted);
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 24px 0;
  color: var(--muted);
}

.footer-inner {
  width: min(1100px, 92vw);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

@media (max-width: 820px) {
  .nav-inner {
    align-items: flex-start;
    flex-direction: column;
    padding: 14px 0;
  }

  .hero-copy {
    padding: 20px;
  }

  .home-hero,
  .two-column,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .page-hero img {
    height: 260px;
  }

  .home-hero-media {
    min-height: 260px;
    order: -1;
  }

  .profile-layout {
    grid-template-columns: 1fr;
  }

  .carousel-slide img {
    height: min(82vw, 420px);
  }
}

@media (max-width: 520px) {
  .nav-links {
    gap: 6px;
  }

  .nav-links a {
    padding: 8px 6px;
  }

  main {
    width: min(100% - 28px, 1100px);
    padding-top: 20px;
  }

  .site-header,
  .nav-inner,
  .home-hero,
  .content-section,
  .image-carousel,
  .contact-section {
    max-width: 100%;
  }

  .home-hero-copy {
    padding: 22px;
  }

  .home-hero h1 {
    font-size: 2.35rem;
  }

  .hero-actions .button {
    width: 100%;
    text-align: center;
  }

  .carousel-button {
    width: 36px;
    height: 36px;
    font-size: 1.5rem;
  }

  .carousel-slide img {
    height: 68vw;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}
