/* Medeboa Ventures Ltd - site styles */
:root {
  --navy: #0b2a4a;
  --navy-deep: #071c33;
  --blue: #1279c9;
  --sky: #35b6f2;
  --gold: #f4a51c;
  --gold-deep: #d98c06;
  --ink: #152334;
  --body: #46566a;
  --line: #e1e8ef;
  --tint: #f2f7fb;
  --white: #fff;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(11, 42, 74, .10);
  --head: 'Plus Jakarta Sans', 'Segoe UI', system-ui, sans-serif;
  --text: 'Inter', 'Segoe UI', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--text); font-size: 17px; line-height: 1.65; color: var(--body); background: var(--white); }
img { display: block; max-width: 100%; }
a { color: var(--blue); }
h1, h2, h3 { font-family: var(--head); color: var(--ink); line-height: 1.18; margin: 0 0 .5em; letter-spacing: -.015em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.5rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

.wrap { width: min(1180px, 100% - 40px); margin-inline: auto; }
.narrow { max-width: 680px; }
.center { text-align: center; }
.muted { color: #7a8898; font-weight: 400; font-size: .92em; }
.skip { position: absolute; left: -999px; top: 0; background: var(--gold); color: var(--ink); padding: 10px 16px; z-index: 100; }
.skip:focus { left: 10px; top: 10px; }

.eyebrow { font-family: var(--head); font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--blue); margin: 0 0 .9em; }
.eyebrow--light { color: var(--sky); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 24px; border-radius: 999px; font-family: var(--head); font-weight: 700; font-size: .98rem; text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: transform .15s, background .15s, color .15s, border-color .15s; }
.btn:hover { transform: translateY(-2px); }
.btn--gold { background: var(--gold); color: var(--navy-deep); }
.btn--gold:hover { background: #ffb935; }
.btn--navy { background: var(--navy); color: var(--white); }
.btn--navy:hover { background: var(--blue); }
.btn--ghost { border-color: rgba(255, 255, 255, .7); color: var(--white); }
.btn--ghost:hover { background: var(--white); color: var(--navy); }
.btn--outline { border-color: var(--navy); color: var(--navy); }
.btn--outline:hover { background: var(--navy); color: var(--white); }

/* Top bar and header */
.topbar { background: var(--navy-deep); color: #b9c9da; font-size: .85rem; }
.topbar__in { display: flex; justify-content: space-between; gap: 16px; padding-block: 8px; }
.topbar__phones { display: flex; gap: 18px; white-space: nowrap; }
.topbar a { color: var(--white); text-decoration: none; font-weight: 500; }
.topbar a:hover { color: var(--gold); }

.header { position: sticky; top: 0; z-index: 50; background: var(--white); border-bottom: 1px solid var(--line); transition: box-shadow .2s; }
.header.is-stuck { box-shadow: 0 6px 24px rgba(11, 42, 74, .10); }
.header__in { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 74px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; flex-shrink: 0; }
.brand__mark { width: 44px; height: 44px; }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__text strong { font-family: var(--head); font-weight: 800; font-size: 1.3rem; color: var(--navy); letter-spacing: -.02em; }
.brand__text em { font-style: normal; font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--blue); font-weight: 600; }

.nav { display: flex; align-items: center; gap: 2px; }
.nav a { padding: 10px 12px; border-radius: 8px; font-family: var(--head); font-weight: 600; font-size: .93rem; color: var(--ink); text-decoration: none; white-space: nowrap; }
.nav a:hover { color: var(--blue); background: var(--tint); }
.nav a.on { color: var(--blue); box-shadow: inset 0 -3px 0 var(--gold); border-radius: 8px 8px 0 0; }
.nav .nav__cta { margin-left: 8px; background: var(--navy); color: var(--white); padding: 10px 20px; border-radius: 999px; }
.nav .nav__cta:hover { background: var(--blue); color: var(--white); }

.burger { display: none; width: 46px; height: 46px; border: 1px solid var(--line); border-radius: 10px; background: var(--white); cursor: pointer; padding: 12px 11px; flex-direction: column; justify-content: space-between; }
.burger span { display: block; height: 2px; background: var(--navy); border-radius: 2px; transition: transform .2s, opacity .2s; }
.burger.is-open span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* Hero slider */
.hero { position: relative; height: clamp(540px, 82vh, 760px); background: var(--navy-deep); overflow: hidden; overflow: clip; }
.slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity 1.2s ease, visibility 0s linear 1.2s; }
.slide.is-active { opacity: 1; visibility: visible; transition: opacity 1.2s ease, visibility 0s; z-index: 1; }
.slide__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); transition: transform 8s ease-out; }
.slide.is-active .slide__img { transform: scale(1); }
.slide__shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(7, 28, 51, .92) 0%, rgba(7, 28, 51, .72) 45%, rgba(7, 28, 51, .25) 100%); }
.slide__body { position: relative; height: 100%; display: flex; flex-direction: column; justify-content: center; padding-bottom: 50px; }
.slide__body > * { max-width: 640px; opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.slide.is-active .slide__body > * { opacity: 1; transform: none; }
.slide.is-active .slide__body > :nth-child(1) { transition-delay: .35s; }
.slide.is-active .slide__body > :nth-child(2) { transition-delay: .5s; }
.slide.is-active .slide__body > :nth-child(3) { transition-delay: .65s; }
.slide.is-active .slide__body > :nth-child(4) { transition-delay: .8s; }
.slide__title { color: var(--white); font-size: clamp(2.2rem, 5.4vw, 4rem); margin-bottom: .35em; }
.slide__text { color: #d5e1ee; font-size: clamp(1.05rem, 1.6vw, 1.25rem); margin-bottom: 1.6em; }
.slide__actions { display: flex; flex-wrap: wrap; gap: 12px; }

.hero__arrow { position: absolute; z-index: 3; top: 50%; transform: translateY(-50%); width: 50px; height: 50px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .45); background: rgba(7, 28, 51, .35); color: var(--white); cursor: pointer; display: grid; place-items: center; transition: background .2s, color .2s; }
.hero__arrow svg { width: 22px; height: 22px; }
.hero__arrow:hover { background: var(--gold); border-color: var(--gold); color: var(--navy-deep); }
.hero__arrow--prev { left: 22px; }
.hero__arrow--next { right: 22px; }
.hero__dots { position: absolute; z-index: 3; left: 0; right: 0; bottom: 30px; display: flex; justify-content: center; gap: 10px; }
.hero__dot { width: 46px; height: 22px; padding: 9px 0; border: 0; background: none; cursor: pointer; }
.hero__dot span { display: block; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .38); overflow: hidden; position: relative; }
.hero__dot span::after { content: ''; position: absolute; inset: 0; background: var(--gold); transform: scaleX(0); transform-origin: left; }
.hero__dot.is-active span::after { animation: fill 6s linear forwards; }
.hero.is-paused .hero__dot.is-active span::after { animation: none; transform: scaleX(1); }
@keyframes fill { to { transform: scaleX(1); } }

