/* =========================================================
   Prestige Consulting — global.css v4
   Fixes: logo, testimonials, team icons, social sizing
   ========================================================= */

/* ── 1. LOGO — proper responsive sizing ─────────────────── */
:root {
  --logo-height: 100px; /* transparent header */
  --logo-height-scrolled: 100px; /* after scroll */
}

/* The logo image must never distort.
   We constrain max-height and let width be auto. */
.site-logo,
.site-logo a {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}

/* Both custom logo and fallback img */
.site-logo img,
.site-logo .custom-logo-link img,
.custom-logo {
  display: block !important;
  width: auto !important;
  height: auto !important;
  max-height: var(--logo-height) !important;
  max-width: 180px !important;
  object-fit: contain !important;
  transition: max-height 0.35s ease !important;
  flex-shrink: 0;
}

/* Scrolled: shrink logo */
.site-header.is-scrolled .site-logo img,
.site-header.is-scrolled .custom-logo-link img,
.site-header.is-scrolled .custom-logo {
  max-height: var(--logo-height-scrolled) !important;
}

/* Footer: white version */
.footer__logo img,
.footer__logo .custom-logo-link img,
.footer__logo .custom-logo {
  max-height: 52px !important;
  max-width: 160px !important;
  width: auto !important;
  height: auto !important;
  filter: brightness(0) invert(1) !important;
  opacity: 0.88 !important;
}

/* ── 2. TESTIMONIAL CARDS — clean sans-serif readability ── */
.testi-card {
  background: #ffffff;
  border: 1px solid #dde0e8;
  border-radius: 14px;
  padding: 30px;
  box-shadow: 0 2px 16px rgba(30, 58, 138, 0.07);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}
.testi-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(30, 58, 138, 0.13);
}

/* Quote text: DM Sans, NOT serif italic */
.testi-card__quote {
  font-family: "DM Sans", system-ui, sans-serif !important;
  font-size: 1rem !important;
  font-style: normal !important;
  font-weight: 400 !important;
  color: #1a1f2e !important;
  line-height: 1.75 !important;
  flex: 1;
  margin-bottom: 20px;
  position: relative;
  padding-top: 4px;
}
/* Opening quote mark as decoration */
.testi-card__quote::before {
  content: "\201C";
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 3.5rem;
  color: #cc2222;
  line-height: 0;
  vertical-align: -1rem;
  margin-right: 4px;
  opacity: 0.6;
}

.testi-card__stars {
  display: flex;
  gap: 2px;
  margin-bottom: 14px;
  font-size: 1rem;
  color: #f59e0b;
  letter-spacing: 2px;
}
.testi-card__divider {
  height: 1px;
  background: #e8e5df;
  margin-bottom: 16px;
}
.testi-card__person {
  display: flex;
  align-items: center;
  gap: 12px;
}
.testi-card__avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #e2e0da;
  flex-shrink: 0;
}
.testi-card__avatar--init {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(30, 58, 138, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  color: #1e3a8a;
  flex-shrink: 0;
}
.testi-card__name {
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: #0f2260;
  line-height: 1.2;
}
.testi-card__role {
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 0.8rem;
  color: #718096;
  margin-top: 2px;
}

/* ── 3. TEAM CARDS — proper social icons, better hover ──── */

/* The card overlay: gradient only, no red */
.team-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(8, 12, 30, 0.92) 0%,
    rgba(8, 12, 30, 0.4) 40%,
    transparent 70%
  );
  transition: background 0.35s ease;
}
.team-card:hover .team-card__overlay {
  background: linear-gradient(
    to top,
    rgba(8, 12, 30, 0.95) 0%,
    rgba(30, 58, 138, 0.5) 50%,
    transparent 70%
  );
  /* Blue tint on hover — NOT red */
}

/* Team info block */
.team-card__info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px 18px;
  z-index: 2;
}

.team-card__name {
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 3px;
  line-height: 1.2;
}
.team-card__role {
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.65);
  letter-spacing: 0.03em;
  line-height: 1.3;
  margin-bottom: 12px;
}

/* Social links container */
.team-card__socials {
  display: flex;
  gap: 8px;
  opacity: 0;
  transform: translateY(8px);
  transition:
    opacity 0.3s ease,
    transform 0.3s ease;
}
.team-card:hover .team-card__socials {
  opacity: 1;
  transform: translateY(0);
}

