/*
Theme Name: OnTheSpot
Description: The OnTheSpot Theme
Author: UX Themes
Template: flatsome
Version: 3.6.2
*/

/* Neue Haas Unica: On The Spot's own font files from onthespot.net. Flatsome "Disable fonts" is on, so Lato is not loaded. */
/* The files carry different vertical metrics per platform (hhea 750/250 on macOS, usWin 1166/340 on Windows),
   which made the yellow <mark> box and button text sit differently on Windows. The overrides give every
   platform one box: .80em above the baseline and .20em below, the XD highlight proportions. */
@font-face {
  font-family: "Neue Haas Unica";
  src: url("assets/fonts/neue-haas-unica-light.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
  ascent-override: 80%;
  descent-override: 20%;
  line-gap-override: 0%;
}

@font-face {
  font-family: "Neue Haas Unica";
  src: url("assets/fonts/neue-haas-unica-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  ascent-override: 80%;
  descent-override: 20%;
  line-gap-override: 0%;
}

body,
h1, h2, h3, h4, h5, h6,
.heading-font,
.nav > li > a,
button,
input,
select,
textarea {
  font-family: "Neue Haas Unica", Arial, Helvetica, sans-serif;
}

/* The header layout and footer block are configured in Flatsome Customizer. */
:root {
  --ots-cream: #fffcf5;
  --ots-ink: #252324;
  --ots-yellow: #ffe600;
}

#header .header-main {
  background: var(--ots-cream);
}

#header.transparent .header-main {
  background: transparent;
}

/* Flatsome gives the sticky header a drop shadow (.header-wrapper.stuck); the design has none (Marker.io OTS-54). */
#header .header-wrapper.stuck {
  box-shadow: none;
}

#header .header-inner {
  max-width: none;
  padding-inline: clamp(20px, 2.6vw, 50px); /* Same gutter as .ots-section (XD: 50px on 1920). */
}

#header #logo {
  margin-right: 0;
}

#header .header-main .flex-left.hide-for-medium {
  justify-content: center;
}

#header .header-nav-main.nav-left {
  justify-content: center;
}

#header #logo img {
  max-height: none;
}

/* Flatsome selects the light logo by page template; project singles use a filter instead. */
body.single-ots_project #header.transparent #logo .header-logo {
  display: none !important;
}

body.single-ots_project #header.transparent #logo .header-logo-dark {
  display: block !important;
}

#header .header-nav-main > li > a {
  color: var(--ots-ink);
  font-size: clamp(12px, .87vw, 15px);
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}

#header .header-nav-main.nav-left > li {
  margin: 0 clamp(5px, .65vw, 12px);
}

/* Contact remains in the mobile menu; the desktop quote button is its entry point. */
#header .header-nav-main.nav-left > #menu-item-125 {
  display: none;
}

/* Yellow marker hugs the text: painted on the content box (line-height = text height), not the padded link.
   Hover/focus sweeps it in from the left like the card markers in sections.css. */
#header .header-nav-main > li > a {
  line-height: 1.2;
  background: linear-gradient(var(--ots-yellow), var(--ots-yellow)) left / 0 100% no-repeat content-box;
  transition: background-size .45s ease, color .2s ease;
}

#header .header-nav-main > li > a:is(:hover, :focus-visible),
#header .header-nav-main > li.current-menu-item > a,
#header .header-nav-main > li.current-page-ancestor > a {
  background-size: 100% 100%;
}

#header.transparent .header-nav-main > li > a,
#header.transparent .ots-site-lang {
  color: #fff;
}

#header.transparent .header-nav-main > li > a:is(:hover, :focus-visible),
#header.transparent .header-nav-main > li.current-menu-item > a,
#header.transparent .header-nav-main > li.current-page-ancestor > a {
  color: var(--ots-ink);
}

body.page-id-51 #header .header-nav-main > li.current-menu-item > a,
body.page-id-52 #header .header-nav-main > li:has(> a[href*="#showroom"]) > a {
  background: none;
}

body.page-id-51 #header.transparent .header-nav-main > li.current-menu-item > a {
  color: #fff;
}

#header.transparent .header-nav-main.nav-left > li:last-child {
  display: none;
}

#header .ots-site-lang {
  display: inline-block;
  color: var(--ots-ink);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .03em;
  white-space: nowrap;
}

/* WPML language switcher (Flatsome "Languages" header element): the trigger already shares the menu's
   yellow marker; the dropdown drops Flatsome's white framed box and arrow and shows the languages as bare
   menu-sized labels in the header's text colour (ink, white over a transparent header) with the same
   marker sweep on hover/focus. */
#header .header-language-dropdown::before,
#header .header-language-dropdown::after {
  display: none;
}

#header .header-language-dropdown .icon-angle-down {
  margin-left: 4px;
  font-size: .85em;
}

#header .header-language-dropdown .nav-dropdown {
  left: 0; /* Flatsome offsets dropdowns by -15px for its padded box; bare labels line up with the trigger. */
  min-width: 0;
  padding: 4px 0;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
}

