:root {
  --primary: #f97316;
  --primary-dark: #c2410c;
  --primary-soft: #fff7ed;
  --ink: #1f2937;
  --muted: #667085;
  --line: #e5e7eb;
  --white: #ffffff;
  --forest: #166534;
  --gold: #facc15;
  --shadow: 0 18px 45px rgba(31, 41, 55, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", Arial, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
}

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

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

.container {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

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

.navbar {
  width: min(1180px, calc(100% - 32px));
  min-height: 78px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

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

.brand-mark {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: var(--white);
  background: var(--primary);
  font-weight: 800;
}

.brand-logo {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
}

.brand-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 1rem;
}

.brand small {
  color: var(--muted);
  font-size: 0.78rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-links a {
  padding: 10px 14px;
  border-radius: 8px;
  color: #374151;
  font-weight: 600;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary-dark);
  background: var(--primary-soft);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.menu-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--ink);
}

.hero {
  position: relative;
  min-height: calc(100vh - 78px);
  display: flex;
  align-items: center;
  isolation: isolate;
  background: url("https://images.unsplash.com/photo-1593113598332-cd288d649433?auto=format&fit=crop&w=1800&q=85") center/cover no-repeat;
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 72px;
  background: linear-gradient(180deg, rgba(255,255,255,0), #ffffff);
  z-index: 1;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(90deg, rgba(31, 41, 55, 0.78), rgba(31, 41, 55, 0.42), rgba(31, 41, 55, 0.2));
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 72px 0 112px;
  color: var(--white);
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: var(--gold);
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  margin-top: 0;
  line-height: 1.12;
}

.hero h1 {
  max-width: 760px;
  margin-bottom: 18px;
  font-size: clamp(3rem, 8vw, 6.6rem);
  font-weight: 800;
}

.hero p:not(.eyebrow) {
  max-width: 660px;
  margin: 0 0 30px;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
}

.hero-actions,
.center-action {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 20px;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
}

.btn-primary {
  color: var(--white);
  background: var(--primary);
  box-shadow: 0 10px 22px rgba(249, 115, 22, 0.25);
}

.btn-primary:hover {
  background: var(--primary-dark);
}

.btn-secondary {
  color: var(--white);
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.45);
}

.section {
  padding: 82px 0;
}

.soft-bg,
.intro-band {
  background: var(--primary-soft);
}

.split-grid,
.two-column,
.contact-grid,
.footer-grid,
.video-upload {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 48px;
  align-items: center;
}

.split-grid h2,
.section-heading h2,
.two-column h2,
.contact-details h2 {
  margin-bottom: 14px;
  font-size: clamp(2rem, 4vw, 3.1rem);
}

.section-heading {
  max-width: 720px;
  margin-bottom: 34px;
}

.section-heading p:last-child,
.split-grid p,
.content-copy,
.contact-details {
  color: var(--muted);
  font-size: 1.05rem;
}

.upload-panel {
  min-height: 330px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 10px;
  padding: 32px;
  border: 2px dashed rgba(249, 115, 22, 0.48);
  border-radius: 8px;
  background: var(--primary-soft);
  text-align: center;
  cursor: pointer;
}

.upload-icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--white);
  background: var(--primary);
  font-size: 2rem;
  font-weight: 500;
}

.upload-panel input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.video-preview video {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  object-fit: cover;
  background: #111827;
  box-shadow: var(--shadow);
}

.single-video {
  width: min(900px, 100%);
  margin: 0 auto;
}

.empty-media {
  min-height: 420px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: var(--white);
  background-position: center;
  background-size: cover;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.empty-media::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(31, 41, 55, 0.58);
}

.empty-media span {
  position: relative;
  z-index: 1;
  padding: 12px 16px;
  border-radius: 8px;
  background: rgba(249, 115, 22, 0.92);
  font-weight: 800;
}

.gallery-grid,
.trustee-grid,
.value-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.gallery-card,
.trustee-card,
.value-grid article,
.contact-form {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 12px 30px rgba(31, 41, 55, 0.08);
}

.gallery-card {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.gallery-card img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gallery-card:hover img {
  transform: scale(1.04);
}

.gallery-card span {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--white);
  background: rgba(31, 41, 55, 0.78);
  font-weight: 800;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 72px 82px;
  background: rgba(17, 24, 39, 0.94);
}

.lightbox.open {
  display: flex;
}

.lightbox-image {
  max-width: 100%;
  max-height: 78vh;
  border-radius: 8px;
  object-fit: contain;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.4);
}

