/* ==========================================================================
   ThreshWorks — Shared Stylesheet
   ========================================================================== */

:root {
  --green-dark: #1B5E20;
  --green-dark-rgb: 27, 94, 32;
  --green-mid: #2E7D32;
  --green-light: #4CAF50;
  --orange: #E65100;
  --orange-bright: #FF6D00;
  --cream: #FAFAF5;
  --white: #ffffff;
  --text-dark: #0D1F0E;
  --text-muted: #666;
  --font-display: 'Playfair Display', serif;
  --font-body: 'Outfit', sans-serif;

  --nav-height: 72px;
  --nav-height-scrolled: 60px;
  --nav-transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--text-dark);
  overflow-x: hidden;
  letter-spacing: 0.01em;
}

a {
  color: var(--orange);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* ==========================================================================
   Lucide icons — consistent sizing
   ========================================================================== */

[data-lucide] {
  width: 20px;
  height: 20px;
  stroke-width: 1.75;
  color: currentColor;
  flex-shrink: 0;
}

/* ==========================================================================
   Focus visible — accessibility
   ========================================================================== */

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
}

/* ==========================================================================
   Navbar — ThreshWorks (v2)
   ========================================================================== */

nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-height);
  background: rgba(var(--green-dark-rgb), 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  padding: 0;
  transition: height var(--nav-transition),
              background var(--nav-transition),
              box-shadow var(--nav-transition);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  overflow: visible;
}

nav.scrolled {
  height: var(--nav-height-scrolled);
  background: rgba(var(--green-dark-rgb), 0.99);
  box-shadow: 0 4px 24px rgba(0,0,0,0.18);
}

.nav-logo-zone {
  flex: 0 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  padding: 0 0.75rem 0 1rem;
  background: var(--cream);
  position: relative;
}

.nav-logo-zone::after {
  content: '';
  position: absolute;
  top: 0;
  right: -24px;
  width: 48px;
  height: 100%;
  background: var(--cream);
  clip-path: polygon(0 0, 40% 0, 100% 100%, 0 100%);
  z-index: 1;
  pointer-events: none;
}

.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  height: 100%;
  position: relative;
  z-index: 2;
}

.nav-logo:hover { text-decoration: none; }

.logo-horizontal {
  height: 48px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
  display: block;
  transition: height var(--nav-transition);
}

nav.scrolled .logo-horizontal { height: 40px; }

.logo-icon {
  display: none;
  height: 44px;
  width: auto;
  max-width: 120px;
  object-fit: contain;
  transition: height var(--nav-transition);
}

nav.scrolled .logo-icon { height: 38px; }

.nav-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0 2rem 0 2.5rem;
  height: 100%;
  min-width: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0;
  list-style: none;
  height: 100%;
}

.nav-links li {
  height: 100%;
  display: flex;
  align-items: center;
}

.nav-links a {
  position: relative;
  display: flex;
  align-items: center;
  height: 100%;
  padding: 0 1rem;
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.03em;
  transition: color 0.2s;
  white-space: nowrap;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 1rem; right: 1rem;
  height: 2.5px;
  background: var(--orange-bright);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 2px 2px 0 0;
}

.nav-links a:hover { color: var(--white); text-decoration: none; }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-links a.active {
  color: var(--white);
  font-weight: 600;
}
.nav-links a.active::after {
  transform: scaleX(1);
  height: 3px;
  background: var(--orange-bright);
}

.nav-cta {
  background: var(--orange) !important;
  color: var(--white) !important;
  padding: 0.5rem 1.3rem !important;
  border-radius: 4px;
  font-weight: 500 !important;
  font-size: 0.85rem;
  margin-left: 0.6rem;
  height: auto !important;
  transition: background 0.2s, transform 0.2s;
}

.nav-cta::after { display: none !important; }

.nav-cta:hover {
  background: var(--orange-bright) !important;
  transform: translateY(-1px);
  text-decoration: none !important;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 44px; height: 44px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 10px;
  gap: 5px;
  margin-left: auto;
  -webkit-tap-highlight-color: transparent;
}

