:root {
  --ink: #f4f7f0;
  --muted: #b9c5bb;
  --line: rgba(255, 255, 255, 0.14);
  --paper: #070b08;
  --white: #ffffff;
  --green: #00533f;
  --mint: #18b78a;
  --wood: #bd8a4a;
  --blue: #007a9b;
  --coral: #e7583d;
  --panel: rgba(14, 22, 17, 0.88);
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.46);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 80% 8%, rgba(24, 183, 138, 0.14), transparent 34%),
    linear-gradient(180deg, #050806 0%, #0b120e 42%, #050806 100%);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

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

button,
input,
select,
textarea {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 12px clamp(18px, 4vw, 56px);
  background: rgba(5, 8, 6, 0.9);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(14px);
}

.brand img {
  width: 92px;
}

nav {
  display: flex;
  justify-content: center;
  gap: clamp(14px, 3vw, 34px);
  color: #d3ddd5;
  font-size: 0.92rem;
  font-weight: 700;
}

nav a:hover {
  color: var(--mint);
}

.header-cta,
.primary-button,
.secondary-button,
.compact-actions a,
.product-grid button,
.donor-form button,
.edit-toggle,
.reset-copy,
.download-enquiries {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 8px;
  font-weight: 800;
  cursor: pointer;
}

.header-cta,
.primary-button,
.donor-form button {
  background: var(--mint);
  color: white;
  padding: 0 18px;
}

.secondary-button,
.compact-actions a,
.product-grid button,
.product-button,
.edit-toggle,
.reset-copy,
.download-enquiries {
  background: rgba(255, 255, 255, 0.08);
  color: var(--ink);
  border: 1px solid var(--line);
  padding: 0 18px;
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: end;
  gap: 8px;
}

.edit-toggle.active {
  background: var(--wood);
  color: #160f08;
}

.reset-copy,
.download-enquiries {
  display: none;
}

[hidden] {
  display: none !important;
}

.edit-help {
  display: none;
  color: #d4ddd5;
  font-size: 0.82rem;
  font-weight: 800;
}

.text-color-control {
  display: none;
  min-height: 44px;
  align-items: center;
  gap: 8px;
  padding: 0 10px 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: #d4ddd5;
  font-size: 0.82rem;
  font-weight: 800;
}

.text-color-control input {
  width: 34px;
  min-height: 28px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  cursor: pointer;
}

body.copy-editing .reset-copy,
body.copy-editing .edit-help,
body.admin-logged-in .edit-toggle,
body.admin-logged-in .text-color-control,
body.admin-logged-in .download-enquiries {
  display: inline-flex;
}

[contenteditable="true"] {
  outline: 2px dashed rgba(24, 183, 138, 0.7);
  outline-offset: 4px;
  border-radius: 4px;
}

[contenteditable="true"]:focus {
  outline-color: var(--wood);
  background: rgba(24, 183, 138, 0.08);
}

.hero {
  min-height: calc(100vh - 78px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  align-items: end;
  gap: clamp(18px, 4vw, 40px);
  padding: clamp(24px, 5vw, 64px);
  position: relative;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

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

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(5, 8, 6, 0.96) 0%, rgba(5, 8, 6, 0.83) 46%, rgba(5, 8, 6, 0.22) 100%),
    linear-gradient(0deg, rgba(5, 8, 6, 0.48), rgba(5, 8, 6, 0.08));
}

.hero-content {
  max-width: 760px;
  padding-bottom: 36px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--mint);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
h4,
p {
  margin-top: 0;
}

h1 {
  max-width: 750px;
  margin-bottom: 18px;
  font-size: clamp(2.6rem, 6vw, 5.8rem);
  line-height: 0.95;
  letter-spacing: 0;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.7rem);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  font-size: clamp(1.25rem, 2vw, 1.7rem);
}

.hero-copy,
.section-copy p,
.portal-intro p {
  max-width: 660px;
  color: #d5ded6;
  font-size: clamp(1rem, 2vw, 1.18rem);
  line-height: 1.65;
}

.hero-actions,
.compact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-actions .primary-button {
  background: var(--coral);
  box-shadow: 0 14px 34px rgba(231, 88, 61, 0.32);
}

.hero-actions .primary-button:hover {
  background: #f16a42;
}

.hero-panel,
.portal-shell,
.product-grid article,
.impact-band article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.hero-panel {
  align-self: center;
  padding: 22px;
}

.panel-logo {
  width: 116px;
  margin-bottom: 18px;
}

