/* ===================================================================
   INNER PAGES
   Shared layout: /about /systems /contact /approach /insights
   =================================================================== */

@import url('variables.css');
@import url('topbar.css');

/* Override landing-page scroll lock */
html, body {
  overflow: auto;
  height: auto;
  background: var(--bg);
  color: var(--text);
  transition: background 0.3s var(--ease-out), color 0.3s var(--ease-out);
}

/* Subtle gold-leaf texture on the dark subpage background.
   Two offset fleck grids + a soft top sheen over the base colour.
   Dark mode only; light mode stays clean. */
body {
  background-color: var(--bg);
  background-image:
    radial-gradient(circle at 50% 0%, rgba(212, 168, 67, 0.06), transparent 55%),
    radial-gradient(rgba(212, 168, 67, 0.07) 1px, transparent 1.6px),
    radial-gradient(rgba(212, 168, 67, 0.05) 1px, transparent 1.6px);
  background-size: 100% 100%, 34px 34px, 54px 54px;
  background-position: 0 0, 0 0, 19px 27px;
  background-repeat: no-repeat, repeat, repeat;
}

[data-theme="light"] body {
  background-image: none;
}

/* ============ PAGE HERO ============ */

.page-hero {
  padding: 140px 6vw 80px;
  border-bottom: 1px solid var(--border-soft);
}

.page-label {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.page-num {
  color: var(--brand-gold);
}

.page-line {
  display: block;
  width: 48px;
  height: 1px;
  background: var(--brand-gold);
  opacity: 0.7;
}

.page-cap {
  color: var(--text-soft);
}

.page-title {
  font-size: clamp(2.4rem, 5.2vw, 4.4rem);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin-bottom: 1.4rem;
  max-width: 20ch;
}

.page-intro {
  font-size: clamp(1rem, 1.25vw, 1.2rem);
  font-weight: 300;
  line-height: 1.65;
  color: var(--text-soft);
  max-width: 54ch;
}

/* ============ SECTIONS ============ */

.page-section {
  padding: 80px 0;
  border-top: 1px solid var(--border-soft);
}

.section-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 6vw;
}

.section-heading {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 300;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 1.2rem;
}

.section-heading em {
  font-style: normal;
  color: var(--brand-gold);
}

.section-body {
  font-size: clamp(0.95rem, 1.1vw, 1.05rem);
  font-weight: 300;
  line-height: 1.75;
  color: var(--text-soft);
  max-width: 62ch;
}

.section-body + .section-body {
  margin-top: 1rem;
}

.section-subheading {
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--brand-gold);
  margin-bottom: 0.6rem;
}

.section-body + .section-subheading {
  margin-top: 2rem;
}

/* ============ CARDS ============ */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
  transition: background 0.3s var(--ease-out), border-color 0.3s var(--ease-out), transform 0.3s var(--ease-out);
}

.card:hover {
  background: var(--surface-hover);
  border-color: rgba(212, 168, 67, 0.3);
  transform: translateY(-2px);
}

.card-eyebrow {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--brand-gold);
  margin-bottom: 1rem;
}

.card-title {
  font-size: 1.25rem;
  font-weight: 400;
  letter-spacing: -0.01em;
  margin-bottom: 0.8rem;
  line-height: 1.3;
}

.card-body {
  font-size: 0.92rem;
  font-weight: 300;
  line-height: 1.65;
  color: var(--text-muted);
}

.card-status {
  display: inline-block;
  margin-top: 1.2rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 20px;
}

.card-status--live {
  background: rgba(80, 200, 160, 0.12);
  color: #6dcfaf;
  border: 1px solid rgba(80, 200, 160, 0.3);
}

.card-status--soon {
  background: rgba(212, 168, 67, 0.1);
  color: var(--brand-gold-soft);
  border: 1px solid rgba(212, 168, 67, 0.25);
}

/* ============ PRINCIPLES ============ */

.principles-list {
  list-style: none;
  margin-top: 3rem;
}

.principle-item {
  display: grid;
  grid-template-columns: 3rem 1fr;
  gap: 2rem;
  padding: 2rem 0;
  border-bottom: 1px solid var(--border-soft);
  align-items: start;
}

.principle-item:first-child {
  border-top: 1px solid var(--border-soft);
}

.principle-num {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  color: var(--brand-gold);
  opacity: 0.7;
  padding-top: 0.25rem;
}

.principle-content h3 {
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin-bottom: 0.5rem;
}

.principle-content p {
  font-size: 0.95rem;
  font-weight: 300;
  line-height: 1.7;
  color: var(--text-soft);
}

/* ============ BLOG GRID ============ */

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.blog-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  transition: background 0.3s var(--ease-out), border-color 0.3s var(--ease-out), transform 0.3s var(--ease-out);
}

.blog-card:hover {
  background: var(--surface-hover);
  border-color: rgba(212, 168, 67, 0.3);
  transform: translateY(-2px);
}

