/* ==========================================================
   TOTAL INFOTECH — STYLE SHEET
   ========================================================== */

:root {
  --blue: #0B4F9C;
  --blue-dark: #073B75;
  --red: #EF3B35;
  --yellow: #F5D90A;
  --text-dark: #17324D;
  --text-body: #64748B;
  --bg-light: #F8FAFC;
  --white: #FFFFFF;
  --border: #E2E8F0;

  --font-display: 'Plus Jakarta Sans', sans-serif;
  --font-body: 'Inter', sans-serif;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;

  --shadow-sm: 0 2px 8px rgba(11, 79, 156, 0.06);
  --shadow-md: 0 12px 30px rgba(11, 79, 156, 0.12);

  --container-w: 1240px;
  --header-h: 76px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text-body);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--text-dark);
  margin: 0 0 16px;
  line-height: 1.25;
}

p { margin: 0 0 16px; }
a { color: inherit; text-decoration: none; }
img, svg { max-width: 100%; display: block; }
ul { list-style: none; margin: 0; padding: 0; }
button { font-family: inherit; cursor: pointer; }

.container {
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 32px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--blue);
  color: #fff;
  padding: 10px 18px;
  z-index: 1000;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 2px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.98rem;
  border: 2px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}
.btn i { font-size: 0.85em; transition: transform 0.2s ease; }
.btn:hover { transform: translateY(-2px); }
.btn:hover i { transform: translateX(3px); }

.btn-primary {
  background: var(--red);
  color: #fff;
  box-shadow: 0 10px 24px rgba(239, 59, 53, 0.28);
}
.btn-primary:hover { background: #d92e28; }

.btn-outline {
  background: transparent;
  border-color: var(--border);
  color: var(--text-dark);
}
.btn-outline:hover { border-color: var(--blue); color: var(--blue); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  height: var(--header-h);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.logo-text {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.15rem;
  color: var(--blue-dark);
  letter-spacing: -0.01em;
}
.logo-text strong { font-weight: 800; color: var(--blue); }
.logo-text.light { color: #fff; }
.logo-text.light strong { color: var(--yellow); }

.main-nav { flex: 1; display: flex; justify-content: center; min-width: 0; }
.main-nav ul { display: flex; gap: 2px; }
.mobile-cta { display: none; }

.nav-link {
  position: relative;
  display: inline-block;
  padding: 10px 12px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-dark);
  border-radius: 8px;
  white-space: nowrap;
  transition: color 0.2s ease, background 0.2s ease;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 4px;
  height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}
.nav-link:hover { color: var(--blue); background: var(--bg-light); }
.nav-link.active { color: var(--blue); }
.nav-link.active::after { transform: scaleX(1); }

.header-cta { flex-shrink: 0; padding: 11px 24px; font-size: 0.92rem; }

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  padding: 0;
}
.menu-toggle span {
  display: block;
  height: 2px;
  width: 24px;
  margin: 0 auto;
  background: var(--text-dark);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.menu-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Section basics ---------- */
.section { padding: 110px 0; }
.section-head { max-width: 700px; margin: 0 auto 60px; text-align: center; }
.section-head h2 {
  font-size: clamp(1.65rem, 2.5vw, 2.2rem);
  font-weight: 700;
  line-height: 1.32;
  letter-spacing: -0.015em;
}

.section-label {
  display: inline-block;
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 7px 18px;
  border-radius: 100px;
  margin-bottom: 20px;
}
.label-yellow { background: rgba(245, 217, 10, 0.28); color: #7a6600; }

/* underline accent under headings (used selectively) */
.section-head h2 span.hl {
  position: relative;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 90px 0 100px;
  overflow: hidden;
  background: linear-gradient(180deg, #EFF5FC 0%, var(--bg-light) 100%);
}

.hero-bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.hero-grid {
  position: absolute;
  inset: -20% -10%;
  background-image:
    linear-gradient(rgba(11, 79, 156, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(11, 79, 156, 0.05) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(circle at 70% 30%, black 0%, transparent 70%);
}
.hero-circle {
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
}
.hero-circle-1 {
  width: 380px; height: 380px;
  right: -100px; top: -100px;
  background: radial-gradient(circle, rgba(11,79,156,0.14), transparent 70%);
}
.hero-circle-2 {
  width: 260px; height: 260px;
  left: -80px; bottom: -60px;
  background: radial-gradient(circle, rgba(239,59,53,0.10), transparent 70%);
}
.hero-shape {
  position: absolute;
  width: 52px; height: 52px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
  font-size: 1.1rem;
  animation: float 6s ease-in-out infinite;
}
.hero-shape-1 { top: 12%; right: 8%; animation-delay: 0s; }
.hero-shape-2 { top: 55%; right: 2%; color: var(--red); animation-delay: 1.2s; }
.hero-shape-3 { bottom: 8%; right: 22%; color: var(--yellow); animation-delay: 2.4s; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 60px;
  align-items: center;
}

.eyebrow {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--blue);
  margin-bottom: 18px;
}

.hero h1 {
  font-size: clamp(2.3rem, 4.4vw, 3.4rem);
  font-weight: 800;
  line-height: 1.14;
  letter-spacing: -0.025em;
  margin-bottom: 24px;
}

.hero-lead {
  font-size: 1.08rem;
  max-width: 520px;
  margin-bottom: 34px;
}

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-illustration { width: 100%; height: auto; }

/* ---------- Services ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.service-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 30px 26px;
  height: 100%;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: rgba(11, 79, 156, 0.25);
}

.service-icon {
  width: 52px; height: 52px;
  border-radius: 12px;
  background: rgba(11, 79, 156, 0.08);
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 20px;
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease;
}
.service-card:hover .service-icon {
  background: var(--red);
  color: #fff;
  transform: rotate(-6deg) scale(1.05);
}

.service-card h3 {
  font-size: 1.05rem;
  color: var(--red);
  margin-bottom: 10px;
}

.service-card p { font-size: 0.92rem; margin-bottom: 20px; flex-grow: 1; }

.service-arrow {
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  color: var(--text-dark);
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.service-card:hover .service-arrow {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
  transform: translateX(4px);
}

/* ---------- Platforms ---------- */
.platforms { background: var(--bg-light); }

.platforms-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.platform-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 30px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.platform-card i {
  font-size: 2rem;
  color: var(--blue-dark);
}
.platform-card span {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-dark);
}
.platform-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-sm);
  border-color: rgba(11, 79, 156, 0.3);
}

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.about-copy h3 { font-size: 1.6rem; font-weight: 700; line-height: 1.3; letter-spacing: -0.015em; margin-bottom: 18px; }
.about-visual { position: relative; }

/* ---------- Team ---------- */
.team { background: var(--bg-light); }
.team-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.team-statement {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.015em;
  color: var(--text-dark);
  margin-bottom: 16px;
}

/* ---------- Contact ---------- */
.contact { position: relative; overflow: hidden; }

.contact-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(rgba(11, 79, 156, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(11, 79, 156, 0.035) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(ellipse at 50% 60%, black 40%, transparent 85%);
}

.contact .container { position: relative; z-index: 1; }

.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.contact-info {
  background: linear-gradient(160deg, var(--blue) 0%, var(--blue-dark) 100%);
  color: #fff;
  padding: 48px 42px;
}
.contact-info h3 {
  color: #fff;
  font-size: 1.4rem;
  margin-bottom: 28px;
}

.contact-list { display: flex; flex-direction: column; gap: 20px; margin-bottom: 36px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; font-size: 0.95rem; }
.contact-list a:hover { text-decoration: underline; }

.contact-icon {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.14);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.social-links { display: flex; gap: 12px; }
.social-links a {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}
.social-links a:hover { background: var(--red); }

.contact-form {
  background: #fff;
  padding: 48px 42px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-field { margin-bottom: 20px; }
.form-field label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 8px;
}
.form-field .req { color: var(--red); font-weight: 500; }
.form-field .optional { color: var(--text-body); font-weight: 400; }

.form-field input,
.form-field textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--text-dark);
  background: var(--bg-light);
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
  resize: vertical;
}
.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--blue);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(11, 79, 156, 0.12);
}
.form-field input.invalid,
.form-field textarea.invalid {
  border-color: var(--red);
}

