/*
Theme Name: Vistic v2
Description: Redesign of the Vistic theme: shorter home page, ready-made app cards, richer portfolio and footer, self-hosted Inter, SEO fixes. Child theme of Vistic.
Template: vistic
Version: 2.1.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: vistic
*/

@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("assets/inter-latin-var.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --v2-dark: #07121d;
  --v2-teal: #31d5d0;
  --v2-teal-dark: #07858a;
  --v2-ink: #152434;
  --v2-paper: #f4f7f9;
  --v2-line: #e1e8ee;
  --ink: var(--v2-ink);
  --paper: var(--v2-paper);
  --line: var(--v2-line);
  --green-dark: var(--v2-teal-dark);
}

/* Brand buttons: replace the old lime "light" button with teal. */
.button-light {
  background: var(--v2-teal);
  color: #062329;
  box-shadow: 0 7px 18px rgba(49, 213, 208, .2);
}

.button-light:hover {
  background: #5fe0dc;
  color: #062329;
}

a:focus-visible,
summary:focus-visible,
button:focus-visible {
  outline: 3px solid var(--v2-teal);
  outline-offset: 3px;
}

/* Tighter vertical rhythm so the home page reads faster. */
.section {
  padding-top: 84px;
  padding-bottom: 84px;
}

/* Header: mobile-only nav items. */
.nav-mobile-only {
  display: none;
}

@media (max-width: 680px) {
  .site-header.has-mobile-menu .nav-mobile-only {
    display: block;
  }
}

/* Hero */
.v2-whatsapp-button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  gap: 9px;
  padding: 0 19px;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 999px;
  color: #fff;
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
  transition: background .2s ease, border-color .2s ease;
}

.v2-whatsapp-button:hover {
  border-color: var(--v2-teal);
  background: rgba(49, 213, 208, .12);
}

.v2-hero-proof {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-top: 30px;
  padding: 10px 16px 10px 10px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 16px;
  background: rgba(255, 255, 255, .05);
  color: #fff;
  text-decoration: none;
}

.v2-hero-proof:hover {
  border-color: rgba(49, 213, 208, .6);
}

.v2-hero-proof-icons {
  display: flex;
}

.v2-hero-proof-icons img {
  width: 36px;
  height: 36px;
  border: 2px solid var(--v2-dark);
  border-radius: 10px;
  background: #fff;
}

.v2-hero-proof-icons img + img {
  margin-left: -10px;
}

.v2-hero-proof strong,
.v2-hero-proof small {
  display: block;
  line-height: 1.35;
}

.v2-hero-proof strong {
  font-size: 14px;
}

.v2-hero-proof small {
  color: #a9bccb;
  font-size: 12px;
}

/* Product cards (home + products hub) */
.v2-product-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.v2-product-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: 24px;
  border: 1px solid var(--v2-line);
  border-radius: 16px;
  background: #fff;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.v2-product-card:hover {
  border-color: rgba(49, 213, 208, .55);
  box-shadow: 0 18px 44px rgba(7, 18, 29, .08);
  transform: translateY(-3px);
}

.v2-product-card .service-icon {
  margin-bottom: 16px;
}

.v2-product-card h2,
.v2-product-card h3 {
  margin: 0 0 8px;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.3;
}

.v2-product-card h2 a,
.v2-product-card h3 a {
  color: var(--v2-ink);
  text-decoration: none;
}

.v2-product-card h2 a:hover,
.v2-product-card h3 a:hover {
  color: var(--v2-teal-dark);
}

.v2-product-card > p {
  margin: 0 0 16px;
  color: #4a5b6c;
  font-size: 15px;
  line-height: 1.55;
}

.v2-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
}

.v2-chips li {
  padding: 4px 10px;
  border-radius: 999px;
  background: #e8f8f7;
  color: #075e62;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.5;
}

.v2-card-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--v2-line);
}

