/*
Theme Name: Apergu Theme
Theme URI: https://www.apergu.com
Description: Custom child theme for Apergu Solutions built for Elementor Pro. BPR-first technology consultancy.
Author: Apergu Solutions
Author URI: https://www.apergu.com
Template: hello-elementor
Version: 1.0.0
Text Domain: apergu
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
*/

/* ============================================================
   APERGU THEME — GLOBAL CUSTOM CSS
   Built on Hello Elementor (lightweight Elementor starter theme)
   ============================================================ */

/* ---- CSS Custom Properties (Brand Tokens) ---- */
:root {
  /* Brand Colors */
  --ap-primary: #005461;
  --ap-primary-dark: #003d49;
  --ap-secondary-light: #F3F4F4;
  --ap-secondary-dark: #061E29;
  --ap-accent: #00A3BF;
  --ap-accent-warm: #E8B931;
  --ap-white: #ffffff;

  /* Neutral Grays */
  --ap-g50: #F9FAFB;
  --ap-g100: #F3F4F6;
  --ap-g200: #E5E7EB;
  --ap-g300: #D1D5DB;
  --ap-g400: #9CA3AF;
  --ap-g500: #6B7280;
  --ap-g600: #4B5563;
  --ap-g700: #374151;
  --ap-g800: #1F2937;
  --ap-g900: #111827;

  /* Typography Families */
  --ap-serif: 'Lora', Georgia, serif;
  --ap-sans: 'DM Sans', sans-serif;
  --ap-body: 'Lato', sans-serif;

  /* Spacing */
  --ap-radius: 8px;
  --ap-radius-lg: 16px;

  /* Shadows */
  --ap-shadow-sm: 0 1px 2px rgba(0,0,0,0.06);
  --ap-shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --ap-shadow-lg: 0 12px 32px rgba(0,0,0,0.12);

  /* Transitions */
  --ap-transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}


/* ---- Global Reset & Base ---- */
body {
  font-family: var(--ap-body);
  color: var(--ap-g800);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

*, *::before, *::after {
  box-sizing: border-box;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  text-decoration: none;
  transition: var(--ap-transition);
}


/* ---- Typography Classes ---- */
.ap-section-label {
  font-family: var(--ap-sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--ap-accent);
  margin-bottom: 12px;
}

.ap-section-title {
  font-family: var(--ap-serif);
  font-weight: 700;
  line-height: 1.2;
  color: var(--ap-g900);
  margin-bottom: 16px;
}

.ap-section-title--h1 { font-size: clamp(36px, 5vw, 54px); }
.ap-section-title--h2 { font-size: clamp(28px, 4vw, 42px); }
.ap-section-title--h3 { font-size: clamp(22px, 3vw, 30px); }

.ap-subtitle {
  font-size: 17px;
  color: var(--ap-g500);
  max-width: 640px;
  line-height: 1.7;
}

.ap-heading-serif {
  font-family: var(--ap-serif);
  font-weight: 700;
}

.ap-text-sans {
  font-family: var(--ap-sans);
}

.ap-text-body {
  font-family: var(--ap-body);
  font-size: 16px;
  line-height: 1.8;
  color: var(--ap-g600);
}

.ap-accent-italic {
  color: var(--ap-accent);
  font-style: italic;
}


/* ---- Button Styles ---- */
.ap-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--ap-sans);
  font-weight: 600;
  font-size: 15px;
  padding: 14px 28px;
  border-radius: var(--ap-radius);
  border: none;
  cursor: pointer;
  transition: var(--ap-transition);
  text-decoration: none;
  line-height: 1.4;
}

.ap-btn--primary {
  background: var(--ap-primary);
  color: var(--ap-white);
}
.ap-btn--primary:hover {
  background: var(--ap-primary-dark);
  transform: translateY(-1px);
  box-shadow: var(--ap-shadow-md);
}