/* Sections */
.section { padding: clamp(60px, 8vw, 100px) 0; }
.section--tint { background: var(--tint); }
.head { max-width: 700px; margin: 0 auto clamp(32px, 5vw, 52px); text-align: center; }
.head p:last-child { margin-bottom: 0; }

.cards { display: grid; grid-template-columns: repeat(6, 1fr); gap: 24px; }
.cards .card { grid-column: span 2; }
.cards .card:nth-child(4) { grid-column: 2 / span 2; }
.cards--4 { grid-template-columns: repeat(4, 1fr); }
.cards--4 .card, .cards--4 .card:nth-child(4) { grid-column: auto; }
.card { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: var(--body); transition: transform .2s, box-shadow .2s; }
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.card__img { aspect-ratio: 16 / 10; overflow: hidden; background: var(--line); }
.card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.card:hover .card__img img { transform: scale(1.06); }
.card__body { padding: 22px 24px 24px; display: flex; flex-direction: column; flex: 1; }
.card__body .eyebrow { font-size: .7rem; margin-bottom: .6em; }
.card__body p { font-size: .97rem; }
.card__more { margin-top: auto; font-family: var(--head); font-weight: 700; font-size: .92rem; color: var(--blue); }
.card__more::after { content: ' \2192'; }
.card--small h3 { font-size: 1.02rem; }
.card--small .card__body { padding: 18px 20px 20px; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 70px); align-items: center; }
.split__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }
.split .btn { margin-top: 8px; }

