/* ============================================================
   NPC Sponsorships — Main Stylesheet
   Font: Poppins | Palette: Forest Green + Gold + Ivory
   ============================================================ */

:root {
  /* Core palette — drawn from NPC/government green & gold */
  --green-900: #0b3d1e;
  --green-800: #0f5229;
  --green-700: #157535;
  --green-600: #1a9040;
  --green-100: #e8f5ed;
  --green-50:  #f2faf5;

  --gold-700:  #9a6c10;
  --gold-500:  #c8901a;
  --gold-400:  #e0a830;
  --gold-100:  #fdf4e1;

  --neutral-900: #0f1a10;
  --neutral-700: #2c3c2e;
  --neutral-500: #4f6454;
  --neutral-300: #b8c8bb;
  --neutral-100: #f4f7f4;
  --white:       #ffffff;

  /* Semantic tokens */
  --bg:          var(--neutral-100);
  --surface:     var(--white);
  --surface-alt: var(--green-50);
  --text:        var(--neutral-900);
  --muted:       var(--neutral-500);
  --primary:     var(--green-800);
  --primary-dark:var(--green-900);
  --accent:      var(--gold-500);
  --border:      #d2dfd5;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(15, 82, 41, 0.08);
  --shadow-md: 0 8px 24px rgba(15, 82, 41, 0.12);
  --shadow-lg: 0 20px 48px rgba(15, 82, 41, 0.16);

  /* Radius & spacing */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --container: 1160px;

  /* Transitions */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --t-fast: 0.18s var(--ease);
  --t-med:  0.32s var(--ease);
  --t-slow: 0.56s var(--ease);
}

/* ── Reset ─────────────────────────────────────────────────── */

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: "Poppins", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--primary);
  text-underline-offset: 3px;
  transition: color var(--t-fast);
}

a:hover {
  color: var(--primary-dark);
}

h1, h2, h3, h4 {
  line-height: 1.2;
  font-weight: 700;
  color: var(--text);
}

ul {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
}

/* ── Layout helpers ─────────────────────────────────────────── */

.container {
  width: min(100% - 2.5rem, var(--container));
  margin-inline: auto;
}

/* ── Scroll reveal animations ──────────────────────────────── */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity var(--t-slow), transform var(--t-slow);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay   { transition-delay: 0.1s; }
.reveal-delay-1 { transition-delay: 0.18s; }
.reveal-delay-2 { transition-delay: 0.32s; }

/* ── Top strip ──────────────────────────────────────────────── */

.top-strip {
  background: var(--green-900);
  color: var(--neutral-300);
  font-size: 0.8rem;
  font-weight: 400;
}

.top-strip-inner {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding-block: 0.35rem;
}

.strip-link {
  color: var(--gold-400);
  text-decoration: none;
  font-weight: 600;
  white-space: nowrap;
  transition: color var(--t-fast);
}

.strip-link:hover {
  color: var(--white);
}

/* ── Site header ─────────────────────────────────────────────── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px) saturate(160%);
  transition: box-shadow var(--t-med);
}

.site-header.scrolled {
  box-shadow: var(--shadow-md);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 80px;
  gap: 1.5rem;
}

/* Logo — wide landscape: let height drive width */
.brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
}

.brand-logo {
  height: 58px;
  width: auto;
  max-width: 280px;
  object-fit: contain;
  object-position: left center;
  transition: opacity var(--t-fast);
}

.brand-logo:hover {
  opacity: 0.85;
}

/* Desktop nav */
.site-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-link {
  display: inline-block;
  padding: 0.45rem 0.85rem;
  color: var(--neutral-700);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  position: relative;
  transition: color var(--t-fast), background var(--t-fast);
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 4px;
  left: 0.85rem;
  right: 0.85rem;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t-med);
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary);
  background: var(--green-100);
}

.nav-link:hover::after,
.nav-link.active::after {
  transform: scaleX(1);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  margin-left: 0.5rem;
  padding: 0.5rem 1.1rem;
  background: var(--primary);
  color: var(--white) !important;
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 600;
  transition: background var(--t-fast), transform var(--t-fast), box-shadow var(--t-fast);
}