.ap-btn--white {
  background: var(--ap-white);
  color: var(--ap-primary);
}
.ap-btn--white:hover {
  background: var(--ap-g100);
  transform: translateY(-1px);
  box-shadow: var(--ap-shadow-md);
}

.ap-btn--outline {
  background: transparent;
  color: var(--ap-primary);
  border: 1.5px solid var(--ap-primary);
}
.ap-btn--outline:hover {
  background: var(--ap-primary);
  color: var(--ap-white);
}

.ap-btn--accent {
  background: var(--ap-accent-warm);
  color: var(--ap-secondary-dark);
}
.ap-btn--accent:hover {
  background: #d49a1a;
  transform: translateY(-1px);
}

.ap-btn--ghost-white {
  background: rgba(255,255,255,0.12);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.25);
}
.ap-btn--ghost-white:hover {
  background: rgba(255,255,255,0.2);
}

.ap-btn--whatsapp {
  background: #25D366;
  color: #fff;
}
.ap-btn--whatsapp:hover {
  background: #20bd5a;
}

.ap-btn--small {
  padding: 10px 20px;
  font-size: 13px;
}

.ap-link-arrow {
  font-family: var(--ap-sans);
  font-size: 13px;
  font-weight: 600;
  color: var(--ap-primary);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--ap-transition);
}
.ap-link-arrow:hover {
  gap: 10px;
  color: var(--ap-primary-dark);
}


/* ---- Card Styles ---- */
.ap-card {
  background: var(--ap-white);
  border: 1px solid var(--ap-g200);
  border-radius: var(--ap-radius-lg);
  padding: 36px 28px;
  transition: var(--ap-transition);
}
.ap-card:hover {
  border-color: transparent;
  box-shadow: var(--ap-shadow-lg);
  transform: translateY(-4px);
}

.ap-card--dark {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
}
.ap-card--dark:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(0,163,191,0.4);
  transform: translateY(-4px);
}

.ap-card__icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  margin-bottom: 24px;
}

.ap-card__title {
  font-family: var(--ap-serif);
  font-size: 18px;
  font-weight: 600;
  color: var(--ap-g800);
  margin-bottom: 8px;
}

.ap-card__meta {
  font-family: var(--ap-sans);
  font-size: 12px;
  color: var(--ap-g400);
  margin-bottom: 12px;
  font-weight: 500;
}

.ap-card__text {
  font-size: 14px;
  color: var(--ap-g500);
  line-height: 1.7;
  margin-bottom: 20px;
}


/* ---- Problem Cards (top-border hover effect) ---- */
.ap-problem-card {
  background: var(--ap-white);
  border: 1px solid var(--ap-g200);
  border-radius: var(--ap-radius-lg);
  padding: 28px;
  transition: var(--ap-transition);
  position: relative;
  overflow: hidden;
}
.ap-problem-card:hover {
  border-color: var(--ap-primary);
  box-shadow: var(--ap-shadow-md);
  transform: translateY(-4px);
}
.ap-problem-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--ap-primary), var(--ap-accent));
  opacity: 0;
  transition: var(--ap-transition);
}
.ap-problem-card:hover::before { opacity: 1; }


/* ---- Stats Row ---- */
.ap-stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--ap-g200);
  border-radius: var(--ap-radius-lg);
  overflow: hidden;
  background: var(--ap-white);
}
.ap-stat {
  text-align: center;
  padding: 36px 24px;
  border-right: 1px solid var(--ap-g200);
}
.ap-stat:last-child { border-right: none; }
.ap-stat__number {
  font-family: var(--ap-serif);
  font-size: 44px;
  font-weight: 700;
  font-style: italic;
  color: var(--ap-primary);
  line-height: 1;
  margin-bottom: 8px;
}
.ap-stat__label {
  font-family: var(--ap-sans);
  font-size: 14px;
  color: var(--ap-g500);
}


