/* ============================================================
   LOCO PADEL — Hero
   Brand colors: #005777 (deep), #1dd559 (green), #ffffff, #f1f4d9

   Type system:
   - Title / display  -> Surgena          (always uppercase)
   - Body copy        -> Helvetica Now    (regular)
   - Accents / CTAs   -> Input Mono       (buttons, pull-out text, nav)
   ============================================================ */

@font-face{
  font-family: "Surgena";
  src: url("../fonts/surgena-font/surgenapersonaluseonlysembd-q2qwd.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}

@font-face{
  font-family: "Helvetica Now Text";
  src: url("../fonts/Helvetica Now/HelveticaNowDisplay.otf") format("opentype");
  font-weight: 400;
  font-display: swap;
}

@font-face{
  font-family: "Helvetica Now Text";
  src: url("../fonts/Helvetica Now/HelveticaNowDisplayMedium.otf") format("opentype");
  font-weight: 500;
  font-display: swap;
}

@font-face{
  font-family: "Input Mono";
  src: url("../fonts/Input Mono/InputMono-Regular-Testing.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}

@font-face{
  font-family: "Input Mono";
  src: url("../fonts/Input Mono/InputMono-Medium-Testing.ttf") format("truetype");
  font-weight: 500;
  font-display: swap;
}

:root{
  --deep: #005777;
  --deep-2: #003c52;
  --green: #1dd559;
  --white: #ffffff;
  --cream: #f1f4d9;

  --font-display: "Surgena", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Helvetica Now Text", "Helvetica Neue", Arial, sans-serif;
  --font-accent: "Input Mono", "Courier New", monospace;
}

*{ margin:0; padding:0; box-sizing:border-box; }

html, body{ height:100%; }

body{
  font-family: var(--font-body);
  font-weight: 400;
  background: var(--deep-2);
  color: var(--white);
}

/* ---------- HERO SCROLL SCRUB ---------- */
.hero-scroll{
  position:relative;
  height: 400vh; /* scroll distance that gets mapped to video playback */
}

.hero-sticky{
  position:-webkit-sticky;
  position:sticky;
  top:0;
  height:100vh;
  height:100dvh; /* accounts for mobile browsers' collapsing address/toolbar,
                    so content isn't hidden behind it */
  width:100%;
  overflow:hidden;
  display:flex;
  flex-direction:column;
}

.hero-bg{
  position:absolute;
  inset:0;
  z-index:0;
}

.hero-bg picture{
  display:block;
  width:100%;
  height:100%;
}

.hero-bg img,
.hero-bg video{
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center 30%;
}

.hero-bg::after{
  content:"";
  position:absolute;
  inset:0;
  background:
    linear-gradient(180deg, rgba(0,20,28,0.75) 0%, rgba(0,20,28,0.05) 22%, rgba(0,20,28,0.05) 55%, rgba(0,20,28,0.55) 82%, rgba(0,20,28,0.85) 100%);
}

/* ---------- NAV ---------- */
.nav{
  position:relative;
  z-index:5;
  display:flex;
  flex-wrap:wrap;
  row-gap:10px;
  align-items:center;
  justify-content:space-between;
  padding: 32px 56px;
  padding-top: calc(32px + env(safe-area-inset-top, 0px));
}

.nav-logo img{
  height: 96px;
  width:auto;
  display:block;
}

.nav-tag{
  font-family: var(--font-accent);
  font-size: 13px;
  letter-spacing: 3px;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--white);
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.3);
  padding: 12px 24px;
  border-radius: 50px;
}

/* ---------- HERO CONTENT ---------- */
.hero-content{
  position:relative;
  z-index:5;
  margin-top:auto;
  padding: 0 56px 48px;
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap: 40px;
  transition: opacity .15s linear, transform .15s linear;
  will-change: opacity, transform;
}

.hero-left{ max-width: 720px; }

.eyebrow{
  display:inline-block;
  font-family: var(--font-accent);
  font-size: 13px;
  letter-spacing: 4px;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--green);
  margin-bottom: 14px;
}

.eyebrow::before{
  content:"";
  display:inline-block;
  width:8px; height:8px;
  border-radius:50%;
  background: var(--green);
  margin-right:10px;
  box-shadow: 0 0 12px rgba(29,213,89,0.9);
}

h1{
  font-family: var(--font-display);
  font-size: clamp(48px, 6.2vw, 100px);
  font-weight: 700;
  letter-spacing: 0px;
  text-transform: uppercase;
  line-height: 0.98;
  color: var(--white);
}

h1 .accent{ color: var(--green); }

.hero-right{
  max-width: 340px;
  text-align:right;
  display:flex;
  flex-direction:column;
  align-items:flex-end;
  gap: 22px;
}

.hero-right .subtitle{
  font-family: var(--font-body);
  font-size: 16px;
  line-height:1.7;
  color: rgba(255,255,255,0.75);
  text-align:right;
}

/* ---------- CAREER PANEL (revealed at end of scrub) ---------- */
.career-panel{
  position:absolute;
  z-index:6;
  right: 56px;
  top: 50%;
  /* Base state is truly centered (-50%) regardless of the panel's actual
     rendered height at any screen size; JS adds a small extra offset on
     top of this same translateY for the reveal slide-in, so centering
     never relies on a hand-tuned pixel guess that breaks on other
     screen sizes. */
  transform: translateY(calc(-50% + 30px));
  transform-origin: right center;
  max-width: 420px;
  max-height: calc(100% - 48px);
  overflow-y: auto;
  text-align:right;
  padding: 40px;
  background: rgba(0,20,28,0.45);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 20px;
  backdrop-filter: blur(10px);
  opacity: 0;
  pointer-events:none;
  transition: opacity .15s linear, transform .15s linear;
  will-change: opacity, transform;
}

.career-panel h2{
  font-family: var(--font-display);
  font-size: clamp(28px, 3.4vw, 44px);
  font-weight:700;
  text-transform:uppercase;
  line-height:1;
  color: var(--white);
  margin: 4px 0 16px;
}

.career-panel h2 .accent{ color: var(--green); }

.career-panel .subtitle{
  font-family: var(--font-body);
  font-size: 15px;
  line-height:1.7;
  color: rgba(255,255,255,0.75);
  text-align:right;
  margin-bottom: 26px;
}

.career-actions{
  display:flex;
  justify-content:flex-end;
  gap: 12px;
}

.btn-ghost{
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.5);
}

