/* ============================================
   TRANSVISTORY GROUP — style.css
   ============================================ */

/* RESET & BASE */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:    #1A2B4A;
  --dark:    #2D3748;
  --orange:  #E8602C;
  --orange-h:#d14f20;
  --white:   #FFFFFF;
  --gray-bg: #F7F8FA;
  --gray-bd: #E2E8F0;
  --text:    #2D3748;
  --text-sm: #64748B;
  --radius:  10px;
  --shadow:  0 4px 24px rgba(26,43,74,0.08);
  --transition: 0.25s ease;
}

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

body {
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img, svg { display: block; }

.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 20px;
}

/* FADE-IN */
.fade-in { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-in.visible { opacity: 1; transform: none; }

/* TYPOGRAPHY HELPERS */
.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 12px;
}
.section-label--light { color: #f4a07a; }

.section-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.25;
  margin-bottom: 16px;
}
.section-title--light { color: var(--white); }

.section-desc {
  font-size: 1.05rem;
  color: var(--text-sm);
  max-width: 560px;
  margin-bottom: 48px;
}

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background var(--transition), color var(--transition), border-color var(--transition), transform var(--transition);
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--orange); color: var(--white); }
.btn--primary:hover { background: var(--orange-h); }
.btn--ghost { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.5); }
.btn--ghost:hover { background: rgba(255,255,255,0.1); border-color: #fff; }
.btn--full { width: 100%; }

/* ============================================
   NAVIGATION
   ============================================ */
.nav-wrapper {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--gray-bd);
  box-shadow: 0 1px 12px rgba(26,43,74,0.06);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--navy);
}
.nav__menu {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav__menu a {
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--dark);
  transition: color var(--transition), background var(--transition);
}
.nav__menu a:hover { color: var(--navy); background: var(--gray-bg); }
.nav__cta {
  background: var(--orange) !important;
  color: var(--white) !important;
  padding: 8px 18px !important;
}
.nav__cta:hover { background: var(--orange-h) !important; }

.nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav__toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  background: var(--navy);
  overflow: hidden;
  padding: 96px 0 80px;
}
.hero__bg-shape {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.hero__bg-shape svg { width: 100%; height: 100%; }
.hero__inner { position: relative; z-index: 1; }
.hero__badge {
  display: inline-block;
  background: rgba(232,96,44,0.18);
  color: #f4a07a;
  border: 1px solid rgba(232,96,44,0.3);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  margin-bottom: 24px;
}
.hero__title {
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 20px;
}
.hero__sub {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.75);
  max-width: 600px;
  margin-bottom: 36px;
  line-height: 1.7;
}
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 56px; }
.hero__stats {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 28px;
}
.hero__stat { display: flex; flex-direction: column; gap: 2px; }
.hero__stat strong { font-size: 1rem; font-weight: 700; color: var(--white); }
.hero__stat span { font-size: 0.8rem; color: rgba(255,255,255,0.5); }

/* ============================================
   PROBLEM
   ============================================ */
.problem { padding: 88px 0; background: var(--white); }
.problem__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  margin-top: 40px;
}
.problem__card {
  padding: 28px;
  border: 1px solid var(--gray-bd);
  border-radius: var(--radius);
  transition: box-shadow var(--transition), transform var(--transition);
}
.problem__card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.problem__icon { margin-bottom: 16px; }
.problem__card h3 { font-size: 1rem; font-weight: 700; color: var(--navy); margin-bottom: 8px; }
.problem__card p { font-size: 0.9rem; color: var(--text-sm); line-height: 1.6; }

/* ============================================
   SERVICES
   ============================================ */
