/* Valfora Holdings — layout & responsive (public site) */
:root {
  --vh-pad-x: 32px;
  --vh-pad-y: 112px;
  --vh-hero-top: 96px;
  --vh-hero-bottom: 72px;
  --vh-header-h: 72px;
  --vh-max: 1240px;
  --vh-ease: cubic-bezier(0.16, 1, 0.3, 1);
  --vh-navy: #0f1f3c;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--vh-header-h) + 12px);
}

html.vh-nav-open,
html.vh-nav-open body {
  overflow: hidden;
}

body {
  margin: 0;
  padding: 0;
  background: #F5F6F8;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--navy-700);
  text-decoration: none;
}
a:hover { color: var(--gold-500); }

.vh-shell {
  font-family: var(--font-body);
  color: var(--navy-900);
  background: var(--surface-base);
  overflow-x: hidden;
}

.vh-container {
  width: 100%;
  max-width: var(--vh-max);
  margin: 0 auto;
  padding-left: var(--vh-pad-x);
  padding-right: var(--vh-pad-x);
}

.vh-section {
  padding-top: var(--vh-pad-y);
  padding-bottom: var(--vh-pad-y);
  padding-left: var(--vh-pad-x);
  padding-right: var(--vh-pad-x);
}

.vh-section--tight-bottom {
  padding-bottom: calc(var(--vh-pad-y) * 0.5);
}

.vh-section-inner {
  max-width: var(--vh-max);
  margin: 0 auto;
  padding-top: var(--vh-pad-y);
  padding-bottom: var(--vh-pad-y);
  padding-left: var(--vh-pad-x);
  padding-right: var(--vh-pad-x);
}

/* ——— Header / Nav ——— */
.vh-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(15, 31, 60, 0.97);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.vh-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: var(--vh-header-h);
}

.vh-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  z-index: 2;
}
.vh-logo:hover { color: inherit; }

.vh-nav-desktop {
  display: flex;
  align-items: center;
  gap: 26px;
}

.vh-nav-desktop a {
  font-size: 13.5px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.72);
  white-space: nowrap;
  transition: color 180ms var(--vh-ease);
}
.vh-nav-desktop a:hover { color: #fff; }

.vh-nav-cta {
  font-weight: 600 !important;
  color: var(--navy-900) !important;
  background: var(--gold-400);
  padding: 9px 18px;
  border-radius: 10px;
  transition: background 200ms var(--vh-ease), color 200ms var(--vh-ease);
}
.vh-nav-cta:hover {
  background: #fff !important;
  color: var(--navy-900) !important;
}

.vh-nav-toggle {
  display: none;
  position: relative;
  z-index: 2;
  width: 44px;
  height: 44px;
  margin: 0;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
}
.vh-nav-toggle:focus-visible {
  outline: 2px solid var(--gold-400);
  outline-offset: 2px;
}

.vh-nav-toggle-bars {
  display: block;
  width: 18px;
  height: 12px;
  position: relative;
}
.vh-nav-toggle-bars span {
  position: absolute;
  left: 0;
  right: 0;
  height: 1.5px;
  background: #fff;
  border-radius: 1px;
  transition: transform 220ms var(--vh-ease), opacity 180ms var(--vh-ease), top 220ms var(--vh-ease);
}
.vh-nav-toggle-bars span:nth-child(1) { top: 0; }
.vh-nav-toggle-bars span:nth-child(2) { top: 5px; }
.vh-nav-toggle-bars span:nth-child(3) { top: 10px; }

html.vh-nav-open .vh-nav-toggle-bars span:nth-child(1) {
  top: 5px;
  transform: rotate(45deg);
}
html.vh-nav-open .vh-nav-toggle-bars span:nth-child(2) {
  opacity: 0;
}
html.vh-nav-open .vh-nav-toggle-bars span:nth-child(3) {
  top: 5px;
  transform: rotate(-45deg);
}

/* Mobile drawer */
.vh-drawer {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  background: var(--vh-navy);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  max-height: min(calc(100dvh - var(--vh-header-h)), 520px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 8px var(--vh-pad-x) 28px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  pointer-events: none;
  transition: opacity 200ms var(--vh-ease), transform 220ms var(--vh-ease), visibility 220ms;
}

html.vh-nav-open .vh-drawer {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.vh-drawer nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.vh-drawer a {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 12px 4px;
  font-size: 16px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.82);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: color 160ms var(--vh-ease);
}
.vh-drawer a:hover,
.vh-drawer a:focus-visible {
  color: #fff;
}

.vh-drawer a.vh-drawer-cta {
  margin-top: 16px;
  justify-content: center;
  min-height: 48px;
  border: none;
  border-radius: 10px;
  background: var(--gold-400);
  color: var(--navy-900);
  font-weight: 600;
}
.vh-drawer a.vh-drawer-cta:hover {
  background: #fff;
  color: var(--navy-900);
}

.vh-drawer-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  top: var(--vh-header-h);
  background: rgba(8, 16, 32, 0.45);
  z-index: 90;
  opacity: 0;
  pointer-events: none;
  transition: opacity 200ms var(--vh-ease);
}
html.vh-nav-open .vh-drawer-backdrop {
  opacity: 1;
  pointer-events: auto;
}

/* ——— Hero ——— */
.vh-hero {
  background: var(--navy-900);
  position: relative;
  overflow: hidden;
}

.vh-hero-inner {
  max-width: var(--vh-max);
  margin: 0 auto;
  padding: var(--vh-hero-top) var(--vh-pad-x) var(--vh-hero-bottom);
  position: relative;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr));
  gap: 56px;
  align-items: center;
}

