@import url('/fonts/merriweather.css');

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

body {
    font-family: 'Merriweather', serif;
    background-color: #000000;
    color: #ffffff;
    overflow-x: hidden;
}

/* Header Styles */
.main-header {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1.29rem 2rem 1.19rem 2rem;
    border-bottom: 1px solid rgba(0, 135, 90, 0.2);
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1600px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.header-emblem {
    height: 5.16rem;
    width: auto;
    object-fit: contain;
}

.logo h1,
.logo .brand-mark {
    font-size: 1.75rem;
    font-weight: 900;
    color: #00875A;
    font-family: 'Merriweather', serif;
    /* .brand-mark is a non-heading wrapper used in place of <h1> so each page's
       single <h1> can describe its own topic instead of the brand. */
}
.logo .brand-mark a {
    text-decoration: none;
    color: inherit;
}

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

.nav-link {
    color: #ffffff;
    text-decoration: none;
    font-size: 0.95rem;
    font-family: 'Merriweather', serif;
    font-weight: 400;
    transition: color 0.3s;
}

.nav-link:hover {
    color: #00875A;
}

.nav-link-multiline {
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1.2;
    text-align: center;
}

.nav-link-multiline span {
    display: block;
}

.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #1a1a1a;
    list-style: none;
    padding: 1rem 0;
    border-radius: 8px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    min-width: 200px;
    margin-top: 0.5rem;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(10px);
}

.dropdown-menu a {
    display: block;
    padding: 0.5rem 1.5rem;
    color: #ffffff;
    text-decoration: none;
    font-family: 'Merriweather', serif;
    font-weight: 300;
    transition: background-color 0.3s;
}

.dropdown-menu a:hover {
    background-color: #2a2a2a;
}

/* Featured dropdown items (e.g., the interactive map pages).
   Uses the brand accent green for a clear, on-palette highlight. */
.dropdown-menu a.dropdown-highlight {
    color: #00a572;
    background-color: rgba(0, 135, 90, 0.12);
    font-weight: 600;
    transition: background-color 0.3s, color 0.3s;
}

.dropdown-menu a.dropdown-highlight:hover {
    background-color: rgba(0, 135, 90, 0.30);
    color: #00c585;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.search-bar {
    background-color: #2a2a2a;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    color: #ffffff;
    width: 300px;
    font-size: 0.9rem;
    font-family: 'Merriweather', serif;
}

.search-bar::placeholder {
    color: #888;
    font-family: 'Merriweather', serif;
}

.cta-button {
    background-color: #00875A;
    color: #ffffff;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 25px;
    font-weight: 700;
    font-family: 'Merriweather', serif;
    cursor: pointer;
    transition: background-color 0.3s;
}

.cta-button:hover {
    background-color: #00a572;
}

/* Authentication Buttons */
.auth-buttons {
    display: flex;
    gap: 10px;
}

.auth-button {
    padding: 8px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-size: 0.9rem;
    font-family: 'Merriweather', serif;
}

.btn-login {
    background: transparent;
    color: #00875A;
    border: 2px solid #00875A;
}

.btn-login:hover {
    background: #00875A;
    color: white;
}

.btn-signup {
    background: #00875A;
    color: white;
    border: 2px solid #00875A;
}

.btn-signup:hover {
    background: #00a572;
    border-color: #00a572;
}

.user-menu {
    display: none;
    align-items: center;
    gap: 15px;
}

.user-menu.active {
    display: flex;
}

.user-email {
    color: #ffffff;
    font-size: 0.9rem;
    font-family: 'Merriweather', serif;
}

/* Header plan badge — mirrors Settings → Billing badge so the user's plan
   is always visible (beta feedback 0f85555e). Color tier-tinted via the
   plan-badge-* classes applied by applyBillingBadge(). */
