:root {
  --itd-orange: #FF8210;
  --itd-orange-dark: #E06D00;
  --itd-blue: #145DA0;
  --itd-blue-dark: #0E4478;
  --itd-blue-light: #EAF2FB;
  --itd-gray-900: #1A1A1A;
  --itd-gray-600: #5A5A5A;
  --itd-gray-100: #F7F8FA;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--itd-gray-900);
  background: #fff;
}
h1, h2, h3, .itd-font-display { font-family: 'Poppins', sans-serif; }
a { text-decoration: none; }
.itd-container { max-width: 1160px; margin: 0 auto; padding: 0 20px; }

/* ── Ticker ─────────────────────────────────────── */
.itd-ticker {
  background: var(--itd-blue-dark);
  color: #fff;
  display: flex;
  align-items: center;
  overflow: hidden;
  height: 34px;
  border-bottom: 2px solid var(--itd-orange);
}
.ticker-label {
  background: var(--itd-orange);
  color: #fff;
  font-size: .75rem;
  font-weight: 700;
  padding: 0 12px;
  height: 100%;
  display: flex;
  align-items: center;
  white-space: nowrap;
}
.ticker-track { flex: 1; overflow: hidden; position: relative; height: 100%; }
.ticker-content {
  display: inline-block;
  white-space: nowrap;
  font-size: .82rem;
  padding-left: 100%;
  animation: ticker-scroll 22s linear infinite;
  line-height: 34px;
}
@keyframes ticker-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}

/* ── Header / Nav ─────────────────────────────────────── */
.itd-header { background: #fff; box-shadow: 0 2px 10px rgba(0,0,0,.06); position: sticky; top: 0; z-index: 100; }
.itd-header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.itd-nav { display: flex; align-items: center; gap: 28px; }
.itd-nav a { color: var(--itd-gray-900); font-weight: 500; font-size: .95rem; transition: color .15s; }
.itd-nav a:hover, .itd-nav a.active { color: var(--itd-orange); }
.itd-nav-cta {
  background: var(--itd-blue);
  color: #fff !important;
  padding: 8px 18px;
  border-radius: 6px;
  font-weight: 600 !important;
}
.itd-nav-cta:hover { background: var(--itd-blue-dark); }
.itd-nav-toggle { display: none; background: none; border: none; font-size: 1.6rem; color: var(--itd-blue); }

@media (max-width: 860px) {
  .itd-nav { position: fixed; top: 106px; left: 0; right: 0; background: #fff; flex-direction: column; align-items: flex-start; padding: 16px 20px; gap: 16px; box-shadow: 0 8px 16px rgba(0,0,0,.08); display: none; }
  .itd-nav.open { display: flex; }
  .itd-nav-toggle { display: block; }
}

/* ── Hero slider ─────────────────────────────────────── */
.itd-hero { position: relative; height: 560px; overflow: hidden; }
.itd-hero-slide {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0; transition: opacity 1.2s ease-in-out;
}
.itd-hero-slide.active { opacity: 1; }
.itd-hero-slide::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(20,93,160,.88) 0%, rgba(20,93,160,.55) 55%, rgba(20,93,160,.25) 100%);
}
.itd-hero-content {
  position: relative; z-index: 2; height: 100%;
  display: flex; flex-direction: column; justify-content: center;
  max-width: 620px; color: #fff;
}
.itd-hero-content h1 { font-size: 2.4rem; font-weight: 800; margin: 0 0 16px; line-height: 1.2; }
.itd-hero-content p { font-size: 1.05rem; opacity: .95; margin: 0 0 28px; }
.itd-hero-dots { position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 3; display: flex; gap: 8px; }
.itd-hero-dots span { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.5); cursor: pointer; transition: background .2s; }
.itd-hero-dots span.active { background: var(--itd-orange); }

@media (max-width: 700px) { .itd-hero { height: 460px; } .itd-hero-content h1 { font-size: 1.7rem; } }

