/* ============================================================
   INTERTRANSPORT.PRO — Custom CSS (on top of Bootstrap 5.3)
   ============================================================ */

/* --- Brand font & base --- */
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  color: #1e293b;
}

/* --- Bootstrap overrides via CSS custom properties --- */
:root {
  --bs-primary: #1B3A5C;
  --bs-primary-rgb: 27, 58, 92;
  --it-primary: #1B3A5C;
  --it-primary-light: #2563EB;
  --it-orange: #F97316;
  --it-orange-dark: #ea6a10;
  --it-dark: #0F172A;
  --bs-link-color: #2563EB;
  --bs-link-hover-color: #1d4ed8;
}

/* --- Certification top bar --- */
.cert-bar {
  background: var(--it-primary) !important;
}

/* --- Navbar --- */
.navbar {
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}
.brand-text {
  font-size: 1.3rem;
  color: var(--it-primary);
  font-weight: 400;
  letter-spacing: -0.01em;
}
.brand-text strong {
  font-weight: 800;
}
.navbar .nav-link {
  font-weight: 500;
  color: #334155;
  padding: 0.5rem 0.85rem;
  border-radius: 0.375rem;
  transition: color 0.15s ease, background 0.15s ease;
}
.navbar .nav-link:hover,
.navbar .nav-link:focus {
  color: var(--it-primary-light);
  background: rgba(37, 99, 235, 0.06);
}

/* --- CTA Button (orange) — primary conversion button --- */
.btn-cta {
  background: var(--it-orange);
  color: #fff;
  border: 2px solid var(--it-orange);
  font-weight: 600;
  border-radius: 0.5rem;
  box-shadow: 0 4px 14px rgba(249, 115, 22, 0.35);
  transition: all 0.2s ease;
}
.btn-cta:hover,
.btn-cta:focus {
  background: var(--it-orange-dark);
  border-color: var(--it-orange-dark);
  color: #fff;
  box-shadow: 0 6px 20px rgba(249, 115, 22, 0.5);
  transform: translateY(-2px);
}
.btn-cta:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(249, 115, 22, 0.3);
}

/* --- Hero Section --- */
.hero-section {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-pattern {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 50%, rgba(255,255,255,0.03) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255,255,255,0.02) 0%, transparent 40%);
  z-index: 1;
}
/* Floating geometric shapes */
.hero-shapes {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
}
.hero-shape {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,0.03);
}
.hero-shape-1 {
  width: 400px; height: 400px;
  top: -100px; right: -50px;
  animation: float 20s ease-in-out infinite;
}
.hero-shape-2 {
  width: 250px; height: 250px;
  bottom: -60px; left: 10%;
  animation: float 15s ease-in-out infinite reverse;
}
.hero-shape-3 {
  width: 150px; height: 150px;
  top: 30%; left: 40%;
  background: rgba(249,115,22,0.04);
  animation: float 18s ease-in-out infinite 2s;
}
@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  33% { transform: translateY(-20px) rotate(2deg); }
  66% { transform: translateY(10px) rotate(-1deg); }
}
.hero-section .container {
  z-index: 2;
}
.hero-section h1 {
  line-height: 1.15;
}
.hero-section .text-warning {
  color: var(--it-orange) !important;
}
/* Hero illustration */
.hero-illustration {
  padding: 1rem;
}
.hero-svg {
  width: 100%;
  max-width: 420px;
  height: auto;
  filter: drop-shadow(0 10px 30px rgba(0,0,0,0.2));
}
.hero-badge .badge {
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.1);
}

/* --- Section headings --- */
section h2.fw-bold {
  font-size: 2rem;
  color: var(--it-primary);
}

/* --- Cards shared styles --- */
.card {
  border-radius: 0.75rem;
}
.service-card-hover {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-radius: 1rem;
  overflow: hidden;
}
.service-card-hover:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12) !important;
}
.service-card-hover .bi {
  transition: transform 0.3s ease;
}
.service-card-hover:hover .bi {
  transform: scale(1.1);
}

/* Icon coloring for service cards */
.service-card-hover .text-primary {
  color: var(--it-primary-light) !important;
}

/* --- Corridor card hover --- */
.corridor-card-hover {
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  border-radius: 0.75rem;
}
.corridor-card-hover:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1) !important;
  border-color: var(--it-primary-light) !important;
}

/* --- Stats section --- */
.bg-dark .text-warning {
  color: var(--it-orange) !important;
}

/* --- CTA Gradient Section --- */
.cta-gradient {
  background: linear-gradient(135deg, var(--it-primary) 0%, var(--it-primary-light) 100%);
}

/* --- Testimonial cards --- */
.testimonial-card blockquote p {
  font-size: 0.95rem;
  line-height: 1.7;
}

/* --- FAQ accordion --- */
.accordion-item {
  border-color: #e2e8f0;
}
.accordion-button {
  font-size: 1rem;
  padding: 1rem 1.25rem;
}
.accordion-button:not(.collapsed) {
  background-color: rgba(37, 99, 235, 0.06);
  color: var(--it-primary);
  box-shadow: none;
}
.accordion-button:focus {
  box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.15);
}
.accordion-body {
  line-height: 1.7;
}

