/**
 * Robustic Automation — brand overrides (Landia template).
 * Loaded after main.css. Primary #4819a5, navy #1a1a2e, light #f8f9fa.
 */

:root {
  --accent-color: #4819a5;
  --nav-hover-color: #4819a5;
  --nav-dropdown-hover-color: #4819a5;
  --heading-color: #1a1a2e;
  --robustic-navy: #1a1a2e;
  --robustic-light: #f8f9fa;
}

/* Stronger tech feel: slightly cooler default text on light sections */
body {
  color: #3a3a45;
}

/* Footer & dark bands lean navy */
.footer {
  background-color: var(--robustic-navy);
  color: rgba(255, 255, 255, 0.88);
}

.footer .footer-links a,
.footer .footer-info p,
.footer .copyright,
.footer .legal-links a {
  color: rgba(255, 255, 255, 0.78);
}

.footer .footer-links a:hover,
.footer .legal-links a:hover {
  color: #fff;
}

.footer h4 {
  color: #fff;
}

.footer .footer-info .logo span,
.footer .footer-info .sitename {
  color: #fff !important;
}

.footer .footer-top {
  border-bottom-color: rgba(255, 255, 255, 0.12) !important;
}

.footer .footer-links ul a {
  color: rgba(255, 255, 255, 0.78) !important;
}

.footer .footer-links ul a:hover {
  color: #fff !important;
}

.footer .social-links a {
  background-color: rgba(255, 255, 255, 0.1) !important;
  color: #fff !important;
}

.footer .copyright .sitename,
.footer .copyright p {
  color: rgba(255, 255, 255, 0.85) !important;
}

.footer .footer-newsletter p {
  color: rgba(255, 255, 255, 0.78);
}

/* Primary outline / ghost buttons pick up brand */
.btn-ghost-action,
.btn-action-ghost {
  border-color: color-mix(in srgb, var(--accent-color), transparent 55%);
}

/* Page title strip — subtle brand tint */
.page-title {
  background: linear-gradient(
    135deg,
    color-mix(in srgb, var(--accent-color), #fff 92%) 0%,
    var(--robustic-light) 55%,
    #fff 100%
  );
}

/* Floating WhatsApp (shared across site) */
.whatsapp-float {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 9999;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  color: #fff !important;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.22);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.whatsapp-float:hover,
.whatsapp-float:focus {
  color: #fff !important;
  transform: scale(1.06);
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.28);
}

/* Subtle pulse on the WhatsApp float so the CTA is noticed */
@media (prefers-reduced-motion: no-preference) {
  .whatsapp-float::before {
    content: "";
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 2px solid rgba(37, 211, 102, 0.55);
    animation: robustic-pulse 2.4s ease-out infinite;
  }
  @keyframes robustic-pulse {
    0%   { transform: scale(0.9); opacity: 0.9; }
    70%  { transform: scale(1.35); opacity: 0; }
    100% { transform: scale(1.35); opacity: 0; }
  }
}

/* Accessible focus rings (keyboard users) */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--accent-color), transparent 55%);
  outline-offset: 2px;
}

/* Honour reduced-motion users for AOS-applied animations */
@media (prefers-reduced-motion: reduce) {
  [data-aos] {
    transition: none !important;
    transform: none !important;
    opacity: 1 !important;
  }
}

/* Tighten mobile typography in hero so headings never overflow */
@media (max-width: 575.98px) {
  .hero h1 { font-size: clamp(1.8rem, 7vw, 2.4rem); line-height: 1.2; }
}

/* ----------------------------------------------------------------------------
 * White pill CTA used on dark CTA bands (about.php, services.php).
 * Hard-coded brand colour because .dark-background redefines --accent-color
 * to white in the template scope.
 * -------------------------------------------------------------------------- */
.btn-cta-light,
.dark-background .btn-cta-light {
  background-color: #ffffff;
  color: #4819a5;
  font-weight: 600;
  border: 1px solid #ffffff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.btn-cta-light:hover,
.btn-cta-light:focus,
.dark-background .btn-cta-light:hover,
.dark-background .btn-cta-light:focus {
  background-color: #4819a5;
  color: #ffffff;
  border-color: #4819a5;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.28);
}
.btn-cta-light i {
  margin-right: 6px;
}

/* ============================================================================
 * Hero section background image + readability overlay
 * - Layer 1 (#hero ::before): brand-tinted dark gradient for text contrast
 * - Layer 2 (#hero ::after):  subtle SVG dot-noise texture for depth
 * Container content (.container) is pushed above the overlays via z-index.
 * ========================================================================== */
#hero.hero {
  position: relative;
  isolation: isolate;
  background-image: url("../img/hero.webp");
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  overflow: hidden;
}

