/* ==========================================================================
   GIMANDS — Visual clone styles
   Single-page layout: navbar, hero, about, careers, contact, footer
   ========================================================================== */

:root {
  --bg: #000;
  --ink: #fff;
  --muted: #c9c9c9;
  --brand: #4ec3d4;
  --accent: #f29844;
  --footer: #f0a14a;
  --side: 144px;          /* desktop side padding (matches reference grid) */
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
html, body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* --------------------------------------------------------------------------
   Reveal animations (driven by IntersectionObserver in script.js)
   -------------------------------------------------------------------------- */
[data-reveal] {
  opacity: 0;
  transition: opacity .9s ease, transform .9s cubic-bezier(.2,.7,.2,1);
  will-change: opacity, transform;
}
[data-reveal="left"]  { transform: translate3d(-60px, 0, 0); }
[data-reveal="right"] { transform: translate3d(60px, 0, 0); }
[data-reveal="up"]    { transform: translate3d(0, 40px, 0); }
[data-reveal="down"]  { transform: translate3d(0, -40px, 0); }
[data-reveal="fade"]  { transform: none; }
[data-reveal].in {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}
[data-stagger] > * { transition-delay: 0ms; }
[data-stagger] > *:nth-child(1) { transition-delay: 80ms; }
[data-stagger] > *:nth-child(2) { transition-delay: 200ms; }
[data-stagger] > *:nth-child(3) { transition-delay: 320ms; }
[data-stagger] > *:nth-child(4) { transition-delay: 440ms; }

/* --------------------------------------------------------------------------
   Navbar
   -------------------------------------------------------------------------- */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 75px;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--side);
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(6px);
  transition: background-color .3s ease;
}
.navbar.scrolled { background: rgba(0,0,0,0.85); }
.Logo img { height: 22px; width: auto; }
.navItems {
  list-style: none;
  display: flex;
  gap: 56px;
}
.navItem a {
  font-size: 16px;
  color: #fff;
  position: relative;
  transition: color 200ms ease;
}
.navItem a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -6px;
  width: 0;
  height: 2px;
  background: var(--brand);
  transition: width 250ms ease;
}
.navItem a:hover { color: var(--brand); }
.navItem a:hover::after { width: 100%; }

/* --------------------------------------------------------------------------
   Hero banner
   -------------------------------------------------------------------------- */
.banner {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 720px;
  background: #000;
  overflow: hidden;
}
.heroImg {
  position: absolute;
  top: 75px;
  left: 40.76%;          /* 587 / 1440 — matches reference */
  right: 0;
  bottom: 0;
  width: auto;
  height: calc(100% - 75px);
  object-fit: cover;
  object-position: left center;
  animation: heroPulse 8s ease-in-out infinite alternate;
}
@keyframes heroPulse {
  0%   { transform: scale(1) translateY(0); }
  100% { transform: scale(1.04) translateY(-8px); }
}
.banner::after {
  content: "";
  position: absolute;
  top: 75px;
  left: 35%;
  width: 14%;
  height: calc(100% - 75px);
  background: linear-gradient(90deg, #000 0%, transparent 100%);
  pointer-events: none;
  z-index: 1;
}
.Text {
  position: absolute;
  left: var(--side);
  top: 50%;
  transform: translateY(-50%);
  width: 443px;
  color: #fff;
  font-size: 22.4px;
  line-height: 1.5;
  font-weight: 400;
  padding-left: 22px;
  z-index: 2;
}
.Text::before {
  content: "";
  position: absolute;
  left: 0; top: 4px;
  width: 4px;
  height: calc(100% - 8px);
  background: var(--accent);
  border-radius: 2px;
  transform-origin: top;
  animation: barIn 1s .3s cubic-bezier(.2,.7,.2,1) both;
}
@keyframes barIn {
  from { transform: scaleY(0); }
  to   { transform: scaleY(1); }
}
.Text[data-reveal] { transform: translateY(-50%) translate3d(-60px, 0, 0); }
.Text[data-reveal].in { transform: translateY(-50%) translate3d(0, 0, 0); }

/* --------------------------------------------------------------------------
   Banner1 — About + picture grid
   -------------------------------------------------------------------------- */
.banner1 {
  position: relative;
  width: 100%;
  min-height: 622px;
  background:
    url("https://gimands.com/static/media/bannerImg2.7de303a6.png") right center / cover no-repeat,
    #000;
  display: flex;
  align-items: center;
}
.banner1::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #000 0%, rgba(0,0,0,0.55) 50%, rgba(0,0,0,0.15) 100%);
}
.banner2 {
  position: relative;
  z-index: 2;
  margin-left: var(--side);
  width: 576px;
  min-height: 510px;
  background: rgba(255,255,255,0.11);
  padding: 43px 72px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-radius: 4px;
  backdrop-filter: blur(2px);
}
.banner2 h2 {
  font-size: 28px;
  font-weight: 400;
  color: #fff;
  letter-spacing: 0.5px;
  margin-bottom: 18px;
}
.banner2 .lead {
  color: #d8d8d8;
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 26px;
}
.PictureRow {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  width: 100%;
}
.PictureRow > div {
  overflow: hidden;
  border-radius: 4px;
  box-shadow: 0 10px 24px -10px rgba(0,0,0,0.6);
  transition: transform .35s ease, box-shadow .35s ease;
}
.PictureRow > div:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 18px 36px -14px rgba(0,0,0,0.75);
}
.PictureRow img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 3;
}