/* --- Wizard Step Indicators --- */
.wizard-step {
  cursor: pointer;
}
.wizard-step-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: #e2e8f0;
  color: #64748b;
  font-size: 0.875rem;
  font-weight: 700;
  transition: all 0.25s ease;
  flex-shrink: 0;
}
.wizard-step.active .wizard-step-num {
  background: var(--it-primary-light);
  color: #fff;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.2);
}
.wizard-step.completed .wizard-step-num {
  background: #059669;
  color: #fff;
}
.wizard-step.active .wizard-step-label {
  color: var(--it-primary-light);
  font-weight: 600;
}
.wizard-step.completed .wizard-step-label {
  color: #334155;
}

/* Type card selected state */
.type-card {
  transition: all 0.2s ease;
}
.type-card.selected,
.type-card.active {
  border-color: var(--it-primary-light) !important;
  background: rgba(37, 99, 235, 0.06) !important;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15) !important;
}

/* --- Cookie consent --- */
.cookie-banner {
  animation: slideUp 0.4s ease-out 1s both;
}
@keyframes slideUp {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.cookie-banner.hidden {
  display: none !important;
}

/* --- Form success overlay --- */
.form-success-overlay {
  border-radius: 1rem;
  background: #f8fafc;
}

/* --- Blog article content --- */
.blog-article-content h2 {
  margin-top: 2.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #e2e8f0;
  color: var(--it-primary);
}
.blog-article-content h3 {
  margin-top: 2rem;
  color: var(--it-primary);
}
.blog-article-content ul {
  padding-left: 1.25rem;
  list-style: disc;
}
.blog-article-content ol {
  padding-left: 1.25rem;
  list-style: decimal;
}
.blog-article-content li {
  margin-bottom: 0.5rem;
  line-height: 1.7;
}
.blog-article-content p {
  line-height: 1.8;
}

/* Rich article content classes */
.article-intro {
  font-size: 1.15rem;
  line-height: 1.8;
  border-left: 4px solid var(--it-orange);
  padding-left: 1.25rem;
  margin-bottom: 2rem;
}
.article-highlight {
  background: linear-gradient(135deg, #f8fafc, #f1f5f9);
  border-left: 4px solid var(--it-primary-light);
  border-radius: 0.5rem;
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
}
.article-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.95rem;
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}
.article-table thead { background: var(--it-primary); color: #fff; }
.article-table th { padding: 0.875rem 1rem; text-align: left; font-weight: 600; }
.article-table td { padding: 0.75rem 1rem; border-bottom: 1px solid #e2e8f0; }
.article-table tbody tr:nth-child(even) { background: #f8fafc; }
.article-table tbody tr:hover { background: #f1f5f9; }
.article-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  margin: 2rem 0;
}
.article-feature {
  padding: 1.25rem;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  transition: box-shadow 0.2s, border-color 0.2s;
}
.article-feature:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border-color: var(--it-primary-light);
}
.article-feature strong { color: var(--it-primary); }
.article-feature span { font-size: 0.9rem; color: #475569; line-height: 1.5; }

/* --- Legal pages --- */
.legal-content h2 {
  margin-top: 2.5rem;
  padding-bottom: 0.375rem;
  border-bottom: 2px solid #e2e8f0;
  color: var(--it-primary);
}
.legal-content p,
.legal-content li {
  line-height: 1.8;
}

/* --- Honeypot (anti-spam) --- */
.hp-field {
  position: absolute;
  left: -9999px;
  top: -9999px;
  width: 0;
  height: 0;
  overflow: hidden;
  opacity: 0;
}

/* --- Footer --- */
footer {
  border-top: 3px solid var(--it-orange);
}
footer a:hover {
  color: #fff !important;
}

/* --- Service cards with images --- */
.service-card-hover .card-img-top {
  transition: transform 0.4s ease;
}
.service-card-hover:hover .card-img-top {
  transform: scale(1.05);
}

/* --- Tables in content --- */
.blog-article-content .table,
section .table {
  border-radius: 0.5rem;
  overflow: hidden;
}
.blog-article-content .table thead,
section .table thead.table-light {
  background: #f1f5f9;
}

/* --- Smooth scrolling --- */
html {
  scroll-behavior: smooth;
}

/* --- Better focus outlines --- */
a:focus-visible,
button:focus-visible,
.btn:focus-visible {
  outline: 2px solid var(--it-primary-light);
  outline-offset: 2px;
}

/* --- Image onerror fallback --- */
img[onerror] {
  min-height: 0;
}

/* --- Responsive tweaks --- */
@media (max-width: 991.98px) {
  .hero-section {
    min-height: auto;
  }
  .hero-section .py-5.my-lg-4 {
    padding-bottom: 2rem !important;
  }
}
@media (max-width: 767.98px) {
  .hero-section h1 {
    font-size: 1.75rem;
  }
  .hero-section .lead {
    font-size: 1rem;
  }
  section h2.fw-bold {
    font-size: 1.5rem;
  }
  .display-5 {
    font-size: 2rem;
  }
}

/* --- Print --- */
@media print {
  .navbar, footer, .cookie-banner, .cta-gradient { display: none !important; }
  .hero-section { min-height: auto; }
  .hero-overlay { display: none; }
}
