/* ============================================
   Shared Components — Nav, Footer, Chips, FAB
   ============================================ */

/* ————— Top Navbar ————— */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  background: var(--white);
  border-bottom: 1px solid var(--gray-mid);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--s6);
  z-index: var(--z-nav);
  transition: box-shadow var(--duration-slow) var(--ease),
              background var(--duration-slow) var(--ease);
}

.navbar.scrolled { box-shadow: var(--shadow-sm); }

.navbar-transparent {
  background: transparent;
  border-bottom-color: transparent;
  box-shadow: none;
}

.navbar-transparent .logo-text { color: var(--white); }
.navbar-transparent .logo-text span { color: var(--white); opacity: 0.7; }
.navbar-transparent .desktop-nav a { color: rgba(255,255,255,0.8); }
.navbar-transparent .desktop-nav a:hover { color: var(--white); }
.navbar-transparent .nav-wa-btn { background: rgba(37,211,102,0.9); }

/* Brand */
.navbar-brand {
  display: flex;
  align-items: center;
  gap: var(--s2);
  text-decoration: none;
}

.logo-text {
  font-size: var(--fs-md);
  font-weight: var(--fw-semi);
  color: var(--text);
  letter-spacing: -0.01em;
}

.logo-text span {
  font-weight: var(--fw-normal);
  opacity: 0.5;
}

/* Desktop nav */
.desktop-nav {
  display: none;
  gap: var(--s7);
}

.desktop-nav a {
  font-size: var(--fs-sm);
  font-weight: var(--fw-normal);
  color: var(--text-soft);
  transition: color var(--duration) var(--ease);
}

.desktop-nav a:hover,
.desktop-nav a.active { color: var(--text); }

/* Nav actions */
.navbar-actions {
  display: flex;
  align-items: center;
  gap: var(--s3);
}

.nav-wa-btn {
  width: 40px;
  height: 40px;
  border-radius: var(--r-full);
  background: var(--wa-green);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--duration) var(--ease);
}

.nav-wa-btn:active { transform: scale(0.92); }

.nav-hamburger {
  width: 36px;
  height: 36px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
}

.nav-hamburger span {
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--text);
  transition: all var(--duration) var(--ease);
}

/* ————— Bottom Navigation (mobile) ————— */
.bottom-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--white);
  border-top: 1px solid var(--gray-mid);
  display: flex;
  align-items: stretch;
  padding-bottom: env(safe-area-inset-bottom, 0);
  z-index: var(--z-nav);
}

.bottom-nav a {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 8px 2px 6px;
  font-size: 10px;
  font-weight: var(--fw-normal);
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.18s ease;
  min-height: 56px;
}

.bottom-nav a .nav-icon {
  width: 28px; height: 28px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.18s ease;
}

.bottom-nav a .nav-icon img {
  width: 20px; height: 20px;
  opacity: 0.4;
  transition: opacity 0.18s ease;
}

.bottom-nav a.active { color: var(--text); }
.bottom-nav a.active .nav-icon { background: var(--gray); }
.bottom-nav a.active .nav-icon img { opacity: 1; }

/* ————— WhatsApp FAB ————— */
.whatsapp-fab {
  position: fixed;
  bottom: 80px; right: 16px;
  width: 52px; height: 52px;
  border-radius: var(--r-full);
  background: var(--wa-green);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(37,211,102,0.35);
  z-index: var(--z-fab);
  transition: transform var(--duration) var(--ease);
}

.whatsapp-fab:active { transform: scale(0.92); }

/* ————— Category Chip Strip ————— */
.category-strip {
  display: flex;
  gap: var(--s3);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: var(--s4) var(--s6);
  scroll-snap-type: x mandatory;
}
.category-strip::-webkit-scrollbar { display: none; }

.category-chip {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s2);
  padding: var(--s4) var(--s5);
  border-radius: var(--r-lg);
  background: var(--bg-card);
  border: 1px solid var(--gray-mid);
  text-decoration: none;
  color: var(--text);
  scroll-snap-align: start;
  transition: transform var(--duration) var(--ease),
              border-color var(--duration) var(--ease);
  min-width: 80px;
}

.category-chip:hover {
  transform: translateY(-2px);
  border-color: var(--text);
}

.category-chip:active { transform: scale(0.95); }

.category-chip-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

.category-chip-label {
  font-size: var(--fs-xs);
  font-weight: var(--fw-medium);
  color: var(--text-soft);
}

