/* ==========================================================================
   UEBA Travel & Support — responsive
   Base = mobile (360px, matches Figma "mob ENG")
   @media (min-width:1024px) = desktop (1200px column, matches Figma "UEBA ENG")
   ========================================================================== */

:root {
  --navy:   #003153;
  --ink:    #00071e;
  --ink2:   #00061e;
  --blue:   #111b47;
  --orange: #eb5d02;
  --bg:     #fbf8f6;
  --card:   #f7f7f7;
  --w1:     #fcfcfc;
  --w2:     #fffefb;
  --w3:     #f7f7f7;
}

html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { background: var(--bg); }
body.menu-open { overflow: hidden; }

.page {
  position: relative;
  width: 100%;
  margin: 0 auto;
  background: var(--bg);
  overflow: hidden;
  font-family: 'Roboto', system-ui, -apple-system, Segoe UI, sans-serif;
  color: var(--navy);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ---------- shared primitives (mobile) ---------- */
.label { display: flex; align-items: center; gap: 12px; }
.label .dot { width: 10px; height: 10px; flex: none; }
.label .t { font-size: 16px; font-weight: 300; line-height: 1; color: var(--ink2); white-space: nowrap; }

.lead { font-size: 20px; line-height: 1.2; font-weight: 400; color: var(--navy); }
.lead strong { font-weight: 700; }
.lead .sb { font-weight: 600; }

.body { font-size: 14px; line-height: 1.5; font-weight: 400; color: var(--navy); }
.body .sb { font-weight: 600; }

.grp { display: flex; flex-direction: column; gap: 25px; }

/* ---------- HERO (mobile) ---------- */
.hero {
  position: relative;
  width: 100%;
  height: 700px;
  background:
    linear-gradient(180deg, rgba(0,0,0,0) 55.64%, rgba(0,0,0,.3) 100%),
    linear-gradient(90deg, rgba(0,0,0,.2), rgba(0,0,0,.2)),
    url(../assets/hero.webp) center / cover no-repeat;
}
.hero-nav {
  position: fixed; top: 20px; left: 50%; transform: translateX(-50%); width: calc(100vw - 32px); max-width: 700px; z-index: 60;
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(170,170,170,.4); border-radius: 500px; padding: 10px;
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  transition: background .3s ease, box-shadow .3s ease;
}
.hero-nav.scrolled { background: rgba(17,27,71,.55); box-shadow: 0 6px 24px rgba(0,0,0,.18); }
.hero-nav .logo { width: 32px; height: 30.9px; display: block; }
.hero-nav .logo img { width: 100%; height: 100%; object-fit: contain; }
.hero-nav .menu {
  width: 18px; height: 14px; padding: 0; position: relative;
  display: flex; flex-direction: column; justify-content: space-between;
}
.hero-nav .menu span {
  display: block; width: 100%; height: 1.5px; background: #fff; border-radius: 2px;
  transition: transform .25s ease, opacity .2s ease;
}
.hero-nav .menu.is-open span:nth-child(1) { transform: translateY(6.25px) rotate(45deg); }
.hero-nav .menu.is-open span:nth-child(2) { opacity: 0; }
.hero-nav .menu.is-open span:nth-child(3) { transform: translateY(-6.25px) rotate(-45deg); }
.nav-links, .nav-right { display: none; }

/* mobile menu overlay */
.mobile-menu {
  position: fixed; inset: 0; z-index: 50;
  background: rgba(0, 49, 83, .97);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 28px; padding: 40px;
  opacity: 0; visibility: hidden; transition: opacity .25s ease, visibility .25s ease;
}
.mobile-menu.open { opacity: 1; visibility: visible; }
.mobile-menu a { color: #fff; font-size: 22px; text-transform: uppercase; letter-spacing: .5px; }
.mobile-menu .mm-lang { display: flex; gap: 24px; }
.mobile-menu .mm-lang a { font-size: 16px; }
.mobile-menu .mm-lang a.active { color: var(--orange); }
.mobile-menu .btn-booknow {
  margin-top: 8px; background: var(--orange); border: 2px solid var(--orange);
  padding: 12px 28px; border-radius: 500px;
  font-size: 18px; font-weight: 600; color: #fff; text-transform: uppercase;
}

.hero-content {
  position: absolute; top: 157px; left: 16px; right: 16px; max-width: 640px;
  display: flex; flex-direction: column; align-items: flex-start;
}
.hero-content .reach { margin-top: 0; }
.reach {
  position: relative; display: block;
  width: 159px; height: 115px;
  background: var(--orange); border-radius: 10px;
}
.reach .thumb { position: absolute; left: 10px; top: 8px; width: 109px; height: 77px; border-radius: 5px; object-fit: cover; }
.reach .cap { position: absolute; left: 10px; top: 93px; width: 113px; font-size: 12px; line-height: 1; color: #fff; text-transform: uppercase; }
.reach .arrow { position: absolute; left: 133px; top: 51px; width: 12px; height: 12.86px; }

.hero-title { margin-top: 19px; font-size: 51.25px; line-height: 1.2; font-weight: 600; color: var(--w1); text-transform: uppercase; }
.hero-copy { margin-top: 12px; width: 100%; display: flex; flex-direction: column; align-items: flex-start; }
.hero-sub { font-size: 20px; line-height: 1.5; font-weight: 400; color: var(--w2); }
.hero-copy .btn-book { margin-top: 19px; }

.btn-book {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 8px 16px; border: 2px solid #fff; border-radius: 500px;
  font-size: 12px; font-weight: 600; color: #fff; text-transform: uppercase;
}

/* ---------- section rhythm (mobile) ---------- */
main > section { margin-top: 60px; padding: 0 16px; }

/* ---------- ABOUT (mobile) ---------- */
.about { display: flex; flex-direction: column; gap: 12px; }
.about-head { display: flex; flex-direction: column; gap: 12px; }
.cards { display: flex; flex-direction: column; gap: 6px; }
.imgcard {
  position: relative; height: 160px; border-radius: 10px; overflow: hidden;
  display: flex; align-items: flex-end; padding: 10px;
}
.imgcard img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.imgcard.focus-high img { object-position: center top; }
.imgcard::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 50%, rgba(0,0,0,.7) 100%);
}
.imgcard .cap {
  position: relative; z-index: 1; width: 100%; text-align: center;
  font-size: 14px; font-weight: 600; line-height: 1.5; color: var(--w3);
}

/* ---------- SERVICES (mobile) ---------- */
.services { display: flex; flex-direction: column; gap: 25px; }
.svc {
  background: var(--card); border: .5px solid var(--navy); border-radius: 10px;
  padding: 10px; display: flex; flex-direction: column; gap: 12px; min-height: 242px;
}
.svc.last { border-radius: 20px; }
.svc .num { width: 30px; height: 30px; flex: none; }
.svc h3 { font-size: 14px; font-weight: 600; line-height: 1.5; color: var(--ink); }
.svc ul { list-style: disc; padding-left: 21px; font-size: 14px; line-height: 1.5; color: var(--ink); }
.svc-img { height: 242px; border-radius: 10px; overflow: hidden; }
.svc-img img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- GLOBAL NETWORK (mobile) ---------- */
.network { display: flex; flex-direction: column; gap: 25px; }
.ngrp { display: flex; flex-direction: column; gap: 12px; }
.cities { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 10px; }
.pill {
  width: 74px; height: 34px; padding: 8px 16px;
  display: flex; align-items: center; justify-content: center;
  border: 1.5px solid var(--orange); border-radius: 500px;
  font-size: 12px; line-height: 1.5; color: var(--orange); white-space: nowrap;
}
.netimg { height: 220px; border-radius: 10px; overflow: hidden; }
.netimg img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- TEAM (mobile) ---------- */
.team { display: flex; flex-direction: column; gap: 25px; }
.tgrp { display: flex; flex-direction: column; gap: 25px; }
.stand { display: flex; flex-direction: column; gap: 12px; }
.values { display: flex; flex-wrap: wrap; gap: 6px 10px; }
.vpill {
  width: 159px; height: 52px; padding: 8px 16px;
  display: flex; align-items: center; justify-content: center; text-align: center;
  border: 1.5px solid var(--orange); border-radius: 500px;
  font-size: 12px; line-height: 1.5; color: var(--orange);
}
.tcards { display: flex; flex-direction: column; gap: 12px; }
.tcard { display: flex; flex-direction: column; }
.tcard .photo { height: 380px; border-radius: 10px 10px 0 0; overflow: hidden; background: #c4c4c4; }
.tcard .photo img { width: 100%; height: 100%; object-fit: cover; }
.tcard .meta {
  background: var(--card); border: .5px solid var(--navy); border-radius: 0 0 10px 10px;
  padding: 10px; display: flex; flex-direction: column; gap: 12px;
}
.meta .role { font-size: 14px; font-weight: 600; line-height: 1.5; color: var(--ink); }
.meta .name { font-size: 14px; font-weight: 400; line-height: 1.5; color: var(--ink); }

/* ---------- WHY CHOOSE US (mobile) ---------- */
.why { display: flex; flex-direction: column; gap: 12px; }
.why-grp { display: flex; flex-direction: column; gap: 25px; }
.why-row { display: flex; flex-direction: column; gap: 12px; }
.checks { display: flex; flex-direction: column; gap: 6px; }
.check {
  background: var(--card); border: .5px solid var(--navy); border-radius: 10px;
  min-height: 62px; padding: 10px; display: flex; align-items: center; gap: 10px;
}
.check img { width: 25px; height: 25px; flex: none; }
.check p { font-size: 14px; line-height: 1.5; font-weight: 400; color: var(--ink); }
.whyimg { height: 380px; border-radius: 10px; overflow: hidden; }
.whyimg img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- PARTNERS (mobile) ---------- */
.partners { display: flex; flex-direction: column; gap: 25px; }
.p-head { display: contents; }
.p-closing { order: 99; }
.pcards { display: flex; flex-direction: column; gap: 6px; }
.pcard { display: flex; flex-direction: column; }
.pcard .photo { aspect-ratio: 1 / 1; border: .5px solid var(--navy); border-radius: 20px 20px 0 0; overflow: hidden; background: #c4c4c4; }
.pcard .photo img { width: 100%; height: 100%; object-fit: cover; }
.pcard .meta {
  background: var(--card); border: .5px solid var(--navy); border-top: none; border-radius: 0 0 20px 20px;
  padding: 10px; display: flex; flex-direction: column; gap: 12px; min-height: 95px;
}

/* ---------- CONTACTS (mobile) ---------- */
.contacts { display: flex; flex-direction: column; gap: 25px; }
.cform {
  background: var(--orange); border-radius: 10px; padding: 10px;
  display: flex; flex-direction: column; align-items: center; gap: 25px;
}
.cform h2 {
  width: 100%; text-align: center; text-transform: uppercase;
  font-size: 51.25px; line-height: 1.2; font-weight: 600; color: var(--w1);
}
.fields { display: flex; flex-direction: column; gap: 6px; width: 100%; }
.inputs { display: flex; flex-direction: column; gap: 5px; width: 100%; }
.row2 { display: flex; flex-direction: column; gap: 5px; width: 100%; }
.cform input, .cform textarea {
  width: 100%; background: var(--card); border-radius: 10px; padding: 10px;
  font-size: 12px; line-height: 1.5; color: var(--blue);
}
.cform input { height: 38px; }
.cform textarea { height: 76px; resize: vertical; }
.cform ::placeholder { color: var(--blue); opacity: 1; }
.cform .send {
  width: 100%; height: 38px; background: var(--navy); border-radius: 10px;
  font-size: 12px; font-weight: 600; line-height: 1.5; color: var(--w1); text-align: center;
}

/* ---------- FOOTER (mobile) ---------- */
.site-footer {
  width: 100%; margin-top: 60px; background: var(--navy);
  padding: 60px 16px 10px; display: flex; flex-direction: column; align-items: center; gap: 25px;
}
.flogo { width: 85px; height: 89.62px; }
.flogo img { width: 100%; height: 100%; object-fit: contain; object-position: bottom; }
.fbottom { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.fnav { display: flex; justify-content: space-between; width: 100%; max-width: 400px; font-size: 12px; font-weight: 600; color: var(--w3); }
.fnav a { white-space: nowrap; }
.credits { display: flex; flex-direction: column; gap: 12px; width: 100%; max-width: 420px; }
.credits .divider { height: .5px; width: 100%; background: #fff; }
.credits .row { display: flex; justify-content: space-between; gap: 10px; font-size: 12px; line-height: 1.5; color: var(--w3); }
.credits .copy { width: 159px; }
.credits .flinks { width: 159px; display: flex; flex-direction: column; gap: 6px; text-align: right; }
.credits .flinks a { text-decoration: underline; }

/* ==========================================================================
   TABLET  600–1023px — fluid single column flows card lists into 2 columns
   ========================================================================== */
@media (min-width: 600px) and (max-width: 1023px) {
  .cards, .svc-grid, .tcards, .pcards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .about-head, .p-head { max-width: 720px; }
  .lead, .body, .about-mission { max-width: 760px; }
}

/* ==========================================================================
   DESKTOP  ≥ 1024px  — Figma "UEBA ENG" (1200px content column)
   ========================================================================== */
@media (min-width: 1024px) {

  .page { width: 100%; max-width: none; margin: 0; overflow-x: hidden; }

  /* primitives scale up */
  .label { gap: 25px; }
  .label .dot { width: 20px; height: 20px; }
  .label .t { font-size: 40px; }
  .lead { font-size: 40px; }
  .grp { gap: 50px; }

  main > section { margin: 120px auto 0; padding: 0; width: min(1200px, 100% - 80px); }

  /* ---- HERO ---- */
  .hero {
    height: auto; min-height: 1080px;
    background:
      linear-gradient(179.85deg, rgba(0,0,0,0) 29.7%, rgba(0,0,0,.4) 99.8%),
      linear-gradient(90deg, rgba(0,0,0,.2), rgba(0,0,0,.2)),
      url(../assets/hero.webp) center / cover no-repeat;
  }
  .hero-nav {
    top: 40px; left: 50%; transform: translateX(-50%); width: min(1200px, 100% - 80px); max-width: none;
    border-radius: 200px; padding: 10px;
  }
  html { scroll-padding-top: 150px; }
  .hero-nav .logo { width: 64px; height: 62px; }
  .hero-nav .menu { display: none; }
  .mobile-menu { display: none; }
  .nav-links {
    display: flex; gap: 32px; list-style: none;
    font-size: 20px; font-weight: 400; color: #fff; text-transform: uppercase;
  }
  .nav-links a { white-space: nowrap; transition: color .2s ease; }
  .nav-links a:hover, .nav-links a.active { color: var(--orange); }
  .nav-right { display: flex; align-items: center; gap: 20px; }
  .lang { display: flex; gap: 20px; font-size: 20px; color: #fff; text-transform: uppercase; }
  .lang a { transition: color .2s ease; }
  .lang a:hover, .lang a.active { color: var(--orange); }
  .btn-booknow {
    background: var(--orange); border: 2px solid var(--orange);
    padding: 16px 24px; border-radius: 500px;
    font-size: 20px; font-weight: 600; color: #fff; text-transform: uppercase; white-space: nowrap;
  }

  .hero-content {
    position: static; top: auto; left: auto; right: auto; max-width: none;
    width: min(1200px, 100% - 80px); margin: 0 auto; padding-top: 388px;
    display: grid; grid-template-columns: minmax(0, 692px) 305px;
    justify-content: space-between; align-items: center; row-gap: 100px; column-gap: 40px;
  }
  .hero-content .reach { grid-column: 2; grid-row: 2; margin: 0; width: 305px; height: 231px; border-radius: 20px; align-self: center; }
  .hero-title { grid-column: 1 / -1; margin: 0; font-size: 124.8px; }
  .hero-copy { grid-column: 1; grid-row: 2; margin: 0; max-width: 692px; gap: 25px; }
  .hero-sub { font-size: 40px; line-height: 1.2; color: #ececec; }
  .hero-copy .btn-book { margin: 0; }
  .btn-book { border-width: 4px; padding: 16px 24px; font-size: 20px; }

  /* desktop reach card internals */
  .hero-content .reach .thumb { left: 20px; top: 20px; width: 205px; height: 150px; border-radius: 10px; }
  .hero-content .reach .cap { left: 20px; top: 190px; width: auto; font-size: 20px; }
  .hero-content .reach .arrow { left: 253px; top: 103px; width: 23px; height: 25px; }

  /* ---- ABOUT ---- */
  .about { gap: 20px; }
  .about-head { flex-direction: row; gap: 121px; align-items: flex-start; }
  .about-head .grp { width: 692px; gap: 50px; }
  .about-mission { width: 387px; font-size: 20px; }
  .cards { flex-direction: row; gap: 20px; }
  .imgcard { flex: 1; height: 300px; border-radius: 20px; padding: 20px; }
  .imgcard .cap { font-size: 20px; text-align: left; }

  /* ---- SERVICES ---- */
  .services { gap: 50px; }
  .svc-grid { flex-direction: row; flex-wrap: wrap; gap: 20px; }
  .svc, .svc-img { flex: 0 0 calc((100% - 40px) / 3); }
  .svc { min-height: 380px; border-radius: 20px; padding: 20px; gap: 20px; }
  .svc.last { border-radius: 20px; }
  .svc h3 { font-size: 20px; }
  .svc ul { font-size: 20px; padding-left: 30px; }
  .svc-img { height: 380px; border-radius: 20px; }

  /* ---- GLOBAL NETWORK ---- */
  .network { gap: 50px; }
  .ngrp { gap: 50px; }
  .ngrp .grp { gap: 50px; }
  .cities { gap: 20px; }
  .pill { width: 183px; height: auto; padding: 16px 24px; font-size: 20px; border-width: 2px; }
  .netimg { width: min(880px, 100%); aspect-ratio: 880 / 587; height: auto; border-radius: 20px; margin: 0 auto; }

  /* ---- TEAM ---- */
  .team { gap: 50px; }
  .tgrp { gap: 50px; }
  .stand { gap: 20px; }
  .values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .vpill { width: auto; height: auto; padding: 16px 24px; font-size: 20px; border-width: 2px; }
  .vpill.v4 { grid-column: 2; grid-row: 2; }
  .tcards { flex-direction: row; gap: 20px; }
  .tcard { flex: 1; }
  .tcard .photo { height: 470px; border-radius: 20px 20px 0 0; }
  .tcard .meta { border-radius: 0 0 20px 20px; padding: 20px; gap: 20px; }
  .meta .role, .meta .name { font-size: 20px; }

  /* ---- WHY CHOOSE US ---- */
  .why { gap: 50px; }
  .why-grp { gap: 50px; }
  .why-row { flex-direction: row; gap: 21px; align-items: stretch; }
  .checks { width: 590px; flex: none; gap: 20px; }
  .check { min-height: 100px; border-radius: 20px; padding: 20px; gap: 20px; }
  .check p { font-size: 20px; }
  .whyimg { flex: 1; height: 700px; border-radius: 20px; }

  /* ---- PARTNERS ---- */
  .partners { gap: 50px; }
  .p-head { display: flex; flex-direction: row; gap: 120px; align-items: flex-start; }
  .p-head .grp { width: 693px; gap: 50px; }
  .p-closing { order: 0; width: 387px; font-size: 20px; }
  .p-closing .sb { font-weight: 700; }
  .p-worktogether { font-size: 40px; }
  .pcards { flex-direction: row; gap: 20px; }
  .pcard { flex: 1; }
  .pcard .photo { border-radius: 20px 20px 0 0; }
  .pcard .meta { border-radius: 0 0 20px 20px; padding: 20px; gap: 20px; min-height: 180px; }

  /* ---- CONTACTS ---- */
  .contacts { gap: 50px; }
  .cform { padding: 20px; border-radius: 20px; gap: 50px; align-items: stretch; }
  .cform h2 { font-size: 124.8px; }
  .fields { gap: 50px; }
  .inputs { gap: 20px; }
  .row2 { flex-direction: row; gap: 20px; }
  .row2 input { flex: 1; }
  .cform input, .cform textarea { padding: 16px 24px; font-size: 20px; border-radius: 20px; color: var(--ink2); }
  .cform input { height: auto; }
  .cform textarea { height: 167px; padding: 20px; }
  .cform ::placeholder { color: var(--ink2); }
  .cform .send { height: auto; padding: 16px 24px; border-radius: 20px; font-size: 20px; color: #ececec; }

  /* ---- FOOTER ---- */
  .site-footer {
    width: min(1200px, 100% - 80px); margin: 120px auto 0;
    padding: 120px 20px 20px; gap: 20px;
  }
  .flogo { width: 172px; height: 181px; margin-bottom: 30px; }
  .fbottom { display: contents; }
  .fnav { width: auto; max-width: none; gap: 32px; font-size: 20px; }
  .credits { width: 100%; max-width: none; gap: 20px; }
  .credits .row { font-size: 20px; }
  .credits .copy { width: auto; }
  .credits .flinks { width: auto; flex-direction: row; gap: 20px; }
}