.nav-toggle span {
  display: block;
  width: 22px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.2s;
  transform-origin: center;
}

.nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 998;
  opacity: 0;
  transition: opacity 0.3s;
}

.nav-overlay.active { display: block; opacity: 1; }

/* ---- Tablet ---- */
@media (max-width: 960px) {
  .nav-links a { padding: 0 0.7rem; font-size: 0.82rem; }
  .nav-cta { padding: 0.45rem 1rem !important; font-size: 0.82rem; }
}

/* ---- Mobile ---- */
@media (max-width: 768px) {
  :root {
    --nav-height: 64px;
    --nav-height-scrolled: 56px;
  }

  .nav-logo-zone { padding: 0 0.5rem 0 0.75rem; }
  .nav-logo-zone::after { right: -14px; width: 28px; }

  .logo-horizontal { display: none !important; }
  .logo-icon { display: block !important; }

  .nav-main { padding: 0 0.75rem 0 0; }
  .nav-toggle { display: flex !important; }

  .nav-links {
    position: fixed;
    top: var(--nav-height);
    right: 0;
    width: 280px;
    max-width: 85vw;
    height: calc(100dvh - var(--nav-height));
    background: var(--green-dark);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.75rem 0 2rem;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    box-shadow: -8px 0 32px rgba(0,0,0,0.25);
    z-index: 999;
  }

  nav.scrolled .nav-links {
    top: var(--nav-height-scrolled);
    height: calc(100dvh - var(--nav-height-scrolled));
  }

  .nav-links.active { transform: translateX(0); }

  .nav-links li {
    height: auto;
    opacity: 0;
    transform: translateX(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
  }

  .nav-links.active li { opacity: 1; transform: translateX(0); }
  .nav-links.active li:nth-child(1) { transition-delay: 0.04s; }
  .nav-links.active li:nth-child(2) { transition-delay: 0.08s; }
  .nav-links.active li:nth-child(3) { transition-delay: 0.12s; }
  .nav-links.active li:nth-child(4) { transition-delay: 0.16s; }
  .nav-links.active li:nth-child(5) { transition-delay: 0.20s; }
  .nav-links.active li:nth-child(6) { transition-delay: 0.24s; }
  .nav-links.active li:nth-child(7) { transition-delay: 0.24s; }
  .nav-links.active li:nth-child(8) { transition-delay: 0.28s; }

  .nav-links a {
    height: auto;
    padding: 0.85rem 1.5rem;
    font-size: 0.95rem;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    color: rgba(255,255,255,0.8);
  }

  .nav-links a::after { display: none; }

  .nav-links a.active {
    color: var(--white);
    font-weight: 600;
    border-left: 3px solid var(--orange-bright);
    padding-left: calc(1.5rem - 3px);
    background: rgba(255,255,255,0.03);
  }

  .nav-links a:hover { background: rgba(255,255,255,0.05); text-decoration: none; }

  .nav-links .nav-cta {
    margin: 1rem 1.25rem 0 !important;
    padding: 0.75rem 1.5rem !important;
    border-radius: 6px;
    text-align: center;
    justify-content: center;
    font-weight: 600 !important;
    border-bottom: none;
  }
}

@media (max-width: 400px) {
  .logo-icon { height: 38px; }
  nav.scrolled .logo-icon { height: 32px; }
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn-primary,
.btn-secondary,
.btn-white,
.btn-outline,
.btn-outline-white,
.btn-orange,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  letter-spacing: 0.03em;
  font-family: var(--font-body);
  cursor: pointer;
  text-decoration: none;
  border: none;
  transition: all 0.25s ease;
}

.btn-primary {
  background: var(--orange);
  color: var(--white);
  padding: 0.85rem 2rem;
  border-radius: 4px;
  font-size: 0.95rem;
  font-weight: 600;
}

.btn-primary:hover {
  background: var(--orange-bright);
  transform: translateY(-2px);
  text-decoration: none;
}

.btn-secondary {
  background: transparent;
  color: var(--white);
  padding: 0.85rem 2rem;
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  border-radius: 4px;
  font-size: 0.95rem;
  font-weight: 500;
}

.btn-secondary:hover {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-2px);
  text-decoration: none;
}

