:root {
  /* FIXED LIGHT THEME */
  --bg: #ffffff;
  --bg-2: #f7f8fa;
  --text: #0b0d10;
  --muted: #4b5563;
  --line: rgba(0,0,0,0.08);
  --accent: #18baa8;        /* poți schimba nuanța dacă vrei */
  --cta-bg: #0b0d10;
  --cta-fg: #ffffff;

  --radius: 18px;
  --shadow: 0 6px 24px rgba(0,0,0,0.08);
}

p{
  margin: 0;
  padding: 0;
}

/* Footer wrapper */
.mm-footer {
  position: relative;
  isolation: isolate;
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, "Noto Sans";
  padding: 56px 0 28px;
  /* overflow: clip; REMOVED per instructions */
  overflow: visible; /* NEW: Prevent clipping of content */
}

.mm-footer .wrap {
  width: min(1280px, 95vw);
  margin: 0 auto;
  position: relative;
  padding: 0 16px;
}

/* Subtle ambient background (very light on white) */
.mm-footer .canvas {
  position: absolute;
  inset: 0;
  overflow: hidden; /* NEW: Clip background effects here instead of on footer */
  pointer-events: none;
  z-index: 0;
}

.mm-footer .canvas .halo {
  position: absolute;
  inset: -20% -10% auto -10%;
  height: 360px;
  background:
    radial-gradient(60% 60% at 50% 30%, rgba(24,186,168,0.10), transparent 60%),
    radial-gradient(40% 40% at 20% 60%, rgba(24,186,168,0.06), transparent 70%);
  filter: blur(14px);
  pointer-events: none;
  z-index: 0;
}

.mm-footer .canvas .grain {
  position: absolute;
  inset: 0;
  opacity: .03; /* foarte discret pe alb */
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix type='saturate' values='0'/><feComponentTransfer><feFuncA type='table' tableValues='0 0.6'/></feComponentTransfer></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  background-size: 220px 220px;
  pointer-events: none;
  z-index: 0;
}

/* Brand row */
.mm-brand {
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding-bottom: 20px;
}

.mm-logo img {
  display: block;
  height: auto;
  max-width: 100%;
  filter: drop-shadow(0 8px 18px rgba(0,0,0,0.08));
}

.tagline {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
  text-align: center;
}

/* Grid */
.mm-grid {
  display: flex;
  gap: 3rem;
  justify-content: center;
  flex-wrap: wrap;
}

.mm-col h4 {
  margin: 0 0 10px 0;
  font-family: Fraunces, Georgia, serif;
  font-weight: 700;
  letter-spacing: .2px;
  font-size: 0.95rem;
  white-space: nowrap;
}

/* Links */
.mm-links{
  display: flex;
  justify-content: center;
  font-size: 16px;
  flex-wrap: wrap;
}

.mm-brands i{
  font-size: 1.7rem;
  border-radius: 10px;
  /* background-color: #4b556352; */
  padding: 10px;
  cursor: pointer;
  color: var(--muted);
  transition: 200ms ease-in-out;
}

.mm-brands i:hover{
  transform: scale(1.05);
}

/* Fargede SoMe-ikoner */
.mm-brands a:nth-child(1) i {
  color: #1877f2; /* Facebook blå */
}

.mm-brands a:nth-child(2) i {
  color: #e4405f; /* Instagram rosa */
}

.mm-brands a:nth-child(3) i {
  color: #0a66c2; /* LinkedIn blå */
}

.mm-brands a:nth-child(4) i {
  color: #ff0000; /* YouTube rød */
}

/* Social media section */
.mm-social-section {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  margin-top: 8px;
}

.social-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin: 0;
}

.mm-brands {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mm-links ul{
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
}

.mm-links a {
  color: var(--muted);
  text-decoration: none;
  opacity: 0.92;
  transition: opacity .2s ease, transform .2s ease;
}
.mm-links a:hover { opacity: 1; transform: translateY(-1px); }

.mm-links .cta {
  display: inline-block;
  width: fit-content;
  margin: 4px 0 2px;
  background: var(--cta-bg);
  color: var(--cta-fg);
  padding: 8px 12px;
  border-radius: 999px;
  font-weight: 600;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}

.addr a { text-decoration: none; }

/* Partner badges */
.badge-list {
  grid-template-columns: repeat(3, minmax(100px, 1fr));
  align-items: center;
}

.badge-list li {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  background: linear-gradient(180deg, rgba(0,0,0,0.02), transparent);
  border: 1px solid var(--line);
  padding: 10px 12px;
  border-radius: var(--radius);
}

.badge-list img {
  max-width: 100%;
  height: auto;
  display: block;
  opacity: .95;
}

/* Divider */
.mm-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line), transparent);
  margin: 22px 0 16px;
  position: relative;
  z-index: 1;
}

/* Bottom row */
.mm-bottom {
 display: flex;
 justify-content: space-between;
 font-size: 12px;
 flex-wrap: wrap;
}

.mm-bottom .left,
.mm-bottom .right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.mm-logos {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;              /* litt luft mellom logoene */
  flex-wrap: nowrap;        /* hold dem på én linje på desktop */
}

