/* ============================================================
   TrainTern Information — Global Trades Mobility Portal
   Professional informational stylesheet
   ============================================================ */

:root {
  --navy: #0b1f33;
  --navy-soft: #132f4c;
  --steel: #2c5f8a;
  --accent: #d97706;
  --accent-soft: #f59e0b;
  --sand: #f5f7fa;
  --sand-deep: #e8edf3;
  --text: #1f2a37;
  --text-muted: #5b6b7c;
  --white: #ffffff;
  --border: #d8e0e8;
  --shadow-sm: 0 1px 2px rgba(11, 31, 51, 0.06);
  --shadow-md: 0 8px 24px rgba(11, 31, 51, 0.08);
  --shadow-lg: 0 20px 50px rgba(11, 31, 51, 0.12);
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --max-width: 1180px;
  --font-sans: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-display: "Georgia", "Times New Roman", serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--steel);
  text-decoration: none;
  transition: color 0.25s ease;
}

a:hover {
  color: var(--accent);
}

/* ---------- Utility ---------- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 88px 0;
}

.section--tight {
  padding: 56px 0;
}

.section--sand {
  background: var(--sand);
}

.section--navy {
  background: var(--navy);
  color: var(--white);
}

.section--navy a {
  color: var(--accent-soft);
}

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

.section--navy .eyebrow {
  color: var(--accent-soft);
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.25;
  color: var(--navy);
  letter-spacing: -0.01em;
}

.section--navy h1,
.section--navy h2,
.section--navy h3 {
  color: var(--white);
}

h1 {
  font-size: clamp(2.1rem, 5vw, 3.4rem);
}

h2 {
  font-size: clamp(1.6rem, 3.4vw, 2.3rem);
  margin-bottom: 18px;
}

h3 {
  font-size: 1.25rem;
  margin-bottom: 10px;
}

p {
  margin-bottom: 16px;
  color: var(--text-muted);
}

.section--navy p {
  color: #c9d6e3;
}

.lead {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 720px;
}

.section--navy .lead {
  color: #c9d6e3;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn--primary {
  background: var(--accent);
  color: var(--white);
  box-shadow: 0 6px 18px rgba(217, 119, 6, 0.25);
}

.btn--primary:hover {
  background: var(--accent-soft);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(217, 119, 6, 0.32);
}

.btn--ghost {
  background: transparent;
  color: var(--navy);
  border-color: var(--border);
}

.btn--ghost:hover {
  border-color: var(--steel);
  color: var(--steel);
  transform: translateY(-2px);
}

.section--navy .btn--ghost {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.3);
}

.section--navy .btn--ghost:hover {
  border-color: var(--accent-soft);
  color: var(--accent-soft);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s ease;
}

.site-header.is-scrolled {
  box-shadow: var(--shadow-md);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy);
  white-space: nowrap;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--steel), var(--navy));
  display: grid;
  place-items: center;
  color: var(--white);
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  list-style: none;
}

.nav-links a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-muted);
}

.nav-links a:hover {
  color: var(--navy);
}

.nav-cta {
  display: inline-flex;
}

@media (max-width: 860px) {
  .nav-links {
    display: none;
  }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 110px 0 96px;
  background:
    linear-gradient(120deg, rgba(11, 31, 51, 0.94) 0%, rgba(19, 47, 76, 0.88) 55%, rgba(44, 95, 138, 0.82) 100%),
    radial-gradient(circle at 80% 20%, rgba(217, 119, 6, 0.28), transparent 45%);
  color: var(--white);
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("https://images.unsplash.com/photo-1504307651254-35680f356dfd?auto=format&fit=crop&w=1600&q=80");
  background-size: cover;
  background-position: center;
  opacity: 0.14;
  z-index: 0;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
}

.hero h1 {
  color: var(--white);
  margin-bottom: 20px;
}

.hero p {
  color: #cdd9e5;
  font-size: 1.08rem;
  max-width: 620px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.hero-panel {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-lg);
  padding: 30px;
  backdrop-filter: blur(8px);
}

.hero-panel h3 {
  color: var(--white);
  font-size: 1.05rem;
  margin-bottom: 16px;
}

.hero-list {
  list-style: none;
  display: grid;
  gap: 12px;
}

.hero-list li {
  display: flex;
  gap: 10px;
  font-size: 0.92rem;
  color: #d5e0eb;
}

.hero-list li::before {
  content: "✓";
  color: var(--accent-soft);
  font-weight: 700;
  flex-shrink: 0;
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
}

/* ---------- Trust bar ---------- */
.trust-bar {
  background: var(--navy-soft);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 22px 0;
}