.hero-panel > p {
  margin-bottom: 16px;
  color: #d3ddd5;
  font-weight: 800;
}

.metric-grid,
.stats-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.metric-grid span,
.stats-row span {
  min-height: 92px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 14px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
  color: #c4cec6;
  font-size: 0.84rem;
  font-weight: 800;
}

.metric-grid strong,
.stats-row strong {
  color: white;
  font-size: 1.9rem;
  line-height: 1;
}

.impact-band {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  max-width: 1240px;
  margin: -34px auto 0;
  padding: 0 18px;
  position: relative;
  z-index: 3;
}

.impact-band article {
  position: relative;
  min-height: 154px;
  overflow: hidden;
  padding: 18px 16px;
  text-align: center;
  background: #07100b;
  box-shadow: 0 20px 54px rgba(0, 0, 0, 0.42);
}

.impact-band article::before,
.impact-band article::after {
  content: "";
  position: absolute;
  inset: 0;
}

.impact-band article::before {
  background-position: center;
  background-size: cover;
  filter: saturate(0.92) contrast(1.1);
  transform: scale(1.02);
}

.impact-band article::after {
  background:
    linear-gradient(180deg, rgba(4, 8, 6, 0.35), rgba(4, 8, 6, 0.82)),
    rgba(4, 8, 6, 0.28);
}

.impact-band article > * {
  position: relative;
  z-index: 1;
}

.impact-band article:nth-child(1)::before {
  background-image: var(--cms-bg, url("assets/impact-products.jpg"));
}

.impact-band article:nth-child(2)::before {
  background-image: var(--cms-bg, url("assets/impact-wood.jpg"));
}

.impact-band article:nth-child(3)::before {
  background-image: var(--cms-bg, url("assets/impact-soft-plastics.jpg"));
}

.impact-band article:nth-child(4)::before {
  background-image: var(--cms-bg, url("assets/team-in-action.jpg"));
}

.impact-band article:nth-child(5)::before {
  background-image: var(--cms-bg, url("assets/impact-fencing.jpg"));
}

.metric-icon {
  display: inline-flex;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  background: #8fc545;
  color: white;
  font-size: 0.7rem;
  font-weight: 900;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.38);
}

.impact-band article:nth-child(2) .metric-icon {
  background: var(--wood);
}

.impact-band article:nth-child(3) .metric-icon {
  background: var(--blue);
}

.impact-band article:nth-child(4) .metric-icon {
  background: var(--coral);
}

.impact-band article:nth-child(5) .metric-icon {
  background: var(--green);
}

.impact-band strong {
  display: block;
  margin-bottom: 4px;
  color: white;
  font-size: clamp(1.75rem, 2.6vw, 3rem);
  line-height: 0.95;
  text-shadow: 0 3px 18px rgba(0, 0, 0, 0.72);
}

.impact-band p {
  color: #9fce5a;
  font-size: clamp(0.88rem, 1.2vw, 1.06rem);
  font-weight: 900;
  line-height: 1.12;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.86);
}

.product-grid p,
.document-preview p,
.donor-dashboard,
.tool-form label,
.donor-form label {
  color: var(--muted);
  line-height: 1.5;
}

.team-action-band {
  position: relative;
  min-height: clamp(360px, 48vw, 660px);
  margin-top: clamp(42px, 6vw, 78px);
  overflow: hidden;
  border-top: 1px solid rgba(24, 183, 138, 0.2);
  border-bottom: 1px solid rgba(24, 183, 138, 0.2);
  background: #050806;
}

.team-action-band img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.team-action-band::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(4, 8, 6, 0.88) 0%, rgba(4, 8, 6, 0.52) 38%, rgba(4, 8, 6, 0.08) 72%),
    linear-gradient(0deg, rgba(4, 8, 6, 0.52), rgba(4, 8, 6, 0.04));
}

.team-action-overlay {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: inherit;
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(42px, 8vw, 96px) 18px;
  flex-direction: column;
  justify-content: flex-end;
  color: white;
}

.team-action-overlay h2 {
  max-width: 720px;
  margin: 0;
  color: white;
  font-size: clamp(2.1rem, 5.2vw, 5rem);
  line-height: 0.98;
}

.feature-video {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(24px, 5vw, 56px);
  align-items: center;
  max-width: 1240px;
  margin: 0 auto;
  padding: clamp(72px, 10vw, 118px) 18px 0;
  color: var(--ink);
}

