/*
Theme Name: DIGIHAC
Theme URI: https://digihac.com
Author: DIGIHAC
Author URI: https://digihac.com
Description: Professional digital marketing agency theme. Elementor compatible. Full Customizer support.
Version: 2.0.0
License: GNU General Public License v2 or later
Text Domain: digihac
Tags: digital-marketing, agency, one-page, elementor, customizable, mobile-first
*/

/* ============================================================
   1. CSS VARIABLES
============================================================ */
:root {
  --primary:       #0057FF;
  --primary-light: #3D80FF;
  --accent:        #00E5C3;
  --dark:          #0A0F1E;
  --dark-2:        #111827;
  --mid:           #1E2A45;
  --text:          #E4EAF6;
  --muted:         #7A8BA8;
  --white:         #FFFFFF;
  --card-bg:       #141C30;
  --border:        rgba(255,255,255,0.08);
  --radius:        16px;
  --radius-sm:     10px;
  --nav-h:         72px;
  --transition:    all 0.25s ease;
}

/* ============================================================
   2. RESET & BASE
============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
  font-size: 16px;
}

body {
  font-family: 'Plus Jakarta Sans', 'DM Sans', system-ui, -apple-system, sans-serif;
  background: var(--dark);
  color: var(--text);
  overflow-x: hidden;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6,
.logo-text,
.section-title,
.plan-price,
.result-num,
.metric-big,
.stat-num,
.step-num {
  font-family: 'Clash Display', 'Plus Jakarta Sans', system-ui, sans-serif;
  font-weight: 700;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; padding: 0; margin: 0; }
button { font-family: inherit; }

::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--dark); }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 3px; }

/* ============================================================
   3. NAVIGATION
============================================================ */
#digihac-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 9999;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5%;
  background: rgba(10, 15, 30, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s, box-shadow 0.3s;
}
#digihac-nav.scrolled {
  background: rgba(10, 15, 30, 0.98);
  box-shadow: 0 4px 30px rgba(0,0,0,0.4);
}

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}
.logo-icon {
  width: 38px; height: 38px;
  background: var(--primary);
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 14px;
  color: #fff;
  overflow: hidden;
  flex-shrink: 0;
}
.logo-icon img {
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: 9px;
}
.logo-text {
  font-size: 20px;
  font-weight: 800;
  color: var(--white);
  letter-spacing: 0.5px;
  white-space: nowrap;
}
.logo-text span { color: var(--accent); }

/* Desktop nav links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-links a {
  color: var(--muted);
  font-size: 15px;
  font-weight: 500;
  transition: var(--transition);
  position: relative;
  padding: 4px 0;
  white-space: nowrap;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0; right: 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}
.nav-links a:hover,
.nav-links a.active { color: var(--white); }
.nav-links a:hover::after,
.nav-links a.active::after { transform: scaleX(1); }

.nav-cta {
  background: var(--primary) !important;
  color: #fff !important;
  padding: 10px 20px !important;
  border-radius: 8px !important;
  font-weight: 600 !important;
  transition: background 0.2s, transform 0.2s !important;
}
.nav-cta:hover { background: var(--primary-light) !important; transform: translateY(-1px); }
.nav-cta::after { display: none !important; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
  border-radius: 8px;
  transition: background 0.2s;
  -webkit-tap-highlight-color: transparent;
}
.hamburger:hover { background: rgba(255,255,255,0.06); }
.hamburger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s ease;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: var(--nav-h);
  left: 0; right: 0;
  background: var(--dark-2);
  border-bottom: 1px solid var(--border);
  z-index: 9998;
  flex-direction: column;
  padding: 8px 0 16px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.5);
  transform: translateY(-10px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.mobile-menu.open {
  display: flex;
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}
.mobile-menu a {
  color: var(--muted);
  font-size: 15px;
  font-weight: 500;
  padding: 14px 5%;
  border-bottom: 1px solid var(--border);
  transition: color 0.2s, background 0.2s;
  -webkit-tap-highlight-color: transparent;
}
.mobile-menu a:last-child { border-bottom: none; }
.mobile-menu a:hover,
.mobile-menu a:active { color: var(--white); background: rgba(255,255,255,0.04); }

/* ============================================================
   4. BUTTONS
============================================================ */
.btn-primary,
.btn-outline,
.btn-white,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 15px;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}
.btn-primary:hover {
  background: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0,87,255,0.35);
  color: #fff;
}
.btn-primary:active { transform: translateY(0); }

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border);
}
.btn-outline:hover {
  border-color: var(--primary);
  color: var(--white);
  background: rgba(0,87,255,0.08);
}

