/* ============================================================
   Pistis Group — redesign on reference template (cream / ink / olive)
   ============================================================ */

:root {
  --cream: #F4F1EA;
  --cream2: #ECE7DA;
  --ink: #14150F;
  --ink-soft: #3B3B33;
  --muted: #6E6C60;
  --line: #DFDACB;
  --olive: #6E7C54;
  --olive-dark: #414B30;
  --leaf: #90AC5F;
  --dark: #101207;
  --dark2: #171B10;
  --white: #FFFFFF;
  --gold: #BD9614;
  --gradient-badge: linear-gradient(90deg, #2f5d1e 0%, #9AE13C 100%);
  --max: 1200px;
  --radius: 6px;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  margin: 0;
  font-family: "Inter", -apple-system, Helvetica, Arial, sans-serif;
  background: var(--cream);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  margin: 0 0 0.4em;
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1.12;
  color: var(--ink);
}

p { margin: 0 0 1em; color: var(--ink-soft); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 32px; }
@media (max-width: 480px) {
  .container { padding: 0 20px; }
}
.center { text-align: center; }

/* ---------- Eyebrow ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--olive-dark);
  margin-bottom: 16px;
}
.eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  background: var(--leaf);
  display: inline-block;
}
.eyebrow.on-dark { color: var(--leaf); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 26px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: 4px;
  border: 1px solid var(--ink);
  cursor: pointer;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out), background 0.2s ease, border-color 0.2s ease;
  will-change: transform;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-solid { background: var(--ink); color: var(--white); }
.btn-solid:hover { background: #2a2b22; box-shadow: 0 10px 24px rgba(20,21,15,0.22); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: rgba(20,21,15,0.06); box-shadow: 0 8px 18px rgba(20,21,15,0.08); }
.btn-ghost.on-dark { border-color: rgba(255,255,255,0.5); color: #fff; }
.btn-ghost.on-dark:hover { background: rgba(255,255,255,0.1); box-shadow: 0 8px 18px rgba(0,0,0,0.25); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(244,241,234,0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.3s ease;
}
.site-header.scrolled { box-shadow: 0 6px 24px rgba(20,21,15,0.08); }
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 48px;
  height: 86px;
  transition: height 0.3s var(--ease);
}
.site-header.scrolled .container { height: 66px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1rem; letter-spacing: -0.01em; margin-right: auto; position: relative; z-index: 2; }
.brand img { height: 198px; width: auto; transition: height 0.3s var(--ease); }
.site-header.scrolled .brand img { height: 163px; }
nav.main-nav ul { list-style: none; display: flex; gap: 30px; margin: 0; padding: 0; }
nav.main-nav a { font-size: 0.85rem; font-weight: 500; color: var(--ink-soft); position: relative; padding-bottom: 2px; transition: color 0.2s ease; }
nav.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: -3px;
  height: 2px;
  background: var(--leaf);
  transition: right 0.25s var(--ease);
}
nav.main-nav a:hover::after, nav.main-nav a[aria-current="page"]::after { right: 0; }
nav.main-nav a:hover, nav.main-nav a[aria-current="page"] { color: var(--ink); }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 4px; padding: 8px 12px; transition: border-color 0.2s ease, background 0.2s ease; cursor: pointer; }
.nav-toggle:hover { border-color: var(--ink); background: rgba(20,21,15,0.04); }

@media (max-width: 860px) {
  .site-header .container { height: 71px; }
  .site-header.scrolled .container { height: 60px; }
  .brand img { height: 98px; }
  .site-header.scrolled .brand img { height: 91px; }
  nav.main-nav {
    position: fixed;
    inset: 71px 0 0 0;
    background: var(--cream);
    padding: 24px 32px;
    z-index: 99;
    visibility: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.25s var(--ease-out), transform 0.25s var(--ease-out), visibility 0.25s;
  }
  nav.main-nav.open { visibility: visible; opacity: 1; transform: translateY(0); }
  nav.main-nav ul { flex-direction: column; gap: 4px; }
  nav.main-nav a { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav-toggle { display: inline-block; }
}

/* ---------- Hero (photo + centered headline) ---------- */
.hero {
  position: relative;
  padding: 90px 0 70px;
  overflow: hidden;
  min-height: 78vh;
  display: flex;
  align-items: center;
}
.hero-bg { position: absolute; inset: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.9) brightness(0.72); }
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(16,18,7,0.35) 0%, rgba(16,18,7,0.55) 100%);
}
.hero-content { position: relative; z-index: 2; width: 100%; text-align: center; animation: heroRise 0.9s var(--ease-out) both; }

