/* ============================================
   2M Consulting — Stylesheet
   Brand: Red / Black / White (editorial minimalism)
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,400;12..96,500;12..96,600;12..96,700;12..96,800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Geist:wght@300;400;500;600&display=swap');

:root {
  --red: #E2231A;
  --red-deep: #B81B14;
  --black: #0A0A0A;
  --ink: #1A1A1A;
  --white: #FFFFFF;
  --paper: #FAFAF7;
  --line: #E5E5E0;
  --muted: #6B6B6B;

  --display: 'Bricolage Grotesque', serif;
  --body: 'Geist', system-ui, sans-serif;

  --container: 1320px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }

/* Typography */
h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--black);
}
h1 { font-size: clamp(2.5rem, 6vw, 5.5rem); font-weight: 700; letter-spacing: -0.035em; }
h2 { font-size: clamp(1.875rem, 4vw, 3.5rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.75rem); font-weight: 600; }
p { font-size: clamp(1rem, 1.1vw, 1.0625rem); }

.eyebrow {
  font-family: var(--body);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--red);
}

.lead {
  font-size: clamp(1.125rem, 1.6vw, 1.375rem);
  line-height: 1.5;
  color: var(--ink);
  font-weight: 400;
}

/* Container */
.wrap {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ============================================
   HEADER
   ============================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100px;
  gap: 2rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.logo img {
  height: 80px;
  width: auto;
}

.nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav a {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--ink);
  position: relative;
  transition: color 0.25s var(--ease);
}
.nav a:hover { color: var(--red); }
.nav a.active { color: var(--red); }

.lang {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--body);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  padding-left: 1.5rem;
  border-left: 1px solid var(--line);
}
.lang a {
  color: var(--muted);
  padding: 0.25rem 0.4rem;
  transition: color 0.25s var(--ease);
}
.lang a.current { color: var(--black); font-weight: 600; }
.lang a:hover { color: var(--red); }

/* Mobile nav */
.menu-toggle {
  display: none;
  width: 28px;
  height: 28px;
  position: relative;
}
.menu-toggle span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--black);
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.menu-toggle span:nth-child(1) { top: 8px; }
.menu-toggle span:nth-child(2) { top: 18px; }

@media (max-width: 860px) {
  .menu-toggle { display: block; }
  .nav {
    position: fixed;
    inset: 76px 0 0 0;
    background: var(--paper);
    flex-direction: column;
    align-items: flex-start;
    padding: 2.5rem var(--gutter);
    gap: 1.5rem;
    transform: translateX(100%);
    transition: transform 0.4s var(--ease);
    border-top: 1px solid var(--line);
  }
  .nav.open { transform: translateX(0); }
  .nav a { font-size: 1.5rem; font-family: var(--display); font-weight: 600; }
  .lang { padding-left: 0; border-left: none; padding-top: 1.5rem; border-top: 1px solid var(--line); width: 100%; }
}

/* ============================================
   HERO (HOME)
   ============================================ */
.hero {
  padding: clamp(4rem, 10vw, 8rem) 0 clamp(3rem, 7vw, 5rem);
  border-bottom: 1px solid var(--line);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: end;
}
@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 1.4fr 1fr; gap: 5rem; }
}
.hero h1 {
  margin-top: 1.5rem;
}
.hero h1 .accent {
  color: var(--red);
  font-style: italic;
  font-weight: 500;
}
.hero-meta {
  font-family: var(--body);
  font-size: 0.875rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
  padding-top: 1.5rem;
  display: grid;
  gap: 0.5rem;
}
.hero-meta strong { color: var(--black); font-weight: 600; }

/* ============================================
   ABOUT
   ============================================ */
.about {
  padding: clamp(3rem, 7vw, 6rem) 0;
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: start;
}
@media (min-width: 900px) {
  .about-grid { grid-template-columns: 1fr 2fr; gap: 5rem; }
}
.about p + p { margin-top: 1.25rem; }

/* ============================================
   SERVICES (3 CARDS)
   ============================================ */
.services {
  padding: clamp(3rem, 7vw, 6rem) 0 clamp(4rem, 10vw, 8rem);
  background: var(--white);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.services-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin-bottom: clamp(2rem, 4vw, 3.5rem);
  gap: 2rem;
  flex-wrap: wrap;
}
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 720px) {
  .services-grid { grid-template-columns: repeat(3, 1fr); }
}

.card {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  overflow: hidden;
  transition: transform 0.4s var(--ease);
}
.card:hover { transform: translateY(-4px); }

.card-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--line);
}
.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}
.card:hover .card-image img { transform: scale(1.04); }

.card-num {
  position: absolute;
  top: 1rem;
  left: 1rem;
  font-family: var(--display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--white);
  background: var(--red);
  padding: 0.4rem 0.7rem;
  z-index: 2;
}

