/* ==========================================================================
   Virtual Dimension — shared theme
   Carries the contact page's palette and type across the rest of the site.
   Loaded after vdim.webflow.css and before any page-specific stylesheet, so
   pages can still override. Selectors match the originals' specificity and
   win on order rather than !important.
   ========================================================================== */

:root {
  /* The heavy sand wash (#b29e8454 over white) becomes a near-white raised
     tone. Webflow already alternates .section / .section.background down the
     page, and .background is the one that reads --tan — so this single value
     restores the banding rhythm. Plain .section is transparent and falls
     through to the paper on the body, giving the two-tone pairing. */
  --tan: #fff;

  --vd-raised: #fff;
  --vd-line-soft: #e8e2d8;
  /* the page ground is the warm paper; the alternating bands are white */
  --vd-paper: #f4f1eb;
  --vd-ink: #1c2a2e;
  --vd-muted: #6b7b80;
  --vd-sand: #b29e84;
  --vd-slate: #253439;
  --vd-slate-deep: #1b282c;
  --vd-line: #ded7cc;
  --vd-fill: #f1eae1;
  --vd-fill-line: #e2d8cb;
  --vd-teal: #1f7a73;

  --vd-display: "Archivo", "Inter", sans-serif;
  --vd-body: "Inter", sans-serif;
  --vd-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

/* --- body copy ---------------------------------------------------------- */

/* Paper on the page itself, so the floating nav needs no coloured strip of
   its own and there is no band above the hero. Safe now that --tan is a
   solid colour: a section painting paper over paper is identical, whereas
   the old translucent wash would have composited twice and gone darker. */
/* body[class] as well as body: index.html carries .body, which webflow sets
   to transparent, and a bare element selector would lose to it. */
body,
body[class] {
  background-color: var(--vd-paper);
  font-family: var(--vd-body);
  color: var(--vd-ink);
}

.paragraph,
.sub-title,
.service-head-description,
.f-paragraph-large {
  font-family: var(--vd-body);
  color: var(--vd-muted);
  line-height: 1.6;
  text-transform: none;
  letter-spacing: normal;
}

/* --- display headings --------------------------------------------------- */

h1,
h2,
h3,
.service-head,
.project-heading,
.other-service-head,
.text-block-6 {
  font-family: var(--vd-display);
  font-variation-settings: "wdth" 112;
  color: var(--vd-ink);
  letter-spacing: -.02em;
  line-height: 1.06;
  /* the site shouted these in caps; the lighter treatment reads better at
     the larger Archivo sizes and matches the contact page */
  text-transform: none;
}

.service-head,
.project-heading {
  font-weight: 700;
}

.other-service-head {
  font-weight: 600;
}

/* --- mono annotation labels (eyebrows, field labels, small caps) -------- */

.field-label,
.project-label,
.about-us-info.title,
.f-heading-detail-small {
  font-family: var(--vd-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--vd-muted);
}

.about-us-info.title {
  color: var(--vd-sand);
  letter-spacing: .16em;
}

.small-text {
  font-family: var(--vd-body);
  color: var(--vd-muted);
}

/* --- form controls ----------------------------------------------------- */

/* --tan is now paper, which would leave inputs invisible against the page,
   so fields keep their own slightly warmer fill. */
.partner-text-field,
.c-form_field {
  background-color: var(--vd-fill);
  border: 1px solid var(--vd-fill-line);
  color: var(--vd-ink);
  font-family: var(--vd-body);
  border-radius: 10px;
}

.partner-text-field:focus,
.c-form_field:focus {
  background-color: #fff;
  border-color: var(--vd-teal);
  outline: none;
  box-shadow: 0 0 0 3px rgba(31, 122, 115, .14);
}

/* --- buttons ----------------------------------------------------------- */

/* These four used --tan as their fill, so they would have gone paper on
   paper. Given the slate treatment from the contact page's submit instead. */
.submit-button,
.submit-button-3,
.c-form_submit,
.btn,
.primary-button,
.c-button {
  font-family: var(--vd-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  background-color: var(--vd-slate);
  color: var(--vd-paper);
  border: 1px solid var(--vd-slate);
  border-radius: 999px;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease;
}

.submit-button:hover,
.submit-button-3:hover,
.c-form_submit:hover,
.btn:hover,
.primary-button:hover,
.c-button:hover {
  background-color: var(--vd-slate-deep);
  border-color: var(--vd-slate-deep);
  color: var(--vd-paper);
}

/* Pair the filled and outline variants.
   Webflow's .is-hero-button set 14.4px and its own padding, which outranked
   the single-class .c-button rule above — so the two buttons sitting side by
   side in the hero had different type sizes and different box sizes. Listing
   the compound selectors here levels them. */
.c-button,
.c-button.is-hero-button,
.c-button.isblack,
.primary-button,
.outline-button,
.submit-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  letter-spacing: .1em;
  line-height: 1;
  padding: 16px 26px;
  border-width: 1px;
  border-style: solid;
  border-radius: 999px;
}

.outline-button,
.c-button.isblack {
  font-family: var(--vd-mono);
  font-weight: 500;
  text-transform: uppercase;
  background-color: transparent;
  color: var(--vd-ink);
  /* --vd-fill-line was almost invisible against the page; the outline needs
     enough weight to read as a sibling of the filled button */
  border-color: rgba(28, 42, 46, .32);
}

.outline-button:hover,
.c-button.isblack:hover {
  border-color: var(--vd-ink);
  background-color: transparent;
  color: var(--vd-ink);
}

/* keep keyboard focus obvious on every control we restyled */
.submit-button:focus-visible,
.submit-button-3:focus-visible,
.c-form_submit:focus-visible,
.btn:focus-visible,
.primary-button:focus-visible,
.c-button:focus-visible,
.outline-button:focus-visible {
  outline: 2px solid var(--vd-teal);
  outline-offset: 3px;
}

/* --- surfaces ---------------------------------------------------------- */

/* cards sat on the same wash as the section behind them, so they lost their
   edge once both went paper */
.project-card,
.choose-us,
.grid-12 {
  border: 1px solid var(--vd-line);
}

@media (prefers-reduced-motion: reduce) {
  .submit-button,
  .submit-button-3,
  .c-form_submit,
  .btn,
  .primary-button,
  .c-button {
    transition-duration: .01ms;
  }
}

/* --------------------------------------------------------------------------
   Footer
   Brand + Menu + Company + Newsletter across the top; legal line and social
   icons in the bottom bar. Dark slate, to anchor the paper-toned pages and
   echo the nav pill.
   -------------------------------------------------------------------------- */

.vfoot {
  background-color: var(--vd-slate);
  color: #e8edee;
  padding: 72px 0 26px;
}

.vfoot-wrap {
  max-width: 1264px;
  margin: 0 auto;
  padding: 0 32px;
}

.vfoot-top {
  display: grid;
  grid-template-columns: 1.7fr 1fr 1fr 1.5fr;
  gap: 48px;
  padding-bottom: 52px;
}

/* --- brand --- */

.vfoot-mark {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  margin-bottom: 16px;
}

.vfoot-mark img {
  width: 40px;
  height: 40px;
}

.vfoot-mark span {
  font-family: var(--vd-display);
  font-variation-settings: "wdth" 112;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #fff;
}

.vfoot-desc {
  margin: 0;
  font-family: var(--vd-body);
  font-size: .9375rem;
  line-height: 1.6;
  color: #9fb0b4;
  max-width: 34ch;
}

/* --- link columns --- */

.vfoot-head {
  margin: 0 0 18px;
  font-family: var(--vd-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--vd-sand);
}

.vfoot-col {
  display: flex;
  flex-direction: column;
}

.vfoot-col > a {
  font-family: var(--vd-body);
  font-size: .9375rem;
  color: #c8d3d5;
  text-decoration: none;
  padding: 7px 0;
  width: fit-content;
  transition: color .18s ease;
}

.vfoot-col > a:hover {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* --- newsletter --- */

.vfoot-news .vfoot-desc {
  margin-bottom: 18px;
  max-width: 32ch;
}

.vfoot .c-form {
  margin: 0;
}

.vfoot .c-form_fields {
  position: relative;
  display: block;
  margin: 0;
}

.vfoot .c-form_field {
  width: 100%;
  height: auto;
  margin: 0;
  padding: 15px 60px 15px 20px;
  font-family: var(--vd-body);
  font-size: .9375rem;
  color: #e8edee;
  background-color: rgba(232, 237, 238, .07);
  border: 1px solid rgba(232, 237, 238, .18);
  border-radius: 999px;
  transition: border-color .18s ease, background-color .18s ease;
}

.vfoot .c-form_field::placeholder {
  color: #7f9195;
}

.vfoot .c-form_field:focus {
  background-color: rgba(232, 237, 238, .12);
  border-color: var(--vd-sand);
  box-shadow: none;
  outline: none;
}

/* circular submit; the label stays in the value attribute for screen readers
   while the arrow is drawn as a background image */
.vfoot .c-form_submit {
  position: absolute;
  top: 50%;
  right: 6px;
  transform: translateY(-50%);
  width: 42px;
  /* vdim.webflow.css sizes this in em (2.8em) and also pins min/max-height.
     With font-size:0 below, em resolves to 0 — so all three are set in px. */
  height: 42px;
  min-height: 42px;
  max-height: 42px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background-color: var(--vd-paper);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='17' height='17' viewBox='0 0 24 24' fill='none' stroke='%231c2a2e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  font-size: 0;
  color: transparent;
  letter-spacing: 0;
  cursor: pointer;
  transition: background-color .18s ease, transform .18s ease;
}

.vfoot .c-form_submit:hover {
  background-color: var(--vd-sand);
  transform: translateY(-50%) translateX(2px);
}

.vfoot .c-form_submit:focus-visible {
  outline: 2px solid var(--vd-sand);
  outline-offset: 3px;
}

.vfoot .w-form-done,
.vfoot .w-form-fail {
  margin-top: 14px;
  padding: 12px 16px;
  border-radius: 12px;
  font-size: .875rem;
  line-height: 1.5;
  text-align: left;
  background-color: rgba(232, 237, 238, .08);
  border: 1px solid rgba(232, 237, 238, .18);
  color: #e8edee;
}

.vfoot .w-form-fail {
  background-color: rgba(214, 120, 100, .12);
  border-color: rgba(214, 120, 100, .35);
  color: #f0c4bb;
}

/* --- bottom bar --- */

.vfoot-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding-top: 26px;
  border-top: 1px solid rgba(232, 237, 238, .14);
}

.vfoot-legal {
  margin: 0;
  font-family: var(--vd-body);
  font-size: .8125rem;
  color: #8a9a9e;
}

/* inline on desktop, with the separator drawn in CSS so mobile can simply
   drop it and put the links on their own row */
.vfoot-legal-links::before {
  content: "·";
  margin: 0 7px;
  color: #8a9a9e;
}

.vfoot-legal a {
  color: #8a9a9e;
  text-decoration: none;
  transition: color .18s ease;
}

.vfoot-legal a:hover {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.vfoot-social {
  display: flex;
  align-items: center;
  gap: 8px;
}

.vfoot-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(232, 237, 238, .18);
  transition: background-color .18s ease, border-color .18s ease;
}

.vfoot-social a:hover {
  background-color: rgba(232, 237, 238, .1);
  border-color: rgba(232, 237, 238, .38);
}

.vfoot-social img {
  width: 17px;
  height: 17px;
}

.vfoot-social a:focus-visible {
  outline: 2px solid var(--vd-sand);
  outline-offset: 2px;
}

@media screen and (max-width: 991px) {
  .vfoot-top {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }

  .vfoot-news {
    grid-column: 1 / -1;
  }
}

@media screen and (max-width: 640px) {
  .vfoot {
    padding-top: 52px;
  }

  .vfoot-wrap {
    padding: 0 20px;
  }

  /* Menu and Company share a row rather than stacking, which cut the footer's
     height a long way. Brand and newsletter still span the full width. */
  .vfoot-top {
    grid-template-columns: 1fr 1fr;
    gap: 32px 20px;
    padding-bottom: 34px;
  }

  .vfoot-brand,
  .vfoot-news {
    grid-column: 1 / -1;
  }

  .vfoot-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }

  /* copyright on one line, the legal links on the next, instead of one
     paragraph wrapping mid-link */
  .vfoot-legal-copy,
  .vfoot-legal-links {
    display: block;
  }

  .vfoot-legal-links {
    margin-top: 7px;
  }

  .vfoot-legal-links::before {
    content: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .vfoot-col > a,
  .vfoot .c-form_submit,
  .vfoot-social a,
  .vfoot-legal a {
    transition-duration: .01ms;
  }
}

/* --------------------------------------------------------------------------
   Section rhythm
   Webflow lays pages out as alternating .section / .section.background.
   .background carries --tan (now the raised near-white); plain .section is
   transparent and falls through to the paper on the body. A hairline at each
   boundary makes the change unmistakable even where the two tones are close,
   and the extra padding gives each band room to read as its own block.
   -------------------------------------------------------------------------- */

.section {
  padding-top: 88px;
  padding-bottom: 88px;
}

/* the adjacent-sibling form skips the first section, so no rule appears
   immediately under the floating nav */
.section + .section {
  border-top: 1px solid var(--vd-line-soft);
}

/* sections that already draw their own rule or sit on a dark ground */
.section.footer,
.section.footer + .section {
  border-top: 0;
}

@media screen and (max-width: 640px) {
  .section {
    padding-top: 56px;
    padding-bottom: 56px;
  }
}
