/* =============================================
   COMPOUND CONTROLS — REDESIGN
   ============================================= */

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

:root {
  --navy: #0f2b4c;
  --navy-dark: #0a1e36;
  --blue: #1a6bb5;
  --blue-light: #e8f1fa;
  --blue-pale: #f4f8fc;
  --white: #ffffff;
  --gray-50: #f8f9fa;
  --gray-100: #f1f3f5;
  --gray-200: #e2e5e9;
  --gray-400: #98a2b3;
  --gray-600: #5a6578;
  --gray-800: #2d3648;
  --gray-900: #1a2332;
  --radius: 8px;
  --radius-lg: 12px;
}

html { scroll-behavior: smooth; font-size: 16px; scroll-padding-top: 72px; }

body {
  font-family: 'Inter', sans-serif;
  color: var(--gray-800);
  line-height: 1.6;
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: var(--gray-900);
  line-height: 1.2;
  letter-spacing: -0.01em;
}
h2 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 700; }

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: var(--radius);
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.btn--primary {
  background: var(--blue);
  color: var(--white);
}
.btn--primary:hover { background: #155a9a; }
.btn--sent, .btn--sent:hover { background: #16a34a; cursor: default; }
.btn--white {
  background: var(--white);
  color: var(--navy);
}
.btn--white:hover { background: var(--gray-100); }
.btn--outline {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.4);
}
.btn--outline:hover { border-color: rgba(255,255,255,0.8); background: rgba(255,255,255,0.08); }

/* ---- NAV ---- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  transition: box-shadow 0.3s;
}
.nav.scrolled { box-shadow: 0 2px 16px rgba(0,0,0,0.06); }
.nav__inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}
.logo-img {
  height: 40px;
  width: auto;
  display: block;
}
.footer .logo-img {
  height: 52px;
}
.nav__links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin-left: auto;
}
.nav__links a {
  color: var(--gray-600);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 6px;
  transition: color 0.2s, background 0.2s;
}
.nav__links a:hover { color: var(--gray-900); background: var(--gray-50); }
.nav__links a.nav__phone {
  color: var(--white);
  background: var(--blue);
  font-weight: 600;
  white-space: nowrap;
  border-radius: 100px;
}
.nav__links a.nav__phone:hover { background: #155a9a; color: var(--white); }
.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  margin-left: auto;
}
.nav__burger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--gray-800);
  border-radius: 2px;
}
.nav__mobile {
  display: none;
  flex-direction: column;
  padding: 12px 24px 20px;
  border-top: 1px solid var(--gray-200);
  background: var(--white);
}
.nav__mobile a {
  color: var(--gray-600);
  text-decoration: none;
  font-size: 0.95rem;
  padding: 12px 0;
  border-bottom: 1px solid var(--gray-100);
  font-weight: 500;
}
.nav__mobile a:last-child { border-bottom: none; color: var(--blue); font-weight: 600; }
.nav__mobile.open { display: flex; }

/* ---- HERO ---- */
.hero {
  background: var(--navy);
  padding: 110px 24px 80px;
  position: relative;
  overflow: hidden;
  min-height: 520px;
  display: flex;
  align-items: center;
}
.hero__bg {
  position: absolute;
  inset: 0;
  background: url('../img/hero.jpg') center right / cover no-repeat;
  opacity: 0.35;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right, var(--navy) 35%, rgba(15,43,76,0.4) 70%, rgba(15,43,76,0.15) 100%);
  pointer-events: none;
}
.hero__inner {
  max-width: 1080px;
  margin: 0 auto;
  position: relative;
  width: 100%;
}
.hero__content {
  max-width: 680px;
}
.hero__tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.5);
  margin-bottom: 20px;
  text-transform: uppercase;
}
.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.12;
  margin-bottom: 20px;
}
.hero p {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.7;
  margin-bottom: 36px;
  max-width: 520px;
}
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---- SERVICES ---- */
.services {
  padding: 64px 0;
  background: var(--white);
}
.services__header {
  margin-bottom: 36px;
}
.services__header h2 { margin-bottom: 10px; }
.services__header p { color: var(--gray-600); font-size: 1rem; max-width: 460px; }
.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.svc {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.svc:hover {
  border-color: var(--blue);
  box-shadow: 0 2px 12px rgba(26,107,181,0.08);
}
.svc__icon {
  width: 44px;
  height: 44px;
  background: var(--blue-light);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.svc__icon svg { width: 20px; height: 20px; color: var(--blue); }
.svc h3 { margin-bottom: 10px; }
.svc p { font-size: 0.9rem; color: var(--gray-600); line-height: 1.6; }

/* ---- ABOUT ---- */
.about {
  padding: 64px 0;
  background: var(--blue-pale);
  border-top: 1px solid var(--gray-200);
  border-bottom: 1px solid var(--gray-200);
}
.about__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.about__text h2 { margin-bottom: 16px; }
.about__text > p { color: var(--gray-600); font-size: 0.95rem; margin-bottom: 24px; line-height: 1.7; }
.about__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.about__list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--gray-800);
}
.about__list svg { width: 18px; height: 18px; color: var(--blue); flex-shrink: 0; }