@keyframes heroRise {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-content { animation: none; }
}
.hero .eyebrow { color: var(--leaf); justify-content: center; }
.hero h1 {
  color: #fff;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  max-width: 780px;
  margin: 0 auto 0.4em;
}
.hero p.lede { color: rgba(255,255,255,0.82); max-width: 560px; margin: 0 auto 30px; font-size: 1.02rem; }
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* Page hero (simpler, shorter, for inner pages) */
.page-hero { min-height: 48vh; padding: 70px 0 50px; }
body.subsidiary .page-hero { min-height: 31vh; }
.page-hero h1 { font-size: clamp(2rem, 4.4vw, 3rem); }

/* ---------- Network diagram (subsidiaries around center logo) ---------- */
.network {
  position: relative;
  z-index: 2;
  max-width: 760px;
  margin: 56px auto 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 0 18px;
}
.network-col { display: flex; flex-direction: column; gap: 18px; }
.network-col.right { align-items: flex-start; }
.network-col.left { align-items: flex-end; }
.node {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(244,241,234,0.94);
  border: 1px solid rgba(255,255,255,0.4);
  border-radius: 30px;
  padding: 8px 16px 8px 8px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink);
  position: relative;
  white-space: nowrap;
}
.network-col.left .node { flex-direction: row-reverse; padding: 8px 8px 8px 16px; }
.node img { width: 26px; height: 26px; object-fit: contain; border-radius: 50%; background: #fff; padding: 3px; }
.node::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 40px;
  height: 0;
  border-top: 1.5px dashed rgba(255,255,255,0.55);
}
.network-col.right .node::after { left: -40px; }
.network-col.left .node::after { right: -40px; }
.network-center {
  width: 96px;
  height: 96px;
  background: var(--cream);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 30px rgba(0,0,0,0.25);
}
.network-center img { width: 56px; height: 56px; object-fit: contain; }

@media (max-width: 700px) {
  .network { grid-template-columns: 1fr; justify-items: center; gap: 14px; }
  .network-col { flex-direction: row; flex-wrap: wrap; justify-content: center; }
  .network-col.left, .network-col.right { align-items: center; }
  .node::after { display: none; }
  .network-col.left .node { flex-direction: row; padding: 8px 16px 8px 8px; }
}