/* --------------------------------------------------------------------------
   Careers
   -------------------------------------------------------------------------- */
.careers {
  position: relative;
  width: 100%;
  min-height: 460px;
  margin: 60px 0;
  padding: 0 var(--side);
  display: flex;
  align-items: center;
  justify-content: flex-start;
}
.careersBg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(217,119,6,0.55) 0%, rgba(78,195,212,0.55) 100%),
    url("https://gimands.com/static/media/careers.ca6153fe.png") center/cover no-repeat;
}
.careersCard {
  position: relative;
  z-index: 2;
  width: 440px;
  padding: 50px 40px;
  background: rgba(238, 230, 222, 0.92);
  color: #444;
  border-radius: 6px;
  text-align: center;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,0.45);
}
.careersCard h2 {
  font-weight: 400;
  font-size: 36px;
  color: #555;
  margin-bottom: 14px;
  letter-spacing: 1px;
}
.careersCard h2 span { color: #888; }
.careersCard p {
  font-size: 15px;
  color: #666;
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   Job Openings
   -------------------------------------------------------------------------- */
.openings {
  padding: 40px var(--side) 80px;
  background: #000;
}
.openingsHeader {
  margin-bottom: 32px;
}
.openingsHeader h2 {
  font-weight: 400;
  font-size: 28px;
  color: #d3d3d3;
  letter-spacing: 0.5px;
}
.openingsHeader h2 span { color: var(--accent); }
.openingsSub {
  color: #9a9a9a;
  font-size: 14px;
  margin-top: 8px;
}

.jobCard {
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.015));
  border: 1px solid rgba(255,255,255,0.08);
  border-left: 3px solid var(--accent);
  border-radius: 6px;
  padding: 32px 36px;
  max-width: 1000px;
  transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
}
.jobCard:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 44px -22px rgba(0,0,0,0.7);
  border-left-color: var(--brand);
}

.jobCardHeader {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  padding-bottom: 22px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 22px;
}
.jobCardHeader h3 {
  color: #fff;
  font-size: 22px;
  font-weight: 500;
  margin-bottom: 12px;
  letter-spacing: 0.3px;
}
.jobMeta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.badge {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: 0.4px;
  background: rgba(78,195,212,0.12);
  color: var(--brand);
  border: 1px solid rgba(78,195,212,0.25);
}
.badge.salary {
  background: rgba(242,152,68,0.12);
  color: var(--accent);
  border-color: rgba(242,152,68,0.3);
}

