/*
 * Public landing site (views/site/*) + public auth pages
 * (views/auth/*) — blue corporate design, poultry layer farm theme.
 *
 * Complements assets/css/app.css (dashboard design tokens). The landing
 * palette is intentionally blue-first with an amber "egg yolk" accent,
 * while the authenticated dashboard keeps the default app palette.
 */

:root {
  --site-navy: #0A3D8F;
  --site-navy-dark: #082E6B;
  --site-primary: #1565C0;
  --site-primary-light: #4A90E2;
  --site-accent: #FFB300;
  --site-accent-soft: #FFF4D6;
  --site-bg: #F5F7FA;
  --site-surface: #FFFFFF;
  --site-text: #12233F;
  --site-text-muted: #5A6B85;
  --site-radius-lg: 22px;
  --site-radius-md: 14px;
  --site-radius-sm: 10px;
  --site-shadow-soft: 0 24px 60px rgba(10, 61, 143, 0.12);
  --site-shadow-card: 0 6px 20px rgba(10, 61, 143, 0.08);
  --site-gradient: linear-gradient(135deg, #082E6B 0%, #0A3D8F 45%, #1565C0 100%);
}

.site-body {
  background: var(--site-bg);
  color: var(--site-text);
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* ----------------------------------------------------------------
 * Navbar
 * ---------------------------------------------------------------- */
.site-navbar {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid #E7ECF3;
  box-shadow: 0 2px 18px rgba(10, 61, 143, 0.08);
  position: sticky;
  top: 0;
  z-index: 1030;
}
.site-navbar .navbar-brand {
  font-weight: 800;
  color: var(--site-navy);
  letter-spacing: -0.2px;
}
.brand-logo {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 6px 14px rgba(10, 61, 143, 0.3);
}
.brand-logo-sm {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  object-fit: cover;
}
.site-navbar .nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--site-text-muted);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.55rem 0.85rem;
  border-radius: 10px;
  transition: color 0.2s ease, background 0.2s ease;
}
.site-navbar .nav-link::after {
  content: "";
  position: absolute;
  left: 0.85rem;
  right: 0.85rem;
  bottom: 0.15rem;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--site-primary), var(--site-accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}
.site-navbar .nav-link:hover { color: var(--site-primary); }
.site-navbar .nav-link:hover::after,
.site-navbar .nav-link.active::after { transform: scaleX(1); }
.site-navbar .nav-link.active { color: var(--site-navy); font-weight: 700; }

@media (max-width: 991.98px) {
  .site-navbar .navbar-collapse {
    background: #fff;
    border: 1px solid #E7ECF3;
    border-radius: 16px;
    box-shadow: var(--site-shadow-card);
    padding: 0.75rem;
    margin-top: 0.5rem;
  }
}

/* ----------------------------------------------------------------
 * Buttons
 * ---------------------------------------------------------------- */
.site-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  border-radius: 12px;
  padding: 0.7rem 1.4rem;
  border: none;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.site-btn:hover { transform: translateY(-2px); }
.site-btn:focus { box-shadow: 0 0 0 0.25rem rgba(21, 101, 192, 0.2); }

