/* Shared styles for every page of the unite site. Page-specific styles live in each page. */

/* ---------- Fonts (the original site's uploaded fonts, self-hosted) ---------- */
@font-face { font-family: "u-title";   src: url("/assets/fonts/ac2910_8e8d1062b0e4408b918aabdbc690f710.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "u-body";    src: url("/assets/fonts/ac2910_fe448f8ee975428697cb75c0878e3969.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "u-alt";     src: url("/assets/fonts/ac2910_d846a4de8dc24308aa4200fa9f1edd65.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "u-text";    src: url("/assets/fonts/e86b93_256571f42f664d6b8905b31130de7542.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "u-display"; src: url("/assets/fonts/e86b93_cdf653ae53b1462d84e56f79c881e409.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "u-button";  src: url("/assets/fonts/e86b93_49b8690140d545e8b21e8e4f0399ad7c.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "u-form";    src: url("/assets/fonts/e86b93_d28544ed4a4c4d9aa09ef84296cf9347.woff2") format("woff2"); font-display: swap; }

:root {
  --teal: #00a1a7;
  --teal-dark: #008a8f;
  --yellow: #ffde59;
  --ink: #4b4f51;
  --muted: #6b6b77;
  --soft: #f5f6f7;
  --field-border: #eeeeee;
  --white: #fff;
  --error: #df3131;
  --f-title: "u-title", Arial, sans-serif;
  --f-body: "u-body", Arial, sans-serif;
  --f-alt: "u-alt", Arial, sans-serif;
  --f-text: "u-text", Arial, sans-serif;
  --f-display: "u-display", Arial, sans-serif;
  --f-button: "u-button", Arial, sans-serif;
  --f-form: "u-form", Arial, sans-serif;
  --page-pad: clamp(16px, 5.3vw, 77px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--f-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3, h4, p, figure, blockquote, ul { margin: 0; font-weight: 400; }
ul { padding: 0; list-style: none; }
img, video { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); opacity: 0; pointer-events: none; } /* no offsets: in RTL a negative left widens the page */

/* ---------- Common building blocks ---------- */
.accent { display: block; width: 33px; border-top: 8px solid var(--yellow); }
.accent--center { margin: 0 auto; }
.section-title {
  font-family: var(--f-display);
  font-size: clamp(34px, 3.8vw, 54.64px);
  line-height: 1;
  color: var(--teal);
}
.section-title--white { color: var(--white); }
.center { text-align: center; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: min(100%, 335px);
  height: 48px;
  padding: 0 16px;
  border: 0;
  border-radius: 8px;
  background: var(--yellow);
  color: var(--ink);
  font-family: var(--f-title);
  font-size: 16px;
  text-decoration: none;
  cursor: pointer;
  transition: opacity .2s;
}
.btn:hover { opacity: .85; }

/* ---------- Header ---------- */
.site-header {
  position: relative;
  z-index: 40;
  height: 90px;
  background: var(--white);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  padding: 0 clamp(16px, 3vw, 44px) 0 clamp(16px, 2.5vw, 36px);
}
.site-header__logo img { width: 115px; height: auto; }
.nav { display: flex; gap: clamp(16px, 2.2vw, 32px); }
.nav a {
  position: relative;
  padding: 10px 0;
  font-family: var(--f-button);
  font-size: 14px;
  color: var(--ink);
  text-decoration: none;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--teal); }
.nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  inset: auto 0 2px 0;
  border-bottom: 1px solid var(--teal);
}
.menu-toggle { display: none; }

/* ---------- Clients marquee ---------- */
.clients { overflow: hidden; direction: rtl; }
.clients__track { display: flex; width: max-content; animation: marquee 60s linear infinite; }
.clients__track img { flex: none; width: clamp(150px, 13.8vw, 199px); height: auto; aspect-ratio: 2 / 1; object-fit: contain; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(50%); } }

/* ---------- Testimonials ---------- */
.testimonials { padding: clamp(48px, 6vw, 86px) 20px clamp(56px, 6.5vw, 94px); }
.testimonials__icon { display: block; margin: 0 auto 10px; }
.testimonials .section-title { margin-bottom: clamp(28px, 4.4vw, 63px); }
.testimonials__cards {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: clamp(18px, 2.2vw, 32px); max-width: 1063px; margin: 0 auto;
}
.quote {
  display: flex; flex-direction: column; align-items: center;
  flex: 1 1 260px; max-width: 333px; min-height: 278px;
  padding: 46px 30px 28px;
  background: var(--white);
  border-radius: 27px;
  box-shadow: 0 1.14px 11.38px 3.41px rgba(0, 0, 0, 0.08);
  text-align: center;
}
.quote__text { flex: 1; max-width: 261px; padding-bottom: 20px; font-family: var(--f-text); font-size: 16px; line-height: 1.3; }
.quote__bar { width: 48px; border-top: 8px solid var(--yellow); }
.quote__name { margin-top: 6px; font-family: var(--f-display); font-size: 26px; line-height: 1.3; color: var(--teal); }

/* ---------- Lead form (contact section) ---------- */
.field { margin-bottom: 16px; }
.field__label {
  display: block;
  margin-bottom: 8px;
  font-family: var(--f-button);
  font-size: 15px;
  line-height: 18px;
  color: var(--teal);
}
.input {
  display: block;
  width: 100%;
  height: 44px;
  padding: 8px 12px;
  background: var(--soft);
  border: 2px solid var(--field-border);
  border-radius: 8px;
  font-family: var(--f-text);
  font-size: 16px;
  color: var(--ink);
  outline: none;
  transition: border-color .15s;
  -webkit-appearance: none;
  appearance: none;
}
textarea.input { height: 92px; resize: vertical; }
.input[type="email"], .input[type="tel"] { direction: ltr; text-align: right; }
.input:hover, .input:focus { border-color: var(--teal); }
.input.is-invalid { border-color: var(--error); }
.field__error { margin-top: 4px; font-family: var(--f-text); font-size: 14px; line-height: 1.3; color: var(--error); }
.radios { display: grid; gap: 12px; }
.radio { display: flex; align-items: center; gap: 10px; cursor: pointer; font-family: var(--f-body); font-size: 16px; line-height: 24px; }
.radio input { width: 16px; height: 16px; margin: 0; accent-color: var(--teal); }
.radios.is-invalid .radio { color: var(--error); }
.check {
  display: flex; align-items: center; gap: 12px;
  margin: 4px 0 14px; cursor: pointer;
  font-family: var(--f-body); font-size: 16px; line-height: 24px;
}
.check input { width: 16px; height: 16px; margin: 0; accent-color: var(--teal); flex: none; }
.form-submit {
  width: 100%; height: 41px; border: 0; border-radius: 0;
  background: var(--yellow); color: var(--ink);
  font-family: var(--f-button); font-size: 16px;
  cursor: pointer; transition: opacity .2s;
}
.form-submit:hover { opacity: .85; }
.form-submit:disabled { opacity: .6; cursor: default; }
.form-status { margin-top: 10px; font-family: var(--f-text); font-size: 16px; text-align: center; color: var(--teal); }
.form-status:empty { display: none; }
.form-status.is-error { color: var(--error); }

/* ---------- Contact (top of the footer) ---------- */
.contact { padding-top: 96px; padding-bottom: 46px; }
.contact .section-title { margin-top: 5px; }
.contact__card {
  display: flex; justify-content: space-between; gap: 40px;
  max-width: 1173px; margin: 64px auto 0;
  padding: 39px 74px 39px 73px;
  background: var(--white); border-radius: 27.32px;
  color: var(--ink); text-align: right;
}
.contact__form { flex: 0 1 548px; scroll-margin-top: 40px; } /* buttons jump here: the whole form fits on screen */
.contact__row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; }
.contact .field { margin-bottom: 32px; }
.contact fieldset { border: 0; padding: 0; margin: 0 0 22px; }
.contact__img { flex: 0 0 407px; width: 407px; height: 687px; object-fit: cover; }

