/* ═══════════════════════════════════════════════════════
   NSLA — Shared Our Work styles
   Used by the authoritative ourwork.html page and the
   mirrored Our Work section injected into index.html.
   ═══════════════════════════════════════════════════════ */

/* Shared section utilities used by Our Work and homepage sections */
.section-label {
  font: var(--text-eyebrow);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 1rem;
  margin-top: 0;
}
.section-label-light { color: rgba(255,255,255,0.4); }
.section-title {
  font: var(--text-h2);
  letter-spacing: -0.02em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  margin-top: 0;
  color: var(--grey);
}
.section-title-light { color: white; }
.section-intro {
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--ink);
  max-width: 580px;
}
.fade-up {
  opacity: 0;
  transform: translateY(45px);
  transition: opacity 0.75s ease, transform 0.75s ease;
}
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* The standalone page must clear the fixed shared navigation. */
.ourwork-page-main {
  padding-top: var(--nav-height, 116px);
}

/* Reserve approximately the collapsed section height while index.html loads
   its shared markup, preventing lower homepage content from jumping sharply. */
#ourwork-placeholder:empty {
  display: block;
  min-height: 32rem;
}
.ourwork-load-error {
  padding: 2rem 0;
  color: var(--ink);
  font: var(--text-body);
}

/* ─── STRATEGY SECTION ──────────────────────────────── */
#strategy {
  background: var(--cream);
  position: relative;
  padding: 4.5rem 0 6rem;
  overflow: hidden;
  scroll-margin-top: var(--section-anchor-offset);
}
/* On the standalone Our Work page the coloured banner already provides the
   top spacing, so remove the section's own top padding to avoid a large gap. */
.ourwork-page-main #strategy {
  padding-top: 0;
}
.strategy-header {
  padding: 0 0 3rem;
  position: relative;
  z-index: 2;
}
.strategy-header-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  align-items: start;
}
.accordion-cards {
  padding: 0;
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* Individual accordion card */
.acc-card {
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 10px;
  transition: box-shadow 0.4s ease;
  position: relative !important;
}
.acc-card:hover {
  box-shadow: 0 0 12px rgba(0,0,0,0.12) !important;
  border-radius: 3px !important;
}
.acc-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: #3D4152;
  z-index: 10;
}
.acc-card.foundation::before { background: var(--orange); }

/* Card trigger */
.acc-trigger {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.75rem 2.5rem;
  cursor: pointer;
  position: relative;
  user-select: none;
  border-radius: 3px;
  transition: background 0.3s ease;
  background: #f0efe6 !important;
  border: 1px solid rgba(61,65,82,0.15) !important;
  color: var(--dark);
}
.acc-trigger:hover { background: #e8e7de !important; }
.acc-card.open .acc-trigger {
  background: #f0efe6 !important;
  border-radius: 3px 3px 0 0 !important;
}

/* Icon and title */
.acc-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
  background: transparent !important;
}
.acc-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.acc-title-wrap { flex: 1; }
.acc-pillar-label {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 0.3rem;
  color: rgba(61,65,82,0.55) !important;
  text-align: left;
}
.acc-title {
  font-family: var(--font-sans);
  font-size: 1.35rem;
  font-weight: 750;
  line-height: 1.2;
  color: var(--dark) !important;
  text-align: left;
}
.strategy-pillar-style { font-family: 'Fraunces', Georgia, serif; }
.acc-teaser {
  font-size: 0.83rem;
  color: var(--ink) !important;
  margin-left: auto;
  max-width: 340px;
  line-height: 1.6;
  padding-right: 1rem;
  display: none;
}
@media (min-width: 900px) {
  .acc-teaser { display: block; }
}