.vh-hero-media {
  height: 440px;
  border-radius: 18px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.04);
}

.vh-cta-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.vh-cta-row > a {
  height: 48px;
  padding: 0 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
  border-radius: 10px;
  white-space: nowrap;
  flex: 0 1 auto;
  min-width: 0;
  text-align: center;
  transition: background 200ms var(--vh-ease), color 200ms var(--vh-ease);
}

.vh-stats {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.vh-stats-grid {
  max-width: var(--vh-max);
  margin: 0 auto;
  padding: 0 var(--vh-pad-x);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.vh-stat {
  padding: 32px 12px 32px 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* ——— Cards / panels ——— */
.vh-panel {
  background: var(--surface-elevated);
  border: 1px solid var(--border-default);
  border-radius: 18px;
  padding: 36px;
}

.vh-talento-card {
  background: var(--navy-900);
  border-radius: 18px;
  padding: 56px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: 40px;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.vh-talento-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
  position: relative;
}

.vh-media-tall {
  height: 440px;
  position: relative;
}

.vh-form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.vh-submit {
  width: 100%;
  max-width: 280px;
}

/* ——— Breakpoints ——— */
@media (max-width: 1024px) {
  .vh-nav-desktop { gap: 18px; }
  .vh-hero-inner { gap: 40px; }
  .vh-hero-media { height: 360px; }
}

@media (max-width: 900px) {
  :root {
    --vh-pad-x: 24px;
    --vh-pad-y: 72px;
    --vh-hero-top: 56px;
    --vh-hero-bottom: 48px;
  }

  .vh-nav-desktop { display: none; }
  .vh-nav-toggle { display: inline-flex; }
  .vh-drawer { display: block; }
  .vh-drawer-backdrop { display: block; }

  .vh-hero-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .vh-hero-media {
    height: 280px;
    order: 2;
  }

  .vh-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .vh-stat {
    padding: 24px 16px 24px 0;
  }
  .vh-stat:nth-child(odd) {
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    padding-right: 16px;
  }
  .vh-stat:nth-child(-n+2) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .vh-talento-card {
    padding: 36px 28px;
    gap: 28px;
  }
  .vh-talento-actions {
    justify-content: flex-start;
  }
  .vh-talento-actions > a {
    width: 100%;
    justify-content: center;
  }

  .vh-panel { padding: 28px 22px; }

  .vh-media-tall { height: 280px; }

  .vh-cta-row > a {
    flex: 1 1 calc(50% - 6px);
    padding: 0 16px;
  }
}

@media (max-width: 560px) {
  :root {
    --vh-pad-x: 18px;
    --vh-pad-y: 56px;
    --vh-hero-top: 40px;
    --vh-hero-bottom: 40px;
    --vh-header-h: 64px;
  }

  .vh-header-bar { min-height: var(--vh-header-h); }

  .vh-hero-media { height: 220px; border-radius: 14px; }
  .vh-media-tall { height: 220px; }

  .vh-cta-row {
    flex-direction: column;
  }
  .vh-cta-row > a {
    flex: 1 1 auto;
    width: 100%;
    white-space: normal;
    text-align: center;
    line-height: 1.25;
    padding: 12px 18px;
    height: auto;
    min-height: 48px;
  }

  .vh-stats-grid {
    grid-template-columns: 1fr 1fr;
  }
  .vh-stat span:first-child {
    font-size: 28px !important;
  }

  .vh-talento-card {
    padding: 28px 20px;
    border-radius: 14px;
  }

  .vh-panel { padding: 22px 18px; border-radius: 14px; }

  .vh-submit { max-width: none; }

  .vh-form-grid {
    grid-template-columns: 1fr;
  }

  /* Presence country headers stack label */
  .vh-country-head {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 8px !important;
  }
}

@media (max-width: 380px) {
  :root { --vh-pad-x: 14px; }
}

/* Prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .vh-drawer,
  .vh-drawer-backdrop,
  .vh-nav-toggle-bars span {
    transition: none;
  }
}