.nav-cta:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(15, 82, 41, 0.28);
}

/* Hamburger */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0 10px;
  transition: border-color var(--t-fast), background var(--t-fast);
}

.menu-toggle:hover {
  border-color: var(--primary);
  background: var(--green-50);
}

.hamburger-bar {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--neutral-700);
  border-radius: 2px;
  transition: transform var(--t-med), opacity var(--t-fast);
}

.menu-toggle[aria-expanded="true"] .hamburger-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.menu-toggle[aria-expanded="true"] .hamburger-bar:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.menu-toggle[aria-expanded="true"] .hamburger-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ── Buttons ─────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  text-decoration: none;
  border: 2px solid transparent;
  border-radius: 999px;
  padding: 0.72rem 1.6rem;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast),
              transform var(--t-fast), box-shadow var(--t-fast);
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(15, 82, 41, 0.3);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}

.btn-outline:hover,
.btn-outline:focus-visible {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(15, 82, 41, 0.2);
}

/* ── Typography helpers ──────────────────────────────────────── */

.eyebrow {
  font-size: 0.73rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.lead {
  font-size: 1.05rem;
  color: var(--muted);
  line-height: 1.75;
}

.rule {
  width: 48px;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--gold-400));
  border-radius: 2px;
  margin-top: 0.8rem;
}

.rule-center {
  margin-inline: auto;
}

/* ── Hero ─────────────────────────────────────────────────────── */

.hero {
  position: relative;
  overflow: hidden;
  padding: 4.8rem 0 4.5rem;
  min-height: 520px;
  display: flex;
  align-items: center;
  background: #0b3d1e;
}

.hero-bg-shape {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 80% 30%, rgba(200, 144, 26, 0.12) 0%, transparent 65%),
    radial-gradient(ellipse 50% 80% at 5% 90%,  rgba(255, 255, 255, 0.04) 0%, transparent 60%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  min-height: inherit;
}

.hero-copy h1 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.025em;
  margin-bottom: 1.1rem;
}

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

.hero-desc {
  font-size: 1.02rem;
  color: rgba(255,255,255,0.82);
  max-width: 54ch;
  margin-bottom: 0.5rem;
  line-height: 1.75;
}

.hero-desc strong {
  color: var(--white);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.9rem;
}

.hero .btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--white);
}

.hero .btn-primary:hover {
  background: var(--gold-700);
  border-color: var(--gold-700);
  box-shadow: 0 8px 24px rgba(200, 144, 26, 0.4);
}

.hero .btn-outline {
  border-color: rgba(255,255,255,0.55);
  color: var(--white);
}

.hero .btn-outline:hover {
  background: rgba(255,255,255,0.15);
  border-color: var(--white);
  color: var(--white);
}

/* ── Hero image — full-bleed right panel ──────────────────────── */

.hero-copy {
  /* Copy spans roughly the left 52% so the image shows prominently */
  max-width: 52%;
  padding-block: 1rem;
}

.hero-visual {
  position: absolute;
  inset: 0 0 0 38%;          /* covers right 62% of the hero section */
  z-index: 0;
  overflow: hidden;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
  /* Darker so the semi-transparent green mid-zone blends rather than clashes */
  filter: brightness(0.72) saturate(1.08);
  animation: kb-drift 18s ease-in-out infinite alternate;
}

@keyframes kb-drift {
  from { transform: scale(1.0)  translateX(0);    }
  to   { transform: scale(1.06) translateX(-1.5%); }
}

/*
 * Two-layer fade system:
 * Layer 1 (::before via .hero-img-fade itself) — left-to-right dissolve.
 *   Stays fully opaque far into the image so there is never a sharp seam.
 * Layer 2 (::after) — top & bottom edge vignette for depth.
 */
.hero-img-fade {
  position: absolute;
  inset: 0;
  /* 9-stop curve: full green → eases out very gradually → gone at 82% */
  background: linear-gradient(
    to right,
    var(--green-900)           0%,
    rgba(11, 61, 30, 0.98)     5%,
    rgba(11, 61, 30, 0.93)    14%,
    rgba(11, 61, 30, 0.82)    24%,
    rgba(11, 61, 30, 0.64)    36%,
    rgba(11, 61, 30, 0.44)    48%,
    rgba(11, 61, 30, 0.22)    60%,
    rgba(11, 61, 30, 0.06)    72%,
    transparent               82%
  );
  pointer-events: none;
}