.v2-card-actions .text-link,
.v2-demo-link {
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.v2-demo-link {
  color: var(--v2-teal-dark);
}

.v2-demo-link:hover {
  color: var(--v2-ink);
}

.products-page .v2-product-grid {
  margin-bottom: 48px;
}

/* Services */
.v2-service-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.v2-services-more {
  margin: 24px 0 0;
  color: #4a5b6c;
  font-size: 15px;
  text-align: center;
}

/* About anchor lives inside the process section. */
.approach {
  position: relative;
}

.v2-anchor {
  position: absolute;
  top: 0;
}

/* Published apps */
.v2-app-card .published-app-meta {
  align-items: flex-start;
}

.v2-app-tags {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

.v2-badge {
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--v2-ink);
  color: #fff !important;
  font-size: 11px !important;
  letter-spacing: .02em;
}

.published-app-link {
  color: var(--v2-teal-dark);
}

.published-apps-sources a:hover {
  border-color: var(--v2-teal);
  color: var(--v2-teal-dark);
}

.portfolio-page .v2-portfolio-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.portfolio-page .v2-app-card {
  min-height: 0;
  padding: 28px;
  background: #fff;
}

.portfolio-page .v2-app-card .published-app-meta img {
  width: 88px;
  height: 88px;
  border-radius: 20px;
}

.portfolio-page .v2-app-card h3 {
  font-size: 22px;
}

.portfolio-contact .eyebrow {
  color: var(--v2-teal);
}

.portfolio-contact {
  background: var(--v2-dark);
}

.v2-cta-row {
  display: flex;
  flex: none;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
}

.v2-ghost-link {
  color: #fff;
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
}

.v2-ghost-link:hover {
  color: var(--v2-teal);
}

/* Contact */
.contact-copy .v2-whatsapp-button {
  margin-top: 8px;
  border-color: rgba(49, 213, 208, .55);
}

/* Footer */
.v2-footer {
  padding: 64px 0 0;
  border-top: 1px solid var(--v2-line);
  background: #fff;
}

.v2-footer-grid {
  display: grid;
  gap: 36px;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
}

.v2-footer-about p {
  max-width: 340px;
  margin: 18px 0 20px;
  color: #4a5b6c;
  font-size: 14px;
  line-height: 1.6;
}

.v2-social {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.v2-social a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid var(--v2-line);
  border-radius: 999px;
  color: var(--v2-ink);
  font-size: 13px;
  font-weight: 650;
  text-decoration: none;
}

.v2-social a:hover {
  border-color: var(--v2-teal);
  color: var(--v2-teal-dark);
}

.v2-footer-col {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.v2-footer-col h2 {
  margin: 0 0 6px;
  color: var(--v2-ink);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.v2-footer-col a {
  color: #4a5b6c;
  font-size: 14px;
  text-decoration: none;
}

.v2-footer-col a:hover {
  color: var(--v2-teal-dark);
}

.v2-footer-bottom {
  margin-top: 48px;
  padding: 22px 0 96px;
  border-top: 1px solid var(--v2-line);
}

.v2-footer-bottom p {
  margin: 0;
  color: #718294;
  font-size: 13px;
}

@media (max-width: 980px) {
  .v2-product-grid,
  .v2-service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .v2-footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 680px) {
  .section {
    padding-top: 60px;
    padding-bottom: 60px;
  }

  .v2-product-grid,
  .v2-service-grid,
  .portfolio-page .v2-portfolio-grid {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    flex-wrap: wrap;
  }

  .v2-hero-proof {
    margin-top: 24px;
  }

  .v2-footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .v2-cta-row {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .v2-product-card,
  .v2-product-card:hover {
    transform: none;
    transition: none;
  }
}


/* Mobile: floating Call/WhatsApp become compact round icons so they don't cover page buttons. */
@media (max-width: 680px) {
  .floating-contact {
    right: 12px;
    gap: 10px;
  }

  .floating-contact-link {
    width: 48px;
    min-height: 48px;
    padding: 0;
  }

  .floating-contact-link span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  .floating-contact-link svg {
    width: 22px;
    height: 22px;
  }
}

/* ---- 2.1: trust strip, CTA band, lead form, product + post CTAs ---- */
.v2-trust {
  border-bottom: 1px solid var(--v2-line);
  background: #fff;
}

.v2-trust-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.v2-trust-grid > div {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 26px 20px;
  border-left: 1px solid var(--v2-line);
}

.v2-trust-grid > div:first-child {
  border-left: 0;
  padding-left: 0;
}

.v2-trust-grid strong {
  color: var(--v2-ink);
  font-size: 26px;
  font-weight: 760;
  letter-spacing: -.03em;
  line-height: 1.2;
}

.v2-trust-grid span {
  color: #4a5b6c;
  font-size: 14px;
}

.section-heading h2,
.approach-copy h2,
.faq-heading h2 {
  text-wrap: balance;
}

.v2-cta-band {
  padding: 56px 0;
  background:
    radial-gradient(ellipse at 90% 0%, rgba(49, 213, 208, .22), transparent 55%),
    var(--v2-dark);
  color: #fff;
}

.v2-cta-band-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.v2-cta-band h2 {
  margin: 0 0 8px;
  color: #fff;
  font-size: clamp(26px, 3.2vw, 36px);
  letter-spacing: -.04em;
  line-height: 1.15;
}

.v2-cta-band p {
  max-width: 560px;
  margin: 0;
  color: #b8c7d4;
}

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

.v2-lead-form .v2-form-row > div {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.v2-lead-form select {
  width: 100%;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid rgba(231, 236, 244, .28);
  border-radius: 8px;
  background: rgba(255, 255, 255, .08);
  color: #fff;
  font: inherit;
  font-size: 14px;
}

.v2-lead-form select option {
  color: var(--v2-ink);
}

.v2-lead-form input:focus,
.v2-lead-form textarea:focus,
.v2-lead-form select:focus {
  border-color: var(--v2-teal);
  outline: 2px solid var(--v2-teal);
  outline-offset: 2px;
}

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

.v2-demo-button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  gap: 8px;
  padding: 0 19px;
  border: 1px solid var(--v2-teal-dark);
  border-radius: 999px;
  color: var(--v2-teal-dark);
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
}

.v2-demo-button:hover {
  background: #e8f8f7;
}

.product-hero-copy .hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.v2-post-callout {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 14px;
  max-width: 760px;
  margin: 0 auto 32px;
  padding: 18px 20px;
  border: 1px solid rgba(49, 213, 208, .45);
  border-radius: 14px;
  background: #effbfa;
  font-size: 15px;
}

.v2-post-callout strong {
  color: var(--v2-ink);
}

.v2-post-callout span {
  flex: 1 1 260px;
  color: #4a5b6c;
}

.v2-post-callout a {
  color: var(--v2-teal-dark);
  font-weight: 700;
  text-decoration: none;
}

.v2-post-callout-end {
  margin: 40px auto 0;
}

.contact .v2-cta-row {
  position: relative;
  z-index: 1;
}

@media (max-width: 900px) {
  .v2-trust-grid {
    grid-template-columns: 1fr 1fr;
  }

  .v2-trust-grid > div:nth-child(3) {
    border-left: 0;
    padding-left: 0;
  }

  .v2-trust-grid > div:nth-child(n+3) {
    border-top: 1px solid var(--v2-line);
  }

  .v2-cta-band-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 680px) {
  .v2-trust-grid > div {
    padding: 18px 12px;
  }

  .v2-trust-grid strong {
    font-size: 21px;
  }

  .v2-lead-form .v2-form-row {
    grid-template-columns: 1fr;
  }
}
