/*
Theme Name:   Redevos Child
Template:     zaaztheme
Description:  Child theme of zaaztheme for redevos.ca — engineering & consulting, Vancouver BC.
Author:       Zaaz
Version:      0.1.0
Text Domain:  redevos-child
*/

/* ------------------------------------------------------------------
   Typography: Space Grotesk (modern, technical) for headings +
   Inter for body.
   ------------------------------------------------------------------ */

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

h1, h2, h3, h4, h5, h6,
.zt-site-title, .zt-menu a {
  font-family: 'Space Grotesk', 'Inter', system-ui, sans-serif;
  letter-spacing: -0.02em;
  font-weight: 600;
}

/* ------------------------------------------------------------------
   Palette: deep navy + electric cyan + steel grey.
   Industrial engineering meets software consulting.
   ------------------------------------------------------------------ */

:root {
  --rd-ink:     #0B1220;
  --rd-navy:    #0F2440;
  --rd-cyan:    #00B4D8;
  --rd-cyan-dk: #0077B6;
  --rd-steel:   #64748B;
  --rd-mist:    #F1F5F9;
  --rd-line:    #E2E8F0;
}

/* ------------------------------------------------------------------
   Theme chrome overrides
   ------------------------------------------------------------------ */

.zt-top-bar {
  background: var(--rd-ink);
  color: var(--rd-mist);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.zt-top-bar a { color: var(--rd-mist); }
.zt-top-bar a:hover { color: var(--rd-cyan); }

.zt-header {
  background: #FFFFFF;
  border-bottom: 1px solid var(--rd-line);
}
.zt-site-title a { color: var(--rd-ink); }
.zt-menu a {
  color: var(--rd-ink);
  font-weight: 500;
  letter-spacing: 0.01em;
}
.zt-menu a:hover, .zt-menu .current-menu-item > a { color: var(--rd-cyan-dk); }

.zt-footer {
  background: var(--rd-ink);
  color: #94A3B8;
}
.zt-footer a { color: #CBD5E1; }
.zt-footer a:hover { color: var(--rd-cyan); }

/* ------------------------------------------------------------------
   Page-specific utility classes for the zaazbuilder layout.
   Inline styles are subject to wp_kses_post filtering; anything
   fragile goes here and is referenced by class.
   ------------------------------------------------------------------ */

.rd-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 20% 30%, rgba(0,180,216,0.18), transparent 55%),
    radial-gradient(ellipse at 85% 80%, rgba(0,119,182,0.22), transparent 60%),
    linear-gradient(180deg, #0B1220 0%, #0F2440 100%);
  color: #F8FAFC;
  padding: 96px 24px 104px;
  text-align: center;
}
.rd-hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  mask-image: radial-gradient(ellipse at center, black 40%, transparent 75%);
}
.rd-hero-inner {
  position: relative;
  max-width: 960px;
  margin: 0 auto;
}
.rd-hero-eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--rd-cyan);
  border: 1px solid rgba(0,180,216,0.35);
  border-radius: 999px;
  padding: 6px 14px;
  margin-bottom: 24px;
}
.rd-hero h1 {
  font-size: clamp(2.2rem, 4.8vw, 3.6rem);
  line-height: 1.05;
  margin: 0 0 18px;
  color: #FFFFFF;
}
.rd-hero p.lead {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  line-height: 1.55;
  color: #CBD5E1;
  max-width: 720px;
  margin: 0 auto 32px;
}

.rd-cta-row {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}
.rd-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  transition: transform 120ms ease, background 120ms ease;
}
.rd-btn-primary {
  background: var(--rd-cyan);
  color: var(--rd-ink);
}
.rd-btn-primary:hover {
  background: #33C6E3;
  transform: translateY(-1px);
}
.rd-btn-ghost {
  background: transparent;
  color: #F8FAFC;
  border: 1px solid rgba(255,255,255,0.25);
}
.rd-btn-ghost:hover {
  border-color: var(--rd-cyan);
  color: var(--rd-cyan);
}