/* ---- Testimonial Carousel ---- */
.ap-testimonial-card {
  background: var(--ap-white);
  border: 1px solid var(--ap-g200);
  border-radius: var(--ap-radius-lg);
  padding: 36px;
}
.ap-testimonial-card__quote {
  font-family: var(--ap-serif);
  font-size: 15px;
  font-style: italic;
  color: var(--ap-g600);
  line-height: 1.8;
}
.ap-testimonial-card__author {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--ap-g100);
}
.ap-testimonial-card__avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--ap-sans);
  font-weight: 700;
  font-size: 16px;
  color: var(--ap-white);
  background: var(--ap-primary);
}
.ap-testimonial-card__name {
  font-family: var(--ap-sans);
  font-weight: 600;
  font-size: 14px;
  color: var(--ap-g800);
}
.ap-testimonial-card__role {
  font-size: 12px;
  color: var(--ap-g400);
}


/* ---- Featured Case Study (Split Panel) ---- */
.ap-case-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-radius: var(--ap-radius-lg);
  overflow: hidden;
  min-height: 480px;
}
.ap-case-split__metric {
  background: linear-gradient(160deg, var(--ap-primary), var(--ap-secondary-dark));
  padding: 48px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}
.ap-case-split__metric::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 400px; height: 400px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.08);
  transform: translate(-30%, -50%);
}
.ap-case-split__detail {
  background: var(--ap-g50);
  padding: 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.ap-case-split__value {
  font-family: var(--ap-serif);
  font-size: 72px;
  font-weight: 700;
  color: var(--ap-white);
  line-height: 1;
}
.ap-case-split__desc {
  font-size: 15px;
  color: rgba(255,255,255,0.7);
  margin-top: 8px;
  line-height: 1.5;
}

.ap-checklist {
  list-style: none;
  padding: 0;
  margin: 0 0 28px 0;
}
.ap-checklist li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 6px 0;
  font-size: 14px;
  color: var(--ap-g600);
  line-height: 1.6;
}
.ap-checklist li::before {
  content: '✓';
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  background: rgba(0,163,191,0.1);
  color: var(--ap-accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  margin-top: 2px;
}


/* ---- AI Demo Panel ---- */
.ap-ai-demo {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--ap-radius-lg);
  overflow: hidden;
}
.ap-ai-demo__header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 24px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.ap-ai-demo__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #6BCB77;
  animation: ap-pulse 2s infinite;
}
@keyframes ap-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}
.ap-ai-demo__label {
  font-family: var(--ap-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--ap-accent);
}
.ap-ai-demo__body { padding: 24px; }

.ap-chat-bubble {
  padding: 14px 18px;
  border-radius: 12px;
  margin-bottom: 16px;
  font-size: 14px;
  line-height: 1.6;
}
.ap-chat-bubble--user {
  background: rgba(0,163,191,0.15);
  color: var(--ap-accent);
  margin-left: 20%;
  border-bottom-right-radius: 4px;
  font-style: italic;
}
.ap-chat-bubble--ai {
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.85);
  border-bottom-left-radius: 4px;
}