.services { padding: 88px 0; background: var(--gray-bg); }
.services__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.services__card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}
.services__card:hover { transform: translateY(-4px); box-shadow: 0 8px 32px rgba(26,43,74,0.13); }
.services__card--accent { background: var(--navy); }
.services__card--accent h3,
.services__card--accent p,
.services__card--accent li { color: var(--white); }
.services__card--accent li::before { background: var(--orange) !important; }
.services__icon { margin-bottom: 20px; }
.services__card h3 { font-size: 1.1rem; font-weight: 700; color: var(--navy); margin-bottom: 10px; }
.services__card p { font-size: 0.9rem; color: var(--text-sm); margin-bottom: 16px; line-height: 1.6; }
.services__card ul { display: flex; flex-direction: column; gap: 6px; }
.services__card li {
  font-size: 0.85rem;
  color: var(--text-sm);
  padding-left: 16px;
  position: relative;
}
.services__card li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--orange);
}

/* ============================================
   HOW WE WORK
   ============================================ */
.how { padding: 88px 0; background: var(--white); }
.how__steps {
  display: flex;
  align-items: flex-start;
  gap: 0;
  margin-top: 48px;
  flex-wrap: wrap;
}
.how__step {
  flex: 1;
  min-width: 180px;
  text-align: center;
  padding: 0 16px;
}
.how__connector {
  flex: 0 0 40px;
  height: 2px;
  background: var(--gray-bd);
  margin-top: 44px;
  position: relative;
}
.how__connector::after {
  content: '';
  position: absolute;
  right: -6px;
  top: -5px;
  width: 0;
  height: 0;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 8px solid var(--gray-bd);
}
.how__num {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--gray-bd);
  line-height: 1;
  margin-bottom: 8px;
}
.how__icon { display: flex; justify-content: center; margin-bottom: 12px; }
.how__step h3 { font-size: 1rem; font-weight: 700; color: var(--navy); margin-bottom: 8px; }
.how__step p { font-size: 0.875rem; color: var(--text-sm); line-height: 1.6; }

/* ============================================
   FOR WHOM
   ============================================ */
.for-whom { padding: 88px 0; background: var(--gray-bg); }
.for-whom__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  margin-top: 40px;
  margin-bottom: 32px;
}
.for-whom__item {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}
.for-whom__icon { margin-bottom: 16px; }
.for-whom__item h3 { font-size: 1rem; font-weight: 700; color: var(--navy); margin-bottom: 8px; }
.for-whom__item p { font-size: 0.875rem; color: var(--text-sm); line-height: 1.6; }
.for-whom__note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: rgba(232,96,44,0.06);
  border: 1px solid rgba(232,96,44,0.2);
  border-radius: var(--radius);
  padding: 16px 20px;
  font-size: 0.9rem;
  color: var(--dark);
}
.for-whom__note svg { flex-shrink: 0; margin-top: 2px; }

/* ============================================
   WHY US
   ============================================ */
.why-us { padding: 88px 0; background: var(--navy); }
.why-us .section-title { color: var(--white); }
.why-us .section-label { color: #f4a07a; }
.why-us__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 32px;
  margin-top: 48px;
}
.why-us__item { padding: 4px 0; }
.why-us__icon { margin-bottom: 16px; }
.why-us__item h3 { font-size: 1rem; font-weight: 700; color: var(--white); margin-bottom: 8px; }
.why-us__item p { font-size: 0.9rem; color: rgba(255,255,255,0.65); line-height: 1.7; }

/* ============================================
   CASE STUDIES
   ============================================ */
.cases { padding: 88px 0; background: var(--white); }
.cases__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 40px;
}
.cases__card {
  border-radius: var(--radius);
  padding: 28px;
  border: 1px solid var(--gray-bd);
  transition: box-shadow var(--transition), transform var(--transition);
}
.cases__card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.cases__card--placeholder { background: var(--gray-bg); }
.cases__tag {
  display: inline-block;
  background: rgba(26,43,74,0.08);
  color: var(--navy);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 14px;
}
.cases__card h3 { font-size: 1rem; font-weight: 700; color: var(--navy); margin-bottom: 8px; }
.cases__card p { font-size: 0.875rem; color: var(--text-sm); margin-bottom: 16px; line-height: 1.6; }
.cases__metric { font-size: 1.5rem; font-weight: 700; color: var(--orange); }
.cases__disclaimer { margin-top: 20px; font-size: 0.8rem; color: var(--text-sm); text-align: center; }

