/* ============================================================
   Proinfocus — elegant single-page site
   Palette: deep navy + azure accent, warm paper backgrounds
   ============================================================ */

:root {
  /* Brand colors from the Proinfocus logo */
  --brand-cyan: #00aef0;        /* right triangle  */
  --brand-cyan-soft: #45c5f7;   /* lighter cyan    */
  --brand-cyan-ink: #0277ad;    /* cyan darkened for small text on light bg (AA) */
  --brand-green: #8ec641;       /* left triangle   */
  --navy-950: #05202b;          /* deep teal-navy, harmonized with the cyan */
  --navy-900: #07293a;
  --navy-800: #0b3247;
  --navy-700: #10415c;
  --ink: #14283a;
  --ink-soft: #45566b;
  --ink-faint: #74849a;
  --paper: #fdfdfe;
  --paper-tint: #f3f7fa;
  --line: #e2e8ee;
  --white: #ffffff;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(5, 32, 43, 0.06), 0 2px 8px rgba(5, 32, 43, 0.05);
  --shadow-md: 0 4px 12px rgba(5, 32, 43, 0.08), 0 12px 32px rgba(5, 32, 43, 0.10);
  --font-display: "Google Sans", "Roboto", Arial, sans-serif;
  --font-body: "Google Sans", "Roboto", Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

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

/* ---------- Typography ---------- */
h1, h2 {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.12;
  color: var(--navy-900);
}

h1 { font-size: clamp(2.4rem, 5.4vw, 4.1rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }

.accent-serif {
  font-style: italic;
  background: linear-gradient(90deg, var(--brand-green), var(--brand-cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.lede {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: var(--ink-soft);
  max-width: 46em;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brand-cyan-ink);
  margin-bottom: 0.9rem;
}

/* Green dash before the eyebrow — the left triangle's color */
.eyebrow::before {
  content: "";
  width: 18px;
  height: 3px;
  border-radius: 2px;
  background: var(--brand-green);
  flex-shrink: 0;
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  background: rgba(253, 252, 250, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, background 0.3s ease;
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  background: rgba(253, 252, 250, 0.94);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}

.brand-logo {
  display: block;
  width: 34px;
  height: 34px;
  object-fit: contain;
  transition: transform 0.25s ease;
}

.brand:hover .brand-logo { transform: scale(1.08); }

.brand-name {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--navy-900);
  letter-spacing: -0.01em;
}

.site-nav {
  display: flex;
  gap: 0.25rem;
  margin-left: auto;
}

.nav-link {
  padding: 0.45rem 0.85rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink-soft);
  text-decoration: none;
  border-radius: 8px;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-link:hover { color: var(--navy-900); background: rgba(0, 174, 240, 0.07); }

.nav-link.is-active {
  color: var(--brand-cyan-ink);
  background: rgba(0, 174, 240, 0.10);
}

.header-cta { margin-left: 0.5rem; }
.btn-solid:hover,.header-cta:hover { color:white; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  padding: 0.5rem;
  cursor: pointer;
}

.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--navy-900);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.7rem;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btn-solid {
  background: var(--brand-cyan);
  color: var(--navy-950);
}

.btn-solid:hover {
  background: #0094cc;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-ghost {
  color: var(--navy-900);
  border: 1px solid var(--line);
  background: var(--white);
}

.btn-ghost:hover {
  border-color: var(--navy-900);
  transform: translateY(-2px);
}

.btn-sm { padding: 0.55rem 1.2rem; font-size: 0.85rem; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 168px 0 96px;
  background:
    radial-gradient(ellipse 60% 45% at 78% 8%, rgba(0, 174, 240, 0.10), transparent),
    radial-gradient(ellipse 45% 40% at 10% 90%, rgba(142, 198, 65, 0.08), transparent),
    var(--paper);
  overflow: hidden;
}

.hero-inner { max-width: 860px; }

.hero h1 { margin-bottom: 1.4rem; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2.2rem;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 4.2rem;
  padding-top: 2.4rem;
  border-top: 1px solid var(--line);
}

.stat-num {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  font-weight: 500;
  color: var(--navy-900);
  line-height: 1.1;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--ink-faint);
  margin-top: 0.3rem;
}

.hero-fade {
  position: absolute;
  inset: auto 0 0 0;
  height: 80px;
  background: linear-gradient(to bottom, transparent, var(--paper));
  pointer-events: none;
}

/* ---------- Sections ---------- */
.section { padding: 96px 0; }

.section-tint {
  background: var(--paper-tint);
}

.section-head { max-width: 720px; margin-bottom: 3.4rem; }

.section-head h2 { margin-bottom: 1.1rem; }

/* Green → cyan bar under section headings — echoes the logo */
.section-head h2::after {
  content: "";
  display: block;
  width: 54px;
  height: 3px;
  border-radius: 2px;
  margin-top: 1rem;
  background: linear-gradient(90deg, var(--brand-green), var(--brand-cyan));
}

.section-sub {
  color: var(--ink-soft);
  font-size: 1.08rem;
}

/* ---------- Cards ---------- */
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.9rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(0, 174, 240, 0.40);
}

.card-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--navy-900);
  margin-bottom: 0.7rem;
}

