/*
Theme Name:   ZaazCRM Child
Theme URI:    https://zaazcrm.com
Template:     zaaztheme
Description:  Child theme of ZaazTheme for the ZaazCRM marketing site (zaazcrm.com). Spanish primary, English secondary via Polylang.
Author:       ZaazTech
Author URI:   https://zaaz.app
Version:      0.1.0
Requires at least: 6.4
Requires PHP: 8.1
License:      GNU General Public License v2 or later
License URI:  https://www.gnu.org/licenses/gpl-2.0.html
Text Domain:  zaazcrm-child
*/

/* Brand token overrides — refine to match the final ZaazCRM palette later. */
:root {
  --zb-primary:    #1f4b99;
  --zb-secondary:  #14b8a6;
  --zb-accent:     #f59e0b;
  --zb-heading:    #0f172a;
  --zb-text:       #334155;
  --zb-text-light: #64748b;
  --zb-bg-alt:     #f8fafc;
  --zb-border:     #e2e8f0;

  --zc-radius:     12px;
  --zc-radius-sm:  8px;
  --zc-shadow-card: 0 6px 24px rgba(15, 23, 42, 0.06);
}

/* Landing-only base */
.zc-landing { color: var(--zb-text); }
.zc-landing section { padding: var(--zb-space-2xl) 0; }
.zc-landing .zt-container { max-width: var(--zb-container-width); margin: 0 auto; padding-inline: 24px; }

/* Section: hero */
.zc-hero {
  position: relative;
  background: linear-gradient(135deg, #0b1220 0%, #14225a 55%, #1f4b99 100%);
  color: #f8fafc;
  padding-block: 6rem;
  overflow: hidden;
}
/* Animated mesh — slow radial gradients drifting in the background */
.zc-hero__bg {
  position: absolute; inset: -10%;
  background:
    radial-gradient(40% 35% at 18% 22%, rgba(20, 184, 166, 0.30), transparent 60%),
    radial-gradient(45% 40% at 82% 78%, rgba(59, 130, 246, 0.30), transparent 60%),
    radial-gradient(35% 30% at 50% 50%, rgba(245, 158, 11, 0.18), transparent 60%);
  filter: blur(8px);
  animation: zc-mesh-drift 22s ease-in-out infinite alternate;
  pointer-events: none;
}
@keyframes zc-mesh-drift {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  50%  { transform: translate3d(-3%, 2%, 0) scale(1.05); }
  100% { transform: translate3d(2%, -3%, 0) scale(1.03); }
}
.zc-hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 56px;
  align-items: center;
}
@media (max-width: 920px) {
  .zc-hero { padding-block: 4.5rem; }
  .zc-hero__grid { grid-template-columns: 1fr; gap: 36px; text-align: center; }
  .zc-hero__copy .zc-hero__actions { justify-content: center; }
}
.zc-hero__eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
  font-weight: 600;
  color: #93c5fd;
  margin-bottom: 1rem;
}
.zc-hero__title {
  font-family: var(--zb-font-heading);
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  line-height: 1.1;
  font-weight: 800;
  margin: 0 0 1rem;
  max-width: 22ch;
  color: #f8fafc;
}
.zc-hero__lede {
  font-size: 1.1rem;
  line-height: 1.6;
  max-width: 56ch;
  margin: 0 0 2rem;
  color: #cbd5e1;
}
.zc-hero__actions { display: inline-flex; gap: 12px; flex-wrap: wrap; }
.zc-hero__visual {
  position: relative;
  perspective: 1200px;
}
.zc-hero__visual img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 18px;
  box-shadow:
    0 40px 80px -20px rgba(11, 18, 32, 0.60),
    0 0 0 1px rgba(255, 255, 255, 0.06) inset;
  transform: rotate(-1.2deg);
  animation: zc-hero-float 9s ease-in-out infinite alternate;
}
@keyframes zc-hero-float {
  0%   { transform: rotate(-1.2deg) translateY(0); }
  100% { transform: rotate(-0.4deg) translateY(-10px); }
}
@media (prefers-reduced-motion: reduce) {
  .zc-hero__bg, .zc-hero__visual img { animation: none; }
}