/* Home only: extend hero background under the sticky header (image + overlays
   continue to the top of the viewport; nav stays above via z-index). */
body.index-page #hero.hero {
  --hero-header-overlap: 92px;
  margin-top: calc(-1 * var(--hero-header-overlap));
  padding-top: calc(var(--hero-header-overlap) + 100px);
  z-index: 0;
}

body.index-page #header.header {
  position: sticky;
  z-index: 1000;
}

/* Gradient overlay — dark navy on the left fading to brand violet on the right
   so the headline (always centered) sits on a consistently dark backdrop. */
#hero.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      120deg,
      rgba(26, 26, 46, 0.88) 0%,
      rgba(26, 26, 46, 0.74) 45%,
      rgba(72, 25, 165, 0.78) 100%
    );
  z-index: 0;
  pointer-events: none;
}

/* Subtle SVG dot-noise texture (no extra HTTP request) */
#hero.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 160 160'><g fill='%23ffffff' fill-opacity='0.06'><circle cx='10' cy='10' r='1'/><circle cx='40' cy='25' r='1'/><circle cx='75' cy='12' r='1'/><circle cx='110' cy='30' r='1'/><circle cx='140' cy='18' r='1'/><circle cx='25' cy='55' r='1'/><circle cx='65' cy='70' r='1'/><circle cx='100' cy='58' r='1'/><circle cx='130' cy='75' r='1'/><circle cx='15' cy='95' r='1'/><circle cx='55' cy='110' r='1'/><circle cx='90' cy='98' r='1'/><circle cx='125' cy='115' r='1'/><circle cx='35' cy='140' r='1'/><circle cx='80' cy='150' r='1'/><circle cx='118' cy='142' r='1'/></g></svg>");
  background-size: 160px 160px;
  opacity: 0.55;
  mix-blend-mode: overlay;
  z-index: 1;
  pointer-events: none;
}

/* Push the hero markup above the two overlay layers */
#hero.hero > .container { position: relative; z-index: 2; }

/* Wider hero copy block (~30% over template: 800px → 1040px, paragraph 650px → 845px) */
#hero.hero .hero-text-center {
  max-width: 1040px;
}
#hero.hero .hero-text-center p {
  max-width: 845px;
}

/* Light-on-dark text for legibility against the photo */
#hero.hero .hero-text-center h1 {
  color: #ffffff;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}

#hero.hero .hero-text-center p {
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.30);
}

#hero.hero .hero-text-center p strong {
  color: #ffffff;
}

/* Badge: frosted glass look on the photo */
#hero.hero .hero-text-center .hero-badge {
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

/* Secondary "Talk to an engineer" button stays visible on the dark hero */
#hero.hero .hero-buttons .btn-watch {
  color: #ffffff;
}
#hero.hero .hero-buttons .btn-watch:hover { color: #ffffff; }
#hero.hero .hero-buttons .btn-watch .play-icon {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.35);
}
#hero.hero .hero-buttons .btn-watch .play-icon i { color: #ffffff; }

/* Slightly larger top padding so the headline isn't crammed under the navbar
   once the background takes over the whole strip. */
@media (min-width: 992px) {
  body.index-page #hero.hero {
    --hero-header-overlap: 118px;
    margin-top: calc(-1 * var(--hero-header-overlap));
    padding-top: calc(var(--hero-header-overlap) + 140px);
    padding-bottom: 80px;
  }
}

/* ============================================================================
 * Service Card  (.capability-card.svc-card)
 * Branded, animated card used by services.php, the home "What we do" grid,
 * and the "Explore other services" strip on service-details.php.
 * Matches/exceeds the specificity of `.services .capability-card` template
 * rules; loaded after main.css so equal-specificity rules here win.
 * ========================================================================== */