/* ============================================
   CONTACT
   ============================================ */
.contact { padding: 88px 0; background: var(--navy); }
.contact__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.contact__info .section-desc { color: rgba(255,255,255,0.7); max-width: none; margin-bottom: 32px; }
.contact__info > p { color: rgba(255,255,255,0.9); margin-bottom: 32px; line-height: 1.7; }
.contact__details { display: flex; flex-direction: column; gap: 14px; }
.contact__details li { display: flex; align-items: center; gap: 10px; font-size: 0.95rem; color: rgba(255,255,255,0.8); }
.contact__details a:hover { color: var(--white); }

/* FORM */
.contact__form { display: flex; flex-direction: column; gap: 16px; }
.form__group { display: flex; flex-direction: column; gap: 6px; }
.form__group label { font-size: 0.85rem; font-weight: 600; color: rgba(255,255,255,0.8); }
.form__group input,
.form__group textarea {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 0.95rem;
  font-family: 'Inter', sans-serif;
  color: var(--white);
  transition: border-color var(--transition), background var(--transition);
  resize: vertical;
}
.form__group input::placeholder,
.form__group textarea::placeholder { color: rgba(255,255,255,0.35); }
.form__group input:focus,
.form__group textarea:focus {
  outline: none;
  border-color: var(--orange);
  background: rgba(255,255,255,0.1);
}
.form__group input.error,
.form__group textarea.error { border-color: #fc8181; }
.form__note { font-size: 0.8rem; color: rgba(255,255,255,0.45); text-align: center; margin-top: -4px; }

/* ============================================
   FOOTER
   ============================================ */
.footer { background: #111d30; padding: 32px 0; }
.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}
.footer__logo { color: var(--white); }
.footer__logo span { color: rgba(255,255,255,0.8); }
.footer__nav { display: flex; gap: 20px; flex-wrap: wrap; }
.footer__nav a { font-size: 0.85rem; color: rgba(255,255,255,0.5); transition: color var(--transition); }
.footer__nav a:hover { color: var(--white); }
.footer__copy { font-size: 0.8rem; color: rgba(255,255,255,0.35); }

/* ============================================
   RESPONSIVE — TABLET (768px)
   ============================================ */
@media (max-width: 900px) {
  .contact__inner { grid-template-columns: 1fr; gap: 48px; }
}

@media (max-width: 768px) {
  .nav__menu {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 16px 20px 24px;
    border-bottom: 1px solid var(--gray-bd);
    box-shadow: 0 8px 24px rgba(26,43,74,0.1);
    gap: 4px;
  }
  .nav__menu.open { display: flex; }
  .nav__menu a { display: block; padding: 10px 14px; border-radius: 6px; }
  .nav__toggle { display: flex; }

  .how__steps { flex-direction: column; align-items: center; }
  .how__connector { width: 2px; height: 32px; flex: 0 0 32px; margin-top: 0; }
  .how__connector::after {
    right: -5px;
    top: auto;
    bottom: -6px;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 8px solid var(--gray-bd);
    border-bottom: none;
  }
  .how__step { min-width: unset; width: 100%; max-width: 360px; }

  .footer__inner { flex-direction: column; text-align: center; }
  .footer__nav { justify-content: center; }

  .hero { padding: 64px 0 56px; }
  .hero__stats { gap: 20px; }
  section { padding: 64px 0 !important; }
}

/* ============================================
   RESPONSIVE — MOBILE (480px)
   ============================================ */
@media (max-width: 480px) {
  .hero__actions { flex-direction: column; }
  .btn { width: 100%; text-align: center; }
  .btn--ghost { width: 100%; }
  .cases__grid,
  .services__grid,
  .problem__grid,
  .for-whom__grid,
  .why-us__grid { grid-template-columns: 1fr; }
}