#header .header-language-dropdown .nav-dropdown > li > a {
  display: block;
  width: max-content;
  margin: 0;
  padding: 6px 0;
  border: 0;
  color: var(--ots-ink);
  font-size: clamp(12px, .87vw, 15px);
  font-weight: 500;
  line-height: 1.2;
  white-space: nowrap;
  background: linear-gradient(var(--ots-yellow), var(--ots-yellow)) left / 0 100% no-repeat content-box;
  transition: background-size .45s ease;
}

#header.transparent .header-language-dropdown .nav-dropdown > li > a {
  color: #fff;
}

#header .header-language-dropdown .nav-dropdown > li > a:is(:hover, :focus-visible),
#header.transparent .header-language-dropdown .nav-dropdown > li > a:is(:hover, :focus-visible) {
  background-size: 100% 100%;
  color: var(--ots-ink);
}

/* The trigger already names the current language; Flatsome lists it anyway and ignores WPML's
   "show current language" option, so it is hidden here. */
#header .header-language-dropdown .nav-dropdown > li.active {
  display: none;
}

#header .header-language-dropdown .image-icon,
#header .header-language-dropdown .icon-image {
  display: none;
}

/* Marker.io OTS-58: on phones the logo is flush left and the language trigger sits just left of the burger at the
   far right (Customizer: logo_position_mobile=left, mobile right column = languages, menu icon). The narrower
   column must not wrap "English" and its chevron onto two lines. */
@media (max-width: 849px) {
  #header .show-for-medium .header-language-dropdown > a {
    flex-wrap: nowrap;
    white-space: nowrap;
  }

  /* Bare white labels over a hero photo are hard to read and too small to tap on a phone, so the list becomes a
     cream card under the trigger, right-aligned with it, with 44px rows (same card as in the mobile menu). */
  #header .show-for-medium .header-language-dropdown .nav-dropdown {
    left: auto;
    right: 0;
    min-width: 170px;
    margin-top: 6px;
    padding: 6px 0;
    border: 1px solid #e2ddd2;
    background: var(--ots-cream);
    box-shadow: 0 10px 30px rgba(19, 18, 18, .14);
  }

  #header .show-for-medium .header-language-dropdown .nav-dropdown > li > a,
  #header.transparent .show-for-medium .header-language-dropdown .nav-dropdown > li > a {
    width: auto;
    padding: 12px 18px;
    color: var(--ots-ink);
    font-size: 15px;
    line-height: 20px;
  }

  #header .show-for-medium .header-language-dropdown .icon-angle-down {
    transition: transform .2s ease;
  }

  #header .show-for-medium .header-language-dropdown.current-dropdown .icon-angle-down {
    transform: rotate(180deg);
  }
}

#header .header-button-1 .button {
  min-height: 43px;
  margin: 0;
  padding: 0 25px;
  border: 1px solid var(--ots-ink);
  border-radius: 99px;
  background: var(--ots-ink);
  box-shadow: none;
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  line-height: 41px;
  letter-spacing: 0;
  text-transform: none;
}

#header .header-button-1 .button:hover,
#header .header-button-1 .button:focus-visible {
  background: var(--ots-yellow);
  border-color: var(--ots-yellow);
  color: var(--ots-ink);
}

#header.transparent .header-button-1 .button {
  background: #fff;
  border-color: #fff;
  color: var(--ots-ink);
}

#header.transparent .header-button-1 .button:hover,
#header.transparent .header-button-1 .button:focus-visible {
  background: var(--ots-yellow);
  border-color: var(--ots-yellow);
}

.ots-site-anchor {
  display: block;
  position: relative;
  top: -90px;
  height: 0;
  visibility: hidden;
}

/* Marker.io OTS-12: in-page anchors between sections (<span id="ots-philosophy"></span> on About) are wrapped in <p> by wpautop; the
   paragraph's bottom margin showed the white page background between two sections. The anchor keeps working, the paragraph takes no space. */
.content-area > p:has(> span[id]:only-child:empty) {
  margin: 0;
}

.ots-site-footer {
  background: var(--ots-cream);
  color: var(--ots-ink);
  /* XD: 120px above the footer content on the 1920 artboard; same side gutter as header and sections. */
  padding: clamp(88px, 6.25vw, 120px) clamp(20px, 2.6vw, 50px) 48px;
}

.ots-site-footer__inner,
.ots-site-footer__bottom {
  max-width: 1820px;
  margin: 0 auto;
}

.ots-site-footer__inner {
  display: grid;
  /* XD01 column lines at 50 / 1121 / 1427 on 1920, shared with the section grids. */
  grid-template-columns: minmax(240px, 1071fr) minmax(160px, 306fr) minmax(230px, 443fr);
  gap: 0;
}

.ots-site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 26px;
  align-items: center;
  margin-top: clamp(100px, 12vw, 205px);
  color: #8d8c88;
}

.ots-site-footer__bottom small {
  font-size: 11px;
  line-height: 1.5;
}

.ots-site-footer__utility {
  display: flex;
  flex-wrap: wrap;
  gap: 9px 19px;
  align-items: center;
}