.btn-white {
  background: var(--white);
  color: var(--orange);
  padding: 0.85rem 2rem;
  border-radius: 4px;
  font-size: 0.9rem;
  font-weight: 700;
}

.btn-white:hover {
  transform: translateY(-2px);
  text-decoration: none;
}

.btn-outline-white,
.btn-outline {
  background: transparent;
  color: var(--white);
  padding: 0.85rem 2rem;
  border-radius: 4px;
  border: 1.5px solid rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
  font-weight: 500;
}

.btn-outline-white:hover,
.btn-outline:hover {
  border-color: var(--white);
  transform: translateY(-2px);
  text-decoration: none;
}

.btn-orange {
  background: var(--orange);
  color: var(--white);
  padding: 0.9rem 2.2rem;
  border-radius: 4px;
  font-size: 0.95rem;
  font-weight: 600;
}

.btn-orange:hover {
  background: var(--orange-bright);
  transform: translateY(-2px);
  text-decoration: none;
}

.btn-ghost {
  background: transparent;
  color: var(--white);
  padding: 0.9rem 2.2rem;
  border-radius: 4px;
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  font-size: 0.95rem;
  font-weight: 500;
}

.btn-ghost:hover {
  border-color: var(--white);
  transform: translateY(-2px);
  text-decoration: none;
}

/* ==========================================================================
   Typography — section tags (eyebrow), headings, body
   ========================================================================== */

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 1rem;
}

.section-tag::before {
  content: '';
  width: 24px;
  height: 2px;
  background: var(--orange);
  display: inline-block;
  flex-shrink: 0;
}

.section-tag.green {
  color: var(--green-mid);
}

.section-tag.green::before {
  background: var(--green-mid);
}

.section-tag.white {
  color: var(--orange-bright);
}

.section-tag.white::before {
  background: var(--orange-bright);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 900;
  color: var(--text-dark);
  line-height: 1.3;
  margin-bottom: 1rem;
}

.section-title em {
  font-style: italic;
  color: var(--green-mid);
}

.section-title.white {
  color: var(--white);
}

.section-title.white em {
  color: var(--orange-bright);
}

.page-title,
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4vw, 3.8rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 1.2rem;
}

.page-title em,
.hero-title em {
  font-style: italic;
  color: var(--orange-bright);
}

.page-intro,
.hero-sub {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.85;
  font-weight: 300;
}

/* ==========================================================================
   Page hero — shared inner-page hero with dot-grid background
   ========================================================================== */

.page-hero {
  padding-top: 72px;
  background: var(--green-dark);
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='12' cy='12' r='1' fill='%23ffffff' fill-opacity='0.05'/%3E%3C/svg%3E");
  background-size: 24px 24px;
  pointer-events: none;
}

.page-hero-inner {
  position: relative;
  z-index: 2;
}

/* ==========================================================================
   Breadcrumbs
   ========================================================================== */

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.breadcrumb span {
  color: var(--orange-bright);
}

.breadcrumb a {
  color: inherit;
}

.breadcrumb a:hover {
  color: var(--white);
  text-decoration: none;
}

/* ==========================================================================
   Wave divider
   ========================================================================== */

.wave {
  display: block;
  width: 100%;
  margin-bottom: -2px;
}

/* ==========================================================================
   Cards — base hover (consistent across site)
   ========================================================================== */