.site-btn-primary {
  background: var(--site-gradient);
  color: #fff;
  box-shadow: 0 10px 24px rgba(10, 61, 143, 0.35);
}
.site-btn-primary:hover { color: #fff; box-shadow: 0 14px 30px rgba(10, 61, 143, 0.45); }

.site-btn-outline {
  background: transparent;
  color: var(--site-primary);
  border: 2px solid var(--site-primary);
}
.site-btn-outline:hover { background: #EEF4FD; color: var(--site-primary); }

.site-btn-accent {
  background: linear-gradient(135deg, #FFC83D, #FFB300);
  color: #5A4300;
  box-shadow: 0 10px 24px rgba(255, 179, 0, 0.35);
}
.site-btn-accent:hover { color: #5A4300; }

.site-btn-ghost {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.4);
}
.site-btn-ghost:hover { background: rgba(255, 255, 255, 0.2); color: #fff; }

/* ----------------------------------------------------------------
 * Hero
 * ---------------------------------------------------------------- */
.site-hero {
  background: var(--site-gradient);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.site-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.10) 2px, transparent 2px);
  background-size: 26px 26px;
  opacity: 0.5;
  pointer-events: none;
}
.site-hero .hero-logo {
  position: absolute;
  right: -46px;
  bottom: -46px;
  width: 340px;
  height: 340px;
  border-radius: 64px;
  opacity: 0.12;
  transform: rotate(-14deg);
  pointer-events: none;
}
.site-hero h1 {
  font-weight: 800;
  letter-spacing: -0.8px;
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  line-height: 1.15;
}
.site-hero .lead { color: rgba(255, 255, 255, 0.88); }
.site-hero .hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  padding: 0.35rem 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: #FFE9A8;
}

.site-hero-card {
  background: #fff;
  color: var(--site-text);
  border-radius: var(--site-radius-lg);
  box-shadow: var(--site-shadow-soft);
  padding: 1.25rem;
  transform: rotate(1.5deg);
}
.site-hero-card .mini-screen {
  background: #F1F5FB;
  border-radius: var(--site-radius-md);
  padding: 1rem 1.1rem;
}
.site-hero-card .mini-bar { height: 8px; border-radius: 999px; }
.site-hero-card .stat-pill {
  background: #EEF4FD;
  color: var(--site-primary);
  font-weight: 700;
  font-size: 0.9rem;
  border-radius: 10px;
  padding: 0.45rem 0.8rem;
}

/* ----------------------------------------------------------------
 * Stats strip
 * ---------------------------------------------------------------- */
.site-stats {
  background: var(--site-surface);
  border-top: 1px solid #E7ECF3;
  border-bottom: 1px solid #E7ECF3;
}
.site-stats .stat-number {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--site-navy);
}
.site-stats .stat-label { color: var(--site-text-muted); font-size: 0.9rem; font-weight: 600; }

/* ----------------------------------------------------------------
 * Section scaffolding
 * ---------------------------------------------------------------- */
.site-section { padding: 5rem 0; }
.site-section-muted { background: var(--site-surface); }
.site-kicker {
  display: inline-block;
  color: var(--site-primary);
  background: #E3EEFD;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 0.35rem 0.95rem;
  margin-bottom: 1rem;
}
.site-title { font-weight: 800; color: var(--site-navy); letter-spacing: -0.4px; }
.site-subtitle { color: var(--site-text-muted); max-width: 640px; }

/* ----------------------------------------------------------------
 * Feature cards
 * ---------------------------------------------------------------- */
