/* ─── FONTS ─── */
@font-face {
  font-family: 'DM Serif Display';
  src: url('../fonts/dmserifdisplay-regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'DM Serif Display';
  src: url('../fonts/dmserifdisplay-italic.woff2') format('woff2');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

/* Variable font: covers every weight from 100–1000 in one file */
@font-face {
  font-family: 'DM Sans';
  src: url('../fonts/dmsans-variable.woff2') format('woff2');
  font-weight: 100 1000;
  font-style: normal;
  font-display: swap;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

:root {
  --black: #111111;
  --gray: #666666;
  --light: #F3F3F3;
  --white: #FFFFFF;
  --accent: #1B4E6B;
  --accent-light: #3a7a9d;
  --border: #E5E5E5;
  --max-w: 780px;
}

body {
  font-family: 'DM Serif Display', serif;
  background: var(--white);
  color: var(--black);
  line-height: 1.7;
}

/* ─── NAV ─── */
nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: #ffffff;
  border-bottom: 1px solid var(--border);
  padding: 0.5rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

nav .logo {
  text-decoration: none;
  display: flex;
  align-items: center;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 2.5rem;
  align-items: center;
}

nav a {
  font-family: 'DM Sans', sans-serif;
  font-size: 1.1rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--gray);
  transition: color 0.2s;
  white-space: nowrap;
}

nav a:hover { color: var(--black); }

/* Nav "tighten" breakpoint is per-language — label lengths differ (measured,
   not guessed; see HANDOFF.md). EN 970px · IT 1010px · NL 1020px · DE 1150px · FR 1070px */
@media (max-width: 970px) { html:lang(en) nav { padding: 0.5rem 1.5rem; } html:lang(en) .nav-links { gap: 1.2rem; } html:lang(en) .nav-right { gap: 1.2rem; } html:lang(en) nav a { font-size: 0.92rem; } }
@media (max-width: 1010px) { html:lang(it) nav { padding: 0.5rem 1.5rem; } html:lang(it) .nav-links { gap: 1.2rem; } html:lang(it) .nav-right { gap: 1.2rem; } html:lang(it) nav a { font-size: 0.92rem; } }
@media (max-width: 1020px) { html:lang(nl) nav { padding: 0.5rem 1.5rem; } html:lang(nl) .nav-links { gap: 1.2rem; } html:lang(nl) .nav-right { gap: 1.2rem; } html:lang(nl) nav a { font-size: 0.92rem; } }
@media (max-width: 1150px) { html:lang(de) nav { padding: 0.5rem 1.5rem; } html:lang(de) .nav-links { gap: 1.2rem; } html:lang(de) .nav-right { gap: 1.2rem; } html:lang(de) nav a { font-size: 0.92rem; } }
@media (max-width: 1070px) { html:lang(fr) nav { padding: 0.5rem 1.5rem; } html:lang(fr) .nav-links { gap: 1.2rem; } html:lang(fr) .nav-right { gap: 1.2rem; } html:lang(fr) nav a { font-size: 0.92rem; } }

/* ─── MOBILE MENU ─── */
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  color: var(--gray);
  cursor: pointer;
  transition: color 0.2s;
}

.nav-toggle:hover { color: var(--black); }

.nav-toggle-bars {
  position: relative;
  width: 22px;
  height: 13px;
}

.nav-toggle-bars span {
  position: absolute;
  left: 0;
  width: 22px;
  height: 1px;
  background: currentColor;
  transition: transform 0.25s ease, opacity 0.2s ease;
}

.nav-toggle-bars span:nth-child(1) { top: 0; }
.nav-toggle-bars span:nth-child(2) { top: 6px; }
.nav-toggle-bars span:nth-child(3) { top: 12px; }

nav.menu-open .nav-toggle-bars span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
nav.menu-open .nav-toggle-bars span:nth-child(2) { opacity: 0; }
nav.menu-open .nav-toggle-bars span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* nav is sticky with z-index:10, so this whole subtree already paints above the page.
   display:none here means the panel can't leak onto the desktop nav even if it was
   left open across the breakpoint — the JS below only has to keep the ARIA state honest. */
.mobile-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  max-height: 0;
  /* max-height:0 alone would leave the links tabbable; visibility takes them out of the tree */
  visibility: hidden;
  transition: max-height 0.3s ease, visibility 0s linear 0.3s;
}