.header-plan-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    cursor: pointer;
    color: #fff;
    background: #00875A;
    border: 1px solid rgba(255,255,255,0.18);
    transition: filter 0.15s ease;
    user-select: none;
}
.header-plan-badge:hover { filter: brightness(1.12); }
.header-plan-badge.plan-badge-free  { background: #6B7280; }
.header-plan-badge.plan-badge-basic { background: #00875A; }
.header-plan-badge.plan-badge-pro   {
    background: linear-gradient(135deg, #00A86B 0%, #D4AF37 100%);
}

.btn-logout {
    padding: 8px 16px;
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: 0.9rem;
    font-family: 'Merriweather', serif;
}

.btn-logout:hover {
    background: #c82333;
}

.btn-subscribe {
    background: #dc3545;
    color: white;
    border: 2px solid #dc3545;
}

.btn-subscribe:hover {
    background: #c82333;
    border-color: #c82333;
}

.btn-dashboard {
    background: #00875A;
    color: white;
    border: 2px solid #00875A;
    text-decoration: none;
    display: inline-block;
}

.btn-dashboard:hover {
    background: #00a572;
    border-color: #00a572;
    color: white;
}

.button {
  position: relative;
  padding: 0;
  width: 280px;
  height: 60px;
  border: 4px solid #00875A;
  outline: none;
  background-color: #1a1a1a;
  border-radius: 50px;
  box-shadow: -4px -4px 10px rgba(42,42,42,0.5), 4px 4px 10px rgba(0,0,0,0.7), 0 0 15px rgba(0,135,90,0.3);
  transition: .13s ease-in-out;
  cursor: pointer;
  display: block;
  margin: 3rem auto;
}

.button:active {
  box-shadow: none;
}

.button:active .button__content {
  box-shadow: none;
}

.button:active .button__content .button__text, .button:active .button__content .button__icon {
  transform: translate3d(0px, 0px, 0px);
}

.button__content {
  position: relative;
  display: grid;
  padding: 10px;
  width: 100%;
  height: 100%;
  grid-template-columns: 1fr auto;
  grid-template-rows: 1fr;
  box-shadow: inset 0px -4px 0px #2a2a2a, 0px -4px 0px #1a1a1a;
  border-radius: 50px;
  transition: .13s ease-in-out;
  z-index: 1;
}

.button__icon {
  position: relative;
  display: flex;
  transform: translate3d(0px, 0px, 0px);
  grid-column: 2;
  align-self: center;
  justify-self: center;
  width: 24px;
  height: 24px;
  transition: .13s ease-in-out;
}

.button__icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: #00875A;
}

.button__text {
  position: relative;
  transform: translate3d(0px, 0px, 0px);
  margin: 0;
  align-self: center;
  grid-column: 1;
  grid-row: 1;
  text-align: center;
  font-size: 18px;
  font-family: 'Merriweather', serif;
  font-weight: 700;
  background-color: #00875A;
  color: transparent;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
  -webkit-background-clip: text;
  -moz-background-clip: text;
  background-clip: text;
  transition: .13s ease-in-out;
}

/* Main Content */
main {
    /* Must be >= the fixed .main-header height (5.16rem emblem + 1.29rem +
       1.19rem padding ~= 122px) so the page content clears the header.
       Restored to 145px after the earlier 40% tightening pass dropped this
       to 87px, which left the hero h1 partially hidden behind the header on
       pages where .hero-section is the first child of main (Contact,
       Subscription, Privacy, etc.). The landing page only masked the issue
       because .circular-gallery-section comes first and has a black bg. */
    margin-top: 145px;
    min-height: 100vh;
}

.hero-section {
    padding: 0 2rem 1.35rem 2rem;
    max-width: 1600px;
    margin: 0 auto;
}

/* When .hero-section is the FIRST child of <main> (i.e., no preceding
   .circular-gallery-section or other lead-in element), add 1.5rem of
   top padding so the visible top of the .ngh-hero card lines up with
   the same y-coordinate as the landing page's first visible content
   (gallery items). On the landing page .hero-section is NOT the first
   child, so this rule doesn't apply and the gallery layout is preserved.
   Affected pages: contact, subscription-plans, about-maha, terms-of-
   service, privacy-policy, and most other marketing pages. */
main > .hero-section:first-child {
    padding-top: 1.5rem;
}

/* Landing-page hero+gallery+synopsis layout (2026-05-26):
   .hero-content is a vertical stack:
     1) .hero-main-row  - horizontal row with synopsis (left) + carousel (right)
     2) .button-right   - flip-card row pinned to the far-left page edge
   Mobile @media below collapses the row to a vertical stack. */
.hero-content {
    margin-bottom: 1.35rem;
    padding-top: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 65px;
}

/* Defensive: legacy carousel image-uploader injects an unstyled
   .file-upload-area div into .carousel-section. It's a vestigial dev
   feature with no design treatment; keep it out of the live UI. */
.file-upload-area {
    display: none !important;
}

/* Main row inside .hero-content: synopsis left, carousel right.
   align-items: stretch makes the two columns match heights so the carousel
   window grows down to the bottom of the synopsis (meal-planning callout). */
.hero-main-row {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: 2rem;
    width: 100%;
}

.hero-text {
    flex: 0 0 923px;
    max-width: 923px;
    display: flex;
    flex-direction: column;
}

/* Site-wide hero treatment matching the landing page.
   Selector includes the .hero-section parent so it has higher specificity
   than the base .ngh-hero rule in ngh-services-styles.css (which is loaded
   AFTER styles.css on most pages). Every page that uses a hero now wraps
   <section class="ngh-hero"> in <section class="hero-section">. */
.hero-section > .ngh-hero {
    margin-top: 0;
    padding-top: 1.2rem;
    padding-bottom: 0.9rem;
}
.hero-section > .ngh-hero .ngh-hero-content {
    max-width: 1400px;
}
.hero-section > .ngh-hero .ngh-hero-title {
    margin-bottom: 0.6rem;
    text-align: center;
}
.hero-section > .ngh-hero .ngh-hero-subtitle {
    max-width: none;
    margin-bottom: 0.6rem;
    text-align: center;
    /* Balance multi-line subtitles so each line is visually equal length
       instead of "long line + short remainder". Supported in modern Chrome,
       Firefox, and Safari; degrades gracefully elsewhere. */
    text-wrap: balance;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: #00875A;
    max-width: none;
    font-family: 'Merriweather', serif;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: #cccccc;
    max-width: none;
    font-family: 'Merriweather', serif;
    font-weight: 300;
    line-height: 1.8;
}

/* Main Container Layout */
.main-container {
    display: flex;
    gap: 4rem;
    align-items: flex-start;
    padding-top: 2rem;
    justify-content: flex-end;
}

/* Selection Panel */
.selection-panel {
    flex: 0 0 500px;
    max-width: 500px;
}

.selection-panel h3 {
    font-size: 1.875rem;
    margin-bottom: 2rem;
    color: #00875A;
    font-family: 'Merriweather', serif;
    font-weight: 700;
}

.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.checkbox-item {
    background-color: #1a1a1a;
    padding: 1.25rem;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: background-color 0.3s;
}

.checkbox-item:hover {
    background-color: #2a2a2a;
}

.checkbox-item input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-right: 1rem;
    cursor: pointer;
}

.checkbox-item input[type="checkbox"]:checked {
    accent-color: #00875A;
}

.checkbox-item span {
    color: #ffffff;
    font-size: 1rem;
    font-family: 'Merriweather', serif;
    font-weight: 300;
}

.continue-button {
    background-color: #00875A;
    color: #ffffff;
    border: none;
    padding: 1rem 3rem;
    border-radius: 25px;
    font-size: 1.1rem;
    font-weight: 700;
    font-family: 'Merriweather', serif;
    cursor: pointer;
    transition: background-color 0.3s;
    width: 200px;
}

.continue-button:hover {
    background-color: #00a572;
}

/* Carousel section heading — sits above .carousel-section on the landing page,
   matches the existing .pillars-preview h3 style for visual consistency
   (brand green, Merriweather, 2.25rem, weight 700). Left-aligned with the
   carousel block beneath it. */
.carousel-title {
    font-size: 2.25rem;
    color: #00875A;
    margin: 0 0 0.5rem 0;
    font-family: 'Merriweather', serif;
    font-weight: 700;
    text-align: left;
    letter-spacing: -0.01em;
}

/* Carousel Section - UPDATED FOR SMOOTH SCROLL.
   flex-basis: 0 (not auto) so the carousel-section's intrinsic size for
   parent layout is just min-height (not its tall duplicated-grid content).
   That keeps .hero-text's natural height = title + 769px, so the row
   stretches only to the synopsis column's height and the gallery viewport
   ends exactly at the bottom of the meal-planning callout. The scroll math
   in client.js is unaffected — it keys off the grid's scrollHeight. */
.carousel-section {
    position: relative;
    flex: 1 1 0;
    min-height: 769px;
    width: 100%;
    max-width: 923px;
    margin: 1.2rem 0 0 0;
    overflow: hidden;
}

.image-carousel {
    height: 100%;
    width: 100%;
}

.carousel-container {
    height: 100%;
    width: 100%;
}

.carousel-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.2rem;
    width: 100%;
    padding-right: 1rem;
}

