/* ==========================================================
   Parsec IT Solutions — Main Stylesheet
   ========================================================== */

:root {
  --navy: #0a2f6b;
  --navy-dark: #061f4a;
  --navy-light: #13407f;
  --yellow: #ffc400;
  --yellow-dark: #e6b000;
  --white: #ffffff;
  --text: #1c2a44;
  --muted: #5d6b85;
  --bg-soft: #f4f7fc;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(10, 47, 107, 0.12);
  --shadow-lg: 0 20px 50px rgba(10, 47, 107, 0.2);
  --header-h: 76px;
}

*,
*::before,
*::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--text);
  line-height: 1.65;
  background: var(--white);
  overflow-x: hidden;
}

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

.container { width: min(1180px, 92%); margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .9rem 1.9rem;
  border-radius: 10px;
  font-weight: 700;
  font-size: .95rem;
  letter-spacing: .3px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .25s ease, background .25s ease, box-shadow .25s ease, color .25s ease;
  font-family: inherit;
}
.btn:hover { transform: translateY(-3px); }
.btn-yellow { background: var(--yellow); color: var(--navy); box-shadow: 0 8px 22px rgba(255, 196, 0, .35); }
.btn-yellow:hover { background: var(--yellow-dark); }
.btn-outline { border-color: rgba(255,255,255,.7); color: var(--white); }
.btn-outline:hover { background: var(--white); color: var(--navy); }
.btn-navy { background: var(--navy); color: var(--white); }
.btn-navy:hover { background: var(--navy-dark); box-shadow: var(--shadow); }
.btn-sm { padding: .6rem 1.2rem; font-size: .88rem; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--header-h);
  z-index: 100;
  background: rgba(6, 31, 74, .55);
  backdrop-filter: blur(6px);
  transition: background .3s ease, box-shadow .3s ease;
}
.header.scrolled { background: rgba(6, 31, 74, .96); backdrop-filter: blur(8px); box-shadow: 0 4px 20px rgba(0,0,0,.18); }
.nav-wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; }

.logo { display: flex; align-items: center; gap: .6rem; color: var(--white); font-weight: 800; font-size: 1.35rem; }
.logo-mark svg { width: 40px; height: 40px; }
.logo-text span { font-weight: 400; opacity: .9; }

.nav { display: flex; align-items: center; gap: 2rem; }
.nav-link { color: rgba(255,255,255,.85); font-weight: 500; font-size: .95rem; position: relative; transition: color .2s; }
.nav-link::after {
  content: ""; position: absolute; left: 0; bottom: -6px; width: 0; height: 2px;
  background: var(--yellow); transition: width .25s ease;
}
.nav-link:hover, .nav-link.active { color: var(--white); }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }

.menu-toggle { display: none; background: none; border: 0; cursor: pointer; width: 34px; height: 26px; position: relative; }
.menu-toggle span { position: absolute; left: 0; width: 100%; height: 3px; border-radius: 3px; background: var(--white); transition: .3s; }
.menu-toggle span:nth-child(1) { top: 0; }
.menu-toggle span:nth-child(2) { top: 11px; }
.menu-toggle span:nth-child(3) { top: 22px; }
.menu-toggle.open span:nth-child(1) { top: 11px; transform: rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { top: 11px; transform: rotate(-45deg); }

/* ---------- Dots decoration ---------- */
.dots {
  position: absolute;
  background-image: radial-gradient(rgba(255,255,255,.75) 2px, transparent 2.5px);
  background-size: 22px 22px;
  pointer-events: none;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + 3rem) 0 5rem;
  background:
    radial-gradient(circle at 20% 30%, rgba(255,255,255,.06), transparent 50%),
    linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 55%, var(--navy-light) 100%);
  color: var(--white);
  overflow: hidden;
}
.dots-top { top: calc(var(--header-h) + 20px); left: 38%; width: 420px; height: 70px; opacity: .6; }
.hero-yellow {
  position: absolute;
  right: -18vw; top: 4%;
  width: 52vw; height: 120%;
  background: var(--yellow);
  border-radius: 50%;
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.1fr 1fr; gap: 3rem; align-items: center; }

