/* =============================================
   MMJ CONSULTANCY SERVICES — LAYOUT
   ============================================= */

/* ---- Top Bar ---- */
.topbar {
  background: var(--ink-900);
  color: var(--ink-300);
  font-size: var(--text-xs);
  padding: var(--space-2) 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-4);
  flex-wrap: wrap;
}
.topbar-contacts {
  display: flex;
  gap: var(--space-5);
  flex-wrap: wrap;
}
.topbar-contacts a {
  color: var(--ink-300);
  display: flex;
  align-items: center;
  gap: var(--space-2);
  transition: color var(--ease-fast);
}
.topbar-contacts a:hover { color: white; }
.topbar-contacts i { color: var(--mmj-red); }
.topbar-reg {
  font-size: var(--text-xs);
  color: var(--ink-300);
  letter-spacing: 0.04em;
}

/* ---- Header ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 900;
  background: var(--white);
  border-bottom: 1px solid var(--ink-100);
  box-shadow: var(--shadow-xs);
  height: var(--header-h);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: var(--space-4);
}
/* Push nav to the center, lang + hamburger to the right */
.header-inner .site-nav { flex: 1; justify-content: flex-end; }
.brand-mark {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  cursor: pointer;
  text-decoration: none;
  flex-shrink: 0;
}
.brand-letters {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--mmj-red);
  line-height: 1;
  letter-spacing: -1px;
}
.brand-text-block {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.brand-name {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--mmj-navy);
  line-height: 1.1;
  letter-spacing: 0.02em;
}
.brand-tagline {
  font-size: var(--text-xs);
  color: var(--ink-300);
  font-weight: 400;
  letter-spacing: 0.05em;
}

/* ---- Nav ---- */
.site-nav {
  display: flex;
  align-items: center;
  gap: var(--space-1);
}
.nav-link {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--ink-500);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-md);
  transition: all var(--ease-fast);
  white-space: nowrap;
}
.nav-link:hover,
.nav-link.active {
  color: var(--mmj-blue);
  background: var(--surface-tint);
}
.nav-cta {
  background: var(--mmj-blue);
  color: white !important;
  padding: var(--space-2) var(--space-5);
  border-radius: var(--radius-md);
  font-weight: 600;
  margin-left: var(--space-2);
}
.nav-cta:hover {
  background: var(--mmj-navy) !important;
  color: white !important;
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: var(--space-2);
}
.nav-toggle span {
  display: block;
  width: 22px; height: 2px;
  background: var(--ink-700);
  border-radius: 2px;
  transition: all var(--ease-base);
}
.nav-toggle.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---- Main ---- */
#app-root { min-height: calc(100vh - var(--header-h) - 40px); }

/* ---- Footer ---- */
.site-footer {
  background: var(--surface-dark);
  color: var(--ink-300);
  padding-top: var(--space-16);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-12);
  padding-bottom: var(--space-12);
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.footer-brand p {
  color: var(--ink-300);
  font-size: var(--text-sm);
  line-height: 1.8;
  margin-top: var(--space-4);
  max-width: 320px;
}
.footer-brand-mark {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}
.footer-brand-mark .brand-letters {
  font-size: 2rem;
}
.footer-brand-mark .brand-name {
  color: white;
}
.footer-brand-mark .brand-tagline {
  color: var(--ink-300);
}

.footer-col h5 {
  color: white;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-5);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-col ul li {
  margin-bottom: var(--space-3);
}
.footer-col ul li a {
  color: var(--ink-300);
  font-size: var(--text-sm);
  transition: color var(--ease-fast);
}
.footer-col ul li a:hover { color: white; }

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}
.footer-contact-item i {
  color: var(--mmj-red);
  margin-top: 3px;
  width: 14px;
  flex-shrink: 0;
  font-size: var(--text-sm);
}
.footer-contact-item span {
  font-size: var(--text-sm);
  color: var(--ink-300);
  line-height: 1.5;
}
.footer-contact-item span a {
  color: var(--ink-300);
}
.footer-contact-item span a:hover { color: white; }

.footer-docs {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-top: var(--space-4);
}
.footer-doc-link {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--ink-300);
  font-size: var(--text-xs);
  padding: var(--space-2) var(--space-3);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-md);
  transition: all var(--ease-fast);
}
.footer-doc-link i { color: var(--mmj-red); }
.footer-doc-link:hover {
  color: white;
  border-color: rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.05);
}

.footer-bottom {
  padding: var(--space-5) 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-4);
}
.footer-bottom p {
  font-size: var(--text-xs);
  color: var(--ink-300);
  margin: 0;
}
.footer-bottom-links {
  display: flex;
  gap: var(--space-5);
}
.footer-bottom-links a {
  font-size: var(--text-xs);
  color: var(--ink-300);
}
.footer-bottom-links a:hover { color: white; }

/* ── SOCIAL MEDIA BUTTONS (footer) ── */
.footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin: var(--space-5) 0;
}
.social-btn {
  width: 36px; height: 36px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  color: white;
  text-decoration: none;
  transition: transform var(--ease-spring), opacity var(--ease-fast);
  opacity: 0.85;
}
.social-btn:hover { transform: translateY(-3px) scale(1.1); opacity: 1; color: white; }
.social-fb { background: #1877F2; }
.social-ig { background: linear-gradient(45deg,#f09433,#e6683c,#dc2743,#cc2366,#bc1888); }
.social-li { background: #0A66C2; }
.social-yt { background: #FF0000; }
.social-tw { background: #000000; }
.social-wa { background: #25D366; }

/* ── LOGO IMAGE (header + footer) ── */
.brand-logo-img {
  width:  52px;
  height: 52px;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
  /* Drop shadow so the 3D logo pops on white header bg */
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.18));
  transition: transform var(--ease-spring);
}
.brand-mark:hover .brand-logo-img {
  transform: scale(1.07) rotate(-2deg);
}

.footer-logo-img {
  width:  72px;
  height: 72px;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 10px rgba(0,0,0,0.35));
}

/* ── Adjust brand-mark gap now that image is taller ── */
.brand-mark {
  gap: var(--space-3);
  align-items: center;
}
.footer-brand-mark {
  align-items: center;
}

/* ── Mobile: shrink logo in header ── */
@media (max-width: 480px) {
  .brand-logo-img { width: 42px; height: 42px; }
  .brand-tagline  { display: none; }
}

/* ── Register nav button ── */
.nav-register {
  background: linear-gradient(135deg, #F0B90B 0%, #D4A017 100%);
  color: var(--mmj-navy) !important;
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: var(--text-xs);
  letter-spacing: 0.02em;
  box-shadow: 0 2px 8px rgba(212,160,23,0.35);
  transition: all var(--ease-base) !important;
}
.nav-register:hover {
  background: linear-gradient(135deg, #D4A017 0%, #B8860B 100%) !important;
  color: var(--mmj-navy) !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(212,160,23,0.45) !important;
  background-color: transparent !important;
}