.card p { color: var(--ink-soft); font-size: 0.95rem; }

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 3.5rem;
  align-items: start;
}

.about-copy p { color: var(--ink-soft); margin-bottom: 1.2rem; }

.about-cards { display: grid; gap: 1.1rem; }

/* ---------- Modernize / journey ---------- */
.journey {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
  margin-bottom: 3.4rem;
}

.journey-step {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 2rem 1.6rem 1.8rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.journey-step:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

.journey-num {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(0, 174, 240, 0.10);
  color: var(--brand-cyan-ink);
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 500;
  margin-bottom: 1.1rem;
}

/* Every other step carries the green — the logo's pairing */
.journey-step:nth-child(even) .journey-num {
  background: rgba(142, 198, 65, 0.14);
  color: #5b8a1e;
}

.journey-step h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--navy-900);
  margin-bottom: 0.5rem;
}

.journey-step p { font-size: 0.92rem; color: var(--ink-soft); }

.stack {
  background: var(--navy-900);
  border-radius: var(--radius-lg);
  padding: 2.4rem 2.6rem;
  color: var(--white);
}

.stack-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brand-cyan-soft);
  margin-bottom: 1.4rem;
}

.stack-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 2rem;
  list-style: none;
}

.stack-list li {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.98rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.92);
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand-cyan);
  box-shadow: 0 0 10px rgba(0, 174, 240, 0.7);
}

/* Alternate dots in the logo's green */
.stack-list li:nth-child(even) .dot {
  background: var(--brand-green);
  box-shadow: 0 0 10px rgba(142, 198, 65, 0.6);
}

/* ---------- AI-assisted block ---------- */
.ai-block {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 2.4rem 2.6rem;
  box-shadow: var(--shadow-sm);
  margin-bottom: 3.4rem;
}

.ai-head { max-width: 620px; margin-bottom: 2.2rem; }

.ai-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand-cyan-ink);
  background: rgba(0, 174, 240, 0.10);
  border: 1px solid rgba(0, 174, 240, 0.25);
  border-radius: 999px;
  padding: 0.32rem 0.85rem;
  margin-bottom: 1.1rem;
}

.ai-badge::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-green), var(--brand-cyan));
}

.ai-head h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--navy-900);
  margin-bottom: 0.7rem;
}

.ai-head p { color: var(--ink-soft); font-size: 0.97rem; }

.ai-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.2rem;
}

.ai-item h4 {
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 500;
  color: var(--navy-900);
  margin-bottom: 0.5rem;
}

.ai-item p { font-size: 0.9rem; color: var(--ink-soft); }

.ai-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 11px;
  background: rgba(0, 174, 240, 0.10);
  color: var(--brand-cyan-ink);
  margin-bottom: 0.9rem;
}