/* ---------- Sections ---------- */
section { padding: 96px 0; }
section.tight { padding: 56px 0; }
body.home section:not(.hero) { padding: 48px 0; }
body.home section.tight:not(.hero) { padding: 28px 0; }
.section-head { max-width: 620px; margin: 0 0 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
.section-head p { color: var(--muted); font-size: 1.02rem; }

/* Feature grid (4 cards with corner ticks) */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.feature-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.feature-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.feature-card {
  background: var(--cream);
  padding: 30px 26px;
  position: relative;
  transition: background 0.3s ease, transform 0.3s var(--ease-out);
}
.feature-card:hover { background: #fff; transform: translateY(-4px); z-index: 1; box-shadow: 0 16px 34px rgba(20,21,15,0.1); }
.feature-card .icon { font-size: 1.3rem; margin-bottom: 40px; color: var(--olive-dark); transition: transform 0.3s var(--ease-out); }
.feature-card:hover .icon { transform: scale(1.15); }
.feature-card h3 { font-size: 1rem; margin-bottom: 8px; }
.feature-card p { font-size: 0.9rem; color: var(--muted); margin: 0; }

@media (max-width: 900px) {
  .feature-grid, .feature-grid.cols-3 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .feature-grid, .feature-grid.cols-2, .feature-grid.cols-3 { grid-template-columns: 1fr; }
}

/* Split: framed photo + accordion */
.split-photo-accordion {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.framed-photo {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  box-shadow: 0 20px 50px rgba(20,21,15,0.12);
  transition: box-shadow 0.3s ease;
}
.framed-photo:hover { box-shadow: 0 26px 60px rgba(20,21,15,0.18); }
.framed-photo .bar { display: flex; gap: 6px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.framed-photo .bar span { width: 8px; height: 8px; border-radius: 50%; background: var(--line); }
.framed-photo img { width: 100%; height: 320px; object-fit: cover; transition: transform 0.6s var(--ease-out); }
.framed-photo:hover img { transform: scale(1.05); }

.accordion { border-top: 1px solid var(--line); }
.accordion-item { border-bottom: 1px solid var(--line); }
.accordion-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 4px;
  font-weight: 600;
  font-size: 1.02rem;
}
.accordion-item summary::-webkit-details-marker { display: none; }
.accordion-item summary .mark { font-size: 1.2rem; color: var(--muted); font-weight: 400; }
.accordion-item[open] summary .mark::before { content: "\2212"; }
.accordion-item:not([open]) summary .mark::before { content: "+"; }
.accordion-item .panel { padding: 0 4px 22px; color: var(--muted); font-size: 0.94rem; max-width: 480px; }

@media (max-width: 860px) {
  .split-photo-accordion { grid-template-columns: 1fr; gap: 36px; }
}

/* Dark nature section with connected node grid */
.dark-section {
  position: relative;
  color: #fff;
  overflow: hidden;
}
.dark-section .bg { position: absolute; inset: 0; }
.dark-section .bg img { width: 100%; height: 100%; object-fit: cover; }
.dark-section .bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,12,6,0.72), rgba(10,12,6,0.88)); }
.dark-section .container { position: relative; z-index: 2; }
.dark-section .section-head h2 { color: #fff; }
.dark-section .section-head p { color: rgba(255,255,255,0.72); }

.node-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 60px 40px;
  margin-top: 30px;
  position: relative;
}
.node-box {
  background: rgba(20,22,12,0.55);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: var(--radius);
  padding: 22px 22px 24px;
  position: relative;
}
.node-box h4 { color: #fff; font-size: 0.98rem; margin-bottom: 6px; }
.node-box p { color: rgba(255,255,255,0.68); font-size: 0.86rem; margin: 0; }
.node-grid .row-1 .node-box::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -32px;
  width: 1px;
  height: 32px;
  border-left: 1.5px dashed rgba(255,255,255,0.4);
}

@media (max-width: 860px) {
  .node-grid { grid-template-columns: 1fr; gap: 20px; }
  .node-grid .row-1 .node-box::after { display: none; }
}

/* Numbered feature rows (image + text alternating) */
.numbered-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  padding: 56px 0;
  border-bottom: 1px solid var(--line);
}
.numbered-row:last-child { border-bottom: none; }
.numbered-row.reverse .numbered-media { order: 2; }
.numbered-row .idx { font-size: 0.8rem; color: var(--muted); font-weight: 600; float: right; }
.numbered-row h3 { font-size: 1.4rem; margin-bottom: 10px; }
.numbered-row p { color: var(--muted); }
.numbered-media {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  box-shadow: 0 16px 40px rgba(20,21,15,0.08);
  transition: box-shadow 0.3s ease;
}
.numbered-media:hover { box-shadow: 0 22px 50px rgba(20,21,15,0.14); }
.numbered-media img { width: 100%; height: 300px; object-fit: cover; display: block; transition: transform 0.6s var(--ease-out); }
.numbered-media:hover img { transform: scale(1.05); }