.btn-white {
  background: #fff;
  color: var(--primary);
}
.btn-white:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0,0,0,0.25);
  color: var(--primary);
}

.btn-ghost {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255,255,255,0.3);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.5);
  color: #fff;
}

/* ============================================================
   5. LAYOUT
============================================================ */
section { padding: 90px 5%; }
.container { max-width: 1180px; margin: 0 auto; }

.section-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--primary-light);
  margin-bottom: 12px;
}
.section-title {
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 800;
  color: var(--white);
  line-height: 1.15;
  letter-spacing: -0.5px;
  margin-bottom: 14px;
}
.section-subtitle {
  font-size: 16px;
  color: var(--muted);
  max-width: 560px;
  line-height: 1.75;
}
.section-header { margin-bottom: 56px; }
.section-header.centered { text-align: center; }
.section-header.centered .section-subtitle { margin: 0 auto; }

/* ============================================================
   6. HERO
============================================================ */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 5% 80px;
  position: relative;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 50%, rgba(0,87,255,0.18) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 20% 80%, rgba(0,229,195,0.1) 0%, transparent 50%),
    var(--dark);
}
.hero-grid-bg {
  position: absolute; inset: 0; z-index: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at center, black 40%, transparent 80%);
  mask-image: radial-gradient(ellipse 80% 80% at center, black 40%, transparent 80%);
}
.hero-inner {
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  max-width: 1180px;
  margin: 0 auto;
  width: 100%;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0,87,255,0.14);
  border: 1px solid rgba(0,87,255,0.28);
  border-radius: 100px;
  padding: 7px 16px;
  font-size: 13px;
  font-weight: 500;
  color: var(--primary-light);
  margin-bottom: 22px;
}
.hero-badge .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2s infinite;
  flex-shrink: 0;
}
@keyframes pulse {
  0%,100% { opacity:1; transform:scale(1); }
  50% { opacity:.5; transform:scale(1.4); }
}

