/* MB Vision — stylesheet. Mobile-first, breakpoints 640 / 960 / 1200. */

/* ---------- Fonts ---------- */
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("/fonts/montserrat-latin-ext-300-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/montserrat-latin-ext-500-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/montserrat-latin-ext-600-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/inter-latin-ext-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/inter-latin-ext-500-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/inter-latin-ext-600-normal.woff2") format("woff2");
}

/* ---------- Design tokens ---------- */
:root {
  --coral: #fd8163;
  --peach: #fba964;
  --accent: #c4512f;
  --accent-hover: #a8432a;
  --bg: #fbf8f5;
  --surface: #ffffff;
  --ink: #23272b;
  --muted: #5e646b;
  --line: #e9e2db;
  --grad: linear-gradient(120deg, var(--peach), var(--coral));
  --radius: 14px;
  --header-h: 72px;
  --eu-bar-h: 64px;
  --max: 1200px;
  --font-head: "Montserrat", "Segoe UI", Arial, sans-serif;
  --font-body: "Inter", "Segoe UI", Arial, sans-serif;
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: var(--accent-hover);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 2px;
}
a:hover {
  color: var(--accent);
}
h1,
h2,
h3 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 .5em;
  color: var(--ink);
}
h1 {
  font-size: clamp(2rem, 4.5vw, 3rem);
  letter-spacing: .02em;
}
h2 {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
}
h3 {
  font-size: 1.15rem;
}
p {
  margin: 0 0 1em;
  max-width: 68ch;
}
ul {
  margin: 0 0 1em;
  padding-left: 1.2em;
}
table {
  border-collapse: collapse;
  width: 100%;
}
address {
  font-style: normal;
}
button {
  font: inherit;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
}
.eyebrow {
  display: block;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .78rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--accent-hover);
  margin-bottom: .75em;
}
section {
  padding: 64px 0;
}
.section-head {
  max-width: 44rem;
  margin-bottom: 2.5rem;
}
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 10px 16px;
  z-index: 300;
  border-radius: 0 0 8px 0;
}
.skip-link:focus {
  left: 0;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5em;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .95rem;
  letter-spacing: .02em;
  padding: .9em 1.6em;
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover {
  background: var(--accent-hover);
  color: #fff;
}
.btn-secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.btn-block {
  width: 100%;
  justify-content: center;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}
.logo-link {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.logo-link img {
  height: 44px;
  width: auto;
}
.nav-desktop {
  display: none;
}
.nav-desktop ul {
  display: flex;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-desktop a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  font-size: .98rem;
}
.nav-desktop a:hover {
  color: var(--accent);
}
.header-actions {
  display: flex;
  align-items: center;
  gap: .75rem;
}
.call-btn-text {
  display: none;
}
.call-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  flex-shrink: 0;
}
.call-btn svg {
  width: 20px;
  height: 20px;
}
.hamburger {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.hamburger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink);
  transition: transform .2s ease, opacity .2s ease;
}
.hamburger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.hamburger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.hamburger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-mobile {
  display: none;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.nav-mobile.is-open {
  display: block;
}
.nav-mobile ul {
  list-style: none;
  margin: 0;
  padding: 1rem 20px 1.5rem;
  display: flex;
  flex-direction: column;
  gap: .25rem;
}
.nav-mobile a {
  display: block;
  padding: .75rem 0;
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px solid var(--line);
}

/* ---------- Hero ---------- */
.hero .container {
  display: grid;
  gap: 2.5rem;
  align-items: center;
  padding-top: 48px;
  padding-bottom: 16px;
}
.hero-copy p {
  color: var(--muted);
  font-size: 1.05rem;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.75rem;
}
.hero-art {
  width: 100%;
}
.hero-art svg {
  width: 100%;
  height: auto;
}

/* ---------- Services ---------- */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
.service-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem;
}
.service-card .icon {
  width: 42px;
  height: 42px;
  margin-bottom: 1rem;
  color: var(--accent);
}
.service-card .icon svg {
  width: 100%;
  height: 100%;
}
.service-card h3 {
  margin-bottom: .5rem;
}
.service-card p {
  color: var(--muted);
  font-size: .98rem;
  margin-bottom: 0;
}