.mm-logos img {
  display: block;
  height: auto;
  width: auto;              /* ingen fast bredde */
  max-height: 48px;         /* gjør logoene små nok til å få plass på én linje */
  object-fit: contain;
}

/* Divider under logoer */
.mm-logos-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line), transparent);
  margin: 16px 0 16px;
  position: relative;
  z-index: 1;
}

/* Mobil breakpoint for logo-rad */
@media (max-width: 640px) {
  .mm-logos {
    flex-wrap: wrap;        /* tillat wrapping på veldig små skjermer */
    row-gap: 0.75rem;
  }

  .mm-logos img {
    max-height: 36px;       /* litt mindre på mobil */
  }
  
  .mm-logos-divider {
    margin: 12px 0 12px;
  }
}



.mm-bottom a {
  color: var(--muted);
  text-decoration: none;
}
.mm-bottom a:hover { color: var(--text); }

.dot { opacity: .5; }

.mm-contact{
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-evenly;
  font-size: 14px;
  gap: 10px;
  flex-wrap: wrap;
}

.mm-contact p{
  font-size: 14px;
}

.contact-title{
  font-weight: 800;
  color: var(--primary);
}

.mm-contact a {
  color: var(--accent);
  text-decoration: none;
  cursor: pointer;
  transition: opacity .2s ease;
}

.mm-contact a:hover {
  opacity: 0.8;
  text-decoration: underline;
}

.mm-brands a {
  cursor: pointer;
  transition: opacity .2s ease;
}

.mm-brands a:hover i {
  opacity: 0.8;
}



@media (max-width: 520px) {
  .badge-list { grid-template-columns: repeat(2, 1fr); }
  .mm-footer { padding: 44px 0 24px; }
  .mm-social-section {
    flex-direction: column;
    gap: 10px;
  }
}

.horizontal-flex{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)); /* NEW: minmax(0, 1fr) prevents overflow */
  gap: 2rem;
  align-items: flex-start;
}

/* Responsiveness */
/* CHANGED: Breakpoint increased from 820px to 1024px to switch to stack earlier */
@media (max-width: 1024px) {
  .horizontal-flex{
    display: flex;
    flex-direction: column-reverse;
    gap: 1.5rem;
    align-items: center; /* NEW: Center content horizontally in stacked view */
  }
  
  .mm-brand {
    width: 100%;
    max-width: 100%;
  }
  
  .tagline {
    white-space: normal; /* NEW: Ensure text wraps */
    padding: 0 1rem;     /* NEW: Prevent text touching edges */
  }
  
  .mm-grid {
    flex-direction: column;
  }
}

/* Mobile viewport meta tag required: <meta name="viewport" content="width=device-width, initial-scale=1.0"> */

/* Extra small devices (under 360px) */
@media (max-width: 359px) {
  .mm-footer {
    padding: 32px 0 16px;
  }
  
  .mm-footer .wrap {
    padding: 0 12px;
  }
  
  .mm-grid {
    gap: 2rem;
  }
  
  .mm-col h4 {
    font-size: 0.85rem;
  }
  
  .mm-logos img {
    width: min(5rem, 100%);
  }
  
  
  .mm-brands i {
    font-size: 1.4rem;
    padding: 8px;
  }
}

/* Small mobile (360px - 520px) - already has media query at line 267 */
/* Enhanced small mobile */
@media (max-width: 520px) {
  .mm-footer {
    padding: 40px 0 20px;
  }
  
  .mm-footer .wrap {
    padding: 0 12px;
  }
  
  .mm-grid {
    gap: 1.5rem;
  }
  
  .mm-col h4 {
    font-size: 0.9rem;
    white-space: normal;
  }
  
  .mm-logos img {
    width: min(6rem, 100%);
  }
  
  
  .mm-brands i {
    font-size: 1.5rem;
    padding: 8px;
  }
  
  .mm-bottom {
    justify-content: center;
    flex-direction: column;
    gap: 8px;
  }
  
  .mm-bottom .left,
  .mm-bottom .right {
    justify-content: center;
  }
}

/* Tablet (521px - 820px) */
@media (min-width: 521px) and (max-width: 820px) {
  .mm-footer {
    padding: 48px 0 24px;
  }
  
  .mm-footer .wrap {
    padding: 0 12px;
  }
  
  .mm-grid {
    gap: 1rem;
  }
  
  .mm-logos img {
    width: min(7rem, 100%);
  }
  
  
  .mm-bottom {
    justify-content: center;
    gap: 12px;
  }
  
  .mm-bottom .left,
  .mm-bottom .right {
    justify-content: center;
  }
}

/* iOS safe area support */
@supports (-webkit-touch-callout: none) {
  .mm-footer {
    padding-bottom: max(28px, env(safe-area-inset-bottom));
  }
  
  .mm-brands i {
    -webkit-tap-highlight-color: transparent;
  }
}

/* Landscape orientation */
@media (max-height: 500px) and (orientation: landscape) {
  .mm-footer {
    padding: 20px 12px 12px;
  }
  
  .mm-brands i {
    font-size: 1.3rem;
    padding: 6px;
  }
  
  .mm-social-section {
    gap: 8px;
  }
}
