/* ============================================
   BOA COMFORT RENTALS — SHARED DESIGN SYSTEM
   Used across all marketing pages (index, features,
   pricing, tutorials, about, contact) for a consistent
   look. Edit here to change site-wide styling.
   ============================================ */

:root {
  --teal:     #003F5C;
  --teal-mid: #00607A;
  --teal-lt:  #0A8399;
  --accent:   #F0A500;
  --accent2:  #E05C2A;
  --cream:    #F7F4EF;
  --white:    #FFFFFF;
  --dark:     #0D1F2D;
  --muted:    #5F707B;
  --border:   #D8E4E8;
  --green:    #1A8A5A;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'DM Sans', sans-serif;
  background: var(--cream);
  color: var(--dark);
  overflow-x: hidden;
}
.container { max-width: 1180px; margin: 0 auto; }

/* ── NAV ──
   Solid white bar (distinct from the cream page background) so the
   whole nav — logo, tabs, and CTA — reads as one clearly separate strip. */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 6vw;
  background: var(--white);
  box-shadow: 0 2px 16px rgba(0,63,92,0.07);
  border-bottom: 1px solid var(--border);
}
.nav-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem; font-weight: 900;
  color: var(--teal);
  letter-spacing: -0.5px;
  display: flex; align-items: center; gap: 11px;
  text-decoration: none;
  flex-shrink: 0;
}
.nav-logo img { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; }
.nav-logo span { color: var(--accent); }
.nav-links {
  display: flex; align-items: center; gap: 6px;
}
.nav-links a {
  color: var(--dark); text-decoration: none;
  font-size: 1.05rem; font-weight: 600;
  transition: all 0.2s; position: relative;
  padding: 10px 18px; border-radius: 8px;
}
.nav-links a:hover { color: var(--teal); background: rgba(0,63,92,0.06); }
.nav-links a.active { color: var(--teal); background: rgba(0,63,92,0.08); font-weight: 700; }
.nav-links a.active::after {
  content: ''; position: absolute; bottom: 3px; left: 18px; right: 18px;
  height: 2.5px; background: var(--accent); border-radius: 2px;
}
/* Hoverable insight tooltip under each tab */
.nav-links a[data-tip]::before {
  content: attr(data-tip);
  position: absolute; top: calc(100% + 10px); left: 50%; transform: translateX(-50%) translateY(4px);
  background: var(--dark); color: var(--white);
  font-size: 0.72rem; font-weight: 500; letter-spacing: 0.2px;
  padding: 7px 12px; border-radius: 7px; white-space: nowrap;
  opacity: 0; pointer-events: none; transition: opacity 0.18s, transform 0.18s;
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}
.nav-links a[data-tip]::after.tooltip-arrow {}
.nav-links a[data-tip]:hover::before { opacity: 1; transform: translateX(-50%) translateY(0); }
.nav-right { display: flex; align-items: center; gap: 20px; }
.nav-cta {
  background: var(--teal); color: var(--white);
  padding: 13px 28px; border-radius: 8px;
  font-size: 0.95rem; font-weight: 700;
  text-decoration: none; letter-spacing: 0.3px;
  transition: background 0.2s, transform 0.2s;
  white-space: nowrap;
  box-shadow: 0 4px 16px rgba(0,63,92,0.2);
}
.nav-cta:hover { background: var(--teal-mid); transform: translateY(-1px); }
.nav-burger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px;
}
.nav-burger span { width: 22px; height: 2px; background: var(--teal); border-radius: 2px; }

@media (max-width: 960px) {
  nav { padding: 12px 4vw; gap: 8px; flex-wrap: nowrap; }
  .nav-links { display: none; }
  .nav-burger { display: flex; order: -1; flex-shrink: 0; margin-right: 2px; }
  .nav-links.open {
    display: flex; flex-direction: column;
    position: fixed; top: 66px; left: 0; right: 0;
    background: var(--white); border-bottom: 1px solid var(--border);
    padding: 16px 6vw 24px; gap: 6px; box-shadow: 0 12px 24px rgba(0,0,0,0.08);
  }
  .nav-links a[data-tip]::before { display: none; }
  .nav-logo { order: 0; flex: 1 1 auto; min-width: 0; overflow: hidden; }
  .nav-logo span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: inline-block; max-width: 100%; vertical-align: middle; }
  .nav-logo img { width: 32px; height: 32px; flex-shrink: 0; }
  .nav-right { order: 1; flex-shrink: 0; }
  .nav-cta { padding: 10px 16px; font-size: 0.82rem; }
}
@media (max-width: 400px) {
  .nav-logo span { max-width: 90px; }
}