/* Section shells */
.rd-section { padding: 80px 24px; }
.rd-section-alt { background: var(--rd-mist); }
.rd-container { max-width: 1140px; margin: 0 auto; }

.rd-section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 48px;
}
.rd-eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--rd-cyan-dk);
  margin-bottom: 10px;
  font-weight: 600;
}
.rd-section-header h2 {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  margin: 0 0 14px;
  color: var(--rd-ink);
}
.rd-section-header p {
  color: var(--rd-steel);
  font-size: 1.05rem;
  line-height: 1.6;
  margin: 0;
}

/* Service cards grid */
.rd-services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 20px;
}
.rd-service-card {
  background: #FFFFFF;
  border: 1px solid var(--rd-line);
  border-radius: 14px;
  padding: 28px 26px;
  transition: border-color 150ms ease, transform 150ms ease, box-shadow 150ms ease;
}
.rd-service-card:hover {
  border-color: var(--rd-cyan);
  transform: translateY(-3px);
  box-shadow: 0 16px 40px -20px rgba(15,36,64,0.25);
}
.rd-service-icon {
  width: 48px; height: 48px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #00B4D8 0%, #0077B6 100%);
  color: #FFFFFF;
  margin-bottom: 18px;
  position: relative;
}
/* Icons delivered as CSS mask-images: inline SVG inside html-widgets is
   stripped by wp_kses_post for non-admin users, so the shapes live here
   instead and the build-home.py only emits a modifier class per card. */
.rd-service-icon::before {
  content: "";
  position: absolute;
  inset: 0;
  background: #FFFFFF;
  -webkit-mask-repeat: no-repeat;
          mask-repeat: no-repeat;
  -webkit-mask-position: center;
          mask-position: center;
  -webkit-mask-size: 24px 24px;
          mask-size: 24px 24px;
}
.rd-svc-building::before  { -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><rect x='4' y='3' width='16' height='18' rx='1'/><path d='M8 7h2M8 11h2M8 15h2M14 7h2M14 11h2M14 15h2'/></svg>");            mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><rect x='4' y='3' width='16' height='18' rx='1'/><path d='M8 7h2M8 11h2M8 15h2M14 7h2M14 11h2M14 15h2'/></svg>"); }
.rd-svc-mountain::before  { -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><path d='m3 20 5-8 4 6 3-4 6 6H3Z'/><circle cx='17' cy='7' r='2'/></svg>");           mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><path d='m3 20 5-8 4 6 3-4 6 6H3Z'/><circle cx='17' cy='7' r='2'/></svg>"); }
.rd-svc-link::before      { -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><path d='M10 13a5 5 0 0 0 7.07 0l2.83-2.83a5 5 0 1 0-7.07-7.07L11.17 4.83'/><path d='M14 11a5 5 0 0 0-7.07 0L4.1 13.83a5 5 0 1 0 7.07 7.07L12.83 19'/></svg>");             mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><path d='M10 13a5 5 0 0 0 7.07 0l2.83-2.83a5 5 0 1 0-7.07-7.07L11.17 4.83'/><path d='M14 11a5 5 0 0 0-7.07 0L4.1 13.83a5 5 0 1 0 7.07 7.07L12.83 19'/></svg>"); }
.rd-svc-briefcase::before { -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><rect x='3' y='7' width='18' height='14' rx='2'/><path d='M8 7V5a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2'/><path d='M3 13h18'/></svg>");             mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><rect x='3' y='7' width='18' height='14' rx='2'/><path d='M8 7V5a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2'/><path d='M3 13h18'/></svg>"); }
.rd-svc-bolt::before      { -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23fff'><polygon points='13 2 3 14 12 14 11 22 21 10 12 10 13 2'/></svg>");             mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23fff'><polygon points='13 2 3 14 12 14 11 22 21 10 12 10 13 2'/></svg>"); }
.rd-svc-shield::before    { -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><path d='M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z'/><path d='m9 12 2 2 4-4'/></svg>");           mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><path d='M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z'/><path d='m9 12 2 2 4-4'/></svg>"); }
.rd-svc-flask::before     { -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><path d='M10 2v6L4 20a2 2 0 0 0 2 3h12a2 2 0 0 0 2-3l-6-12V2'/><path d='M8 2h8M7 15h10'/></svg>");            mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><path d='M10 2v6L4 20a2 2 0 0 0 2 3h12a2 2 0 0 0 2-3l-6-12V2'/><path d='M8 2h8M7 15h10'/></svg>"); }
.rd-svc-cpu::before       { -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><rect x='5' y='5' width='14' height='14' rx='2'/><rect x='9' y='9' width='6' height='6'/><path d='M9 2v3M15 2v3M9 19v3M15 19v3M2 9h3M2 15h3M19 9h3M19 15h3'/></svg>");              mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><rect x='5' y='5' width='14' height='14' rx='2'/><rect x='9' y='9' width='6' height='6'/><path d='M9 2v3M15 2v3M9 19v3M15 19v3M2 9h3M2 15h3M19 9h3M19 15h3'/></svg>"); }
.rd-service-card h3 {
  font-size: 1.15rem;
  margin: 0 0 10px;
  color: var(--rd-ink);
}
.rd-service-card p {
  margin: 0;
  color: var(--rd-steel);
  font-size: 0.96rem;
  line-height: 1.55;
}

