/* Kilombo Tenondé — Stylesheet
   Edit layout, colors, and component styles here.
   Color tokens are defined in app.js (const C = { ... }).
   ---------------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Trebuchet MS', Trebuchet, sans-serif;
  background: #08192D;
  color: #08192D;
  overflow-x: hidden;
}

/* ── Background image layer ────────────────────────────────────── */
#bg-layer {
  position: fixed; inset: 0; z-index: 0;
  background-image: url('images/hero-bg.jpg'); /* place optimized image here — see README */
  background-size: cover;
  background-position: center top;
  pointer-events: none;
}

#app { position: relative; z-index: 1; }

/* ── Typography scale ──────────────────────────────────────────── */
.t-label {
  font-size: 11px; letter-spacing: 2.5px; text-transform: uppercase;
  font-weight: 600; opacity: 0.55;
}
.t-hero   { font-size: clamp(32px, 5vw, 56px); font-weight: 700; line-height: 1.08; letter-spacing: -0.5px; }
.t-h2     { font-size: clamp(22px, 3vw, 32px); font-weight: 700; line-height: 1.15; }
.t-h3     { font-size: clamp(16px, 2vw, 20px); font-weight: 700; }
.t-body   { font-size: clamp(14px, 1.4vw, 16px); line-height: 1.7; }
.t-small  { font-size: 12px; line-height: 1.5; opacity: 0.6; }