.card-body {
  padding: 1.5rem 0 0;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.card-body h3 {
  margin-bottom: 0.75rem;
}
.card-body p {
  color: var(--muted);
  font-size: 0.9375rem;
  margin-bottom: 1.25rem;
  flex: 1;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--body);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--black);
  padding-bottom: 0.4rem;
  border-bottom: 1.5px solid var(--black);
  align-self: flex-start;
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease), gap 0.25s var(--ease);
}
.card-link:hover {
  color: var(--red);
  border-color: var(--red);
  gap: 0.8rem;
}
.card-link svg { width: 14px; height: 14px; transition: transform 0.25s var(--ease); }
.card-link:hover svg { transform: translateX(3px); }

/* ============================================
   PAGE HERO (inner pages)
   ============================================ */
.page-hero {
  position: relative;
  height: clamp(360px, 55vh, 560px);
  overflow: hidden;
  background: var(--black);
}
.page-hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.7;
}
.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.65) 100%);
}
.page-hero-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-bottom: clamp(2.5rem, 6vw, 4rem);
}
.page-hero h1 { color: var(--white); max-width: 18ch; }
.page-hero .eyebrow { color: var(--white); opacity: 0.85; margin-bottom: 1rem; }

/* ============================================
   CONTENT (inner pages)
   ============================================ */
.content {
  padding: clamp(3rem, 7vw, 6rem) 0;
}
.content-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  max-width: 1100px;
  margin: 0 auto;
}
@media (min-width: 900px) {
  .content-grid { grid-template-columns: 1fr 2fr; gap: 5rem; }
}
.content-grid h2 { font-size: clamp(1.5rem, 2.5vw, 2.25rem); }
.content-grid p + p { margin-top: 1.25rem; }
.content-grid .lead {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(1.25rem, 2vw, 1.625rem);
  line-height: 1.35;
  color: var(--black);
  margin-bottom: 2rem;
}

/* Services list */
.svc-list {
  margin-top: 3rem;
  border-top: 1px solid var(--line);
  padding-top: 3rem;
}
.svc-list h3 {
  margin-bottom: 1.5rem;
  font-family: var(--body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--red);
}
.svc-list ul {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}
@media (min-width: 600px) {
  .svc-list ul { grid-template-columns: repeat(2, 1fr); column-gap: 3rem; }
}
.svc-list li {
  font-family: var(--display);
  font-size: 1.0625rem;
  font-weight: 500;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
  color: var(--black);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.svc-list li::before {
  content: "—";
  color: var(--red);
  font-weight: 600;
}

/* ============================================
   FORM
   ============================================ */
.form-section {
  background: var(--black);
  color: var(--white);
  padding: clamp(4rem, 8vw, 6rem) 0;
}
.form-section h2 { color: var(--white); }
.form-section .eyebrow { color: var(--red); }
.form-section p { color: rgba(255,255,255,0.7); }

.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  max-width: 1100px;
  margin: 0 auto;
}
@media (min-width: 900px) {
  .form-grid { grid-template-columns: 1fr 1.4fr; gap: 5rem; align-items: start; }
}

form.contact {
  display: grid;
  gap: 1.25rem;
}
.field { display: grid; gap: 0.5rem; }
.field-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
@media (min-width: 540px) {
  .field-row { grid-template-columns: 1fr 1fr; }
}
.field label {
  font-family: var(--body);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
}
.field input,
.field textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255,255,255,0.25);
  padding: 0.75rem 0;
  color: var(--white);
  font-family: var(--body);
  font-size: 1rem;
  transition: border-color 0.25s var(--ease);
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-bottom-color: var(--red);
}
.field textarea {
  resize: vertical;
  min-height: 100px;
}

.consent {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.5;
  margin-top: 0.5rem;
}
.consent input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--red);
  margin-top: 2px;
  flex-shrink: 0;
}
.consent a { color: rgba(255,255,255,0.9); text-decoration: underline; }
.consent a:hover { color: var(--red); }

button.submit {
  background: var(--red);
  color: var(--white);
  font-family: var(--body);
  font-weight: 600;
  font-size: 0.9375rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 1.1rem 2rem;
  margin-top: 1rem;
  transition: background 0.25s var(--ease), transform 0.25s var(--ease);
  align-self: flex-start;
}
button.submit:hover {
  background: var(--red-deep);
  transform: translateY(-1px);
}

/* Form intro side */
.form-intro h2 { margin-bottom: 1.5rem; }
.form-intro p { margin-bottom: 1rem; }
.form-intro .contacts {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.15);
  display: grid;
  gap: 0.75rem;
  font-size: 0.9375rem;
}
.form-intro .contacts strong {
  display: block;
  font-family: var(--body);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 0.25rem;
}
.form-intro .contacts a:hover { color: var(--red); }