/* Why-us feature strip */
.rd-why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 28px;
}
.rd-why-num {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--rd-cyan-dk);
  letter-spacing: 0.02em;
  margin-bottom: 8px;
}
.rd-why-item h4 {
  font-size: 1.05rem;
  margin: 0 0 8px;
  color: var(--rd-ink);
}
.rd-why-item p {
  margin: 0;
  color: var(--rd-steel);
  font-size: 0.95rem;
  line-height: 1.55;
}

/* Split callout */
.rd-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}
@media (max-width: 800px) {
  .rd-split { grid-template-columns: 1fr; }
}
.rd-split-copy h2 {
  font-size: clamp(1.6rem, 2.8vw, 2.1rem);
  margin: 0 0 16px;
  color: var(--rd-ink);
}
.rd-split-copy p {
  color: var(--rd-steel);
  font-size: 1.02rem;
  line-height: 1.65;
  margin: 0 0 14px;
}
.rd-stat-block {
  background: linear-gradient(135deg, #0F2440 0%, #0B1220 100%);
  color: #F8FAFC;
  border-radius: 16px;
  padding: 40px 36px;
}
.rd-stat-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px 36px;
}
.rd-stat-num {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--rd-cyan);
  line-height: 1;
  margin-bottom: 6px;
}
.rd-stat-label {
  font-size: 0.9rem;
  color: #CBD5E1;
  line-height: 1.4;
}

/* Contact section */
.rd-contact {
  background: linear-gradient(135deg, #0F2440 0%, #0B1220 100%);
  color: #F8FAFC;
  padding: 80px 24px;
}
.rd-contact .rd-section-header h2,
.rd-contact .rd-section-header p { color: #F8FAFC; }
.rd-contact .rd-eyebrow { color: var(--rd-cyan); }
.rd-contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  max-width: 900px;
  margin: 0 auto 32px;
}
.rd-contact-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 12px;
  padding: 22px 22px;
  text-align: center;
}
.rd-contact-card .rd-ci-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--rd-cyan);
  margin-bottom: 10px;
}
.rd-contact-card .rd-ci-value {
  font-size: 1.02rem;
  color: #F8FAFC;
  font-weight: 500;
  line-height: 1.45;
  text-decoration: none;
  word-break: break-word;
  display: inline-block;
}
.rd-contact-card .rd-ci-value:hover { color: var(--rd-cyan); }
.rd-contact-cta {
  text-align: center;
  margin-top: 10px;
}