.ots-site-footer h2 {
  margin: 0 0 27px;
  color: #aaa9a3;
  font-size: 17px;
  font-weight: 400;
  line-height: 1.2;
}

.ots-site-footer a,
.ots-site-footer__column > span {
  display: block;
  width: fit-content;
  margin-bottom: 10px;
  color: var(--ots-ink);
  font-size: 16px;
  line-height: 1.45;
  text-decoration: none;
}

/* Marker.io OTS-10: saving the footer block in the visual editor wraps its links in <p> and adds <br> after each one (seen on staging),
   which doubled the link spacing. Those wrappers and breaks take no space; the address keeps its own line break. */
.ots-site-footer :is(.ots-site-footer__inner, .ots-site-footer__brand, .ots-site-footer__explore, .ots-site-footer__column, .ots-site-footer__contact, .ots-site-footer__bottom) > p {
  display: contents;
}

.ots-site-footer a + br {
  display: none;
}

.ots-site-footer a:hover,
.ots-site-footer a:focus-visible {
  color: #850a2b;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.ots-site-footer__logo img {
  display: block;
  width: min(275px, 100%);
  height: auto;
}

.ots-site-footer__social {
  display: flex;
  gap: 12px;
  margin-top: 57px;
}

.ots-site-footer__social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 43px;
  height: 43px;
  margin: 0;
  border: 1px solid var(--ots-ink);
  border-radius: 50%;
  font-size: 18px;
  line-height: 1;
}

.ots-site-footer__spaces {
  margin-top: 37px;
}

.ots-site-footer__contact address {
  margin: 0 0 32px;
  color: var(--ots-ink);
  font-size: 16px;
  font-style: normal;
  line-height: 1.5;
}

/* Same secondary pill as the contact CTAs, e.g. "Explore cases" (Teamwork 37355792): outline without an arrow, black on hover. */
.ots-site-footer .ots-site-footer__cta {
  display: inline-flex;
  align-items: center;
  min-height: clamp(44px, 2.76vw, 53px);
  margin-top: 30px;
  padding: 0 clamp(24px, 2.1vw, 40px);
  border: 1px solid var(--ots-ink);
  border-radius: 100px;
  background: transparent;
  color: var(--ots-ink);
  font-size: clamp(15px, 1.15vw, 22px);
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: -.01em;
}

.ots-site-footer .ots-site-footer__cta:hover,
.ots-site-footer .ots-site-footer__cta:focus-visible {
  background: var(--ots-ink);
  color: #fff;
  text-decoration: none;
}

#footer .absolute-footer {
  display: none;
}

.ots-site-footer .ots-site-footer__utility a {
  margin: 0;
  color: #8d8c88;
  font-size: 11px;
}

@media (max-width: 1200px) {
  #header .header-nav-main > li > a { font-size: 12px; }
  #header .header-nav-main.nav-left > li { margin: 0 4px; }
  #header #logo { margin-right: 20px; }
  .ots-site-footer__inner { gap: 42px; }
}

@media (max-width: 849px) {
  #header .header-main { min-height: 70px; }
  #header .header-inner { padding-inline: 20px; }
  #header #logo { margin-right: 0; }
  .ots-site-footer__inner { grid-template-columns: 1fr 1fr; gap: 70px 35px; }
  .ots-site-footer__brand { grid-column: 1 / -1; }
  .ots-site-footer__bottom { margin-top: 110px; }
}

@media (max-width: 549px) {
  .ots-site-footer { padding: 88px 20px 40px; }
  .ots-site-footer__inner { grid-template-columns: 1fr; gap: 62px; }
  .ots-site-footer__brand { grid-column: auto; }
  .ots-site-footer__social { margin-top: 35px; }
  .ots-site-footer h2 { margin-bottom: 20px; }
  .ots-site-footer__spaces { margin-top: 40px; }
  .ots-site-footer__bottom { margin-top: 95px; }
}

/* Keep the seven-item desktop navigation on one line near Flatsome's breakpoint. */
@media (min-width: 850px) and (max-width: 960px) {
  #header .header-main .hide-for-medium { display: none !important; }
  #header .header-main .show-for-medium { display: flex !important; }
  #header .header-main .header-inner { position: relative; justify-content: center; }
  #header .header-main #logo { position: absolute; left: 50%; margin: 0; transform: translateX(-50%); }
  #header .header-main .show-for-medium.flex-left { position: absolute; left: 28px; }
}

/* Marker.io OTS-80: header and footer buttons share the site's button hover (sections.css): no lift, colours change
   together over .35s, and no arrows in the label. */
#header .header-button-1 .button,
.ots-site-footer .ots-site-footer__cta {
  transition: background-color .35s ease, border-color .35s ease, color .35s ease;
}

#header .header-button-1 .button:is(:hover, :focus-visible),
.ots-site-footer .ots-site-footer__cta:is(:hover, :focus-visible) {
  transform: none;
  box-shadow: none;
}

:is(#header .header-button-1 .button, .ots-site-footer .ots-site-footer__cta) .ots-arrow {
  display: none;
}