.carousel-grid.animate-scroll {
    animation: scroll 20s linear infinite;
}

@keyframes scroll {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(calc(-1 * var(--scroll-height)));
    }
}

.carousel-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    cursor: pointer;
    transition: transform 0.3s;
    height: 287px;
    width: 100%;
}

.carousel-item:hover {
    transform: scale(1.05);
}

.carousel-item img,
.carousel-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}

.carousel-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: #ffffff;
    padding: 1rem;
    font-size: 0.9rem;
    font-weight: 400;
    font-family: 'Merriweather', serif;
    text-align: left;
    width: 100%;
}

/* Landing-page synopsis column (2026-05-26).
   Sits to the LEFT of the vertically scrolling video gallery inside
   .hero-main-row. Lists the Pro-plan feature set and highlights the
   meal-planning tool in a brand-green callout box. Mobile @media stacks
   the synopsis above the gallery. */
.hero-synopsis {
    flex: 1 1 0;
    min-width: 0;
    color: #cccccc;
    font-family: 'Merriweather', serif;
    text-align: left;
}

.synopsis-eyebrow {
    display: inline-block;
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #00875A;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
}

.synopsis-title {
    font-size: 2rem;
    color: #ffffff;
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 0.6rem 0;
    font-family: 'Merriweather', serif;
}