.points { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.point { border-top: 3px solid var(--gold); padding-top: 20px; }
.point__n { font-family: var(--head); font-weight: 800; font-size: 1rem; color: var(--blue); display: block; margin-bottom: 8px; }
.point__n::before { content: '0'; }
.point p { font-size: .97rem; margin: 0; }

.feature { position: relative; padding: clamp(70px, 9vw, 110px) 0; background: var(--navy-deep); overflow: hidden; overflow: clip; }
.feature__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.feature__shade { position: absolute; inset: 0; background: rgba(7, 28, 51, .86); }
.feature__body { position: relative; }
.feature h2 { color: var(--white); }
.feature p { color: #c8d6e5; max-width: 620px; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin: 36px 0 0; }
.stats div { border-left: 3px solid var(--gold); padding-left: 16px; }
.stats dt { font-family: var(--head); font-weight: 800; font-size: clamp(1.6rem, 3vw, 2.4rem); color: var(--white); line-height: 1.1; }
.stats dd { margin: 4px 0 0; color: #a9bdd2; font-size: .95rem; }

.cta { background: var(--blue); background: linear-gradient(120deg, var(--navy) 0%, var(--blue) 100%); padding: 56px 0; }
.cta__in { display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.cta h2 { color: var(--white); margin-bottom: .3em; }
.cta p { color: #d3e3f3; margin: 0; max-width: 560px; }
.cta__actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* Inner page banner */
.banner { position: relative; background: var(--navy-deep); padding: clamp(70px, 10vw, 130px) 0 clamp(50px, 7vw, 80px); overflow: hidden; }
.banner__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.banner__shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(7, 28, 51, .93), rgba(7, 28, 51, .6)); }
.banner__body { position: relative; }
.banner h1 { color: var(--white); max-width: 800px; }
.banner__body > p:last-child { color: #d5e1ee; font-size: 1.15rem; max-width: 620px; margin: 0; }
.banner--plain { background: linear-gradient(120deg, var(--navy-deep), var(--navy)); }

.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.service { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 26px 22px; border-top: 3px solid var(--sky); text-decoration: none; color: var(--body); }
.service p { margin: 0; font-size: .97rem; }
.service--link { transition: transform .2s, box-shadow .2s; }
.service--link:hover { transform: translateY(-4px); box-shadow: var(--shadow); }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.step { position: relative; }
.step__n { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--navy); color: var(--white); font-family: var(--head); font-weight: 800; margin-bottom: 16px; }
.step p { font-size: .97rem; margin: 0; }
.step:not(:last-child)::after { content: ''; position: absolute; top: 23px; left: 58px; right: -12px; height: 2px; background: var(--line); }

.note { margin-top: 48px; background: #fff7e6; border-left: 4px solid var(--gold); border-radius: 0 var(--radius) var(--radius) 0; padding: 24px 28px; }
.note p { margin: 0; }

/* Contact */
.contact { display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(30px, 5vw, 60px); align-items: start; }
.form { display: grid; gap: 18px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form label { display: grid; gap: 6px; font-weight: 600; font-size: .93rem; color: var(--ink); }
.form input, .form select, .form textarea { font: inherit; font-weight: 400; color: var(--ink); padding: 12px 14px; border: 1px solid #c5d1dd; border-radius: 10px; background: var(--white); width: 100%; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(18, 121, 201, .18); }
.form .btn { justify-self: start; }
.form__trap { position: absolute; left: -9999px; }
.alert { padding: 14px 18px; border-radius: 10px; margin-bottom: 20px; font-weight: 500; }
.alert ul { margin: 0; padding-left: 18px; }
.alert--ok { background: #e7f6ec; color: #17603a; border: 1px solid #b5e0c4; }
.alert--bad { background: #fdecec; color: #8f2323; border: 1px solid #f3c1c1; }
.contact__info { background: var(--navy); color: #cddbea; border-radius: var(--radius); padding: 32px; }
.contact__info h2 { color: var(--white); font-size: 1.4rem; }
.contact__info dl { margin: 0; }
.contact__info dt { font-family: var(--head); font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--sky); margin-top: 20px; }
.contact__info dd { margin: 4px 0 0; color: var(--white); }
.contact__info a { color: var(--white); font-weight: 600; font-size: 1.1rem; text-decoration: none; }
.contact__info a:hover { color: var(--gold); }

.tablewrap { overflow-x: auto; margin-bottom: 20px; }
.table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.table th, .table td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.table th { font-family: var(--head); color: var(--ink); background: var(--tint); }

/* Footer */
.footer { background: var(--navy-deep); color: #a9bdd2; font-size: .95rem; padding-top: 64px; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr .8fr 1.4fr; gap: 40px; padding-bottom: 48px; }
.footer__name { font-family: var(--head); font-weight: 800; font-size: 1.3rem; color: var(--white); margin-bottom: .4em; }
.footer__small { font-size: .85rem; color: #7f96ae; }
.footer h2 { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--sky); margin-bottom: 1.2em; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.footer a { color: #d5e1ee; text-decoration: none; }
.footer a:hover { color: var(--gold); }
.footer strong { color: var(--white); font-weight: 600; }
.footer__base { border-top: 1px solid rgba(255, 255, 255, .1); padding-block: 22px; font-size: .85rem; }

/* Smaller screens */
@media (max-width: 1100px) {
  .burger { display: flex; }
  .nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--white); border-bottom: 1px solid var(--line); box-shadow: 0 20px 30px rgba(11, 42, 74, .12); flex-direction: column; align-items: stretch; gap: 0; padding: 10px 20px 20px; display: none; }
  .nav.is-open { display: flex; }
  .nav a { padding: 14px 8px; border-bottom: 1px solid var(--line); border-radius: 0; font-size: 1rem; }
  .nav a.on { box-shadow: inset 3px 0 0 var(--gold); border-radius: 0; padding-left: 14px; }
  .nav .nav__cta { margin: 14px 0 0; text-align: center; border-bottom: 0; }
}
@media (max-width: 960px) {
  .cards, .cards--4 { grid-template-columns: repeat(2, 1fr); }
  .cards .card, .cards .card:nth-child(4) { grid-column: auto; }
  .points, .steps, .stats { grid-template-columns: repeat(2, 1fr); }
  .step::after { display: none; }
  .services { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .hero__arrow { display: none; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .topbar__in > span:first-child { display: none; }
  .topbar__in { justify-content: center; }
  .split, .contact, .form__row { grid-template-columns: 1fr; }
  .split__media { order: -1; }
  .cards, .cards--4, .services { grid-template-columns: 1fr; }
  .slide__shade { background: rgba(7, 28, 51, .78); }
  .hero { height: clamp(520px, 86vh, 640px); }
  .footer__grid { grid-template-columns: 1fr; gap: 30px; }
}
@media (max-width: 420px) {
  .points, .steps { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation: none !important; scroll-behavior: auto !important; }
}