.hero-img-fade::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(11, 61, 30, 0.55) 0%,  transparent 20%),
    linear-gradient(to top,    rgba(11, 61, 30, 0.60) 0%,  transparent 24%);
  pointer-events: none;
}

/* "Official NPC Platform" floating badge */
.hero-img-badge {
  position: absolute;
  bottom: 1.4rem;
  right: 1.4rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(11, 61, 30, 0.78);
  border: 1px solid rgba(200, 144, 26, 0.6);
  backdrop-filter: blur(10px);
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  padding: 0.4rem 0.8rem 0.4rem 0.65rem;
  border-radius: 999px;
  text-transform: uppercase;
  pointer-events: none;
}

.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold-400);
  flex-shrink: 0;
  animation: pulse-dot 2.2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1;    transform: scale(1);    }
  50%       { opacity: 0.5; transform: scale(0.72); }
}

/* ── Section base ─────────────────────────────────────────────── */

.section {
  padding: 5rem 0;
}

.section-tinted {
  background: var(--surface-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-inner {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 3.5rem;
  align-items: start;
}

.section-label h2 {
  font-size: clamp(1.5rem, 2.6vw, 2.2rem);
  margin-bottom: 0.2rem;
}

.section-label.centered {
  text-align: center;
}

.section-sub {
  max-width: 58ch;
  margin: 0.9rem auto 0;
  color: var(--muted);
  font-size: 0.97rem;
}

/* ── About ────────────────────────────────────────────────────── */

.about-body {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.about-body p {
  color: var(--muted);
  font-size: 0.97rem;
}

.external-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--primary);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  padding-bottom: 1px;
  transition: border-color var(--t-fast);
}

.external-link:hover {
  border-color: var(--accent);
  color: var(--primary-dark);
}

/* ── Rationale Modal ──────────────────────────────────────────── */

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  background: rgba(9, 26, 50, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);

  /* Hidden state */
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--t-med), visibility var(--t-med);
}

.modal-backdrop.is-open {
  opacity: 1;
  visibility: visible;
}

.modal-box {
  position: relative;
  width: min(100%, 880px);
  max-height: calc(100dvh - 2.5rem);
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.45);
  display: flex;
  flex-direction: column;
  overflow: hidden;

  /* Slide-up on open */
  transform: translateY(24px) scale(0.98);
  transition: transform var(--t-med);
}

.modal-backdrop.is-open .modal-box {
  transform: translateY(0) scale(1);
}

/* Gold top accent */
.modal-box::before {
  content: "";
  display: block;
  height: 3px;
  background: linear-gradient(90deg, var(--gold-500), var(--gold-400), rgba(200,144,26,0.15));
  flex-shrink: 0;
}

/* Header */
.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.4rem 0.9rem;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
  background: var(--white);
}

.modal-title-wrap .eyebrow {
  margin-bottom: 0.2rem;
  font-size: 0.7rem;
}

.modal-title-wrap h2 {
  font-size: 1.1rem;
  margin: 0;
}

.modal-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  background: var(--neutral-100);
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--muted);
  transition: background var(--t-fast), color var(--t-fast), transform var(--t-fast);
}

.modal-close:hover {
  background: var(--green-100);
  color: var(--primary);
  transform: rotate(90deg);
}

/* Scrollable image area */
.modal-body {
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

.rationale-img-wrap {
  position: relative;
  overflow: hidden;
}

.rationale-img {
  width: 100%;
  aspect-ratio: 16 / 10;
  background-image: url("image/rationale.jpg");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center top;
  background-color: #f4f2ee;
  display: block;
  -webkit-user-drag: none;
}

/* Transparent pointer-events shield */
.rationale-shield {
  position: absolute;
  inset: 0;
  z-index: 2;
  cursor: default;
  background: transparent;
}

/* Diagonal watermark grid */
.rationale-watermark {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, 1fr);
  align-items: center;
  justify-items: center;
  pointer-events: none;
  overflow: hidden;
}

