/* ===================================================
   MUGNEFORSE MARKETING – GEOMETRIC STRUCTURED CSS
   =================================================== */
/* RESET & NORMALIZE */
html {
  box-sizing: border-box;
  font-size: 100%;
  scroll-behavior: smooth;
}
*, *:before, *:after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}
body {
  min-height: 100vh;
  font-family: 'Roboto', Arial, sans-serif;
  background: #fff;
  color: #172144;
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
img, svg {
  max-width: 100%;
  display: block;
  height: auto;
}
a {
  color: #24305E;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #F76C6C;
  outline: none;
}
ul, ol {
  padding-left: 1.7em;
}
li {
  margin-bottom: 0.5em;
}
button {
  font-family: inherit;
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.18s, background-color 0.18s, border-color 0.18s, box-shadow 0.2s;
}

/* =========== TYPOGRAPHY & BRANDING =========== */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
  color: #24305E;
  text-rendering: geometricPrecision;
  letter-spacing: 0.01em;
}
h1 {
  font-size: 2.6rem;
  margin-bottom: 16px;
  line-height: 1.15;
}
h2 {
  font-size: 2rem;
  margin-bottom: 12px;
  line-height: 1.18;
}
h3 {
  font-size: 1.35rem;
  margin-bottom: 8px;
}
h4, h5, h6 {
  font-size: 1.1rem;
}
p, .text-section {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  color: #344165;
  margin-bottom: 1.2em;
}
strong {
  font-weight: bold;
  color: #24305E;
}
.small {
  font-size: 0.92em;
  color: #6e7b9a;
}

/* =========== BRAND COLORS =========== */
:root {
  --primary: #24305E;
  --secondary: #F76C6C;
  --accent: #F8E9A1;
  --neutral-bg: #f5f7fa;
  --gray-bg: #ecedf3;
  --border: #e4e6ee;
  --shadow: 0 4px 16px 0 rgba(36,48,94,0.07); 
  --radius-small: 8px;
  --radius-medium: 16px;
}

/* =========== GENERAL LAYOUT =========== */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}

/* ===== FLEXBOX STRUCTURES ===== */
.features-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 20px;
  justify-content: space-between;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  border-radius: var(--radius-medium);
  margin-bottom: 20px;
  position: relative;
  min-width: 270px;
  flex: 1 1 270px;
  transition: box-shadow 0.15s, transform 0.16s;
}
.card:hover {
  box-shadow: 0 6px 26px 0 rgba(36,48,94,0.13);
  transform: translateY(-6px) scale(1.018);
}
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  background: #f6f7fb;
  border-left: 5px solid var(--accent);
  border-radius: var(--radius-medium);
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px 0 rgba(36,48,94,0.09);
  color: #24305E;
  max-width: 540px;
  transition: box-shadow 0.18s;
}
.testimonial-card p {
  font-size: 1.1rem;
  color: #24305E;
  margin-bottom: 0.7em;
}
.testimonial-card span {
  font-size: 0.95em;
  color: #7b857a;
  font-style: italic;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  box-shadow: var(--shadow);
  background: #fff;
  padding: 22px 22px 30px 22px;
  border-radius: var(--radius-medium);
  gap: 15px;
  border: 1.5px solid var(--border);
  min-width: 250px;
  flex: 1 1 275px;
  transition: border-color 0.18s, transform 0.18s, box-shadow 0.18s;
}
.feature-item:hover {
  border-color: var(--secondary);
  box-shadow: 0 6px 26px 0 rgba(247,108,108,0.13);
  transform: translateY(-5px) scale(1.013);
}
.feature-item img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent);
  object-fit: contain;
  margin-bottom: 5px;
}

/* =========== HERO SECTION =========== */
.hero-section {
  background: var(--neutral-bg);
  border-bottom: 10px solid var(--accent);
  padding: 64px 0 36px 0;
  margin-bottom: 28px;
}
.hero-section .content-wrapper {
  align-items: flex-start;
  max-width: 640px;
  gap: 20px;
}
.hero-section h1 {
  font-size: 2.7rem;
  margin-bottom: 10px;
  line-height: 1.1;
}
.hero-section p {
  font-size: 1.18rem;
  margin-bottom: 20px;
  color: #344165;
}