/* Individual social link — 40px, white border circle */
.team-card__social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  color: #ffffff;
  text-decoration: none;
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease;
  flex-shrink: 0;
}
.team-card__social:hover {
  background: #1e3a8a; /* Blue — not red, much better on dark photos */
  border-color: #1e3a8a;
  transform: scale(1.1);
}
.team-card__social svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  flex-shrink: 0;
}

/* ── 4. FOOTER SOCIAL — large, clear icons ───────────────── */
.footer__socials {
  display: flex;
  gap: 10px;
  margin-top: 20px;
  flex-wrap: wrap;
}
.footer__social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1.5px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  transition:
    background 0.25s ease,
    border-color 0.25s ease,
    transform 0.2s ease,
    color 0.2s ease;
  flex-shrink: 0;
}
.footer__social:hover {
  background: #cc2222;
  border-color: #cc2222;
  color: #ffffff;
  transform: translateY(-2px);
}
.footer__social svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
  flex-shrink: 0;
  pointer-events: none;
}

/* ── 5. NAVIGATION improvements ─────────────────────────── */
.primary-nav {
  display: flex;
  align-items: center;
  gap: 2px;
}
.primary-nav > li,
.primary-nav > .menu-item {
  position: relative;
  list-style: none;
}
.primary-nav > li > a,
.primary-nav > a {
  display: block;
  padding: 8px 15px;
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: 6px;
  transition:
    color 0.18s,
    background 0.18s;
  white-space: nowrap;
}
.primary-nav .sub-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 220px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 8px 32px rgba(30, 58, 138, 0.14);
  border: 1px solid #e2e0da;
  padding: 6px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all 0.25s ease;
  z-index: 300;
  list-style: none;
}
.primary-nav .menu-item-has-children:hover .sub-menu,
.primary-nav li:hover > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.primary-nav .sub-menu li a {
  display: block;
  padding: 10px 14px;
  font-size: 0.875rem;
  font-family: "DM Sans", system-ui, sans-serif;
  color: #1a1f2e;
  border-radius: 6px;
  transition:
    background 0.15s,
    color 0.15s;
}
.primary-nav .sub-menu li a:hover {
  background: rgba(204, 34, 34, 0.06);
  color: #cc2222;
}

/* ── 6. MATERIAL ICONS — load from CDN ──────────────────── */
/* Loaded via wp_enqueue_style in functions.php */
.service-icon-mi {
  font-family: "Material Icons";
  font-size: 28px;
  color: #1e3a8a;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  background: rgba(30, 58, 138, 0.08);
  border-radius: 10px;
  margin-bottom: 16px;
  transition:
    transform 0.3s ease,
    background 0.3s ease;
}
.service-card:hover .service-icon-mi,
.service-page-card:hover .service-icon-mi {
  background: rgba(30, 58, 138, 0.14);
  transform: scale(1.1) rotate(-4deg);
}
.service-icon-emoji {
  font-size: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  background: rgba(30, 58, 138, 0.08);
  border-radius: 10px;
  margin-bottom: 16px;
  transition:
    transform 0.3s ease,
    background 0.3s ease;
}
.service-card:hover .service-icon-emoji,
.service-page-card:hover .service-icon-emoji {
  background: rgba(30, 58, 138, 0.14);
  transform: scale(1.1) rotate(-4deg);
}

/* ── 7. PAGE HERO — correct padding and spacing ──────────── */
.page-hero {
  background: #0f2260;
  padding-top: clamp(110px, 14vw, 150px);
  padding-bottom: clamp(3rem, 6vw, 5rem);
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(8, 12, 30, 0.97) 0%,
    rgba(30, 58, 138, 0.88) 60%,
    rgba(204, 34, 34, 0.06) 100%
  );
}
.page-hero img.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.14;
}
.page-hero__inner {
  position: relative;
  z-index: 1;
}
.page-hero__breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 18px;
  flex-wrap: wrap;
  font-family: "DM Sans", system-ui, sans-serif;
}
.page-hero__breadcrumb a {
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
  transition: color 0.2s;
}
.page-hero__breadcrumb a:hover {
  color: #fff;
}
.page-hero__title {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 14px;
}
.page-hero__sub {
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.62);
  max-width: 580px;
  line-height: 1.75;
}