.tag {
  display: inline-block;
  padding: .4rem 1rem;
  border-radius: 50px;
  background: rgba(255, 196, 0, .15);
  border: 1px solid rgba(255, 196, 0, .5);
  color: var(--yellow);
  font-size: .85rem; font-weight: 600; letter-spacing: .5px;
  margin-bottom: 1.4rem;
}
.hero h1 { font-size: clamp(2.8rem, 6.5vw, 5.4rem); line-height: 1.02; font-weight: 700; letter-spacing: -1px; margin-bottom: 1.4rem; }
.hero-lead { font-size: 1.1rem; color: rgba(255,255,255,.82); max-width: 520px; margin-bottom: 2.2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 2.6rem; }
.hero-contact { display: flex; flex-wrap: wrap; gap: 1.6rem; }
.hero-contact a { display: flex; align-items: center; gap: .55rem; font-size: 1.02rem; color: rgba(255,255,255,.9); transition: color .2s; }
.hero-contact a:hover { color: var(--yellow); }
.hero-contact svg { width: 20px; height: 20px; fill: var(--yellow); }

/* Hexagons */
.hero-visual { position: relative; height: 560px; }
.hex {
  position: absolute;
  width: 230px; height: 262px;
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  background: var(--white);
  padding: 8px;
  filter: drop-shadow(0 18px 30px rgba(0,0,0,.25));
  animation: float 6s ease-in-out infinite;
}
.hex-inner {
  width: 100%; height: 100%;
  clip-path: inherit;
  background: linear-gradient(160deg, var(--navy-light), var(--navy-dark));
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .8rem;
  color: var(--white); text-align: center; padding: 1rem;
}
.hex-inner svg { width: 64px; height: 64px; stroke: var(--yellow); fill: none; }
.hex-inner strong { font-size: 1rem; font-weight: 600; }
.hex-1 { top: 0; left: 34%; }
.hex-2 { top: 34%; left: 4%; width: 270px; height: 308px; animation-delay: -2s; }
.hex-2 .hex-inner { background: linear-gradient(160deg, var(--yellow), #ffd84d); color: var(--navy); }
.hex-2 .hex-inner svg { stroke: var(--navy); }
.hex-3 { top: 58%; left: 48%; animation-delay: -4s; }

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

.chevrons {
  position: absolute;
  width: 120px; height: 140px;
  background-image: radial-gradient(var(--white) 3px, transparent 3.5px);
  background-size: 14px 14px;
  clip-path: polygon(40% 0, 100% 0, 60% 50%, 100% 100%, 40% 100%, 0 50%);
}
.chevrons-1 { top: 4%; right: -2%; }
.chevrons-2 { bottom: 0; right: 0; transform: scaleX(-1); }

/* ---------- Strip ---------- */
.strip { background: var(--white); position: relative; z-index: 2; margin-top: -3rem; }
.strip-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem;
  background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 1.8rem;
}
.strip-item { display: flex; align-items: center; gap: 1rem; padding: .4rem 1rem; }
.strip-item + .strip-item { border-left: 1px solid #e3e9f3; }
.strip-icon {
  flex-shrink: 0; width: 50px; height: 50px; border-radius: 12px;
  display: grid; place-items: center; font-size: 1.3rem;
  background: var(--yellow); color: var(--navy); font-weight: 700;
}
.strip-icon svg { width: 24px; height: 24px; fill: var(--navy); }
.strip-item strong { color: var(--navy); display: block; }
.strip-item p { color: var(--muted); font-size: .9rem; }

/* ---------- Sections ---------- */
.section { padding: 6.5rem 0; position: relative; }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 3.5rem; }
.pill {
  display: inline-block;
  background: var(--yellow);
  color: var(--navy);
  font-weight: 800;
  text-transform: uppercase;
  font-size: .85rem;
  letter-spacing: 1px;
  padding: .45rem 1.1rem;
  border-radius: 8px;
  margin-bottom: 1rem;
}
.section h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); line-height: 1.2; color: var(--navy); margin-bottom: 1rem; font-weight: 700; }
.section-head p { color: var(--muted); font-size: 1.05rem; }