/* ---------- About (dark) ---------- */
.about {
  background: var(--ink);
  color: #f3f1ee;
}
.about .eyebrow {
  color: var(--peach);
}
.about h2 {
  color: #fff;
}
.about > .container > p {
  color: #cfd0cf;
  font-size: 1.05rem;
}
.about-points {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 2rem;
}
.about-point .icon {
  width: 34px;
  height: 34px;
  color: var(--peach);
  margin-bottom: .75rem;
}
.about-point .icon svg {
  width: 100%;
  height: 100%;
}
.about-point h3 {
  color: #fff;
  margin-bottom: .4rem;
  font-size: 1.05rem;
}
.about-point p {
  color: #b9bab8;
  font-size: .95rem;
  margin-bottom: 0;
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: start;
}
.form-card,
.contact-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem;
}
.field {
  margin-bottom: 1.1rem;
}
.field label {
  display: block;
  font-weight: 500;
  font-size: .92rem;
  margin-bottom: .4rem;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  font: inherit;
  padding: .75em .9em;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: var(--bg);
  color: var(--ink);
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--accent);
}
.field textarea {
  resize: vertical;
  min-height: 7.5em;
}
.field-note {
  font-size: .85rem;
  color: var(--muted);
  margin: -.4rem 0 1.1rem;
}
.field-checkbox {
  display: flex;
  align-items: flex-start;
  gap: .6em;
}
.field-checkbox input {
  width: auto;
  margin-top: .3em;
  flex-shrink: 0;
}
.field-checkbox label {
  font-weight: 400;
  font-size: .92rem;
  margin: 0;
}
.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.form-msg {
  margin-top: 1rem;
  padding: .9em 1em;
  border-radius: 10px;
  font-size: .95rem;
  display: none;
}
.form-msg.is-visible {
  display: block;
}
.form-msg.is-success {
  background: #e9f3ea;
  color: #2a5c33;
}
.form-msg.is-error {
  background: #fbeceb;
  color: #8a2e24;
}
.contact-card dl {
  margin: 0 0 1.25rem;
}
.contact-card dt {
  font-weight: 600;
  font-size: .82rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 1rem;
}
.contact-card dt:first-child {
  margin-top: 0;
}
.contact-card dd {
  margin: .25rem 0 0;
  font-size: 1.02rem;
}
.map-link {
  display: inline-flex;
  align-items: center;
  gap: .4em;
  font-weight: 500;
  text-decoration: none;
}