@media (max-width: 1100px) {
  .contact__card { padding: 32px; }
  .contact__img { flex-basis: 300px; width: 300px; }
}
@media (max-width: 750px) {
  .contact { padding-top: 56px; }
  .contact__card { flex-direction: column; padding: 28px 20px; margin-top: 36px; }
  .contact__row { grid-template-columns: 1fr; }
  .contact .field { margin-bottom: 20px; }
  .contact__img { width: 100%; flex: none; height: 320px; order: 2; } /* form first on mobile */
  .contact__form { scroll-margin-top: 20px; }
}

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--white); text-align: center; padding: 0 20px 8px; }
.footer__logo { width: 164px; height: auto; margin: 0 auto; }
.footer__cols {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 30px 20px;
  max-width: 1228px; margin: clamp(32px, 2.8vw, 40px) auto 0;
}
.footer__col { display: flex; flex-direction: column; align-items: center; flex: 0 1 349px; }
.footer__head { margin-bottom: 26px; font-family: var(--f-title); font-size: 16px; line-height: 1.4; color: var(--yellow); }
.footer__col a, .footer__col p {
  margin-bottom: 23px; font-family: var(--f-body); font-size: 15px; line-height: 1.4;
  color: var(--white); text-decoration: none;
}
.footer__col a:hover { text-decoration: underline; }
.social { display: flex; gap: 19px; margin-top: 23px; }
.footer__col .social a { margin: 0; }
.social img { width: 39px; height: 39px; }
.footer__bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 16px 40px;
  max-width: 1226px; margin: clamp(56px, 8.3vw, 120px) auto 0;
  font-family: var(--f-body); font-size: 13px; line-height: 1.4;
}
.footer__legal { text-align: right; }
.footer__credit { text-align: left; }
.footer__credit a { font-family: var(--f-title); text-decoration: none; }
.footer__legal a { text-decoration: underline; }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .clients__track { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Mobile header: hamburger + full-screen menu ---------- */
@media (max-width: 900px) {
  .site-header { height: 70px; }
  .menu-toggle {
    display: grid; place-items: center;
    width: 44px; height: 44px; padding: 0;
    background: none; border: 0; cursor: pointer; color: var(--ink);
  }
  .nav {
    position: fixed; inset: 0; z-index: 50;
    flex-direction: column; align-items: flex-start; gap: 40px;
    padding: 110px 48px 40px;
    background: var(--white);
    font-size: 18px;
    transform: translateX(100%); transition: transform .3s ease; visibility: hidden;
  }
  .nav a { font-size: 18px; }
  .nav.is-open { transform: none; visibility: visible; }
  .menu-close { position: absolute; top: 18px; right: 22px; }
  body.menu-open { overflow: hidden; }

  .footer__cols { flex-direction: column; align-items: center; }
  .footer__col { flex: none; }
  .footer__bottom { flex-direction: column; align-items: center; }
  .footer__legal, .footer__credit { text-align: center; }
}
@media (min-width: 901px) { .menu-close { display: none; } }

/* ---------- Cookie consent bar ---------- */
.cookie-bar {
  position: fixed; inset-inline: 16px; bottom: 16px; z-index: 1000;
  max-width: 760px; margin-inline: auto;
  display: flex; align-items: center; gap: 16px 24px;
  padding: 18px 22px; border-radius: 14px;
  background: var(--white); color: var(--ink);
  box-shadow: 0 10px 40px rgba(10, 79, 82, .18); border-top: 5px solid var(--yellow);
  font-family: var(--f-body); font-size: 15px; line-height: 1.5;
  animation: cookie-in .35s ease-out;
}
.cookie-bar__text { margin: 0; flex: 1; }
.cookie-bar__text a { color: var(--teal-dark); text-decoration: underline; white-space: nowrap; }
.cookie-bar__actions { display: flex; gap: 10px; flex-shrink: 0; }
.cookie-bar__btn {
  font: inherit; font-family: var(--f-button); font-size: 15px; cursor: pointer;
  padding: 10px 20px; border-radius: 40px; border: 2px solid var(--teal); white-space: nowrap;
}
.cookie-bar__btn--yes { background: var(--teal); color: var(--white); }
.cookie-bar__btn--yes:hover { background: var(--teal-dark); border-color: var(--teal-dark); }
.cookie-bar__btn--no { background: var(--white); color: var(--teal-dark); }
.cookie-bar__btn:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }
@keyframes cookie-in { from { transform: translateY(20px); opacity: 0; } }
@media (max-width: 640px) {
  .cookie-bar { flex-direction: column; align-items: stretch; inset-inline: 10px; bottom: 10px; padding: 16px; font-size: 14px; }
  .cookie-bar__actions { justify-content: stretch; }
  .cookie-bar__btn { flex: 1; }
}
@media (prefers-reduced-motion: reduce) { .cookie-bar { animation: none; } }
