/* ============================================================
   TBP Capital Advisory & Coordination Office — Stylesheet
   ============================================================ */

/* ── CSS VARIABLES ── */
:root {
  --gold: #C9A84C;
  --gold-light: #E8C96A;
  --gold-pale: #F5E6C0;
  --dark: #0A0A0A;
  --dark-2: #111111;
  --dark-3: #161616;
  --dark-4: #1E1E1E;
  --off-white: #F0EDE6;
  --text-muted: #8A8478;
  --border: rgba(201,168,76,0.2);
}

/* ── RESET & BASE ── */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--dark);
  color: var(--off-white);
  font-family: 'Montserrat', sans-serif;
  font-weight: 300;
  overflow-x: hidden;
}

/* ── NAV ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 20px 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(10,10,10,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--gold);
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  gap: 36px;
  list-style: none;
}

.nav-links a {
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.3s;
}

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

/* ── HERO ── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  padding: 120px 40px 80px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 30%, rgba(201,168,76,0.07) 0%, transparent 70%),
    linear-gradient(180deg, #0A0A0A 0%, #0D0C0A 100%);
}

.hero-image-slot {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-image-slot img {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.18;
  filter: grayscale(40%);
}

.hero-image-slot .img-placeholder {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, #1a1a14 0%, #0f0f0a 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 12px;
}

.hero-image-slot .img-placeholder span {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(201,168,76,0.35);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,10,10,0.4) 0%, rgba(10,10,10,0.7) 60%, rgba(10,10,10,1) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
}

.hero-eyebrow {
  font-size: 0.65rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.hero-eyebrow::before,
.hero-eyebrow::after {
  content: '';
  width: 40px;
  height: 1px;
  background: var(--gold);
  opacity: 0.5;
}

.hero-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.8rem, 5vw, 5rem);
  font-weight: 300;
  line-height: 1.12;
  color: var(--off-white);
  margin-bottom: 20px;
  letter-spacing: 0.02em;
}

.hero-title em {
  font-style: italic;
  color: var(--gold-light);
}

.hero-subtitle {
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 48px;
  line-height: 1.8;
}

.hero-cta {
  display: inline-block;
  padding: 14px 44px;
  border: 1px solid var(--gold);
  color: var(--gold);
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 0.35s;
}

.hero-cta:hover {
  background: var(--gold);
  color: var(--dark);
}

/* ── SECTION SHARED ── */
section {
  padding: 100px 60px;
  position: relative;
}

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

.section-label {
  font-size: 0.62rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.section-label::before {
  content: '';
  width: 30px;
  height: 1px;
  background: var(--gold);
}

.section-heading {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 3.5vw, 3.2rem);
  font-weight: 300;
  line-height: 1.2;
  color: var(--off-white);
  margin-bottom: 24px;
}

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

.section-body {
  font-size: 0.85rem;
  line-height: 1.9;
  color: var(--text-muted);
  max-width: 640px;
}

/* ── IMAGE SLOT COMPONENT ── */
.img-slot {
  position: relative;
  overflow: hidden;
  background: var(--dark-3);
  border: 1px solid var(--border);
}

.img-slot img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.7s ease;
}

.img-slot:hover img { transform: scale(1.04); }

.img-slot .placeholder {
  width: 100%; height: 100%;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  cursor: pointer;
  transition: background 0.3s;
  position: relative;
}

.img-slot .placeholder:hover { background: var(--dark-4); }

.img-slot .placeholder-icon {
  width: 52px; height: 52px;
  border: 1px solid rgba(201,168,76,0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.img-slot .placeholder-icon svg {
  width: 22px; height: 22px;
  stroke: var(--gold);
  opacity: 0.6;
}

.img-slot .placeholder-text {
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(201,168,76,0.45);
  text-align: center;
}

.img-slot input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%; height: 100%;
}

/* ── INTRODUCTION SECTION ── */
#introduction {
  background: var(--dark-2);
  border-top: 1px solid var(--border);
}

.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.intro-image .img-slot { height: 480px; }

/* ── ROLE SECTION ── */
#role { background: var(--dark); }

.role-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
  margin-top: 60px;
}

.role-card {
  background: var(--dark-3);
  padding: 44px 40px;
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s;
}

.role-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 3px; height: 0;
  background: var(--gold);
  transition: height 0.4s ease;
}

.role-card:hover { border-color: rgba(201,168,76,0.4); }
.role-card:hover::before { height: 100%; }

.role-card-number {
  font-family: 'Cormorant Garamond', serif;
  font-size: 3rem;
  font-weight: 300;
  color: rgba(201,168,76,0.12);
  line-height: 1;
  margin-bottom: 20px;
}

.role-card-title {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}

.role-card-body {
  font-size: 0.82rem;
  line-height: 1.85;
  color: var(--text-muted);
}

/* ── ARCHITECTURE SECTION ── */
#architecture {
  background: var(--dark-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.arch-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  align-items: start;
  margin-top: 60px;
}

.arch-image .img-slot { height: 520px; }