/* ————— Testimonial Card ————— */
.testimonial-card {
  background: var(--bg-card);
  border-radius: var(--r-xl);
  border: 1px solid var(--gray-mid);
  padding: var(--s7) var(--s6);
  position: relative;
}

.testimonial-card .stars {
  font-size: var(--fs-base);
  color: var(--text);
  margin-bottom: var(--s4);
  letter-spacing: 3px;
}

.testimonial-card blockquote {
  font-size: var(--fs-sm);
  color: var(--text-soft);
  font-style: italic;
  font-weight: var(--fw-normal);
  line-height: 1.7;
  margin-bottom: var(--s5);
}

.testimonial-card cite {
  font-style: normal;
  font-size: var(--fs-xs);
  font-weight: var(--fw-medium);
  color: var(--text-muted);
}

/* ————— CTA Box ————— */
.cta-box {
  margin: var(--s6);
  padding: var(--s10) var(--s7);
  border-radius: var(--r-2xl);
  background: var(--black);
  color: var(--white);
  text-align: center;
}

.cta-box h3 {
  color: var(--white);
  font-size: var(--fs-2xl);
  font-weight: var(--fw-medium);
  margin-bottom: var(--s3);
}

.cta-box p {
  color: rgba(255,255,255,0.6);
  margin-bottom: var(--s6);
}

/* ————— Footer ————— */
.footer {
  background: var(--white);
  border-top: 1px solid var(--gray-mid);
  padding: var(--s10) var(--s6) var(--s7);
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s7);
  margin-bottom: var(--s8);
}

.footer-brand {
  font-size: var(--fs-lg);
  font-weight: var(--fw-semi);
  margin-bottom: var(--s3);
  color: var(--text);
}

.footer-brand span {
  font-weight: var(--fw-normal);
  opacity: 0.5;
}

.footer-tagline {
  font-size: var(--fs-xs);
  color: var(--text-muted);
  margin-bottom: var(--s6);
}

.footer-col h5 {
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  color: var(--text);
  margin-bottom: var(--s4);
}

.footer-col a {
  display: block;
  font-size: var(--fs-sm);
  color: var(--text-muted);
  padding: var(--s1) 0;
  transition: color var(--duration) var(--ease);
}

.footer-col a:hover { color: var(--text); }

/* Simple footer links (for pages without columns) */
.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--s4);
  margin-bottom: var(--s6);
}

.footer-links a {
  font-size: var(--fs-sm);
  color: var(--text-muted);
  transition: color var(--duration) var(--ease);
}

.footer-links a:hover { color: var(--text); }

.footer-social {
  display: flex;
  justify-content: center;
  gap: var(--s4);
  margin-bottom: var(--s6);
}

.footer-social a {
  width: 40px; height: 40px;
  border-radius: var(--r-full);
  background: var(--black);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--fs-xs);
  font-weight: var(--fw-medium);
  color: var(--white);
  transition: opacity var(--duration) var(--ease);
}

.footer-social a:hover { opacity: 0.7; }

.footer-divider {
  height: 1px;
  background: var(--gray-mid);
  margin-bottom: var(--s5);
}

.footer-copy {
  font-size: var(--fs-xs);
  color: var(--text-muted);
  text-align: center;
}

/* ————— Page header (inner pages) ————— */
.page-header {
  padding: var(--s8) var(--s6) var(--s5);
  text-align: center;
}

.page-header h1 {
  font-size: var(--fs-2xl);
  margin-bottom: var(--s2);
}

.page-header p { color: var(--text-muted); }

/* ————— Breadcrumb ————— */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--s2);
  padding: var(--s3) var(--s6);
  font-size: var(--fs-xs);
  color: var(--text-muted);
}

.breadcrumb a { color: var(--text); font-weight: var(--fw-medium); }

/* ————— Icon sizing ————— */
.nav-icon-img  { width: 20px; height: 20px; }
.badge-icon    { width: 16px; height: 16px; }
.pill-icon     { width: 16px; height: 16px; vertical-align: middle; margin-right: 4px; }
.btn-icon      { width: 18px; height: 18px; vertical-align: middle; }
.detail-icon   { width: 18px; height: 18px; vertical-align: middle; margin-right: 6px; }
.inline-icon   { width: 16px; height: 16px; vertical-align: middle; margin-right: 4px; }
.whatsapp-fab img    { width: 24px; height: 24px; }
.nav-icon img        { width: 20px; height: 20px; }
.category-chip-icon img { width: 28px; height: 28px; }
.why-item-img        { width: 24px; height: 24px; }
.contact-opt .icon img { width: 28px; height: 28px; }
