/*
Theme Name: PreferHub
Theme URI: https://www.preferhub.com/
Author: PreferHub Enterprise Engineering
Author URI: https://www.preferhub.com/
Description: Production-ready custom WordPress theme for PreferHub Enterprise Consulting (Oracle Fusion Cloud & AI Agents across GCC).
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: preferhub
Tags: custom-menu, custom-logo, featured-images, full-width-template, responsive-layout, translation-ready
*/

/* ==========================================================================
   PreferHub — Enterprise Consulting
   style.css — design tokens, components, sections, animations, responsive
   ========================================================================== */

/* ---------- 1. Design tokens ---------- */
:root {
  --primary: #0b1f3a;
  --secondary: #3b82f6;
  --accent: #d946ef;
  --success: #10b981;
  --bg: #ffffff;
  --bg-alt: #f8fafc;
  --dark: #0f172a;
  --text: #1f2937;
  --muted: #64748b;

  --border: rgba(15, 23, 42, 0.08);
  --gradient-brand: linear-gradient(120deg, var(--secondary), var(--accent));
  --gradient-dark: linear-gradient(140deg, #0b1f3a 0%, #0f172a 60%, #131c33 100%);
  --shadow-sm: 0 2px 10px rgba(11, 31, 58, 0.06);
  --shadow-md: 0 14px 40px -18px rgba(11, 31, 58, 0.28);
  --shadow-lg: 0 34px 70px -30px rgba(11, 31, 58, 0.42);
  --radius: 20px;
  --radius-sm: 12px;
  --container: 1240px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- 2. Base ---------- */
* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: "Poppins", "Inter", sans-serif;
  color: var(--primary);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 0.6em;
  font-weight: 700;
}

h1 { font-size: clamp(2.4rem, 4.4vw, 4.1rem); }
h2 { font-size: clamp(1.9rem, 2.9vw, 2.9rem); }
h3 { font-size: clamp(1.15rem, 1.4vw, 1.4rem); }

p { margin: 0 0 1rem; color: var(--muted); }
img { max-width: 100%; display: block; }
a { color: var(--secondary); text-decoration: none; transition: color 0.25s var(--ease); }
a:hover { color: var(--accent); }
ul { margin: 0; padding: 0; list-style: none; }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 2000;
  background: var(--primary);
  color: #fff;
  padding: 12px 20px;
  border-radius: 0 0 10px 0;
}
.skip-link:focus { left: 0; color: #fff; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section { padding: 110px 0; position: relative; background: #ffffff; }
.section--alt { background: var(--bg-alt); }
.section--dark { background: var(--gradient-dark); color: #cbd5e1; }
.section--dark h2,
.section--dark h3,
.section--dark h4 { color: #ffffff; }
.section--dark p { color: #94a3b8; }

/* Elementor editor wrapper background guarantees */
.elementor-widget-preferhub_about .section,
.elementor-widget-preferhub_industries .section,
.elementor-widget-preferhub_process .section,
.elementor-widget-preferhub_testimonials .section {
  background: #ffffff !important;
}

.elementor-widget-preferhub_services .section--alt,
.elementor-widget-preferhub_why .section--alt,
.elementor-widget-preferhub_case_studies .section--alt,
.elementor-widget-preferhub_faq .section--alt,
.elementor-widget-preferhub_contact .section--alt {
  background: var(--bg-alt) !important;
}

.elementor-widget-preferhub_technology .section--dark,
.elementor-widget-preferhub_metrics .section--dark {
  background: var(--gradient-dark) !important;
}

/* Guarantee all data-reveal elements and 3D orbit panel render immediately in Elementor Editor */
.elementor-editor-active [data-reveal],
.elementor-editor-active .hero__panel {
  opacity: 1 !important;
  transform: none !important;
  visibility: visible !important;
}

.elementor-editor-active .orbit__ring {
  animation: spin 22s linear infinite !important;
}

.elementor-editor-active .orbit__chip {
  animation: spin-rev 22s linear infinite !important;
}



/* ---------- 3. Utilities ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--secondary);
  background: rgba(29, 78, 216, 0.09);
  border: 1px solid rgba(29, 78, 216, 0.18);
  padding: 7px 16px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.section--dark .eyebrow {
  color: #c4b5fd;
  background: rgba(124, 58, 237, 0.16);
  border-color: rgba(196, 181, 253, 0.28);
}

.section-head { max-width: 760px; margin-bottom: 60px; }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { font-size: 1.06rem; }

.text-gradient {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.grid { display: grid; gap: 26px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* ---------- 4. Buttons ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  font-size: 0.96rem;
  padding: 15px 30px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background 0.35s var(--ease), color 0.35s var(--ease);
}
.btn:hover { transform: translateY(-3px); }
.btn--primary {
  background: var(--gradient-brand);
  color: #fff;
  box-shadow: 0 18px 36px -18px rgba(124, 58, 237, 0.85);
}
.btn--primary:hover { color: #fff; box-shadow: 0 24px 46px -18px rgba(124, 58, 237, 0.95); }
.btn--ghost {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.32);
  color: #ffffff;
  backdrop-filter: blur(10px);
}
.btn--ghost:hover { background: rgba(255, 255, 255, 0.18); color: #fff; }
.btn--outline { background: #fff; border-color: var(--border); color: var(--primary); box-shadow: var(--shadow-sm); }
.btn--outline:hover { color: var(--secondary); border-color: rgba(29, 78, 216, 0.4); }
.btn--sm { padding: 11px 22px; font-size: 0.88rem; }
.btn--block { width: 100%; }

/* ripple */
.ripple {
  position: absolute;
  border-radius: 50%;
  transform: scale(0);
  background: rgba(255, 255, 255, 0.45);
  animation: ripple 0.65s linear;
  pointer-events: none;
}
@keyframes ripple { to { transform: scale(3.2); opacity: 0; } }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.92rem;
}
.link-arrow svg { transition: transform 0.3s var(--ease); }
.link-arrow:hover svg { transform: translateX(5px); }

/* ---------- 5. Scroll progress + navbar ---------- */
.scroll-progress {
  position: fixed;
  inset: 0 auto auto 0;
  height: 3px;
  width: 0;
  background: var(--gradient-brand);
  z-index: 1200;
  transition: width 0.1s linear;
}

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1100;
  padding: 18px 0;
  transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease), padding 0.4s var(--ease);
}
.navbar.is-stuck {
  padding: 10px 0;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(18px) saturate(160%);
  box-shadow: 0 10px 30px -22px rgba(11, 31, 58, 0.6);
  border-bottom: 1px solid var(--border);
}
.navbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand__mark {
  width: 42px; height: 42px; border-radius: 13px;
  background: var(--gradient-brand);
  display: grid; place-items: center;
  color: #fff; font-family: "Poppins", sans-serif; font-weight: 700;
  box-shadow: 0 12px 26px -14px rgba(124, 58, 237, 0.9);
}
.brand__name { font-family: "Poppins", sans-serif; font-weight: 700; font-size: 1.2rem; color: #fff; letter-spacing: -0.02em; }
.brand__name span { color: #a5b4fc; }
.navbar.is-stuck .brand__name { color: var(--primary); }
.navbar.is-stuck .brand__name span { color: var(--secondary); }

.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  position: relative;
  padding: 9px 13px;
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.82);
  border-radius: 10px;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 13px; right: 13px; bottom: 3px;
  height: 2px;
  background: var(--gradient-brand);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s var(--ease);
}
.nav-links a:hover::after,
.nav-links a.is-active::after { transform: scaleX(1); transform-origin: left; }
.nav-links a:hover, .nav-links a.is-active { color: #fff; }
.navbar.is-stuck .nav-links a { color: var(--muted); }
.navbar.is-stuck .nav-links a:hover,
.navbar.is-stuck .nav-links a.is-active { color: var(--primary); }

.nav-cta { display: flex; align-items: center; gap: 10px; }

.nav-toggle {
  display: none;
  width: 46px; height: 46px;
  border-radius: 13px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.1);
  cursor: pointer;
}
.navbar.is-stuck .nav-toggle { border-color: var(--border); background: #fff; }
.nav-toggle span {
  display: block; width: 20px; height: 2px; margin: 4px auto;
  background: #fff; border-radius: 2px; transition: 0.3s var(--ease);
}
.navbar.is-stuck .nav-toggle span { background: var(--primary); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- 6. Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 160px 0 90px;
  background: var(--gradient-dark);
  overflow: hidden;
  color: #e2e8f0;
}
.hero__aurora {
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(45% 45% at 18% 28%, rgba(29, 78, 216, 0.55), transparent 65%),
    radial-gradient(40% 40% at 78% 22%, rgba(124, 58, 237, 0.5), transparent 65%),
    radial-gradient(45% 45% at 62% 82%, rgba(16, 185, 129, 0.28), transparent 62%);
  filter: blur(20px);
  animation: aurora 18s ease-in-out infinite alternate;
}
@keyframes aurora {
  0% { transform: translate3d(-2%, -1%, 0) scale(1); }
  100% { transform: translate3d(3%, 2%, 0) scale(1.12); }
}
.hero__grid-lines {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(70% 65% at 50% 40%, #000 30%, transparent 100%);
}
.hero__shape {
  position: absolute;
  border-radius: 30%;
  background: var(--gradient-brand);
  opacity: 0.25;
  filter: blur(2px);
  animation: float 12s ease-in-out infinite;
}
.hero__shape--1 { width: 120px; height: 120px; top: 22%; left: 6%; }
.hero__shape--2 { width: 70px; height: 70px; top: 68%; left: 14%; animation-delay: -3s; }
.hero__shape--3 { width: 160px; height: 160px; top: 14%; right: 8%; animation-delay: -6s; opacity: 0.18; }
@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-28px) rotate(18deg); }
}
.hero .container { position: relative; z-index: 2; }
.hero__layout { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 60px; align-items: center; }
.hero h1 { color: #fff; }
.hero__sub { font-size: 1.12rem; color: #cbd5e1; max-width: 620px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 32px 0 26px; }
.hero__note { display: flex; flex-wrap: wrap; gap: 18px; font-size: 0.86rem; color: #94a3b8; }
.hero__note span { display: inline-flex; align-items: center; gap: 8px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.18); }

/* glass panel + orbit illustration */
.glass {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 26px;
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow-lg);
}
  .hero__panel { padding: 32px; border-radius: 20px; }
  .hero__panel h3 { font-size: 1.05rem; margin-bottom: 4px; color: #ffffff !important; }
.hero__panel .muted { font-size: 0.85rem; color: #94a3b8 !important; margin: 0; }

.orbit { position: relative; height: 230px; margin: 18px 0 6px; display: grid; place-items: center; }
.orbit__core {
  width: 92px; height: 92px; border-radius: 50%;
  background: var(--gradient-brand);
  display: grid; place-items: center;
  color: #fff; font-family: "Poppins", sans-serif; font-weight: 700; font-size: 0.86rem;
  box-shadow: 0 0 60px rgba(124, 58, 237, 0.6);
}
.orbit__ring {
  position: absolute;
  border: 1px dashed rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  animation: spin 22s linear infinite;
}
.orbit__ring--1 { width: 165px; height: 165px; }
.orbit__ring--2 { width: 225px; height: 225px; animation-duration: 34s; animation-direction: reverse; }
.orbit__chip {
  position: absolute;
  top: -14px; left: 50%;
  transform: translateX(-50%);
  background: rgba(15, 23, 42, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #e2e8f0;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 999px;
  white-space: nowrap;
  animation: spin-rev 22s linear infinite;
}
.orbit__ring--2 .orbit__chip { animation-duration: 34s; animation-direction: normal; }
.orbit__chip--b { top: auto; bottom: -14px; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes spin-rev { to { transform: translateX(-50%) rotate(-360deg); } }

.hero__badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.chip {
  font-size: 0.74rem;
  font-weight: 600;
  padding: 6px 13px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #e2e8f0;
}

/* counters */
.counters {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 64px;
  position: relative;
  z-index: 2;
}
.counter { padding: 26px 24px; border-radius: var(--radius); }
.counter__value { font-family: "Poppins", sans-serif; font-size: clamp(1.9rem, 3vw, 2.6rem); font-weight: 700; color: #fff; line-height: 1; }
.counter__label { font-size: 0.85rem; color: #94a3b8; margin: 8px 0 0; }

/* ---------- 7. Marquee (trusted) ---------- */
.trusted { padding: 46px 0; background: var(--bg-alt); border-bottom: 1px solid var(--border); }
.trusted__title { text-align: center; font-size: 0.8rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); margin-bottom: 22px; }
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee__track { display: flex; gap: 56px; width: max-content; animation: marquee 34s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.marquee__item {
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  font-size: 1.05rem;
  color: #94a3b8;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: color 0.3s var(--ease);
}
.marquee__item:hover { color: var(--primary); }

/* ---------- 8. Cards ---------- */
.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
  position: relative;
  overflow: hidden;
  height: 100%;
}
.card::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(140deg, rgba(29, 78, 216, 0.07), rgba(124, 58, 237, 0.07));
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}
.card:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); border-color: rgba(29, 78, 216, 0.24); }
.card:hover::before { opacity: 1; }
.card > * { position: relative; z-index: 1; }
.card h3 { margin-bottom: 10px; }
.card p { font-size: 0.94rem; margin-bottom: 16px; }

.card--dark {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: none;
  backdrop-filter: blur(12px);
}
.card--dark:hover { border-color: rgba(196, 181, 253, 0.45); }

.icon-box {
  width: 54px; height: 54px;
  border-radius: 16px;
  display: grid; place-items: center;
  background: linear-gradient(140deg, rgba(29, 78, 216, 0.12), rgba(124, 58, 237, 0.14));
  color: var(--secondary);
  margin-bottom: 18px;
  transition: transform 0.4s var(--ease);
}
.card:hover .icon-box { transform: translateY(-3px) scale(1.06); }
.card--dark .icon-box { background: rgba(124, 58, 237, 0.2); color: #c4b5fd; }
.icon-box svg { width: 26px; height: 26px; }

.tick-list li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 10px;
  font-size: 0.94rem;
  color: var(--muted);
}
.tick-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 8px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.16);
  box-shadow: inset 0 0 0 2px var(--success);
}
.section--dark .tick-list li { color: #94a3b8; }

/* ---------- 9. About ---------- */
.about__layout { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: 60px; align-items: center; }
.about__visual { position: relative; }
.about__img {
  width: 100%;
  border-radius: 26px;
  box-shadow: var(--shadow-lg);
  object-fit: cover;
  aspect-ratio: 3 / 4;
}
.about__stat {
  position: absolute;
  right: -18px; bottom: -26px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 18px 22px;
  box-shadow: var(--shadow-md);
  animation: float 8s ease-in-out infinite;
}
.about__stat strong { font-family: "Poppins", sans-serif; font-size: 1.6rem; color: var(--primary); display: block; }
.about__stat span { font-size: 0.8rem; color: var(--muted); }

.mvv { display: grid; gap: 16px; margin-top: 26px; }
.mvv__item { display: flex; gap: 16px; padding: 18px; border-radius: 16px; background: var(--bg-alt); border: 1px solid var(--border); }
.mvv__item h4 { margin: 0 0 4px; font-size: 1rem; }
.mvv__item p { margin: 0; font-size: 0.92rem; }

/* timeline */
.timeline { position: relative; margin-top: 56px; padding-left: 34px; }
.timeline::before {
  content: ""; position: absolute; left: 9px; top: 6px; bottom: 6px;
  width: 2px; background: linear-gradient(var(--secondary), var(--accent));
  opacity: 0.35;
}
.timeline__item { position: relative; padding-bottom: 30px; }
.timeline__item::before {
  content: ""; position: absolute; left: -32px; top: 7px;
  width: 14px; height: 14px; border-radius: 50%;
  background: #fff; border: 3px solid var(--secondary);
}
.timeline__year { font-family: "Poppins", sans-serif; font-weight: 700; color: var(--secondary); font-size: 0.92rem; }
.timeline__item h4 { margin: 4px 0 4px; font-size: 1.02rem; }
.timeline__item p { margin: 0; font-size: 0.93rem; }

/* ---------- 10. Industries / tech ---------- */
.industry {
  display: flex; align-items: center; gap: 14px;
  padding: 20px 22px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.industry:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.industry span { font-family: "Poppins", sans-serif; font-weight: 600; font-size: 0.95rem; color: var(--primary); }
.industry .icon-box { width: 44px; height: 44px; margin: 0; border-radius: 13px; }
.industry .icon-box svg { width: 21px; height: 21px; }

.tech-grid { display: flex; flex-wrap: wrap; gap: 12px; }
.tech-pill {
  padding: 11px 20px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.05);
  color: #e2e8f0;
  font-size: 0.9rem;
  font-weight: 500;
  transition: transform 0.3s var(--ease), background 0.3s var(--ease), border-color 0.3s var(--ease);
}
.tech-pill:hover { transform: translateY(-4px); background: rgba(124, 58, 237, 0.22); border-color: rgba(196, 181, 253, 0.5); }

/* ---------- 11. Process ---------- */
.process { counter-reset: step; }
.process__item {
  position: relative;
  padding: 30px 26px 26px;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.process__item::after {
  content: "";
  position: absolute; top: 0; left: 26px; right: 26px; height: 3px;
  background: var(--gradient-brand);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.45s var(--ease);
}
.process__item:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); }
.process__item:hover::after { transform: scaleX(1); }
.process__num {
  counter-increment: step;
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--accent);
  letter-spacing: 0.14em;
}
.process__num::before { content: "STEP 0" counter(step); }
.process__item h3 { margin: 8px 0 8px; }
.process__item p { font-size: 0.93rem; margin: 0; }

