/* ==========================================================================
   Automation Consulting Homepage — Faithful Figma Implementation v2
   ========================================================================== */

/* --- CSS Custom Properties --- */
:root {
  --ac-bg: #010D12;
  --ac-bg-alt: #020F15;
  --ac-primary: #07A9D1;
  --ac-secondary: #0A576B;
  --ac-dark-card: #06212C;
  --ac-dark-card-border: rgba(7, 169, 209, 0.12);
  --ac-light-bg: #FAFFFF;
  --ac-light-card: #F1FEFF;
  --ac-text-light: #FFFFFF;
  --ac-text-muted: #c8c8c8;
  --ac-text-dark: #1A1A1A;
  --ac-glow: rgba(7, 169, 209, 0.15);
  --ac-radius: 12px;
  --ac-radius-lg: 20px;
  --ac-max-width: 1340px;
  --ac-transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Global Resets --- */
html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--ac-bg);
  color: var(--ac-text-light);
  font-family: Manrope, -apple-system, BlinkMacSystemFont, sans-serif;
  overflow-x: hidden;
}

.wp-site-blocks {
  padding: 0 !important;
}

.wp-site-blocks > * + * {
  margin-block-start: 0 !important;
}

/* Kill WP default margins on headings/paragraphs inside our sections */
[class*="ac-"] .wp-block-heading,
[class*="ac-"] .wp-block-paragraph {
  margin-top: 0;
}

/* Override WP constrained layout max-width for decoration containers */
.ac-hero__decorations,
.ac-process__decorations,
.ac-industries__decorations,
.ac-cta__decorations {
  max-width: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

/* Override WP default link underline for our elements */
.ac-nav__list a,
.ac-btn,
.ac-footer__links a,
.ac-logo,
.ac-footer__brand a {
  text-decoration: none !important;
}

/* --- Buttons --- */
.ac-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  border-radius: 100px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: all var(--ac-transition);
  cursor: pointer;
  border: 1.5px solid transparent;
  font-family: inherit;
  white-space: nowrap;
  line-height: 1.2;
}

.ac-btn--primary {
  background: var(--ac-primary);
  color: var(--ac-text-light);
  border-color: var(--ac-primary);
}

.ac-btn--primary:hover {
  background: #059bbf;
  border-color: #059bbf;
  transform: translateY(-2px);
  box-shadow: 0 6px 30px rgba(7, 169, 209, 0.35);
  color: var(--ac-text-light);
}

.ac-btn--outline {
  background: transparent;
  color: var(--ac-text-light);
  border-color: rgba(255, 255, 255, 0.25);
}

.ac-btn--outline:hover {
  border-color: var(--ac-primary);
  color: var(--ac-primary);
  transform: translateY(-2px);
}

.ac-btn--dark {
  color: var(--ac-text-dark);
  border-color: rgba(26, 26, 26, 0.15);
}

.ac-btn--dark:hover {
  border-color: var(--ac-primary);
  color: var(--ac-primary);
}

/* --- Badge --- */
.ac-badge {
  display: inline-block;
  padding: 0.5rem 1.75rem;
  border: 1px solid rgba(7, 169, 209, 0.5);
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--ac-primary);
  letter-spacing: 0.5px;
  background: rgba(7, 169, 209, 0.06);
}

/* --- Section label --- */
.ac-label {
  margin-bottom: 0.75rem !important;
}

/* --- Accent text --- */
.ac-text-accent {
  color: var(--ac-primary);
}

/* ==========================================================================
   DECORATIVE ELEMENTS — shared across sections
   ========================================================================== */