/* Buttons */
.zc-btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: var(--zc-radius-sm);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1;
  transition: transform var(--zb-transition-fast), background var(--zb-transition-fast), color var(--zb-transition-fast);
  border: 1px solid transparent;
  cursor: pointer;
}
.zc-btn--primary { background: var(--zb-secondary); color: #fff; }
.zc-btn--primary:hover { background: #0f8e83; color: #fff; transform: translateY(-1px); }
.zc-btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,0.4); }
.zc-btn--ghost:hover { background: rgba(255,255,255,0.08); color: #fff; }
.zc-btn--outline { background: transparent; color: var(--zb-primary); border-color: var(--zb-primary); }
.zc-btn--outline:hover { background: var(--zb-primary); color: #fff; }

/* Section title */
.zc-section__head { text-align: center; max-width: 60ch; margin: 0 auto 3rem; }
.zc-section__eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--zb-secondary);
  margin-bottom: 0.75rem;
}
.zc-section__title {
  font-family: var(--zb-font-heading);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  line-height: 1.2;
  font-weight: 700;
  color: var(--zb-heading);
  margin: 0 0 0.75rem;
}
.zc-section__lede { font-size: 1.05rem; color: var(--zb-text-light); margin: 0; }

/* Features grid */
.zc-features { background: var(--zb-bg); }
.zc-features__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.zc-feature {
  background: #fff;
  border: 1px solid var(--zb-border);
  border-radius: var(--zc-radius);
  padding: 28px;
  transition: transform var(--zb-transition-fast), box-shadow var(--zb-transition-fast), border-color var(--zb-transition-fast);
}
.zc-feature:hover { transform: translateY(-2px); box-shadow: var(--zc-shadow-card); border-color: #cbd5e1; }
.zc-feature__icon {
  width: 44px; height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 10px;
  background: rgba(20, 184, 166, 0.12);
  color: var(--zb-secondary);
  font-size: 22px;
  margin-bottom: 16px;
}
.zc-feature__title { font-size: 1.15rem; font-weight: 700; color: var(--zb-heading); margin: 0 0 8px; }
.zc-feature__text { font-size: 0.97rem; color: var(--zb-text-light); margin: 0; line-height: 1.6; }

/* Modules / verticals */
.zc-modules { background: var(--zb-bg-alt); }
.zc-modules__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.zc-module {
  background: #fff;
  border-radius: var(--zc-radius);
  padding: 32px;
  border-top: 4px solid var(--zb-primary);
  box-shadow: var(--zc-shadow-card);
}
.zc-module--alt { border-top-color: var(--zb-secondary); }
.zc-module--accent { border-top-color: var(--zb-accent); }
.zc-modules__cta { text-align: center; margin: 36px 0 0; font-weight: 600; }
.zc-modules__cta a { color: var(--zb-primary); text-decoration: none; border-bottom: 2px solid transparent; padding-bottom: 2px; transition: border-color var(--zb-transition-fast); }
.zc-modules__cta a:hover { border-bottom-color: var(--zb-primary); }
.zc-module__title { font-size: 1.25rem; font-weight: 700; color: var(--zb-heading); margin: 0 0 6px; }
.zc-module__tag {
  display: inline-block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
  color: var(--zb-text-light);
  margin-bottom: 16px;
}
.zc-module__list { list-style: none; padding: 0; margin: 0; }
.zc-module__list li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 8px;
  font-size: 0.97rem;
  color: var(--zb-text);
}
.zc-module__list li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.5em;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: rgba(20, 184, 166, 0.18);
  box-shadow: inset 0 0 0 4px var(--zb-secondary);
}

/* Workflow */
.zc-workflow { background: var(--zb-bg); position: relative; }
.zc-workflow__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 28px;
}
.zc-step {
  padding: 32px 28px;
  background: #fff;
  border: 1px solid var(--zb-border);
  border-radius: var(--zc-radius);
  position: relative;
  transition: transform var(--zb-transition-fast), box-shadow var(--zb-transition-fast), border-color var(--zb-transition-fast);
}
.zc-step:hover { transform: translateY(-3px); box-shadow: var(--zc-shadow-card); border-color: var(--zb-primary); }
.zc-step__num {
  display: inline-flex;
  width: 56px; height: 56px;
  align-items: center; justify-content: center;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--zb-primary) 0%, var(--zb-secondary) 100%);
  color: #fff;
  font-weight: 800;
  font-size: 1.4rem;
  margin-bottom: 18px;
  box-shadow: 0 10px 24px -8px rgba(31, 75, 153, 0.45);
}
.zc-step__title { font-size: 1.1rem; font-weight: 700; color: var(--zb-heading); margin: 0 0 6px; }
.zc-step__text { font-size: 0.97rem; color: var(--zb-text-light); margin: 0; line-height: 1.6; }