/* ---------- Services ---------- */
.service-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.6rem; }
.service-card {
  position: relative;
  background: var(--white);
  border: 1px solid #e3e9f3;
  border-radius: var(--radius);
  padding: 2.2rem 1.7rem;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s;
  overflow: hidden;
}
.service-card::before {
  content: ""; position: absolute; left: 0; top: 0; height: 4px; width: 0;
  background: var(--yellow); transition: width .35s ease;
}
.service-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: transparent; }
.service-card:hover::before { width: 100%; }
.service-icon {
  width: 64px; height: 72px;
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  background: var(--navy);
  display: grid; place-items: center;
  margin-bottom: 1.4rem;
  transition: background .3s;
}
.service-icon svg { width: 28px; height: 28px; fill: var(--yellow); transition: fill .3s; }
.service-card:hover .service-icon { background: var(--yellow); }
.service-card:hover .service-icon svg { fill: var(--navy); }
.service-card h3 { color: var(--navy); font-size: 1.2rem; margin-bottom: .7rem; }
.service-card p { color: var(--muted); font-size: .93rem; margin-bottom: 1.1rem; }
.service-card li { position: relative; padding-left: 1.4rem; font-size: .9rem; color: var(--text); margin-bottom: .35rem; }
.service-card li::before { content: ""; position: absolute; left: 0; top: .55rem; width: 8px; height: 8px; border-radius: 50%; background: var(--yellow); }

/* ---------- About ---------- */
.about { background: var(--bg-soft); overflow: hidden; }
.dots-about {
  background-image: radial-gradient(rgba(10,47,107,.25) 2px, transparent 2.5px);
  width: 260px; height: 160px; right: 4%; bottom: 40px;
}
.about-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 4rem; align-items: center; }
.about-visual { position: relative; height: 440px; }
.about-card { position: absolute; border-radius: 20px; box-shadow: var(--shadow-lg); }
.about-card-main {
  inset: 0 12% 8% 0;
  background: linear-gradient(150deg, var(--navy), var(--navy-dark));
  padding: 2.5rem;
  display: flex; flex-direction: column; justify-content: flex-end;
  color: var(--white);
}
.about-card-main p { margin-top: 1.2rem; font-weight: 600; font-size: 1.1rem; }
.mini-chart { display: flex; align-items: flex-end; gap: 14px; height: 200px; }
.mini-chart span {
  flex: 1; height: var(--h); border-radius: 8px 8px 0 0;
  background: linear-gradient(to top, var(--yellow), #ffe073);
  transform-origin: bottom; transform: scaleY(0); transition: transform 1s cubic-bezier(.2,.8,.2,1);
}
.reveal.visible .mini-chart span { transform: scaleY(1); }
.mini-chart span:nth-child(2) { transition-delay: .1s; }
.mini-chart span:nth-child(3) { transition-delay: .2s; }
.mini-chart span:nth-child(4) { transition-delay: .3s; }
.mini-chart span:nth-child(5) { transition-delay: .4s; }
.about-card-float {
  right: 0; bottom: 0;
  background: var(--yellow); color: var(--navy);
  padding: 1.4rem 1.8rem; display: flex; align-items: center; gap: 1rem;
}
.about-card-float strong { font-size: 3rem; line-height: 1; }
.about-card-float span { font-weight: 600; font-size: .95rem; line-height: 1.3; }
.about-content p { color: var(--muted); margin-bottom: 1rem; }
.check-list { margin: 1.5rem 0 2rem; display: grid; grid-template-columns: 1fr 1fr; gap: .8rem 1.5rem; }
.check-list li { position: relative; padding-left: 2rem; font-weight: 500; font-size: .95rem; }
.check-list li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--navy); color: var(--yellow);
  display: grid; place-items: center; font-size: .75rem; font-weight: 700;
}