@media (max-width: 860px) {
  .numbered-row { grid-template-columns: 1fr; gap: 24px; }
  .numbered-row.reverse .numbered-media { order: 0; }
}

/* Value / commitment cards (replaces testimonial grid) */
.value-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.value-card { background: var(--cream); padding: 34px 32px; transition: background 0.3s ease, transform 0.3s var(--ease-out); }
.value-card:hover { background: #fff; transform: translateY(-4px); z-index: 1; box-shadow: 0 16px 34px rgba(20,21,15,0.1); }
.value-card .mark { font-size: 1.8rem; color: var(--leaf); font-family: Georgia, serif; line-height: 1; margin-bottom: 14px; }
.value-card h4 { font-size: 0.96rem; margin-bottom: 8px; }
.value-card p { font-size: 0.94rem; color: var(--muted); margin: 0; }

@media (max-width: 700px) {
  .value-grid { grid-template-columns: 1fr; }
}

/* Subsidiary highlight cards (3-col, replaces pricing) */
.sub-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.sub-grid.spaced { margin-bottom: 24px; }
.sub-tile {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 30px 26px;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out), border-color 0.3s ease;
}
.sub-tile:hover { transform: translateY(-6px); box-shadow: 0 20px 40px rgba(20,21,15,0.12); border-color: var(--ink); }
.sub-tile.featured { border-color: var(--ink); box-shadow: 0 14px 34px rgba(20,21,15,0.1); }
.sub-tile.featured:hover { box-shadow: 0 24px 46px rgba(20,21,15,0.16); }
.sub-tile .tile-badge {
  align-self: flex-start;
  background: var(--ink);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 20px;
  margin-bottom: 14px;
}
.sub-tile img { height: 44px; width: auto; margin-bottom: 18px; object-fit: contain; object-position: left; }
.sub-tile h3 { font-size: 1.1rem; margin-bottom: 8px; }
.sub-tile p { font-size: 0.9rem; color: var(--muted); flex: 1; }
.sub-tile .btn { margin-top: 20px; width: 100%; }

@media (max-width: 900px) {
  .sub-grid { grid-template-columns: 1fr; }
}

/* Logo cloud */
.logo-cloud {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 24px;
  align-items: center;
}
.logo-cloud a {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 20px 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 88px;
  transition: border-color 0.25s ease, transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}
.logo-cloud a:hover { border-color: var(--ink); transform: translateY(-4px); box-shadow: 0 14px 28px rgba(20,21,15,0.1); }
.logo-cloud img { max-height: 46px; width: auto; filter: grayscale(1); opacity: 0.75; transition: filter 0.3s ease, opacity 0.3s ease; }
.logo-cloud a:hover img { filter: none; opacity: 1; }

@media (max-width: 860px) { .logo-cloud { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 500px) { .logo-cloud { grid-template-columns: repeat(2, 1fr); } }

/* Generic prose page sections */
.prose { max-width: 760px; }
.prose h3 { font-size: 1.2rem; margin-top: 1.6em; color: var(--ink); }
.prose p { color: var(--ink-soft); }
.prose.center { margin-left: auto; margin-right: auto; }

/* Contact form */
form.contact-form { display: grid; gap: 16px; max-width: 640px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
form.contact-form input, form.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 13px 14px;
  font-family: inherit;
  font-size: 0.95rem;
  background: #fff;
  color: var(--ink);
}
form.contact-form textarea { min-height: 140px; resize: vertical; }
form.contact-form input:focus, form.contact-form textarea:focus { outline: 2px solid var(--olive); outline-offset: 1px; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }

.contact-detail-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); margin-bottom: 60px; }
.contact-detail-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.contact-detail { background: var(--cream); padding: 26px; transition: background 0.3s ease, transform 0.3s var(--ease-out); }
.contact-detail:hover { background: #fff; transform: translateY(-3px); box-shadow: 0 14px 30px rgba(20,21,15,0.1); }
.contact-detail .eyebrow { margin-bottom: 10px; }
.contact-detail p { margin: 0; font-weight: 600; color: var(--ink); }
@media (max-width: 760px) { .contact-detail-grid { grid-template-columns: 1fr; } }

/* ---------- Footer (leafy photo background, matches reference design) ---------- */
footer.site-footer {
  position: relative;
  color: rgba(255,255,255,0.9);
  padding: 0;
  overflow: hidden;
}
footer.site-footer .bg { position: absolute; inset: 0; }
footer.site-footer .bg img { width: 100%; height: 100%; object-fit: cover; }
footer.site-footer .bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(6,10,4,0.72) 0%, rgba(6,10,4,0.5) 55%, rgba(6,10,4,0.35) 100%); }
footer.site-footer .footer-inner { position: relative; z-index: 2; }

