/* ================================================================
   PANTHEION — Our Story Page CSS (pantheion-our-story.css)
   ================================================================ */

/* Active nav state */
.nav-active { color: white !important; }
.nav-active::after {
  content: '';
  display: block;
  width: 100%;
  height: 2px;
  background: var(--terra);
  margin-top: -2px;
}

/* ================================================================
   HERO
   ================================================================ */
.os-hero {
  position: relative;
  height: auto;
  min-height: 56vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  padding-top: calc(var(--nav-h) + 40px);
  padding-bottom: calc(var(--nav-h) + 40px);
}

.os-hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 70% 80% at 20% 50%, rgba(112,71,58,0.25) 0%, transparent 65%),
    linear-gradient(135deg, #1e1e30 0%, #30304a 55%, #1c1814 100%);
}

.os-hero-gradient {
  position: absolute; inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.05) 0%,
    rgba(0,0,0,0.10) 40%,
    rgba(0,0,0,0.25) 100%
  );
}

.os-hero-content {
  position: relative; z-index: 2;
  padding: 0 6vw;
  max-width: 880px;
}

.os-hero-eyebrow {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: white;
  margin-bottom: 12px;
  display: block;
}

.os-hero-title {
  font-family: var(--ff-display);
  font-size: clamp(46px, 4.2vw, 82px);
  font-weight: 300;
  color: white;
  line-height: 1.05;
  letter-spacing: -1px;
  margin-bottom: 16px;
  text-shadow: 0 2px 32px rgba(0,0,0,0.25);
}
.os-hero-title em {
  font-style: italic;
  color: rgba(255,255,255,0.7);
}

.os-hero-sub {
  font-size: 15px;
  font-weight: 300;
  color: rgba(255,255,255,0.65);
  line-height: 1.7;
  max-width: 460px;
}

/* Pull-quote — floats to the right of the hero */
.os-hero-quote {
  position: absolute;
  right: 6vw;
  bottom: 80px;
  z-index: 2;
  max-width: 280px;
  border-left: 2px solid var(--terra);
  padding-left: 20px;
}
.os-hero-quote-mark {
  font-family: var(--ff-display);
  font-size: 64px;
  color: var(--terra);
  line-height: 0.6;
  display: block;
  margin-bottom: 10px;
}
.os-hero-quote p {
  font-family: var(--ff-display);
  font-size: 17px;
  font-weight: 300;
  font-style: italic;
  color: rgba(255,255,255,0.65);
  line-height: 1.55;
}

/* ================================================================
   FOUNDING STORY
   ================================================================ */
.os-founding {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  background: var(--bg);
  align-items: stretch;
}

.os-founding-img {
  position: relative;
  overflow: visible;
  padding: 40px 40px 40px 6vw;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.os-founding-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.8s ease;
}
.os-founding-img:hover img { transform: scale(1.04); }
.os-founding-img-border {
  position: absolute;
  bottom: 24px; right: 24px;
  width: 160px; height: 160px;
  border: 2px solid var(--terra);
  z-index: -1;
}