.feature-video-copy {
  padding: clamp(18px, 3vw, 30px);
  border: 1px solid var(--line);
  border-left: 4px solid var(--mint);
  border-radius: 8px;
  background:
    linear-gradient(160deg, rgba(24, 183, 138, 0.13), rgba(255, 255, 255, 0.04)),
    rgba(14, 22, 17, 0.88);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.feature-video-copy p:not(.eyebrow) {
  color: #d5ded6;
  font-size: 1.08rem;
  line-height: 1.65;
}

.youtube-frame {
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #050806;
  box-shadow: var(--shadow);
}

.youtube-frame iframe {
  width: 100%;
  height: 100%;
  display: block;
}

.workshop-youtube {
  align-self: center;
}

.split-section,
.products,
.portal {
  max-width: 1240px;
  margin: 0 auto;
  padding: clamp(72px, 10vw, 124px) 18px 0;
  color: var(--ink);
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: clamp(28px, 6vw, 78px);
  margin-top: 42px;
}

.split-section .section-copy {
  padding: clamp(18px, 3vw, 34px);
  border: 1px solid var(--line);
  border-left: 4px solid var(--mint);
  border-radius: 8px;
  background:
    linear-gradient(160deg, rgba(24, 183, 138, 0.13), rgba(255, 255, 255, 0.04)),
    rgba(14, 22, 17, 0.88);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.split-section .eyebrow,
.products .eyebrow,
.portal .eyebrow {
  color: var(--mint);
}

.section-copy p,
.portal-intro p {
  color: #d5ded6;
}

.compact-actions a,
.product-grid button,
.product-button {
  background: var(--green);
  color: white;
  border-color: var(--green);
}

.product-button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  width: fit-content;
  padding: 0 18px;
  border: 1px solid var(--green);
  border-radius: 8px;
  font-weight: 800;
}

.image-stack {
  display: grid;
  grid-template-columns: 0.9fr 0.9fr 1fr;
  gap: 14px;
  align-items: center;
}

.image-stack img,
.image-stack video,
.product-grid img,
.product-grid video {
  width: 100%;
  object-fit: cover;
  border-radius: 8px;
}

.instagram-reel-embed {
  min-height: 430px;
  display: grid;
  align-items: center;
  justify-items: center;
  overflow: auto;
  border-radius: 8px;
  background: #050806;
  box-shadow: var(--shadow);
}

.instagram-reel-embed .instagram-media {
  min-width: min(326px, 100%) !important;
  max-width: 430px !important;
  width: 100% !important;
  margin: 0 auto !important;
}

.instagram-reel-embed > a,
.instagram-reel-embed .instagram-media > a {
  color: var(--mint);
  font-weight: 900;
}

.image-stack video:first-child {
  height: 430px;
  background: #050806;
  box-shadow: var(--shadow);
}

.image-stack img:last-child,
.image-stack video:last-child {
  height: 300px;
  background: #050806;
  box-shadow: var(--shadow);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.section-heading h2 {
  max-width: 760px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.product-grid article {
  background:
    linear-gradient(180deg, rgba(24, 183, 138, 0.08), rgba(255, 255, 255, 0.03)),
    rgba(14, 22, 17, 0.9);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.product-grid img,
.product-grid video {
  height: 360px;
  border-radius: 0;
  background: #050806;
}

.product-grid div {
  padding: 24px;
}

.product-grid span {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--mint);
  font-size: 0.8rem;
  font-weight: 900;
  text-transform: uppercase;
}

.product-grid h3 {
  margin-bottom: 10px;
  color: white;
}

.portal {
  padding-bottom: 72px;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(320px, 1fr);
  gap: clamp(22px, 5vw, 56px);
  align-items: stretch;
  max-width: 1240px;
  margin: 0 auto;
  padding: clamp(72px, 10vw, 110px) 18px;
  color: var(--ink);
}

.contact-copy {
  align-self: center;
}

.contact-section p:not(.eyebrow) {
  max-width: 720px;
  color: #d5ded6;
  font-size: 1.08rem;
  line-height: 1.65;
}

.contact-section .eyebrow {
  color: var(--mint);
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: start;
  gap: 10px;
  margin-top: 24px;
}

.contact-actions a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: white;
  border: 1px solid var(--line);
  font-weight: 900;
}

.contact-actions .instagram-link {
  background: var(--mint);
  border-color: var(--mint);
}

.contact-form {
  display: grid;
  gap: 14px;
  padding: clamp(20px, 3vw, 30px);
  border: 1px solid var(--line);
  border-left: 4px solid var(--mint);
  border-radius: 8px;
  background:
    linear-gradient(160deg, rgba(24, 183, 138, 0.13), rgba(255, 255, 255, 0.04)),
    rgba(14, 22, 17, 0.9);
  box-shadow: var(--shadow);
}

.contact-form label {
  color: #d5ded6;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  min-height: 46px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: white;
}

.contact-form textarea {
  min-height: 128px;
  padding-top: 12px;
  resize: vertical;
}

.contact-form select option {
  color: #13201a;
}

.contact-form button {
  min-height: 48px;
  border: 0;
  border-radius: 8px;
  background: var(--mint);
  color: white;
  font-weight: 900;
  cursor: pointer;
}

.contact-form button:disabled {
  opacity: 0.64;
  cursor: progress;
}

.form-status {
  min-height: 22px;
  margin: 0;
  color: var(--mint);
  font-weight: 900;
}

.form-status.error {
  color: #ffb199;
}

.instagram-section {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(24px, 5vw, 56px);
  align-items: stretch;
  max-width: 1240px;
  margin: 0 auto;
  padding: clamp(72px, 10vw, 110px) 18px;
  color: #f4f7f0;
}

.instagram-copy,
.instagram-grid {
  width: min(100%, 1240px);
}

.instagram-copy {
  justify-self: end;
  max-width: 520px;
}

.instagram-copy p:not(.eyebrow) {
  color: #c9d5ce;
  font-size: 1.08rem;
  line-height: 1.65;
}

.instagram-primary,
.instagram-grid a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-weight: 900;
}

.instagram-primary {
  margin-top: 8px;
  padding: 0 18px;
  background: var(--mint);
  color: white;
}

.instagram-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  max-width: 760px;
}

