/* ---------------------------------------------------------------------------
   Vertex Capital - Batumi lead page
   Mobile first. The desktop layout puts the pitch on the left and the form
   on the right, so the form is visible without scrolling.
   --------------------------------------------------------------------------- */

:root {
  --ink: #101b2d;
  --ink-soft: #4a5a70;
  --muted: #8494a6;
  --line: #e2e8ef;
  --card: #ffffff;

  /* Brand, taken from the logo files */
  --navy-deep: #041d55;
  --navy: #062b7c;
  --navy-light: #0f42a8;

  --gold: #d2a84c;
  --gold-light: #fed87b;

  --accent: #072f88;
  --accent-hover: #0a3aa8;

  --danger: #c0302b;
  --ok: #17694a;

  --radius: 18px;
  --radius-sm: 11px;

  --shadow-card:
    0 2px 4px rgba(2, 12, 38, 0.06),
    0 12px 28px rgba(2, 12, 38, 0.16),
    0 40px 80px rgba(2, 12, 38, 0.22);

  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);

  /* How much of the section the photograph covers. Full height on desktop. */
  --photo-h: clamp(400px, 60vh, 580px);
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--navy-deep);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  display: block;
}

/* --- entrance motion ------------------------------------------------------ */

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* The photograph drifts in very slowly. Barely noticeable on purpose - it
   should register as "alive", not as an animation. */
@keyframes driftIn {
  from { transform: scale(1.09); }
  to { transform: scale(1); }
}

@keyframes draw {
  from { stroke-dashoffset: 30; }
  to { stroke-dashoffset: 0; }
}

/* --- top bar -------------------------------------------------------------- */

.topbar {
  position: relative;
  z-index: 5;
  background: rgba(4, 29, 85, 0.72);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: #fff;
  animation: fade 0.6s var(--ease) both;
}

.topbar-inner {
  max-width: 1220px;
  margin: 0 auto;
  padding: 15px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brand {
  display: flex;
  align-items: center;
  min-width: 0;
}

.logo {
  height: 23px;
  width: auto;
}

/* language switcher */

.langs {
  display: flex;
  gap: 2px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  padding: 3px;
  flex: none;
}

.lang {
  appearance: none;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.7);
  font: inherit;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.03em;
  padding: 5px 12px;
  border-radius: 999px;
  cursor: pointer;
  min-height: 30px;
  transition: color 0.2s var(--ease), background 0.25s var(--ease);
}

.lang:hover {
  color: #fff;
}

.lang[aria-pressed="true"] {
  background: #fff;
  color: var(--navy);
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.18);
}

.lang:focus-visible {
  outline: 2px solid var(--gold-light);
  outline-offset: 2px;
}

/* --- hero ----------------------------------------------------------------- */

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: linear-gradient(175deg, var(--navy) 0%, var(--navy-deep) 75%);
  color: #fff;
  padding: 34px 20px 44px;
}

/* The photograph and the navy veil that keeps text readable, as ONE layer.
   They have to be a single element: the slow zoom below scales this layer,
   and if the veil were separate the photo would creep out from under it and
   leave a bright seam along the bottom edge. */
.hero.has-photo::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: var(--photo-h);
  background-image:
    linear-gradient(
      to bottom,
      rgba(4, 29, 85, 0.6) 0%,
      rgba(6, 43, 124, 0.68) 38%,
      rgba(4, 29, 85, 0.95) 76%,
      var(--navy-deep) 92%
    ),
    url("hero.jpg");
  background-size: cover, cover;
  background-position: center, center 38%;
  background-repeat: no-repeat, no-repeat;
  transform-origin: 60% 40%;
  animation: driftIn 20s var(--ease) both;
  z-index: -1;
}

.shell {
  position: relative;
  z-index: 2;
  max-width: 1220px;
  margin: 0 auto;
}

.hero-inner {
  max-width: 640px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin: 0 0 16px;
  animation: rise 0.7s var(--ease) 0.05s both;
}

.eyebrow::after {
  content: "";
  width: 46px;
  height: 1px;
  background: linear-gradient(to right, var(--gold), rgba(210, 168, 76, 0));
}

h1 {
  margin: 0 0 14px;
  font-size: clamp(29px, 7.6vw, 38px);
  line-height: 1.1;
  letter-spacing: -0.03em;
  font-weight: 700;
  text-wrap: balance;
  text-shadow: 0 2px 22px rgba(2, 14, 42, 0.42);
  animation: rise 0.75s var(--ease) 0.12s both;
}

.sub {
  margin: 0;
  font-size: 16px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.84);
  max-width: 33em;
  text-shadow: 0 1px 14px rgba(2, 14, 42, 0.45);
  animation: rise 0.75s var(--ease) 0.2s both;
}