nav.menu-open .mobile-menu {
  visibility: visible;
  transition: max-height 0.3s ease, visibility 0s;
}

.mobile-menu ul {
  list-style: none;
  padding: 0 1.5rem 0.5rem;
}

.mobile-menu li + li { border-top: 1px solid var(--border); }

/* Inherits family/spacing/uppercase from `nav a`; 44px is the tap-target floor */
.mobile-menu a {
  display: flex;
  align-items: center;
  min-height: 44px;
  font-size: 0.95rem;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .nav-toggle-bars span { transition: none; }
  .mobile-menu, nav.menu-open .mobile-menu { transition-duration: 0s; transition-delay: 0s; }
}

/* ─── CONTACT DROPDOWN ─── */
.nav-dropdown { position: relative; display: flex; align-items: center; gap: 0.3em; }

/* "Contact" is a real link to #contact — nav a styling + the tighten query already apply */
.nav-dropdown-link { white-space: nowrap; }

/* Separate control so the caret toggles the popup without hijacking the link's navigation */
.nav-dropdown-toggle {
  display: inline-flex;
  align-items: center;
  background: none;
  border: none;
  margin: 0;
  padding: 0.25rem 0.15rem;
  color: var(--gray);
  cursor: pointer;
  transition: color 0.2s;
}

/* Hovering anywhere on the pair darkens both, so they read as one control */
.nav-dropdown:hover .nav-dropdown-link,
.nav-dropdown.open .nav-dropdown-link,
.nav-dropdown:hover .nav-dropdown-toggle,
.nav-dropdown.open .nav-dropdown-toggle,
.nav-dropdown-toggle:focus-visible { color: var(--black); }

.nav-caret { font-size: 0.6em; transition: transform 0.2s ease; }
.nav-dropdown:hover .nav-caret,
.nav-dropdown.open .nav-caret { transform: rotate(180deg); }

.nav-dropdown-menu {
  list-style: none;
  position: absolute;
  top: calc(100% + 0.6rem);
  right: 0;
  margin: 0;
  padding: 0.4rem 0;
  min-width: 170px;
  background: var(--white);
  border: 1px solid var(--border);
  /* nav is sticky z-index:10; keep the menu above the page below it */
  z-index: 20;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0s linear 0.18s;
}

/* Opens on mouse hover, and on click/tap or keyboard activation (.open via JS) */
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown.open .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0s;
}

.nav-dropdown-menu a {
  display: block;
  padding: 0.55rem 1.3rem;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--gray);
  white-space: nowrap;
  transition: color 0.15s, background 0.15s;
}

.nav-dropdown-menu a:hover,
.nav-dropdown-menu a:focus { color: var(--black); background: var(--light); }


/* ─── HERO ─── */
#hero {
  min-height: 88vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 3rem;
  padding: 6rem 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

.hero-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 520px;
}

.hero-logo img {
  width: 100%;
  max-width: 420px;
  height: auto;
}

@media (max-width: 700px) {
  #hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 3rem 1.5rem 4rem;
  }
  /* The nav already carries the logo; repeating it costs a screen of scrolling */
  .hero-logo { display: none; }
}

#hero .inner h1 {
  font-family: 'DM Sans', sans-serif;
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: normal;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
}

#hero .inner h1 em,
#contact h2 em {
  font-family: 'DM Serif Display', serif;
  font-style: italic;
  color: var(--accent);
}

#hero .inner p {
  font-family: 'DM Sans', sans-serif;
  font-size: 1.05rem;
  color: var(--gray);
  max-width: 520px;
  margin-bottom: 2.5rem;
}