/* Glow orbs */
.ac-glow {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

/* Dot grid pattern */
.ac-dots-grid {
  position: absolute;
  background-image: radial-gradient(circle, var(--ac-secondary) 1.5px, transparent 1.5px);
  background-size: 18px 18px;
  opacity: 0.45;
  pointer-events: none;
}

/* Watermark styles removed — section decorations handled inline */

/* ==========================================================================
   UNDER CONSTRUCTION BANNER
   ========================================================================== */
.ac-construction-banner {
  background: var(--ac-primary);
  color: #fff;
  text-align: center;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  padding: 0.45rem 1rem;
  position: relative;
  z-index: 1001;
}

/* ==========================================================================
   HEADER
   ========================================================================== */
.ac-header-wrap {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: background 0.4s ease, box-shadow 0.4s ease, border 0.4s ease;
  border-bottom: 1px solid transparent;
}

.ac-header-wrap.scrolled {
  background: rgba(1, 13, 18, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: rgba(7, 169, 209, 0.08);
}

.ac-header {
  padding-top: 0.85rem;
  padding-bottom: 0.85rem;
}

.ac-header > .wp-block-group {
  max-width: var(--ac-max-width);
  margin: 0 auto;
}

.ac-header__left {
  gap: 0.6rem !important;
}

.ac-logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  gap: 0;
}

.ac-logo svg {
  display: block;
}

.ac-logo-text {
  margin: 0 !important;
  display: none;
}

/* Nav links */
.ac-nav__list {
  display: flex;
  align-items: center;
  gap: 2.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.ac-nav__list a {
  color: var(--ac-text-light);
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.8px;
  transition: color var(--ac-transition);
  opacity: 0.85;
}

.ac-nav__list a:hover {
  color: var(--ac-primary);
  opacity: 1;
}

.ac-header .ac-btn {
  margin-left: 2rem;
  padding: 0.55rem 1.4rem;
  font-size: 0.82rem;
}

.ac-header .ac-btn--primary {
  display: inline-flex;
  gap: 0.4rem;
}

/* Right arrow in Let's Talk button */
.ac-header .ac-btn--primary::after {
  content: '';
  display: inline-block;
  width: 14px;
  height: 14px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M12 5l7 7-7 7'/%3E%3C/svg%3E") center/contain no-repeat;
}

/* Hamburger */
.ac-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  margin-left: 1rem;
}

.ac-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ac-text-light);
  transition: all var(--ac-transition);
  border-radius: 2px;
}

.ac-hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.ac-hamburger.active span:nth-child(2) {
  opacity: 0;
}

.ac-hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile menu */
.ac-mobile-menu {
  position: fixed;
  top: 55px;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(1, 13, 18, 0.98);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 999;
  padding: 2rem 1.5rem;
  overflow-y: auto;
}

.ac-mobile-menu[hidden] {
  display: none !important;
}

.ac-mobile-menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
}

.ac-mobile-menu li {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.ac-mobile-menu a {
  display: block;
  padding: 1.15rem 0;
  color: var(--ac-text-light);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  transition: color var(--ac-transition);
}

.ac-mobile-menu a:hover {
  color: var(--ac-primary);
}

.ac-mobile-menu .ac-btn {
  margin-top: 1.5rem;
  width: 100%;
  justify-content: center;
}

/* ==========================================================================
   HERO
   ========================================================================== */
.ac-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  overflow: hidden;
  padding-top: 10rem !important;
  padding-bottom: 3rem !important;
}

/* --- Hero decorations container --- */
.ac-hero__decorations {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: visible;
  z-index: 0;
}

/* Ensure hero content sits above decorations */
.ac-hero > .wp-block-group,
.ac-hero > .wp-block-heading,
.ac-hero > .wp-block-paragraph,
.ac-hero__badge-wrap,
.ac-hero__title,
.ac-hero__subtitle,
.ac-hero__ctas,
.ac-hero__bottom {
  position: relative;
  z-index: 1;
}

/* --- Figma decoration images (shared base) --- */
.ac-deco-figma {
  position: absolute;
  pointer-events: none;
  display: block;
}

/* Main ambient glow — CSS radial gradient (SVG filters don't work in <img>) */
.ac-deco-glow {
  display: none;
}