.blog-tag {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--brand-gold);
}

.blog-title {
  font-size: 1.15rem;
  font-weight: 400;
  line-height: 1.35;
  letter-spacing: -0.01em;
}

.blog-excerpt {
  font-size: 0.9rem;
  font-weight: 300;
  line-height: 1.65;
  color: var(--text-muted);
  flex: 1;
}

.blog-date {
  font-size: 0.78rem;
  color: var(--text-dim);
  letter-spacing: 0.04em;
  margin-top: 0.4rem;
}

/* ============ ARTICLE ============ */

.article-header {
  padding: 140px 6vw 60px;
  border-bottom: 1px solid var(--border-soft);
  max-width: 820px;
  margin: 0 auto;
}

.article-back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-faint);
  text-decoration: none;
  letter-spacing: 0.04em;
  margin-bottom: 2.5rem;
  transition: color 0.3s var(--ease-out);
}

.article-back:hover {
  color: var(--brand-gold);
}

.article-eyebrow {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
  font-size: 0.78rem;
}

.article-date {
  color: var(--text-faint);
  letter-spacing: 0.04em;
}

.article-title {
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 1.2rem;
}

.article-intro {
  font-size: clamp(1rem, 1.2vw, 1.15rem);
  font-weight: 300;
  line-height: 1.65;
  color: var(--text-soft);
}

.article-body {
  max-width: 820px;
  margin: 0 auto;
  padding: 60px 6vw 100px;
}

.article-body h2 {
  font-size: clamp(1.3rem, 2vw, 1.65rem);
  font-weight: 400;
  letter-spacing: -0.015em;
  margin: 3rem 0 1rem;
  line-height: 1.2;
}

.article-body p {
  font-size: clamp(0.95rem, 1.1vw, 1.05rem);
  font-weight: 300;
  line-height: 1.8;
  color: var(--text-soft);
  margin-bottom: 1.2rem;
}

.article-body ul,
.article-body ol {
  padding-left: 1.5rem;
  margin-bottom: 1.2rem;
  color: var(--text-soft);
}

.article-body li {
  font-size: clamp(0.95rem, 1.1vw, 1.05rem);
  font-weight: 300;
  line-height: 1.75;
  margin-bottom: 0.4rem;
}

/* ============ CONTACT FORM ============ */

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  margin-top: 3rem;
  max-width: 540px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-field label {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.form-field input,
.form-field textarea {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 13px 16px;
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 300;
  outline: none;
  transition: border-color 0.3s var(--ease-out), background 0.3s var(--ease-out);
  width: 100%;
}

.form-field input:focus,
.form-field textarea:focus {
  border-color: rgba(212, 168, 67, 0.5);
  background: var(--surface-hover);
}

.form-field textarea {
  resize: vertical;
  min-height: 140px;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: var(--text-fainter);
}

.form-submit {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 13px 28px;
  background: var(--brand-gold);
  color: var(--brand-black);
  font-family: var(--font-sans);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  border: none;
  border-radius: 14px;
  cursor: pointer;
  transition: background 0.3s var(--ease-out), transform 0.3s var(--ease-out);
  align-self: flex-start;
  margin-top: 0.4rem;
}

.form-submit:hover {
  background: var(--brand-gold-soft);
  transform: translateY(-2px);
}

/* ============ FOOTER ============ */

.page-footer {
  border-top: 1px solid var(--border-soft);
  padding: 3rem 6vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.2rem;
}

.footer-copy {
  font-size: 0.8rem;
  color: var(--text-fainter);
  font-weight: 300;
}

.footer-links {
  display: flex;
  gap: 2rem;
  list-style: none;
  flex-wrap: wrap;
}

.footer-links a {
  font-size: 0.8rem;
  color: var(--text-dim);
  text-decoration: none;
  font-weight: 300;
  transition: color 0.3s var(--ease-out);
}

.footer-links a:hover {
  color: var(--brand-gold);
}

/* ============ RESPONSIVE ============ */

@media (max-width: 768px) {
  .page-hero {
    padding: 110px 5vw 60px;
  }

  .page-section {
    padding: 60px 0;
  }

  .section-inner {
    padding: 0 5vw;
  }

  .card-grid,
  .blog-grid {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .article-header {
    padding: 110px 5vw 50px;
  }

  .article-body {
    padding: 50px 5vw 80px;
  }

  .page-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
  }

  .footer-links {
    gap: 1.2rem;
  }

  .principle-item {
    grid-template-columns: 2.5rem 1fr;
    gap: 1rem;
  }
}

@media (max-width: 480px) {
  .page-hero {
    padding: 100px 1.5rem 50px;
  }

  .section-inner {
    padding: 0 1.5rem;
  }

  .page-footer {
    padding: 2.5rem 1.5rem;
  }
}
