/* ==========================================================
   JLSR - stylesheet
   Colours and sizes measured from the original Wix site.
   ========================================================== */

/* ---------- Fonts (self-hosted, no Google requests) ---------- */
@font-face {
  font-family: "Wix Madefor Text";
  src: url("../fonts/wix-madefor-text-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
/* Tinos = free look-alike of Times New Roman. Only downloaded on
   devices that do not have Times New Roman (e.g. Android). */
@font-face {
  font-family: "Tinos";
  src: url("../fonts/tinos-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Tinos";
  src: url("../fonts/tinos-latin-400-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

/* ---------- Design tokens ---------- */
:root {
  --red: #e80326;
  --red-dark: #c4021f;
  --black: #000000;
  --ink: #000209;
  --grey-bg: #edeef1;
  --grey-text: #999b9e;
  --card-other: #f5f6f7;
  --card-jlsr: #e8eaed;
  --coral: #fa6559;
  --white: #ffffff;

  --serif: "Times New Roman", Times, Tinos, serif;
  --sans: "Wix Madefor Text", "Helvetica Neue", Arial, sans-serif;

  --gutter: 80px;
  --header-h: 100px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4, h5 {
  font-family: var(--serif);
  font-weight: 400;
  margin: 0;
}
em { font-style: italic; }
p { margin: 0; }

.skip-link {
  position: absolute;
  left: 50%;
  top: -60px;
  transform: translateX(-50%);
  background: var(--white);
  color: #116dff;
  padding: 8px 14px;
  z-index: 100;
  border-radius: 4px;
}
.skip-link:focus { top: 12px; }

:focus-visible { outline: 2px solid var(--coral); outline-offset: 3px; }

.sprite { position: absolute; }

/* ---------- Shared pieces ---------- */
.pill {
  display: inline-block;
  background: var(--black);
  color: var(--white);
  font-size: 18px;
  line-height: 26px;
  letter-spacing: -0.01em;
  padding: 11px 30px;
  border-radius: 10px;
}

.btn {
  display: inline-block;
  background: var(--red);
  color: var(--white);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 24px;
  text-decoration: none;
  padding: 12px 22px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  transition: background-color .2s ease, transform .2s ease;
}
.btn:hover { background: var(--red-dark); }
.btn:active { transform: translateY(1px); }

.section { padding: 56px var(--gutter); text-align: center; }
.section--red { background: var(--red); color: var(--white); }
.section--grey { background: var(--grey-bg); }

.h-xl {           /* 69px headings on desktop */
  font-size: clamp(40px, 4.8vw, 69px);
  line-height: 1;
  letter-spacing: -0.02em;
}
.h-lg {           /* 56px headings on desktop */
  font-size: clamp(36px, 3.9vw, 56px);
  line-height: 1;
  letter-spacing: -0.02em;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: var(--black);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--gutter);
  transition: transform .3s ease;
}
.site-header.is-hidden { transform: translateY(-100%); }
.site-header__logo img { height: 33px; width: auto; }

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 50px;
}
.site-nav a {
  font-size: 16px;
  letter-spacing: 0.05em;
  text-decoration: none;
  text-underline-offset: 4px;
}
.site-nav a:hover,
.site-nav a[aria-current="page"] { text-decoration: underline; }

.menu-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 8px;
  margin-right: -8px;
  cursor: pointer;
  color: var(--white);
}
.menu-toggle span {
  display: block;
  width: 30px;
  height: 2px;
  background: currentColor;
  margin: 7px 0;
  transition: transform .25s ease, opacity .25s ease;
}
.menu-open .menu-toggle span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
.menu-open .menu-toggle span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* ---------- Home: hero ---------- */
.hero { padding: 69px var(--gutter) 64px; text-align: center; }
.hero h1 { max-width: 790px; margin: 0 auto; }
.hero__text { margin: 51px auto 0; max-width: 940px; }
.hero__text p + p { margin-top: 24px; }
.hero .btn { margin-top: 50px; }

/* ---------- Home: services ---------- */
.services { padding-top: 53px; padding-bottom: 64px; }
.services h2 { max-width: 500px; margin: 25px auto 0; }
.services__grid {
  list-style: none;
  margin: 71px auto 0;
  padding: 0;
  max-width: 1190px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 70px;
  text-align: left;
}
.services__grid img { width: 100%; height: auto; aspect-ratio: 340 / 190; }
.services__grid h3 {
  font-size: 35px;
  line-height: 1.3;
  letter-spacing: -0.03em;
  margin: 40px 18px 0;
  max-width: 300px;
}
.services__grid p {
  font-size: 18px;
  line-height: 1.45;
  letter-spacing: -0.01em;
  margin: 18px 18px 0;
  max-width: 300px;
}

/* ---------- Home: how we work ---------- */
.steps { padding-top: 61px; padding-bottom: 80px; }
.steps h2 { margin-top: 27px; }
.steps__grid {
  list-style: none;
  margin: 50px auto 0;
  padding: 0;
  max-width: 960px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 60px;
}
.steps__grid img { height: 120px; width: auto; margin: 0 auto; }
.steps__grid h3 {
  font-size: 24px;
  line-height: 1.4;
  letter-spacing: -0.02em;
  margin-top: 24px;
}
.steps__grid p { max-width: 235px; margin: 26px auto 0; }

/* ---------- Home: comparison ---------- */
.compare { padding-top: 55px; padding-bottom: 0; position: relative; }
.compare h2 { max-width: 410px; margin: 22px auto 0; }
.compare__grid {
  margin: 48px auto 0;
  max-width: 850px;
  display: grid;
  grid-template-columns: 355px 362px;
  justify-content: center;
  column-gap: 126px;
  align-items: end;
  text-align: left;
}
.compare__col { display: flex; flex-direction: column; align-items: center; }
.compare__label {
  font-family: var(--serif);
  font-size: 20px;
  line-height: 1.3;
  color: var(--white);
  background: #8a8a8a;
  padding: 8px 22px;
  border-radius: 6px;
  margin-bottom: 14px;
}
.compare__badge {
  background: var(--black);
  border-radius: 6px;
  padding: 10px 26px;
  margin-bottom: 10px;
}
.compare__badge img { height: 28px; width: auto; }
.compare__card {
  list-style: none;
  margin: 0;
  width: 100%;
  border-radius: 10px;
}
.compare__card li { display: flex; align-items: flex-start; gap: 11px; }
.compare__card svg { flex: none; }
.compare__card--other {
  background: var(--card-other);
  color: var(--grey-text);
  padding: 14px 14px 18px 18px;
  margin-bottom: 14px;
}
.compare__card--other li { line-height: 30.4px; }
.compare__card--other svg { width: 21px; height: 19px; margin-top: 6px; }
.compare__card--jlsr {
  background: var(--card-jlsr);
  padding: 18px 26px 22px;
}
.compare__card--jlsr li { line-height: 1.4; padding: 6px 0; }
.compare__card--jlsr svg { width: 26px; height: 24px; margin-top: -1px; }

.compare__mark {
  width: 89px;
  height: 89px;
  background: var(--black);
  margin: 26px auto 0;
  display: grid;
  place-items: center;
  position: relative;
  margin-bottom: -44.5px;   /* hangs half over the next section */
  z-index: 2;
}
.compare__mark img { width: 62px; height: 62px; }

/* ---------- Home: final CTA ---------- */
.cta { padding-top: 94px; padding-bottom: 72px; }
.cta h2 { max-width: 420px; margin: 26px auto 0; }
.cta p { max-width: 330px; margin: 34px auto 0; line-height: 1.8; }
.cta .btn { margin-top: 42px; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--black);
  color: var(--white);
  padding: 30px var(--gutter) 34px;
  display: grid;
  grid-template-columns: 1.65fr 1fr 0.9fr;
  gap: 40px;
}
.site-footer__logo img { height: 42px; width: auto; }
.site-footer__tagline {
  font-family: var(--serif);
  font-size: clamp(34px, 3.2vw, 48px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-top: 18px;
  max-width: 380px;
}
.site-footer__sub { margin-top: 12px; }
.site-footer__legal {
  grid-column: 1 / -1;
  border-top: 1px solid #333;
  padding-top: 18px;
  margin-top: 6px;
  font-size: 14px;
  color: #b5b5b5;
}
.site-footer__social { display: flex; gap: 10px; margin-top: 18px; }
.site-footer__social a { display: block; width: 39px; height: 39px; }
.site-footer__social svg { width: 100%; height: 100%; }
.site-footer__heading {
  font-size: 20px;
  font-style: italic;
  line-height: 1.3;
  margin-top: 21px;
}
.site-footer ul { list-style: none; margin: 18px 0 0; padding: 0; }
.site-footer li + li { margin-top: 24px; }
.site-footer ul a { text-decoration: none; }
.site-footer ul a:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- Contact page ---------- */
.contact {
  padding: 80px var(--gutter) 100px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 600px);
  column-gap: 80px;
  align-items: start;
}
.contact__intro h1 {
  font-size: clamp(64px, 8vw, 116px);
  line-height: 1;
  letter-spacing: -0.02em;
  margin-top: 18px;
  max-width: 330px;
}
.contact__intro p {
  font-size: clamp(20px, 1.8vw, 26px);
  line-height: 1.5;
  max-width: 380px;
  margin-top: 55px;
}

.form { padding-top: 4px; }
.form__field { display: block; margin-bottom: 30px; }
.form__label { display: block; font-size: 16px; line-height: 24px; }
.form abbr { text-decoration: none; }
.form input[type="text"],
.form input[type="email"],
.form input[type="tel"],
.form select {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-bottom: 1px solid #8a8b8f;
  border-radius: 0;
  padding: 8px 0 9px;
  min-height: 42px;
  transition: border-color .2s ease;
}
.form input:hover, .form select:hover { border-bottom-color: var(--ink); }
.form input:focus, .form select:focus { outline: none; border-bottom: 2px solid var(--ink); padding-bottom: 8px; }
.form input:user-invalid { border-bottom-color: var(--red); }

.form__phone { display: flex; gap: 12px; }
.form__phone select { width: 96px; flex: none; cursor: pointer; }

.form fieldset { border: 0; margin: 0 0 22px; padding: 0; }
.form legend { padding: 0; font-size: 16px; line-height: 24px; }
.form__radios { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 10px; }
.form__radios label { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.form__radios input { width: 16px; height: 16px; margin: 0; accent-color: var(--ink); cursor: pointer; }

.form .btn { width: 100%; padding: 10px 22px; }
.form .btn[disabled] { opacity: .6; cursor: wait; }

.form__honeypot { position: absolute; left: -9999px; }
.form__status { margin-top: 18px; min-height: 24px; }
.form__status.is-error { color: var(--red); }
.form__success {
  border-left: 3px solid var(--red);
  padding: 8px 0 8px 18px;
}
.form__success h2 { font-size: 40px; line-height: 1.1; }
.form__success p { margin-top: 12px; }

/* ---------- 404 ---------- */
.not-found { padding: 120px var(--gutter); text-align: center; }
.not-found__title { margin-top: 25px; }
.not-found p { margin: 24px auto 40px; }

/* ==========================================================
   Responsive
   ========================================================== */
@media (max-width: 1100px) {
  :root { --gutter: 40px; }
  .services__grid { gap: 40px; }
  .compare__grid { grid-template-columns: 1fr 1fr; column-gap: 40px; }
  .contact { column-gap: 48px; }
}

@media (max-width: 767px) {
  :root { --gutter: 20px; --header-h: 80px; }

  .menu-toggle { display: block; }
  .site-header__logo img { height: 30px; }
  .site-nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    background: var(--black);
    padding: 24px var(--gutter) 36px;
    transform: translateY(-120%);
    visibility: hidden;
    transition: transform .3s ease, visibility .3s;
    z-index: -1;
  }
  .menu-open .site-nav { transform: none; visibility: visible; }
  .site-nav ul { flex-direction: column; gap: 22px; }
  .site-nav a { font-size: 22px; }

  .hero { padding-top: 56px; }
  .hero__text { margin-top: 32px; }
  .hero .btn { margin-top: 36px; }

  .services__grid,
  .steps__grid { grid-template-columns: 1fr; gap: 48px; }
  .services__grid { max-width: 420px; margin-top: 48px; }
  .services__grid h3, .services__grid p { margin-left: 0; margin-right: 0; }
  .services__grid h3 { margin-top: 24px; }

  .compare__grid { grid-template-columns: 1fr; row-gap: 36px; max-width: 420px; }

  .site-footer { grid-template-columns: 1fr 1fr; row-gap: 8px; }
  .site-footer__brand { grid-column: 1 / -1; }

  .contact { grid-template-columns: 1fr; row-gap: 48px; padding-top: 48px; }
  .contact__intro p { margin-top: 32px; }
  .form__radios { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