/* Final CTA */
.zc-cta {
  background: linear-gradient(135deg, #1f4b99 0%, #14b8a6 100%);
  color: #fff;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.zc-cta::before, .zc-cta::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(2px);
  opacity: 0.55;
}
.zc-cta::before {
  top: -90px; left: -80px;
  width: 320px; height: 320px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.55), transparent 65%);
  animation: zc-cta-float-a 14s ease-in-out infinite alternate;
}
.zc-cta::after {
  bottom: -110px; right: -100px;
  width: 360px; height: 360px;
  background: radial-gradient(circle, rgba(147, 197, 253, 0.55), transparent 65%);
  animation: zc-cta-float-b 18s ease-in-out infinite alternate;
}
@keyframes zc-cta-float-a {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(40px, 30px) scale(1.1); }
}
@keyframes zc-cta-float-b {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-50px, -25px) scale(1.08); }
}
.zc-cta .zt-container { position: relative; z-index: 1; }
@media (prefers-reduced-motion: reduce) {
  .zc-cta::before, .zc-cta::after { animation: none; }
}
.zc-cta__title {
  font-family: var(--zb-font-heading);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  margin: 0 0 12px;
}
.zc-cta__lede { font-size: 1.05rem; max-width: 56ch; margin: 0 auto 1.75rem; opacity: 0.92; }

/* Contact */
.zc-contact { background: var(--zb-bg); }
.zc-contact__cta { display: flex; justify-content: center; margin: 8px 0 28px; }
.zc-contact__info { display: flex; flex-wrap: wrap; gap: 24px 48px; justify-content: center; text-align: center; }
.zc-contact__info p { color: var(--zb-text-light); line-height: 1.7; margin: 0; }
.zc-contact__info a { color: var(--zb-primary); }

/* WhatsApp tint for any CTA wired to wa.me */
.zc-btn--wa { background: #25d366; border-color: #25d366; color: #fff; }
.zc-btn--wa:hover { background: #1da851; border-color: #1da851; color: #fff; }
.zc-btn--wa.zc-btn--outline,
.zc-btn--wa.zc-btn--ghost { background: transparent; color: #25d366; border-color: #25d366; }
.zc-btn--wa.zc-btn--outline:hover,
.zc-btn--wa.zc-btn--ghost:hover { background: #25d366; color: #fff; }

/* Polylang switcher */
.lang_sel_list_horizontal, .lang_sel_sel { font-size: 0.92rem; }

/* Catalog page (/modulos) */
.zc-catalog__hero { padding: 64px 0 32px; text-align: center; background: var(--zb-bg); }
.zc-catalog__group { padding: 56px 0; }
.zc-catalog__group:nth-child(odd) { background: var(--zb-bg-alt); }
.zc-catalog__group-head { margin-bottom: 28px; }
.zc-catalog__group-title { font-size: 1.75rem; color: var(--zb-heading); margin: 0 0 6px; }
.zc-catalog__group-lede  { color: var(--zb-text-light); margin: 0; max-width: 60ch; }
.zc-catalog__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}
.zc-mod-card {
  background: #fff;
  border: 1px solid var(--zb-border);
  border-radius: var(--zc-radius-sm);
  padding: 22px;
  display: flex; flex-direction: column; gap: 8px;
  transition: transform var(--zb-transition-fast), box-shadow var(--zb-transition-fast), border-color var(--zb-transition-fast);
}
.zc-mod-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--zc-shadow-card);
  border-color: var(--zb-primary);
}
.zc-mod-card__icon {
  width: 40px; height: 40px;
  border-radius: var(--zc-radius-sm);
  background: rgba(31, 75, 153, 0.08);
  color: var(--zb-primary);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
}
.zc-mod-card__title { font-size: 1.05rem; font-weight: 700; color: var(--zb-heading); margin: 0; }
.zc-mod-card__desc  { color: var(--zb-text-light); font-size: 0.94rem; line-height: 1.55; margin: 0; }
.zc-catalog__back { margin-top: 18px; font-size: 0.92rem; opacity: 0.85; }
.zc-catalog__back a { color: inherit; text-decoration: underline; }

/* Scroll-triggered reveal — modern browsers only, no-JS, no-op fallback */
@supports (animation-timeline: view()) {
  .zc-feature, .zc-module, .zc-step, .zc-mod-card {
    animation: zc-reveal linear both;
    animation-timeline: view();
    animation-range: entry 5% cover 25%;
  }
  @keyframes zc-reveal {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
  }
  @media (prefers-reduced-motion: reduce) {
    .zc-feature, .zc-module, .zc-step, .zc-mod-card { animation: none; }
  }
}