.about__card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 2px 16px rgba(0,0,0,0.04);
}
.about__card-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 24px;
  border-bottom: 1px solid var(--gray-100);
}
.about__card-row:last-child { border-bottom: none; }
.about__card-label { font-size: 0.85rem; color: var(--gray-400); font-weight: 500; }
.about__card-value { font-size: 0.9rem; font-weight: 600; color: var(--gray-900); }

/* ---- CONTACT ---- */
.contact {
  padding: 64px 0;
  background: var(--white);
}
.contact__inner {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 60px;
  align-items: start;
}
.contact__left h2 { margin-bottom: 12px; }
.contact__left > p { color: var(--gray-600); font-size: 0.95rem; margin-bottom: 28px; line-height: 1.7; }
.contact__details { display: flex; flex-direction: column; gap: 16px; }
.contact__detail {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--gray-800);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
}
a.contact__detail:hover { color: var(--blue); }
.contact__detail svg { width: 18px; height: 18px; color: var(--blue); flex-shrink: 0; }

.contact__form {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-group { display: flex; flex-direction: column; gap: 5px; }
.form-group label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--gray-600);
}
.form-group input,
.form-group textarea {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 10px 14px;
  color: var(--gray-800);
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  width: 100%;
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(26,107,181,0.1);
}
.form-group textarea { resize: vertical; min-height: 90px; }
.hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* ---- FOOTER ---- */
.footer {
  background: var(--navy-dark);
  padding: 48px 0;
}
.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}
.footer__left { display: flex; flex-direction: column; gap: 12px; }
.footer__left p { color: rgba(255,255,255,0.4); font-size: 0.85rem; max-width: 280px; }
.footer__right { display: flex; gap: 28px; flex-wrap: wrap; align-items: center; }
.footer__right a {
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  transition: color 0.2s;
}
.footer__right a:hover { color: var(--white); }

/* ---- RESPONSIVE ---- */

/* Tablet */
@media (max-width: 960px) {
  .nav__links { display: none; }
  .nav__burger { display: flex; }
  .services__grid { grid-template-columns: repeat(2, 1fr); }
  .about__inner { grid-template-columns: 1fr; gap: 32px; }
  .contact__inner { grid-template-columns: 1fr; gap: 32px; }
}

/* Mobile */
@media (max-width: 600px) {
  .container { padding: 0 20px; }
  h2 { font-size: 1.4rem; }
  h3 { font-size: 1.05rem; }

  /* Nav */
  .nav__inner { height: 56px; padding: 0 20px; }
  .logo-img { height: 34px; }

  /* Hero */
  .hero { padding: 88px 20px 48px; min-height: auto; }
  .hero__bg {
    background-position: center center;
    opacity: 0.25;
  }
  .hero__overlay {
    background: linear-gradient(to bottom, var(--navy) 0%, rgba(15,43,76,0.5) 50%, var(--navy) 100%);
  }
  .hero__tag { font-size: 0.7rem; margin-bottom: 14px; }
  .hero h1 { font-size: 1.6rem; margin-bottom: 14px; }
  .hero p { font-size: 0.92rem; margin-bottom: 24px; line-height: 1.6; }
  .hero__actions { flex-direction: column; gap: 10px; }
  .hero__actions .btn {
    text-align: center;
    justify-content: center;
    width: 100%;
    padding: 14px 20px;
    font-size: 0.95rem;
  }

  /* Services */
  .services { padding: 40px 0; }
  .services__header { margin-bottom: 24px; }
  .services__header p { font-size: 0.9rem; }
  .services__grid { grid-template-columns: 1fr; gap: 12px; }
  .svc { padding: 20px; }
  .svc__icon { width: 38px; height: 38px; margin-bottom: 14px; }
  .svc__icon svg { width: 18px; height: 18px; }
  .svc p { font-size: 0.85rem; }

  /* About */
  .about { padding: 40px 0; }
  .about__text > p { font-size: 0.9rem; margin-bottom: 20px; }
  .about__list li { font-size: 0.85rem; }
  .about__card-row { padding: 14px 18px; }
  .about__card-label { font-size: 0.8rem; }
  .about__card-value { font-size: 0.85rem; }

  /* Contact */
  .contact { padding: 40px 0; }
  .contact__inner { grid-template-columns: 1fr; gap: 28px; }
  .contact__left > p { font-size: 0.9rem; margin-bottom: 20px; }
  .contact__detail { font-size: 0.85rem; }
  .contact__form { padding: 20px; gap: 12px; }
  .form-row { grid-template-columns: 1fr; gap: 12px; }
  .form-group label { font-size: 0.78rem; }
  .form-group input,
  .form-group textarea { padding: 10px 12px; font-size: 0.88rem; }
  .btn--primary { padding: 13px 20px; width: 100%; justify-content: center; }

  /* Footer */
  .footer { padding: 32px 0; }
  .footer .logo-img { height: 38px; }
  .footer__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }
  .footer__left p { font-size: 0.8rem; }
  .footer__right {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    width: 100%;
  }
  .footer__right a { font-size: 0.82rem; }
}

