/* SilverbackXfit — "Welcoming Jungle" theme */
:root {
  --cream: #F8F4E9;
  --jungle: #1F3D2B;
  --palm: #4C7A5A;
  --gold: #D9A441;
  --charcoal: #2B2B26;
  --terra: #B5602E;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Open Sans', 'Lato', Arial, sans-serif;
  background: var(--cream);
  color: var(--charcoal);
  line-height: 1.65;
  font-size: 17px;
}

h1, h2, h3, h4 {
  font-family: 'Montserrat', 'Poppins', Arial, sans-serif;
  color: var(--jungle);
  line-height: 1.25;
}

img { max-width: 100%; height: auto; display: block; }

.wrap { max-width: 1100px; margin: 0 auto; padding: 0 24px; }

/* ---------- Header / nav ---------- */
header {
  background: var(--jungle);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,.25);
}
.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 800;
  font-size: 1.35rem;
  text-decoration: none;
  letter-spacing: .5px;
}
.brand span { color: var(--gold); }
.brand img { height: 54px; width: auto; display: block; }
nav ul { list-style: none; display: flex; gap: 6px; }
nav a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  padding: 10px 14px;
  border-radius: 6px;
  font-size: .95rem;
}
nav a:hover, nav a.active { background: rgba(217,164,65,.18); color: var(--gold); }
#nav-toggle, .nav-toggle-label { display: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  background: var(--gold);
  color: var(--jungle);
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  text-decoration: none;
  padding: 14px 30px;
  border-radius: 8px;
  font-size: 1.05rem;
  border: none;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(0,0,0,.2); }
.text-link { color: var(--jungle); font-weight: 600; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 62vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: url('assets/hero.jpg') center 25% / cover no-repeat;
  color: #fff;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(31,61,43,.62), rgba(31,61,43,.72));
}
.hero-content { position: relative; z-index: 1; padding: 70px 24px; max-width: 800px; }
.hero h1 { color: #fff; font-size: 2.6rem; margin-bottom: 14px; }
.hero p.sub { font-size: 1.25rem; margin-bottom: 28px; color: #f3ecd9; }
.hero .small-link { display: block; margin-top: 18px; color: #fff; font-size: .95rem; }
.hero .small-link:hover { color: var(--gold); }

/* ---------- Sections ---------- */
section { padding: 64px 0; }
.section-title { text-align: center; font-size: 2rem; margin-bottom: 12px; }
.section-lede { text-align: center; max-width: 720px; margin: 0 auto 40px; font-size: 1.1rem; }

.band { background: var(--palm); color: #fff; }
.band h2, .band h3 { color: #fff; }
.band .section-lede { color: #f1f5ee; }

.three-col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 36px;
}
.three-col .item {
  background: rgba(255,255,255,.12);
  border-radius: 12px;
  padding: 28px 24px;
  text-align: center;
}
.band .item h3 { font-size: 1.15rem; margin-bottom: 8px; }

/* ---------- Cards ---------- */
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
.card {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(31,61,43,.12);
  display: flex;
  flex-direction: column;
}
.card img.card-photo { height: 260px; width: 100%; object-fit: cover; }
.card-body { padding: 30px 28px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.card-body h3 { font-size: 1.5rem; }
.card-body .btn { align-self: flex-start; margin-top: auto; }

/* ---------- Gallery ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 36px;
}
.gallery img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-radius: 10px;
}

/* ---------- Program blocks ---------- */
.program-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 44px;
  align-items: center;
  margin-bottom: 70px;
}
.program-block:last-of-type { margin-bottom: 0; }
.program-block img.main { border-radius: 14px; box-shadow: 0 6px 22px rgba(31,61,43,.15); }
.program-block h2 { font-size: 1.9rem; margin-bottom: 14px; }
.program-block p { margin-bottom: 14px; }
.program-block.flip .text { order: 2; }
.program-block.flip img.main { order: 1; }
.service-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 24px;
}
.service-list li {
  background: var(--cream);
  border: 1.5px solid var(--palm);
  color: var(--jungle);
  font-weight: 600;
  font-size: .92rem;
  padding: 7px 14px;
  border-radius: 999px;
}
.program-logo { max-width: 240px; margin-bottom: 18px; }

/* ---------- Reviews ---------- */
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 36px; }
.review {
  background: #fff;
  border-radius: 12px;
  padding: 28px 24px;
  box-shadow: 0 4px 18px rgba(31,61,43,.1);
  font-style: italic;
}
.review .who { font-style: normal; font-weight: 700; color: var(--palm); margin-top: 12px; font-size: .92rem; }
.stars { color: var(--terra); letter-spacing: 3px; margin-bottom: 10px; font-style: normal; }

/* ---------- CTA banner ---------- */
.cta-banner {
  background: var(--jungle);
  color: #fff;
  text-align: center;
  padding: 70px 24px;
}
.cta-banner h2 { color: #fff; font-size: 2.1rem; margin-bottom: 12px; }
.cta-banner p { color: #e9e2cf; margin-bottom: 26px; font-size: 1.1rem; }

/* ---------- Placeholder / notes ---------- */
.note-box {
  background: #fff;
  border: 2px dashed var(--palm);
  border-radius: 12px;
  padding: 34px 28px;
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}
.note-box h3 { margin-bottom: 8px; }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
  margin-top: 36px;
}
.contact-info h3 { margin: 22px 0 6px; font-size: 1.15rem; }
.contact-info h3:first-child { margin-top: 0; }
.map-frame {
  border: 0;
  width: 100%;
  height: 380px;
  border-radius: 12px;
  box-shadow: 0 4px 18px rgba(31,61,43,.12);
}

/* ---------- Footer ---------- */
footer { background: var(--jungle); color: #dfe4d8; padding: 44px 0 30px; }
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
  align-items: center;
}
.footer-brand { font-family: 'Montserrat', Arial, sans-serif; font-weight: 800; color: #fff; font-size: 1.15rem; }
.footer-brand span { color: var(--gold); }
.footer-brand img { height: 72px; width: auto; display: block; }
footer .addr { font-size: .92rem; margin-top: 6px; }
footer nav a { font-size: .9rem; padding: 6px 10px; }
.copyright { text-align: center; font-size: .82rem; color: #a9b39b; margin-top: 28px; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { background: var(--jungle); color: #fff; text-align: center; padding: 60px 24px; }
.page-hero h1 { color: #fff; font-size: 2.3rem; margin-bottom: 10px; }
.page-hero p { color: #e9e2cf; font-size: 1.1rem; max-width: 700px; margin: 0 auto; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .three-col, .cards, .reviews { grid-template-columns: 1fr; }
  .program-block, .contact-grid { grid-template-columns: 1fr; }
  .program-block.flip .text { order: 1; }
  .program-block.flip img.main { order: 2; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .hero h1 { font-size: 1.9rem; }

  .nav-toggle-label {
    display: block;
    color: #fff;
    font-size: 1.7rem;
    cursor: pointer;
    line-height: 1;
    user-select: none;
  }
  nav ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--jungle);
    flex-direction: column;
    padding: 10px 24px 18px;
    gap: 2px;
    box-shadow: 0 8px 16px rgba(0,0,0,.25);
    z-index: 200;
  }
  #nav-toggle:checked ~ ul { display: flex; }
  nav a { display: block; padding: 12px 6px; }
}
@media (max-width: 520px) {
  .gallery { grid-template-columns: 1fr; }
  section { padding: 44px 0; }
}