/* Thank you message */
.thanks {
  background: rgba(226, 35, 26, 0.1);
  border-left: 3px solid var(--red);
  padding: 1.25rem 1.5rem;
  font-size: 0.9375rem;
  color: var(--white);
  margin-bottom: 1.5rem;
  display: none;
}
.thanks.show { display: block; }

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background: var(--black);
  color: rgba(255,255,255,0.7);
  padding: clamp(3rem, 6vw, 5rem) 0 2rem;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
@media (min-width: 720px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
}
.footer-brand img { height: 44px; filter: invert(1) brightness(1.5); margin-bottom: 1.25rem; }
.footer-brand p {
  font-size: 0.875rem;
  max-width: 32ch;
  color: rgba(255,255,255,0.6);
}

.footer-col h4 {
  font-family: var(--body);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 1rem;
}
.footer-col ul { list-style: none; display: grid; gap: 0.625rem; }
.footer-col a {
  font-size: 0.9375rem;
  color: rgba(255,255,255,0.85);
  transition: color 0.25s var(--ease);
}
.footer-col a:hover { color: var(--red); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.45);
}
.footer-bottom a:hover { color: var(--red); }

/* ============================================
   COOKIE BANNER
   ============================================ */
.cookie-banner {
  position: fixed;
  bottom: 1.25rem;
  left: 1.25rem;
  right: 1.25rem;
  max-width: 480px;
  background: var(--black);
  color: var(--white);
  padding: 1.5rem;
  z-index: 200;
  box-shadow: 0 20px 60px rgba(0,0,0,0.25);
  display: none;
  font-size: 0.875rem;
  line-height: 1.5;
}
.cookie-banner.show { display: block; }
.cookie-banner p { color: rgba(255,255,255,0.85); margin-bottom: 1rem; font-size: 0.875rem; }
.cookie-banner a { color: var(--white); text-decoration: underline; }
.cookie-banner .actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.cookie-banner button {
  font-family: var(--body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.7rem 1.2rem;
  transition: background 0.25s var(--ease);
}
.cookie-banner .accept {
  background: var(--red);
  color: var(--white);
}
.cookie-banner .accept:hover { background: var(--red-deep); }
.cookie-banner .reject {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.3);
}
.cookie-banner .reject:hover { border-color: var(--white); }

/* ============================================
   POLICY PAGES (Privacy / Cookie)
   ============================================ */
.policy {
  padding: clamp(3rem, 7vw, 6rem) 0;
  max-width: 820px;
  margin: 0 auto;
}
.policy h1 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 1rem; }
.policy .updated { color: var(--muted); font-size: 0.875rem; margin-bottom: 3rem; }
.policy h2 { font-size: clamp(1.25rem, 2vw, 1.625rem); margin: 2.5rem 0 1rem; }
.policy h3 { font-size: 1.125rem; margin: 1.5rem 0 0.5rem; }
.policy p, .policy li { font-size: 0.9375rem; line-height: 1.7; margin-bottom: 1rem; color: var(--ink); }
.policy ul { padding-left: 1.5rem; margin-bottom: 1rem; }
.policy a { color: var(--red); text-decoration: underline; }

/* ============================================
   UTILITIES
   ============================================ */
.section-title-block { max-width: 50ch; }
.divider {
  height: 1px;
  background: var(--line);
  margin: clamp(3rem, 6vw, 5rem) 0;
}

/* Selection */
::selection { background: var(--red); color: var(--white); }

/* Focus visible */
:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
}
/* ============================================
   MOBILE MENU — narrow white panel on the right
   ============================================ */
@media (max-width: 860px) {
  nav.nav {
    position: fixed !important;
    top: 0 !important;
    right: 0 !important;
    bottom: auto !important;
    left: auto !important;
    width: 78% !important;
    max-width: 340px !important;
    height: auto !important;
    background: #FFFFFF !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    padding: 6rem 1.75rem 2rem !important;
    gap: 1.5rem !important;
    transform: translateX(100%);
    transition: transform 0.4s ease !important;
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.15) !important;
    z-index: 99 !important;
    overflow-y: auto !important;
    max-height: 100vh !important;
  }
  nav.nav.open {
    transform: translateX(0) !important;
  }
  nav.nav a {
    color: #0A0A0A !important;
    background: transparent !important;
    font-size: 1.25rem !important;
    font-family: 'Bricolage Grotesque', serif !important;
    font-weight: 600 !important;
    text-decoration: none !important;
  }
  nav.nav a:hover,
  nav.nav a.active {
    color: #E2231A !important;
  }
  nav.nav .lang {
    padding-top: 1.25rem !important;
    margin-top: 0.5rem !important;
    border-top: 1px solid #E5E5E0 !important;
    width: 100% !important;
    display: flex !important;
    gap: 0.5rem !important;
    align-items: center !important;
  }
  nav.nav .lang a {
    color: #6B6B6B !important;
    font-size: 0.875rem !important;
    font-family: 'Geist', sans-serif !important;
    font-weight: 500 !important;
  }
  nav.nav .lang a.current {
    color: #0A0A0A !important;
  }
}