/* page top padding since nav is fixed and now taller */
main, .page-content { padding-top: 96px; }

/* ── BUTTONS ── */
.btn-primary {
  background: var(--teal); color: var(--white);
  padding: 15px 30px; border-radius: 8px;
  font-size: 1rem; font-weight: 600;
  text-decoration: none; display: inline-flex; align-items: center; gap: 8px;
  transition: all 0.25s; box-shadow: 0 4px 20px rgba(0,63,92,0.25);
  border: none; cursor: pointer;
}
.btn-primary:hover { background: var(--teal-mid); transform: translateY(-2px); box-shadow: 0 8px 30px rgba(0,63,92,0.35); }
.btn-secondary {
  background: transparent; color: var(--teal);
  padding: 15px 30px; border-radius: 8px;
  font-size: 1rem; font-weight: 500;
  text-decoration: none; display: inline-flex; align-items: center; gap: 8px;
  border: 1.5px solid var(--teal);
  transition: all 0.25s; cursor: pointer;
}
.btn-secondary:hover { background: rgba(0,63,92,0.05); transform: translateY(-2px); }
.btn-whatsapp {
  background: #1EBE5D; color: var(--white);
  padding: 15px 30px; border-radius: 8px;
  font-size: 1rem; font-weight: 600;
  text-decoration: none; display: inline-flex; align-items: center; gap: 10px;
  transition: all 0.25s; box-shadow: 0 4px 20px rgba(30,190,93,0.3);
}
.btn-whatsapp:hover { background: #17A34E; transform: translateY(-2px); box-shadow: 0 8px 30px rgba(30,190,93,0.4); }
.btn-youtube {
  background: #FF0000; color: var(--white);
  padding: 15px 30px; border-radius: 8px;
  font-size: 1rem; font-weight: 600;
  text-decoration: none; display: inline-flex; align-items: center; gap: 10px;
  transition: all 0.25s; box-shadow: 0 4px 20px rgba(255,0,0,0.25);
}
.btn-youtube:hover { background: #D90000; transform: translateY(-2px); box-shadow: 0 8px 30px rgba(255,0,0,0.35); }

/* ── SECTION COMMON ── */
section { padding: 100px 6vw; }
.section-label {
  font-size: 0.75rem; font-weight: 700; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--teal-lt);
  margin-bottom: 16px;
}
.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 900; line-height: 1.15;
  color: var(--teal); margin-bottom: 20px;
  letter-spacing: -0.5px;
}
.section-sub {
  font-size: 1.05rem; line-height: 1.7; color: var(--muted);
  max-width: 560px; font-weight: 300;
}

/* Full-width variants: bold title on one line spanning the container,
   plain subtext on one line beneath it. Used for section intros that
   should stretch across the page rather than sit narrow. */
.section-title-wide {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.5rem, 2.6vw, 2.3rem);
  font-weight: 900; line-height: 1.25;
  color: var(--teal); margin-bottom: 14px;
  letter-spacing: -0.4px;
  white-space: nowrap;
}
.section-sub-wide {
  font-size: 1.02rem; line-height: 1.6; color: var(--muted);
  max-width: 100%; font-weight: 300;
  white-space: nowrap;
}
@media (max-width: 1100px) {
  .section-title-wide, .section-sub-wide { white-space: normal; }
}

/* ── KENYAN MOTIF: perforated receipt divider ──
   Recurring visual tying the brand back to the M-Pesa /
   paybill receipt strip — a thin dashed gold "tear line"
   used between sections across the whole site. */
.receipt-divider {
  height: 2px; width: 100%;
  background: repeating-linear-gradient(90deg, var(--accent) 0, var(--accent) 8px, transparent 8px, transparent 18px);
  opacity: 0.4;
}
.receipt-divider.on-dark { background: repeating-linear-gradient(90deg, rgba(255,255,255,0.5) 0, rgba(255,255,255,0.5) 8px, transparent 8px, transparent 18px); }

/* small tick-mark badge used to flag Kenya-specific things */
.ke-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent); color: var(--white);
  padding: 8px 16px; border-radius: 100px;
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.5px;
  margin-bottom: 20px;
}