.instagram-grid a {
  min-height: 260px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  padding: 22px;
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(24, 183, 138, 0.08), rgba(0, 83, 63, 0.28)),
    rgba(255, 255, 255, 0.06);
  color: white;
  box-shadow: var(--shadow);
}

.social-media-grid {
  max-width: 820px;
}

.social-media-card {
  min-height: 420px;
  position: relative;
  overflow: hidden;
}

.social-media-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(5, 8, 6, 0.02), rgba(5, 8, 6, 0.84));
}

.social-media-card img,
.social-media-card video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.social-media-card span,
.social-media-card strong,
.social-media-card small {
  position: relative;
  z-index: 2;
}

.instagram-grid span {
  color: var(--mint);
  font-size: 0.8rem;
  text-transform: uppercase;
}

.instagram-grid strong {
  margin: 10px 0;
  font-size: 1.45rem;
  line-height: 1.1;
}

.instagram-grid small {
  color: #c9d5ce;
  font-size: 0.94rem;
  line-height: 1.45;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 24px;
  max-width: 1240px;
  margin: 0 auto;
  padding: 24px 18px 34px;
  border-top: 1px solid var(--line);
  color: #9fac9f;
  font-size: 0.9rem;
  font-weight: 700;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: var(--mint);
}

.sitemap-page {
  min-height: 72vh;
  padding: clamp(58px, 9vw, 110px) 18px;
  background:
    radial-gradient(circle at 82% 14%, rgba(24, 183, 138, 0.14), transparent 34%),
    linear-gradient(180deg, #050806 0%, #0b120e 100%);
}

.sitemap-hero,
.sitemap-links {
  max-width: 1120px;
  margin: 0 auto;
}

.sitemap-hero {
  margin-bottom: clamp(30px, 5vw, 58px);
}

.sitemap-hero p:not(.eyebrow) {
  max-width: 680px;
  color: #d5ded6;
  font-size: clamp(1rem, 2vw, 1.18rem);
  line-height: 1.65;
}

.sitemap-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.sitemap-links article {
  padding: clamp(20px, 3vw, 28px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(160deg, rgba(24, 183, 138, 0.12), rgba(255, 255, 255, 0.04)),
    rgba(14, 22, 17, 0.88);
  box-shadow: var(--shadow);
}

.sitemap-links h2 {
  margin-bottom: 18px;
  font-size: 1.25rem;
}

.sitemap-links ul {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.sitemap-links a {
  color: #d5ded6;
  font-weight: 750;
}

.sitemap-links a:hover {
  color: var(--mint);
}

.login-page {
  background:
    linear-gradient(90deg, rgba(5, 8, 6, 0.94), rgba(5, 8, 6, 0.7)),
    url("assets/hero-impact.jpg") center / cover fixed;
}

.login-hero {
  min-height: calc(100vh - 78px);
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
  max-width: 1240px;
  margin: 0 auto;
  padding: clamp(36px, 7vw, 88px) 18px;
}

.login-intro {
  max-width: 520px;
}

.login-intro h1 {
  font-size: clamp(2.6rem, 5vw, 4.8rem);
}

.login-intro p {
  color: #d5ded6;
  font-size: 1.08rem;
  line-height: 1.65;
}

.login-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.login-options article {
  min-height: 520px;
  display: flex;
  flex-direction: column;
  padding: clamp(20px, 3vw, 30px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(24, 183, 138, 0.14), rgba(255, 255, 255, 0.04)),
    rgba(11, 18, 14, 0.9);
  box-shadow: var(--shadow);
}

.login-options span {
  color: var(--mint);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.login-options h2 {
  margin: 16px 0 12px;
  font-size: clamp(1.8rem, 3vw, 2.7rem);
  line-height: 1.02;
}

.login-options p {
  color: #c9d5ce;
  line-height: 1.6;
}

.login-options form {
  display: grid;
  gap: 14px;
  margin-top: auto;
}

.login-options label {
  display: grid;
  gap: 8px;
  color: #c9d5ce;
  font-weight: 800;
}

.login-options input {
  width: 100%;
  min-height: 46px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: white;
}

.login-options button {
  min-height: 46px;
  border: 0;
  border-radius: 8px;
  background: var(--mint);
  color: white;
  font-weight: 900;
  cursor: pointer;
}

.portal-intro {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr);
  gap: 32px;
  align-items: end;
  margin-bottom: 24px;
}

.portal-shell {
  padding: 14px;
  background: #0c1510;
}

.login-gate {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.login-gate article {
  min-height: 300px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(18px, 3vw, 28px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(24, 183, 138, 0.12), rgba(255, 255, 255, 0.04)),
    rgba(255, 255, 255, 0.05);
  color: #f4f7f0;
}

.login-gate span {
  color: var(--mint);
  font-size: 0.8rem;
  font-weight: 900;
  text-transform: uppercase;
}

.login-gate h3 {
  max-width: 420px;
  margin: 18px 0 12px;
  font-size: clamp(1.6rem, 3vw, 2.5rem);
  line-height: 1.05;
}

.login-gate p {
  max-width: 520px;
  color: #c9d5ce;
  line-height: 1.6;
}

.login-gate .login-button,
.logout-button {
  display: inline-flex;
  min-height: 44px;
  width: fit-content;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--mint);
  color: white;
  font-weight: 900;
  cursor: pointer;
}

.portal-auth {
  display: none;
}

body:has(#staff-panel:target) #login-gate,
body:has(#donor-panel:target) #login-gate {
  display: none;
}

body:has(#staff-panel:target) #portal-auth,
body:has(#donor-panel:target) #portal-auth {
  display: block;
}

body:has(#staff-panel:target) #staff-panel,
body:has(#donor-panel:target) #donor-panel {
  display: block;
}

body:has(#donor-panel:target) #staff-panel,
body:has(#staff-panel:target) #donor-panel {
  display: none;
}

.auth-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.logout-button {
  background: rgba(255, 255, 255, 0.08);
}

.tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}

.tab {
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
  color: #d4ddd5;
  font-weight: 900;
  cursor: pointer;
}

.tab.active {
  background: var(--mint);
  color: white;
}

.panel {
  display: none;
  padding: clamp(18px, 3vw, 28px);
  border-radius: 8px;
  background: #f8faf5;
  color: #13201a;
}

.panel.active {
  display: block;
}

.panel-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.status-pill {
  align-self: start;
  padding: 7px 10px;
  border-radius: 999px;
  background: white;
  color: var(--green);
  border: 1px solid var(--line);
  font-size: 0.78rem;
  font-weight: 900;
}

.staff-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(280px, 1fr);
  gap: 18px;
  margin-bottom: 18px;
}

.tool-form,
.donor-form {
  display: grid;
  gap: 12px;
}

label {
  display: grid;
  gap: 7px;
  font-weight: 800;
}

input,
select {
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid #dbe3dc;
  border-radius: 8px;
  background: white;
  color: #13201a;
}

.document-preview {
  min-height: 300px;
  padding: 24px;
  border: 1px solid #dbe3dc;
  border-radius: 8px;
  background: white;
}

.document-preview img {
  width: 82px;
  margin-bottom: 28px;
}

.document-preview span {
  color: var(--green);
  font-weight: 900;
  text-transform: uppercase;
}

.document-preview h4 {
  margin: 14px 0 8px;
  font-size: 1.4rem;
}

.document-preview strong {
  display: block;
  margin-top: 22px;
  font-size: 2rem;
}

.stats-row {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.donor-form {
  grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
  align-items: end;
  margin-bottom: 18px;
}

.donor-dashboard {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 18px;
}

.donor-dashboard > div,
#donor-log {
  margin: 0;
  padding: 18px;
  border: 1px solid #dbe3dc;
  border-radius: 8px;
  background: white;
}

.donor-dashboard strong {
  display: block;
  margin-top: 8px;
  color: #13201a;
  font-size: 2.2rem;
}

#donor-log {
  min-height: 120px;
  list-style: none;
}

#donor-log li {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px solid #dbe3dc;
}

#donor-log li:last-child {
  border-bottom: 0;
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: auto auto;
  }

  .header-actions {
    flex-wrap: wrap;
  }

  nav {
    display: none;
  }

  .hero,
  .feature-video,
  .split-section,
  .portal-intro,
  .staff-layout,
  .donor-dashboard,
  .login-gate,
  .contact-section,
  .login-hero,
  .login-options {
    grid-template-columns: 1fr;
  }

  .instagram-section,
  .instagram-grid,
  .sitemap-links {
    grid-template-columns: 1fr;
  }

  .instagram-copy {
    justify-self: start;
    max-width: none;
  }

  .contact-actions {
    justify-content: start;
  }

  .impact-band,
  .product-grid,
  .stats-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero {
    min-height: auto;
    padding-top: 56px;
  }

  .hero-content {
    padding-bottom: 0;
  }

  .hero-panel {
    align-self: stretch;
  }

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

@media (max-width: 620px) {
  .site-header {
    padding: 10px 14px;
  }

  .brand img {
    width: 74px;
  }

  .hero {
    padding: 32px 14px;
  }

  .login-hero {
    padding: 34px 14px;
  }

  .login-options article {
    min-height: auto;
  }

  .hero::after {
    background: rgba(5, 8, 6, 0.86);
  }

  h1 {
    font-size: 2.55rem;
  }

  .impact-band,
  .product-grid,
  .metric-grid,
  .stats-row,
  .donor-form,
  .image-stack {
    grid-template-columns: 1fr;
  }

  .impact-band {
    margin-top: 0;
  }

  .team-action-band {
    min-height: 520px;
    margin-top: 34px;
  }

  .team-action-band img {
    object-position: 58% top;
  }

  .team-action-band::after {
    background:
      linear-gradient(0deg, rgba(4, 8, 6, 0.9) 0%, rgba(4, 8, 6, 0.5) 48%, rgba(4, 8, 6, 0.16) 100%);
  }

  .team-action-overlay {
    padding: 32px 14px;
  }

  .feature-video {
    padding-top: 46px;
  }

  .image-stack video:first-child,
  .instagram-reel-embed,
  .image-stack img:last-child,
  .image-stack video:last-child,
  .product-grid img,
  .product-grid video {
    height: auto;
    aspect-ratio: 4 / 3;
  }

  .panel-header {
    display: block;
  }

  .auth-bar {
    display: block;
  }

  .status-pill {
    display: inline-flex;
    margin-top: 8px;
  }
}

/* Persistent website editor and story feed */
.story-section {
  max-width: 1240px;
  margin: 0 auto;
  padding: clamp(72px, 10vw, 118px) 18px 0;
}

.story-section-heading {
  max-width: 760px;
}

.story-section-heading > p:not(.eyebrow) {
  color: #d5ded6;
  font-size: 1.08rem;
  line-height: 1.65;
}

.story-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 30px;
}

.story-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(14, 22, 17, 0.92);
  box-shadow: var(--shadow);
}