.synopsis-intro {
    font-size: 1rem;
    color: #cccccc;
    line-height: 1.5;
    margin: 0 0 1.2rem 0;
    font-family: 'Merriweather', serif;
    font-weight: 300;
}

.synopsis-features {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem 0;
}

.synopsis-features li {
    position: relative;
    padding: 0.35rem 0 0.35rem 1.4rem;
    font-size: 0.95rem;
    color: #cccccc;
    line-height: 1.4;
    font-family: 'Merriweather', serif;
    font-weight: 300;
}

.synopsis-features li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.85rem;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #00875A;
}

.synopsis-feature-name {
    color: #ffffff;
    font-weight: 700;
}

/* Special highlighted callout for the meal-planning tool. */
.synopsis-meal-callout {
    background: linear-gradient(135deg, rgba(0,135,90,0.14), rgba(0,135,90,0.04));
    border: 1.5px solid rgba(0,135,90,0.6);
    border-radius: 12px;
    padding: 1.25rem 1.4rem;
    box-shadow: 0 0 24px rgba(0,135,90,0.15);
    margin-top: 1rem;
}

.synopsis-meal-callout-header {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.5rem;
}

.synopsis-meal-callout-icon {
    color: #00875A;
    flex-shrink: 0;
}

.synopsis-meal-callout-title {
    color: #00875A;
    font-size: 1.25rem;
    font-weight: 700;
    font-family: 'Merriweather', serif;
}

.synopsis-meal-callout-intro {
    color: #cccccc;
    font-size: 0.95rem;
    margin: 0 0 0.8rem 0;
    line-height: 1.45;
    font-family: 'Merriweather', serif;
    font-weight: 300;
}

.synopsis-meal-callout-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.synopsis-meal-callout-features li {
    position: relative;
    padding: 0.3rem 0 0.3rem 1.4rem;
    font-size: 0.9rem;
    color: #cccccc;
    line-height: 1.4;
    font-family: 'Merriweather', serif;
    font-weight: 300;
}

.synopsis-meal-callout-features li::before {
    content: '\2713';
    position: absolute;
    left: 0;
    top: 0.3rem;
    color: #00875A;
    font-weight: 700;
    font-size: 0.9rem;
}

/* MAHA Kids Lunch Mode bullet — visually distinct from the green palette
   to draw the eye to the kids-specific feature. Amber on dark background. */
.synopsis-meal-callout-features li.kids-lunch-feature {
    color: #FFB400;
    background: rgba(255, 180, 0, 0.06);
    border-left: 3px solid #FFB400;
    border-radius: 4px;
    padding-left: 1.4rem;
    margin: 0.4rem 0;
}

.synopsis-meal-callout-features li.kids-lunch-feature::before {
    content: '\2605';
    color: #FFD75A;
    left: 0.4rem;
}

.synopsis-meal-callout-features li.kids-lunch-feature .synopsis-feature-name {
    color: #FFD75A;
}

.synopsis-meal-callout-features li.kids-lunch-feature strong {
    color: #FFE38A;
}

/* Circular Gallery Section Styles - Optimized */
.circular-gallery-section {
    width: 100%;
    padding: 1.5rem 0 0.625rem;
    background-color: #000000;
    overflow: hidden;
}