/* ── 8. ABOUT PAGE — team grid, values ──────────────────── */
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.value-card {
  background: #f8f7f5;
  border-radius: 14px;
  padding: 28px 24px;
  border: 1px solid #e2e0da;
  transition: all 0.3s ease;
}
.value-card:hover {
  background: #fff;
  box-shadow: 0 10px 36px rgba(30, 58, 138, 0.1);
  transform: translateY(-4px);
}
.value-card__icon {
  width: 50px;
  height: 50px;
  background: rgba(30, 58, 138, 0.08);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 16px;
}
.value-card__title {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: #0f2260;
  margin-bottom: 8px;
}
.value-card__desc {
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 0.875rem;
  color: #4b5568;
  line-height: 1.75;
}

/* Team on about page — 4 cols */
.team-about-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

/* Timeline */
.timeline {
  position: relative;
  padding-left: 32px;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 4px;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, #cc2222, #1e3a8a 80%, transparent);
  border-radius: 99px;
}
.timeline-item {
  position: relative;
  margin-bottom: 32px;
}
.timeline-item::before {
  content: "";
  position: absolute;
  left: -27px;
  top: 5px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #cc2222;
  border: 2.5px solid #fff;
  box-shadow: 0 0 0 2px #cc2222;
}
.timeline-year {
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #cc2222;
  margin-bottom: 3px;
}
.timeline-title {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: #0f2260;
  margin-bottom: 4px;
}
.timeline-desc {
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 0.875rem;
  color: #4b5568;
  line-height: 1.7;
}

/* Stats row */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(30, 58, 138, 0.12);
  overflow: hidden;
  border: 1px solid #e2e0da;
}
.stats-row__item {
  padding: 28px 20px;
  text-align: center;
  border-right: 1px solid #e2e0da;
  transition: background 0.3s;
}
.stats-row__item:last-child {
  border-right: none;
}
.stats-row__item:hover {
  background: #f8f7f5;
}
.stats-row__num {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 2.8rem;
  font-weight: 700;
  color: #0f2260;
  line-height: 1;
  margin-bottom: 6px;
}
.stats-row__num span {
  color: #cc2222;
}
.stats-row__label {
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #718096;
}

/* Partners grid */
.partners-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  align-items: center;
}
.partner-logo-item {
  background: #f8f7f5;
  border-radius: 10px;
  padding: 16px 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #e2e0da;
  min-height: 68px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 0.92rem;
  font-weight: 600;
  color: #0f2260;
  opacity: 0.65;
  transition: all 0.3s;
  text-align: center;
  text-decoration: none;
}
.partner-logo-item:hover {
  opacity: 1;
  background: #fff;
  box-shadow: 0 4px 16px rgba(30, 58, 138, 0.1);
  border-color: rgba(30, 58, 138, 0.2);
}

/* Contact page */
.contact-info-box {
  background: #0f2260;
  border-radius: 16px;
  padding: 36px;
  color: #fff;
}
.contact-info-box h2 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.7rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 24px;
}
.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 22px;
}
.contact-info-icon {
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.contact-info-icon svg {
  width: 20px;
  height: 20px;
  color: #fff;
}
.contact-info-label {
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 100, 100, 0.85);
  margin-bottom: 4px;
}
.contact-info-value {
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.6;
}
.contact-info-value a {
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
  transition: color 0.2s;
}
.contact-info-value a:hover {
  color: #fff;
}
.contact-form-wrap {
  background: #fff;
  border-radius: 16px;
  padding: 36px;
  border: 1px solid #e2e0da;
}