/* ── PAGE HERO (for non-home pages) ── */
.page-hero {
  padding: 160px 6vw 70px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 60% at 50% 0%, rgba(0,63,92,0.06) 0%, transparent 70%);
  pointer-events: none;
}
.page-hero .section-label { justify-content: center; display: flex; }
.page-hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  font-weight: 900; line-height: 1.15; color: var(--teal);
  margin-bottom: 18px; letter-spacing: -1px;
}
.page-hero p {
  font-size: 1.08rem; color: var(--muted); font-weight: 300;
  max-width: 680px; margin: 0 auto; line-height: 1.7;
}
.page-hero.wide h1 { white-space: nowrap; }
@media (max-width: 1100px) { .page-hero.wide h1 { white-space: normal; } }

/* ── CTA (reused) ── */
.cta-section {
  background: var(--teal);
  padding: 100px 6vw; text-align: center;
  position: relative; overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute; top: -100px; left: 50%; transform: translateX(-50%);
  width: 600px; height: 600px; border-radius: 50%;
  background: rgba(240,165,0,0.06);
  pointer-events: none;
}
.cta-section h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900; color: var(--white); margin-bottom: 20px;
  position: relative;
}
.cta-section p { color: rgba(255,255,255,0.65); font-size: 1.05rem; margin-bottom: 44px; font-weight: 300; max-width: 620px; margin-left: auto; margin-right: auto; }
.cta-section h2.wide { white-space: nowrap; }
@media (max-width: 1100px) { .cta-section h2.wide { white-space: normal; } }
.cta-btn {
  background: var(--accent); color: var(--white);
  padding: 17px 44px; border-radius: 8px;
  font-size: 1.05rem; font-weight: 700;
  text-decoration: none; display: inline-block;
  transition: all 0.25s;
  box-shadow: 0 4px 24px rgba(240,165,0,0.4);
}
.cta-btn:hover { background: #D4940A; transform: translateY(-3px); box-shadow: 0 10px 40px rgba(240,165,0,0.5); }

/* ── FOOTER ── */
footer {
  background: var(--dark); padding: 50px 6vw 30px;
}
.footer-top { text-align: center; margin-bottom: 40px; }
.footer-logo { font-family: 'Playfair Display', serif; font-size: 1.5rem; font-weight: 900; color: var(--white); margin-bottom: 8px; display: flex; align-items: center; justify-content: center; gap: 10px; }
.footer-logo img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; }
.footer-logo span { color: var(--accent); }
.footer-tagline { font-size: 0.85rem; color: rgba(255,255,255,0.6); font-weight: 300; }
.footer-social { display: flex; justify-content: center; gap: 14px; margin-top: 16px; }
.footer-social a { width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: transform 0.2s, filter 0.2s; }
.footer-social a:hover { transform: translateY(-2px); filter: brightness(1.15); }
.footer-social svg { width: 16px; height: 16px; fill: white; }
.footer-social a.ic-fb { background: #1877F2; }
.footer-social a.ic-ig { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.footer-social a.ic-tiktok { background: #000000; }
.footer-social a.ic-yt { background: #FF0000; }
.footer-social a.ic-li { background: #0A66C2; }
.footer-social a.ic-x { background: #000000; }
.footer-cols { display: flex; justify-content: center; gap: 80px; flex-wrap: wrap; }
.footer-col { text-align: center; }
.footer-col h5 { color: var(--white); font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.8px; margin-bottom: 14px; }
.footer-links { display: flex; flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 10px 22px; }
.footer-links a { color: rgba(255,255,255,0.6); font-size: 0.85rem; text-decoration: none; transition: color 0.2s; white-space: nowrap; }
.footer-links a:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 24px; margin-top: 40px;
  display: flex; justify-content: space-between;
  font-size: 0.78rem; color: rgba(255,255,255,0.5);
}

/* ── ANIMATIONS ── */
.fade-up {
  opacity: 0; transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* ── ACCESSIBILITY ── */
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--teal-lt);
  outline-offset: 3px;
  border-radius: 4px;
}
.cta-section a:focus-visible, .cta-btn:focus-visible, footer a:focus-visible { outline-color: var(--accent); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

@media (max-width: 768px) {
  footer { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 8px; }
  .page-hero { padding: 130px 6vw 50px; }
}