.ac-glow--hero-main {
  width: 1200px;
  height: 1000px;
  background: radial-gradient(ellipse at 50% 40%,
    rgba(7, 169, 209, 0.40) 0%,
    rgba(7, 169, 209, 0.25) 20%,
    rgba(6, 207, 195, 0.10) 45%,
    transparent 70%);
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
  filter: blur(80px);
  z-index: 0;
}

/* Central hero triangle logo decoration (glowing "A") — hidden, SVG filters don't render */
.ac-deco-hero-triangle {
  display: none;
}

/* Flowing decorative line — left side */
.ac-deco-flow-left {
  width: 220px;
  top: 10%;
  left: -2%;
  opacity: 0.25;
}

/* Flowing decorative line — right side */
.ac-deco-flow-right {
  width: 220px;
  bottom: 8%;
  right: -2%;
  opacity: 0.25;
}

/* CTA section triangle */
.ac-deco-cta-triangle {
  width: 300px;
  height: 300px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0.2;
}

/* Badge wrap */
.ac-hero__badge-wrap {
  margin-bottom: 1.75rem !important;
  position: relative;
  z-index: 2;
}

/* Hero title */
.ac-hero__title {
  margin-bottom: 1.25rem !important;
  position: relative;
  z-index: 2;
  max-width: 750px;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* Hero subtitle */
.ac-hero__subtitle {
  max-width: 560px;
  margin-left: auto !important;
  margin-right: auto !important;
  margin-bottom: 2rem !important;
  position: relative;
  z-index: 2;
}

/* CTA buttons */
.ac-hero__ctas {
  gap: 1rem !important;
  margin-bottom: 2.5rem !important;
  position: relative;
  z-index: 2;
}

/* --- Chatbot input (decorative, non-functional) --- */
.ac-hero__chatbot {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 620px;
  margin: 0 auto;
}

.ac-chatbot-input {
  display: flex;
  align-items: center;
  background: rgba(6, 33, 44, 0.7);
  border: 1px solid rgba(7, 169, 209, 0.18);
  border-radius: 14px;
  padding: 1rem 1.25rem;
  margin-bottom: 0.75rem;
  transition: border-color var(--ac-transition);
}

.ac-chatbot-input:hover {
  border-color: rgba(7, 169, 209, 0.35);
}

.ac-chatbot-input input {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--ac-text-muted);
  font-size: 0.95rem;
  font-family: inherit;
  outline: none;
  padding: 0;
}

.ac-chatbot-input input::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

.ac-chatbot-input__send {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.7;
  transition: opacity var(--ac-transition);
}

.ac-chatbot-input__send:hover {
  opacity: 1;
}

.ac-chatbot-actions {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.ac-chatbot-action {
  background: rgba(6, 33, 44, 0.5);
  border: 1px solid rgba(7, 169, 209, 0.12);
  border-radius: 100px;
  padding: 0.45rem 1.1rem;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.82rem;
  font-family: inherit;
  cursor: default;
  transition: border-color var(--ac-transition);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.ac-chatbot-action:hover {
  border-color: rgba(7, 169, 209, 0.3);
}

/* --- Hero bottom (scroll + trust) --- */
.ac-hero__bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  width: 100%;
  max-width: var(--ac-max-width);
  margin-top: auto;
  padding-top: 3rem;
  position: relative;
  z-index: 2;
}

.ac-hero__scroll {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 2.5px;
  color: var(--ac-text-light);
  opacity: 0.7;
}

.ac-hero__scroll svg {
  animation: ac-bounce 2s ease-in-out infinite;
}

@keyframes ac-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(5px); }
}

/* Google Reviews badge */
.ac-google-review {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 1.1rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 100px;
  text-decoration: none !important;
  transition: all var(--ac-transition);
}

.ac-google-review:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.ac-google-review__icon {
  flex-shrink: 0;
}

.ac-google-review__stars {
  display: flex;
  align-items: center;
}

.ac-google-review__text {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--ac-text-muted);
  white-space: nowrap;
}

/* ==========================================================================
   PROBLEM STATEMENT — zigzag layout matching Figma
   ========================================================================== */