.site-feature {
  background: var(--site-surface);
  border: 1px solid #E7ECF3;
  border-radius: var(--site-radius-lg);
  padding: 1.6rem;
  height: 100%;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.site-feature:hover {
  transform: translateY(-6px);
  box-shadow: var(--site-shadow-soft);
  border-color: #C9DBF5;
}
.site-feature .feature-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: linear-gradient(135deg, #E3EEFD, #C9DBF5);
  color: var(--site-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 1.1rem;
}
.site-feature h6 { font-weight: 800; color: var(--site-navy); }
.site-feature p { color: var(--site-text-muted); font-size: 0.92rem; margin: 0; }

/* ----------------------------------------------------------------
 * Steps (how it works)
 * ---------------------------------------------------------------- */
.site-step {
  position: relative;
  text-align: center;
  padding: 1.4rem;
}
.site-step .step-circle {
  width: 74px;
  height: 74px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: var(--site-gradient);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.9rem;
  box-shadow: 0 14px 28px rgba(10, 61, 143, 0.35);
  position: relative;
}
.site-step .step-circle .step-num {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--site-accent);
  color: #5A4300;
  font-size: 0.8rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #fff;
}
.site-step h6 { font-weight: 800; color: var(--site-navy); }
.site-step p { color: var(--site-text-muted); font-size: 0.9rem; margin: 0; }

/* ----------------------------------------------------------------
 * Pricing
 * ---------------------------------------------------------------- */
.site-price-card {
  background: var(--site-surface);
  border: 1px solid #E7ECF3;
  border-radius: var(--site-radius-lg);
  padding: 1.8rem;
  height: 100%;
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.site-price-card:hover { transform: translateY(-6px); box-shadow: var(--site-shadow-soft); }
.site-price-card.featured {
  border: 2px solid var(--site-primary);
  box-shadow: var(--site-shadow-soft);
}
.site-price-card .popular-tag {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--site-gradient);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  border-radius: 999px;
  padding: 0.35rem 1rem;
  white-space: nowrap;
  box-shadow: 0 8px 18px rgba(10, 61, 143, 0.4);
}
.site-price-card .price { font-size: 2.4rem; font-weight: 800; color: var(--site-navy); }
.site-price-card .price small { font-size: 1rem; color: var(--site-text-muted); font-weight: 600; }
.site-price-card ul { list-style: none; padding: 0; margin: 0; }
.site-price-card ul li {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
  font-size: 0.9rem;
  color: var(--site-text);
  padding: 0.35rem 0;
}
.site-price-card ul li .bi-check-circle-fill { color: var(--site-primary); }
.site-price-card ul li .bi-x-circle-fill { color: #C5CFDD; }

/* ----------------------------------------------------------------
 * CTA band
 * ---------------------------------------------------------------- */
.site-cta {
  background: var(--site-gradient);
  border-radius: var(--site-radius-lg);
  color: #fff;
  padding: 3rem;
  position: relative;
  overflow: hidden;
}
.site-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.12) 2px, transparent 2px);
  background-size: 24px 24px;
  opacity: 0.5;
}
.site-cta h3 { font-weight: 800; position: relative; }
.site-cta p { color: rgba(255, 255, 255, 0.85); position: relative; }

/* ----------------------------------------------------------------
 * Testimonial
 * ---------------------------------------------------------------- */
.site-testimonial {
  background: var(--site-surface);
  border: 1px solid #E7ECF3;
  border-radius: var(--site-radius-lg);
  padding: 1.8rem;
  height: 100%;
}
.site-testimonial .quote { font-size: 2rem; color: var(--site-accent); }
.site-testimonial .avatar {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--site-gradient);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800;
}
.site-testimonial h6 { font-weight: 800; color: var(--site-navy); margin: 0; }
.site-testimonial small { color: var(--site-text-muted); }

/* ----------------------------------------------------------------
 * Footer
 * ---------------------------------------------------------------- */
.site-footer {
  background: var(--site-navy-dark);
  color: rgba(255, 255, 255, 0.78);
  padding: 3.5rem 0 2rem;
}
.site-footer h6 {
  color: #fff;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-size: 0.8rem;
  margin-bottom: 1rem;
}
.site-footer a { color: rgba(255, 255, 255, 0.78); text-decoration: none; }
.site-footer a:hover { color: #FFE9A8; }
.site-footer .footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  font-size: 0.85rem;
}

/* ----------------------------------------------------------------
 * Cards (generic landing / auth)
 * ---------------------------------------------------------------- */
.site-card {
  background: var(--site-surface);
  border: 1px solid #E7ECF3;
  border-radius: var(--site-radius-lg);
  box-shadow: var(--site-shadow-card);
}
.site-form-control {
  border-radius: 12px;
  padding: 0.7rem 1rem;
  border: 1px solid #D6E0EE;
}
.site-form-control:focus {
  border-color: var(--site-primary);
  box-shadow: 0 0 0 0.22rem rgba(21, 101, 192, 0.15);
}