#hero h1 {
  font-size: clamp(38px, 4.5vw, 64px);
  font-weight: 800;
  line-height: 1.08;
  color: var(--white);
  margin-bottom: 20px;
  letter-spacing: -1px;
}
.highlight {
  background: linear-gradient(135deg, var(--primary-light), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-desc {
  font-size: 16px;
  color: var(--muted);
  max-width: 480px;
  line-height: 1.8;
  margin-bottom: 34px;
}
.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.hero-stats {
  display: flex;
  gap: 32px;
  margin-top: 44px;
  flex-wrap: wrap;
}
.stat-item .stat-num {
  font-size: 28px;
  font-weight: 800;
  color: var(--white);
  line-height: 1;
}
.stat-item .stat-num span { color: var(--accent); }
.stat-item .stat-label {
  font-size: 13px;
  color: var(--muted);
  margin-top: 4px;
}

/* Hero Card */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero-card-main {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  width: 300px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.5);
  position: relative; z-index: 2;
  animation: float 6s ease-in-out infinite;
}
@keyframes float {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
.card-tag {
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1.2px;
  color: var(--accent); margin-bottom: 14px;
}
.metric-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 16px;
}
.metric-big {
  font-size: 36px; font-weight: 800; color: var(--white); line-height: 1;
}
.metric-change {
  font-size: 13px; font-weight: 600;
  color: #22d977;
  background: rgba(34,217,119,0.12);
  padding: 4px 10px; border-radius: 100px;
}
.bar-chart {
  display: flex; align-items: flex-end;
  gap: 5px; height: 65px;
}
.bar { flex: 1; border-radius: 4px 4px 0 0; background: rgba(0,87,255,0.22); }
.bar.active { background: var(--primary); }
.hero-chip {
  position: absolute;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 11px 15px;
  font-size: 13px; font-weight: 500;
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
  white-space: nowrap; z-index: 3;
}
.hero-chip.chip-tr { top: -18px; right: -18px; animation: float 7s ease-in-out infinite; }
.hero-chip.chip-bl { bottom: -18px; left: -18px; animation: float 5s ease-in-out infinite 1s; }

/* ============================================================
   7. CLIENTS BAR
============================================================ */
#clients {
  padding: 36px 5%;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.clients-label {
  text-align: center;
  font-size: 12px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 2px;
  color: var(--muted); margin-bottom: 24px;
}
.clients-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px; flex-wrap: wrap;
}
.client-logo {
  font-size: 14px; font-weight: 700;
  color: var(--muted); opacity: .55;
  transition: opacity 0.2s;
  letter-spacing: 0.5px;
}
.client-logo:hover { opacity: 1; color: var(--text); }

/* ============================================================
   8. SERVICES
============================================================ */
#services { background: var(--dark-2); }
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}
.service-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
  transition: all 0.3s ease;
  position: relative; overflow: hidden;
  cursor: default;
}
.service-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.3s ease;
}
.service-card:hover { border-color: rgba(0,87,255,0.3); transform: translateY(-4px); }
.service-card:hover::before { transform: scaleX(1); }
.service-icon {
  width: 50px; height: 50px;
  background: rgba(0,87,255,0.1);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; margin-bottom: 18px;
}
.service-card h3 { font-size: 18px; font-weight: 700; color: var(--white); margin-bottom: 10px; }
.service-card p { font-size: 14px; color: var(--muted); line-height: 1.7; margin-bottom: 18px; }
.service-tags { display: flex; flex-wrap: wrap; gap: 7px; }
.tag {
  font-size: 11px; font-weight: 600;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  padding: 4px 10px; border-radius: 100px;
  color: var(--muted);
  letter-spacing: 0.3px;
}

/* ============================================================
   9. ABOUT
============================================================ */
#about { background: var(--dark); }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px; align-items: center;
}
.about-features { display: flex; flex-direction: column; gap: 26px; }
.about-feature { display: flex; gap: 16px; align-items: flex-start; }
.feature-icon {
  width: 44px; height: 44px; flex-shrink: 0;
  background: rgba(0,87,255,0.1);
  border: 1px solid rgba(0,87,255,0.18);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
}
.about-feature h4 { font-size: 15px; font-weight: 700; color: var(--white); margin-bottom: 5px; }
.about-feature p { font-size: 14px; color: var(--muted); line-height: 1.65; }

.about-visual { position: relative; }
.about-img-wrap {
  background: linear-gradient(135deg, var(--mid), var(--card-bg));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  height: 400px;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; position: relative;
}
.about-img-wrap img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); }
.about-img-wrap .placeholder-text {
  font-size: 80px; font-weight: 800;
  color: rgba(255,255,255,0.04);
  position: absolute; letter-spacing: -4px;
}
.about-stat-box {
  position: absolute;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}
.about-stat-box.box-one { bottom: 28px; left: -26px; }
.about-stat-box.box-two { top: 28px; right: -26px; }
.about-stat-box .num { font-size: 24px; font-weight: 800; color: var(--white); line-height: 1; }
.about-stat-box .num span { color: var(--accent); }
.about-stat-box .lbl { font-size: 12px; color: var(--muted); margin-top: 2px; }