.ac-problem {
  position: relative;
  overflow: hidden;
}

.ac-problem__title {
  margin-bottom: 5rem !important;
  position: relative;
  z-index: 2;
}

/* Zigzag container */
.ac-problem__zigzag {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  z-index: 2;
}

/* Each row: text + decoration side by side */
.ac-problem__row {
  display: flex;
  align-items: center;
  gap: 3rem;
  margin-bottom: 6rem;
}

.ac-problem__row:last-child {
  margin-bottom: 0;
}

.ac-problem__row--reverse {
  flex-direction: row-reverse;
}

/* Text block */
.ac-problem__block {
  flex: 1;
  max-width: 540px;
}

.ac-problem__text {
  font-size: clamp(1.15rem, 2vw, 1.55rem);
  font-weight: 600;
  line-height: 1.45;
  color: #ffffff;
  margin: 0;
}

/* Decorative triangle per row */
.ac-problem__row-deco {
  flex-shrink: 0;
  width: 280px;
  height: 280px;
  pointer-events: none;
  opacity: 0.8;
}

.ac-problem__row-deco img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.ac-problem__row-deco--small {
  width: 200px;
  height: 200px;
}

.ac-problem__row-deco--large {
  width: 360px;
  height: 360px;
}

/* Subtle decorative line between sections */
.ac-problem::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(7, 169, 209, 0.1), transparent);
}

/* ==========================================================================
   PROCESS SECTION — zigzag steps matching Figma
   ========================================================================== */
.ac-process {
  position: relative;
  overflow: hidden;
}

/* --- Large 3D wireframe triangle decoration --- */
.ac-process__decorations {
  position: absolute;
  inset: 0;
  pointer-events: none;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 80px;
}

.ac-triangle-3d {
  position: relative;
  width: 400px;
  height: 400px;
  opacity: 0.6;
}

/* Glow behind the triangle */
.ac-process__decorations::before {
  content: '';
  position: absolute;
  top: 60px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle,
    rgba(7, 169, 209, 0.25) 0%,
    rgba(6, 207, 195, 0.08) 50%,
    transparent 75%);
  filter: blur(50px);
  border-radius: 50%;
}

.ac-process__header {
  margin-bottom: 3rem !important;
  position: relative;
  z-index: 2;
}

/* Zigzag steps container */
.ac-process__steps-zigzag {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  z-index: 2;
  padding: 2rem 0;
}

/* Dashed connecting line down the center */
.ac-process__steps-zigzag::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: repeating-linear-gradient(
    180deg,
    var(--ac-primary) 0px,
    var(--ac-primary) 8px,
    transparent 8px,
    transparent 16px
  );
  opacity: 0.4;
  transform: translateX(-50%);
}

/* Each step row */
.ac-process__step {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
  margin-bottom: 2.5rem;
  position: relative;
}

.ac-process__step:last-child {
  margin-bottom: 0;
}

/* Left-aligned steps: card on left, number on right */
.ac-process__step--left {
  justify-content: flex-start;
  padding-right: 52%;
}

/* Right-aligned steps: number on left, card on right */
.ac-process__step--right {
  justify-content: flex-end;
  padding-left: 52%;
}

/* Step number circle */
.ac-process__step-num {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--ac-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 800;
  flex-shrink: 0;
  position: relative;
  z-index: 2;
  box-shadow: 0 0 20px rgba(7, 169, 209, 0.3);
}