.btn {
  display: inline-block;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--white);
  background: var(--accent);
  padding: 0.9rem 2rem;
  transition: background 0.2s;
}

.btn:hover { background: var(--accent-light); }

/* Two hero CTAs side by side; wraps to stacked on narrow screens */
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

/* Outlined secondary CTA — supports the primary rather than competing with it.
   Padding subtracts the 1px border so both buttons stay exactly the same height. */
.btn-secondary {
  color: var(--accent);
  background: none;
  border: 1px solid var(--accent);
  /* slightly tighter than the primary so longer localized labels (IT/FR) still fit on one row */
  padding: calc(0.9rem - 1px) calc(1.6rem - 1px);
  transition: background 0.2s, color 0.2s;
}

.btn-secondary:hover { background: var(--accent); color: var(--white); }

/* ─── SECTIONS ─── */
section {
  padding: 6rem 2rem;
  max-width: var(--max-w);
  margin: 0 auto;
}

#about { padding-top: 2rem; max-width: 1000px; }

section + section {
  border-top: 1px solid var(--border);
}

.section-label {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 3rem;
}

h2 {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: normal;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
}

/* ─── ABOUT ─── */
#about .about-grid {
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: 3rem;
  align-items: start;
  margin-top: 2rem;
}

#about .portrait {
  width: 100%;
  height: 480px;
  object-fit: cover;
  object-position: center top;
  display: block;
}

/* Sits in the same grid column as the photo (wrapped together) so it hugs the image
   regardless of how tall the bio column next to it grows */
#about .portrait-caption {
  margin-top: 0.9rem;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray);
}

#about .bio {
  /* DM Serif Display is a display face — too heavy for 158 words of body copy.
     DM Sans matches the hero intro, service cards and contact text. */
  font-family: 'DM Sans', sans-serif;
  font-size: 1.05rem;
  color: var(--gray);
}

#about .bio p + p { margin-top: 1.2rem; }

@media (max-width: 560px) {
  #about .about-grid { grid-template-columns: 1fr; }
}

/* ─── SERVICES ─── */
#services {
  max-width: 1100px;
}

#services .grid {
  display: grid;
  /* minmax(0,…) lets tracks shrink past a long unbreakable word (e.g. Dutch compounds) */
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: auto 1fr auto;
  column-gap: 1.5rem;
  row-gap: 1.2rem;
  margin-top: 3rem;
}

@media (max-width: 720px) {
  #services .grid { grid-template-columns: 1fr; row-gap: 0.6rem; }
  #services { max-width: var(--max-w); }
}

/* Nav-collapse breakpoint (hamburger takes over) is also per-language — see
   HANDOFF.md. EN 780px · IT 810px · NL 820px · DE 930px · FR 860px.
   5 lang buttons no longer fit alongside the logo + hamburger on the narrowest
   phones; only shrinks here, where the hamburger already replaces the full nav.
   nav .lang-switcher button (3 selectors) outranks the base .lang-switcher button
   (2 selectors) declared later in the stylesheet, regardless of source order. */
@media (max-width: 780px) { html:lang(en) .nav-links { display: none; } html:lang(en) .nav-toggle { display: flex; } html:lang(en) .mobile-menu { display: block; } html:lang(en) nav .lang-switcher button { padding: 0.35rem 0.4rem; } }
@media (max-width: 810px) { html:lang(it) .nav-links { display: none; } html:lang(it) .nav-toggle { display: flex; } html:lang(it) .mobile-menu { display: block; } html:lang(it) nav .lang-switcher button { padding: 0.35rem 0.4rem; } }
@media (max-width: 820px) { html:lang(nl) .nav-links { display: none; } html:lang(nl) .nav-toggle { display: flex; } html:lang(nl) .mobile-menu { display: block; } html:lang(nl) nav .lang-switcher button { padding: 0.35rem 0.4rem; } }
@media (max-width: 930px) { html:lang(de) .nav-links { display: none; } html:lang(de) .nav-toggle { display: flex; } html:lang(de) .mobile-menu { display: block; } html:lang(de) nav .lang-switcher button { padding: 0.35rem 0.4rem; } }
@media (max-width: 860px) { html:lang(fr) .nav-links { display: none; } html:lang(fr) .nav-toggle { display: flex; } html:lang(fr) .mobile-menu { display: block; } html:lang(fr) nav .lang-switcher button { padding: 0.35rem 0.4rem; } }