/* ============================================================
   10. RESULTS
============================================================ */
#results { background: var(--dark-2); }
.results-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 18px;
}
.result-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 34px 26px;
  text-align: center;
  transition: transform 0.3s;
}
.result-card:hover { transform: translateY(-4px); }
.result-num { font-size: 48px; font-weight: 800; color: var(--white); line-height: 1; margin-bottom: 8px; }
.result-num .accent { color: var(--accent); }
.result-desc { font-size: 14px; color: var(--muted); }

/* ============================================================
   11. EXPERTISE
============================================================ */
#expertise { background: var(--dark); }
.expertise-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 14px;
}
.expertise-item {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 20px;
  display: flex; align-items: center; gap: 14px;
  transition: all 0.25s;
  cursor: default;
  -webkit-tap-highlight-color: transparent;
}
.expertise-item:hover {
  border-color: rgba(0,87,255,0.4);
  background: rgba(0,87,255,0.07);
  transform: translateY(-2px);
}
.exp-icon {
  width: 42px; height: 42px; flex-shrink: 0;
  background: rgba(0,87,255,0.1);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
}
.exp-name { font-size: 14px; font-weight: 600; color: var(--white); }
.exp-sub { font-size: 12px; color: var(--muted); margin-top: 2px; }

/* ============================================================
   12. PRICING
============================================================ */
#pricing { background: var(--dark-2); }
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 18px;
  align-items: start;
}
.pricing-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 34px 28px;
  transition: all 0.3s;
  position: relative; overflow: hidden;
}
.pricing-card.featured {
  background: var(--primary);
  border-color: transparent;
  transform: scale(1.04);
  box-shadow: 0 30px 60px rgba(0,87,255,0.3);
}
.pricing-card:not(.featured):hover {
  border-color: rgba(0,87,255,0.4);
  transform: translateY(-4px);
}
.popular-badge {
  position: absolute; top: 18px; right: 18px;
  background: var(--accent); color: var(--dark);
  font-size: 10px; font-weight: 800;
  text-transform: uppercase; letter-spacing: 1px;
  padding: 4px 10px; border-radius: 100px;
}
.plan-name {
  font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 2px;
  color: var(--muted); margin-bottom: 16px;
}
.pricing-card.featured .plan-name { color: rgba(255,255,255,0.65); }
.plan-price {
  font-size: 46px; font-weight: 800; color: var(--white);
  line-height: 1; margin-bottom: 6px;
}
.plan-price .currency { font-size: 20px; vertical-align: top; margin-top: 8px; display: inline-block; }
.plan-price .period { font-size: 15px; font-weight: 400; color: var(--muted); }
.pricing-card.featured .plan-price .period { color: rgba(255,255,255,0.55); }

.plan-desc {
  font-size: 14px; color: var(--muted); line-height: 1.65;
  margin-bottom: 24px; padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}
.pricing-card.featured .plan-desc {
  color: rgba(255,255,255,0.68);
  border-color: rgba(255,255,255,0.14);
}
.plan-features { display: flex; flex-direction: column; gap: 12px; margin-bottom: 28px; }
.plan-features li { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; color: var(--text); }
.pricing-card.featured .plan-features li { color: rgba(255,255,255,0.88); }
.check {
  width: 18px; height: 18px; flex-shrink: 0;
  background: rgba(0,229,195,0.14);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; color: var(--accent); margin-top: 1px;
}
.pricing-card.featured .check { background: rgba(255,255,255,0.14); color: #fff; }

.btn-plan {
  display: block; text-align: center;
  padding: 14px 20px; border-radius: 10px;
  font-weight: 600; font-size: 15px;
  transition: all 0.25s;
  border: 1.5px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.06);
  color: var(--white); cursor: pointer;
  font-family: inherit; width: 100%;
  -webkit-tap-highlight-color: transparent;
}
.btn-plan:hover { background: rgba(255,255,255,0.12); color: var(--white); }
.btn-plan.btn-plan-dark {
  background: var(--dark); border-color: var(--dark); color: var(--white);
}
.btn-plan.btn-plan-dark:hover { background: var(--dark-2); color: var(--white); }
.pricing-note { text-align: center; color: var(--muted); font-size: 14px; margin-top: 28px; }
.pricing-note a { color: var(--primary-light); }
.pricing-note a:hover { text-decoration: underline; }