.card-hover,
.mv-card,
.value-card,
.feature-card,
.partner-card,
.type-card,
.aim-card,
.team-card,
.post-card,
.future-card,
.current-partner-card,
.offer-card,
.region-card,
.problem-card {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.mv-card:hover,
.value-card:hover,
.feature-card:hover,
.partner-card:hover,
.type-card:hover,
.aim-card:hover,
.team-card:hover,
.post-card:hover,
.future-card:hover,
.current-partner-card:hover,
.offer-card:hover,
.region-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.10);
}

/* ==========================================================================
   CTA strip
   ========================================================================== */

.cta-strip {
  background: var(--orange);
  padding: 3rem 7%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.cta-strip-text h3 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.3rem;
  line-height: 1.2;
}

.cta-strip-text p {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 300;
}

.cta-strip-actions {
  display: flex;
  gap: 1rem;
  flex-shrink: 0;
}

/* ==========================================================================
   Footer
   ========================================================================== */

footer {
  background: var(--green-dark);
  padding: 0;
  display: flex;
  align-items: stretch;
  justify-content: flex-start;
  flex-wrap: wrap;
  border-top: 3px solid var(--orange);
}

/* Logo zone — distinct background so footer logo stands out */
.footer-logo-zone {
  flex: 0 0 28%;
  max-width: 320px;
  padding: 2rem 0.5rem;
  background: var(--cream);
  border-right: 1px solid rgba(var(--green-dark-rgb), 0.12);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.footer-logo-zone .footer-brand {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.footer-logo-zone .footer-brand img.footer-logo {
  height: 56px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
  object-position: center;
}

.footer-logo-zone .footer-tagline {
  color: var(--text-muted);
  font-size: 0.75rem;
  margin-top: 4px;
}

.footer-rest {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 2.5rem 7% 2.5rem 4%;
  min-width: 0;
}

.footer-brand {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--white);
}

.footer-brand img {
  height: 36px;
  width: auto;
  display: block;
}

.footer-tagline {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.35);
  margin-top: 3px;
  letter-spacing: 0.05em;
}

.footer-contact {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
}

.footer-contact p {
  margin: 0;
}

.footer-copy {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.25);
}

/* Partner logo images (homepage strip and partner cards) */
.partner-logo-img {
  height: 32px;
  width: auto;
  max-width: 120px;
  object-fit: contain;
  display: block;
}

.partner-logo-box img,
.current-partner-logo img {
  max-width: 100%;
  max-height: 64px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

/* ==========================================================================
   Utility classes
   ========================================================================== */

.text-center {
  text-align: center;
}

.justify-center {
  justify-content: center;
}

.section-lead {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.8;
  font-weight: 300;
  max-width: 560px;
  margin: 0 auto;
}

.hidden {
  display: none;
}

.aim-desc {
  color: rgba(255, 255, 255, 0.65);
}

.post-card-image-placeholder {
  color: rgba(255, 255, 255, 0.3);
}

.photo-initial {
  color: rgba(230, 81, 0, 0.15);
}

.section-padding {
  padding: 6rem 7%;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 5%;
}

/* ==========================================================================
   Animations
   ========================================================================== */

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

/* ==========================================================================
   Mobile responsive — shared components
   ========================================================================== */

@media (max-width: 768px) {
  .cta-strip {
    flex-direction: column !important;
    text-align: center;
    padding: 3rem 5%;
  }

  .cta-strip-actions {
    flex-direction: column;
    align-items: center;
  }

  .wave {
    height: 40px;
  }

  .btn-primary,
  .btn-secondary,
  .btn-white,
  .btn-outline-white,
  .btn-orange,
  .btn-ghost {
    width: 100%;
    justify-content: center;
  }

  .footer-logo-zone {
    flex: 0 0 100%;
    max-width: none;
    padding: 2rem 0.5rem;
    border-right: none;
    border-bottom: 1px solid rgba(var(--green-dark-rgb), 0.12);
  }

  .footer-rest {
    padding: 2rem 7%;
  }
}

@media (max-width: 480px) {
  .page-title,
  .hero-title {
    font-size: 1.65rem !important;
  }
}