/* ---- ANIMATIONS ---- */
.fade-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  will-change: opacity, transform;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
  will-change: auto;
}

/* ---- CAREERS PAGE ---- */
.careers-hero {
  background: var(--navy);
  padding: 120px 24px 64px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.careers-hero__bg {
  position: absolute;
  inset: 0;
  background: url('../img/careers-hero.jpg') center center / cover no-repeat;
  opacity: 0.3;
}
.careers-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(15,43,76,0.7) 0%, rgba(10,30,54,0.85) 100%);
}
.careers-hero h1 {
  color: var(--white);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  margin-bottom: 16px;
  position: relative;
}
.careers-hero p {
  color: rgba(255,255,255,0.6);
  font-size: 1.05rem;
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.7;
  position: relative;
}

.careers-why {
  padding: 64px 0;
  background: var(--white);
}
.careers-why h2 { margin-bottom: 12px; }
.careers-why > .container > p {
  color: var(--gray-600);
  font-size: 0.95rem;
  max-width: 540px;
  margin-bottom: 36px;
  line-height: 1.7;
}
.perks-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.perk {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 28px;
}
.perk h3 { margin-bottom: 8px; }
.perk p { font-size: 0.88rem; color: var(--gray-600); line-height: 1.6; }

.careers-openings {
  padding: 64px 0;
  background: var(--blue-pale);
  border-top: 1px solid var(--gray-200);
}
.careers-openings h2 { margin-bottom: 12px; }
.careers-openings > .container > p {
  color: var(--gray-600);
  font-size: 0.95rem;
  margin-bottom: 32px;
}
.openings-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.opening {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  transition: border-color 0.2s;
}
.opening:hover { border-color: var(--blue); }
.opening__info h3 { margin-bottom: 4px; }
.opening__meta {
  display: flex;
  gap: 16px;
  font-size: 0.82rem;
  color: var(--gray-400);
  font-weight: 500;
}
.opening__meta span {
  display: flex;
  align-items: center;
  gap: 5px;
}

.careers-apply {
  padding: 64px 0;
  background: var(--white);
}
.careers-apply__inner {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
}
.careers-apply h2 { margin-bottom: 12px; }
.careers-apply p {
  color: var(--gray-600);
  font-size: 0.95rem;
  margin-bottom: 28px;
  line-height: 1.7;
}
.careers-apply .btn { font-size: 0.95rem; padding: 14px 32px; }
.careers .nav__links a.nav__current { color: var(--gray-900); }

@media (max-width: 960px) {
  .perks-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .careers-hero { padding: 96px 20px 48px; }
  .careers-hero h1 { font-size: 1.5rem; }
  .careers-hero p { font-size: 0.92rem; }
  .careers-why { padding: 40px 0; }
  .perks-grid { grid-template-columns: 1fr; gap: 12px; }
  .perk { padding: 20px; }
  .careers-openings { padding: 40px 0; }
  .opening {
    flex-direction: column;
    align-items: flex-start;
    padding: 20px;
    gap: 14px;
  }
  .careers-apply { padding: 40px 0; }
}