/* Services page */
.services-page-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.service-page-card {
  background: #fff;
  border-radius: 16px;
  padding: 30px;
  border: 1px solid #e2e0da;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}
.service-page-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #1e3a8a, #cc2222);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
}
.service-page-card:hover::before {
  transform: scaleX(1);
}
.service-page-card:hover {
  box-shadow: 0 16px 48px rgba(30, 58, 138, 0.13);
  transform: translateY(-5px);
  border-color: transparent;
}
.service-page-card__title {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: #0f2260;
  margin-bottom: 10px;
  line-height: 1.2;
}
.service-page-card__desc {
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 0.875rem;
  color: #4b5568;
  line-height: 1.75;
  margin-bottom: 16px;
}
.service-page-card__bullets {
  list-style: none;
}
.service-page-card__bullets li {
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 0.84rem;
  color: #4b5568;
  padding: 5px 0 5px 16px;
  position: relative;
  line-height: 1.5;
}
.service-page-card__bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #cc2222;
}

/* ── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 1024px) {
  .team-about-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .values-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .partners-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .services-page-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .stats-row {
    grid-template-columns: repeat(2, 1fr);
  }
  .stats-row__item {
    border-bottom: 1px solid #e2e0da;
  }
  .stats-row__item:nth-child(2n) {
    border-right: none;
  }
}
@media (max-width: 768px) {
  .team-about-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .values-grid {
    grid-template-columns: 1fr 1fr;
  }
  .partners-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .services-page-grid {
    grid-template-columns: 1fr;
  }
  .primary-nav {
    display: none;
    flex-direction: column;
    position: fixed;
    inset: 0;
    top: 70px;
    background: #fff;
    padding: 20px;
    gap: 4px;
    overflow-y: auto;
    z-index: 199;
  }
  .primary-nav.is-open {
    display: flex;
  }
  .primary-nav > li > a,
  .primary-nav > a {
    font-size: 1rem;
    padding: 13px 16px;
  }
  .primary-nav .sub-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    background: #f8f7f5;
    margin-top: 4px;
    border-radius: 8px;
  }
}
@media (max-width: 480px) {
  .values-grid {
    grid-template-columns: 1fr;
  }
  .team-about-grid {
    grid-template-columns: 1fr 1fr;
  }
  .partners-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ── FAQ ACCORDION ───────────────────────────────────── */
.faq-section {
  margin-top: 3rem;
}
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 1.5rem;
}
.faq-item {
  background: #fff;
  border-radius: 10px;
  border: 1px solid #e2e0da;
  overflow: hidden;
  transition: box-shadow 0.2s;
}
.faq-item:has(.faq-question[aria-expanded="true"]) {
  box-shadow: 0 4px 20px rgba(30, 58, 138, 0.1);
  border-color: rgba(30, 58, 138, 0.2);
}
.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: #0f2260;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  transition: background 0.2s;
}
.faq-question:hover {
  background: #f8f7f5;
}
.faq-arrow {
  flex-shrink: 0;
  color: #cc2222;
  transition: transform 0.3s ease;
}
.faq-question[aria-expanded="true"] .faq-arrow {
  transform: rotate(180deg);
}
.faq-answer {
  padding: 0 22px 18px;
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 0.9rem;
  color: #4b5568;
  line-height: 1.75;
}
.faq-answer p {
  margin-bottom: 0;
}

/* ── RANK MATH BREADCRUMBS ───────────────────────────── */
/* Override Rank Math's default breadcrumb styles */
.rm-breadcrumb,
.breadcrumb-trail,
.rank-math-breadcrumb,
nav.rank-math-breadcrumb {
  font-family: "DM Sans", system-ui, sans-serif !important;
  font-size: 0.78rem !important;
  color: rgba(255, 255, 255, 0.45) !important;
  margin-bottom: 16px !important;
  display: flex !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  gap: 4px !important;
  background: none !important;
  padding: 0 !important;
  border: none !important;
}
.rm-breadcrumb a,
.rank-math-breadcrumb a,
nav.rank-math-breadcrumb a {
  color: rgba(255, 255, 255, 0.55) !important;
  text-decoration: none !important;
  transition: color 0.2s !important;
}
.rm-breadcrumb a:hover,
.rank-math-breadcrumb a:hover {
  color: #fff !important;
}
.rm-breadcrumb .separator,
.rank-math-breadcrumb .separator {
  color: rgba(255, 255, 255, 0.3) !important;
}
/* Inside white sections */
.section .rm-breadcrumb,
.section .rank-math-breadcrumb {
  color: #718096 !important;
}
.section .rm-breadcrumb a,
.section .rank-math-breadcrumb a {
  color: #1e3a8a !important;
}
.section .rm-breadcrumb .separator {
  color: #cbd5e0 !important;
}