/* ── Buttons ─────────────────────────────────────── */
.itd-btn { display: inline-flex; align-items: center; justify-content: center; padding: 11px 24px; border-radius: 6px; font-weight: 600; font-size: .92rem; border: 2px solid transparent; cursor: pointer; transition: all .15s; }
.itd-btn-primary { background: var(--itd-orange); color: #fff; }
.itd-btn-primary:hover { background: var(--itd-orange-dark); color: #fff; }
.itd-btn-outline { background: transparent; border-color: #fff; color: #fff; }
.itd-btn-outline:hover { background: #fff; color: var(--itd-blue); }
.itd-btn-sm { padding: 6px 14px; font-size: .8rem; }

/* ── Sections ─────────────────────────────────────── */
.itd-section { padding: 20px 0; }
.itd-section-first { padding-top: 12px; }
.itd-section-alt { background: var(--itd-gray-100); }
.itd-section-title { text-align: center; margin-bottom: 10px; font-size: 2rem; font-weight: 800; color: var(--itd-blue); }
.itd-section-sub { text-align: center; color: var(--itd-gray-600); max-width: 640px; margin: 0 auto 24px; }
.itd-section-text { text-align: left; color: var(--itd-gray-600); max-width: 800px; margin: 0 auto 14px; line-height: 1.6; }

/* ── Page banner — medium, full-width image above a page's title ── */
.itd-page-banner { width: 100%; height: 220px; background-size: cover; background-position: center; border-radius: 0 0 10px 10px; margin-bottom: 28px; }
@media (max-width: 700px) { .itd-page-banner { height: 150px; } }

.itd-card { background: #fff; border-radius: 10px; box-shadow: 0 4px 16px rgba(0,0,0,.06); padding: 28px; height: 100%; }
.itd-card-icon { width: 52px; height: 52px; border-radius: 10px; background: var(--itd-blue-light); color: var(--itd-blue); display: flex; align-items: center; justify-content: center; font-size: 1.5rem; margin-bottom: 18px; }
.itd-card h3 { font-size: 1.15rem; margin: 0 0 10px; }
.itd-card p { color: var(--itd-gray-600); font-size: .92rem; margin: 0; }

.itd-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.itd-grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
@media (max-width: 860px) { .itd-grid-3, .itd-grid-2 { grid-template-columns: 1fr; } }

/* ── Portfolio ─────────────────────────────────────── */
.itd-portfolio-card { background: #fff; border-radius: 10px; overflow: hidden; box-shadow: 0 4px 16px rgba(0,0,0,.08); transition: transform .2s; }
.itd-portfolio-card:hover { transform: translateY(-4px); }
.itd-portfolio-img { height: 160px; background: var(--itd-blue-light) center/cover no-repeat; display: flex; align-items: center; justify-content: center; color: var(--itd-blue); font-size: 2rem; }
.itd-portfolio-body { padding: 18px; }
.itd-portfolio-body h4 { font-size: 1rem; margin: 0 0 6px; }
.itd-portfolio-body p { font-size: .85rem; color: var(--itd-gray-600); margin: 0 0 12px; }

/* ── Footer ─────────────────────────────────────── */
.itd-footer { background: var(--itd-blue-dark); color: rgba(255,255,255,.85); padding: 36px 0 20px; margin-top: 8px; }
.itd-footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px; }
@media (max-width: 860px) { .itd-footer-grid { grid-template-columns: 1fr 1fr; } }
.itd-footer-tagline { font-size: .85rem; opacity: .8; }
.itd-footer-heading { font-weight: 700; color: #fff; margin-bottom: 12px; font-size: .9rem; text-transform: uppercase; letter-spacing: .5px; }
.itd-footer a, .itd-footer-line { display: block; color: rgba(255,255,255,.75); font-size: .88rem; margin-bottom: 8px; }
.itd-footer a:hover { color: var(--itd-orange); }
.itd-footer-hr { border-color: rgba(255,255,255,.15); margin: 28px 0 16px; }
.itd-footer-copy { font-size: .78rem; opacity: .7; }

/* ── Social links — below the logo, first footer column ── */
.itd-footer-social { display: flex; gap: 10px; margin-top: 16px; }
.itd-footer-social a { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,.12); color: #fff; font-size: 1rem; margin-bottom: 0; }
.itd-footer-social a:hover { background: var(--itd-orange); color: #fff; }

/* ── Visitor counter (split-flap, mirrors kps_svkct's pattern) ── */
.vc-label { display: block; color: rgba(255,255,255,.6); font-size: .7rem; text-transform: uppercase; letter-spacing: .8px; font-weight: 600; margin-bottom: .5rem; }
.vc-digits { display: inline-flex; gap: 5px; }
.vc-digit {
  position: relative; display: inline-block; min-width: 1.5em; text-align: center;
  background: #f0f1f2; border-radius: 5px; padding: 6px 5px;
  box-shadow: 0 3px 5px rgba(0,0,0,.35), inset 0 0 0 1px rgba(255,255,255,.6);
  perspective: 220px; overflow: hidden;
}
.vc-digit::after {
  content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 2px; margin-top: -1px;
  background: rgba(0,0,0,.18); z-index: 2; pointer-events: none;
}
.vc-digit-face {
  display: inline-block; color: var(--itd-blue-dark); font-family: 'Poppins', sans-serif;
  font-weight: 800; font-size: 1.3rem; line-height: 1.5;
  transition: transform .09s ease-in; transform-style: preserve-3d; will-change: transform;
}
.vc-digit-face.flip { transform: rotateX(80deg); }

/* ── Contact form ─────────────────────────────────────── */
.itd-form-label { font-weight: 600; font-size: .88rem; margin-bottom: 6px; display: block; }
.itd-form-control { width: 100%; padding: 10px 14px; border: 1px solid #ddd; border-radius: 6px; font-size: .92rem; margin-bottom: 16px; }
.itd-form-control:focus { outline: none; border-color: var(--itd-blue); }
.itd-checkbox-row { display: flex; align-items: center; gap: 8px; margin: 4px 0 16px; font-size: .88rem; }
.itd-form-error { color: #c0392b; font-size: .85rem; margin-bottom: 12px; }
.itd-form-success { color: #1a8a3f; font-size: .85rem; margin-bottom: 12px; }

/* ── CAPTCHA (mirrors kps_svkct's proven pattern) ── */
.itd-captcha-box { background: var(--itd-blue-light); border: 1.5px solid #c9dcf0; border-radius: 8px; padding: 14px 16px; margin-bottom: 16px; }
.itd-captcha-inner { display: flex; align-items: center; gap: 12px; margin-top: 6px; }
.itd-captcha-question {
  background: var(--itd-blue-dark); color: #fff; font-size: 1.1rem; font-weight: 700;
  padding: 6px 14px; border-radius: 8px; letter-spacing: 1.5px; white-space: nowrap;
  font-family: 'Courier New', monospace;
}
.itd-captcha-input { width: 90px !important; font-size: 1.05rem; font-weight: 700; text-align: center; margin-bottom: 0 !important; }
.itd-captcha-hint { font-size: .78rem; color: var(--itd-gray-600); margin-top: 6px; }

/* ── Small utility classes (self-contained, no framework needed) ── */
.d-flex { display: flex; }
.gap-2 { gap: 8px; }
.me-1 { margin-right: 4px; }
.mb-3 { margin-bottom: 16px; }
.fw-600 { font-weight: 600; }
.w-100 { width: 100%; }
.text-center { text-align: center; }
.text-muted { color: var(--itd-gray-600); }

/* ── Contact page ─────────────────────────────────────── */
.itd-contact-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 32px; margin-top: 16px; align-items: start; }
@media (max-width: 860px) { .itd-contact-grid { grid-template-columns: 1fr; } }
.itd-contact-info { display: flex; flex-direction: column; gap: 16px; }
.itd-contact-info-item { display: flex; align-items: center; gap: 16px; }
.itd-contact-info-icon { width: 48px; height: 48px; border-radius: 10px; background: var(--itd-blue-light); color: var(--itd-blue); display: flex; align-items: center; justify-content: center; font-size: 1.3rem; flex-shrink: 0; }
.itd-contact-info-label { font-size: .78rem; text-transform: uppercase; letter-spacing: .5px; color: var(--itd-gray-600); font-weight: 600; }
.itd-contact-info-item a { color: var(--itd-gray-900); font-weight: 600; }
.itd-contact-info-item a:hover { color: var(--itd-orange); }
.itd-contact-brochure { display: flex; align-items: center; gap: 16px; background: var(--itd-blue-light); border-radius: 10px; padding: 16px; margin-top: 4px; }
.itd-contact-brochure i { font-size: 2.2rem; color: var(--itd-orange); }
.itd-contact-action-btn { width: 180px; height: 46px; padding: 0; }

/* ── Testimonials page — horizontal-scroll carousel, 3 cards visible ── */
.itd-testimonials-carousel { position: relative; padding: 0 44px; }
.itd-testimonials-track { display: flex; gap: 24px; overflow-x: auto; scroll-behavior: smooth; scroll-snap-type: x mandatory; padding-bottom: 8px; }
.itd-testimonials-track::-webkit-scrollbar { height: 6px; }
.itd-testimonials-track::-webkit-scrollbar-thumb { background: var(--itd-blue-light); border-radius: 3px; }
.itd-testimonial-card { flex: 0 0 calc((100% - 48px)/3); scroll-snap-align: start; border-radius: 12px; padding: 26px 24px; display: flex; flex-direction: column; min-height: 300px; }
@media (max-width: 860px) { .itd-testimonial-card { flex: 0 0 calc((100% - 24px)/2); } }
@media (max-width: 600px) { .itd-testimonial-card { flex: 0 0 100%; } .itd-testimonials-carousel { padding: 0 8px; } }
.itd-testimonial-stars { color: #F5A623; font-size: 1.05rem; }
.itd-testimonial-stars i { margin-right: 3px; }
.itd-testimonial-divider { height: 2px; width: 46px; background: var(--itd-blue); border-radius: 2px; margin: 10px 0 18px; }
.itd-testimonial-quote { flex: 1; font-size: .92rem; color: var(--itd-gray-900); line-height: 1.65; }
.itd-testimonial-person { display: flex; align-items: center; gap: 12px; margin-top: 20px; }
.itd-testimonial-photo { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.itd-testimonial-photo-placeholder { width: 52px; height: 52px; border-radius: 50%; background: rgba(0,0,0,.08); display: flex; align-items: center; justify-content: center; font-size: 1.3rem; flex-shrink: 0; }
.itd-testimonial-name { font-weight: 700; font-size: .92rem; color: var(--itd-gray-900); }
.itd-testimonial-role { font-size: .78rem; color: var(--itd-gray-600); }
.itd-carousel-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border-radius: 50%; background: #fff; box-shadow: 0 2px 10px rgba(0,0,0,.15); border: none; cursor: pointer; font-size: 1.2rem; color: var(--itd-blue); display: flex; align-items: center; justify-content: center; z-index: 2; }
.itd-carousel-arrow:hover { background: var(--itd-blue); color: #fff; }
.itd-carousel-arrow.prev { left: 0; }
.itd-carousel-arrow.next { right: 0; }

/* ── Modal (self-contained, no external JS framework) ── */
.itd-modal-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,.55); z-index: 1000; display: none; align-items: center; justify-content: center; padding: 20px; }
.itd-modal-backdrop.open { display: flex; }
.itd-modal { background: #fff; border-radius: 10px; max-width: 440px; width: 100%; max-height: 90vh; overflow-y: auto; }
.itd-modal-header { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; border-bottom: 1px solid #eee; }
.itd-modal-header h3 { margin: 0; font-size: 1.1rem; }
.itd-modal-close { background: none; border: none; font-size: 1.4rem; line-height: 1; color: var(--itd-gray-600); cursor: pointer; }
.itd-modal-body { padding: 22px; }
