/**
 * BTC Strategy site – colours, typography, layout
 * Dark: #365575 | Light: #efefef | Text on dark: #fff | Text on light: #222
 * Fonts: Roboto (body), Montserrat Bold (headings)
 */

:root {
  --btc-dark: #365575;
  --btc-light: #efefef;
  --btc-text-on-dark: #fff;
  --btc-text-on-light: #222;
}

body {
  font-family: 'Roboto', sans-serif;
  color: var(--btc-text-on-light);
  background-color: #fff;
}

h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
}

/* Nav: dark background, logo left, menu centered */
.site-nav {
  background-color: var(--btc-dark) !important;
}

.site-nav .navbar-brand {
  margin-right: 0;
}

.site-nav .nav-link {
  color: rgba(255, 255, 255, 0.9);
  padding-left: 1rem;
  padding-right: 1rem;
}

.site-nav .nav-link:hover,
.site-nav .nav-link.active {
  color: var(--btc-text-on-dark);
}

.nav-logo {
  max-height: 48px;
  width: auto;
}

/* Footer */
.site-footer {
  background-color: var(--btc-dark);
  color: var(--btc-text-on-dark);
  margin-top: auto;
}

/* Dark sections */
.section-dark {
  background-color: var(--btc-dark);
  color: var(--btc-text-on-dark);
}

.section-dark h1, .section-dark h2, .section-dark h3 {
  color: var(--btc-text-on-dark);
}

/* Light sections */
.section-light {
  background-color: var(--btc-light);
  color: var(--btc-text-on-light);
}

/* Hero carousel */
.hero-carousel {
  position: relative;
}

.hero-carousel .carousel-item {
  position: relative;
  height: 45vh;
  min-height: 220px;
  overflow: hidden;
}

@media (min-width: 576px) {
  .hero-carousel .carousel-item {
    height: 50vh;
    min-height: 260px;
  }
}

@media (min-width: 768px) {
  .hero-carousel .carousel-item {
    height: 58vh;
    min-height: 320px;
  }
}

@media (min-width: 992px) {
  .hero-carousel .carousel-item {
    height: 70vh;
    min-height: 400px;
  }
}

.hero-carousel .carousel-item img {
  position: absolute;
  inset: 0;
  object-fit: cover;
  width: 100%;
  height: 100%;
}

.hero-carousel .carousel-caption {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(to top, rgba(54, 85, 117, 0.85), rgba(54, 85, 117, 0.4), rgba(54, 85, 117, 0.4), rgba(54, 85, 117, 0.85));
  padding: 2rem;
}

.hero-carousel .carousel-caption .hero-title {
  color: #fff;
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: clamp(1.375rem, 6.5vw, 5rem);
  line-height: 1.2;
}

.hero-carousel .carousel-control-prev,
.hero-carousel .carousel-control-next {
  width: 5%;
}

/* Vision Into Reality: light cards on dark background */
.vision-reality .vision-card {
  background-color: var(--btc-light);
  color: var(--btc-text-on-light);
  border-radius: 0.5rem;
  padding: 2rem;
  height: 100%;
  border-left: 4px solid var(--btc-dark);
}

.vision-reality .vision-card h3 {
  color: var(--btc-text-on-light);
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.vision-reality .vision-card p {
  font-size: 0.95rem;
  margin: 0;
  line-height: 1.6;
}

/* Page hero (static, for inner pages) */
.page-hero {
  background-color: var(--btc-dark);
  color: var(--btc-text-on-dark);
  padding: 4rem 0;
  text-align: center;
}

.page-hero.page-hero-image {
  position: relative;
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-hero.page-hero-image .page-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.4;
}

.page-hero.page-hero-image h1 {
  position: relative;
  z-index: 1;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

/* Strategic plan cards */
.plan-card {
  background: #fff;
  border: 1px solid #dee2e6;
  border-radius: 0.5rem;
  padding: 2rem;
  height: 100%;
  text-align: center;
  transition: box-shadow 0.2s, border-color 0.2s;
}

.plan-card:hover {
  box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.1);
  border-color: var(--btc-dark);
}

.plan-card .plan-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1rem;
  background-color: var(--btc-dark);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

/* Strategic plan year cards (stepped on desktop) */
.year-sections .year-card {
  background: #fff;
  border: 1px solid #dee2e6;
  border-radius: 0.5rem;
  padding: 1.5rem 2rem;
  margin-bottom: 1.5rem;
  border-left: 4px solid var(--btc-dark);
}

.year-sections .year-card:last-child {
  margin-bottom: 0;
}

.year-sections .year-card__title {
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.year-sections .year-card ul {
  margin-bottom: 0;
}

/* Desktop: stepped indent so each card starts further right */
@media (min-width: 992px) {
  .year-sections .year-card--1 {
    margin-left: 0;
    width: 100%;
  }

  .year-sections .year-card--2 {
    margin-left: 2.5rem;
    width: calc(100% - 2.5rem);
  }

  .year-sections .year-card--3 {
    margin-left: 5rem;
    width: calc(100% - 5rem);
  }
}

/* Strategic plan page: watermark on body area, far right */
.strategic-plan-body {
  background-image: url('/img/watermark.webp');
  background-position: right center;
  background-repeat: no-repeat;
  background-size: contain;
}

/* Team cards */
.team-card {
  background: #fff;
  border: 1px solid #dee2e6;
  border-radius: 0.5rem;
  overflow: hidden;
  height: 100%;
}

.team-card .team-photo {
  aspect-ratio: 1;
  object-fit: cover;
  width: 100%;
  background: var(--btc-light);
}

.team-card .team-body {
  padding: 1.25rem;
}

.team-card .team-name {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

/* Stakeholders graphic placeholder */
.stakeholders-visual {
  background: var(--btc-light);
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #666;
}

/* Layout: push footer to bottom */
html, body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}