.service-card {
  background: var(--light);
  overflow-wrap: break-word;
  padding: 2rem;
  display: grid;
  grid-template-rows: subgrid;
  grid-row: span 3;
  row-gap: 1.2rem;
}

.service-card h3 {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 1.05rem;
  font-weight: normal;
  color: var(--accent);
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.8rem;
  margin: 0;
}

.service-card .service-desc {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.88rem;
  color: var(--gray);
  line-height: 1.65;
  margin: 0;
}

.service-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.service-card ul li {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.88rem;
  color: var(--gray);
  line-height: 1.5;
  padding-left: 0.9rem;
  position: relative;
}

.service-card ul li::before {
  content: '–';
  position: absolute;
  left: 0;
  color: var(--accent);
}

/* ─── SERVICES ACCORDION (mobile only) ─── */
/* Heading wraps the button per the ARIA APG accordion pattern, so the title stays a
   real <h3> in the outline at every width — the button is what's interactive. */
.service-toggle {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  font: inherit;
  color: inherit;
  text-align: left;
  cursor: default;
}

.service-caret {
  display: none;
  font-size: 1.2rem;
  font-weight: 300;
  line-height: 1;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

/* display:contents on desktop makes this wrapper invisible to the grid, so .service-desc
   and .service-list still land directly in the outer subgrid's row 2 / row 3 exactly as
   before the wrapper existed — desktop alignment across the 3 cards is unchanged. */
.service-card-body {
  display: contents;
  grid-row: span 2;
}

@media (max-width: 720px) {
  /* Stacking 3 span-3 subgrid cards into a single column forces the browser to invent
     extra implicit row tracks (9 total instead of 3 shared ones), and row-gap applies
     between ALL of them — that's what was leaking ~19px of unwanted space per card below
     the collapsed body. Dropping the card out of grid entirely on mobile removes that
     leak outright; the subgrid alignment it was for only matters on desktop's 3-column
     layout anyway, where this rule doesn't apply. */
  .service-card {
    display: block;
    padding: 1.1rem 1.5rem;   /* was 2rem all sides — the "grey area" tightened */
  }

  .service-toggle { cursor: pointer; }
  .service-caret { display: inline-block; }
  .service-card.open .service-caret { transform: rotate(45deg); }

  /* Only here does the wrapper become a real box, so it can collapse/expand.
     The pre-content gap lives as margin-top on the FIRST CHILD, not padding on this
     element itself — padding is never compressible below its own size regardless of
     max-height (verified: max-height:0 + box-sizing:border-box still rendered 14px of
     padding-top here). A child's margin-top works because this parent's overflow:hidden
     blocks margin-collapse, which puts that space inside the parent's own box — so it's
     genuinely subject to the parent's max-height clip and disappears when closed. */
  .service-card-body {
    display: block;
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.35s ease;
  }
  .service-card-body .service-desc { margin-top: 0.9rem; margin-bottom: 0.9rem; }
}

/* Defensive reset, same pattern as the mobile nav: a panel left "open" (inline max-height
   set by JS) while the viewport was narrow can never clip content once back at desktop width */
@media (min-width: 721px) {
  .service-card-body { max-height: none !important; overflow: visible !important; }
}

/* ─── CONTACT: MOBILE ACTIONS (replaces the Google Form on small screens) ─── */
.contact-mobile-actions { display: none; }

@media (max-width: 700px) {
  /* The embedded form is ~905px tall and doesn't reflow — on mobile it's swapped for
     direct actions instead. loading="lazy" on the iframe keeps it from fetching at all
     while hidden here. */
  .google-form { display: none; }

  .contact-mobile-actions {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    margin-top: 2.5rem;
    max-width: 420px;
  }
  .contact-mobile-actions .btn { width: 100%; text-align: center; }
}

/* ─── SERVICES DIAGRAM ─── */
.services-diagram {
  margin-top: 3rem;
}

.diagram-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--border);
}