/* =========== BUTTONS =========== */
.button-primary,
.button-secondary {
  display: inline-block;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.09rem;
  font-weight: 600;
  padding: 13px 34px;
  border-radius: 48px;
  border: none;
  box-shadow: 0 3px 13px 0 rgba(36,48,94,0.09);
  background: var(--primary);
  color: #fff;
  letter-spacing: 0.04em;
  transition: background 0.17s, color 0.17s, box-shadow 0.18s, transform 0.17s;
  cursor: pointer;
  margin-top: 10px;
}
.button-primary:hover, .button-primary:focus {
  background: var(--secondary);
  color: #172144;
  box-shadow: 0 6px 26px 0 rgba(247,108,108,0.13);
  transform: translateY(-2px) scale(1.03);
}
.button-secondary {
  background: var(--accent);
  color: var(--primary);
  border: 2px solid var(--primary);
}
.button-secondary:hover, .button-secondary:focus {
  background: var(--primary);
  color: #fff;
}

/* =========== HEADER NAVIGATION =========== */
header {
  background: #fff;
  border-bottom: 2px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
  gap: 18px;
}
.logo {
  margin-right: 24px;
}
nav {
  display: flex;
  align-items: center;
  gap: 20px;
}
nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  color: var(--primary);
  font-weight: 500;
  position: relative;
  padding: 5px 7px;
  border-radius: 5px;
  transition: color 0.16s, background 0.18s;
}
nav a:hover, nav a:focus {
  color: var(--secondary);
  background: var(--accent);
  outline: none;
}
header .button-primary {
  margin: 0 0 0 12px;
  font-size: 1rem;
  padding: 9px 32px;
}
.mobile-menu-toggle {
  display: none;
  margin-left: 12px;
  font-size: 2rem;
  color: var(--primary);
  background: none;
  border: none;
  cursor: pointer;
  padding: 7px 14px;
  border-radius: 7px;
  transition: background 0.17s;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: var(--accent);
  color: var(--secondary);
}

/* =========== MOBILE MENU =========== */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  min-height: 100vh;
  width: 100vw;
  background: rgba(36,48,94,.97);
  box-shadow: 0 10px 70px rgba(36,48,94,0.23);
  z-index: 500;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0;
  transform: translateX(-105vw);
  transition: transform 0.32s cubic-bezier(.43,.11,.39,.98);
}
.mobile-menu.active {
  transform: translateX(0);
}
.mobile-menu-close {
  font-size: 2.2rem;
  color: #fff;
  background: none;
  position: absolute;
  top: 16px;
  right: 24px;
  border: none;
  z-index: 800;
  padding: 3px 14px;
  border-radius: 7px;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: var(--secondary);
  color: var(--primary);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin-top: 80px;
  padding: 0 38px;
  width: 100vw;
}
.mobile-nav a {
  color: #fff;
  font-size: 1.38rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  padding: 15px 0;
  border-bottom: 1px solid rgba(255,255,255,0.13);
  transition: color 0.18s, background 0.16s;
}
.mobile-nav a:last-child {
  border-bottom: none;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: var(--accent);
  background: rgba(248,233,161,.06);
}

@media (max-width: 991px) {
  header .container {
    gap: 10px;
    padding: 0 5px;
  }
  nav {
    gap: 15px;
  }
}
@media (max-width: 830px) {
  nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: inline-block;
  }
}

/* =========== GENERAL SECTIONS, FOOTER =========== */
section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
footer {
  background: var(--primary);
  color: #fff;
  padding: 34px 0 14px 0;
}
footer .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
}
footer nav {
  display: flex;
  gap: 20px;
}
footer nav a {
  color: #fff;
  font-size: 0.98rem;
  font-weight: 400;
  border-radius: 6px;
  transition: color 0.14s, background 0.14s;
  padding: 4px 8px;
}
footer nav a:hover, footer nav a:focus {
  color: var(--accent);
}
footer .text-section {
  font-size: 0.97em;
  color: #F8E9A1;
}