.rationale-watermark span {
  font-family: "Poppins", sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(11, 61, 30, 0.11);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transform: rotate(-28deg);
  white-space: nowrap;
  pointer-events: none;
}

/* Gold top line on image wrap */
.rationale-img-wrap::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--gold-500), var(--gold-400), transparent 70%);
  z-index: 4;
}

/* Footer notice */
.modal-footer {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.65rem 1.4rem;
  border-top: 1px solid var(--border);
  background: var(--neutral-100);
  font-size: 0.75rem;
  color: var(--muted);
  font-style: italic;
  flex-shrink: 0;
}

.modal-footer svg {
  flex-shrink: 0;
  color: var(--accent);
  opacity: 0.7;
}

/* Prevent body scroll when modal open */
body.modal-open {
  overflow: hidden;
}

@media (max-width: 600px) {
  .modal-backdrop {
    padding: 0;
    align-items: flex-end;
  }

  .modal-box {
    width: 100%;
    max-height: 92dvh;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    transform: translateY(40px);
  }

  .rationale-img {
    aspect-ratio: 4 / 5;
    background-size: contain;
  }
}

/* ── Program cards ────────────────────────────────────────────── */

.cards-grid {
  margin-top: 2.8rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.6rem 1.4rem 1.7rem;
  box-shadow: var(--shadow-sm);
  transition: transform var(--t-med), box-shadow var(--t-med), border-color var(--t-med);
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--green-600);
}

.card-icon {
  font-size: 1.8rem;
  margin-bottom: 0.9rem;
}

.feature-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.55rem;
  color: var(--primary);
}

.feature-card p {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.7;
}

/* ── Opportunities ────────────────────────────────────────────── */

.opp-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}

.opp-text {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.opp-text h2 {
  font-size: clamp(1.5rem, 2.6vw, 2.2rem);
}

.opp-text p {
  color: var(--muted);
  font-size: 0.97rem;
}

.opp-highlights {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.highlight-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--neutral-700);
  box-shadow: var(--shadow-sm);
  transition: border-color var(--t-fast), transform var(--t-fast), box-shadow var(--t-fast);
}

.highlight-item:hover {
  border-color: var(--green-600);
  transform: translateX(4px);
  box-shadow: var(--shadow-md);
}

.highlight-item span {
  color: var(--accent);
  font-size: 0.55rem;
  margin-top: 5px;
  flex-shrink: 0;
}

/* ── Contact ──────────────────────────────────────────────────── */

.contact-panel {
  margin-top: 2rem;
  max-width: 780px;
  margin-inline: auto;
}

.contact-notice {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 5px solid var(--accent);
  border-radius: var(--radius-md);
  padding: 1.5rem 1.6rem;
  box-shadow: var(--shadow-sm);
}

.contact-notice p {
  font-size: 0.96rem;
  color: var(--neutral-700);
  line-height: 1.78;
  margin: 0;
}

.contact-notice strong {
  color: var(--text);
}

.contact-notice a {
  color: var(--primary);
  font-weight: 600;
}

.contact-actions {
  margin-top: 1.4rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  justify-content: center;
}

/* ── Footer ───────────────────────────────────────────────────── */

.site-footer {
  background: var(--green-900);
  color: rgba(255,255,255,0.7);
}

.footer-inner {
  padding-block: 2.8rem 1.4rem;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2rem 3rem;
  align-items: start;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-logo {
  height: 46px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
  object-position: left center;
  /* Subtle white inversion so logo is legible on dark bg */
  filter: brightness(0) invert(1);
  opacity: 0.88;
}

.footer-brand p {
  font-size: 0.83rem;
  line-height: 1.65;
  max-width: 34ch;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.4rem;
  align-items: flex-start;
  align-content: flex-start;
}

.footer-links a {
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  transition: color var(--t-fast);
}

.footer-links a:hover {
  color: var(--gold-400);
}

.footer-bottom {
  grid-column: 1 / -1;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.footer-bottom p {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.45);
  margin: 0;
}

.back-to-top-btn {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  color: rgba(255,255,255,0.7);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.38rem 0.9rem;
  transition: background var(--t-fast), color var(--t-fast), transform var(--t-fast);
}

.back-to-top-btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--white);
  transform: translateY(-2px);
}

