/* ============================================================
   CiCC Theme 4.0 — Footer (Unified across ecosystem)
   Class naming matches lean.vn / leansigmavn.com
   ============================================================ */

@layer components {
  .site-footer {
    background: var(--gray-900);
    color: rgba(255,255,255,0.7);
    padding-top: 60px;
  }

  /* ── Brand Row (3 ecosystem logos) ── */
  .footer-brand-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: var(--space-10);
    padding-bottom: var(--space-8);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    flex-wrap: wrap;
  }

  .footer-brand-item {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    transition: opacity var(--transition-fast);
  }
  .footer-brand-item:hover { opacity: 0.8; }

  .brand-logo-text {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.5px;
    line-height: 1;
  }

  .brand-cicc {
    color: #ffffff;
  }

  .brand-lss {
    background: linear-gradient(135deg, #16a34a, #4ade80);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }

  .brand-lean {
    color: #60a5fa;
  }

  .brand-dot {
    color: #f97316;
  }

  .brand-sep {
    color: rgba(255,255,255,0.2);
    font-size: 18px;
    font-weight: 300;
  }

  /* ── Tags ── */
  .tag {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: var(--radius-full);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.03em;
    white-space: nowrap;
  }

  .tag-blue {
    background: rgba(59,130,246,0.15);
    color: #60a5fa;
  }

  .tag-green {
    background: rgba(22,163,74,0.15);
    color: #4ade80;
  }

  .tag-orange {
    background: rgba(249,115,22,0.15);
    color: #fb923c;
  }

  .tag-purple {
    background: rgba(124,58,237,0.15);
    color: #a78bfa;
  }

  /* ── Grid ── */
  .footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }

  .footer-col-about {
    max-width: 360px;
  }

  .footer-desc {
    font-size: 13px;
    line-height: 1.7;
    color: rgba(255,255,255,0.5);
    margin-bottom: var(--space-5);
  }

  .footer-social {
    display: flex;
    gap: 8px;
  }

  .footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: var(--radius-md);
    background: rgba(255,255,255,0.06);
    color: rgba(255,255,255,0.4);
    transition: all var(--transition-fast);
    text-decoration: none;
  }

  .footer-social a:hover {
    background: var(--cicc-blue);
    color: #ffffff;
  }

  .footer-social svg {
    width: 16px;
    height: 16px;
  }

  .footer-col h4 {
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: var(--space-4);
  }

  .footer-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
    list-style: none;
    margin: 0;
    padding: 0;
  }

  .footer-links a {
    font-size: 13px;
    color: rgba(255,255,255,0.5);
    text-decoration: none;
    transition: color var(--transition-fast);
  }

  .footer-links a:hover { color: #ffffff; }

  /* ── Contact List ── */
  .footer-contact-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
  }

  .footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
    color: rgba(255,255,255,0.5);
    line-height: 1.5;
  }

  .footer-contact-item svg {
    flex-shrink: 0;
    margin-top: 2px;
    color: rgba(255,255,255,0.3);
  }

  .footer-contact-item a {
    color: rgba(255,255,255,0.5);
    text-decoration: none;
    transition: color var(--transition-fast);
  }
  .footer-contact-item a:hover { color: #ffffff; }

  /* ── Newsletter ── */
  .footer-newsletter {
    margin-top: var(--space-6);
    padding-top: var(--space-4);
    border-top: 1px solid rgba(255,255,255,0.08);
  }

  .footer-newsletter p {
    font-size: 12px;
    color: rgba(255,255,255,0.5);
    margin-bottom: var(--space-3);
  }

  .footer-newsletter-form {
    display: flex;
    gap: 8px;
  }

  .footer-newsletter-form input {
    flex: 1;
    padding: 8px 12px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255,255,255,0.15);
    background: rgba(255,255,255,0.06);
    color: #ffffff;
    font-size: 12px;
    outline: none;
    font-family: inherit;
    min-width: 0;
  }

  .footer-newsletter-form input:focus {
    border-color: var(--cicc-blue);
  }

  .footer-newsletter-form input::placeholder {
    color: rgba(255,255,255,0.3);
  }

  .footer-newsletter-form button {
    padding: 8px 14px;
    border-radius: var(--radius-md);
    background: var(--cicc-blue);
    color: #ffffff;
    border: none;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: background var(--transition-fast);
    white-space: nowrap;
  }

  .footer-newsletter-form button:hover {
    background: var(--cicc-blue-600);
  }

  /* ── Bottom ── */
  .footer-bottom {
    padding: 20px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    color: rgba(255,255,255,0.4);
    gap: 16px;
  }

  .footer-bottom a {
    color: rgba(255,255,255,0.4);
    text-decoration: none;
    transition: color var(--transition-fast);
  }

  .footer-bottom a:hover { color: #ffffff; }

  .footer-bottom-links {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
  }

  /* ===========================
     RESPONSIVE
     =========================== */
  @media (max-width: 1024px) {
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-col-about { max-width: none; }
  }

  @media (max-width: 768px) {
    .footer-grid { grid-template-columns: 1fr; gap: 32px; }
    .footer-brand-row { gap: 10px; }
    .brand-logo-text { font-size: 22px; }
    .footer-bottom { flex-direction: column; text-align: center; }
    .footer-bottom-links { justify-content: center; }
  }

  @media (max-width: 480px) {
    .brand-logo-text { font-size: 18px; }
    .brand-sep { font-size: 14px; }
  }

  /* ===========================
     MOBILE BOTTOM NAV
     =========================== */
  .mobile-bottom-nav {
    font-family: var(--font-body);
    box-shadow: 0 -4px 20px rgba(0,0,0,0.3);
  }

  .mobile-bottom-nav__item {
    position: relative;
  }

  .mobile-bottom-nav__item svg {
    display: block;
  }

  .mobile-bottom-nav__item span {
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.02em;
  }

  /* Safe area padding for the page so content isn't hidden behind nav */
  @media (max-width: 768px) {
    .site-main {
      padding-bottom: 64px;
    }
  }
}