.os-founding-text {
  padding: 64px 6vw 64px 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.os-founding-text p {
  font-size: 15px;
  color: var(--text);
  line-height: 1.85;
  margin-bottom: 20px;
}
.os-founding-text p:last-child { margin-bottom: 0; }

/* ================================================================
   VISION & MISSION
   ================================================================ */
.os-vm {
  background: var(--primary);
  padding: 56px 5vw;
}
.os-vm-grid {
  display: grid;
  grid-template-columns: 1fr 1px 1fr;
  gap: 0 64px;
  max-width: 1100px;
  margin: 0 auto;
  align-items: center;
}
.os-vm-divider {
  background: rgba(255,255,255,0.1);
  height: 100%;
  min-height: 160px;
}
.os-vm-card {
  padding: 8px 0;
}
.os-vm-number {
  font-family: var(--ff-display);
  font-size: 56px;
  font-weight: 300;
  color: rgba(255,255,255,0.08);
  line-height: 1;
  margin-bottom: 8px;
}
.os-vm-icon {
  width: 52px; height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.os-vm-icon img {
  width: 44px; height: 44px;
  object-fit: contain;
  /* Force icon strokes to white on the dark band */
  filter: brightness(0) invert(1);
}
.os-vm-icon-fallback {
  width: 44px; height: 44px;
  align-items: center;
  justify-content: center;
  color: white;
  font-family: var(--ff-display);
  font-size: 20px;
}
.os-vm-heading {
  font-family: var(--ff-display);
  font-size: 36px;
  font-weight: 400;
  color: white;
  margin-bottom: 16px;
  letter-spacing: -0.3px;
}
.os-vm-body {
  font-size: 15px;
  color: rgba(255,255,255,0.55);
  line-height: 1.8;
  max-width: 520px;
}
.os-vm-card:first-child .os-vm-heading::before {
  content: '';
  display: block;
  width: 32px; height: 2px;
  background: var(--terra);
  margin-bottom: 16px;
}
.os-vm-card:last-child .os-vm-heading::before {
  content: '';
  display: block;
  width: 32px; height: 2px;
  background: var(--brown);
  margin-bottom: 16px;
}

/* ================================================================
   WHY CHOOSE
   ================================================================ */
.os-why {
  background: var(--bg-warm);
  padding: 100px 5vw;
  border-bottom: 1px solid var(--border);
}
.os-why-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  max-width: 1200px;
  margin: 0 auto 72px;
  align-items: center;
}
.os-why-text p {
  font-size: 15px;
  color: var(--text);
  line-height: 1.85;
}
.os-why-img {
  overflow: hidden;
  aspect-ratio: 4/3;
}
.os-why-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.8s ease;
}
.os-why-img:hover img { transform: scale(1.04); }

/* Pillars grid */
.os-why-pillars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  max-width: 1200px;
  margin: 0 auto;
}
.os-why-pillar {
  background: var(--bg);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.os-pillar-icon {
  color: var(--terra);
  font-size: 12px;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
}
.os-pillar-icon img {
  width: 40px; height: 40px;
  object-fit: contain;
  /* Tint icons to terra color — matches Our Values */
  filter: invert(28%) sepia(60%) saturate(500%) hue-rotate(340deg) brightness(80%);
}
.os-why-pillar strong {
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
  letter-spacing: 0.3px;
}
.os-why-pillar p {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ================================================================
   VALUES
   ================================================================ */
.os-values {
  background: var(--bg);
  padding: 100px 5vw;
}
.os-values-header {
  text-align: center;
  margin-bottom: 40px;
}
.os-values-carousel {
  max-width: 1200px;
  margin: 0 auto;
  overflow: hidden;
}
.os-values-track {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}
.os-value-card {
  /* 3 across on desktop, with 24px gaps handled via padding */
  flex: 0 0 calc((100% - 48px) / 3);
  margin-right: 24px;
  box-sizing: border-box;
  background: var(--bg-warm);
  border: 1px solid var(--border);
  padding: 44px 36px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: background 0.3s;
}
.os-value-card:hover {
  background: white;
}
.os-values-controls {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 40px;
}
.os-values-arrow {
  width: 48px; height: 48px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--primary);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.os-values-arrow:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}
.os-value-icon {
  width: 52px; height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 4px;
}
.os-value-icon img {
  width: 44px; height: 44px;
  object-fit: contain;
  /* Tint icons to terra color */
  filter: invert(28%) sepia(60%) saturate(500%) hue-rotate(340deg) brightness(80%);
}
.os-value-icon-fallback {
  width: 44px; height: 44px;
  background: var(--terra);
  color: white;
  font-family: var(--ff-display);
  font-size: 20px;
  font-weight: 600;
  align-items: center;
  justify-content: center;
}
.os-value-title {
  font-family: var(--ff-display);
  font-size: 22px;
  font-weight: 500;
  color: var(--primary);
  letter-spacing: -0.2px;
}
.os-value-body {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.75;
}

/* ================================================================
   SUSTAINABILITY
   ================================================================ */
.os-sustain {
  background: var(--bg-dark);
  padding: 100px 5vw;
  border-top: 3px solid var(--terra);
}
.os-sustain-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 48px;
}
.os-sustain-intro {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.8;
  text-align: center;
  max-width: 680px;
  margin: 16px auto 0;
}
.os-sustain-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto 56px;
}
.os-sustain-card {
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 40px 32px;
  position: relative;
  overflow: hidden;
  transition: box-shadow 0.3s, transform 0.3s;
}
.os-sustain-card:hover {
  box-shadow: 0 8px 32px rgba(48,48,74,0.08);
  transform: translateY(-3px);
}
.os-sustain-card-icon {
  width: 52px; height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.os-sustain-card-icon img {
  width: 44px; height: 44px;
  object-fit: contain;
  /* Tint icons to terra color — matches Our Values */
  filter: invert(28%) sepia(60%) saturate(500%) hue-rotate(340deg) brightness(80%);
}
.os-sustain-card-icon-fallback {
  width: 44px; height: 44px;
  align-items: center;
  justify-content: center;
  color: var(--terra);
  font-family: var(--ff-display);
  font-size: 20px;
}
.os-sustain-card-title {
  font-family: var(--ff-display);
  font-size: 22px;
  font-weight: 500;
  color: var(--primary);
  margin-bottom: 14px;
  line-height: 1.3;
}
.os-sustain-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.8;
}