.bullets {
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
  display: grid;
  gap: 11px;
}

.bullets li {
  position: relative;
  padding-left: 30px;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 1px 12px rgba(2, 14, 42, 0.45);
  animation: rise 0.6s var(--ease) both;
}

.bullets li:nth-child(1) { animation-delay: 0.3s; }
.bullets li:nth-child(2) { animation-delay: 0.38s; }
.bullets li:nth-child(3) { animation-delay: 0.46s; }
.bullets li:nth-child(4) { animation-delay: 0.54s; }

.bullets li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 6px;
  width: 15px;
  height: 8px;
  border-left: 2px solid var(--gold);
  border-bottom: 2px solid var(--gold);
  transform: rotate(-45deg);
  border-radius: 1px;
}

/* --- the form card -------------------------------------------------------- */

.form-col {
  margin-top: 30px;
  animation: rise 0.8s var(--ease) 0.34s both;
}

.card {
  position: relative;
  background: var(--card);
  /* The card sits inside the hero, which is white-on-navy. Without this the
     card's own headings would inherit that white and vanish. */
  color: var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 24px 20px 22px;
  overflow: hidden;
}

/* a hairline of brand gold across the top of the card */
.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(
    to right,
    var(--gold) 0%,
    var(--gold-light) 38%,
    var(--gold) 68%,
    rgba(210, 168, 76, 0.25) 100%
  );
}

.card h2 {
  margin: 4px 0 5px;
  font-size: 21px;
  line-height: 1.22;
  letter-spacing: -0.02em;
  font-weight: 700;
}

.card-sub {
  margin: 0 0 20px;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--ink-soft);
}

.field {
  margin-bottom: 14px;
}

label,
.legend {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
}

.req {
  color: var(--gold);
  font-weight: 700;
}

input[type="text"],
input[type="tel"],
input[type="email"],
select {
  width: 100%;
  font: inherit;
  font-size: 16px; /* 16px stops iOS zooming in on focus */
  color: var(--ink);
  background: #fbfcfd;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  min-height: 50px;
  transition: border-color 0.18s var(--ease), box-shadow 0.18s var(--ease),
    background 0.18s var(--ease);
}

input::placeholder {
  color: #a9b6c4;
}

select {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5' fill='none' stroke='%238494a6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 38px;
  cursor: pointer;
}

input:hover,
select:hover {
  border-color: #c6d2de;
}

input:focus,
select:focus {
  outline: none;
  background: #fff;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(7, 47, 136, 0.12);
}

input[aria-invalid="true"],
select[aria-invalid="true"] {
  border-color: var(--danger);
  background: #fffafa;
}

input[aria-invalid="true"]:focus,
select[aria-invalid="true"]:focus {
  box-shadow: 0 0 0 4px rgba(192, 48, 43, 0.12);
}

.error {
  display: none;
  font-size: 12px;
  color: var(--danger);
  margin: 6px 0 0;
}

.error.show {
  display: block;
  animation: rise 0.28s var(--ease) both;
}

/* contact method - pills are easier to tap than a dropdown */

fieldset {
  border: 0;
  margin: 0 0 14px;
  padding: 0;
}

.segmented {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.segmented input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.segmented label {
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 50px;
  padding: 8px 6px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-soft);
  background: #fbfcfd;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.18s var(--ease);
}

.segmented label:hover {
  border-color: #c6d2de;
  color: var(--ink);
}

.segmented input:checked + label {
  border-color: var(--accent);
  background: rgba(7, 47, 136, 0.06);
  color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent) inset;
}

.segmented input:focus-visible + label {
  box-shadow: 0 0 0 4px rgba(7, 47, 136, 0.14);
}

/* consent */

.consent {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  margin: 18px 0 4px;
}

.consent input[type="checkbox"] {
  flex: none;
  width: 19px;
  height: 19px;
  margin: 2px 0 0;
  accent-color: var(--accent);
  cursor: pointer;
}

.consent label {
  margin: 0;
  font-size: 12.5px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--ink-soft);
  cursor: pointer;
}

/* the honeypot - invisible to people, irresistible to bots */

.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
}

/* submit */

.submit {
  position: relative;
  overflow: hidden;
  width: 100%;
  font: inherit;
  font-size: 15.5px;
  font-weight: 650;
  color: #fff;
  background: linear-gradient(135deg, var(--navy-light) 0%, var(--accent) 55%, var(--navy-deep) 100%);
  border: 0;
  border-radius: var(--radius-sm);
  min-height: 56px;
  padding: 15px 20px;
  margin-top: 16px;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(7, 47, 136, 0.28), 0 10px 22px rgba(7, 47, 136, 0.24);
  transition: transform 0.16s var(--ease), box-shadow 0.22s var(--ease),
    filter 0.22s var(--ease);
}