/* ============================================================
   13. PROCESS
============================================================ */
#process { background: var(--dark); }
.process-steps {
  display: grid; grid-template-columns: repeat(4,1fr);
  gap: 18px; position: relative;
}
.process-steps::before {
  content: '';
  position: absolute; top: 28px; left: 12%; right: 12%; height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), var(--primary), var(--border), transparent);
  z-index: 0;
}
.step-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 20px;
  text-align: center;
  position: relative; z-index: 1;
  transition: all 0.3s;
}
.step-card:hover { border-color: rgba(0,87,255,0.4); transform: translateY(-4px); }
.step-num {
  width: 46px; height: 46px;
  background: var(--primary); border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 17px; font-weight: 800; color: #fff;
  margin: 0 auto 14px;
}
.step-card h4 { font-size: 15px; font-weight: 700; color: var(--white); margin-bottom: 8px; }
.step-card p { font-size: 13px; color: var(--muted); line-height: 1.65; }

/* ============================================================
   14. TESTIMONIALS
============================================================ */
#testimonials { background: var(--dark-2); }
.testimonials-grid {
  display: grid; grid-template-columns: repeat(3,1fr); gap: 18px;
}
.testimonial-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius); padding: 26px;
  transition: all 0.3s;
}
.testimonial-card:hover { border-color: rgba(0,87,255,0.3); transform: translateY(-3px); }
.stars { font-size: 14px; color: #F59E0B; margin-bottom: 14px; letter-spacing: 1px; }
.testimonial-text {
  font-size: 14px; color: var(--text);
  line-height: 1.78; margin-bottom: 18px;
  font-style: italic;
}
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.author-avatar {
  width: 38px; height: 38px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; color: #fff;
  flex-shrink: 0; overflow: hidden;
}
.author-avatar img { width: 100%; height: 100%; object-fit: cover; }
.author-name { font-size: 14px; font-weight: 600; color: var(--white); }
.author-role { font-size: 12px; color: var(--muted); }

/* ============================================================
   15. CTA BANNER
============================================================ */
#cta-banner { background: var(--dark); padding: 90px 5%; }
.cta-inner {
  max-width: 1180px; margin: 0 auto;
  background: linear-gradient(135deg, #0A3FBF 0%, #0057FF 50%, #0A3FBF 100%);
  border-radius: 22px; padding: 64px 48px;
  text-align: center; position: relative; overflow: hidden;
}
.cta-inner::before {
  content: '';
  position: absolute; top: -50%; left: -50%; width: 200%; height: 200%;
  background: radial-gradient(ellipse 50% 50% at 70% 30%, rgba(0,229,195,0.15) 0%, transparent 50%);
  pointer-events: none;
}
.cta-inner h2 {
  font-size: clamp(28px,4vw,44px); font-weight: 800; color: #fff;
  margin-bottom: 14px; position: relative; z-index: 1;
}
.cta-inner p {
  font-size: 17px; color: rgba(255,255,255,0.74);
  max-width: 500px; margin: 0 auto 32px;
  line-height: 1.72; position: relative; z-index: 1;
}
.cta-actions {
  display: flex; gap: 12px; justify-content: center;
  position: relative; z-index: 1; flex-wrap: wrap;
}

/* ============================================================
   16. CONTACT
============================================================ */
#contact { background: var(--dark-2); }
.contact-grid {
  display: grid; grid-template-columns: 1fr 1.5fr;
  gap: 56px; align-items: start;
}
.contact-info { display: flex; flex-direction: column; gap: 24px; }
.contact-item { display: flex; gap: 14px; align-items: flex-start; }
.contact-icon {
  width: 42px; height: 42px; flex-shrink: 0;
  background: rgba(0,87,255,0.1);
  border: 1px solid rgba(0,87,255,0.18);
  border-radius: 11px;
  display: flex; align-items: center; justify-content: center;
  font-size: 17px;
}
.contact-item h4 { font-size: 13px; font-weight: 700; color: var(--white); margin-bottom: 3px; text-transform: uppercase; letter-spacing: 0.5px; }
.contact-item p { font-size: 14px; color: var(--muted); }

/* Contact Form Box */
.contact-form-box {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 34px;
}
.contact-form-box h3 {
  font-size: 21px; font-weight: 700; color: var(--white);
  margin-bottom: 24px;
}

/* ============================================================
   17. NATIVE FORM STYLES (used when CF7 is not active)
============================================================ */
.dh-form .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.dh-form .form-group { margin-bottom: 16px; }
.dh-form label {
  display: block;
  font-size: 12px; font-weight: 700; color: var(--muted);
  margin-bottom: 7px; text-transform: uppercase; letter-spacing: 0.8px;
}

/* Base input styles — shared by native & CF7 */
.dh-form input[type="text"],
.dh-form input[type="email"],
.dh-form input[type="tel"],
.dh-form textarea,
.dh-form select {
  width: 100%;
  background: rgba(255,255,255,0.045) !important;
  border: 1.5px solid var(--border) !important;
  border-radius: 9px !important;
  padding: 12px 15px !important;
  font-size: 15px !important;
  color: var(--text) !important;
  font-family: inherit !important;
  outline: none !important;
  transition: border-color 0.22s, box-shadow 0.22s !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  box-shadow: none !important;
  line-height: 1.5 !important;
}
.dh-form input[type="text"]::placeholder,
.dh-form input[type="email"]::placeholder,
.dh-form input[type="tel"]::placeholder,
.dh-form textarea::placeholder { color: var(--muted) !important; opacity: 1 !important; }
.dh-form input:focus,
.dh-form textarea:focus,
.dh-form select:focus {
  border-color: var(--primary) !important;
  box-shadow: 0 0 0 3px rgba(0,87,255,0.12) !important;
}
.dh-form textarea { resize: vertical; min-height: 110px !important; }
.dh-form select option { background: var(--dark); color: var(--text); }

.btn-submit-wrap { margin-top: 4px; }
.btn-submit { width: 100%; justify-content: center; }

/* ============================================================
   18. CONTACT FORM 7 — FULL STYLE OVERRIDE
   These rules force CF7 to match our dark design.
============================================================ */

/* Wrapper CF7 adds */
.wpcf7 { font-family: inherit !important; }
.wpcf7 form { margin: 0 !important; padding: 0 !important; }

/* All CF7 inputs / textareas / selects */
.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form input[type="number"],
.wpcf7-form input[type="url"],
.wpcf7-form input[type="date"],
.wpcf7-form input[type="search"],
.wpcf7-form textarea,
.wpcf7-form select {
  width: 100% !important;
  background: rgba(255,255,255,0.045) !important;
  border: 1.5px solid rgba(255,255,255,0.08) !important;
  border-radius: 9px !important;
  padding: 12px 15px !important;
  font-size: 15px !important;
  color: #E4EAF6 !important;
  font-family: 'Plus Jakarta Sans', 'DM Sans', system-ui, sans-serif !important;
  outline: none !important;
  transition: border-color 0.22s, box-shadow 0.22s !important;
  -webkit-appearance: none !important;
  appearance: none !important;
  box-shadow: none !important;
  line-height: 1.5 !important;
  margin: 0 0 16px !important;
  display: block !important;
}
.wpcf7-form input[type="text"]::placeholder,
.wpcf7-form input[type="email"]::placeholder,
.wpcf7-form input[type="tel"]::placeholder,
.wpcf7-form textarea::placeholder {
  color: #7A8BA8 !important;
  opacity: 1 !important;
}
.wpcf7-form input:focus,
.wpcf7-form textarea:focus,
.wpcf7-form select:focus {
  border-color: #0057FF !important;
  box-shadow: 0 0 0 3px rgba(0,87,255,0.12) !important;
  outline: none !important;
}
.wpcf7-form textarea {
  resize: vertical !important;
  min-height: 110px !important;
}

/* CF7 labels */
.wpcf7-form label,
.wpcf7-form .dh-label {
  display: block !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  color: #7A8BA8 !important;
  margin-bottom: 7px !important;
  text-transform: uppercase !important;
  letter-spacing: 0.8px !important;
  font-family: inherit !important;
}

/* CF7 Submit Button */
.wpcf7-form input[type="submit"],
.wpcf7-submit {
  width: 100% !important;
  background: #0057FF !important;
  color: #fff !important;
  border: none !important;
  border-radius: 10px !important;
  padding: 14px 26px !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  font-family: inherit !important;
  cursor: pointer !important;
  transition: background 0.25s, transform 0.2s, box-shadow 0.25s !important;
  -webkit-appearance: none !important;
  appearance: none !important;
  margin-top: 6px !important;
  letter-spacing: 0.2px !important;
}
.wpcf7-form input[type="submit"]:hover,
.wpcf7-submit:hover {
  background: #3D80FF !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 28px rgba(0,87,255,0.35) !important;
}
.wpcf7-form input[type="submit"]:active,
.wpcf7-submit:active { transform: translateY(0) !important; }

/* CF7 Response messages */
.wpcf7-response-output {
  margin: 16px 0 0 !important;
  padding: 14px 18px !important;
  border-radius: 9px !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  border: 1.5px solid !important;
  text-align: center !important;
}
.wpcf7-mail-sent-ok {
  border-color: #22d977 !important;
  background: rgba(34,217,119,0.1) !important;
  color: #22d977 !important;
}
.wpcf7-mail-sent-ng,
.wpcf7-spam-blocked,
.wpcf7-validation-errors,
.wpcf7-acceptance-missing {
  border-color: #FF4D6D !important;
  background: rgba(255,77,109,0.1) !important;
  color: #FF4D6D !important;
}
.wpcf7-not-valid-tip {
  color: #FF4D6D !important;
  font-size: 12px !important;
  margin-top: -10px !important;
  margin-bottom: 10px !important;
  display: block !important;
}
.wpcf7-form .wpcf7-not-valid {
  border-color: #FF4D6D !important;
}

/* CF7 loading spinner */
.wpcf7 .ajax-loader {
  display: none !important;
}

/* CF7 two-column grid helper */
.cf7-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

/* ============================================================
   19. FOOTER
============================================================ */
#digihac-footer {
  background: var(--dark);
  border-top: 1px solid var(--border);
  padding: 56px 5% 28px;
}
.footer-inner { max-width: 1180px; margin: 0 auto; }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.4fr;
  gap: 44px; margin-bottom: 44px;
}
.footer-brand p {
  font-size: 14px; color: var(--muted);
  line-height: 1.75; margin-top: 14px; max-width: 270px;
}
.footer-socials { display: flex; gap: 8px; margin-top: 18px; }
.social-btn {
  width: 34px; height: 34px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; color: var(--muted); font-weight: 700;
  transition: all 0.2s;
  -webkit-tap-highlight-color: transparent;
}
.social-btn:hover { background: var(--primary); border-color: var(--primary); color: #fff; }
.footer-col h4 {
  font-size: 13px; font-weight: 700; color: var(--white);
  text-transform: uppercase; letter-spacing: 1.2px; margin-bottom: 16px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 11px; }
.footer-col ul li a { font-size: 14px; color: var(--muted); transition: color 0.2s; }
.footer-col ul li a:hover { color: var(--text); }
.footer-contact-list { display: flex; flex-direction: column; gap: 12px; }
.footer-contact-item {
  display: flex; align-items: center; gap: 10px;
  font-size: 14px; color: var(--muted);
}
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 22px;
  display: flex; align-items: center; justify-content: space-between;
  font-size: 13px; color: var(--muted);
  flex-wrap: wrap; gap: 10px;
}
.footer-bottom a { color: var(--muted); transition: color 0.2s; }
.footer-bottom a:hover { color: var(--text); }
.footer-legal { display: flex; gap: 18px; }