/* Step card — white card background matching Figma */
.ac-process__step-card {
  flex: 1;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 16px;
  padding: 1.5rem 1.75rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.ac-process__step-title {
  font-size: 1.2rem;
  font-weight: 700;
  font-style: italic;
  color: var(--ac-primary);
  margin: 0 0 0.5rem;
}

.ac-process__step-desc {
  font-size: 0.92rem;
  line-height: 1.7;
  color: #5A6B75;
  margin: 0;
}

/* ==========================================================================
   INDUSTRIES (Light background section) — matching Figma
   ========================================================================== */
.ac-industries {
  position: relative;
  overflow: hidden;
}

.ac-industries__title {
  margin-bottom: 1.5rem !important;
}

/* Gradient banner card */
.ac-industries__banner {
  max-width: 700px;
  margin: 0 auto 2.5rem;
  background: linear-gradient(146deg, rgba(7, 169, 209, 0.7) 6%, rgba(9, 69, 83, 1) 100%);
  border-radius: 24px;
  padding: 2.5rem;
  text-align: center;
}

.ac-industries__banner-text {
  color: #fff;
  font-size: 1.05rem;
  line-height: 1.65;
  margin: 0 0 1.5rem;
  font-weight: 500;
}

.ac-industries__search {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 100px;
  padding: 0.75rem 1.25rem;
  max-width: 400px;
  margin: 0 auto;
}

.ac-industries__search input {
  flex: 1;
  background: transparent;
  border: none;
  font-size: 0.9rem;
  font-family: inherit;
  color: rgba(255, 255, 255, 0.7);
  outline: none;
  cursor: default;
}

.ac-industries__search input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.ac-industries__search svg {
  color: rgba(255, 255, 255, 0.5);
  flex-shrink: 0;
}

/* Industry pill buttons */
.ac-industries__pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

.ac-industry-pill {
  display: inline-block;
  padding: 0.65rem 1.5rem;
  border: 1.5px solid var(--ac-primary);
  border-radius: 100px;
  color: var(--ac-primary);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  transition: all var(--ac-transition);
  background: transparent;
}

.ac-industry-pill:hover {
  background: var(--ac-primary);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(7, 169, 209, 0.2);
}

/* ==========================================================================
   CAPABILITIES — pills around central logo, matching Figma
   ========================================================================== */
.ac-capabilities {
  position: relative;
  overflow: hidden;
}

.ac-capabilities__title {
  margin-bottom: 2rem !important;
  position: relative;
  z-index: 1;
}

/* Orbit layout — pills around central logo */
.ac-capabilities__orbit {
  position: relative;
  width: 500px;
  height: 380px;
  margin: 0 auto;
}

.ac-capabilities__center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120px;
  height: 120px;
  background: var(--ac-dark-card);
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(7, 169, 209, 0.15);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.3);
  z-index: 2;
}

.ac-capabilities__center img {
  width: 80px;
  height: 80px;
  object-fit: contain;
}

/* Pill buttons positioned around the center */
.ac-cap-pill {
  position: absolute;
  display: inline-block;
  padding: 0.6rem 1.8rem;
  border: 1.5px solid var(--ac-primary);
  border-radius: 100px;
  color: var(--ac-primary);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: all var(--ac-transition);
  background: rgba(250, 255, 255, 0.8);
  white-space: nowrap;
  z-index: 1;
}

.ac-cap-pill:hover {
  background: var(--ac-primary);
  color: #fff;
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(7, 169, 209, 0.25);
}

.ac-cap-pill--tl { top: 15%; left: 0; }
.ac-cap-pill--tr { top: 15%; right: 0; }
.ac-cap-pill--bl { bottom: 15%; left: 5%; }
.ac-cap-pill--br { bottom: 15%; right: 5%; }

/* ==========================================================================
   CASE STUDIES — light background matching Figma
   ========================================================================== */
.ac-case-studies {
  position: relative;
  overflow: hidden;
}

.ac-case-studies__title {
  margin-bottom: 3rem !important;
  position: relative;
  z-index: 1;
}

/* Light variant of case study card */
.ac-case-study--light {
  background: #fff;
  border: 1px solid rgba(7, 169, 209, 0.08);
  border-radius: var(--ac-radius-lg);
  padding: 2.5rem;
  max-width: 900px;
  margin: 0 auto 2rem;
  position: relative;
  z-index: 1;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04);
}