/* ---------- EU static block ---------- */
.eu-block {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.eu-block .container {
  display: grid;
  gap: 2rem;
  align-items: center;
}
.eu-block-logo {
  max-width: 420px;
  width: 100%;
}
.eu-block-logo img {
  width: 100%;
  height: auto;
}
.eu-block-text .btn {
  margin-top: 1rem;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: #cfd0cf;
  padding: 56px 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid #3a3e42;
}
.footer-logo-tile {
  display: inline-flex;
  background: #fff;
  border-radius: 10px;
  padding: 10px 14px;
  margin-bottom: 1rem;
}
.footer-logo-tile img {
  height: 32px;
  width: auto;
}
.footer-col h2 {
  color: #fff;
  font-size: .85rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: .6rem;
}
.footer-col a {
  color: #cfd0cf;
  text-decoration: none;
  font-size: .95rem;
}
.footer-col a:hover {
  color: var(--peach);
}
.company-data {
  font-size: .82rem;
  line-height: 1.7;
  color: #a3a5a3;
}
.company-data p {
  margin: 0;
}
.footer-bottom {
  padding-top: 1.5rem;
  font-size: .85rem;
  color: #9a9c9a;
  text-align: center;
}

/* ---------- Fixed EU badge ---------- */
.eu-badge-desktop {
  display: none;
}
.eu-badge-mobile {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 150;
  height: var(--eu-bar-h);
  background: #fff;
  border-top: 1px solid var(--line);
  box-shadow: 0 -2px 10px rgba(0, 0, 0, .06);
  text-decoration: none;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: 0 16px;
  padding-bottom: env(safe-area-inset-bottom);
}
.eu-badge-mobile img {
  height: 40px;
  width: auto;
  flex-shrink: 0;
}
.eu-badge-mobile span {
  font-size: .85rem;
  font-weight: 500;
}
body.has-eu-badge-mobile {
  padding-bottom: calc(var(--eu-bar-h) + env(safe-area-inset-bottom));
}

/* ---------- EU project page ---------- */
.eu-hero-logo {
  background: #fff;
  padding: 48px 20px;
  text-align: center;
}
.eu-hero-logo img {
  width: min(560px, 100%);
  height: auto;
  margin: 0 auto;
}
.eu-page-head {
  padding-top: 56px;
  padding-bottom: 0;
}
.eu-page-head .container > p.lede {
  color: var(--muted);
}
.quote-box {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.5rem 1.75rem;
  margin: 0 0 1.5rem;
  font-size: 1.05rem;
}
.quote-box p {
  margin: 0;
  max-width: none;
}
.facts-table {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 2rem;
}
.facts-table th,
.facts-table td {
  text-align: left;
  padding: .85em 1.1em;
  border-bottom: 1px solid var(--line);
  font-size: .95rem;
}
.facts-table tr:last-child th,
.facts-table tr:last-child td {
  border-bottom: none;
}
.facts-table th {
  font-weight: 600;
  width: 40%;
  color: var(--muted);
}
.eu-content h2 {
  margin-top: 2.5rem;
}
.eu-content address {
  margin-bottom: 1.5rem;
}
.eu-content ul {
  margin-bottom: 1.5rem;
}
.disclaimer-box {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1.75rem;
  margin: 2.5rem 0;
  font-size: 1rem;
  color: var(--muted);
}
.disclaimer-box p {
  max-width: none;
  margin: 0;
}
.back-link {
  display: inline-block;
  margin-bottom: 2rem;
  font-weight: 500;
  text-decoration: none;
}

/* ---------- Static pages (privacy, 404) ---------- */
.page-content {
  padding-top: 56px;
}
.page-content h2 {
  margin-top: 2rem;
}
.page-content ol,
.page-content ul {
  padding-left: 1.3em;
}
.page-content ol li,
.page-content ul li {
  margin-bottom: .5em;
}
.updated-note {
  color: var(--muted);
  font-size: .9rem;
  margin-top: 2.5rem;
}
.error-page {
  min-height: 60vh;
  display: flex;
  align-items: center;
}
.error-page .container {
  text-align: center;
}
.error-page .eyebrow {
  justify-content: center;
}
.error-page .hero-actions {
  justify-content: center;
}

/* ---------- Breakpoints ---------- */
@media (min-width: 640px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .about-points {
    grid-template-columns: repeat(3, 1fr);
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 960px) {
  :root {
    --header-h: 80px;
  }
  .container {
    padding: 0 32px;
  }
  .nav-desktop {
    display: block;
  }
  .nav-mobile,
  .hamburger {
    display: none;
  }
  .call-btn {
    width: auto;
    height: auto;
    padding: .8em 1.4em;
    border-radius: 999px;
  }
  .call-btn-text {
    display: inline;
  }
  .logo-link img {
    height: 56px;
  }
  .hero .container {
    grid-template-columns: 1.1fr .9fr;
    padding-top: 72px;
    padding-bottom: 32px;
  }
  .services-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .contact-grid {
    grid-template-columns: 1.3fr 1fr;
  }
  .eu-block .container {
    grid-template-columns: .9fr 1.1fr;
  }
  .footer-grid {
    grid-template-columns: 1.3fr 1fr 1.7fr;
  }
  section {
    padding: 96px 0;
  }
  .eu-badge-mobile {
    display: none;
  }
  .eu-badge-desktop {
    display: block;
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 150;
    width: 300px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(35, 39, 43, .14);
    text-decoration: none;
    color: var(--ink);
    overflow: hidden;
  }
  .eu-badge-desktop img {
    width: 100%;
    height: auto;
    display: block;
  }
  .eu-badge-desktop .eu-badge-text {
    display: block;
    padding: 12px 16px 16px;
    font-size: .85rem;
    font-weight: 500;
    line-height: 1.4;
  }
}

@media (min-width: 1200px) {
  .container {
    padding: 0 40px;
  }
}
