/*
  EMAPAR Tech Services - One Page Website
  Deploy by uploading this folder to your web root, or paste sections into your WordPress/Bricks page.
*/

:root {
  --bg: #f6f9fc;
  --surface: #ffffff;
  --surface-alt: #eef5fb;
  --text: #132033;
  --muted: #5f6f82;
  --line: #dce6ef;
  --primary: #0b63ce;
  --primary-dark: #084c9e;
  --accent: #17b6b1;
  --navy: #08213f;
  --success: #0c8f68;
  --shadow: 0 20px 55px rgba(8, 33, 63, 0.12);
  --radius: 18px;
  --radius-sm: 12px;
  --container: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  font-size: 16px;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }

.container {
  width: min(var(--container), calc(100% - 40px));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 16px;
  background: var(--navy);
  color: #fff;
  padding: 10px 14px;
  border-radius: 8px;
  z-index: 99;
}
.skip-link:focus { left: 16px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(220, 230, 239, 0.8);
}

.nav-wrap {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.logo-img {
  height: 46px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}
.nav-links a:hover { color: var(--primary); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  color: #fff;
  background: var(--primary);
  box-shadow: 0 12px 26px rgba(11, 99, 206, 0.24);
}
.btn-primary:hover { background: var(--primary-dark); }
.btn-secondary {
  color: var(--navy);
  background: #fff;
  border-color: var(--line);
}
.btn-secondary:hover { border-color: var(--primary); color: var(--primary); }
.btn-wide { width: 100%; }

.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 15% 20%, rgba(23, 182, 177, 0.14), transparent 28%),
    linear-gradient(180deg, #ffffff 0%, #f5f9fd 100%);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  align-items: center;
  gap: 46px;
  padding: 70px 0 54px;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--primary-dark);
  background: rgba(11, 99, 206, 0.08);
  font-weight: 800;
  font-size: 13px;
}
.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}
.hero h1, .section-heading h2, .split-content h2, .contact-card h2 {
  font-family: 'Manrope', 'Inter', sans-serif;
  letter-spacing: -0.055em;
  line-height: 1.05;
  color: var(--navy);
}
.hero h1 {
  margin: 0;
  font-size: clamp(42px, 6vw, 70px);
}
.hero-copy {
  margin: 22px 0 0;
  max-width: 650px;
  font-size: 19px;
  color: var(--muted);
}
.hero-actions {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.hero-points {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 34px;
}
.mini-card {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px;
  box-shadow: 0 10px 22px rgba(8, 33, 63, 0.06);
}
.mini-card strong {
  display: block;
  color: var(--navy);
  font-size: 14px;
  line-height: 1.25;
}
.mini-card span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}
.hero-media {
  position: relative;
}
.hero-media img {
  border-radius: 28px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.8);
}
.floating-card {
  position: absolute;
  left: -18px;
  bottom: 28px;
  width: min(280px, 70%);
  padding: 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 44px rgba(8, 33, 63, 0.18);
  border: 1px solid rgba(220, 230, 239, 0.92);
}
.floating-card .label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .07em;
}
.floating-card strong {
  display: block;
  margin-top: 5px;
  color: var(--navy);
  font-size: 18px;
  line-height: 1.2;
}