.ac-case-study__header {
  margin-bottom: 1.5rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.ac-case-study__meta {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.ac-case-study__client {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ac-text-dark);
}

.ac-case-study__industry--light {
  font-size: 0.8rem;
  color: var(--ac-primary);
  padding: 0.3rem 0.85rem;
  border: 1px solid rgba(7, 169, 209, 0.25);
  border-radius: 100px;
  font-weight: 500;
}

.ac-case-study__body {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 1.5rem;
}

.ac-case-study__label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--ac-primary);
  margin: 0 0 0.4rem;
  letter-spacing: 0.3px;
}

.ac-case-study__section p {
  font-size: 0.92rem;
  line-height: 1.65;
  color: #5A6B75;
  margin: 0;
}

.ac-case-study__footer {
  text-align: right;
}

.ac-link-arrow {
  color: var(--ac-primary);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  transition: all var(--ac-transition);
}

.ac-link-arrow:hover {
  opacity: 0.8;
}

.ac-case-studies__more {
  text-align: center;
  margin-top: 1.5rem;
  position: relative;
  z-index: 1;
}

/* ==========================================================================
   CTA SECTION
   ========================================================================== */
.ac-cta {
  position: relative;
  text-align: center;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(9, 62, 76, 1) 0%, rgba(4, 32, 40, 1) 42%, rgba(1, 13, 18, 1) 85%);
  border-radius: 40px 40px 0 0;
}

.ac-cta__decorations {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.ac-glow--cta-left {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(7, 169, 209, 0.25) 0%, rgba(6, 207, 195, 0.08) 40%, transparent 70%);
  bottom: -150px;
  left: -150px;
  filter: blur(60px);
}

.ac-glow--cta-right {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(7, 169, 209, 0.20) 0%, rgba(10, 87, 107, 0.10) 40%, transparent 70%);
  top: -100px;
  right: -100px;
  filter: blur(60px);
}

.ac-cta__title {
  position: relative;
  z-index: 2;
  margin-bottom: 1.25rem !important;
}

.ac-cta__buttons {
  gap: 1rem !important;
  position: relative;
  z-index: 2;
  margin-top: 1.5rem !important;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.ac-footer {
  border-top: 1px solid rgba(7, 169, 209, 0.08);
}

.ac-footer__brand {
  margin-bottom: 1.25rem;
}

.ac-footer__brand .ac-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.ac-footer__brand .ac-logo span {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ac-text-light);
}

.ac-footer__desc {
  max-width: 320px;
}

.ac-footer__heading {
  margin-bottom: 1.25rem !important;
}

.ac-footer__links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.ac-footer__links a {
  color: #8899A4;
  text-decoration: none;
  font-size: 0.88rem;
  transition: color var(--ac-transition);
}

.ac-footer__links a:hover {
  color: var(--ac-primary);
}

.ac-footer__divider {
  margin: 2.5rem 0 0 !important;
  opacity: 0.2 !important;
}

