/* ======================================== */
/* LAYOUT.CSS — GLOBAL PAGE STRUCTURE       */
/* Using Mobile-First Responsive Approach   */
/* ======================================== */

/* ---------------------------------------- */
/* 1. NAVBAR / HEADER                       */
/* ---------------------------------------- */
header {
  width: 100%;
  background: var(--bvm-bg-light);
  box-shadow: var(--shadow-soft);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-sm) var(--space-md);
}

.nav-logo img {
  height: 40px;
}

.nav-links {
  display: flex;
  gap: var(--space-sm);
}

.nav-links li a {
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-sm);
  font-size: var(--fs-small);
  color: var(--bvm-text-dark);
}

.nav-links li a.active,
.nav-links li a:hover {
  background: var(--bvm-secondary);
  color: var(--bvm-text-light);
}

/* Mobile navigation stack (future JS optional) */
@media (max-width: 600px) {
  .nav-links {
    flex-wrap: wrap;
    justify-content: center;
  }
}

/* ---------------------------------------- */
/* 2. PAGE HERO                             */
/* ---------------------------------------- */
.page-hero {
  position: relative;
  text-align: center;
  margin-bottom: var(--space-lg);
}

.page-hero-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  filter: brightness(0.75);
}

.page-hero-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: var(--bvm-text-light);
}

.page-hero-text h1 {
  font-size: var(--fs-h1);
  color: var(--bvm-text-light);
  margin-bottom: var(--space-xs);
}

.page-hero-text p {
  font-size: var(--fs-small);
}

@media (min-width: 768px) {
  .page-hero-image {
    height: 350px;
  }
  .page-hero-text p {
    font-size: var(--fs-body);
  }
}

/* ---------------------------------------- */
/* 3. GRID SYSTEM                           */
/* ---------------------------------------- */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
}

.grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
}

.grid-4 {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
}

.grid-5 {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
}

/* Responsive grid expansion */
@media (min-width: 600px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-5 { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 992px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
  .grid-5 { grid-template-columns: repeat(5, 1fr); }
}

/* ---------------------------------------- */
/* 4. TWO-COLUMN BLOCKS                     */
/* ---------------------------------------- */
.two-column-block,
.two-column-block-reverse {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
  align-items: center;
  margin-bottom: var(--space-xl);
}

.two-col-image img {
  width: 100%;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
}

@media (min-width: 768px) {
  .two-column-block { grid-template-columns: 1fr 1fr; }
  .two-column-block-reverse {
    grid-template-columns: 1fr 1fr;
  }
}

/* ---------------------------------------- */
/* 5. CTA BANNER                            */
/* ---------------------------------------- */
.cta-banner {
  background: var(--bvm-primary);
  color: var(--bvm-text-light);
  text-align: center;
  padding: var(--space-lg) var(--space-md);
  margin: var(--space-lg) 0;
  border-radius: var(--radius-md);
}

.cta-banner h2 {
  margin-bottom: var(--space-sm);
  color: var(--bvm-text-light);
}

/* ---------------------------------------- */
/* 6. FOOTER                                */
/* ---------------------------------------- */
footer {
  background: var(--bvm-bg-grey);
  padding: var(--space-lg) var(--space-md);
  margin-top: var(--space-xl);
}

.footer-columns {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
}

.footer-col h3 {
  margin-bottom: var(--space-sm);
  font-size: var(--fs-h3);
}

.footer-col p,
.footer-col li {
  font-size: var(--fs-small);
  color: var(--bvm-text-dark);
}

.footer-col ul li a:hover {
  color: var(--bvm-primary);
}

@media (min-width: 768px) {
  .footer-columns {
    grid-template-columns: repeat(3, 1fr);
  }
}
