/* =========================================
   INNOVENTIX HUB (.tech) — page-level additions
   Loads after styles.css. Colours, fonts, buttons,
   cards and background are all taken from styles.css
   (the Netlify theme). Nothing here changes those tokens.
   ========================================= */

/* ---------- NAV: same pill height as Netlify, larger logo ---------- */
.nav-pill { height: 54px; padding-top: 0; padding-bottom: 0; }
.brand-logo { height: 40px; }

/* Services dropdown (desktop: hover or click) */
.nav-dd { position: relative; display: flex; align-items: center; height: 100%; }
.nav-dd-btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: none; border: 0; padding: 0; cursor: pointer;
  font-family: inherit; font-size: 14px; font-weight: 500;
  color: var(--text-dim);
  transition: color .2s var(--ease);
  line-height: 1;
}
.nav-dd-btn:hover, .nav-dd.open .nav-dd-btn { color: var(--text); }
.nav-dd-btn svg { transition: transform .3s var(--ease); }
.nav-dd.open .nav-dd-btn svg { transform: rotate(180deg); }
.nav-dd-menu {
  position: absolute; top: calc(100% + 22px); left: 50%;
  transform: translate(-50%, -6px);
  min-width: 230px; padding: 8px;
  display: flex; flex-direction: column;
  background: rgba(20,20,20,0.96);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  box-shadow: var(--shadow-card);
  opacity: 0; pointer-events: none;
  transition: opacity .25s var(--ease), transform .25s var(--ease);
}
.nav-dd:hover .nav-dd-menu,
.nav-dd.open .nav-dd-menu {
  opacity: 1; pointer-events: auto;
  transform: translate(-50%, 0);
}
.nav-dd-menu a {
  padding: 10px 14px; border-radius: 10px;
  font-size: 14px; color: var(--text-dim);
  white-space: nowrap;
}
.nav-dd-menu a::after { display: none; }
.nav-dd-menu a:hover { background: var(--gold-tint); color: var(--text); }

/* ---------- HERO ---------- */
.hero-tech {
  min-height: auto;
  padding: 170px 0 90px;
  gap: 0;
}
.hero-tech .hero-inner { display: flex; flex-direction: column; align-items: center; }
.hero-title {
  margin: 26px auto 0;
  max-width: 920px;
  font-size: clamp(34px, 5.4vw, 64px);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.03em;
  text-wrap: balance;
  color: var(--text);
}
.hero-sub {
  margin: 22px auto 0;
  max-width: 640px;
  font-size: clamp(16px, 1.8vw, 19px);
  font-weight: 300;
  color: var(--text-dim);
}
/* Home + service page hero leads use brand gold */
.hero-tech .hero-sub,
.page-hero:not(.about-hero):not(.contact-hero) .hero-sub {
  color: var(--gold-2);
  font-weight: 400;
}
.hero-tech .hero-cta { margin-top: 40px; }
.hero-trust {
  margin: 30px 0 0;
  font-size: 13px;
  color: var(--text-muted);
  letter-spacing: 0.01em;
}

/* ---------- CLIENT RIBBON ---------- */
.clients { margin-top: 84px; text-align: center; }
.clients-label {
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.clients .marquee { padding: 22px 0 0; }
.clients-track { gap: 22px; animation-duration: 60s; }
.logo-ph,
.client-logo {
  flex-shrink: 0;
  width: 200px; height: 84px;
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
}
.logo-ph {
  border: 1px dashed var(--line-strong);
  background: var(--surface);
  color: var(--text-muted);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.client-logo {
  object-fit: contain;
  padding: 16px 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  filter: grayscale(1) brightness(1.7);
  opacity: 0.75;
  transition: opacity .3s var(--ease), filter .3s var(--ease);
}
.client-logo:hover { opacity: 1; filter: none; }

/* ---------- SECTION SUB-TEXT ---------- */
.section-sub {
  margin: 18px auto 0;
  max-width: 640px;
  font-size: 16px;
  font-weight: 300;
  line-height: 1.7;
  color: var(--text-dim);
}

/* ---------- SERVICES ---------- */
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
.svc-card h3 { margin-bottom: 14px; }
.svc-card p { font-size: 15px; }
.services .section-head { margin-bottom: 64px; }

/* ---------- FOUNDER ---------- */
.founder-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 72px;
  align-items: center;
}
.arch {
  position: relative;
  width: 100%; max-width: 440px;
  aspect-ratio: 4 / 5;
  margin: 0 auto;
  border-radius: 220px 220px 28px 28px;
  overflow: hidden;
  background: linear-gradient(160deg, var(--gold-2) 0%, var(--gold-3) 100%);
  border: 1px solid var(--line-gold);
  box-shadow: var(--shadow-lg);
}
.arch img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 50% 20%;
}
.arch-chip {
  position: absolute; left: 16px; bottom: 16px;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(20,20,20,0.72);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--line-strong);
  font-size: 13px; font-weight: 500;
  color: var(--text);
}
.arch-chip::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--gold-1);
}
.founder-copy h2 { margin: 16px 0 22px; }
.founder-copy p {
  margin: 0 0 26px;
  max-width: 560px;
  font-size: 16px; line-height: 1.75; font-weight: 300;
  color: var(--text-dim);
}
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 34px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  font-size: 13px;
  color: var(--text-dim);
}
.chip::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--gold-2);
}