.diagram-col {
  padding: 2rem 1.8rem;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.diagram-col:last-child {
  border-right: none;
}

.diagram-col-header {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  padding-bottom: 0.8rem;
  border-bottom: 1px solid var(--accent);
}

.diagram-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  flex: 1;
}

.diagram-list li {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.85rem;
  color: var(--black);
  line-height: 1.5;
  padding-left: 1rem;
  position: relative;
}

.diagram-list li::before {
  content: '–';
  position: absolute;
  left: 0;
  color: var(--accent);
}

.diagram-tools {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.72rem;
  color: var(--gray);
  letter-spacing: 0.04em;
  border-top: 1px solid var(--border);
  padding-top: 0.8rem;
}

@media (max-width: 720px) {
  .diagram-cols { grid-template-columns: 1fr; }
  .diagram-col { border-right: none; border-bottom: 1px solid var(--border); }
  .diagram-col:last-child { border-bottom: none; }
}

.service-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  border-top: 1px solid var(--border);
  padding-top: 1rem;
}

.service-list li {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.85rem;
  color: var(--gray);
  line-height: 1.5;
  padding-left: 1rem;
  position: relative;
}

.service-list li::before {
  content: '–';
  position: absolute;
  left: 0;
  color: var(--accent);
}

/* ─── LEAD MAGNET (free audit checklist, email capture) ─── */
.lead-magnet {
  /* sits below the tools row now, so it needs more breathing room than the
     1.2rem that matched the service-card grid gap */
  margin-top: 2.5rem;
  border: 1.5px solid var(--accent);
  padding: 2rem;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 2.5rem;
  align-items: center;
}

.lead-magnet h3 {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 1.35rem;
  font-weight: normal;
  line-height: 1.25;
  margin-bottom: 0.6rem;
}

.lm-text p {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.88rem;
  color: var(--gray);
  line-height: 1.6;
  margin: 0;
}

.lm-form { display: flex; flex-direction: column; gap: 0.6rem; }

.lm-form label {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--black);
}

.lm-form input[type="email"] {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.92rem;
  color: var(--black);
  background: var(--white);
  border: 1px solid var(--border);
  padding: 0.75rem 1rem;
  outline: none;
  width: 100%;
  transition: border-color 0.2s;
}

.lm-form input[type="email"]:focus { border-color: var(--accent); }
.lm-form input::placeholder { color: #BBBBBB; }

.lm-form button {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white);
  background: var(--accent);
  border: none;
  padding: 0.9rem 1.5rem;
  cursor: pointer;
  transition: background 0.2s;
}

.lm-form button:hover { background: var(--accent-light); }

.lm-note {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.72rem;
  color: var(--gray);
  margin: 0;
}

/* Mailchimp's bot trap — must stay visually hidden but present in the DOM */
.lm-bot { position: absolute; left: -5000px; }

/* .lm-form .lm-consent (0,2,0) must outrank .lm-form label (0,1,1),
   otherwise the uppercase/letter-spacing from the field labels leaks in here */
.lm-form .lm-consent {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.72rem;
  line-height: 1.5;
  color: var(--gray);
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
  cursor: pointer;
}

.lm-form .lm-consent input { margin-top: 0.15rem; flex-shrink: 0; accent-color: var(--accent); }

/* Revealed in place of the form once a valid address is given */
.lm-success { display: none; }
.lm-success.show { display: block; }
.lead-magnet.unlocked .lm-form { display: none; }

