/* Apex Analytics Block Theme — Supplemental CSS
   Only styles that theme.json cannot express go here.
   Colors, fonts, spacing — edit those in theme.json or the Site Editor.
*/

/* ── Sticky header ───────────────────────────────────── */
.sticky-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid #E8EDF0;
  padding: 0 3rem;
  height: 72px;
  display: flex;
  align-items: center;
}

.site-header {
  width: 100%;
}

/* ── Site branding ───────────────────────────────────── */
.site-branding a {
  text-decoration: none !important;
  display: flex;
  align-items: center;
  gap: 14px;
}

.wp-block-site-logo img {
  height: 44px !important;
  width: auto !important;
}

.wp-block-site-title a {
  text-decoration: none !important;
}

/* ── Primary nav ─────────────────────────────────────── */
.primary-nav .wp-block-navigation__container {
  gap: 2.25rem;
}

.primary-nav a {
  color: #8A9AA4 !important;
  text-decoration: none !important;
  transition: color 0.2s;
}

.primary-nav a:hover {
  color: #2D6B7A !important;
}

/* Contact Us nav button */
.primary-nav .nav-cta > a,
.primary-nav li:last-child > a {
  background: #2D6B7A !important;
  color: #fff !important;
  padding: 10px 22px !important;
  border-radius: 4px !important;
  font-size: 0.85rem !important;
  transition: background 0.2s !important;
}

.primary-nav .nav-cta > a:hover,
.primary-nav li:last-child > a:hover {
  background: #1B4D5A !important;
}

/* ── Site footer ─────────────────────────────────────── */
.site-footer,
.wp-block-template-part > .wp-block-group[class*="site-footer"] {
  background: #0F1419;
  color: rgba(255,255,255,0.45);
  padding: 32px 3rem;
}

.site-footer a,
.wp-block-template-part > .wp-block-group[class*="site-footer"] a {
  color: rgba(255,255,255,0.45);
  text-decoration: none;
}

.site-footer a:hover {
  color: #3E8FA1;
}

/* ── Hero section ────────────────────────────────────── */
.hero-section .wp-block-cover__background {
  background: linear-gradient(135deg, #1B4D5A 0%, transparent 50%),
              radial-gradient(ellipse at 80% 50%, rgba(45,107,122,0.3) 0%, transparent 60%),
              #0F1419 !important;
}

/* ── Stats band ──────────────────────────────────────── */
.stats-band {
  padding: 36px 3rem !important;
}

.stat-item {
  text-align: center;
  padding: 16px 24px;
  border-right: 1px solid rgba(255,255,255,0.15);
}

.stat-item:last-child {
  border-right: none;
}

/* ── Section eyebrow ─────────────────────────────────── */
.section-eyebrow,
p.section-eyebrow {
  font-size: 0.72rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.14em !important;
  text-transform: uppercase !important;
  color: #2D6B7A !important;
  margin-bottom: 14px !important;
  display: block;
}

/* ── Service cards ───────────────────────────────────── */
.service-card {
  transition: border-color 0.2s, box-shadow 0.2s;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: #2D6B7A;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s;
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-card:hover {
  border-color: #3E8FA1 !important;
  box-shadow: 0 8px 32px rgba(45,107,122,0.1);
}

/* ── Case study cards ────────────────────────────────── */
.case-card {
  transition: box-shadow 0.2s;
}

.case-card:hover {
  box-shadow: 0 12px 40px rgba(0,0,0,0.08);
}

.case-tag,
p.case-tag {
  font-size: 0.72rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.1em !important;
  text-transform: uppercase !important;
  color: #2D6B7A !important;
  margin-bottom: 12px !important;
}

/* ── Tech tags ───────────────────────────────────────── */
.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.tech-tag,
p.tech-tag {
  background: #F5F7F8 !important;
  border: 1px solid #E8EDF0 !important;
  padding: 5px 12px !important;
  border-radius: 20px !important;
  font-size: 0.78rem !important;
  color: #1B4D5A !important;
  font-weight: 500 !important;
  margin: 0 !important;
}

/* ── Capabilities list ───────────────────────────────── */
.cap-features.wp-block-list {
  list-style: none !important;
  padding-left: 0 !important;
}

.cap-features.wp-block-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 0;
  border-bottom: 1px solid #E8EDF0;
  font-size: 0.9rem;
  line-height: 1.6;
}

.cap-features.wp-block-list li:last-child {
  border-bottom: none;
}

.cap-features.wp-block-list li::before {
  content: '✓';
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  background: #2D6B7A;
  border-radius: 50%;
  color: white;
  font-size: 0.65rem;
  font-weight: 700;
  margin-top: 1px;
  flex-shrink: 0;
}

/* ── About split ─────────────────────────────────────── */
.about-split.wp-block-columns,
.contact-split.wp-block-columns {
  min-height: calc(100vh - 72px);
  align-items: stretch !important;
  margin: 0 !important;
}

.about-split > .wp-block-column,
.contact-split > .wp-block-column {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* ── Team avatar circles ─────────────────────────────── */
.team-avatar-block {
  width: 88px !important;
  height: 88px !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 auto 1rem !important;
}

/* ── Contact info ────────────────────────────────────── */
.contact-icon {
  min-width: 40px;
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ── Buttons ─────────────────────────────────────────── */
.wp-block-button__link {
  transition: background 0.2s, transform 0.15s !important;
}

.wp-block-button__link:hover {
  transform: translateY(-1px);
}

/* ── Contact Form 7 overrides ────────────────────────── */
.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form select,
.wpcf7-form textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid #E8EDF0 !important;
  border-radius: 4px !important;
  font-family: inherit;
  font-size: 0.9rem;
  color: #0F1419;
  background: #fff;
  transition: border-color 0.2s;
  outline: none;
  box-shadow: none !important;
  margin-bottom: 16px;
}

.wpcf7-form input:focus,
.wpcf7-form select:focus,
.wpcf7-form textarea:focus {
  border-color: #2D6B7A !important;
}

.wpcf7-form input[type="submit"] {
  background: #2D6B7A !important;
  color: #fff !important;
  border: none !important;
  padding: 14px 32px !important;
  border-radius: 4px !important;
  font-family: inherit;
  font-size: 0.95rem !important;
  font-weight: 600 !important;
  cursor: pointer;
  transition: background 0.2s;
  width: 100%;
}

.wpcf7-form input[type="submit"]:hover {
  background: #1B4D5A !important;
}

.wpcf7-mail-sent-ok {
  background: #e8f5ee !important;
  border: 1px solid #1A7A45 !important;
  color: #1A7A45 !important;
  border-radius: 4px !important;
  padding: 12px 16px !important;
  margin-top: 16px !important;
}

/* ── Responsive ──────────────────────────────────────── */
@media (max-width: 782px) {
  .sticky-header {
    padding: 0 1.25rem;
    flex-wrap: wrap;
    height: auto;
    min-height: 64px;
  }

  .stats-band {
    padding: 24px 1.5rem !important;
  }

  .stat-item {
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,0.15);
    padding: 12px;
  }

  .about-split.wp-block-columns,
  .contact-split.wp-block-columns {
    min-height: auto;
  }
}