.btn-ghost:hover{
  border-color: var(--white);
  background: rgba(255,255,255,0.08);
}

/* ---------- SCROLL HINT ----------
   A small, self-contained corner cue rather than a center-bottom label +
   line. Keeping it compact and off to the side means it never competes
   for space with the stacked headline/form on short or narrow screens. */
.scroll-hint{
  position:absolute;
  z-index:6;
  right: 24px;
  bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  display:flex;
  align-items:center;
  gap: 10px;
  transition: opacity .2s linear;
  pointer-events:none;
}

.scroll-hint .hint-label{
  font-family: var(--font-accent);
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  white-space:nowrap;
}

.scroll-hint .hint-chevrons{
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.3);
  background: rgba(0,20,28,0.35);
  backdrop-filter: blur(4px);
  display:flex;
  align-items:center;
  justify-content:center;
  flex-shrink:0;
}

.scroll-hint .hint-chevrons svg{
  animation: hintBounce 1.6s ease-in-out infinite;
}

@keyframes hintBounce{
  0%, 100%{ transform: translateY(-2px); opacity:0.6; }
  50%{ transform: translateY(3px); opacity:1; }
}

@media (max-width: 980px){
  .scroll-hint .hint-label{ display:none; }
  .scroll-hint{ right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); }
  .scroll-hint .hint-chevrons{ width: 30px; height: 30px; }
}

.notify-form{
  display:flex;
  gap: 10px;
  width: 100%;
}

.notify-form input{
  flex:1;
  min-width: 220px;
  padding: 15px 20px;
  border-radius: 50px;
  border: 1px solid rgba(255,255,255,0.3);
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(4px);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 14px;
  outline:none;
}

.notify-form input::placeholder{ color: rgba(255,255,255,0.55); }

.btn{
  font-family: var(--font-accent);
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-weight: 500;
  padding: 15px 28px;
  border-radius: 50px;
  border:none;
  cursor:pointer;
  text-decoration:none;
  white-space:nowrap;
  transition: transform .25s ease, box-shadow .25s ease;
}

.btn-primary{
  background: var(--green);
  color: var(--deep-2);
}

.btn-primary:hover{
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(29,213,89,0.45);
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 980px){
  .nav{
    padding: 24px 28px;
    padding-top: calc(24px + env(safe-area-inset-top, 0px));
    padding-left: calc(28px + env(safe-area-inset-left, 0px));
    padding-right: calc(28px + env(safe-area-inset-right, 0px));
  }
  .nav-links{ display:none; }
  .nav-logo img{ height: 64px; }

  .hero-content{
    flex-direction:column;
    align-items:flex-start;
    padding: 0 28px calc(28px + env(safe-area-inset-bottom, 0px));
    gap: 20px;
    max-height: 100%;
    overflow-y:auto;
  }
  .hero-right{
    align-items:flex-start;
    text-align:left;
    max-width:100%;
  }
  .hero-right .subtitle{ text-align:left; }

  .hero-scroll{ height: 300vh; }

  .career-panel{
    left: 28px;
    right: 28px;
    max-width: none;
    text-align:left;
    padding: 28px;
  }
  .career-panel .subtitle{ text-align:left; }
  .career-actions{ justify-content:flex-start; flex-wrap:wrap; }
}

@media (max-width: 520px){
  .career-panel{ padding: 22px; }
}

@media (max-width: 520px){
  .notify-form{ flex-direction:column; width:100%; }
  .btn{ text-align:center; }
  .nav-logo img{ height: 52px; }
}

/* Very narrow phones (iPhone SE/mini width class, small Android) */
@media (max-width: 380px){
  .nav{ padding-left: 18px; padding-right: 18px; }
  .nav-tag{ font-size: 11px; padding: 9px 16px; letter-spacing: 2px; }
  .hero-content{ padding-left: 18px; padding-right: 18px; }
  h1{ font-size: 40px; }
  .eyebrow{ font-size: 11px; letter-spacing: 3px; }
  .hero-right .subtitle{ font-size: 14px; }
}

/* Short viewports — small-height phones, or any phone in landscape.
   Compresses vertical rhythm so the stacked headline/form never has to
   rely on the overflow-y:auto fallback to stay fully visible. */
@media (max-height: 700px) and (max-width: 980px){
  .hero-content{ gap: 12px; padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px)); }
  .eyebrow{ margin-bottom: 6px; }
  h1{ font-size: 36px; line-height: 1.02; }
  .hero-right .subtitle{ font-size: 14px; line-height:1.5; }
  .notify-form input, .notify-form .btn{ padding: 12px 18px; }
}