.trust-strip {
  background: var(--navy);
  color: #e8f3ff;
}
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
}
.trust-item {
  padding: 22px 18px;
  background: rgba(255,255,255,.035);
}
.trust-item strong { display: block; font-size: 15px; color: #fff; }
.trust-item span { display: block; margin-top: 4px; font-size: 13px; color: #bcd1e6; }

.section {
  padding: 86px 0;
}
.section-tight { padding: 66px 0; }
.section-white { background: #fff; }
.section-alt { background: var(--surface-alt); }
.section-heading {
  max-width: 760px;
  margin-bottom: 38px;
}
.section-heading.center {
  margin-inline: auto;
  text-align: center;
}
.section-heading h2, .split-content h2, .contact-card h2 {
  margin: 0;
  font-size: clamp(32px, 4vw, 48px);
}
.section-heading p, .split-content p, .contact-card p {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 18px;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.card, .price-card, .faq-item, .contact-card, .form-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 14px 34px rgba(8, 33, 63, 0.07);
}
.card { padding: 26px; }
.card h3, .price-card h3, .use-case h3, .faq-item h3 {
  margin: 16px 0 8px;
  color: var(--navy);
  font-family: 'Manrope', 'Inter', sans-serif;
  letter-spacing: -0.025em;
  line-height: 1.2;
}
.card p, .price-card p, .use-case p, .faq-item p {
  margin: 0;
  color: var(--muted);
}
.icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(11, 99, 206, 0.08);
  color: var(--primary);
}
.icon svg { width: 25px; height: 25px; stroke: currentColor; stroke-width: 2; fill: none; stroke-linecap: round; stroke-linejoin: round; }

.split {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  align-items: center;
  gap: 44px;
}
.split.reverse {
  grid-template-columns: 1.05fr 0.95fr;
}
.split-image img {
  border-radius: 26px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.8);
}
.check-list {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  display: grid;
  gap: 12px;
}
.check-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  color: var(--muted);
}
.check-list li::before {
  content: '';
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  margin-top: 2px;
  border-radius: 50%;
  background: rgba(23, 182, 177, 0.16);
  background-image: url("data:image/svg+xml,%3Csvg width='22' height='22' viewBox='0 0 22 22' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6.2 11.3L9.2 14.2L15.8 7.8' stroke='%230C8F68' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.use-case-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.use-case {
  display: flex;
  gap: 16px;
  padding: 22px;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--line);
}
.use-case h3 { margin-top: 0; }
.use-case .icon { flex: 0 0 48px; }

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: stretch;
}
.price-card {
  padding: 28px;
  position: relative;
  overflow: hidden;
}
.price-card.featured {
  border-color: rgba(11, 99, 206, .35);
  box-shadow: 0 24px 58px rgba(11, 99, 206, .15);
}
.price-card .tag {
  display: inline-flex;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(23, 182, 177, 0.12);
  color: #08746f;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.price {
  margin: 18px 0 10px;
  color: var(--navy);
  font-size: 38px;
  font-family: 'Manrope', sans-serif;
  letter-spacing: -0.05em;
  font-weight: 800;
}
.price small { font-size: 16px; color: var(--muted); letter-spacing: 0; font-family: 'Inter', sans-serif; font-weight: 700; }
.price-card ul {
  margin: 22px 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
  color: var(--muted);
}
.price-card li { display: flex; gap: 10px; }
.price-card li::before { content: '✓'; color: var(--success); font-weight: 900; }

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  counter-reset: process;
}
.process-step {
  position: relative;
  padding: 24px;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--line);
}
.process-step::before {
  counter-increment: process;
  content: counter(process);
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  font-weight: 900;
}
.process-step h3 { margin: 18px 0 8px; color: var(--navy); }
.process-step p { margin: 0; color: var(--muted); font-size: 15px; }

.area-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 26px;
  padding: 34px;
  box-shadow: var(--shadow);
}
.area-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}
.area-list span {
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--surface-alt);
  border: 1px solid var(--line);
  color: var(--navy);
  font-weight: 800;
  font-size: 14px;
}
.local-copy { color: var(--muted); margin-top: 18px; }

.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.faq-item { padding: 24px; }
.faq-item h3 { margin-top: 0; }