.story-card > img,
.story-card > video,
.story-card-logo {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: #050806;
}

.story-card-logo {
  display: grid;
  place-items: center;
}

.story-card-logo img {
  width: 160px;
  max-height: 110px;
  object-fit: contain;
}

.story-card-copy {
  padding: 24px;
}

.story-card time {
  color: var(--mint);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.story-card h3 {
  margin: 12px 0;
  color: white;
}

.story-card p,
.story-card small,
.story-empty {
  color: #c9d5ce;
  line-height: 1.65;
  white-space: pre-line;
}

.story-card small {
  display: block;
  margin-top: 14px;
  padding-left: 12px;
  border-left: 2px solid var(--wood);
}

.admin-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 80% 8%, rgba(24, 183, 138, 0.18), transparent 34%),
    #050806;
}

.admin-shell {
  width: min(1440px, 100%);
  margin: 0 auto;
  padding: clamp(24px, 5vw, 64px);
}

.admin-login {
  width: min(560px, 100%);
  margin: 8vh auto;
  padding: clamp(28px, 5vw, 54px);
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(14, 22, 17, 0.95);
  box-shadow: var(--shadow);
}

.admin-login img {
  width: 120px;
  margin-bottom: 28px;
}

.admin-login h1,
.admin-toolbar h1 {
  font-size: clamp(2.2rem, 5vw, 4.5rem);
}