/* ── SERVICE CARD icon sizing fix ────────────────────── */
.service-card__icon,
.service-page-card__icon {
  width: 52px;
  height: 52px;
  background: rgba(30, 58, 138, 0.08);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  transition:
    transform 0.3s ease,
    background 0.3s ease;
  flex-shrink: 0;
}
.service-card:hover .service-card__icon,
.service-page-card:hover .service-page-card__icon {
  background: rgba(30, 58, 138, 0.14);
  transform: scale(1.08) rotate(-4deg);
}
/* Material icon inside service card */
.service-card__icon .material-icons,
.service-page-card__icon .material-icons {
  font-size: 26px !important;
  color: #1e3a8a;
  line-height: 1;
}
/* Emoji fallback */
.service-card__icon .service-icon-emoji,
.service-page-card__icon .service-icon-emoji {
  font-size: 24px;
  line-height: 1;
}

/* ── WPCF7 FORM ENHANCEMENTS ─────────────────────────── */
.wpcf7 .wpcf7-response-output {
  margin: 16px 0 0 !important;
  padding: 14px 18px !important;
  border-radius: 8px !important;
  font-family: "DM Sans", system-ui, sans-serif !important;
  font-size: 0.9rem !important;
  border-width: 1.5px !important;
}
.wpcf7 .wpcf7-mail-sent-ok {
  background: #eaf3de !important;
  border-color: #3b6d11 !important;
  color: #27500a !important;
}
.wpcf7 .wpcf7-validation-errors,
.wpcf7 .wpcf7-spam-blocked {
  background: #fcebeb !important;
  border-color: #a32d2d !important;
  color: #791f1f !important;
}
.wpcf7 .wpcf7-not-valid-tip {
  font-size: 0.78rem !important;
  color: #cc2222 !important;
  margin-top: 4px !important;
  font-family: "DM Sans", system-ui, sans-serif !important;
}
.wpcf7 input.wpcf7-not-valid,
.wpcf7 textarea.wpcf7-not-valid,
.wpcf7 select.wpcf7-not-valid {
  border-color: #cc2222 !important;
  box-shadow: 0 0 0 3px rgba(204, 34, 34, 0.1) !important;
}

/* ── SEARCH FORM ─────────────────────────────────────── */
.search-form {
  display: flex;
  gap: 0;
  border-radius: 8px;
  overflow: hidden;
  border: 1.5px solid #e2e0da;
}
.search-form input[type="search"] {
  flex: 1;
  padding: 11px 16px;
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 0.9rem;
  border: none;
  background: #fff;
  color: #1a1f2e;
  outline: none;
}
.search-form button[type="submit"] {
  padding: 0 18px;
  background: #1e3a8a;
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 600;
  font-family: "DM Sans", system-ui, sans-serif;
  transition: background 0.2s;
  white-space: nowrap;
}
.search-form button[type="submit"]:hover {
  background: #cc2222;
}

/* ── PAGINATION ──────────────────────────────────────── */
.nav-links,
.pagination {
  display: flex;
  gap: 6px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 48px;
}
.page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border-radius: 8px;
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  color: #1e3a8a;
  background: #fff;
  border: 1.5px solid #e2e0da;
  text-decoration: none;
  transition: all 0.2s;
}
.page-numbers:hover {
  background: #f8f7f5;
  border-color: #1e3a8a;
}
.page-numbers.current {
  background: #1e3a8a;
  color: #fff;
  border-color: #1e3a8a;
}
.page-numbers.dots {
  border-color: transparent;
  background: transparent;
}