/* Auth pages: centered card on gradient */
.site-auth-wrap {
  min-height: calc(100vh - 160px);
  display: flex;
  align-items: center;
  padding: 3rem 0;
}
.site-auth-card {
  background: #fff;
  border-radius: var(--site-radius-lg);
  box-shadow: var(--site-shadow-soft);
  overflow: hidden;
}
.site-auth-card .auth-brand-panel {
  background: var(--site-gradient);
  color: #fff;
  padding: 3rem 2.2rem;
  min-height: 100vh;
  position: relative;
  overflow: hidden;
}
.site-auth-card .auth-brand-panel::after {
  content: "";
  position: absolute;
  right: -70px;
  bottom: -70px;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.02) 70%);
}
.site-auth-card .auth-step {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  padding: 0.3rem 0.9rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: #FFE9A8;
}
.auth-step-logo {
  width: 18px;
  height: 18px;
  border-radius: 5px;
  object-fit: cover;
  display: inline-block;
  vertical-align: -3px;
}
.icon-sm {
  width: 18px;
  height: 18px;
  border-radius: 5px;
  object-fit: cover;
  display: inline-block;
  vertical-align: -3px;
}
.icon-md {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  object-fit: cover;
}
.site-auth-card .auth-mobile-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}
.site-auth-card .auth-mobile-logo img {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  object-fit: cover;
  box-shadow: 0 10px 24px rgba(10, 61, 143, 0.25);
}
.site-auth-card .auth-brand-panel .auth-logo-lg {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  object-fit: cover;
  box-shadow: 0 10px 24px rgba(255, 255, 255, 0.25);
}

.site-auth-wrap {
  min-height: calc(100vh - 160px);
  display: flex;
  align-items: center;
  padding: 3rem 0;
}
@media (max-width: 575.98px) {
  .site-auth-wrap { min-height: auto; padding: 1.25rem 0; }
  .site-auth-card { border-radius: var(--site-radius-md); }
  .site-auth-card .auth-brand-panel { padding: 1.5rem 1.25rem; }
}

/* Approval status cards */
.site-status-ok {
  width: 84px; height: 84px; margin: 0 auto;
  border-radius: 50%;
  background: #E8F6EC;
  color: #1E8E3E;
  display: flex; align-items: center; justify-content: center;
  font-size: 2.4rem;
}
.site-status-wait {
  width: 84px; height: 84px; margin: 0 auto;
  border-radius: 50%;
  background: var(--site-accent-soft);
  color: #B67A00;
  display: flex; align-items: center; justify-content: center;
  font-size: 2.4rem;
}
.site-status-bad {
  width: 84px; height: 84px; margin: 0 auto;
  border-radius: 50%;
  background: #FDEBEB;
  color: #C62828;
  display: flex; align-items: center; justify-content: center;
  font-size: 2.4rem;
}

.site-invoice-row {
  display: flex;
  justify-content: space-between;
  padding: 0.45rem 0;
  border-bottom: 1px dashed #E7ECF3;
  font-size: 0.95rem;
}
.site-invoice-row:last-child { border-bottom: none; }

/* Contact */
.site-contact-icon {
  width: 48px; height: 48px; border-radius: 14px;
  background: #E3EEFD; color: var(--site-primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
}

@media (max-width: 767.98px) {
  .site-section { padding: 3rem 0; }
  .site-hero { text-align: center; }
  .site-hero .hero-logo { display: none; }
  .site-cta { padding: 2rem; }
}
/* WhatsApp floating action button (public landing site) */
.wa-fab {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 1080;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.wa-fab:hover {
  color: #fff;
  transform: scale(1.08);
  box-shadow: 0 12px 28px rgba(37, 211, 102, 0.55);
}
.wa-fab i { line-height: 1; }
@keyframes wa-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.55); }
  70%  { box-shadow: 0 0 0 16px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}
.wa-fab { animation: wa-pulse 2.2s infinite; }