.admin-login > p:not(.eyebrow) {
  color: #c9d5ce;
  line-height: 1.65;
}

.admin-login form,
.admin-field,
.admin-list-row label,
.page-card-head label,
.section-editor-head label {
  display: grid;
  gap: 8px;
}

.admin-login form {
  gap: 16px;
  margin-top: 28px;
}

.admin-login input,
.admin-page input,
.admin-page textarea,
.admin-page select {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: white;
}

.admin-page textarea {
  min-height: 120px;
  resize: vertical;
}

.admin-page option {
  color: #13201a;
}

.admin-page button,
.admin-page .admin-toolbar-actions a,
.admin-section-heading > a,
.page-card-head a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--mint);
  color: white;
  font-weight: 900;
  cursor: pointer;
}

.admin-page button.quiet,
.row-actions button,
.admin-tabs button {
  background: rgba(255, 255, 255, 0.07);
}

.admin-page button.danger {
  border-color: rgba(255, 117, 104, 0.35);
  color: #ffb3aa;
}

.admin-page button:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.admin-toolbar,
.admin-section-heading,
.page-card-head,
.section-editor-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
}

.admin-toolbar-actions,
.row-actions,
.admin-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-status {
  min-height: 26px;
  color: var(--mint);
  font-weight: 800;
}