/* Closing statement */
.os-sustain-footer {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
  padding: 40px;
  border: 1px solid var(--border);
  background: var(--bg);
  position: relative;
}
.os-sustain-footer::before {
  content: '"';
  font-family: var(--ff-display);
  font-size: 80px;
  color: var(--terra);
  opacity: 0.2;
  line-height: 0.6;
  position: absolute;
  top: 24px; left: 24px;
}
.os-sustain-footer p {
  font-family: var(--ff-display);
  font-size: 20px;
  font-weight: 400;
  font-style: italic;
  color: var(--primary);
  line-height: 1.6;
  position: relative;
  z-index: 1;
}

/* ================================================================
   CTA STRIP
   ================================================================ */
.os-cta {
  background: var(--primary);
  padding: 80px 5vw;
  border-top: 3px solid var(--terra);
}
.os-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  max-width: 1200px;
  margin: 0 auto;
  flex-wrap: wrap;
}
.os-cta-text { flex: 1; min-width: 280px; }
.os-cta-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  flex-shrink: 0;
}

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 960px) {
  .os-founding {
    grid-template-columns: 1fr;
  }
  .os-founding-img { min-height: 0; padding: 24px 6vw; }
  .os-founding-img img { height: auto; object-fit: contain; }
  .os-founding-text { padding: 8px 6vw 56px; }

  .os-vm-grid { grid-template-columns: 1fr; gap: 40px; }
  .os-vm-divider { display: none; }

  .os-why-inner { grid-template-columns: 1fr; gap: 40px; }
  .os-why-pillars { grid-template-columns: 1fr 1fr; }

  .os-values-grid { grid-template-columns: 1fr 1fr; }

  /* Carousel: 2 across on tablet */
  .os-value-card { flex: 0 0 calc((100% - 24px) / 2); }

  .os-sustain-grid { grid-template-columns: 1fr 1fr; gap: 16px; }

  .os-hero-quote { display: none; }

  .os-cta-inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 640px) {
  .os-hero { height: auto; min-height: 0; align-items: center; padding-top: calc(var(--nav-h) + 24px); padding-bottom: calc(var(--nav-h) + 24px); }
  .os-why-pillars { grid-template-columns: 1fr 1fr; }
  .os-values-grid { grid-template-columns: 1fr; }

  /* Carousel: 1 card at a time on mobile */
  .os-value-card { flex: 0 0 100%; margin-right: 0; }
  .os-cta-actions { flex-direction: column; width: 100%; }
  .os-cta-actions .btn-outline-light,
  .os-cta-actions .btn-primary { width: 100%; text-align: center; }
  .os-vm { padding: 72px 6vw; }
  .os-values { padding: 72px 5vw; }
  .os-sustain { padding: 72px 5vw; }
  .os-why { padding: 72px 5vw; }
}