/* Chevron */
.acc-chevron {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(61,65,82,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.35s ease, background 0.2s ease;
  font-size: 0.75rem;
  color: rgba(61,65,82,0.7);
}
.acc-card.open .acc-chevron {
  transform: rotate(90deg);
  background: rgba(61,65,82,0.08);
}

/* Accordion body */
.acc-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.55s cubic-bezier(0.4,0,0.2,1), border-color 0.55s cubic-bezier(0.4,0,0.2,1);
  border: none !important;
  border-radius: 0 0 3px 3px;
}
.acc-card.open .acc-body {
  max-height: 2000px;
  border: 1px solid rgba(61,65,82,0.15) !important;
  border-top: none !important;
  border-left: none !important;
}
.acc-body-inner {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 0;
  padding: 2.5rem 2.5rem 3rem;
  background: rgba(61,65,82,0.02) !important;
  border-top: 1px solid rgba(61,65,82,0.1);
}
.acc-left {
  padding-right: 3rem;
  border-right: 1px solid rgba(61,65,82,0.1);
  text-align: left;
}
.acc-vision-label {
  font-size: 1.05rem;
  font-style: normal;
  color: var(--ink) !important;
  margin-bottom: 0.6rem;
  text-align: left;
}
.acc-vision-text {
  font-size: 0.95rem;
  line-height: 1.85;
  color: var(--dark) !important;
  font-weight: 700 !important;
  margin-bottom: 1.75rem;
  text-align: left;
}
.acc-vision-text a { color: var(--orange) !important; font-weight: 500; }
.acc-how-label {
  font-size: 1.05rem;
  font-style: normal;
  color: var(--ink) !important;
  margin-bottom: 0.75rem;
  text-align: left;
}
.acc-how-list {
  list-style: none;
  margin-bottom: 2rem;
}
.acc-how-list li {
  font-size: 0.88rem;
  line-height: 1.7;
  color: var(--dark) !important;
  padding-left: 1.4rem;
  position: relative;
  margin-bottom: 0.5rem;
  text-align: left;
}
.acc-how-list li::before {
  content: '•';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--dark);
  font-size: 1rem;
}

/* Projects accordion within accordion */
.acc-projects-label {
  font-family: var(--font-sans) !important;
  font-size: 1.6rem !important;
  font-weight: 400 !important;
  color: var(--dark) !important;
  margin-top: 1.5rem;
  margin-bottom: 1.25rem;
  text-align: left !important;
}
.acc-project {
  background: #f0efe6 !important;
  border: 1px solid rgba(61,65,82,0.15) !important;
  border-radius: 4px !important;
  margin-bottom: 6px !important;
  overflow: hidden;
  position: relative !important;
}
.acc-project::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--orange);
  z-index: 10;
}
.acc-proj-trigger {
  padding: 0.85rem 1.1rem;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.acc-proj-trigger .proj-title,
.acc-project .proj-title {
  color: var(--dark) !important;
  font-weight: 600;
  text-align: left;
}
.acc-proj-chevron {
  font-size: 0.68rem;
  flex-shrink: 0;
  transition: transform 0.2s ease;
  color: var(--dark);
}
.acc-project.open .acc-proj-chevron { transform: rotate(90deg); }
.acc-proj-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.45s cubic-bezier(0.4,0,0.2,1);
}
/* Open height is measured and driven by toggleProj() in ourwork.js so the
   body grows to fit content of any length (then the cap is lifted to none). */
.acc-project summary {
  color: var(--dark) !important;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.6rem;
  padding: 1rem 1.1rem;
  text-align: left;
}
.acc-project summary::-webkit-details-marker { display: none; }
.acc-project summary::before {
  content: '❯';
  display: inline-block;
  font-size: 0.68rem;
  color: var(--dark);
  flex-shrink: 0;
  transition: transform 0.2s ease;
}
.acc-project[open] summary::before { transform: rotate(90deg); }
.acc-project summary::after,
.acc-project[open] summary::after { content: '' !important; }
.acc-project-body {
  background: none;
  color: var(--dark) !important;
  text-align: left;
  padding: 0.85rem 1.1rem 1rem !important;
  font-size: 0.83rem;
  line-height: 1.7;
}
.acc-project-body a { color: var(--orange) !important; text-decoration: none; font-weight: 500; }
.acc-project-body em {
  display: block;
  color: var(--ink) !important;
  font-size: 0.78rem;
  margin-bottom: 0.4rem;
  font-style: italic;
}

