/*
 * AB Site plugin CSS
 *
 * Goal: keep behavior/layout helpers only.
 * No global palette or body/header/footer color overrides.
 * Theme colors and typography must come from Corvona presets.
 */

.ab-service-card-clickable {
  cursor: pointer;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.ab-service-card-clickable:focus-visible {
  outline: 2px solid var(--wp--preset--color--assets-one, #524dd3);
  outline-offset: 2px;
}

.ab-service-card-clickable.is-active {
  transform: translateY(-1px);
  border-color: var(--wp--preset--color--assets-one, #bf9004) !important;
  box-shadow: 0 0 0 1px rgba(191, 144, 4, 0.45);
}

.ab-service-card-badge,
.ab-service-card-number {
  transition: background-color 180ms ease, color 180ms ease, filter 180ms ease;
}

.ab-service-card-number {
  /* Default state: keep the theme "assets-one" blue used in Services cards. */
  color: var(--wp--preset--color--assets-one, #3b5d99) !important;
}

.ab-service-card-clickable.is-active .ab-service-card-badge {
  background-color: var(--wp--preset--color--base, #ffffff) !important;
}

.ab-service-card-clickable.is-active .ab-service-card-number {
  /* Active state: match Innovation Excellence selected icon gold. */
  color: rgb(191, 144, 4) !important;
  filter: saturate(1.05) brightness(1.03);
}

/* Higher-specificity override to beat theme utility classes loaded later. */
body .wp-site-blocks .ab-service-card-clickable.is-active h2.ab-service-card-number {
  color: rgb(191, 144, 4) !important;
}

body .wp-site-blocks .ab-service-card-clickable:not(.is-active) h2.ab-service-card-number {
  color: var(--wp--preset--color--assets-one, #3b5d99) !important;
}

/* Keep Services dropdown readable in header navigation. */
body .wp-site-blocks .wp-block-navigation .wp-block-navigation__submenu-container {
  background-color: #1f2330 !important;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
  min-width: 236px;
  padding: 8px 0;
}

body .wp-site-blocks .wp-block-navigation .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
  color: #f4f6fb !important;
  font-size: 0.82rem;
  line-height: 1.2;
  padding: 8px 13px;
}

body .wp-site-blocks .wp-block-navigation .wp-block-navigation__submenu-container .wp-block-navigation-item__content:hover,
body .wp-site-blocks .wp-block-navigation .wp-block-navigation__submenu-container .wp-block-navigation-item__content:focus-visible {
  background-color: rgba(191, 144, 4, 0.18);
  color: #ffffff !important;
}

.ab-services-multitab {
  border: 1px solid var(--wp--preset--color--assets-ten, #eeecf3);
  border-radius: 16px;
  margin-top: 24px;
  overflow: hidden;
}

.ab-services-multitab__header {
  border-bottom: 1px solid var(--wp--preset--color--assets-ten, #eeecf3);
  padding: 16px 18px;
}

.ab-services-multitab__kicker {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  margin: 0 0 6px;
  text-transform: uppercase;
}

.ab-services-multitab__header-row {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.ab-services-multitab__title {
  margin: 0;
}

.ab-services-multitab__open {
  white-space: nowrap;
}

.ab-services-multitab__body {
  padding: 18px;
  transition: opacity 180ms ease;
}

.ab-services-multitab__body.is-switching {
  opacity: 0.35;
}

.ab-services-multitab__placeholder,
.ab-services-multitab__loading,
.ab-services-multitab__error {
  margin: 0;
}

.ab-services-multitab__error {
  font-weight: 600;
}

.ab-reveal {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 220ms ease, transform 220ms ease;
}

.ab-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.farmasal-blog-hub__controls {
  align-items: end;
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.farmasal-blog-hub__label {
  display: block;
  font-size: 0.85rem;
  margin-bottom: 6px;
}

.farmasal-blog-hub__input,
.farmasal-blog-hub__select {
  min-height: 38px;
  width: 100%;
}

.farmasal-blog-hub__meta {
  margin: 10px 0 0;
}

@media (max-width: 767px) {
  .ab-services-multitab__header-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .ab-services-multitab__body {
    padding: 14px;
  }
}

/* Services cards: use image previews instead of long body text. */
.ab-service-card-image {
  margin: var(--wp--preset--spacing--2-x-small, 8px) 0 0;
}

.ab-service-card-image img {
  border-radius: 14px;
  display: block;
  height: 170px;
  object-fit: cover;
  width: 100%;
}

@media (max-width: 767px) {
  .ab-service-card-image img {
    height: 150px;
  }
}

/* Services pages visual enhancement package (non-structural, block-safe). */
.wp-block-cover.ab-prod-hero-business-strategy-sync,
.wp-block-cover.ab-prod-hero-enterprise-solutioning-sync,
.wp-block-cover.ab-prod-hero-innovation-facilitation-sync,
.wp-block-cover.ab-prod-hero-ecosystem-development-sync,
.wp-block-cover.ab-service-hero-ai-data-strategy-featured,
.wp-block-cover.ab-my-story-featured-hero {
  border: 1px solid rgba(12, 20, 36, 0.08);
  border-radius: 20px;
  box-shadow: 0 20px 42px rgba(15, 23, 41, 0.16);
  margin: clamp(18px, 2.4vw, 34px) auto clamp(12px, 2vw, 24px);
  max-width: min(1240px, calc(100% - 28px));
  overflow: hidden;
}

.wp-block-cover.ab-prod-hero-business-strategy-sync .wp-block-cover__image-background,
.wp-block-cover.ab-prod-hero-enterprise-solutioning-sync .wp-block-cover__image-background,
.wp-block-cover.ab-prod-hero-innovation-facilitation-sync .wp-block-cover__image-background,
.wp-block-cover.ab-prod-hero-ecosystem-development-sync .wp-block-cover__image-background,
.wp-block-cover.ab-service-hero-ai-data-strategy-featured .wp-block-cover__image-background,
.wp-block-cover.ab-my-story-featured-hero .wp-block-cover__image-background {
  filter: saturate(1.04) contrast(1.06) brightness(0.9);
}

.wp-block-cover.ab-prod-hero-business-strategy-sync .wp-block-cover__inner-container,
.wp-block-cover.ab-prod-hero-enterprise-solutioning-sync .wp-block-cover__inner-container,
.wp-block-cover.ab-prod-hero-innovation-facilitation-sync .wp-block-cover__inner-container,
.wp-block-cover.ab-prod-hero-ecosystem-development-sync .wp-block-cover__inner-container,
.wp-block-cover.ab-service-hero-ai-data-strategy-featured .wp-block-cover__inner-container,
.wp-block-cover.ab-my-story-featured-hero .wp-block-cover__inner-container {
  background: linear-gradient(175deg, rgba(6, 11, 23, 0.12) 0%, rgba(6, 11, 23, 0.38) 100%);
  height: 100%;
  inset: 0;
  position: absolute;
  width: 100%;
}

body .ab-service-shell {
  margin-left: auto;
  margin-right: auto;
  max-width: min(1220px, calc(100% - 28px));
  padding-bottom: clamp(20px, 3vw, 36px);
}

body .ab-service-shell .ab-service-hero {
  background:
    radial-gradient(1100px 380px at 15% -10%, rgba(191, 144, 4, 0.2), transparent 56%),
    linear-gradient(140deg, rgba(20, 29, 50, 0.97) 0%, rgba(34, 54, 92, 0.95) 45%, rgba(29, 43, 71, 0.95) 100%);
  border: 1px solid rgba(191, 144, 4, 0.28);
  border-radius: 18px;
  box-shadow: 0 16px 34px rgba(10, 18, 33, 0.24);
  margin-top: clamp(16px, 2vw, 24px);
  padding: clamp(20px, 3vw, 38px);
}

body .ab-service-shell .ab-service-hero .ab-service-kicker {
  color: #f0c35b;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
  text-transform: uppercase;
}

body .ab-service-shell .ab-service-hero h1 {
  color: #f7f9ff;
  font-size: clamp(1.9rem, 3.4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.08;
  margin-bottom: 12px;
}

body .ab-service-shell .ab-service-hero .ab-service-lead {
  color: rgba(235, 241, 255, 0.95);
  font-size: clamp(1rem, 1.35vw, 1.22rem);
  line-height: 1.5;
  margin: 0 0 16px;
  max-width: 72ch;
}

body .ab-service-shell .ab-service-hero .wp-block-button__link {
  background: linear-gradient(130deg, #f3cf76 0%, #bf9004 100%);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.26);
  color: #17233e;
  font-weight: 700;
  padding: 0.76rem 1.15rem;
  transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

body .ab-service-shell .ab-service-hero .wp-block-button__link:hover,
body .ab-service-shell .ab-service-hero .wp-block-button__link:focus-visible {
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.28);
  filter: brightness(1.03);
  transform: translateY(-1px);
}

body .ab-service-shell .ab-service-section {
  background: linear-gradient(160deg, #ffffff 0%, #f7f9fe 100%);
  border: 1px solid rgba(37, 55, 95, 0.11);
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(24, 39, 72, 0.08);
  margin-top: clamp(14px, 1.7vw, 20px);
  padding: clamp(18px, 2.1vw, 28px);
}

body .ab-service-shell .ab-service-section--alt {
  background: linear-gradient(155deg, #f4f7ff 0%, #eff4fd 52%, #f7f5ef 100%);
}

body .ab-service-shell .ab-service-section > h2.wp-block-heading {
  color: #1e2f56;
  font-size: clamp(1.35rem, 2vw, 1.76rem);
  letter-spacing: -0.01em;
  line-height: 1.15;
  margin-bottom: 12px;
}

body .ab-service-shell .ab-service-section > p,
body .ab-service-shell .ab-service-mini-card p {
  color: #2a3754;
  line-height: 1.62;
}

body .ab-service-shell .ab-service-card-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

body .ab-service-shell .ab-service-mini-card {
  background: linear-gradient(145deg, #ffffff 0%, #f5f8ff 100%);
  border: 1px solid rgba(34, 57, 103, 0.12);
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(24, 39, 72, 0.07);
  min-height: 100%;
  padding: 12px 14px;
  transition: transform 170ms ease, box-shadow 170ms ease, border-color 170ms ease;
}

body .ab-service-shell .ab-service-mini-card:hover {
  border-color: rgba(191, 144, 4, 0.5);
  box-shadow: 0 8px 16px rgba(24, 39, 72, 0.13);
  transform: translateY(-1px);
}

body .ab-service-shell .ab-service-section .wp-block-columns {
  gap: clamp(14px, 2vw, 24px);
}

body .ab-service-shell .ab-service-section h3.wp-block-heading {
  color: #243a66;
  font-size: clamp(1.15rem, 1.6vw, 1.38rem);
  margin-bottom: 9px;
}

body .ab-service-shell .ab-service-section ul {
  margin: 0;
  padding: 0;
}

body .ab-service-shell .ab-service-section ul li {
  background: linear-gradient(150deg, #ffffff 0%, #f8fbff 100%);
  border-left: 3px solid rgba(191, 144, 4, 0.72);
  border-radius: 9px;
  color: #293856;
  list-style: none;
  margin: 0 0 8px;
  padding: 9px 12px 9px 14px;
}

@media (max-width: 1024px) {
  body .ab-service-shell .ab-service-card-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  .wp-block-cover.ab-prod-hero-business-strategy-sync,
  .wp-block-cover.ab-prod-hero-enterprise-solutioning-sync,
  .wp-block-cover.ab-prod-hero-innovation-facilitation-sync,
  .wp-block-cover.ab-prod-hero-ecosystem-development-sync,
  .wp-block-cover.ab-service-hero-ai-data-strategy-featured,
  .wp-block-cover.ab-my-story-featured-hero {
    border-radius: 14px;
    max-width: calc(100% - 16px);
    min-height: 280px !important;
  }

  body .ab-service-shell {
    max-width: calc(100% - 16px);
  }

  body .ab-service-shell .ab-service-hero {
    border-radius: 14px;
    padding: 16px;
  }

  body .ab-service-shell .ab-service-hero .ab-service-lead {
    font-size: 1rem;
  }

  body .ab-service-shell .ab-service-section {
    border-radius: 13px;
    padding: 14px;
  }

  body .ab-service-shell .ab-service-mini-card {
    padding: 11px 12px;
  }
}