.lm-success p {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.88rem;
  color: var(--gray);
  margin-bottom: 0.9rem;
}

.lm-download {
  display: inline-block;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--white);
  background: var(--accent);
  padding: 0.9rem 1.5rem;
  transition: background 0.2s;
}

.lm-download:hover { background: var(--accent-light); }

@media (max-width: 720px) {
  .lead-magnet { grid-template-columns: 1fr; gap: 1.4rem; padding: 1.4rem; }
  .lm-download { display: block; text-align: center; }
}

/* ─── TOOLS DROPDOWN ─── */
.tools-wrapper {
  margin-top: 3rem;
  border-top: 1px solid var(--border);
}

.tools-toggle {
  width: 100%;
  background: none;
  border: none;
  padding: 1.1rem 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.6rem;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.72rem;
  color: var(--accent);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tools-icon {
  font-size: 1rem;
  color: var(--accent);
  transition: transform 0.3s ease;
  line-height: 1;
  flex-shrink: 0;
}

.tools-toggle.open .tools-icon { transform: rotate(45deg); }
/* overflow:hidden is required for the accordion, but it also slices the hover tooltips.
   The negative margin pushes the clip edge 12px wider (the most a centred tooltip can
   overhang a minimum-width tile), and the matching padding keeps the tiles themselves
   aligned with the service cards above. */
.tools-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
  margin: 0 -12px;
  padding: 0 12px;
}

.tools-grid {
  list-style: none;
  margin: 0;
  /* Top gap must clear the hover tooltip: it is 28px tall and sits 16px above its tile,
     and the panel's overflow:hidden (needed for the accordion) would otherwise cut it off */
  padding: 2rem 0 2.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(104px, 1fr));
  gap: 0.5rem;
}

/* Fixed height keeps the panel's scrollHeight stable before the logos load */
.tool {
  position: relative;
  height: 74px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--light);
}