/* ---------- 12. Case studies ---------- */
.case { display: flex; flex-direction: column; }
.case__tag {
  align-self: flex-start;
  font-size: 0.74rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--success);
  background: rgba(16, 185, 129, 0.12);
  padding: 6px 13px; border-radius: 999px; margin-bottom: 16px;
}
.case dl { margin: 0; }
.case dt { font-family: "Poppins", sans-serif; font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--primary); margin-top: 14px; }
.case dd { margin: 4px 0 0; font-size: 0.93rem; color: var(--muted); }
.case__result { margin-top: 20px; padding-top: 18px; border-top: 1px dashed var(--border); display: flex; gap: 22px; }
.case__result div strong { display: block; font-family: "Poppins", sans-serif; font-size: 1.35rem; color: var(--secondary); }
.case__result div span { font-size: 0.78rem; color: var(--muted); }

/* metrics */
.metric { text-align: center; padding: 30px 20px; border-radius: var(--radius); }
.metric strong { display: block; font-family: "Poppins", sans-serif; font-size: clamp(1.9rem, 3vw, 2.5rem); color: #fff; }
.metric span { font-size: 0.88rem; color: #94a3b8; }

/* ---------- 13. Testimonials ---------- */
.quote { font-size: 0.98rem; color: var(--text); font-style: italic; }
.stars { display: flex; gap: 3px; color: #f59e0b; margin-bottom: 14px; }
.stars svg { width: 17px; height: 17px; }
.person { display: flex; align-items: center; gap: 13px; margin-top: 18px; }
.person img { width: 50px; height: 50px; border-radius: 50%; object-fit: cover; }
.person strong { display: block; font-family: "Poppins", sans-serif; font-size: 0.95rem; color: var(--primary); }
.person span { font-size: 0.82rem; color: var(--muted); }

/* ---------- 14. FAQ ---------- */
.faq { max-width: 900px; margin: 0 auto; }
.faq__item {
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #fff;
  margin-bottom: 12px;
  overflow: hidden;
  transition: box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}
.faq__item.is-open { box-shadow: var(--shadow-md); border-color: rgba(29, 78, 216, 0.28); }
.faq__q {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 20px 24px;
  background: none; border: 0; cursor: pointer;
  font-family: "Poppins", sans-serif; font-weight: 600; font-size: 1rem;
  color: var(--primary); text-align: left;
}
.faq__icon {
  flex: none; width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(29, 78, 216, 0.1); color: var(--secondary);
  transition: transform 0.35s var(--ease), background 0.35s var(--ease);
  font-size: 1.1rem; line-height: 1;
}
.faq__item.is-open .faq__icon { transform: rotate(45deg); background: var(--gradient-brand); color: #fff; }
.faq__a { max-height: 0; overflow: hidden; transition: max-height 0.45s var(--ease); }
.faq__a p { padding: 0 24px 22px; margin: 0; font-size: 0.95rem; }

/* ---------- 15. CTA ---------- */
.cta {
  position: relative;
  border-radius: 32px;
  padding: 66px 56px;
  background: var(--gradient-dark);
  overflow: hidden;
  text-align: center;
}
.cta::before {
  content: "";
  position: absolute; inset: -40%;
  background: radial-gradient(40% 40% at 30% 30%, rgba(29, 78, 216, 0.55), transparent 60%),
              radial-gradient(40% 40% at 72% 68%, rgba(124, 58, 237, 0.5), transparent 60%);
  animation: aurora 16s ease-in-out infinite alternate;
}
.cta > * { position: relative; z-index: 1; }
.cta h2 { color: #fff; }
.cta p { color: #cbd5e1; max-width: 620px; margin: 0 auto 26px; }
.cta__actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; }

/* ---------- 16. Contact ---------- */
.contact__layout { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 46px; align-items: start; }
.form-card { background: #fff; border: 1px solid var(--border); border-radius: 24px; padding: 34px; box-shadow: var(--shadow-md); }
.form-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 0.84rem; font-weight: 600; color: var(--primary); margin-bottom: 7px; }
.field input,
.field select,
.field textarea {
  width: 100%;
  font-family: inherit;
  font-size: 0.94rem;
  color: var(--text);
  padding: 13px 15px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg-alt);
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.3s var(--ease);
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  background: #fff;
  border-color: var(--secondary);
  box-shadow: 0 0 0 4px rgba(29, 78, 216, 0.12);
}
.field.has-error input,
.field.has-error select,
.field.has-error textarea { border-color: #dc2626; box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.1); }
.error-msg { display: none; font-size: 0.79rem; color: #dc2626; margin-top: 6px; }
.field.has-error .error-msg { display: block; }

.form-status {
  display: none;
  margin-top: 16px;
  padding: 14px 18px;
  border-radius: 12px;
  font-size: 0.92rem;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #047857;
}
.form-status.is-visible { display: block; animation: fadeUp 0.45s var(--ease) both; }
.form-status.is-error { background: rgba(220, 38, 38, 0.1); border-color: rgba(220, 38, 38, 0.35); color: #b91c1c; }

.office { display: grid; gap: 14px; }
.office__item { display: flex; gap: 14px; padding: 18px; border-radius: 16px; background: #fff; border: 1px solid var(--border); box-shadow: var(--shadow-sm); }
.office__item h4 { margin: 0 0 3px; font-size: 0.98rem; }
.office__item p { margin: 0; font-size: 0.9rem; }
.map-frame {
  margin-top: 18px;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  background: var(--bg-alt);
}
.map-frame iframe { display: block; width: 100%; height: 260px; border: 0; }

/* ---------- 17. Footer ---------- */
.footer { background: var(--gradient-dark); color: #94a3b8; padding: 78px 0 28px; }
.footer h4 { color: #fff; font-size: 0.95rem; margin-bottom: 16px; }
.footer__grid { display: grid; grid-template-columns: 1.5fr repeat(4, 1fr); gap: 34px; }
.footer a { color: #94a3b8; font-size: 0.9rem; }
.footer a:hover { color: #fff; }
.footer li { margin-bottom: 9px; }
.footer__brand p { font-size: 0.92rem; max-width: 320px; }
.socials { display: flex; gap: 10px; margin-top: 18px; }
.socials a {
  width: 40px; height: 40px; border-radius: 12px;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
  transition: transform 0.3s var(--ease), background 0.3s var(--ease);
}
.socials a:hover { transform: translateY(-4px); background: var(--gradient-brand); color: #fff; }
.footer__bottom {
  margin-top: 48px; padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  font-size: 0.85rem;
}
.footer__bottom nav { display: flex; gap: 18px; }

/* ---------- 18. Back to top ---------- */
.to-top {
  position: fixed;
  right: 26px; bottom: 26px;
  width: 50px; height: 50px;
  border-radius: 50%;
  border: 0;
  background: var(--gradient-brand);
  color: #fff;
  display: grid; place-items: center;
  cursor: pointer;
  box-shadow: 0 18px 34px -16px rgba(124, 58, 237, 0.9);
  opacity: 0; visibility: hidden; transform: translateY(14px);
  transition: 0.35s var(--ease);
  z-index: 1100;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { transform: translateY(-4px); }

/* ---------- 19. Scroll reveal animations ---------- */
[data-reveal] { opacity: 0; transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); will-change: opacity, transform; }
[data-reveal="up"] { transform: translateY(34px); }
[data-reveal="left"] { transform: translateX(-38px); }
[data-reveal="right"] { transform: translateX(38px); }
[data-reveal="scale"] { transform: scale(0.94); }
[data-reveal].is-revealed { opacity: 1; transform: none; }

@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  html { scroll-behavior: auto; }
  [data-reveal] { opacity: 1; transform: none; }
}

/* ---------- 20. Responsive ---------- */
@media (max-width: 1200px) {
  .footer__grid { grid-template-columns: 1.4fr repeat(2, 1fr); }
}
@media (max-width: 1024px) {
  .section { padding: 84px 0; }
  .hero__layout, .about__layout, .contact__layout { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .counters { grid-template-columns: repeat(2, 1fr); }
  .nav-links {
    position: absolute;
    top: calc(100% + 10px); left: 16px; right: 16px;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 12px;
    box-shadow: var(--shadow-lg);
    display: none;
  }
  .nav-links.is-open { display: flex; animation: fadeUp 0.3s var(--ease) both; }
  .nav-links a { color: var(--text) !important; padding: 12px 14px; }
  .nav-toggle { display: block; }
  .nav-cta .btn { display: none; }
  .about__stat { right: 12px; bottom: -18px; }
}
@media (max-width: 720px) {
  .section { padding: 68px 0; }
  .grid-2, .grid-3, .grid-4, .form-row { grid-template-columns: 1fr; }
  .counters { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .cta { padding: 46px 24px; border-radius: 24px; }
  .form-card { padding: 24px; }
  .footer__grid { grid-template-columns: 1fr; }
  .hero { padding: 132px 0 70px; }
  .case__result { flex-wrap: wrap; gap: 14px; }
}


main#main { min-height: calc(100vh - 400px); }

/* Elementor Editor fixes for Dark Theme */
.elementor-editor-active .elementor-widget-text-editor { color: #fff !important; }
.elementor-editor-active .elementor-heading-title { color: #fff !important; }
.elementor-editor-active body { background-color: var(--bg); }