.jobBody h4 {
  color: var(--brand);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  margin-top: 22px;
  margin-bottom: 10px;
}
.jobBody h4:first-child { margin-top: 0; }
.jobBody p {
  color: #c9c9c9;
  font-size: 14.5px;
  line-height: 1.7;
  margin-bottom: 12px;
}
.jobNote {
  color: #a9a9a9 !important;
  font-size: 13.5px !important;
}
.jobNote strong { color: #d8d8d8; }

.qualList {
  list-style: none;
  padding: 0;
  margin: 0 0 12px;
}
.qualList li {
  position: relative;
  padding-left: 18px;
  color: #c9c9c9;
  font-size: 14.5px;
  line-height: 1.7;
  margin-bottom: 10px;
}
.qualList li::before {
  content: "";
  position: absolute;
  left: 0; top: 11px;
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
}
.qualList strong { color: #fff; font-weight: 600; }

.jobActions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.applyBtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  padding: 12px 28px;
  border-radius: 4px;
  border: 1px solid var(--accent);
  transition: background-color .25s ease, transform .25s ease, box-shadow .25s ease;
  cursor: pointer;
  white-space: nowrap;
}
.applyBtn:hover {
  background: #ffae5e;
  transform: translateY(-1px);
  box-shadow: 0 12px 24px -10px rgba(242,152,68,0.6);
}
.applyBtn:active { transform: translateY(0); }
.applyBtnTop { align-self: flex-start; }

.applyHint {
  color: #888;
  font-size: 12.5px;
}

/* --------------------------------------------------------------------------
   Apply Modal
   -------------------------------------------------------------------------- */
.applyModal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.applyModal.open { display: flex; }
.applyModal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(4px);
  animation: fadeIn .22s ease both;
}
.applyModal__panel {
  position: relative;
  width: 100%;
  max-width: 560px;
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  background: #141414;
  border: 1px solid rgba(255,255,255,0.08);
  border-top: 3px solid var(--accent);
  border-radius: 8px;
  padding: 30px 32px;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,0.7);
  animation: panelIn .28s cubic-bezier(.2,.7,.2,1) both;
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes panelIn {
  from { opacity: 0; transform: translateY(12px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.applyModal__close {
  position: absolute;
  top: 10px;
  right: 14px;
  background: transparent;
  border: 0;
  color: #aaa;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  padding: 4px 8px;
  transition: color .2s ease;
}
.applyModal__close:hover { color: #fff; }
.applyModal__panel h3 {
  color: #fff;
  font-weight: 500;
  font-size: 20px;
  letter-spacing: 0.3px;
}
.applyModal__panel h3 span { color: var(--accent); }
.applyModal__sub {
  color: #9a9a9a;
  font-size: 13.5px;
  margin: 6px 0 22px;
}

.applyForm {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.applyForm__full { grid-column: 1 / -1; }
.applyForm label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
  color: #bdbdbd;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}
.applyForm label em {
  color: var(--accent);
  font-style: normal;
  margin-left: 2px;
}
.applyForm input,
.applyForm textarea {
  background: #0a0a0a;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 4px;
  padding: 10px 12px;
  color: #fff;
  font: inherit;
  font-size: 14px;
  letter-spacing: 0;
  text-transform: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.applyForm input:focus,
.applyForm textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(78,195,212,0.15);
}
.applyForm input.invalid,
.applyForm textarea.invalid {
  border-color: #e34d4d;
  box-shadow: 0 0 0 3px rgba(227,77,77,0.15);
}
.applyForm textarea {
  resize: vertical;
  min-height: 90px;
}
.applyForm__note {
  color: #888;
  font-size: 12.5px;
  margin: 4px 0 0;
}
.applyForm__note strong { color: var(--brand); }

.applyForm__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 6px;
}
.applyBtn--ghost {
  background: transparent;
  color: var(--accent);
  border: 1px solid rgba(242,152,68,0.5);
  padding: 10px 18px;
  font-size: 13px;
}
.applyBtn--ghost:hover {
  background: rgba(242,152,68,0.08);
  color: #ffae5e;
  box-shadow: none;
  transform: none;
}
.applySend { padding: 10px 22px; font-size: 13px; }

.applyForm__status {
  font-size: 13px;
  color: var(--brand);
  min-height: 18px;
  margin: 4px 0 0;
}
.applyForm__status.error { color: #e34d4d; }

@media (max-width: 560px) {
  .applyModal { padding: 12px; }
  .applyModal__panel { padding: 24px 20px; }
  .applyForm { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------------------------
   Contact
   -------------------------------------------------------------------------- */
.contact {
  padding: 60px var(--side) 80px;
  background: #000;
}
.contact h2 {
  font-weight: 400;
  font-size: 26px;
  color: #d3d3d3;
  margin-bottom: 28px;
}
.contact h2 span { color: #777; }
.contact .address {
  color: var(--brand);
  letter-spacing: 1px;
  font-size: 14px;
  margin-bottom: 20px;
  font-weight: 600;
}
.contact .email {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #2fa3b8;
  font-size: 14px;
  transition: transform .25s ease;
}
.contact .email:hover { transform: translateX(4px); }
.contact .email img { width: 16px; height: 16px; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.footer {
  background: var(--footer);
  color: #fff;
  padding: 26px var(--side);
  font-size: 14px;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1100px) {
  :root { --side: 60px; }
  .Text { width: 380px; font-size: 20px; }
  .banner2 { width: 90%; padding: 32px 36px; }
  .careersCard { width: 380px; }
}
@media (max-width: 760px) {
  :root { --side: 22px; }
  .navItems { gap: 22px; }
  .navItem a { font-size: 14px; }
  .banner { height: auto; min-height: 0; padding-top: 75px; }
  .heroImg {
    position: relative; top: 0; left: 0; right: auto;
    width: 100%; height: auto;
  }
  .Text {
    position: relative; top: auto; left: auto;
    transform: none;
    width: 100%; padding: 32px 22px 32px 38px;
  }
  .Text[data-reveal] { transform: translate3d(-60px, 0, 0); }
  .Text[data-reveal].in { transform: translate3d(0, 0, 0); }
  .banner1 { min-height: 0; padding: 60px 0; }
  .banner2 { width: calc(100% - 44px); margin: 0 22px; }
  .careers { padding: 0 22px; min-height: 360px; }
  .careersCard { width: 100%; }
  .openings { padding: 30px 22px 60px; }
  .jobCard { padding: 24px 22px; }
  .jobCardHeader { flex-direction: column; gap: 18px; }
  .jobActions { flex-direction: column; align-items: flex-start; gap: 10px; }
  .applyBtn { width: 100%; }
  .contact { padding: 40px 22px; }
  .footer { padding: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal] { transition: none; opacity: 1; transform: none; }
  .heroImg { animation: none; }
  .Text::before { animation: none; }
}