/* ── SERVICE SINGLE PAGE ─────────────────────────────── */
.service-hero {
  background: #0f2260;
  padding-top: clamp(120px, 16vw, 180px);
  padding-bottom: clamp(3rem, 7vw, 6rem);
  position: relative;
  overflow: hidden;
  color: #fff;
}
.service-hero .hero__bg-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(8,12,30,0.98) 0%, rgba(30,58,138,0.85) 100%);
  z-index: 1;
}
.service-hero__pattern {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0.4;
}
.service-hero__inner {
  position: relative;
  z-index: 2;
}
.service-hero__header {
  display: flex;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.service-hero__icon-wrap {
  flex-shrink: 0;
}
.service-hero__icon {
  width: clamp(80px, 12vw, 120px) !important;
  height: clamp(80px, 12vw, 120px) !important;
  background: rgba(255,255,255,0.06) !important;
  border-radius: 20% !important;
  font-size: clamp(40px, 6vw, 60px) !important;
  color: #fff !important;
  border: 1px solid rgba(255,255,255,0.1) !important;
  box-shadow: 0 20px 50px rgba(0,0,0,0.2) !important;
}
.service-hero__title {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(2.5rem, 6vw, 4.2rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 12px;
  color: #fff;
}
.service-hero__lead {
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(255,255,255,0.6);
  max-width: 650px;
  line-height: 1.6;
}

.service-content-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 60px;
  padding-top: 60px;
  padding-bottom: 80px;
}
.service-main {
  min-width: 0;
}
.service-section-title {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 2.2rem;
  font-weight: 700;
  color: #0f2260;
  margin-bottom: 24px;
  margin-top: 48px;
}
.service-deliverables {
  background: #f8f7f5;
  border-radius: 20px;
  padding: 40px;
  margin-top: 50px;
  border: 1px solid #e2e0da;
}
.deliverables-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.deliverable-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-family: "DM Sans", sans-serif;
  font-size: 0.95rem;
  color: #4b5568;
  line-height: 1.5;
}
.deliverable-check {
  width: 22px;
  height: 22px;
  background: #cc2222;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 4px;
}

.service-sidebar {
  position: sticky;
  top: 100px;
  height: max-content;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.service-sidebar__box {
  background: #fff;
  border: 1px solid #e2e0da;
  border-radius: 16px;
  padding: 28px;
}
.service-sidebar__box--dark {
  background: #0f2260;
  color: #fff;
  border-color: transparent;
}
.service-sidebar__box--dark .service-sidebar__title {
  color: #fff;
}
.service-sidebar__box--dark p {
  color: rgba(255,255,255,0.6);
  font-size: 0.875rem;
  margin-bottom: 20px;
}
.service-sidebar__title {
  font-family: "DM Sans", sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: #0f2260;
  margin-bottom: 18px;
}
.service-sidebar__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.service-sidebar__list li a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: "DM Sans", sans-serif;
  font-size: 0.9rem;
  color: #4b5568;
  text-decoration: none;
  padding-bottom: 8px;
  border-bottom: 1px solid #f0efeb;
  transition: all 0.2s;
}
.service-sidebar__list li a:hover {
  color: #cc2222;
  padding-left: 5px;
}
.service-sidebar__list li a span {
  opacity: 0;
  transition: all 0.2s;
}
.service-sidebar__list li a:hover span {
  opacity: 1;
  transform: translateX(3px);
}

.contact-mini {
  margin-bottom: 15px;
}
.contact-mini:last-child {
  margin-bottom: 0;
}
.contact-mini__label {
  display: block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #718096;
  font-weight: 700;
  margin-bottom: 2px;
}
.contact-mini__value {
  font-family: "DM Sans", sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: #0f2260;
  text-decoration: none;
}
.contact-mini__value:hover {
  color: #cc2222;
}

@media (max-width: 1024px) {
  .service-content-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .service-sidebar {
    position: static;
    order: 2;
  }
}
@media (max-width: 768px) {
  .service-hero__header {
    flex-direction: column;
    text-align: center;
    gap: 1.5rem;
  }
  .service-deliverables {
    padding: 25px;
  }
  .deliverables-grid {
    grid-template-columns: 1fr;
  }
}

/* ── HEADER ACTIONS ─────────────────────────────────── */
.header__actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.header-download {
  border-radius: 99px !important;
  padding: 8px 18px !important;
  font-size: 0.82rem !important;
  border: 1.5px solid rgba(30, 58, 138, 0.15) !important;
  background: rgba(30, 58, 138, 0.04) !important;
  color: #0f2260 !important;
}

.site-header.is-transparent .header-download {
  border-color: rgba(255, 255, 255, 0.3) !important;
  background: rgba(255, 255, 255, 0.1) !important;
  color: #fff !important;
}