/* ---------- FAQ ---------- */
.faq-list { max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }
.faq-item {
  padding: 0 24px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface-hi), var(--surface));
  border: 1px solid var(--line);
  transition: border-color .3s var(--ease);
}
.faq-item[open] { border-color: var(--line-gold); }
.faq-item summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 22px 0;
  font-size: 18px; font-weight: 500; letter-spacing: -0.015em;
  color: var(--text);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 24px; line-height: 1;
  color: var(--gold-1);
  transition: transform .3s var(--ease);
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p {
  margin: 0 0 22px;
  max-width: 680px;
  font-size: 15px; line-height: 1.7; font-weight: 300;
  color: var(--text-dim);
}

/* ---------- FINAL CTA (centred version of the Netlify CTA card) ---------- */
.cta-center { flex-direction: column; justify-content: center; text-align: center; }
.cta-center > div:first-child { max-width: 720px; margin: 0 auto; }
.cta-center h2 { margin: 0 0 16px; }
.cta-center p { margin: 0 auto; }
.cta-center .hero-cta { margin-top: 36px; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 960px) {
  .svc-grid { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; }
  .founder-grid { gap: 52px; }
  .brand-logo { height: 34px; }
}

@media (max-width: 720px) {
  /* Mobile menu: Services becomes an inline expandable group */
  .nav-links.open .nav-dd { width: 100%; }
  .nav-links.open .nav-dd-btn {
    width: 100%; justify-content: space-between;
    padding: 12px 0;
    font-size: 15px;
    border-bottom: 1px solid var(--line);
  }
  .nav-links.open .nav-dd-menu {
    position: static;
    transform: none;
    opacity: 1; pointer-events: auto;
    min-width: 0; padding: 0 0 6px 12px;
    background: none; border: 0; box-shadow: none; backdrop-filter: none;
    display: none;
  }
  .nav-links.open .nav-dd.open .nav-dd-menu { display: flex; }
  .nav-links.open .nav-dd-menu a { padding: 10px 0; font-size: 14px; }

  .hero-tech { padding: 130px 0 64px; }
  .hero-tech .hero-cta .btn { width: 100%; justify-content: center; }
  .clients { margin-top: 64px; }
  .logo-ph, .client-logo { width: 160px; height: 72px; }

  .founder-grid { grid-template-columns: 1fr; gap: 44px; text-align: center; }
  .founder-copy p { margin-left: auto; margin-right: auto; }
  .chips { justify-content: center; }
  .founder-copy .btn { width: 100%; justify-content: center; }

  .faq-item summary { font-size: 16px; }
  .cta-center .hero-cta .btn { width: 100%; justify-content: center; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
}

/* ---------- CTA phone line ---------- */
.cta-phone {
  margin: 18px auto 0;
  font-size: 14px;
  color: var(--text-muted);
  letter-spacing: 0.01em;
}

/* ---------- FOOTER: brand + Services + Company + Contact ---------- */
.footer-inner { grid-template-columns: 1.3fr 1fr 1fr 1.4fr; }
.footer-brand .socials {
  display: flex; gap: 18px; margin: 24px 0 0; padding: 0; list-style: none;
}
@media (max-width: 960px) {
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
}