.circular-gallery-container {
    width: 100%;
    height: 336px;
    position: relative;
    overflow: hidden;
}

.circular-gallery-wrapper {
    width: 100%;
    height: 100%;
    position: relative;
    cursor: grab;
    overflow: hidden;
    perspective: 1200px;
    perspective-origin: 50% 50%;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.circular-gallery-wrapper:active {
    cursor: grabbing;
}

.circular-gallery-track {
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
    transform-style: preserve-3d;
}

.circular-gallery-item {
    position: absolute;
    width: 320px;
    height: 420px;
    flex-shrink: 0;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                opacity 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: flex;
    flex-direction: column;
    align-items: center;
    transform-style: preserve-3d;
    will-change: transform, opacity;
    backface-visibility: hidden;
}

.circular-gallery-image-container {
    width: 100%;
    height: 320px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background-color: #1a1a1a;
    position: relative;
}

.circular-gallery-item:hover .circular-gallery-image-container {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 20px 60px rgba(0, 135, 90, 0.3);
}

.circular-gallery-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    pointer-events: none;
}

.circular-gallery-item:hover .circular-gallery-image-container img {
    transform: scale(1.05);
}

.circular-gallery-link {
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    height: 100%;
}

.circular-gallery-caption {
    margin-top: 20px;
    text-align: center;
    font-family: 'Merriweather', serif;
    font-weight: 700;
    font-size: 1.1rem;
    color: #00875A;
    padding: 0 20px;
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.circular-gallery-item:hover .circular-gallery-caption {
    opacity: 1;
}

/* Performance optimizations */
.circular-gallery-wrapper * {
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    perspective: 1000px;
    -webkit-perspective: 1000px;
}

/* Loading state */
.circular-gallery-image-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, #1a1a1a 25%, #2a2a2a 25%, #2a2a2a 50%, #1a1a1a 50%, #1a1a1a 75%, #2a2a2a 75%, #2a2a2a);
    background-size: 40px 40px;
    animation: loading 1s linear infinite;
    z-index: 1;
    opacity: 0;
    transition: opacity 0.3s;
}

.circular-gallery-image-container.loading::before {
    opacity: 1;
}

@keyframes loading {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 40px 40px;
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .circular-gallery-container {
        height: 500px;
    }
    
    .circular-gallery-item {
        width: 280px;
        height: 380px;
    }
    
    .circular-gallery-image-container {
        height: 280px;
    }
}

/* Pillars Preview */
/* Foundation section (2026-05-27) — the data-sovereignty manifesto plus
   the "what's actually inside the portal" capability grid. Sits above
   the footer in place of the prior three-pillars block. */

