/*
Theme Name:   Comertax Child
Template:     zaaztheme
Description:  Child theme of zaaztheme for comertax.com.mx.
Author:       Zaaz
Version:      0.2.0
Text Domain:  comertax-child
*/

/* ------------------------------------------------------------------
   Typography: Fraunces (serif, headings) + Inter (body). Extended to
   theme chrome so header/nav/footer read as one system.
   ------------------------------------------------------------------ */

body,
.zt-main,
.zt-footer,
.zt-top-bar {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  letter-spacing: -0.005em;
  color: #374151;
  background: #FAFAF5;
}

.zt-site-title,
.zt-site-title a,
.zt-header-brand {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.zt-nav__link,
.zt-nav__submenu .zt-nav__link,
.zt-top-bar-menu .menu-item a,
.zt-footer__menu .menu-item a {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-weight: 500;
  letter-spacing: 0.01em;
  font-size: 0.95rem;
  color: #374151;
}

.zt-nav__link:hover,
.zt-footer__menu .menu-item a:hover {
  color: #7F1D3A;
}

h1, h2, h3, h4, h5, h6,
.zt-heading {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 500;
  letter-spacing: -0.015em;
  color: #1F2937;
}

.zt-footer,
.zt-footer p,
.zt-footer__copyright {
  font-family: 'Inter', system-ui, sans-serif;
  letter-spacing: 0.005em;
}

/* ------------------------------------------------------------------
   Hero treatment for Comertax. Elegant gradient + subtle paper texture.
   Keeps the burgundy heritage without feeling dated.
   ------------------------------------------------------------------ */

.ct-hero-bg {
  position: relative;
  margin: -96px calc(50% - 50vw) 0;
  padding: 120px calc(50vw - 50%) 100px;
  color: #FAFAF5;
  overflow: hidden;
  background:
    linear-gradient(125deg, rgba(31,41,55,0.92) 0%, rgba(59,34,48,0.82) 55%, rgba(127,29,58,0.7) 100%),
    url("/wp-content/uploads/2026/04/hero-comertax.jpg") center 35% / cover no-repeat,
    #1F2937;
}

/* Ambient color accents layered on top of the photo/gradient */
.ct-hero-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 70% at 92% 50%, rgba(201,168,106,0.16) 0%, transparent 60%),
    radial-gradient(ellipse 45% 55% at 8% 85%, rgba(127,29,58,0.22) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

.ct-hero-bg > * {
  position: relative;
  z-index: 1;
}

/* Inner hero page (non-home) — more restrained */
.ct-subhero {
  position: relative;
  margin: -96px calc(50% - 50vw) 0;
  padding: 80px calc(50vw - 50%) 60px;
  color: #FAFAF5;
  background:
    linear-gradient(135deg, #1F2937 0%, #3B2230 70%, #5E1A32 100%);
}

/* Service / content cards — shared pattern for service pages */
.ct-card {
  display: block;
  background: #ffffff;
  border: 1px solid rgba(31, 41, 55, 0.06);
  border-radius: 14px;
  padding: 32px;
  box-shadow: 0 2px 8px rgba(31, 41, 55, 0.04);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.ct-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(31, 41, 55, 0.08);
}

.ct-service-card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, #7F1D3A 0%, #9B2448 100%);
  color: #FAFAF5;
  margin-bottom: 18px;
}

/* Divider */
.ct-divider {
  width: 52px;
  height: 3px;
  background: #C9A86A;
  border-radius: 2px;
  margin: 0 0 18px;
}

.ct-divider--center {
  margin-left: auto;
  margin-right: auto;
}

/* Buttons */
.ct-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  border-radius: 999px;
  text-decoration: none !important;
  transition: all 180ms ease;
}

.ct-btn--primary {
  background: #7F1D3A;
  color: #FAFAF5 !important;
  box-shadow: 0 2px 8px rgba(127, 29, 58, 0.25);
}
.ct-btn--primary:hover {
  background: #5E1A32;
  box-shadow: 0 6px 16px rgba(127, 29, 58, 0.35);
  transform: translateY(-1px);
}

.ct-btn--ghost {
  background: transparent;
  color: #FAFAF5 !important;
  border: 1.5px solid rgba(250, 250, 245, 0.4);
}
.ct-btn--ghost:hover {
  background: rgba(250, 250, 245, 0.1);
  border-color: rgba(250, 250, 245, 0.7);
}

.ct-btn--outline {
  background: transparent;
  color: #7F1D3A !important;
  border: 1.5px solid #7F1D3A;
}
.ct-btn--outline:hover {
  background: #7F1D3A;
  color: #FAFAF5 !important;
}

/* Service list items (checklist style) */
.ct-check-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.ct-check-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(31, 41, 55, 0.06);
  font-size: 0.97rem;
  line-height: 1.5;
  color: #374151;
}
.ct-check-item:last-child {
  border-bottom: none;
}
.ct-check-dot {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  border-radius: 50%;
  background: #C9A86A;
  color: #FAFAF5;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
}

/* Eyebrow labels */
.ct-eyebrow {
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #C9A86A;
  margin-bottom: 12px;
}

/* ------------------------------------------------------------------
   Utility layout classes. Inline `display:` is stripped by wp_kses_post,
   so these must live in CSS to stick on frontend for non-admin visitors.
   ------------------------------------------------------------------ */

.ct-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.ct-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.ct-hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 64px; align-items: center; }
.ct-hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.ct-hero-trust { display: flex; gap: 36px; flex-wrap: wrap; margin-top: 44px; }

.ct-check-list { display: block; }
.ct-check-item { display: flex; }
.ct-check-dot { display: inline-flex; align-items: center; justify-content: center; }

.ct-eyebrow { display: inline-block; }

.ct-service-card-icon { display: inline-flex; align-items: center; justify-content: center; }

.ct-btn { display: inline-flex; align-items: center; gap: 8px; }

/* Row utilities used for contacto cards etc */
.ct-row-icon { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 18px; }
.ct-icon-badge {
  flex-shrink: 0; width: 40px; height: 40px; border-radius: 10px;
  background: rgba(127, 29, 58, 0.08); color: #7F1D3A;
  display: inline-flex; align-items: center; justify-content: center;
}

/* Hero quote card — the 4:5 burgundy card that lives in the right
   column of the home hero. Provides the tinted backdrop that can't
   live inline (wp_kses_post strips multi-value `background:`). */
.ct-hero-card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  aspect-ratio: 4 / 5;
  background:
    linear-gradient(180deg, transparent 0%, rgba(31, 41, 55, 0.35) 100%),
    linear-gradient(135deg, #3B2230 0%, #7F1D3A 100%);
}

.ct-hero-quote {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 40px;
  color: #FAFAF5;
}

/* "Conocer más" link inside service cards */
.ct-card-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'Inter', sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  color: #7F1D3A;
}

/* CTA button group — center-aligned buttons */
.ct-btn-group-center {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Responsive */
@media (max-width: 820px) {
  .ct-hero-bg { padding: 80px calc(50vw - 50%) 60px; }
  .ct-grid-2, .ct-grid-3, .ct-hero-grid { grid-template-columns: 1fr !important; }
  .ct-hero-grid { text-align: center; }
  .ct-hero-grid h1, .ct-hero-grid p { margin-left: auto; margin-right: auto; }
  .ct-hero-ctas, .ct-hero-trust { justify-content: center; }
}