.trust-bar .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 18px;
}

.trust-item {
  font-size: 0.85rem;
  color: #a9bdd1;
  display: flex;
  align-items: center;
  gap: 8px;
}

.trust-item strong {
  color: var(--white);
  font-weight: 600;
}

/* ---------- Cards ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 30px 26px;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--steel), var(--accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.card:hover::before {
  transform: scaleX(1);
}

.card-icon {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  background: var(--sand);
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  font-size: 1.25rem;
  color: var(--steel);
}

.card h3 {
  font-size: 1.1rem;
}

.card p {
  font-size: 0.92rem;
  margin-bottom: 0;
}

@media (max-width: 900px) {
  .card-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .card-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- Split content ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.split-media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  position: relative;
}

.split-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.split-media:hover img {
  transform: scale(1.04);
}

.split-copy ul {
  list-style: none;
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.split-copy ul li {
  display: flex;
  gap: 10px;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.split-copy ul li::before {
  content: "—";
  color: var(--accent);
  font-weight: 700;
}

@media (max-width: 860px) {
  .split {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .split-media {
    order: -1;
  }
}

/* ---------- Steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  counter-reset: step;
}

.step {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 26px 22px;
  position: relative;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.step:hover {
  border-color: var(--steel);
  box-shadow: var(--shadow-md);
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 14px;
}

.step h3 {
  font-size: 1rem;
}

.step p {
  font-size: 0.88rem;
  margin-bottom: 0;
}

@media (max-width: 900px) {
  .steps {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .steps {
    grid-template-columns: 1fr;
  }
}

/* ---------- FAQ ---------- */
.faq-list {
  max-width: 860px;
  margin: 0 auto;
  display: grid;
  gap: 12px;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--white);
  overflow: hidden;
  transition: box-shadow 0.3s ease;
}

.faq-item:hover {
  box-shadow: var(--shadow-sm);
}

.faq-question {
  width: 100%;
  background: transparent;
  border: none;
  text-align: left;
  padding: 18px 22px;
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--navy);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-family: var(--font-sans);
}

.faq-question::after {
  content: "+";
  font-size: 1.3rem;
  color: var(--accent);
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.faq-item.is-open .faq-question::after {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.faq-answer-inner {
  padding: 0 22px 20px;
  font-size: 0.92rem;
  color: var(--text-muted);
}

/* ---------- Disclaimer block ---------- */
.disclaimer-block {
  background: #fff8ed;
  border: 1px solid #f3d9a8;
  border-radius: var(--radius-md);
  padding: 24px 28px;
  font-size: 0.86rem;
  color: #7a5a1e;
  line-height: 1.65;
}

.disclaimer-block strong {
  color: #5c4210;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy);
  color: #a9bdd1;
  padding: 64px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--white);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-brand .brand-mark {
  width: 30px;
  height: 30px;
  font-size: 0.68rem;
}

.site-footer p {
  color: #8fa5ba;
  font-size: 0.88rem;
}

.footer-heading {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 16px;
}

.footer-links {
  list-style: none;
  display: grid;
  gap: 10px;
}

.footer-links a {
  color: #a9bdd1;
  font-size: 0.88rem;
}

.footer-links a:hover {
  color: var(--accent-soft);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 24px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.8rem;
  color: #7b91a6;
}

@media (max-width: 800px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

/* ---------- Animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }

@keyframes softFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.float-soft {
  animation: softFloat 6s ease-in-out infinite;
}

/* ---------- Legal pages ---------- */
.legal-page {
  padding: 80px 0 100px;
  background: var(--sand);
  min-height: 70vh;
}

.legal-container {
  max-width: 820px;
  margin: 0 auto;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 48px 44px;
  box-shadow: var(--shadow-sm);
}

.legal-container h1 {
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  margin-bottom: 8px;
}

.legal-meta {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 32px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
}

.legal-container h2 {
  font-size: 1.2rem;
  margin-top: 32px;
  margin-bottom: 12px;
}

.legal-container p,
.legal-container li {
  font-size: 0.94rem;
  color: var(--text-muted);
}

.legal-container ul {
  margin: 0 0 16px 20px;
  display: grid;
  gap: 8px;
}

.legal-container a {
  text-decoration: underline;
}

@media (max-width: 600px) {
  .legal-container {
    padding: 32px 22px;
  }
}

/* ---------- Print ---------- */
@media print {
  .site-header,
  .site-footer,
  .hero-actions,
  .nav-cta {
    display: none;
  }

  body {
    font-size: 12pt;
  }
}