.ngh-foundation {
    margin-top: 3rem;
    padding: 4rem 2rem 3.5rem;
    background: linear-gradient(180deg, #0a0a0a 0%, #131313 100%);
    border-top: 1px solid rgba(0, 135, 90, 0.15);
}

.ngh-foundation-inner {
    max-width: 1600px;
    margin: 0 auto;
}

/* --- Header (eyebrow + headline + lead paragraph) --- */
.ngh-foundation-header {
    text-align: center;
    max-width: 880px;
    margin: 0 auto 3rem;
}

.ngh-foundation-eyebrow,
.ngh-foundation-divider-eyebrow {
    display: inline-block;
    font-family: 'Merriweather', serif;
    font-size: 0.78rem;
    font-weight: 700;
    color: #00875A;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.ngh-foundation-eyebrow {
    padding: 0.4rem 1.1rem;
    border: 1px solid rgba(0, 135, 90, 0.4);
    border-radius: 999px;
    background: rgba(0, 135, 90, 0.06);
}

.ngh-foundation-headline {
    font-family: 'Merriweather', serif;
    font-size: 2.75rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.18;
    letter-spacing: -0.015em;
    margin: 0 0 1.5rem;
}

.ngh-foundation-headline .accent {
    color: #00875A;
}

.ngh-foundation-lead {
    font-family: 'Merriweather', serif;
    font-size: 1.08rem;
    font-weight: 300;
    color: #cccccc;
    line-height: 1.8;
    margin: 0;
}

.ngh-foundation-lead strong {
    color: #ffffff;
    font-weight: 700;
}

/* --- Tenet cards (the 3 conviction cards: De-ID / Anonymous / Exit) --- */
.ngh-foundation-tenets {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 4rem;
}

.ngh-foundation-tenet {
    background: linear-gradient(180deg, rgba(0, 135, 90, 0.05) 0%, rgba(26, 26, 26, 0.85) 100%);
    border: 1px solid rgba(0, 135, 90, 0.25);
    border-radius: 14px;
    padding: 2rem;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.ngh-foundation-tenet:hover {
    transform: translateY(-4px);
    border-color: rgba(0, 135, 90, 0.6);
    box-shadow: 0 12px 40px rgba(0, 135, 90, 0.18);
}

.ngh-foundation-tenet-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 1.25rem;
    border-radius: 12px;
    background: rgba(0, 135, 90, 0.12);
    color: #00875A;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ngh-foundation-tenet-icon svg {
    width: 24px;
    height: 24px;
}

.ngh-foundation-tenet-title {
    font-family: 'Merriweather', serif;
    font-size: 1.35rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 0.75rem;
    letter-spacing: -0.005em;
}

.ngh-foundation-tenet p {
    font-family: 'Merriweather', serif;
    font-size: 0.96rem;
    font-weight: 300;
    color: #b8b8b8;
    line-height: 1.7;
    margin: 0;
}

.ngh-foundation-tenet p strong {
    color: #00875A;
    font-weight: 700;
}

.ngh-foundation-tenet p em {
    color: #ffffff;
    font-style: normal;
    font-weight: 700;
}

/* --- Divider into the "inside the portal" capability grid --- */
.ngh-foundation-divider {
    text-align: center;
    max-width: 880px;
    margin: 0 auto 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.ngh-foundation-divider-eyebrow {
    margin-bottom: 0.75rem;
}

.ngh-foundation-subhead {
    font-family: 'Merriweather', serif;
    font-size: 1.85rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 0.5rem;
    letter-spacing: -0.01em;
}

.ngh-foundation-divider-lead {
    font-family: 'Merriweather', serif;
    font-size: 1rem;
    font-weight: 300;
    color: #999999;
    margin: 0;
}

/* --- Feature cards (6 capabilities not previously surfaced on landing) --- */
.ngh-foundation-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.2rem;
}

.ngh-foundation-feature {
    background: rgba(26, 26, 26, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 1.5rem;
    transition: border-color 0.3s ease, transform 0.3s ease, background 0.3s ease;
}

.ngh-foundation-feature:hover {
    border-color: rgba(0, 135, 90, 0.4);
    transform: translateY(-3px);
    background: rgba(26, 26, 26, 0.85);
}

.ngh-foundation-feature-title {
    font-family: 'Merriweather', serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: #00875A;
    margin: 0 0 0.6rem;
    letter-spacing: -0.005em;
}

.ngh-foundation-feature p {
    font-family: 'Merriweather', serif;
    font-size: 0.92rem;
    font-weight: 300;
    color: #b8b8b8;
    line-height: 1.65;
    margin: 0;
}

.ngh-foundation-feature p strong {
    color: #ffffff;
    font-weight: 700;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .ngh-foundation-tenets,
    .ngh-foundation-features {
        grid-template-columns: repeat(2, 1fr);
    }
    .ngh-foundation-headline {
        font-size: 2.25rem;
    }
}

@media (max-width: 640px) {
    .ngh-foundation {
        padding: 3rem 1rem 2.5rem;
    }
    .ngh-foundation-tenets,
    .ngh-foundation-features {
        grid-template-columns: 1fr;
    }
    .ngh-foundation-headline {
        font-size: 1.85rem;
    }
    .ngh-foundation-lead {
        font-size: 1rem;
    }
    .ngh-foundation-subhead {
        font-size: 1.5rem;
    }
}

/* Footer */
.main-footer {
    background-color: #0a0a0a;
    padding: 2rem 0;
    margin-top: 5rem;
}

.footer-content {
    max-width: 1600px;
    margin: 0 auto;
    text-align: center;
    padding: 0 2rem;
}

.footer-content p {
    font-family: 'Merriweather', serif;
    font-weight: 300;
}

.footer-links {
    margin-top: 1rem;
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.footer-links a {
    color: #888;
    text-decoration: none;
    font-family: 'Merriweather', serif;
    font-weight: 300;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #00875A;
}

/* Responsive Design */
/* Mobile hamburger menu styles */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #00875A;
    font-size: 1.8rem;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

.mobile-menu-toggle:hover {
    opacity: 0.8;
}

@media (max-width: 1200px) {
    .carousel-section {
        max-width: 718px;
        min-height: 615px;
    }

    /* Carousel column shrinks at this breakpoint; synopsis takes the rest. */
    .hero-text {
        flex-basis: 718px;
        max-width: 718px;
    }

    .circular-gallery-container {
        height: 336px;
    }
}

@media (max-width: 768px) {
    main {
        margin-top: 100px;
    }

    .hero-section {
        padding: 2rem 1rem;
    }

    .hero-content {
        flex-direction: column;
        align-items: stretch;
        gap: 2rem;
    }

    /* Stack the synopsis above the carousel on mobile. */
    .hero-main-row {
        flex-direction: column;
        gap: 1.5rem;
    }

    .hero-text {
        flex-basis: auto;
        max-width: 100%;
        width: 100%;
    }

    .synopsis-title {
        font-size: 1.5rem;
    }

    .logo {
        flex-direction: column;
        gap: 0.5rem;
    }

    .header-emblem {
        height: 2rem;
    }

    .main-container {
        flex-direction: column;
    }

    .selection-panel {
        flex: 1;
        max-width: 100%;
    }

    .carousel-section {
        width: 100%;
        height: 800px;
        max-width: 100%;
    }

    .carousel-grid {
        gap: 0.8rem;
    }

    .circular-gallery-container {
        height: 280px;
    }

    .hero-title {
        font-size: 1.8rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .navbar {
        flex-wrap: wrap;
        position: relative;
    }

    /* Show hamburger menu on mobile */
    .mobile-menu-toggle {
        display: block;
        order: 3;
        margin-left: auto;
    }

    /* Hide desktop navigation on mobile */
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(18, 18, 18, 0.98);
        flex-direction: column;
        width: 100%;
        padding: 1rem 0;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
        z-index: 1000;
    }

    /* Show navigation when menu is active */
    .nav-menu.active {
        display: flex !important;
    }

    .nav-menu li {
        width: 100%;
        text-align: left;
    }

    .nav-menu .dropdown {
        position: relative;
    }

    .nav-menu .dropdown-menu {
        position: static;
        display: none;
        background: rgba(0, 0, 0, 0.4);
        padding: 0.5rem 0 0.5rem 2rem;
        margin: 0;
    }

    .nav-menu .dropdown.active .dropdown-menu {
        display: block;
    }

    .nav-menu .nav-link {
        padding: 1rem 1.5rem;
        display: block;
    }

    .nav-actions {
        flex-direction: row;
        gap: 0.5rem;
        width: auto;
        order: 2;
    }

    .auth-buttons {
        display: flex;
        gap: 0.5rem;
    }

    .auth-button {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
        white-space: nowrap;
    }

    .search-bar {
        width: 100%;
    }

    .cta-button, .flip-button {
        width: 100%;
        text-align: center;
    }

    .button-right {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        width: 100%;
        margin-top: 1rem;
    }

    .button {
        width: 100%;
        max-width: 300px;
        height: 50px;
        margin: 0 auto;
    }

    .button__text {
        font-size: 16px;
    }

    .button__icon svg {
        width: 20px;
        height: 20px;
    }

    /* Fix forms and inputs for mobile */
    input[type="text"],
    input[type="email"],
    input[type="password"],
    textarea,
    select {
        font-size: 16px; /* Prevents zoom on iOS */
        padding: 0.75rem;
        width: 100%;
        box-sizing: border-box;
    }

    .selection-panel h3 {
        font-size: 1.5rem;
    }

    .checkbox-item span {
        font-size: 0.9rem;
    }

    /* Ensure images scale properly */
    img {
        max-width: 100%;
        height: auto;
    }

    /* Fix tables for mobile */
    table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}

/* Custom Flip Button Styles.
   2026-05-26: horizontal row sitting BELOW the (right-aligned) carousel,
   pinned to the LEFT edge of the page content (overrides .hero-content's
   align-items: flex-end via align-self: flex-start).
   Mobile @media still overrides to flex-column full-width. */
.button-right {
    display: flex;
    flex-direction: row;
    gap: 1.2rem;
    justify-content: flex-start;
    align-items: flex-start;
    align-self: flex-start;
    flex-shrink: 0;
    margin-top: 0;
    margin-bottom: 0;
    flex-wrap: wrap;
}

.flip-button {
    width: 224px;
    height: 224px;
    perspective: 1000px;
    border-radius: 20px;
    display: block;
    text-decoration: none;
    cursor: pointer;
}

.flip-button:active {
    transform: translateY(4px);
}

.flip-button-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.5s;
    transform-style: preserve-3d;
    border-radius: 20px;
    box-shadow: 0 1px 2px 10px rgba(0,0,0,0.05);
}

.flip-button:hover .flip-button-inner {
    transform: rotateY(180deg);
}

.front, .back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    opacity: 1;
    transition: opacity 0.5s;
}

.front {
    background-color: #ffffff;
    color: #00875A;
}

.back {
    background-color: #00875A;
    color: #ffffff;
    transform: rotateY(180deg);
}

.front img {
    width: 100px;
    height: auto;
    margin-bottom: 10px;
}

.front p, .back p {
    font-size: 1.5rem;
    font-weight: 700;
    font-family: 'Merriweather', serif;
    margin: 0 0;
}

.contact-back-text {
    font-size: 1.1rem !important;
    line-height: 1.3;
    padding: 0 10px;
}

/* ============================================
   CONTACT PAGE LAYOUT - PITCH DECK + FORM
   ============================================ */

.contact-page-layout {
    display: flex;
    gap: 3rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem 2rem 2rem;
    align-items: flex-start;
}

/* Pitch Deck Column */
.pitch-deck-column {
    flex: 1;
    max-width: 55%;
    min-width: 400px;
}

.pitch-deck-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #00875A;
    margin-bottom: 1rem;
    font-family: 'Merriweather', serif;
}