.field-error {
  display: block;
  min-height: 18px;
  color: var(--red);
  font-size: 0.8rem;
  margin-top: 6px;
}

.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-submit {
  width: 100%;
  justify-content: center;
  border: none;
}
.form-submit:disabled { opacity: 0.7; cursor: not-allowed; transform: none; }
.btn-spinner { margin-left: 4px; }

.form-status {
  margin-top: 16px;
  font-size: 0.92rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  padding: 0;
  min-height: 0;
  transition: padding 0.2s ease;
}
.form-status.success {
  color: #15803d;
  background: #ecfdf3;
  padding: 14px 16px;
}
.form-status.error {
  color: var(--red);
  background: #fef2f2;
  padding: 14px 16px;
}

/* ---------- Footer ---------- */
.site-footer { background: var(--blue-dark); color: #cfe0f4; }
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 48px 32px;
  flex-wrap: wrap;
}
.footer-brand p { margin: 6px 0 0; font-size: 0.88rem; color: #9fbde0; }
.footer-nav { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-nav a { font-size: 0.9rem; transition: color 0.2s ease; }
.footer-nav a:hover { color: #fff; }
.footer-social { display: flex; gap: 12px; }
.footer-social a {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s ease;
}
.footer-social a:hover { background: var(--red); }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 18px 0;
}
.footer-bottom p { margin: 0; font-size: 0.82rem; color: #9fbde0; text-align: center; }

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.in-view { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ==========================================================
   RESPONSIVE
   ========================================================== */

@media (max-width: 1024px) {
  .container { padding: 0 24px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .platforms-grid { grid-template-columns: repeat(4, 1fr); }
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-copy { order: 1; }
  .hero-visual { order: 2; max-width: 440px; margin: 0 auto; }
  .hero-lead { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .about-grid, .team-grid { grid-template-columns: 1fr; }
  .about-visual { order: -1; max-width: 420px; margin: 0 auto; }
  .team-visual { max-width: 420px; margin: 0 auto; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .main-nav, .header-cta { display: none; }
  .menu-toggle { display: flex; }

  .main-nav {
    display: flex;
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    background: #fff;
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    z-index: 400;
  }
  .main-nav.open { max-height: 480px; }
  .main-nav ul { flex-direction: column; width: 100%; padding: 12px 24px 20px; gap: 2px; }
  .main-nav .nav-link { width: 100%; padding: 13px 14px; }
  .main-nav .nav-link::after { display: none; }
  .header-cta.mobile-cta {
    display: block;
    margin: 4px 24px 20px;
    text-align: center;
  }
}

@media (max-width: 768px) {
  .section { padding: 76px 0; }
  .services-grid { grid-template-columns: 1fr; }
  .platforms-grid { grid-template-columns: repeat(3, 1fr); }
  .form-row { grid-template-columns: 1fr; }
  .contact-info, .contact-form { padding: 34px 26px; }
}

@media (max-width: 480px) {
  .container { padding: 0 18px; }
  .hero { padding: 64px 0 72px; }
  .hero h1 { font-size: 2rem; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { justify-content: center; }
  .platforms-grid { grid-template-columns: repeat(2, 1fr); }
  .section-label { font-size: 0.74rem; }
}
