/* Additions on top of Framer's CSS (see tools/convert.py and site.js). */

/* Reveal animations, timed like Framer's (values per element in /css/fx.css, see tools/appear.py).
   fx.js adds .fx-on to <html> (only with JS and without "reduce motion"), then .fx-in per element:
   on load for Framer's appear effects (.fxl), when scrolled into view for the others. */
html.fx-on .fx:not(.fx-in) { opacity: 0.001; transform: var(--fx-t, none); }
html.fx-on .fx {
  transition: opacity var(--fx-dur, 1s) var(--fx-ease, cubic-bezier(0.22, 1, 0.36, 1)) var(--fx-delay, 0s),
              transform var(--fx-dur, 1s) var(--fx-ease, cubic-bezier(0.22, 1, 0.36, 1)) var(--fx-delay, 0s);
}

/* Slideshow (home hero) */
ul[data-carousel] { cursor: grab; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
ul[data-carousel].dragging { cursor: grabbing; }
ul[data-carousel] img { -webkit-user-drag: none; }

/* Project filter tabs and "Meer projecten" */
[data-filter-root] [data-framer-name="Filters"] span { cursor: pointer; }
.is-hidden { display: none !important; }

/* Mobile menu open: keep the page from scrolling underneath */
html.menu-open, html.menu-open body { overflow: hidden; }
[data-overlay] { position: fixed !important; inset: 0; z-index: 20; }

/* Contact: a mail button instead of Framer's form */
.contact-mail { display: flex !important; flex-direction: column !important; align-items: stretch !important; justify-content: space-between !important; gap: 24px; height: auto !important; min-height: 316px; }
@media (min-width: 810px) and (max-width: 1199px) { .contact-mail { min-height: 428px; } }
@media (max-width: 809px) { .contact-mail { min-height: 422px; } }
p.contact-mail__intro { font-family: "Inter", "Inter Placeholder", sans-serif !important; font-size: 18px !important; line-height: 1.6 !important; color: rgb(255, 255, 255) !important; margin: 0 !important; }
.contact-mail__wrap { width: 100% !important; height: auto !important; position: relative !important; }
.contact-mail__btn { text-decoration: none; width: 100% !important; height: auto !important; min-height: 40px; padding: 10px 20px !important; display: flex !important; align-items: center; justify-content: center; box-sizing: border-box; }
.contact-mail__btn p { white-space: nowrap; }

/* Search (replaces Framer's site search) */
.srch { position: fixed; inset: 0; z-index: 100; background: rgba(0, 0, 0, 0.6); display: flex; justify-content: center; align-items: flex-start; padding: 13vh 16px 16px; }
.srch[hidden] { display: none; }
.srch__panel { width: 100%; max-width: 500px; background: #fff; border-radius: 16px; overflow: hidden; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35); font-family: "Inter", "Inter Placeholder", system-ui, sans-serif; }
.srch__bar { display: flex; align-items: center; gap: 10px; padding: 0 16px; height: 56px; border-bottom: 1px solid #eee; }
.srch__bar svg { flex: none; color: #999; }
.srch__input { flex: 1; border: 0; outline: 0; font: 15px/1.4 inherit; font-family: inherit; color: #111; background: transparent; min-width: 0; }
.srch__clear { flex: none; border: 0; background: #ccc; color: #fff; width: 18px; height: 18px; border-radius: 50%; cursor: pointer; font: 12px/18px inherit; padding: 0; }
.srch__list { list-style: none; margin: 0; padding: 0; max-height: 60vh; overflow-y: auto; }
.srch__list a { display: block; padding: 12px 16px; text-decoration: none; color: #111; font-size: 14px; line-height: 1.4; }
.srch__list a:hover, .srch__list a:focus, .srch__list a[aria-selected="true"] { background: #f2f2f2; outline: 0; }
.srch__list small { display: block; color: #999; font-size: 12px; }
.srch__empty { padding: 16px; color: #999; font-size: 14px; }
html.srch-open, html.srch-open body { overflow: hidden; }

/* Project meta (Opdrachtgever, Ontwerp, ...): Framer kept long names on one line, which made
   two project pages wider than a phone screen. Let them wrap instead. */
@media (max-width: 1199px) {
  .framer-oROsf :is(.framer-1nbtbcm, .framer-xqz7og, .framer-g8jilj, .framer-walb02, .framer-1m2jf3f, .framer-15tb5km, .framer-qxet0k, .framer-jthkez, .framer-1a2hgqs, .framer-1j4qt4p, .framer-ucfcq7) {
    white-space: pre-wrap !important; max-width: 100%; flex-shrink: 1 !important; overflow-wrap: anywhere;
  }
}
html, body { overflow-x: clip; }

/* Button hover (Framer's "Primary" button variant: background to the light grey token) */
a[data-framer-name="Primary"] { transition: background-color 0.3s cubic-bezier(0.44, 0, 0.56, 1); }
a[data-framer-name="Primary"]:hover { background-color: var(--token-b33ee92c-1ff7-4447-97d0-592480c21cbc, rgb(238, 238, 238)) !important; }

/* Page transition: soft fade between pages (CSS only, no script).
   Browsers without cross-document view transitions just navigate as before. */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) {
  animation-duration: 0.35s;
  animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}
@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
}

/* Google Maps embed in dark grey, to match the site (CSS filter, no extra loading) */
iframe[src*="maps.google.com"] { filter: grayscale(1) invert(0.92) contrast(0.9) brightness(0.95); }

/* Project cards: the dark gradient always covers the whole photo
   (Framer gave it a fixed 960x804 size, so it fell short on wide screens). */
.framer-WAZFH .framer-kt8ohp { left: 0 !important; top: 0 !important; width: 100% !important; height: 100% !important; }
/* Project cards: photo zooms in slightly on hover. */
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .framer-WAZFH .framer-2w39rq img { transition: transform 0.6s cubic-bezier(0.2, 0.6, 0.2, 1); }
  .framer-WAZFH:hover .framer-2w39rq img { transform: scale(1.05); }
}

/* Mobile menu: page links were dark grey on the dark menu; make them white. */
.menu-open .framer-rxMTe .framer-fvuAy { --framer-text-color: rgb(255, 255, 255); }
.menu-open .framer-rxMTe .framer-fvuAy .framer-text { color: rgb(255, 255, 255); }