/* ============================================================
   20. ANIMATIONS
============================================================ */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children */
.services-grid .service-card:nth-child(2) { transition-delay: .08s; }
.services-grid .service-card:nth-child(3) { transition-delay: .16s; }
.services-grid .service-card:nth-child(4) { transition-delay: .24s; }
.services-grid .service-card:nth-child(5) { transition-delay: .32s; }
.services-grid .service-card:nth-child(6) { transition-delay: .40s; }

/* ============================================================
   21. ELEMENTOR COMPATIBILITY
============================================================ */
.elementor-section { background: transparent !important; }
.elementor-widget-wrap { background: transparent !important; }
.e-con { background: transparent !important; }

/* ============================================================
   22. RESPONSIVE — TABLET (max 1024px)
============================================================ */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; gap: 48px; }
  .hero-desc { max-width: none; }
  .hero-actions { justify-content: center; }
  .hero-stats { justify-content: center; }
  .hero-visual { display: none; }

  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-stat-box { display: inline-block; position: static !important; margin-top: 14px; }

  .pricing-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
  .pricing-card.featured { transform: scale(1); }

  .results-grid { grid-template-columns: 1fr 1fr; }
  .expertise-grid { grid-template-columns: 1fr 1fr; }
  .process-steps { grid-template-columns: 1fr 1fr; }
  .process-steps::before { display: none; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

/* ============================================================
   23. RESPONSIVE — MOBILE (max 768px)
============================================================ */
@media (max-width: 768px) {
  :root { --nav-h: 64px; }

  /* Nav */
  .nav-links { display: none; }
  .hamburger { display: flex; }

  /* Sections */
  section { padding: 64px 4.5%; }
  #hero { padding: 100px 4.5% 64px; }
  #cta-banner { padding: 64px 4.5%; }

  /* Section titles */
  .section-title { font-size: clamp(24px, 6vw, 34px); }

  /* Grids → single column */
  .services-grid { grid-template-columns: 1fr; }
  .results-grid { grid-template-columns: 1fr; }
  .expertise-grid { grid-template-columns: 1fr; }
  .process-steps { grid-template-columns: 1fr; gap: 14px; }
  .testimonials-grid { grid-template-columns: 1fr; }

  /* CF7 row */
  .cf7-row { grid-template-columns: 1fr !important; }

  /* CTA */
  .cta-inner { padding: 36px 22px; }
  .cta-actions { flex-direction: column; align-items: center; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .footer-legal { justify-content: center; }

  /* Hero stats */
  .hero-stats { flex-direction: column; align-items: center; gap: 16px; }
  .stat-item { text-align: center; }

  /* Pricing */
  .pricing-grid { max-width: 100%; }

  /* Clients */
  .clients-logos { gap: 20px; }

  /* About stat boxes */
  .about-stat-box { width: 100%; box-sizing: border-box; }

  /* Native form two-col → one-col */
  .dh-form .form-row { grid-template-columns: 1fr; }
}

/* ============================================================
   24. MOBILE TOUCH IMPROVEMENTS
============================================================ */
@media (hover: none) and (pointer: coarse) {
  .service-card:hover,
  .result-card:hover,
  .testimonial-card:hover,
  .step-card:hover,
  .expertise-item:hover { transform: none; }

  .btn-primary:hover,
  .btn-outline:hover,
  .btn-white:hover { transform: none; box-shadow: none; }

  .btn-primary:active { opacity: 0.85; }
  .btn-outline:active { background: rgba(0,87,255,0.1); }
}