.admin-tabs {
  margin: 24px 0;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.admin-tabs button.active {
  background: var(--wood);
  color: #160f08;
}

.admin-panel,
.admin-list,
.page-editor-list,
.section-editor-list {
  display: grid;
  gap: 18px;
}

.admin-field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.admin-field span,
.admin-list-row label,
.page-card-head label,
.section-editor-head label {
  color: #c9d5ce;
  font-size: 0.86rem;
  font-weight: 800;
}

.admin-list-row {
  display: grid;
  grid-template-columns: 1fr 1.4fr auto;
  gap: 12px;
  align-items: end;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
}

.page-editor-card,
.section-editor-card {
  padding: clamp(18px, 3vw, 28px);
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
}

.section-editor-card {
  background: rgba(0, 0, 0, 0.2);
}

.section-editor-list {
  margin: 22px 0;
}

.visual-editor {
  display: grid;
  gap: 18px;
}

.visual-toolbar,
.visual-controls,
.visual-devices,
.visual-workbench {
  display: flex;
  gap: 14px;
}

.visual-toolbar {
  align-items: end;
  justify-content: space-between;
}

.visual-toolbar h2,
.visual-toolbar p {
  margin-bottom: 5px;
}

.visual-controls {
  align-items: end;
  flex-wrap: wrap;
}

.visual-controls label {
  display: grid;
  gap: 6px;
  color: #c9d5ce;
  font-size: .8rem;
  font-weight: 800;
}

.visual-devices {
  gap: 6px;
}

.visual-devices button {
  padding: 11px 13px;
}

.visual-devices button.active {
  background: var(--mint);
  color: #06251d;
}

.visual-workbench {
  display: block;
}

.visual-canvas {
  width: 100%;
  min-width: 0;
  padding: 10px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #071318;
}

.visual-canvas iframe {
  display: block;
  width: 100%;
  height: 78vh;
  min-height: 640px;
  margin-inline: auto;
  border: 0;
  border-radius: 12px;
  background: white;
  transition: width .2s ease;
}

.visual-canvas[data-preview-size="tablet"] iframe {
  width: 768px;
}

.visual-canvas[data-preview-size="mobile"] iframe {
  width: 390px;
}

.visual-inspector {
  position: relative;
  width: 100%;
  padding: 18px;
  margin-bottom: 14px;
  border: 1px solid rgba(24, 183, 138, .35);
  border-radius: 16px;
  background: #10262c;
}

.visual-inspector[hidden] {
  display: none;
}

.visual-inspector-close {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 8px 12px !important;
  background: rgba(255, 255, 255, .08) !important;
}

.visual-inspector h3 {
  margin: 6px 0 16px;
}

.visual-help {
  margin-top: 12px;
  color: #aab9b1;
  font-size: .82rem;
  line-height: 1.55;
}

.cms-visual-editing [data-cms],
.cms-visual-editing [data-cms-href],
.cms-visual-editing [data-cms-media],
.cms-visual-editing [data-cms-bg],
.cms-visual-editing [data-page-field] {
  outline: 2px dashed rgba(24, 183, 138, .72);
  outline-offset: 5px;
  cursor: text;
  transition: outline-color .15s ease, background-color .15s ease;
}

.cms-visual-editing [data-cms]:hover,
.cms-visual-editing [data-cms-href]:hover,
.cms-visual-editing [data-cms-media]:hover,
.cms-visual-editing [data-cms-bg]:hover,
.cms-visual-editing [data-page-field]:hover,
.cms-visual-editing [data-cms]:focus,
.cms-visual-editing [data-cms-href]:focus,
.cms-visual-editing [data-cms-media]:focus,
.cms-visual-editing [data-cms-bg]:focus,
.cms-visual-editing [data-page-field]:focus {
  outline-color: #f0cf5b;
  background-color: rgba(240, 207, 91, .12);
}

.visual-media-preview {
  display: grid;
  min-height: 140px;
  place-items: center;
  margin-bottom: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #071318;
}

.visual-media-preview img,
.visual-media-preview video {
  width: 100%;
  max-height: 220px;
  object-fit: contain;
}

.visual-media-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.visual-media-list button {
  display: grid;
  gap: 6px;
  padding: 7px;
  text-align: left;
  background: rgba(255, 255, 255, .05);
}

.visual-media-list .visual-media-preview {
  min-height: 70px;
  margin: 0;
}

.visual-media-list .visual-media-preview img,
.visual-media-list .visual-media-preview video {
  height: 70px;
  object-fit: cover;
}

.visual-media-list span {
  font-size: .72rem;
  line-height: 1.25;
}

.visual-upload {
  width: 100%;
  margin: 0 0 14px;
  padding: 12px;
  border: 1px dashed rgba(24, 183, 138, .55);
  border-radius: 10px;
  background: rgba(24, 183, 138, .08);
}

.page-card-head > div:first-child {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  flex: 1;
}

.checkbox {
  display: flex !important;
  min-height: 44px;
  align-items: center;
  gap: 8px;
}

.checkbox input {
  width: 18px;
  min-height: 18px;
}

.upload-control {
  display: inline-grid;
  gap: 8px;
  margin-top: 16px;
  color: var(--mint);
  font-weight: 900;
}

.managed-page-empty,
.managed-section,
.managed-hero {
  max-width: 1100px;
  margin: 0 auto;
  padding: clamp(64px, 10vw, 120px) 18px;
}

.managed-hero {
  min-height: 72vh;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(24px, 5vw, 64px);
  align-items: center;
}

.managed-hero > img,
.managed-hero > video,
.managed-image > img,
.managed-image > video {
  width: 100%;
  max-height: 620px;
  object-fit: cover;
  border-radius: 14px;
  box-shadow: var(--shadow);
}

.managed-hero > img,
.managed-hero > video {
  grid-column: 2;
  grid-row: 1;
}

.managed-hero > div {
  grid-column: 1;
  grid-row: 1;
}

.managed-section > p,
.managed-hero p {
  max-width: 760px;
  color: #d5ded6;
  font-size: 1.08rem;
  line-height: 1.75;
}

.managed-image {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.managed-quote blockquote {
  margin: 0;
  color: white;
  font-size: clamp(1.8rem, 4vw, 3.6rem);
  line-height: 1.15;
}

@media (max-width: 980px) {
  .story-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-toolbar,
  .admin-section-heading,
  .page-card-head,
  .section-editor-head,
  .visual-toolbar,
  .visual-workbench {
    align-items: stretch;
    flex-direction: column;
  }

  .visual-inspector {
    width: 100%;
  }

  .admin-list-row,
  .managed-hero,
  .managed-image {
    grid-template-columns: 1fr;
  }

  .managed-hero > img,
  .managed-hero > video,
  .managed-hero > div {
    grid-column: 1;
  }

  .managed-hero > img,
  .managed-hero > video {
    grid-row: 1;
  }

  .managed-hero > div {
    grid-row: 2;
  }
}

@media (max-width: 620px) {
  .story-grid,
  .admin-field-grid,
  .page-card-head > div:first-child {
    grid-template-columns: 1fr;
  }

  .admin-shell {
    padding: 18px 12px;
  }
}