/* Right sidebar */
.acc-right { padding-left: 2.5rem; }
.acc-sidebar-block { margin-bottom: 2rem; }
.acc-sidebar-heading {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--dark) !important;
  border-bottom: 2px solid var(--orange) !important;
  padding-bottom: 0.75rem !important;
  margin-bottom: 1rem !important;
  text-align: left;
}
.acc-sidebar-link {
  color: var(--dark) !important;
  text-decoration: none;
  font-size: 0.9rem !important;
  font-weight: 600 !important;
  padding: 0.5rem 0 !important;
  display: block;
  text-align: left;
  transition: color 0.2s;
}
.acc-sidebar-link::before { content: '> '; color: var(--orange); }
.acc-sidebar-link:hover { color: var(--orange) !important; }
.acc-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.acc-tag {
  display: inline-block;
  background: #E2DE8D !important;
  color: #3a3800 !important;
  border: 1px solid #c8c46a !important;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 0.3rem 0.85rem;
  border-radius: 100px;
  text-decoration: none;
}

/* Foundation card */
.acc-card.foundation .acc-trigger {
  background: #f0efe6 !important;
  border: 1px solid rgba(61,65,82,0.15) !important;
  border-left: none !important;
}
.acc-card.foundation .acc-trigger:hover,
.acc-card.foundation.open .acc-trigger { background: #f0efe6 !important; }
.acc-card.foundation.open .acc-body { max-height: 2000px; }
.acc-card.foundation .acc-icon { background: transparent !important; }
.acc-card.foundation .acc-pillar-label { color: rgba(61,65,82,0.55) !important; }
.acc-card.foundation .acc-title { color: var(--dark) !important; }
.acc-card.foundation .acc-teaser { color: var(--ink) !important; }
.acc-card.foundation .acc-chevron {
  border: 1px solid rgba(61,65,82,0.25);
  color: rgba(61,65,82,0.7);
}
.acc-card.foundation.open .acc-chevron { background: rgba(61,65,82,0.08); }

/* Responsive layout — kept equivalent to the original homepage rules. */
@media (max-width: 1280px) {
  .strategy-header { padding-left: 0; padding-right: 0; }
  .accordion-cards { padding: 0; }
}
@media (max-width: 1100px) {
  #strategy { padding: 3rem 0 6rem; }
  .ourwork-page-main #strategy { padding-top: 0; }
  .strategy-header { padding: 0 0 3rem; }
  .strategy-header-inner { grid-template-columns: 1fr; gap: 1.5rem; }
  .accordion-cards { padding: 0; }
  .acc-body-inner { grid-template-columns: 1fr; }
  .acc-left {
    padding-right: 0;
    border-right: none;
    border-bottom: 1px solid rgba(61,65,82,0.1);
    padding-bottom: 2rem;
    margin-bottom: 2rem;
  }
  .acc-right { padding-left: 0; }
}
@media (max-width: 768px) {
  .acc-trigger { padding: 1.25rem 1.5rem; gap: 1rem; }
  .acc-body-inner { padding: 1.75rem 1.5rem 2rem; }
  #strategy { padding: 3rem 0 6rem; }
  .ourwork-page-main #strategy { padding-top: 0; }
}
@media (max-width: 640px) {
  .acc-trigger { padding: 1rem 1.25rem; }
  .acc-title { font-size: 1.1rem; }
  .acc-teaser { display: none; }
}
@media (max-width: 400px) {
  .acc-title { font-size: 1rem; }
}
@media (prefers-reduced-motion: reduce) {
  .fade-up { opacity: 1; transform: none; transition: none; }
  .acc-body,
  .acc-chevron,
  .acc-proj-body,
  .acc-proj-chevron { transition: none; }
}