.tool img {
  max-width: 66%;
  max-height: 32px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.tool-name {
  position: absolute;
  bottom: calc(100% - 8px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: var(--black);
  color: var(--white);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  white-space: nowrap;
  padding: 0.3rem 0.55rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
  z-index: 2;
}

.tool:hover .tool-name {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Until a logo file exists, fall back to the tool's name rather than a broken image */
.tool.missing img { display: none; }
.tool.missing .tool-name {
  position: static; transform: none; opacity: 1; z-index: auto;
  background: none; color: var(--gray); padding: 0 0.4rem;
  white-space: normal; text-align: center;
}

/* ─── PRICING ACCORDION ─── */
.pricing-accordion {
  margin-top: 2.5rem;
  border-top: 1px solid var(--border);
}

.pricing-item {
  border-bottom: 1px solid var(--border);
}

.pricing-trigger {
  width: 100%;
  background: none;
  border: none;
  padding: 1.5rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  text-align: left;
}

.pricing-trigger-left {
  display: flex;
  align-items: baseline;
  gap: 2rem;
}

.pricing-title {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 1.4rem;
  font-weight: normal;
  color: var(--accent);
}

.pricing-rate-inline {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  color: var(--gray);
}

.pricing-icon {
  font-size: 1.6rem;
  color: var(--accent);
  transition: transform 0.3s ease;
  line-height: 1;
  font-family: 'DM Sans', sans-serif;
  font-weight: 300;
}

.pricing-item.open .pricing-icon {
  transform: rotate(45deg);
}

.pricing-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.pricing-panel-inner {
  padding-bottom: 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.pricing-panel .pricing-desc {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.88rem;
  color: var(--gray);
  line-height: 1.65;
}

.pricing-panel .pricing-includes {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.pricing-panel .pricing-includes li {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.85rem;
  color: var(--gray);
  padding-left: 1.2rem;
  position: relative;
}

.pricing-panel .pricing-includes li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 0.75rem;
}

@media (max-width: 600px) {
  .pricing-panel-inner { grid-template-columns: 1fr; gap: 1.5rem; }
  .pricing-trigger-left { flex-direction: column; gap: 0.3rem; }
}

/* ─── CTA STRIP ─── */
.cta-strip {
  background: var(--accent);
  padding: 1.2rem 2rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.8rem;
}

.cta-text {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: clamp(1.3rem, 3vw, 2rem);
  font-weight: normal;
  color: #fff;
  max-width: 620px;
  line-height: 1.3;
  margin: 0;
}

.cta-text em {
  font-style: italic;
  opacity: 0.85;
}

.cta-btn {
  display: inline-block;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--accent);
  background: #fff;
  padding: 0.9rem 2.2rem;
  transition: background 0.2s;
}

.cta-btn:hover { background: var(--light); }

/* ─── WORK ─── */
#work .case-list {
  margin-top: 3rem;
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.case {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 2rem;
  align-items: start;
}

.case-image {
  height: 220px;
  grid-column: 1 / -1;
  margin-bottom: 0.5rem;
}

@media (max-width: 560px) {
  .case { grid-template-columns: 1fr; }
}

.case .tag {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}

.case h3 {
  font-size: 1.15rem;
  font-weight: normal;
  margin: 0.4rem 0 0.6rem;
}

.case p {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.88rem;
  color: var(--gray);
  line-height: 1.65;
}

.case .result {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.8rem;
  font-weight: bold;
  letter-spacing: 0.04em;
  margin-top: 0.8rem;
  color: var(--black);
}

/* ─── CONTACT ─── */
#contact p {
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  color: var(--gray);
  max-width: 480px;
  margin-bottom: 2rem;
}

.google-form { margin-top: 2.5rem; max-width: 600px; }
.google-form iframe { display: block; width: 100%; }

/* ─── CONTACT FORM ─── */
.contact-form {
  margin-top: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  max-width: 600px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group label {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--black);
}

.form-group input,
.form-group select,
.form-group textarea {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.92rem;
  color: var(--black);
  background: var(--white);
  border: 1px solid var(--border);
  padding: 0.75rem 1rem;
  outline: none;
  transition: border-color 0.2s;
  resize: none;
  width: 100%;
  box-sizing: border-box;
}

.form-group select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23666' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; cursor: pointer; }

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #BBBBBB;
}

.form-submit {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white);
  background: var(--accent);
  border: none;
  padding: 0.9rem 2rem;
  cursor: pointer;
  width: fit-content;
  transition: background 0.2s;
}

.form-submit:hover { background: var(--accent-light); }

@media (max-width: 560px) {
  .form-row { grid-template-columns: 1fr; }
}

nav .logo img { display: block; width: 56px; height: auto; }

/* ─── LANG SWITCHER ─── */
.nav-right {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.lang-switcher {
  display: flex;
  gap: 0;
  border: 1px solid var(--border);
}

.lang-switcher button {
  background: none;
  border: none;
  border-right: 1px solid var(--border);
  padding: 0.35rem 0.65rem;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--gray);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.lang-switcher button:last-child { border-right: none; }
.lang-switcher button:hover { background: var(--light); color: var(--black); }
.lang-switcher button.active { background: var(--accent); color: #fff; }

/* ─── IMAGE PLACEHOLDERS ─── */
.img-placeholder {
  background: var(--light);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: #BBBBBB;
}

.img-placeholder span {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.img-placeholder svg {
  width: 28px;
  height: 28px;
  opacity: 0.4;
}

/* ─── FOOTER ─── */
footer {
  border-top: 1px solid var(--border);
  padding: 2rem;
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  flex-wrap: wrap;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.footer-logo {
  display: block;
  width: 80px;
  height: auto;
  flex-shrink: 0;
}

.footer-left, .footer-right {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

footer span {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.78rem;
  color: var(--gray);
}

footer a {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.78rem;
  color: var(--gray);
  text-decoration: none;
}

footer a:hover { color: var(--accent); }