/* ---------- Process ---------- */
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.6rem; position: relative; }
.process-grid::before {
  content: ""; position: absolute; top: 36px; left: 12%; right: 12%;
  border-top: 2px dashed #c9d4e6; z-index: 0;
}
.step { text-align: center; position: relative; z-index: 1; padding: 0 .5rem; }
.step-num {
  width: 72px; height: 72px; margin: 0 auto 1.2rem;
  display: grid; place-items: center;
  background: var(--navy); color: var(--yellow);
  font-weight: 800; font-size: 1.3rem;
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  transition: background .3s, color .3s;
}
.step:hover .step-num { background: var(--yellow); color: var(--navy); }
.step h3 { color: var(--navy); margin-bottom: .4rem; }
.step p { color: var(--muted); font-size: .93rem; }

/* ---------- CTA ---------- */
.cta { background: var(--yellow); padding: 3.5rem 0; position: relative; overflow: hidden; }
.cta::after {
  content: ""; position: absolute; right: -60px; top: -60px; width: 260px; height: 260px;
  background-image: radial-gradient(rgba(10,47,107,.18) 2px, transparent 2.5px);
  background-size: 18px 18px; border-radius: 50%;
}
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; position: relative; z-index: 1; }
.cta h2 { color: var(--navy); font-size: clamp(1.5rem, 3vw, 2.1rem); }
.cta p { color: var(--navy); opacity: .85; }

/* ---------- Contact ---------- */
.contact { background: linear-gradient(135deg, var(--navy-dark), var(--navy)); color: var(--white); }
.contact .section h2, .contact h2 { color: var(--white); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 4rem; align-items: start; }
.contact-info > p { color: rgba(255,255,255,.8); margin-bottom: 2rem; }
.info-item {
  display: flex; align-items: center; gap: 1rem;
  padding: 1rem 1.2rem; border-radius: 12px;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1);
  margin-bottom: 1rem; transition: background .25s, transform .25s;
}
.info-item:hover { background: rgba(255,255,255,.12); transform: translateX(6px); }
.info-icon { width: 48px; height: 48px; border-radius: 10px; background: var(--yellow); display: grid; place-items: center; flex-shrink: 0; }
.info-icon svg { width: 22px; height: 22px; fill: var(--navy); }
.info-item small { display: block; color: rgba(255,255,255,.65); font-size: .8rem; }
.info-item span:last-child { font-weight: 600; font-size: 1.05rem; }