.footer-main {
  display: flex;
  align-items: center;
  gap: 70px;
  padding: 56px 0 48px;
}
.footer-brand { flex: 0 0 auto; }
.footer-brand img { height: 66px; width: auto; }

.footer-cols { flex: 1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.footer-cols h4 {
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 3px solid var(--gold);
  display: inline-block;
}
.footer-cols ul { list-style: none; margin: 0; padding: 0; }
.footer-cols li { margin-bottom: 9px; padding-left: 16px; position: relative; }
.footer-cols li::before { content: "\2022"; position: absolute; left: 0; color: rgba(255,255,255,0.7); }
.footer-cols a { font-size: 0.92rem; color: rgba(255,255,255,0.85); }
.footer-cols a:hover { color: var(--leaf); }
.footer-cols p.plain { font-size: 0.92rem; color: rgba(255,255,255,0.85); margin: 0 0 8px; }
.footer-cols p.plain a { color: rgba(255,255,255,0.85); }

.footer-bottom-bar {
  position: relative;
  z-index: 2;
  background: var(--gradient-badge);
  color: #fff;
  text-align: center;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 16px 0;
}

@media (max-width: 860px) {
  .footer-main { flex-direction: column; align-items: flex-start; gap: 30px; }
  .footer-cols { grid-template-columns: 1fr 1fr; width: 100%; }
}
@media (max-width: 560px) {
  .footer-cols { grid-template-columns: 1fr; }
}

/* ---------- Original-style hero (script title + badge, matching live site) ---------- */
.script-font { font-family: "Alex Brush", cursive; font-weight: 400; }

.hero-original {
  position: relative;
  min-height: 62vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  padding: 0;
}
.hero-original .hero-bg img { filter: none; }
.hero-original .hero-bg::after { background: linear-gradient(180deg, rgba(10,12,6,0.05) 0%, rgba(10,12,6,0.4) 100%); }
.hero-original .hero-content {
  text-align: left;
  padding: 60px 0 56px;
  display: inline-block;
  width: 100%;
}
.hero-original h1.script-font {
  color: #fff;
  font-size: clamp(3.25rem, 7.5vw, 5.25rem);
  line-height: 1;
  margin: 0;
  display: block;
  text-align: left;
}
.hero-original .sub-plain {
  color: #fff;
  font-family: "Inter", sans-serif;
  font-weight: 400;
  font-size: clamp(1.3rem, 2.6vw, 1.85rem);
  margin: -6px 0 26px;
  display: block;
  text-align: left;
  padding-left: 4px;
}
.hero-badge-row { display: flex; align-items: center; flex-wrap: wrap; }
.hero-badge-row .badge {
  background: var(--leaf);
  color: #0a1206;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 10px 18px;
}
.hero-badge-row .badge-tail { color: #fff; font-size: 1rem; padding: 10px 6px; }

/* Green diagonal feature banner (matches original site) */
.green-banner {
  background: linear-gradient(257deg, #9AFF00 45%, #085509 75%);
  padding: 26px 0;
}
.green-banner h2 {
  font-size: clamp(0.8rem, 1.7vw, 1.2rem);
  line-height: 1.25;
  margin: 0;
  letter-spacing: -0.01em;
}
.green-banner .white { color: #fff; }
.green-banner .dark { color: #16240f; }

/* ---------- Subsidiary logo carousel ---------- */
.logo-carousel-wrap { display: flex; align-items: center; gap: 20px; max-width: 900px; margin: 0 auto; }
.carousel-arrow {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: var(--ink);
  cursor: pointer;
  line-height: 1;
  transition: border-color 0.2s ease, transform 0.2s var(--ease-out), box-shadow 0.2s ease;
}
.carousel-arrow:hover { border-color: var(--ink); transform: scale(1.08); box-shadow: 0 8px 18px rgba(20,21,15,0.12); }
.carousel-arrow:active { transform: scale(0.96); }
.carousel-viewport { flex: 1; overflow: hidden; }
.carousel-track { display: flex; }
.carousel-item {
  flex: 0 0 25%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px 22px;
}
.carousel-item img { max-height: 128px; width: auto; object-fit: contain; transition: transform 0.3s var(--ease-out), filter 0.3s ease; filter: grayscale(0.15); }
.carousel-item img:hover { transform: scale(1.08); filter: grayscale(0); }
.carousel-dots { display: flex; justify-content: center; align-items: center; gap: 2px; margin-top: 34px; }
.carousel-dots button {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: none;
  background: transparent;
  padding: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.carousel-dots button::after {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--line);
  transition: background 0.25s ease, transform 0.25s var(--ease-out);
}
.carousel-dots button:hover::after { transform: scale(1.3); }
.carousel-dots button.active::after { background: var(--ink); transform: scale(1.2); }

@media (max-width: 860px) {
  .carousel-item { flex: 0 0 50%; }
}
@media (max-width: 560px) {
  .carousel-item { flex: 0 0 100%; }
  .hero-original .hero-content { text-align: center; }
  .hero-original h1.script-font { text-align: center; font-size: clamp(2.4rem, 13vw, 3.4rem); }
  .hero-original .sub-plain { text-align: center; padding-left: 0; font-size: clamp(1.05rem, 5vw, 1.4rem); }
  .hero-badge-row { justify-content: center; }
}

/* ---------- Green gradient badge heading (Our Story / Discover) ---------- */
.badge-heading {
  display: inline-block;
  background: var(--gradient-badge);
  color: #fff;
  font-weight: 700;
  font-size: 0.675rem;
  letter-spacing: 0.01em;
  padding: 7px 20px;
  text-align: center;
}
.badge-heading.wide { font-size: 0.85rem; letter-spacing: 0.04em; text-transform: uppercase; padding: 8px 28px; }
.badge-wrap { text-align: center; margin-bottom: 46px; }
body.home .badge-heading { font-size: 0.844rem; }
body.home .badge-heading.wide { font-size: 1.06rem; }
body.home .badge-wrap { text-align: left; }

/* Photo + overlapping grey text card (Our Story) */
.story-block { position: relative; display: grid; grid-template-columns: 45% 55%; align-items: center; }
.story-block .story-photo { position: relative; z-index: 1; overflow: hidden; }
.story-block .story-photo .story-badge { position: absolute; top: 24px; left: 24px; z-index: 3; }
.story-block .story-photo img { width: 100%; height: 460px; object-fit: cover; display: block; transition: transform 0.7s var(--ease-out); }
.story-block:hover .story-photo img { transform: scale(1.04); }
.story-block .story-card {
  position: relative;
  z-index: 2;
  margin-left: -12%;
  background: rgba(214, 216, 214, 0.82);
  backdrop-filter: blur(1px);
  padding: 48px 50px;
}
.story-block .story-card p { color: #2c2f28; margin: 0 0 1.1em; }
.story-block .story-card h3 { color: #1c2b17; font-size: 1.45rem; margin: 0.3em 0 0.4em; }

@media (max-width: 860px) {
  .story-block { grid-template-columns: 1fr; }
  .story-block .story-photo img { height: 300px; }
  .story-block .story-card { margin-left: 0; padding: 32px 26px; }
}

/* ---------- Dynamic subsidiary hero (rotating slides) ---------- */
.sub-hero {
  position: relative;
  min-height: 51vh;
  overflow: hidden;
  background: var(--dark);
}
.sub-hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease;
  display: flex;
  align-items: center;
}
.sub-hero-slide.active { opacity: 1; }
.sub-hero-slide .slide-bg { position: absolute; inset: 0; }
.sub-hero-slide .slide-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.55) saturate(0.95);
  transform: scale(1.06);
  transition: transform 6s var(--ease-out);
}
.sub-hero-slide.active .slide-bg img { transform: scale(1.14); }
.sub-hero-slide .slide-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10,12,6,0.82) 0%, rgba(10,12,6,0.45) 55%, rgba(10,12,6,0.25) 100%); }
.sub-hero-content { position: relative; z-index: 3; max-width: 620px; }
.sub-hero-content .eyebrow { color: var(--leaf); }
.sub-hero-content h1, .sub-hero-content h2 { color: #fff; font-size: clamp(2rem, 4.6vw, 3.2rem); margin-bottom: 0.35em; }
.sub-hero-content p { color: rgba(255,255,255,0.82); font-size: 1.05rem; max-width: 520px; margin-bottom: 26px; }

.sub-hero-ui { position: absolute; left: 0; right: 0; bottom: 34px; z-index: 4; }
.sub-hero-tabs { display: flex; gap: 10px; flex-wrap: wrap; }
.sub-hero-tab {
  display: flex;
  align-items: center;
  gap: 9px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.22);
  color: rgba(255,255,255,0.75);
  padding: 8px 14px;
  border-radius: 30px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}
.sub-hero-tab.active { background: #fff; color: var(--ink); border-color: #fff; }
.sub-hero-tab:hover { color: #fff; }
.sub-hero-tab.active:hover { color: var(--ink); }

@media (max-width: 700px) {
  .sub-hero { min-height: 57vh; }
  .sub-hero-slide .slide-bg::after { background: linear-gradient(180deg, rgba(10,12,6,0.5) 0%, rgba(10,12,6,0.85) 100%); }
  .sub-hero-tab { padding: 7px 12px; font-size: 0.72rem; }
}

/* Contact page map */
.map-frame {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 60px;
  min-height: 340px;
}
.map-frame iframe { width: 100%; height: 340px; border: 0; display: block; }

/* ---------- Scroll-reveal (progressive enhancement, respects reduced motion) ---------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
.reveal.revealed { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* Honeypot field — invisible to real visitors, catches basic spam bots */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* Two-photo gallery (Social Responsibility mid-article images) */
.photo-gallery-two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin: 44px 0;
}
.photo-gallery-two figure {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  box-shadow: 0 16px 40px rgba(20,21,15,0.08);
}
.photo-gallery-two img { width: 100%; height: 260px; object-fit: cover; display: block; transition: transform 0.6s var(--ease-out); }
.photo-gallery-two figure:hover img { transform: scale(1.05); }
.photo-gallery-two figcaption { padding: 12px 16px; font-size: 0.85rem; color: var(--muted); }

@media (max-width: 700px) {
  .photo-gallery-two { grid-template-columns: 1fr; }
}

/* Pillar sub-heading used within Social Responsibility prose */
.pillar-heading { color: var(--accent-green); font-size: 1.15rem; margin-top: 1.7em; margin-bottom: 0.5em; }

/* Subsidiary page: logo badge at the top of the first content section */
.section-logo { height: 110px; width: auto; margin-bottom: 24px; }