.submit span {
  position: relative;
  z-index: 1;
}

/* a slow highlight that sweeps across on hover */
.submit::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    115deg,
    rgba(255, 255, 255, 0) 38%,
    rgba(255, 255, 255, 0.24) 50%,
    rgba(255, 255, 255, 0) 62%
  );
  transform: translateX(-120%);
  transition: transform 0.75s var(--ease);
}

.submit:hover {
  transform: translateY(-1.5px);
  filter: brightness(1.08);
  box-shadow: 0 4px 10px rgba(7, 47, 136, 0.3), 0 16px 32px rgba(7, 47, 136, 0.3);
}

.submit:hover::after {
  transform: translateX(120%);
}

.submit:active {
  transform: translateY(0);
}

.submit:focus-visible {
  outline: 3px solid rgba(210, 168, 76, 0.7);
  outline-offset: 2px;
}

.submit[disabled] {
  opacity: 0.72;
  cursor: progress;
  transform: none;
  filter: none;
}

.trust {
  margin: 12px 0 0;
  text-align: center;
  font-size: 12px;
  line-height: 1.5;
  color: var(--muted);
}

.form-error {
  display: none;
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: #fdf1f0;
  border: 1px solid #f1c9c7;
  color: var(--danger);
  font-size: 13px;
  line-height: 1.5;
}

.form-error.show {
  display: block;
  animation: rise 0.3s var(--ease) both;
}

/* --- the thank-you state -------------------------------------------------- */

.success {
  display: none;
  text-align: center;
  padding: 22px 8px 14px;
}

.success.show {
  display: block;
  animation: rise 0.5s var(--ease) both;
}

.tick {
  width: 62px;
  height: 62px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: rgba(23, 105, 74, 0.09);
  display: grid;
  place-items: center;
}

.tick svg {
  width: 29px;
  height: 29px;
  stroke: var(--ok);
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 30;
  animation: draw 0.5s var(--ease) 0.15s both;
}

.success h2 {
  margin: 0 0 9px;
  font-size: 21px;
  letter-spacing: -0.02em;
}

.success p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 14.5px;
  line-height: 1.55;
}

/* --- footer (sits on the navy) -------------------------------------------- */

.foot {
  padding: 20px 4px 0;
}

.foot-contact {
  margin: 0;
  text-align: center;
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.62);
}

.foot-contact a {
  color: rgba(255, 255, 255, 0.92);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.18s var(--ease);
}

.foot-contact a:hover {
  color: var(--gold-light);
}

.foot-contact .dot {
  padding: 0 8px;
  color: rgba(255, 255, 255, 0.3);
}

.privacy {
  margin: 12px 0 0;
  font-size: 11px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.42);
  text-align: center;
}

/* --- tablet --------------------------------------------------------------- */

@media (min-width: 700px) {
  .topbar-inner {
    padding: 17px 28px;
  }

  .logo {
    height: 28px;
  }

  .hero {
    padding: 56px 28px 60px;
  }

  .sub {
    font-size: 17px;
  }

  .bullets li {
    font-size: 15.5px;
  }

  .form-col {
    max-width: 580px;
    margin: 40px auto 0;
  }

  .card {
    padding: 30px 30px 26px;
  }

  .two-up {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 14px;
  }
}

/* --- desktop: pitch left, form right -------------------------------------- */

@media (min-width: 1000px) {
  :root {
    --photo-h: 100%;
  }

  .hero {
    padding: 74px 28px 74px;
  }

  /* On a wide screen the text sits on the left only, so the photograph can
     come through much more strongly on the right. */
  .hero.has-photo::before {
    bottom: 0;
    height: auto;
    background-image:
      linear-gradient(
        100deg,
        rgba(4, 29, 85, 0.95) 0%,
        rgba(5, 34, 100, 0.88) 34%,
        rgba(6, 43, 124, 0.5) 62%,
        rgba(6, 43, 124, 0.28) 100%
      ),
      url("hero.jpg");
    background-position: center, center 42%;
  }

  .shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 452px;
    gap: 56px;
    align-items: center;
  }

  .hero-inner {
    max-width: 620px;
    padding-bottom: 8px;
  }

  h1 {
    font-size: clamp(38px, 3.6vw, 50px);
    margin-bottom: 18px;
  }

  .sub {
    font-size: 17.5px;
  }

  .bullets {
    margin-top: 28px;
    gap: 13px;
  }

  .form-col {
    margin: 0;
    max-width: none;
  }

  .card {
    padding: 28px 28px 24px;
  }

  .card h2 {
    font-size: 22px;
  }
}

@media (min-width: 1240px) {
  .shell {
    gap: 72px;
    grid-template-columns: minmax(0, 1fr) 470px;
  }
}

/* --- respect the system setting ------------------------------------------- */

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