/* ── Buttons ───────────────────────────────────────────────────── */
.btn {
  display: inline-block; padding: 12px 24px; border-radius: 2px;
  font-family: 'Trebuchet MS', sans-serif; font-size: 14px; font-weight: 700;
  letter-spacing: 0.3px; cursor: pointer; border: 2.5px solid transparent;
  transition: opacity 0.15s, transform 0.1s;
  text-decoration: none; white-space: nowrap;
}
.btn:hover  { opacity: 0.88; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary      { background: #EFBB24; color: #08192D; border-color: #EFBB24; }
.btn-outline      { background: transparent; color: #BDC0BA; border-color: rgba(189,192,186,0.5); }
.btn-outline-dark { background: transparent; color: #255359; border-color: #255359; }
.btn-red          { background: #E83015; color: #fff; border-color: #E83015; }
.btn-green        { background: #90B44B; color: #fff; border-color: #90B44B; }
.btn-full         { width: 100%; text-align: center; display: block; }

/* ── Navigation ────────────────────────────────────────────────── */
#nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background 0.3s, box-shadow 0.3s;
}
#nav.scrolled {
  background: #08192D;
  box-shadow: 0 2px 20px rgba(0,0,0,0.4);
}
.nav-inner {
  max-width: 1100px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 24px;
  border-bottom: 3px solid #EFBB24;
}
.nav-logo-area {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; cursor: pointer;
}
.nav-logo-img {
  height: 36px; width: auto; display: block;
  object-fit: contain; flex-shrink: 0;
  transition: opacity 0.15s;
}
.nav-logo-area:hover .nav-logo-img { opacity: 0.85; }
.nav-logo-name { font-size: 17px; font-weight: 700; color: #fff; letter-spacing: 0.8px; }
.nav-logo-sub  { font-size: 9px; color: #BDC0BA; letter-spacing: 3px; text-transform: uppercase; margin-top: 1px; }

@media (max-width: 640px) {
  .nav-logo-img { height: 28px; }
}
.nav-links     { display: flex; align-items: center; gap: 28px; }
.nav-link      { color: #BDC0BA; font-size: 13px; font-weight: 600; text-decoration: none; letter-spacing: 0.3px; transition: color 0.15s; }
.nav-link:hover { color: #EFBB24; }

.lang-switch { display: flex; border: 2px solid rgba(255,255,255,0.2); border-radius: 2px; overflow: hidden; }
.lang-btn {
  padding: 4px 11px; font-size: 12px; font-weight: 700;
  color: rgba(255,255,255,0.45); cursor: pointer; transition: background 0.15s, color 0.15s;
  border-right: 1px solid rgba(255,255,255,0.15);
}
.lang-btn:last-child         { border-right: none; }
.lang-btn.active             { background: #EFBB24; color: #08192D; }
.lang-btn:hover:not(.active) { color: #fff; }

/* Hamburger (mobile) */
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px; }
.hamburger span { display: block; width: 22px; height: 2px; background: #BDC0BA; border-radius: 2px; transition: transform 0.2s, opacity 0.2s; }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  display: none; position: absolute; top: 100%; left: 0; right: 0;
  background: #08192D; border-top: 2px solid #255359;
  padding: 16px 24px; flex-direction: column; gap: 0;
}
.mobile-menu.open            { display: flex; }
.mobile-menu .nav-link       { padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,0.08); font-size: 15px; }
.mobile-menu .lang-switch    { margin-top: 16px; width: fit-content; }

@media (max-width: 640px) {
  .nav-links .nav-link    { display: none; }
  .nav-links .lang-switch { display: none; }
  .nav-logo-sub           { display: none; }
  .hamburger              { display: flex; }
}

/* ── Section wrappers ──────────────────────────────────────────── */
.sec          { position: relative; }
.sec-inner    { max-width: 1100px; margin: 0 auto; padding: 80px 24px; }
.sec-inner-sm { max-width: 1100px; margin: 0 auto; padding: 60px 24px; }

@media (max-width: 640px) {
  .sec-inner, .sec-inner-sm { padding: 52px 18px; }
}

/* ── Section overlays ──────────────────────────────────────────── */
.ov-dark        { background: rgba(8,25,45,0.78); }
.ov-darker      { background: rgba(8,25,45,0.88); }
.ov-cream       { background: rgba(242,237,223,0.91); }
.ov-cream-light { background: rgba(242,237,223,0.82); }
.ov-transparent { background: rgba(8,25,45,0.55); }

/* ── Grid helpers ──────────────────────────────────────────────── */
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center; }

@media (max-width: 700px) {
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
}

/* ── Pillar cards ──────────────────────────────────────────────── */
.pillar-card {
  padding: 28px 22px; border-radius: 2px;
  display: flex; flex-direction: column; gap: 10px;
  transition: transform 0.2s;
  position: relative; overflow: hidden;
  aspect-ratio: 2 / 3; justify-content: flex-end;
  min-height: 240px; /* fallback for very narrow screens */
}
.pillar-card:hover { transform: translateY(-3px); }
.pillar-icon  { font-size: 32px; line-height: 1; }
.pillar-title { font-size: 22px; font-weight: 700; color: #fff; }
.pillar-sub   { font-size: 10px; font-weight: 700; letter-spacing: 2.5px; text-transform: uppercase; opacity: 0.5; color: #fff; }
.pillar-desc  { font-size: 14px; line-height: 1.6; color: rgba(255,255,255,0.78); }

.pillar-bg {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; letter-spacing: 2px; text-transform: uppercase;
  background: repeating-linear-gradient(135deg, rgba(0,0,0,0.18) 0px, rgba(0,0,0,0.18) 2px, transparent 2px, transparent 12px);
  color: rgba(255,255,255,0.2);
}
.pillar-gradient {
  position: absolute; bottom: 0; left: 0; right: 0; height: 65%;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, transparent 100%);
}
.pillar-content { position: relative; z-index: 2; }

/* Photo layer behind the gradient and text */
.pillar-bg-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center top;
  z-index: 0;
}

/* ── Pricing table ─────────────────────────────────────────────── */
.plan-table { border-radius: 2px; overflow: hidden; border: 2px solid rgba(8,25,45,0.12); }
.plan-row {
  display: grid; grid-template-columns: 130px 160px 1fr;
  align-items: center; gap: 16px; padding: 14px 20px;
  border-bottom: 1.5px solid rgba(8,25,45,0.08);
  transition: background 0.15s;
}
.plan-row:last-child { border-bottom: none; }
.plan-row.hl  { background: #255359; }
.plan-name    { font-size: 15px; font-weight: 700; }
.plan-price   { font-size: 13px; }
.plan-desc    { font-size: 13px; line-height: 1.4; }

.plan-row-data              { cursor: pointer; transition: background 0.18s; }
.plan-row-data:hover        { background: rgba(239,187,36,0.18) !important; }
.plan-row-data.hl:hover     { background: rgba(239,187,36,0.35) !important; }

@media (max-width: 640px) {
  .plan-row { grid-template-columns: 1fr 1fr; gap: 6px; padding: 12px 14px; }
  .plan-desc { grid-column: 1 / -1; opacity: 0.7; }
}

/* ── Trust cards ───────────────────────────────────────────────── */
.trust-card { padding: 24px; border-radius: 2px; }

/* ── FAQ ───────────────────────────────────────────────────────── */
.faq-item { border-bottom: 1.5px solid rgba(8,25,45,0.12); }
.faq-q {
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px 0; cursor: pointer; gap: 16px;
}
.faq-q-text { font-size: 15px; font-weight: 700; color: #08192D; }
.faq-icon   { font-size: 20px; color: #947A6D; transition: transform 0.2s; flex-shrink: 0; }
.faq-icon.open { transform: rotate(180deg); }
.faq-a { font-size: 14px; line-height: 1.7; color: #444; padding-bottom: 16px; max-width: 680px; }

/* ── Section photos (Different + Quote) ───────────────────────── */
.section-photo-wrap {
  height: 260px; border-radius: 2px; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  /* Placeholder pattern shown when image is missing or loading */
  background: repeating-linear-gradient(45deg,
    rgba(66,96,45,0.15), rgba(66,96,45,0.15) 5px,
    rgba(66,96,45,0.05) 5px, rgba(66,96,45,0.05) 10px);
  border: 2px dashed rgba(148,122,109,0.4);
}
/* Quote photo variant — landscape 3:2 on desktop, fixed height on mobile */
.section-photo-portrait {
  height: auto;
  aspect-ratio: 3 / 2;
}
@media (max-width: 700px) {
  .section-photo-portrait { height: 260px; aspect-ratio: unset; }
}
.section-photo {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center top;
  display: block;
}

/* ── Image placeholder ─────────────────────────────────────────── */
.img-ph {
  border-radius: 2px; overflow: hidden;
  background: repeating-linear-gradient(45deg, rgba(66,96,45,0.15), rgba(66,96,45,0.15) 5px, rgba(66,96,45,0.05) 5px, rgba(66,96,45,0.05) 10px);
  border: 2px dashed rgba(148,122,109,0.4);
  display: flex; align-items: center; justify-content: center;
  color: #947A6D; font-size: 12px; letter-spacing: 1px; text-align: center;
}

/* ── Quote section ─────────────────────────────────────────────── */
.quote-text {
  font-size: clamp(16px, 2.2vw, 22px); line-height: 1.65;
  color: rgba(255,255,255,0.92); font-style: italic;
  border-left: 6px solid #EFBB24; padding-left: 28px;
  text-wrap: pretty;
}

/* ── Footer ────────────────────────────────────────────────────── */
#footer { background: #08192D; border-top: 3px solid #255359; }
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-link  { font-size: 11px; color: #BDC0BA; letter-spacing: 0.5px; text-decoration: none; transition: color 0.15s; }
.footer-link:hover { color: #EFBB24; }

/* ── Divider ───────────────────────────────────────────────────── */
.divider-amber { height: 4px; background: linear-gradient(to right, #EFBB24, #DDD23B, #90B44B); }

/* ── Back to top ───────────────────────────────────────────────── */
.back-to-top {
  position: fixed; bottom: 28px; right: 28px; z-index: 200;
  width: 48px; height: 48px; border-radius: 50%;
  background: rgba(239,187,36,0.72); backdrop-filter: blur(8px);
  border: 2px solid rgba(239,187,36,0.9);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: opacity 0.3s, transform 0.2s;
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}
.back-to-top:hover  { background: rgba(239,187,36,0.9); transform: translateY(-2px); }
.back-to-top.hidden { opacity: 0; pointer-events: none; }
.back-to-top svg    { display: block; }

/* ── Scroll-fade in animation ──────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeUp 0.5s ease both; }

/* ── Tweaks panel (dev/preview only) ───────────────────────────── */
.tweaks-panel {
  position: fixed; bottom: 24px; right: 24px; background: #F2EDDF;
  border: 2px solid #08192D; border-radius: 4px; padding: 20px;
  z-index: 999; width: 240px; box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}
.tweaks-title { font-size: 16px; font-weight: 700; color: #08192D; margin-bottom: 14px; }
.tweaks-label { font-size: 11px; color: #947A6D; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 8px; }
.tweaks-radio { display: flex; gap: 8px; align-items: center; margin-bottom: 8px; font-size: 13px; cursor: pointer; }
.swatch       { width: 16px; height: 16px; border-radius: 2px; flex-shrink: 0; }