.arch-layers {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.arch-layer {
  padding: 24px 28px;
  border: 1px solid var(--border);
  border-bottom: none;
  position: relative;
  transition: background 0.3s;
}

.arch-layer:last-child { border-bottom: 1px solid var(--border); }
.arch-layer:hover { background: rgba(201,168,76,0.04); }

.arch-layer-title {
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}

.arch-layer-desc {
  font-size: 0.78rem;
  line-height: 1.75;
  color: var(--text-muted);
}

.arch-layer-tag {
  position: absolute;
  right: 20px; top: 50%;
  transform: translateY(-50%);
  font-size: 0.58rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(201,168,76,0.3);
  border: 1px solid rgba(201,168,76,0.15);
  padding: 4px 10px;
}

/* ── FUNCTIONS SECTION ── */
#functions { background: var(--dark); }

.functions-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  margin-bottom: 70px;
}

.functions-image .img-slot { height: 380px; }

.functions-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.fn-card {
  background: var(--dark-3);
  padding: 36px 32px;
  border: 1px solid var(--border);
  transition: all 0.35s;
}

.fn-card:hover {
  border-color: rgba(201,168,76,0.5);
  transform: translateY(-4px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.4);
}

.fn-card-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem;
  color: var(--gold);
  margin-bottom: 14px;
  font-weight: 300;
}

.fn-card-title {
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--off-white);
  margin-bottom: 16px;
}

.fn-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.fn-list li {
  font-size: 0.77rem;
  line-height: 1.6;
  color: var(--text-muted);
  padding-left: 14px;
  position: relative;
}

.fn-list li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--gold);
  opacity: 0.6;
  font-size: 0.65rem;
}

/* ── REPEATABILITY SECTION ── */
#repeatability {
  background: var(--dark-2);
  border-top: 1px solid var(--border);
}

.repeat-layout {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 80px;
  align-items: center;
}

.repeat-image .img-slot { height: 440px; }

.repeat-pillars {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 40px;
}

.pillar {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid rgba(201,168,76,0.1);
}

.pillar:last-child { border-bottom: none; }

.pillar-icon {
  width: 36px; height: 36px;
  min-width: 36px;
  border: 1px solid rgba(201,168,76,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}

.pillar-icon svg {
  width: 14px; height: 14px;
  stroke: var(--gold);
}

.pillar-text-title {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--off-white);
  margin-bottom: 6px;
}

.pillar-text-body {
  font-size: 0.78rem;
  line-height: 1.7;
  color: var(--text-muted);
}

/* ── ADVISERS SECTION ── */
#advisers { background: var(--dark); }

.advisers-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.advisers-image .img-slot { height: 460px; }

.adviser-roles {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 40px;
}

.adviser-role {
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 24px;
}

.adviser-role:first-child { border-top: 1px solid var(--border); }

.adviser-role-label {
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  padding-top: 2px;
}

.adviser-role-desc {
  font-size: 0.8rem;
  line-height: 1.75;
  color: var(--text-muted);
}

/* ── STRATEGIC SECTION ── */
#strategic {
  background: var(--dark-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.strategic-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.strategic-image .img-slot { height: 460px; }

.strategic-points {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 36px;
}

.spoint {
  display: flex;
  gap: 18px;
  align-items: flex-start;
}

.spoint-dot {
  width: 6px; height: 6px;
  min-width: 6px;
  background: var(--gold);
  margin-top: 8px;
  border-radius: 0;
  transform: rotate(45deg);
}

.spoint-text {
  font-size: 0.82rem;
  line-height: 1.8;
  color: var(--text-muted);
}

/* ── POSITIONING SECTION ── */
#positioning {
  background: var(--dark);
  text-align: center;
  padding: 120px 60px;
}

.pos-inner {
  max-width: 800px;
  margin: 0 auto;
}

.pos-image .img-slot {
  height: 360px;
  margin: 60px auto;
  max-width: 800px;
}

.pos-quote {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.6rem, 2.8vw, 2.6rem);
  font-weight: 300;
  font-style: italic;
  color: var(--off-white);
  line-height: 1.45;
  margin: 50px 0 30px;
  position: relative;
  padding: 0 30px;
}

.pos-quote::before {
  content: '\201C';
  font-size: 8rem;
  color: rgba(201,168,76,0.08);
  position: absolute;
  left: -20px;
  top: -30px;
  line-height: 1;
  font-style: normal;
}

.pos-note {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(201,168,76,0.4);
  margin-top: 50px;
  padding-top: 30px;
  border-top: 1px solid var(--border);
}

/* ── FOOTER ── */
footer {
  background: var(--dark-2);
  border-top: 1px solid var(--border);
  padding: 50px 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  color: var(--gold);
  text-transform: uppercase;
}

.footer-note {
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.divider {
  width: 1px;
  height: 60px;
  background: linear-gradient(180deg, transparent, var(--gold), transparent);
  margin: 0 auto 60px;
  opacity: 0.4;
}

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

.fade-up {
  opacity: 0;
  animation: fadeUp 0.9s ease forwards;
}

.delay-1 { animation-delay: 0.15s; }
.delay-2 { animation-delay: 0.3s; }
.delay-3 { animation-delay: 0.45s; }
.delay-4 { animation-delay: 0.6s; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  nav { padding: 18px 24px; }
  section { padding: 70px 24px; }
  .intro-grid,
  .arch-layout,
  .functions-intro,
  .repeat-layout,
  .advisers-layout,
  .strategic-layout { grid-template-columns: 1fr; gap: 40px; }
  .role-grid, .functions-grid { grid-template-columns: 1fr; }
  footer { flex-direction: column; gap: 16px; text-align: center; }
  .nav-links { display: none; }
  .adviser-role { grid-template-columns: 1fr; gap: 6px; }
}