.pitch-deck-container {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    overflow: hidden;
    box-shadow:
        0 4px 20px rgba(0, 135, 90, 0.25),
        0 0 0 1px rgba(0, 135, 90, 0.1);
    background-color: #1a1a1a;
}

.pitch-deck-iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 12px;
}

.pitch-deck-instructions {
    margin-top: 1rem;
    font-size: 0.85rem;
    color: #888888;
    font-family: 'Merriweather', serif;
    font-weight: 300;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.instruction-icon {
    color: #00875A;
    font-size: 0.75rem;
}

/* Contact Form Column */
.contact-form-column {
    flex: 1;
    max-width: 450px;
    min-width: 320px;
}

.contact-form-column h2 {
    font-size: 1.75rem;
    color: #00875A;
    margin-bottom: 1.25rem;
    font-weight: 700;
    font-family: 'Merriweather', serif;
}

/* Contact Info Box */
.contact-info-box {
    margin-top: 2rem;
    padding: 1.5rem;
    background: rgba(0, 135, 90, 0.1);
    border-radius: 10px;
}

.contact-info-box h3 {
    color: #00875A;
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    font-family: 'Merriweather', serif;
}

.contact-info-box p {
    color: #cccccc;
    font-size: 0.95rem;
    margin-bottom: 1rem;
    font-family: 'Merriweather', serif;
}

.quick-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.quick-links a {
    color: #00875A;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    font-family: 'Merriweather', serif;
    transition: color 0.3s;
}

.quick-links a:hover {
    color: #00a572;
}

/* Responsive Styles for Contact Page Layout */
@media (max-width: 1200px) {
    .contact-page-layout {
        gap: 2rem;
        padding: 0 1.5rem 2rem 1.5rem;
    }

    .pitch-deck-column {
        max-width: 50%;
        min-width: 350px;
    }

    .contact-form-column {
        max-width: 400px;
        min-width: 300px;
    }

    .pitch-deck-title,
    .contact-form-column h2 {
        font-size: 1.5rem;
    }
}

@media (max-width: 900px) {
    .contact-page-layout {
        flex-direction: column;
        align-items: center;
    }

    .pitch-deck-column {
        max-width: 100%;
        min-width: unset;
        width: 100%;
    }

    .contact-form-column {
        max-width: 100%;
        min-width: unset;
        width: 100%;
    }

    .pitch-deck-container {
        padding-bottom: 0;
    }
}

@media (max-width: 600px) {
    .contact-page-layout {
        padding: 0 1rem 1.5rem 1rem;
        gap: 1.5rem;
    }

    .pitch-deck-title,
    .contact-form-column h2 {
        font-size: 1.3rem;
    }

    .pitch-deck-container {
        padding-bottom: 0;
        border-radius: 8px;
    }

    .pitch-deck-iframe {
        border-radius: 8px;
    }

    .pitch-deck-instructions {
        font-size: 0.8rem;
    }

    .contact-info-box {
        padding: 1.25rem;
    }

    .quick-links {
        flex-direction: column;
        gap: 0.5rem;
    }
}