.contact-form { background: var(--white); color: var(--text); border-radius: 18px; padding: 2.4rem; box-shadow: var(--shadow-lg); }
.contact-form h3 { color: var(--navy); font-size: 1.4rem; margin-bottom: 1.4rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-size: .85rem; font-weight: 600; color: var(--navy); margin-bottom: .4rem; }
.field input, .field select, .field textarea {
  width: 100%; padding: .85rem 1rem;
  border: 1.5px solid #dbe3ef; border-radius: 10px;
  font-family: inherit; font-size: .95rem; color: var(--text);
  background: var(--bg-soft); transition: border-color .2s, background .2s, box-shadow .2s;
}
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--navy); background: var(--white);
  box-shadow: 0 0 0 4px rgba(10,47,107,.08);
}
.field.error input, .field.error textarea { border-color: #d93636; }
.form-status { margin-top: .9rem; font-size: .9rem; text-align: center; min-height: 1.3em; }
.form-status.ok { color: #1a8a4a; }
.form-status.err { color: #d93636; }

/* ---------- Footer ---------- */
.footer { background: var(--navy-dark); color: rgba(255,255,255,.75); padding-top: 4.5rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 2.5rem; padding-bottom: 3rem; }
.footer-about { margin-top: 1rem; font-size: .93rem; max-width: 320px; }
.footer h4 { color: var(--white); margin-bottom: 1.1rem; font-size: 1.05rem; position: relative; padding-bottom: .6rem; }
.footer h4::after { content: ""; position: absolute; left: 0; bottom: 0; width: 34px; height: 3px; background: var(--yellow); border-radius: 3px; }
.footer li { margin-bottom: .6rem; font-size: .93rem; }
.footer li a:hover { color: var(--yellow); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 1.4rem 0; text-align: center; font-size: .88rem; }

/* ---------- Back to top ---------- */
.to-top {
  position: fixed; right: 24px; bottom: 24px; z-index: 90;
  width: 48px; height: 48px; border-radius: 12px;
  background: var(--yellow); color: var(--navy);
  display: grid; place-items: center; font-weight: 800; font-size: 1.2rem;
  box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(20px);
  transition: .3s ease;
}
.to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { background: var(--navy); color: var(--yellow); }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity .8s ease, transform .8s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.service-grid .reveal:nth-child(2), .process-grid .reveal:nth-child(2) { transition-delay: .1s; }
.service-grid .reveal:nth-child(3), .process-grid .reveal:nth-child(3) { transition-delay: .2s; }
.service-grid .reveal:nth-child(4), .process-grid .reveal:nth-child(4) { transition-delay: .3s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  .mini-chart span { transform: scaleY(1); }
  html { scroll-behavior: auto; }
}

/* ==========================================================
   Responsive
   ========================================================== */
@media (max-width: 1080px) {
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-visual { height: 480px; transform: scale(.88); transform-origin: center; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .menu-toggle { display: block; z-index: 110; }
  .nav {
    position: fixed; top: 0; right: 0; height: 100vh; width: min(320px, 80vw);
    flex-direction: column; align-items: flex-start; justify-content: center; gap: 1.6rem;
    padding: 2rem 2.5rem; background: var(--navy-dark);
    transform: translateX(100%); transition: transform .35s ease;
    box-shadow: -10px 0 40px rgba(0,0,0,.3);
  }
  .nav.open { transform: translateX(0); }
  .nav-link { font-size: 1.15rem; }

  .hero { text-align: center; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-lead { margin-inline: auto; }
  .hero-actions, .hero-contact { justify-content: center; }
  .hero-yellow { right: -60vw; top: auto; bottom: -30%; width: 120vw; height: 60%; }
  .hero-yellow { display: none; }
  .hero-visual { height: auto; transform: none; display: flex; justify-content: center; gap: .6rem; flex-wrap: wrap; margin-top: 1rem; }
  .hero-visual .hex, .hero-visual .hex-2 { position: relative; inset: auto; width: 150px; height: 172px; padding: 5px; }
  .hex-inner svg { width: 40px; height: 40px; }
  .hex-inner strong { font-size: .8rem; line-height: 1.25; }
  .chevrons { display: none; }
  .dots-top { display: none; }

  .strip-grid { grid-template-columns: 1fr; }
  .strip-item + .strip-item { border-left: 0; border-top: 1px solid #e3e9f3; padding-top: 1rem; }

  .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 3rem; }
  .about-visual { height: 360px; }
  .process-grid { grid-template-columns: repeat(2, 1fr); row-gap: 2.5rem; }
  .process-grid::before { display: none; }
  .cta-inner { flex-direction: column; text-align: center; }
}

@media (max-width: 560px) {
  .section { padding: 4.5rem 0; }
  .service-grid, .process-grid, .check-list, .form-row, .footer-grid { grid-template-columns: 1fr; }
  .hero-visual .hex, .hero-visual .hex-2 { width: 104px; height: 120px; }
  .hex-inner { padding: .4rem; gap: .4rem; }
  .hex-inner svg { width: 28px; height: 28px; }
  .hex-inner strong { font-size: .66rem; }
  .hero { padding-bottom: 5rem; }
  .contact-form { padding: 1.6rem; }
  .logo { font-size: 1.15rem; }
  .logo-text span { display: none; }
}