.ap-bar-chart__row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
  font-family: var(--ap-sans);
  font-size: 13px;
}
.ap-bar-chart__label {
  width: 80px;
  color: rgba(255,255,255,0.5);
  text-align: right;
  flex-shrink: 0;
}
.ap-bar-chart__track {
  flex: 1;
  height: 20px;
  background: rgba(255,255,255,0.06);
  border-radius: 4px;
  overflow: hidden;
}
.ap-bar-chart__fill {
  height: 100%;
  border-radius: 4px;
  transition: width 1.5s ease;
}
.ap-bar-chart__fill--green { background: linear-gradient(90deg, #059669, #34D399); }
.ap-bar-chart__fill--orange { background: linear-gradient(90deg, #EA580C, #F59E0B); }
.ap-bar-chart__fill--blue { background: linear-gradient(90deg, #0891B2, #06B6D4); }
.ap-bar-chart__fill--red { background: linear-gradient(90deg, #DC2626, #F87171); }
.ap-bar-chart__value {
  width: 48px;
  font-weight: 600;
  flex-shrink: 0;
}
.ap-bar-chart__value--positive { color: #34D399; }
.ap-bar-chart__value--negative { color: #F87171; }


/* ---- Package Cards ---- */
.ap-package {
  background: var(--ap-white);
  border: 1px solid var(--ap-g200);
  border-radius: var(--ap-radius-lg);
  overflow: hidden;
  transition: var(--ap-transition);
}
.ap-package:hover {
  box-shadow: var(--ap-shadow-lg);
  transform: translateY(-4px);
}
.ap-package--featured {
  border-color: var(--ap-primary);
  position: relative;
}
.ap-package--featured::before {
  content: 'MOST POPULAR';
  position: absolute;
  top: 0; left: 0; right: 0;
  background: var(--ap-primary);
  color: var(--ap-white);
  text-align: center;
  font-family: var(--ap-sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  padding: 8px;
}
.ap-package__header { padding: 36px 28px 20px; }
.ap-package--featured .ap-package__header { padding-top: 52px; }
.ap-package__title {
  font-family: var(--ap-serif);
  font-size: 22px;
  font-weight: 700;
  color: var(--ap-g900);
  margin-bottom: 8px;
}
.ap-package__desc {
  font-size: 14px;
  color: var(--ap-g500);
  line-height: 1.6;
}


/* ---- Story Cards (timeline) ---- */
.ap-story {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 32px;
  padding: 32px;
  background: var(--ap-white);
  border: 1px solid var(--ap-g200);
  border-radius: var(--ap-radius-lg);
  margin-bottom: 20px;
}
.ap-story__timeline {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 48px;
}
.ap-story__dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--ap-primary);
  margin-bottom: 8px;
}
.ap-story__line {
  width: 2px;
  flex: 1;
  background: var(--ap-g200);
}

.ap-story__phases {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
  margin-top: 16px;
}
.ap-story__phase {
  padding: 16px;
  background: var(--ap-g50);
  border-radius: 8px;
}
.ap-story__phase-label {
  font-family: var(--ap-sans);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.ap-story__phase-label--before { color: #DC2626; }
.ap-story__phase-label--solution { color: var(--ap-primary); }
.ap-story__phase-label--outcome { color: #059669; }


/* ---- Tag / Badge ---- */
.ap-tag {
  font-family: var(--ap-sans);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.5px;
  padding: 4px 10px;
  border-radius: 100px;
  background: rgba(0,84,97,0.08);
  color: var(--ap-primary);
  display: inline-block;
  margin: 2px;
}

.ap-industry-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--ap-sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--ap-primary);
  background: rgba(0,84,97,0.08);
  padding: 6px 14px;
  border-radius: 100px;
}


/* ---- Management Hover Cards ---- */
.ap-mgmt-card {
  position: relative;
  height: 420px;
  border-radius: var(--ap-radius-lg);
  overflow: hidden;
  background: var(--ap-g100);
  border: 1px solid var(--ap-g200);
  cursor: pointer;
}
.ap-mgmt-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(6,30,41,0.95) 100%);
  opacity: 0;
  transition: opacity 0.5s ease;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 36px;
}
.ap-mgmt-card:hover .ap-mgmt-card__overlay { opacity: 1; }
.ap-mgmt-card__name {
  font-family: var(--ap-serif);
  font-size: 22px;
  font-weight: 700;
  color: var(--ap-white);
  margin-bottom: 4px;
}
.ap-mgmt-card__title {
  font-family: var(--ap-sans);
  font-size: 13px;
  font-weight: 600;
  color: var(--ap-accent);
  margin-bottom: 12px;
}
.ap-mgmt-card__bio {
  font-size: 13px;
  color: rgba(255,255,255,0.7);
  line-height: 1.7;
}


/* ---- Team Carousel Cards ---- */
.ap-team-card {
  background: var(--ap-white);
  border: 1px solid var(--ap-g200);
  border-radius: var(--ap-radius-lg);
  overflow: hidden;
  text-align: center;
  transition: var(--ap-transition);
}
.ap-team-card:hover {
  box-shadow: var(--ap-shadow-md);
  transform: translateY(-4px);
}
.ap-team-card__photo {
  height: 200px;
  background: var(--ap-g100);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
}
.ap-team-card__info { padding: 16px; }
.ap-team-card__name {
  font-family: var(--ap-sans);
  font-size: 14px;
  font-weight: 600;
  color: var(--ap-g800);
  margin-bottom: 2px;
}
.ap-team-card__role {
  font-size: 12px;
  color: var(--ap-g400);
}


/* ---- Value Cards ---- */
.ap-value-card {
  text-align: center;
  padding: 28px 16px;
  background: var(--ap-g50);
  border: 1px solid var(--ap-g200);
  border-radius: var(--ap-radius-lg);
  transition: var(--ap-transition);
}
.ap-value-card:hover {
  border-color: var(--ap-primary);
  box-shadow: var(--ap-shadow-md);
  transform: translateY(-4px);
}
.ap-value-card__icon { font-size: 32px; margin-bottom: 12px; }


/* ---- Location Cards ---- */
.ap-location-card {
  background: linear-gradient(135deg, var(--ap-primary), var(--ap-secondary-dark));
  border-radius: var(--ap-radius-lg);
  padding: 36px;
  color: var(--ap-white);
  position: relative;
  overflow: hidden;
}
.ap-location-card::before {
  content: '';
  position: absolute;
  top: -20%; right: -20%;
  width: 200px; height: 200px;
  border-radius: 50%;
  background: rgba(0,163,191,0.15);
  pointer-events: none;
}


/* ---- Architecture Diagram ---- */
.ap-arch-layer {
  display: flex;
  align-items: stretch;
  margin-bottom: 4px;
  border-radius: 8px;
  overflow: hidden;
}
.ap-arch-label {
  width: 160px;
  padding: 16px;
  font-family: var(--ap-sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--ap-white);
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.ap-arch-items {
  flex: 1;
  display: flex;
  gap: 4px;
  padding: 4px;
}
.ap-arch-item {
  flex: 1;
  padding: 12px 16px;
  background: rgba(255,255,255,0.08);
  border-radius: 6px;
  font-family: var(--ap-sans);
  font-size: 12px;
  color: rgba(255,255,255,0.8);
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}


/* ---- Dev Flow Steps ---- */
.ap-dev-step {
  flex: 1;
  min-width: 160px;
  text-align: center;
  padding: 24px 16px;
  background: var(--ap-g50);
  border: 1px solid var(--ap-g200);
  position: relative;
}
.ap-dev-step:first-child { border-radius: var(--ap-radius-lg) 0 0 var(--ap-radius-lg); }
.ap-dev-step:last-child { border-radius: 0 var(--ap-radius-lg) var(--ap-radius-lg) 0; }
.ap-dev-step::after {
  content: '→';
  position: absolute;
  right: -12px; top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
  color: var(--ap-g300);
  z-index: 1;
}
.ap-dev-step:last-child::after { display: none; }


/* ---- Consulting Table ---- */
.ap-consul-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.ap-consul-table th {
  background: var(--ap-primary);
  color: var(--ap-white);
  padding: 12px 16px;
  text-align: left;
  font-family: var(--ap-sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.ap-consul-table td {
  padding: 10px 16px;
  border-bottom: 1px solid var(--ap-g200);
  color: var(--ap-g600);
}
.ap-consul-table tr:hover td { background: var(--ap-g50); }
.ap-consul-table .ap-cat-cell {
  font-weight: 700;
  color: var(--ap-g800);
  background: var(--ap-g50);
  font-family: var(--ap-sans);
  vertical-align: top;
}


/* ---- Screenshot Placeholder ---- */
.ap-screenshot-placeholder {
  height: 200px;
  background: var(--ap-g100);
  border: 2px dashed var(--ap-g300);
  border-radius: var(--ap-radius-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--ap-g400);
  font-family: var(--ap-sans);
  font-size: 13px;
  gap: 8px;
}


/* ---- FAQ Accordion ---- */
.ap-faq__item {
  border: 1px solid var(--ap-g200);
  border-radius: var(--ap-radius);
  margin-bottom: 12px;
  overflow: hidden;
}
.ap-faq__question {
  font-family: var(--ap-sans);
  font-weight: 600;
  font-size: 15px;
  color: var(--ap-g800);
  padding: 18px 24px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--ap-g50);
  transition: var(--ap-transition);
}
.ap-faq__question:hover { background: var(--ap-g100); }
.ap-faq__answer {
  padding: 0 24px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}
.ap-faq__answer.open {
  padding: 18px 24px;
  max-height: 300px;
}


/* ---- Hero Background Animation ---- */
.ap-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: 60px 60px;
  animation: ap-grid-move 20s linear infinite;
  pointer-events: none;
}
@keyframes ap-grid-move {
  0% { transform: translate(0, 0); }
  100% { transform: translate(60px, 60px); }
}


/* ---- Floating Elements ---- */
.ap-float {
  position: absolute;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 12px;
  padding: 12px 18px;
  backdrop-filter: blur(6px);
  font-family: var(--ap-sans);
  font-size: 13px;
  color: #fff;
  animation: ap-float 6s ease-in-out infinite;
}
@keyframes ap-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}


/* ---- Dashboard Mock ---- */
.ap-dashboard-mock {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--ap-radius-lg);
  padding: 24px;
  backdrop-filter: blur(8px);
}
.ap-dashboard-mock__dots {
  display: flex;
  gap: 6px;
  margin-bottom: 20px;
}
.ap-dashboard-mock__dots span {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
}
.ap-dashboard-mock__dots span:nth-child(1) { background: #FF6B6B; }
.ap-dashboard-mock__dots span:nth-child(2) { background: #FFD93D; }
.ap-dashboard-mock__dots span:nth-child(3) { background: #6BCB77; }


/* ---- WhatsApp Floating Button ---- */
.ap-whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9998;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.4);
  cursor: pointer;
  transition: var(--ap-transition);
}
.ap-whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 28px rgba(37,211,102,0.5);
}
.ap-whatsapp-float img { width: 32px; height: 32px; }


/* ---- Client Logos Row ---- */
.ap-client-logo {
  height: 36px;
  padding: 8px 20px;
  border-radius: 8px;
  background: var(--ap-g100);
  display: flex;
  align-items: center;
  font-family: var(--ap-sans);
  font-weight: 700;
  font-size: 14px;
  color: var(--ap-g400);
  transition: var(--ap-transition);
}
.ap-client-logo:hover {
  color: var(--ap-primary);
  background: var(--ap-g50);
}


/* ---- Responsive Overrides ---- */
@media (max-width: 1024px) {
  .ap-case-split { grid-template-columns: 1fr; }
  .ap-stats-row { grid-template-columns: repeat(2, 1fr); }
  .ap-stat { border-bottom: 1px solid var(--ap-g200); }
  .ap-story__phases { grid-template-columns: 1fr; }
  .ap-mgmt-card { height: 360px; }
  .ap-dev-step {
    border-radius: var(--ap-radius) !important;
  }
  .ap-dev-step::after { display: none; }
}

@media (max-width: 768px) {
  .ap-stats-row { grid-template-columns: 1fr; }
  .ap-case-split__value { font-size: 48px; }
  .ap-arch-layer { flex-direction: column; }
  .ap-arch-label { width: 100%; }
  .ap-arch-items { flex-direction: column; }
}