.contact-section {
  padding: 86px 0;
  background:
    radial-gradient(circle at 85% 5%, rgba(23,182,177,.18), transparent 28%),
    linear-gradient(135deg, #071c36 0%, #0b2c54 100%);
  color: #fff;
}
.contact-grid {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 26px;
  align-items: start;
}
.contact-card {
  padding: 34px;
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.14);
  box-shadow: none;
}
.contact-card h2 { color: #fff; }
.contact-card p { color: #c3d7ed; }
.contact-details {
  margin-top: 28px;
  display: grid;
  gap: 14px;
}
.contact-detail {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  color: #e6f1fb;
}
.contact-detail strong { display: block; color: #fff; }
.contact-detail > div > span { display: block; color: #c3d7ed; font-size: 14px; }
.form-card {
  padding: 28px;
  background: #fff;
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.form-field.full { grid-column: 1 / -1; }
label {
  display: block;
  margin-bottom: 7px;
  color: var(--navy);
  font-size: 13px;
  font-weight: 900;
}
input, select, textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 13px 14px;
  color: var(--text);
  background: #fff;
  outline: none;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(11, 99, 206, 0.1);
}
textarea { resize: vertical; min-height: 126px; }
.form-note {
  color: var(--muted);
  font-size: 13px;
  margin: 12px 0 0;
}

.site-footer {
  background: #06172b;
  color: #b7c9da;
  padding: 36px 0;
}
.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.footer-grid strong { color: #fff; }
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 14px;
}
.footer-links a:hover { color: #fff; }

@media (max-width: 980px) {
  .hamburger { display: flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    padding: 10px 0 16px;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 40px rgba(8, 33, 63, 0.12);
  }
  .nav-links.open { display: flex; }
  .nav-links a:not(.btn) {
    display: block;
    padding: 13px 24px;
    font-size: 15px;
    color: var(--navy);
    border-radius: 0;
  }
  .nav-links a:not(.btn):hover { color: var(--primary); background: var(--bg); }
  .nav-links .btn { margin: 10px 24px 0; text-align: center; }
  .hero-grid, .split, .split.reverse, .contact-grid { grid-template-columns: 1fr; }
  .hero-grid { padding-top: 48px; }
  .hero-media { order: -1; }
  .hero-points, .card-grid, .pricing-grid, .process-grid, .trust-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 680px) {
  .container { width: min(100% - 28px, var(--container)); }
  .nav-wrap { min-height: 68px; }
  .logo-text .sub { display: none; }
  .hero-grid { gap: 28px; padding: 34px 0 46px; }
  .hero h1 { font-size: 40px; }
  .hero-copy, .section-heading p, .split-content p, .contact-card p { font-size: 16px; }
  .hero-actions { flex-direction: column; }
  .btn { width: 100%; }
  .hero-points, .card-grid, .pricing-grid, .process-grid, .trust-grid, .use-case-grid, .faq-grid, .form-grid { grid-template-columns: 1fr; }
  .floating-card { position: static; margin-top: 14px; width: 100%; }
  .section, .contact-section { padding: 62px 0; }
  .section-tight { padding: 48px 0; }
  .area-card, .contact-card, .form-card { padding: 24px; }
}

/* ============================================================
   DYNAMIC ENHANCEMENTS
   ============================================================ */

/* ── Animated pulse dot ────────────────────────────────────── */
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.55; transform: scale(1.35); }
}
.dot { animation: pulse-dot 2.2s ease-in-out infinite; }

/* ── Header shadow on scroll ───────────────────────────────── */
.site-header {
  transition: box-shadow 0.3s ease;
}
.site-header.scrolled {
  box-shadow: 0 4px 28px rgba(8, 33, 63, 0.1);
}

/* ── Hamburger button ──────────────────────────────────────── */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 8px;
  border: none;
  background: none;
  cursor: pointer;
  border-radius: 10px;
  flex-shrink: 0;
}
.hamburger:hover { background: var(--bg); }
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Active nav link ───────────────────────────────────────── */
.nav-links a:not(.btn).active { color: var(--primary); }

/* ── Card hover lift ───────────────────────────────────────── */
.card, .use-case, .process-step {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 28px 56px rgba(8, 33, 63, 0.11);
}
.use-case:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px rgba(8, 33, 63, 0.09);
}
.process-step:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 36px rgba(8, 33, 63, 0.09);
}

/* ── Scroll reveal ─────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ── Floating card entrance ────────────────────────────────── */
@keyframes float-in {
  from { opacity: 0; transform: translate(-10px, 10px); }
  to   { opacity: 1; transform: none; }
}
.floating-card {
  animation: float-in 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.5s both;
}

/* ── FAQ Accordion ─────────────────────────────────────────── */
.faq-item { cursor: default; }

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  text-align: left;
  color: var(--navy);
  font-family: 'Manrope', 'Inter', sans-serif;
  font-size: clamp(16px, 2vw, 18px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.2;
}
.faq-question:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
  border-radius: 4px;
}

.faq-chevron {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  stroke: var(--primary);
  stroke-width: 2.5;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.faq-item.open .faq-chevron { transform: rotate(180deg); }

.faq-body {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.faq-body p {
  margin: 14px 0 0;
  color: var(--muted);
  padding-right: 32px;
}

/* ── Back to top button ────────────────────────────────────── */
.back-to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 40;
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 28px rgba(11, 99, 206, 0.32);
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.35s ease, transform 0.35s ease, background 0.2s ease;
  pointer-events: none;
}
.back-to-top.visible {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}
.back-to-top:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}
.back-to-top svg {
  width: 20px;
  height: 20px;
  stroke: #fff;
  stroke-width: 2.5;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}