.capability-card.svc-card {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: #fff;
  border: 1px solid rgba(72, 25, 165, 0.08);
  border-radius: 16px;
  padding: 28px 24px 24px;
  box-shadow: 0 4px 18px rgba(26, 26, 46, 0.05);
  transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1),
              box-shadow 0.35s ease,
              border-color 0.35s ease;
  display: flex;
  flex-direction: column;
}

/* Soft brand glow blob in the top-right */
.capability-card.svc-card::before {
  content: "";
  position: absolute;
  top: -50px;
  right: -50px;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(72, 25, 165, 0.14), transparent 70%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  z-index: 0;
}

/* Thin brand stripe at the top that grows on hover */
.capability-card.svc-card::after {
  content: "";
  position: absolute;
  left: 24px;
  top: 0;
  height: 3px;
  width: 48px;
  background: linear-gradient(90deg, #4819a5 0%, #7b3ce0 100%);
  border-radius: 0 0 6px 6px;
  transition: width 0.45s cubic-bezier(0.2, 0.7, 0.2, 1);
  z-index: 1;
}

.capability-card.svc-card:hover {
  transform: translateY(-6px);
  border-color: rgba(72, 25, 165, 0.25);
  box-shadow: 0 14px 36px rgba(72, 25, 165, 0.15);
}

.capability-card.svc-card:hover::before { opacity: 1; }
.capability-card.svc-card:hover::after  { width: calc(100% - 48px); }

/* Place the body above the decorations */
.capability-card.svc-card > * { position: relative; z-index: 2; }

/* --- Icon block ---------------------------------------------------------- */
.capability-card.svc-card .card-icon {
  margin-bottom: 20px;
  display: inline-flex;
}

.capability-card.svc-card .card-icon i {
  width: 56px;
  height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  color: #4819a5;
  background: linear-gradient(135deg, rgba(72, 25, 165, 0.10), rgba(123, 60, 224, 0.18));
  border-radius: 14px;
  transition: transform 0.35s ease,
              background 0.35s ease,
              color 0.35s ease,
              box-shadow 0.35s ease;
}

.capability-card.svc-card:hover .card-icon i {
  background: linear-gradient(135deg, #4819a5 0%, #6c2bd9 100%);
  color: #fff;
  transform: rotate(-4deg) scale(1.05);
  box-shadow: 0 8px 22px rgba(72, 25, 165, 0.35);
}

/* --- Body ---------------------------------------------------------------- */
.capability-card.svc-card .card-body-content { flex: 1; }

.capability-card.svc-card .card-body-content .card-heading {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.capability-card.svc-card .card-body-content .card-heading a {
  color: #1a1a2e;
  text-decoration: none;
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0 2px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  transition: color 0.25s ease, background-size 0.4s ease;
}

.capability-card.svc-card .card-body-content .card-heading a:hover {
  color: #4819a5;
  background-size: 100% 2px;
}

.capability-card.svc-card .card-body-content .card-text {
  font-size: 0.92rem;
  line-height: 1.55;
  color: #5b5b68;
  margin-bottom: 0;
}

/* --- Footer / call-to-action --------------------------------------------- */
.capability-card.svc-card .card-foot {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px dashed rgba(72, 25, 165, 0.18);
}

.capability-card.svc-card .card-foot .card-link {
  font-size: 0.78rem;
  font-weight: 600;
  color: #4819a5;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: gap 0.25s ease, color 0.25s ease;
  text-decoration: none;
}

.capability-card.svc-card .card-foot .card-link i {
  display: inline-flex;
  width: 24px;
  height: 24px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(72, 25, 165, 0.10);
  font-size: 13px;
  transform: none;
  transition: background 0.25s ease,
              color 0.25s ease,
              transform 0.25s ease;
}

.capability-card.svc-card:hover .card-foot .card-link        { gap: 12px; }
.capability-card.svc-card:hover .card-foot .card-link i      { background: #4819a5; color: #fff; transform: translateX(2px); }

/* Reduced-motion: tone down the hover translation but keep the colour cues */
@media (prefers-reduced-motion: reduce) {
  .capability-card.svc-card,
  .capability-card.svc-card .card-icon i,
  .capability-card.svc-card::after,
  .capability-card.svc-card .card-foot .card-link,
  .capability-card.svc-card .card-foot .card-link i {
    transition: none;
  }
  .capability-card.svc-card:hover { transform: none; }
  .capability-card.svc-card:hover .card-icon i { transform: none; }
}

/* Compact spacing on small screens */
@media (max-width: 575.98px) {
  .capability-card.svc-card { padding: 22px 18px 20px; border-radius: 14px; }
  .capability-card.svc-card .card-icon i { width: 50px; height: 50px; font-size: 22px; border-radius: 12px; }
}

/* ============================================================================
 * Services hub & category pages (#4819a5)
 * ========================================================================== */

.svc-hub-hero {
  background: linear-gradient(145deg, #f8f9fc 0%, #ede8f8 55%, #f5f3fa 100%);
  padding-top: 2rem;
  padding-bottom: 2.5rem;
}

.svc-hub-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: rgba(72, 25, 165, 0.1);
  color: #4819a5;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.svc-hub-title,
.svc-cat-hero-title,
.svc-section-heading {
  color: #4819a5;
  font-weight: 700;
}

.svc-hub-title { font-size: clamp(1.75rem, 4vw, 2.5rem); }
.svc-cat-hero-title { font-size: clamp(1.5rem, 3.5vw, 2.25rem); }

.svc-hub-sub,
.svc-cat-hero-sub {
  color: #3d3d52;
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
}

.svc-hub-intro,
.svc-section-intro {
  color: #5c5c72;
  font-size: 1.05rem;
  line-height: 1.7;
}

.svc-trust-line {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
  margin-top: 1rem;
  margin-bottom: 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: #4819a5;
}

.svc-trust-line i { color: #4819a5; }

.svc-breadcrumb .breadcrumb-item a {
  color: #4819a5;
  text-decoration: none;
}

.svc-breadcrumb .breadcrumb-item.active { color: #6b6b80; }

.svc-cat-hero {
  padding-top: 1.5rem;
  padding-bottom: 1.75rem;
}

.svc-video-section .svc-video-frame {
  border: 1px solid rgba(72, 25, 165, 0.12);
  max-width: 960px;
  margin: 0 auto;
}

.svc-video-section iframe {
  border: 0;
}

.capability-card.svc-hub-card .card-foot {
  margin-top: auto;
  padding-top: 1rem;
}

.svc-hub-card-link {
  color: inherit;
}

.svc-hub-card-link:hover .card-heading {
  color: #4819a5;
}

.svc-hub-card-link .btn-svc-primary {
  pointer-events: none;
}

.btn-svc-primary {
  background: #4819a5;
  border-color: #4819a5;
  color: #fff;
  font-weight: 600;
  border-radius: 8px;
  padding: 0.5rem 1rem;
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.2s ease;
}

.btn-svc-primary:hover {
  background: #3a1484;
  border-color: #3a1484;
  color: #fff;
  transform: translateY(-1px);
}

.btn-svc-outline {
  background: transparent;
  border: 1px solid #4819a5;
  color: #4819a5;
  font-weight: 600;
  border-radius: 8px;
  padding: 0.5rem 1rem;
  transition: background 0.25s ease, color 0.25s ease;
}

.btn-svc-outline:hover {
  background: rgba(72, 25, 165, 0.08);
  color: #4819a5;
  border-color: #4819a5;
}

.svc-subcard {
  display: flex;
  flex-direction: column;
}

.svc-card-media img,
.svc-subcard-media img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border: 1px solid rgba(72, 25, 165, 0.12);
}

.svc-subcard .card-heading a {
  color: #1a1a2e;
  text-decoration: none;
  transition: color 0.2s ease;
}

.svc-subcard .card-heading a:hover { color: #4819a5; }

.svc-learn-more {
  display: inline-block;
  margin-top: 0.5rem;
  color: #4819a5;
  font-weight: 600;
  text-decoration: none;
}

.svc-learn-more:hover { text-decoration: underline; }

.svc-cta-band .btn-outline-light {
  border-color: rgba(255, 255, 255, 0.65);
  color: #fff;
}

.svc-cta-band .btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.tag-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #4819a5;
  margin-bottom: 0.5rem;
}

/* Service details "Capabilities included": show icon checks only (no bullets). */
.service-details .service-tabs .tab-content .overview-block .check-list {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.service-details .service-tabs .tab-content .overview-block .check-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  margin-bottom: 0.5rem;
}

.service-details .service-tabs .tab-content .overview-block .check-list li:last-child {
  margin-bottom: 0;
}