.ai-item:nth-child(even) .ai-icon {
  background: rgba(142, 198, 65, 0.14);
  color: #5b8a1e;
}

.ai-note {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin-top: 2.2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink-soft);
}

.ai-note svg {
  flex-shrink: 0;
  margin-top: 0.2rem;
  color: #5b8a1e;
}

/* ---------- Services ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}

/* ---------- Products ---------- */
.product-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.product {
  display: flex;
  gap: 1.6rem;
  align-items: flex-start;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem 1.6rem;
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.product:hover {
  border-color: rgba(0, 174, 240, 0.40);
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
}

.product-meta {
  flex-shrink: 0;
  width: 148px;
}

.product-year {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand-cyan-ink);
  margin-bottom: 0.35rem;
}

.product-meta h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--navy-900);
  line-height: 1.25;
}

.product p { font-size: 0.92rem; color: var(--ink-soft); }

/* ---------- Contact ---------- */
.section-contact {
  background:
    radial-gradient(ellipse 55% 60% at 85% 20%, rgba(0, 174, 240, 0.12), transparent),
    var(--paper-tint);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.1rem;
}

.contact-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.contact-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); }

.contact-card h3 {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 0.7rem;
}

.contact-card a {
  color: var(--navy-900);
  font-weight: 500;
  font-size: 0.98rem;
  text-decoration: none;
  border-bottom: 1.5px solid rgba(0, 174, 240, 0.35);
  transition: border-color 0.2s ease, color 0.2s ease;
  word-break: break-word;
}

.contact-card a:hover { color: var(--brand-cyan-ink); border-bottom-color: var(--brand-cyan); }

/* ---------- Footer ---------- */
.site-footer {
  position: relative;
  background: var(--navy-950);
  color: rgba(255, 255, 255, 0.75);
  padding: 56px 0 40px;
}

/* Logo-colored seam along the footer's top edge */
.site-footer::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--brand-green), var(--brand-cyan));
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem 2.5rem;
}

.site-footer .brand-name { color: var(--white); }

.footer-note {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.55);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.4rem;
  margin-left: auto;
}

.footer-nav a {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.88rem;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-nav a:hover { color: var(--brand-cyan-soft); }

.footer-copy {
  width: 100%;
  padding-top: 1.6rem;
  margin-top: 0.6rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.4);
}

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Stagger siblings revealed in the same batch */
.reveal.is-visible:nth-child(2) { transition-delay: 0.08s; }
.reveal.is-visible:nth-child(3) { transition-delay: 0.16s; }
.reveal.is-visible:nth-child(4) { transition-delay: 0.24s; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .journey { grid-template-columns: repeat(2, 1fr); }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; gap: 2rem; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .ai-grid { grid-template-columns: 1fr; gap: 1.6rem; }
}

@media (max-width: 720px) {
  .site-nav {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 0.8rem 4%;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.25s ease, opacity 0.25s ease;
  }

  .site-nav.is-open {
    transform: none;
    opacity: 1;
    pointer-events: auto;
  }

  .site-nav .nav-link { padding: 0.8rem 0.6rem; font-size: 1rem; }

  .nav-toggle { display: flex; margin-left: auto; }
  .header-cta { display: none; }

  .hero { padding: 128px 0 72px; }
  .section { padding: 68px 0; }

  .services-grid,
  .journey,
  .product-list { grid-template-columns: 1fr; }
  .ai-block { padding: 1.8rem 1.4rem; }
  .contact-grid { grid-template-columns: 1fr; }
  .stats { gap: 1rem 1.5rem; }
}

@media (max-width: 460px) {
  .stats { grid-template-columns: 1fr 1fr; }
  .product { flex-direction: column; gap: 0.6rem; }
  .product-meta { width: auto; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn:hover, .card:hover, .journey-step:hover,
  .product:hover, .contact-card:hover { transform: none; }
}