/* Footer chatbot mini */
.ac-footer__chatbot-mini {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.ac-footer__chatbot-mini .ac-chatbot-input {
  max-width: 360px;
  margin: 0;
  padding: 0.65rem 1rem;
  border-radius: 12px;
  background: rgba(6, 45, 50, 0.4);
}

.ac-footer__chatbot-mini .ac-chatbot-actions {
  margin: 0.4rem 0 0;
  gap: 0.4rem;
  justify-content: flex-end;
}

.ac-footer__chatbot-mini .ac-chatbot-action {
  font-size: 0.75rem;
  padding: 0.35rem 0.85rem;
}

/* ==========================================================================
   SCROLL ANIMATIONS
   ========================================================================== */
.ac-fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.ac-fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children */
.ac-industries__pills .ac-fade-in:nth-child(2) { transition-delay: 0.06s; }
.ac-industries__pills .ac-fade-in:nth-child(3) { transition-delay: 0.12s; }
.ac-industries__pills .ac-fade-in:nth-child(4) { transition-delay: 0.18s; }
.ac-industries__pills .ac-fade-in:nth-child(5) { transition-delay: 0.24s; }
.ac-industries__pills .ac-fade-in:nth-child(6) { transition-delay: 0.30s; }

.ac-process__steps-zigzag .ac-fade-in:nth-child(2) { transition-delay: 0.1s; }
.ac-process__steps-zigzag .ac-fade-in:nth-child(3) { transition-delay: 0.2s; }
.ac-process__steps-zigzag .ac-fade-in:nth-child(4) { transition-delay: 0.3s; }
.ac-process__steps-zigzag .ac-fade-in:nth-child(5) { transition-delay: 0.4s; }

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */

/* Large desktop */
@media (min-width: 1440px) {
  .ac-hero__title {
    font-size: 4.2rem !important;
  }
}

/* Tablet landscape */
@media (max-width: 1200px) {
  .ac-process__step--left {
    padding-right: 54%;
  }
  .ac-process__step--right {
    padding-left: 54%;
  }
}

/* Tablet */
@media (max-width: 1024px) {
  .ac-case-study__body {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .ac-nav__list {
    gap: 1.25rem;
  }

  .ac-triangle-3d {
    width: 300px;
    height: 300px;
  }
}

/* Small tablet / large phone */
@media (max-width: 768px) {
  .ac-nav {
    display: none !important;
  }

  .ac-header .ac-btn--primary {
    display: none !important;
  }

  .ac-hamburger {
    display: flex !important;
  }

  .ac-hero {
    padding-top: 7rem !important;
    min-height: auto;
    padding-bottom: 2rem !important;
  }

  .ac-hero__bottom {
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
  }

  .ac-hero__scroll {
    order: 2;
  }

  .ac-case-study--light {
    padding: 1.5rem;
  }

  .ac-problem__row {
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 4rem;
  }

  .ac-problem__row--reverse {
    flex-direction: column;
  }

  .ac-problem__row-deco {
    width: 150px;
    height: 150px;
    opacity: 0.5;
  }

  .ac-problem__row-deco--large {
    width: 200px;
    height: 200px;
  }

  /* Process zigzag collapses to single column */
  .ac-process__step--left,
  .ac-process__step--right {
    padding-left: 0;
    padding-right: 0;
    flex-direction: row;
  }

  .ac-process__steps-zigzag::before {
    display: none;
  }

  /* Industries pills */
  .ac-industries__banner {
    padding: 1.5rem;
  }

  /* Capabilities orbit collapses */
  .ac-capabilities__orbit {
    width: 100%;
    height: auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    position: static;
  }

  .ac-capabilities__center {
    position: static;
    transform: none;
    margin: 0 auto 1rem;
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .ac-cap-pill {
    position: static;
  }

  .ac-case-study {
    padding: 1.5rem;
  }

  .ac-step {
    gap: 1.25rem;
  }

  .ac-step__number {
    min-width: 40px;
  }

  .ac-process__steps::before {
    left: 20px;
  }

  .wp-block-columns {
    flex-direction: column !important;
  }

  .ac-industries__input-wrap {
    padding: 1.5rem;
  }

  .ac-triangle-3d {
    width: 280px;
    height: 280px;
  }

  .ac-deco-hero-triangle {
    width: 180px;
    height: 180px;
    opacity: 0.25;
  }

  .ac-deco-glow {
    width: 500px;
    opacity: 0.25;
  }

  .ac-deco-flow-left,
  .ac-deco-flow-right {
    display: none;
  }

  .ac-footer__chatbot-mini {
    align-items: flex-start;
    margin-top: 1rem;
  }

  /* Watermark responsive rules removed */
}

/* Phone */
@media (max-width: 480px) {
  .ac-hero__ctas {
    flex-direction: column;
    align-items: center;
  }

  .ac-case-study__meta {
    flex-direction: column;
    align-items: flex-start;
  }

  .ac-hero__title {
    font-size: 2.2rem !important;
  }

  .ac-cta {
    border-radius: 24px 24px 0 0;
  }
}
