/*
  MJ Labs — front page styles (views/home.body.php)
  ========================================
  @author    Jimmy Lindmark
  @copyright MJ STRATEGI TECH SOLUTIONS SL
  @license   All Rights Reserved

  The blog pages still use style.css; this file is only loaded by the front page.
*/
/* Brand tokens, the same values as the live site */
:root {
  --blue: #0c5adb; --blue-d: #0a46ad; --navy: #0b1f4d; --navy-2: #14306b;
  --peach: #fff8f4; --amber: #ffc34d; --ink: #1d2433; --muted: #5d6678; --line: #ecdfd8;
  --r: 22px; --shadow: 0 18px 44px rgba(11, 31, 77, .10);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; font-family: Nunito, system-ui, sans-serif; font-size: 17px; line-height: 1.6; color: var(--ink); background: #fff; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { margin: 0; font-family: Rajdhani, sans-serif; font-weight: 700; line-height: 1.1; color: var(--navy); }
p { margin: 0; }
a { color: var(--blue); }
a:hover { color: var(--blue-d); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; }

.wrap { max-width: 1160px; margin: 0 auto; padding: 0 clamp(16px, 5vw, 32px); }
section { padding: clamp(56px, 9vw, 104px) 0; }
.eyebrow { font-family: Rajdhani, sans-serif; font-weight: 700; font-size: 15px; letter-spacing: .14em; text-transform: uppercase; color: var(--blue); }
.head { display: grid; gap: 12px; max-width: 700px; margin-bottom: clamp(28px, 4vw, 48px); }
.head h2 { font-size: clamp(32px, 4.2vw, 46px); }
.lead { font-size: 19px; color: var(--muted); }

/* Buttons: pill shape, a visible press and focus state */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px; padding: 0 30px; border: 2px solid transparent; border-radius: 999px; font: 700 17px/1 Nunito, system-ui, sans-serif; text-decoration: none; cursor: pointer; transition: transform .12s, box-shadow .12s, background-color .12s; }
.btn:active { transform: translateY(1px) scale(.99); }
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 10px 22px rgba(12, 90, 219, .28); }
.btn-primary:hover { background: var(--blue-d); color: #fff; }
.btn-ghost { background: #fff; border-color: var(--navy); color: var(--navy); }
.btn-ghost:hover { background: var(--navy); color: #fff; }
.btn-amber { background: var(--amber); color: var(--navy); }
.btn-amber:hover { background: #ffb21f; color: var(--navy); }
.btn-small { min-height: 44px; padding: 0 22px; font-size: 16px; box-shadow: none; }

/* Header */
.top { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, .94); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; min-height: 44px; text-decoration: none; color: var(--navy); font: 700 26px/1 Rajdhani, sans-serif; letter-spacing: .04em; }
.brand img { width: 40px; height: 40px; object-fit: contain; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a:not(.btn) { display: inline-flex; align-items: center; min-height: 44px; color: var(--navy); font-weight: 600; font-size: 16px; text-decoration: none; }
.nav a:not(.btn):hover { color: var(--blue); }

/* Hero */
.hero { background: var(--peach); padding: clamp(40px, 6vw, 80px) 0 clamp(56px, 8vw, 96px); overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { font-size: clamp(40px, 5.4vw, 66px); line-height: 1.03; }
.hero .lead { font-size: 20px; max-width: 540px; }
.hero-text { display: grid; gap: 22px; justify-items: start; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; }
.ticks { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 26px; }
.ticks li { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 16px; color: var(--navy); }
.ticks svg { flex: none; }
.hero-media { position: relative; justify-self: center; width: 100%; max-width: 440px; }
.hero-media::before { content: ""; position: absolute; inset: -6% -10% auto auto; width: 62%; aspect-ratio: 1; border-radius: 50%; background: var(--amber); opacity: .55; }
.hero-media img { position: relative; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 28px; box-shadow: var(--shadow); }
.call { position: relative; margin: -84px 0 0 -8%; width: min(380px, 100%); background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 22px 24px; display: grid; gap: 6px; box-shadow: 0 22px 48px rgba(11, 31, 77, .18); }
.call-top { display: flex; align-items: center; gap: 14px; }
.call-icon { flex: none; width: 48px; height: 48px; border-radius: 50%; background: var(--amber); display: grid; place-items: center; }
.call h2 { font-size: 27px; }
.call p { font-size: 15px; color: var(--muted); }
.call-number { display: inline-flex; align-items: center; min-height: 44px; font: 700 32px/1 Rajdhani, sans-serif; color: var(--blue); text-decoration: none; }

/* Cards with a photo on top */
.cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; display: flex; flex-direction: column; transition: transform .18s, box-shadow .18s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.card-body { padding: 22px 24px 26px; display: grid; gap: 8px; }
.card h3 { font-size: 25px; }
.card p { font-size: 16px; color: var(--muted); }
.more { display: inline-flex; align-items: center; min-height: 44px; margin-top: 20px; font-weight: 700; }

/* Navy section: connect or replace */
.navy { background: var(--navy); color: #d5def2; }
.navy h2, .navy h3 { color: #fff; }
.navy .eyebrow { color: var(--amber); }
.navy .lead { color: #d5def2; }
.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(28px, 5vw, 64px); align-items: center; }
.split-photo { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--r); margin-top: 28px; }
.choices { display: grid; gap: 24px; }
.choice { background: var(--navy-2); border-radius: var(--r); padding: 32px; display: grid; gap: 12px; }
.choice h3 { font-size: 28px; }

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 26px; }
.steps li { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 18px; }
.num { width: 52px; height: 52px; border-radius: 50%; background: var(--blue); color: #fff; font: 700 26px/1 Rajdhani, sans-serif; display: grid; place-items: center; }
.steps h3 { font-size: 26px; margin-bottom: 4px; }
.steps p { font-size: 16px; color: var(--muted); }
.steps-photo { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r); box-shadow: var(--shadow); }

/* Prices */
.peach { background: var(--peach); }
.prices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; align-items: stretch; }
.price { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 34px; display: grid; gap: 18px; align-content: start; }
.price.pick { border: 2px solid var(--blue); box-shadow: var(--shadow); }
.price h3 { font-size: 28px; }
.amount { font: 700 46px/1 Rajdhani, sans-serif; color: var(--navy); }
.amount span { font: 600 17px/1 Nunito, system-ui, sans-serif; color: var(--muted); white-space: nowrap; }
.list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 16px; line-height: 1.5; }
.list li { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 10px; }
.list svg { margin-top: 2px; }
.note { margin-top: 24px; font-size: 15px; color: var(--muted); }

/* Terms */
.terms { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.term { border: 1px solid var(--line); border-radius: var(--r); padding: 26px 28px; display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 14px; }
.term strong { display: block; font: 700 23px/1.2 Rajdhani, sans-serif; color: var(--navy); margin-bottom: 4px; }
.term p { color: var(--muted); }

/* Contact */
.contact { background: var(--blue); color: #fff; }
.contact h2 { color: #fff; font-size: clamp(32px, 4.2vw, 46px); }
.contact-text { display: grid; gap: 16px; justify-items: start; }
.contact-text p { font-size: 19px; }
.contact-number { display: inline-flex; align-items: center; min-height: 44px; font: 700 34px/1 Rajdhani, sans-serif; color: #fff; text-decoration: none; }
.contact-number:hover { color: var(--amber); }
.form { background: #fff; border-radius: var(--r); padding: clamp(22px, 4vw, 34px); display: grid; gap: 16px; color: var(--ink); box-shadow: 0 22px 48px rgba(6, 26, 77, .28); }
.field { display: grid; gap: 6px; }
.field label { font-weight: 700; font-size: 15px; color: var(--navy); }
.field input, .field textarea { width: 100%; min-height: 48px; padding: 10px 14px; border: 1px solid #8a94a8; border-radius: 12px; font: inherit; font-size: 16px; color: var(--ink); }
.field textarea { resize: vertical; }
.form small { font-size: 14px; color: var(--muted); }

/* Footer */
.foot { background: var(--navy); color: #d5def2; padding: 40px 0; font-size: 15px; }
.foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px; }
.foot strong { display: block; font: 700 22px/1.2 Rajdhani, sans-serif; letter-spacing: .04em; color: #fff; }
.foot nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 22px; }
.foot a { display: inline-flex; align-items: center; min-height: 44px; color: #fff; }

/* Tablets */
@media (max-width: 980px) {
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .prices { grid-template-columns: minmax(0, 1fr); max-width: 520px; }
}
/* Phones */
@media (max-width: 760px) {
  .hero .wrap, .split, .terms { grid-template-columns: minmax(0, 1fr); }
  .hero-media { max-width: 380px; }
  .call { margin-left: 0; }
  .split-photo { margin-top: 20px; }
  .steps-photo { aspect-ratio: 3 / 2; }
}
@media (max-width: 560px) {
  .cards { grid-template-columns: minmax(0, 1fr); }
  .cta-row .btn { width: 100%; }
  .brand { font-size: 23px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .card { transition: none; }
}

/* Small helpers */
.nowrap { white-space: nowrap; }
.ticks svg, .list svg, .term svg { color: var(--blue); }
.call-icon svg { color: var(--navy); }
.head-tight { margin-bottom: 0; }
.note-strong { font-size: 18px; font-weight: 600; color: var(--navy); }

/* Header: brand, menu, languages, call button, menu button (phones) */
.top.is-stuck { box-shadow: 0 6px 20px rgba(11, 31, 77, .08); }
.nav { margin-left: auto; }
.langs { display: flex; gap: 2px; }
.langs a { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; border-radius: 999px; font-weight: 700; font-size: 14px; color: var(--navy); text-decoration: none; }
.langs a.active { background: var(--peach); color: var(--blue); }
.menu-toggle { display: none; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 12px; background: var(--peach); color: var(--navy); cursor: pointer; place-items: center; }
.menu-toggle:active { transform: scale(.96); }

/* Contact form: hidden spam trap, status line and the send button's states */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.lead-msg { margin: 0; min-height: 1.5em; font-size: 15px; font-weight: 600; }
.lead-msg.is-ok { color: #0a6b3d; }
.lead-msg.is-err { color: #b3261e; }
.btn[disabled] { cursor: default; }
.btn.is-busy::before { content: ""; width: 18px; height: 18px; border: 3px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Footer details and the back-to-top button */
.foot #legal-email a { display: inline; min-height: 0; }
.to-top { position: fixed; right: 18px; bottom: 18px; z-index: 15; width: 48px; height: 48px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; box-shadow: var(--shadow); opacity: 0; pointer-events: none; transition: opacity .2s; }
.to-top:hover { color: var(--amber); }
.to-top.is-visible { opacity: 1; pointer-events: auto; }

/* Narrow screens: the menu folds into a panel under the header */
@media (max-width: 980px) {
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; margin: 0; padding: 8px clamp(16px, 5vw, 32px) 16px; flex-direction: column; align-items: stretch; gap: 0; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 16px 28px rgba(11, 31, 77, .10); }
  .nav.is-open { display: flex; }
  .nav a:not(.btn) { min-height: 48px; font-size: 18px; }
  .langs { margin-left: auto; }
  .menu-toggle { display: grid; }
}
@media (max-width: 560px) {
  .top .btn { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .btn.is-busy::before { animation-duration: 2s; }
  .to-top { transition: none; }
}

/* Footer: the row of policy links under the company details */
.foot-legal { flex-basis: 100%; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, .16); }