@media (max-width: 700px) {
  footer .container {
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
  }
}

/* =========== ABOUT, BLOG, TEAM, PROJECTS =========== */
.team-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.team-list .text-section, .blog-list .text-section, .project-teaser {
  background: #fff;
  border: 1.5px solid var(--border);
  box-shadow: 0 3px 20px 0 rgba(36,48,94,0.08);
  border-radius: var(--radius-small);
  padding: 18px 20px 16px 20px;
  margin-bottom: 20px;
  min-width: 250px;
  flex: 1 1 270px;
}
.project-teaser h3 {
  color: var(--secondary);
  font-weight: 700;
}
.project-teaser p {
  font-size: 1rem;
  color: #344165;
  margin-bottom: 0;
}
.blog-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 18px;
}

/* =========== CTAs & UTILITY PANELS =========== */
.text-section {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.text-section ul {
  margin-bottom: 0;
}
.text-section a.button-primary {
  align-self: flex-start;
  margin-top: 10px;
}

/* =========== CONTACT INFO =========== */
.text-section ul li img {
  vertical-align: middle;
  width: 21px;
  height: 21px;
  margin-right: 13px;
  margin-bottom: -4px;
}

/* =========== SPACING UTILITY =========== */
.mb-0 { margin-bottom: 0!important; }
.mb-2 { margin-bottom: 2px!important; }
.mb-8 { margin-bottom: 8px!important; }
.mb-16 { margin-bottom: 16px!important; }
.mb-24 { margin-bottom: 24px!important; }
.mt-16 { margin-top: 16px!important; }

/* =========== GEOMETRIC/STRUCTURED VISUALS =========== */
.feature-item,
.testimonial-card,
.card,
.team-list .text-section,
.project-teaser,
.blog-list .text-section {
  border-radius: 0 24px 0 24px;
  /* Angular corners for geometric feel */
  border-width: 1.5px;
}
/* Subtle thin border accent on left (like geometric blocks) */
.feature-item { border-left: 6px solid var(--accent); }
.testimonial-card { border-left: 6px solid var(--accent); }

/* =========== COOKIE BANNER & CONSENT MODAL =========== */
.cookie-banner {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100vw;
  z-index: 2021;
  background: #f6f7fb;
  border-top: 3px solid var(--accent);
  box-shadow: 0 -4px 22px 0 rgba(36,48,94,0.10);
  padding: 22px 20px 18px 20px;
  display: flex;
  align-items: center;
  gap: 22px;
  transition: transform 0.34s cubic-bezier(.68,-0.55,.27,1.55);
}
.cookie-banner.hide {
  transform: translateY(120%);
  pointer-events: none;
}
.cookie-banner p {
  flex: 1 1 auto;
  font-size: 1rem;
  color: #24305E;
}
.cookie-banner .button-primary,
.cookie-banner .button-secondary {
  margin: 0 7px 0 0;
  padding: 8px 24px;
  font-size: 0.98rem;
  border-radius: 8px;
}
.cookie-banner .button-settings {
  background: none;
  color: var(--secondary);
  font-weight: 700;
  border-radius: 7px;
  padding: 7px 17px;
  margin-left: 7px;
  border: 2px solid transparent;
  transition: border-color 0.17s, background 0.16s;
}
.cookie-banner .button-settings:focus,
.cookie-banner .button-settings:hover {
  border-color: var(--secondary);
  background: var(--accent);
  color: var(--primary);
}

/* Consent Modal Popup */
.cookie-modal-backdrop {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(36,48,94,0.22);
  z-index: 2025;
  align-items: center;
  justify-content: center;
}
.cookie-modal-backdrop.active { display: flex; }
.cookie-modal {
  background: #fff;
  border-radius: 0 24px 0 24px;
  box-shadow: 0 8px 40px 0 rgba(36,48,94,0.18);
  padding: 34px 28px 24px 28px;
  min-width: 320px;
  max-width: 92vw;
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
  animation: popIn 0.34s cubic-bezier(.71,1.81,.64,1);
}
@keyframes popIn {
  0% { transform: scale(0.77) translateY(120px); opacity: 0.05; }
  90% { transform: scale(1.02) translateY(-6px); opacity: 1; }
  100% { transform: scale(1) translateY(0); opacity: 1; }
}
.cookie-modal h3 {
  margin-bottom: 0.7em;
}
.cookie-modal .cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.cookie-modal .category {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #f6f7fb;
  border-radius: 0 18px 0 18px;
  padding: 11px 16px 11px 19px;
}
.cookie-modal .category label {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  font-size: 1rem;
}
.cookie-modal .category input[type=checkbox] {
  accent-color: var(--secondary);
  width: 21px;
  height: 21px;
  margin: 0 0 0 2px;
}
.cookie-modal .cookie-essential {
  opacity: 0.54;
  pointer-events: none;
}
.cookie-modal .modal-actions {
  display: flex;
  gap: 14px;
  justify-content: flex-end;
  margin-top: 16px;
}
.cookie-modal .button-primary,
.cookie-modal .button-secondary {
  padding: 8px 25px;
  font-size: 0.99rem;
  border-radius: 8px;
}
.cookie-modal-close {
  position: absolute;
  top: 12px;
  right: 13px;
  background: none;
  color: var(--primary);
  font-size: 1.65rem;
  border: none;
  border-radius: 9px;
  width: 37px; height: 37px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cookie-modal-close:focus, .cookie-modal-close:hover {
  background: var(--accent);
  color: var(--secondary);
}

/* =========== RESPONSIVE DESIGN =========== */
@media (max-width: 1040px) {
  .features-grid, .card-container, .content-grid, .team-list, .blog-list {
    gap: 16px;
  }
}
@media (max-width: 768px) {
  html { font-size: 98%; }
  .container {
    padding: 0 6vw;
  }
  /* Flex containers switch to column on mobile */
  .features-grid, .card-container, .content-grid, .team-list, .blog-list {
    flex-direction: column;
    gap: 18px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 18px;
  }
  .testimonial-card,
  .feature-item,
  .team-list .text-section,
  .project-teaser,
  .blog-list .text-section {
    max-width: 100%;
    min-width: 0;
    padding: 16px 12px;
  }
  .hero-section {
    padding: 40px 0 24px 0;
  }
  .hero-section h1 {
    font-size: 2.0rem;
  }
}
@media (max-width: 520px) {
  .container {
    padding: 0 2vw;
  }
  h1 { font-size: 1.45rem; }
  h2 { font-size: 1.20rem; }
  .hero-section {
    margin-bottom: 14px;
    padding: 22px 0 8px 0;
  }
  section { padding: 20px 4px; }
  .card, .feature-item, .testimonial-card {
    padding: 12px 9px;
  }
}

/* =========== MICRO-INTERACTIONS & EFFECTS =========== */
.button-primary, .button-secondary, .button-settings {
  transition: background 0.16s, color 0.16s, transform 0.14s;
}
.button-primary:active, .button-secondary:active {
  transform: scale(0.97);
}
nav a:after {
  content: "";
  display: block;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.23s cubic-bezier(.76,.09,.37,.93);
  margin: 0 auto;
}
nav a:hover:after, nav a:focus:after {
  width: 70%;
}
.feature-item:hover img {
  box-shadow: 0 4px 16px 0 rgba(36,48,94,0.14);
  background: var(--secondary);
  transition: box-shadow 0.19s, background 0.17s;
}
input[type=checkbox]:focus-visible {
  outline: 2px solid var(--secondary);
}

/* =========== UTILITY =========== */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

/* =========== END CSS =========== */