.lightbox-caption {
  position: absolute;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  width: min(720px, calc(100% - 32px));
  color: var(--white);
  text-align: center;
  font-weight: 800;
}

.lightbox-button {
  position: absolute;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 50%;
  color: var(--white);
  background: rgba(255, 255, 255, 0.14);
  cursor: pointer;
  font-size: 1.75rem;
  line-height: 1;
}

.lightbox-button:hover {
  background: var(--primary);
  border-color: var(--primary);
}

.lightbox-close {
  top: 22px;
  right: 22px;
}

.lightbox-prev {
  top: 50%;
  left: 24px;
  transform: translateY(-50%);
}

.lightbox-next {
  top: 50%;
  right: 24px;
  transform: translateY(-50%);
}

.center-action {
  justify-content: center;
  margin-top: 32px;
}

.trustee-card {
  padding: 24px;
  text-align: center;
}

.trustee-card img {
  width: 142px;
  height: 142px;
  margin: 0 auto 18px;
  border-radius: 50%;
  object-fit: cover;
  border: 5px solid var(--primary-soft);
}

.trustee-card h3,
.value-grid h3 {
  margin-bottom: 6px;
  font-size: 1.25rem;
}

.trustee-card p,
.value-grid p {
  margin: 0;
  color: var(--muted);
}

.page-hero {
  min-height: 380px;
  display: flex;
  align-items: end;
  padding: 80px 0;
  color: var(--white);
  background-size: cover;
  background-position: center;
  position: relative;
  isolation: isolate;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(90deg, rgba(31, 41, 55, 0.78), rgba(31, 41, 55, 0.32));
}

.page-hero .container {
  position: relative;
  z-index: 1;
}

.about-hero {
  background-image: url("https://images.unsplash.com/photo-1559027615-cd4628902d4a?auto=format&fit=crop&w=1600&q=85");
}

.gallery-hero {
  background-image: url("https://images.unsplash.com/photo-1469571486292-0ba58a3f068b?auto=format&fit=crop&w=1600&q=85");
}

.contact-hero {
  background-image: url("https://images.unsplash.com/photo-1542810634-71277d95dcbb?auto=format&fit=crop&w=1600&q=85");
}

.page-hero h1 {
  max-width: 820px;
  margin-bottom: 0;
  font-size: clamp(2.5rem, 6vw, 4.8rem);
}

.value-grid article {
  padding: 28px;
}

.full-gallery .gallery-card img {
  height: 320px;
}

.contact-details p {
  margin: 10px 0;
}

.contact-form {
  padding: 28px;
}

.contact-form label {
  display: block;
  margin: 14px 0 8px;
  font-weight: 800;
}

.contact-form label:first-child {
  margin-top: 0;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 3px solid rgba(249, 115, 22, 0.18);
  border-color: var(--primary);
}

.contact-form button {
  width: 100%;
  margin-top: 18px;
}

.site-footer {
  padding: 54px 0 22px;
  color: #f9fafb;
  background: #1f2937;
}

.site-footer p,
.site-footer a {
  color: #d1d5db;
}

.site-footer h2,
.site-footer h3 {
  margin-bottom: 12px;
}

.site-footer a {
  display: block;
  margin: 8px 0;
}

.copyright {
  width: min(1120px, calc(100% - 32px));
  margin: 32px auto 0;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 0.9rem;
}

@media (max-width: 860px) {
  .navbar {
    min-height: 70px;
  }

  .menu-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 70px;
    left: 16px;
    right: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
    box-shadow: var(--shadow);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    padding: 12px 14px;
  }

  .hero {
    min-height: calc(100vh - 70px);
  }

  .hero-content {
    padding: 56px 0 96px;
  }

  .split-grid,
  .two-column,
  .contact-grid,
  .footer-grid,
  .video-upload,
  .gallery-grid,
  .trustee-grid,
  .value-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 64px 0;
  }
}

@media (max-width: 520px) {
  .brand small {
    display: none;
  }

  .hero-actions .btn,
  .center-action .btn {
    width: 100%;
  }

  .hero h1 {
    font-size: clamp(2.7rem, 18vw, 4rem);
  }

  .gallery-card img,
  .full-gallery .gallery-card img {
    height: 240px;
  }

  .upload-panel {
    min-height: 250px;
  }

  .lightbox {
    padding: 72px 18px 86px;
  }

  .lightbox-image {
    max-height: 68vh;
  }

  .lightbox-prev,
  .lightbox-next {
    top: auto;
    bottom: 22px;
    transform: none;
  }

  .lightbox-prev {
    left: 18px;
  }

  .lightbox-next {
    right: 18px;
  }
}