/* ── Responsive ───────────────────────────────────────────────── */

/* ---- Tablet wide: 1024px and below ---- */
@media (max-width: 1024px) {
  .hero-copy {
    max-width: 58%;
  }

  .section-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

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

  .opp-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 1.6rem;
  }
}

/* ---- Tablet narrow + mobile: 768px and below ---- */
@media (max-width: 768px) {
  .container {
    width: min(100% - 2rem, var(--container));
  }

  /* Top strip */
  .top-strip-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.15rem;
    padding-block: 0.5rem;
  }

  /* Nav */
  .brand-logo {
    height: 44px;
    max-width: 190px;
  }

  .menu-toggle {
    display: flex;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: stretch;
    padding: 0.75rem 1.25rem 1.25rem;
    gap: 0.25rem;
    box-shadow: var(--shadow-md);
    display: none;
  }

  .site-nav.is-open {
    display: flex;
    animation: navSlide 0.22s var(--ease) both;
  }

  @keyframes navSlide {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
  }

  .nav-link {
    padding: 0.6rem 0.75rem;
    font-size: 0.91rem;
  }

  .nav-cta {
    margin-left: 0;
    margin-top: 0.4rem;
    text-align: center;
    padding: 0.65rem 1rem;
    border-radius: var(--radius-sm);
  }

  /* Hero — stacked layout */
  .hero {
    flex-direction: column;
    align-items: stretch;
    padding: 0 0 3rem;
    min-height: unset;
  }

  /* Image fills the full width at the top */
  .hero-visual {
    position: relative;
    inset: unset;
    width: 100%;
    height: 260px;
    flex-shrink: 0;
    z-index: 0;
  }

  /* Mobile: fade image downward into the green section below — 7-stop smooth curve */
  .hero-img-fade {
    background: linear-gradient(
      to bottom,
      rgba(11, 61, 30, 0.10)   0%,
      rgba(11, 61, 30, 0.18)   30%,
      rgba(11, 61, 30, 0.42)   55%,
      rgba(11, 61, 30, 0.72)   72%,
      rgba(11, 61, 30, 0.90)   86%,
      var(--green-900)          100%
    );
  }

  .hero-img-fade::after {
    display: none;
  }

  /* Badge sits at bottom-right of the image band */
  .hero-img-badge {
    bottom: 0.75rem;
    right: 0.85rem;
    font-size: 0.68rem;
  }

  /* Copy sits below the image, full width */
  .hero-inner {
    position: relative;
    z-index: 1;
    padding-top: 1.75rem;
    min-height: unset;
  }

  .hero-copy {
    max-width: 100%;
    padding-block: 0;
  }

  .hero-copy h1 {
    font-size: clamp(1.65rem, 5.5vw, 2.2rem);
  }

  .hero-desc {
    font-size: 0.95rem;
  }

  .hero-actions {
    margin-top: 1.5rem;
  }

  /* Sections */
  .section {
    padding: 3.2rem 0;
  }

  .cards-grid {
    grid-template-columns: 1fr;
    max-width: 100%;
  }

  .highlight-item {
    font-size: 0.88rem;
  }

  /* Contact */
  .contact-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .contact-actions .btn {
    text-align: center;
    justify-content: center;
  }

  /* Footer */
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
}

/* ---- Small mobile: 480px and below ---- */
@media (max-width: 480px) {
  .top-strip {
    font-size: 0.78rem;
  }

  .hero-visual {
    height: 220px;
  }

  .hero-copy h1 {
    font-size: clamp(1.5rem, 6.5vw, 1.9rem);
  }

  .hero-actions {
    flex-direction: column;
    gap: 0.7rem;
  }

  .hero-actions .btn {
    justify-content: center;
    width: 100%;
  }

  .opp-inner {
    gap: 1.5rem;
  }

  .contact-notice {
    padding: 1.1rem 1.1rem;
  }

  .footer-logo {
    height: 36px;
  }
}

/* ── Focus styles (accessibility) ─────────────────────────────── */

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}