.header-download:hover {
  background: #1e3a8a !important;
  color: #fff !important;
  border-color: #1e3a8a !important;
  transform: translateY(-2px);
}

.header-cta {
  border-radius: 99px !important;
  padding: 8px 20px !important;
}

@media (max-width: 768px) {
  .header-download .btn-text {
    display: none;
  }
  .header-download {
    padding: 8px !important;
  }
  .header-download svg {
    margin-right: 0 !important;
  }
}

/* ── ABOUT PAGE SECTIONS ─────────────────────────────── */
.about-page-section {
  padding-block: clamp(4rem, 8vw, 7rem);
}


/* ── ABOUT INFO GRID ─────────────────────────────────── */
.info-grid__header {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  align-items: flex-start;
  margin-bottom: clamp(3rem, 6vw, 5rem);
}

@media (max-width: 991px) {
  .info-grid__header {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

.info-grid__items {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

@media (max-width: 1200px) {
  .info-grid__items {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .info-grid__items {
    grid-template-columns: 1fr;
  }
}

.info-item {
  background: #ffffff;
  border: 1px solid #eef2ff;
  border-radius: 18px;
  overflow: hidden;
  transition:
    transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 20px rgba(59, 130, 246, 0.04);
  display: flex;
  flex-direction: column;
}

.info-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 60px rgba(59, 130, 246, 0.1);
  border-color: #dbeafe;
}

.info-item__img {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: #f0f7ff;
}

.info-item__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.info-item:hover .info-item__img img {
  transform: scale(1.05);
}

.info-item__icon {
  position: absolute;
  bottom: -22px;
  left: 24px;
  width: 48px;
  height: 48px;
  background: #0066ff;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  box-shadow: 0 8px 16px rgba(0, 102, 255, 0.3);
  z-index: 2;
  transition: transform 0.3s ease;
}

.info-item:hover .info-item__icon {
  transform: scale(1.1) translateY(-2px);
}

.info-item__icon .material-icons {
  font-size: 22px !important;
  color: #fff !important;
}

.info-item__body {
  padding: 40px 24px 30px;
  flex-grow: 1;
  position: relative;
}

.info-item__title {
  font-family: var(--fb);
  font-size: 1.15rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 12px;
}

.info-item__desc {
  font-size: 0.88rem;
  color: #64748b;
  line-height: 1.6;
  margin-bottom: 0;
}

.info-item__corner {
  position: absolute;
  bottom: 20px;
  right: 20px;
  opacity: 0.15;
  transform: scale(0.8);
  transition: all 0.3s ease;
}

.info-item:hover .info-item__corner {
  opacity: 0.4;
  transform: scale(1);
  color: #0066ff;
}

/* ── MAIN NAV ACTIVE STATE ────────────────────────────── */
.primary-nav .current-menu-item > a,
.primary-nav .current-page-ancestor > a {
  color: #cc2222 !important;
  font-weight: 700 !important;
  background: rgba(204, 34, 34, 0.05) !important;
}

.site-header.is-transparent .primary-nav .current-menu-item > a,
.site-header.is-transparent .primary-nav .current-page-ancestor > a {
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.12) !important;
}

.primary-nav .current-menu-item > a::after {
  content: "";
  position: absolute;
  bottom: 6px;
  left: 14px;
  right: 14px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  opacity: 0.8;
}

/* ── SECTION SPACING & RICH TEXT FIXES ────────────────────────── */
.project-section, 
.service-deliverables,
.service-related-projects {
  margin-bottom: clamp(2.5rem, 6vw, 4.5rem) !important;
}

.project-section:last-child {
  margin-bottom: 0 !important;
}

/* Restore bullets in WYSIWYG areas */
.rich-text ul,
.entry-content ul {
  list-style: disc !important;
  margin-left: 1.5rem !important;
  margin-bottom: 1.25rem !important;
}

.rich-text ol,
.entry-content ol {
  list-style: decimal !important;
  margin-left: 1.5rem !important;
  margin-bottom: 1.25rem !important;
}

.rich-text li,
.entry-content li {
  margin-bottom: 0.5rem !important;
}

.project-body h3,
.service-section-title {
  margin-bottom: 20px !important;
}





