/*
Theme Name: NK Group Agency
Theme URI: https://nkgroupagency.com
Description: NK Group Performance Marketing Agency
Version: 2.0.0
Author: NK Group
Text Domain: nkgroup
*/

/* ─── Reset ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }

/* ─── CRITICAL: Kill any SVG that leaks outside its container ─── */
svg {
  display: inline-block !important;
  width: 1em !important;
  height: 1em !important;
  max-width: 1em !important;
  max-height: 1em !important;
  overflow: hidden !important;
  vertical-align: middle !important;
  flex-shrink: 0 !important;
  pointer-events: none !important;
}

/* ─── Tokens ─── */
:root {
  --bg:        #f8faff;
  --bg2:       #eef1ff;
  --card:      #ffffff;
  --border:    #e2e5f0;
  --primary:   #3b5bdb;
  --primary-d: #2f4ac4;
  --primary-l: #dde3ff;
  --text:      #1a1f3c;
  --muted:     #6b7280;
  --white:     #ffffff;
  --dark:      #0f172a;
  --dark2:     #1e293b;
  --grad:      linear-gradient(135deg, #3b5bdb 0%, #5a7af0 100%);
  --grad-bg:   linear-gradient(135deg, #eef1ff 0%, #e5e8ff 100%);
  --shadow:    0 4px 24px rgba(59,91,219,.12);
  --shadow-lg: 0 10px 40px rgba(59,91,219,.18);
  --radius:    0.75rem;
  --radius-sm: 0.5rem;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Inter', Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}
img { display: block; max-width: 100%; height: auto; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; font: inherit; border: none; background: none; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }

/* ─── Typography ─── */
h1 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 800; line-height: 1.15; letter-spacing: -.02em; }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); font-weight: 700; line-height: 1.2; }
h3 { font-size: 1.25rem; font-weight: 600; line-height: 1.3; }
p  { color: var(--muted); line-height: 1.7; }

/* ════════════════════════════════════
   HEADER
════════════════════════════════════ */
.site-header {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(248,250,255,.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex; align-items: center;
  justify-content: space-between;
  height: 68px; max-width: 1200px;
  margin: 0 auto; padding: 0 1.5rem;
  gap: 2rem;
}
.site-logo {
  font-size: 1.375rem; font-weight: 800;
  color: var(--primary); white-space: nowrap;
  flex-shrink: 0;
}
.nav-menu {
  display: flex; align-items: center;
  gap: 2rem; flex: 1; justify-content: center;
}
.nav-menu a {
  font-size: .9rem; font-weight: 500;
  color: var(--muted);
  transition: color .2s;
  white-space: nowrap;
}
.nav-menu a:hover, .nav-menu a.active { color: var(--text); }
.nav-cta {
  display: inline-flex; align-items: center;
  padding: .5rem 1.25rem;
  background: var(--primary);
  color: var(--white) !important;
  border-radius: var(--radius-sm);
  font-size: .875rem; font-weight: 600;
  white-space: nowrap; flex-shrink: 0;
  transition: background .2s, transform .15s;
  box-shadow: var(--shadow);
}
.nav-cta:hover { background: var(--primary-d); transform: translateY(-1px); }

/* Mobile toggle */
.menu-toggle {
  display: none;
  width: 36px; height: 36px;
  flex-direction: column;
  align-items: center; justify-content: center;
  gap: 5px; flex-shrink: 0;
}
.menu-toggle span {
  display: block; width: 22px; height: 2px;
  background: var(--text); border-radius: 2px;
  transition: all .3s;
}

/* ════════════════════════════════════
   BUTTONS
════════════════════════════════════ */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .5rem;
  padding: .75rem 1.5rem;
  border-radius: var(--radius-sm);
  font-size: .9375rem; font-weight: 600;
  white-space: nowrap;
  transition: all .2s;
  cursor: pointer;
  border: 2px solid transparent;
  line-height: 1;
}
.btn-primary {
  background: var(--primary); color: var(--white);
  border-color: var(--primary); box-shadow: var(--shadow);
}
.btn-primary:hover { background: var(--primary-d); border-color: var(--primary-d); transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn-outline {
  background: transparent; color: var(--primary);
  border-color: var(--primary);
}
.btn-outline:hover { background: var(--primary-l); }
.btn-white {
  background: var(--white); color: var(--primary);
  border-color: var(--white);
}
.btn-white:hover { background: #f0f4ff; }
.btn-grad {
  background: var(--grad); color: var(--white);
  border-color: transparent; box-shadow: var(--shadow);
}
.btn-grad:hover { opacity: .9; transform: translateY(-2px); }
.btn-icon { font-size: 1rem; line-height: 1; }

/* ════════════════════════════════════
   SECTION HEADER
════════════════════════════════════ */
.sec-head { text-align: center; max-width: 640px; margin: 0 auto 3.5rem; }
.sec-head h1, .sec-head h2 { margin-bottom: .75rem; color: var(--text); }
.sec-head p { font-size: 1.0625rem; }

/* ════════════════════════════════════
   ICON BOX (replaces SVG completely)
════════════════════════════════════ */
.icon-box {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: var(--grad);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.375rem; line-height: 1;
  flex-shrink: 0;
  margin-bottom: 1.25rem;
}
.icon-box-sm {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--grad);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.125rem; line-height: 1;
  flex-shrink: 0;
}
.icon-circle {
  width: 44px; height: 44px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.125rem; line-height: 1;
  flex-shrink: 0;
}

/* ════════════════════════════════════
   HERO
════════════════════════════════════ */
.hero {
  background: var(--grad-bg);
  padding: 5rem 1.5rem 5.5rem;
}
.hero-inner {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 3.5rem; align-items: center;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .375rem 1rem;
  border-radius: 999px;
  background: var(--primary-l);
  color: var(--primary);
  font-size: .8125rem; font-weight: 600;
  margin-bottom: 1.5rem;
  width: fit-content;
}
.hero-badge-icon { font-size: .9rem; }
.hero h1 { color: var(--text); margin-bottom: 1.25rem; }
.hero-highlight { color: var(--primary); }
.hero-desc {
  font-size: 1.0625rem; color: var(--muted);
  max-width: 480px; margin-bottom: 2rem; line-height: 1.75;
}
.hero-btns {
  display: flex; gap: 1rem;
  flex-wrap: wrap; margin-bottom: 3rem;
}
.hero-stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.stat-val { font-size: 1.875rem; font-weight: 800; color: var(--primary); line-height: 1; }
.stat-label { font-size: .75rem; color: var(--muted); margin-top: .25rem; }
.hero-img {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.hero-img img { width: 100%; height: 420px; object-fit: cover; }

/* ════════════════════════════════════
   SERVICE CARDS
════════════════════════════════════ */
.services-sec { padding: 5.5rem 1.5rem; background: var(--bg); }
.cards-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem; max-width: 1200px; margin: 0 auto;
}
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: border-color .25s, transform .25s, box-shadow .25s;
}
.card:hover {
  border-color: var(--primary);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.card h3 { color: var(--text); margin-bottom: .5rem; }
.card p { font-size: .9rem; }
.card-features { margin-top: 1.25rem; display: flex; flex-direction: column; gap: .5rem; }
.card-features li {
  display: flex; align-items: center; gap: .625rem;
  font-size: .875rem; color: var(--text);
}
.check { color: var(--primary); font-size: .875rem; flex-shrink: 0; font-weight: 700; }
.sec-cta { text-align: center; margin-top: 3rem; }

/* ════════════════════════════════════
   CTA BANNER
════════════════════════════════════ */
.cta-banner {
  background: var(--bg2); padding: 5rem 1.5rem; text-align: center;
}
.cta-banner h2 { margin-bottom: 1rem; color: var(--text); }
.cta-banner p  { max-width: 540px; margin: 0 auto 2rem; font-size: 1.0625rem; }
.cta-btns { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ════════════════════════════════════
   WHY US
════════════════════════════════════ */
.why-sec { padding: 5.5rem 1.5rem; background: var(--bg); }
.why-grid {
  display: grid; grid-template-columns: repeat(3,1fr);
  gap: 1.5rem; max-width: 1200px; margin: 0 auto 3.5rem;
}
.why-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: border-color .25s, transform .25s;
}
.why-card:hover { border-color: var(--primary); transform: translateY(-3px); }
.why-card h3 { color: var(--text); margin: 1rem 0 .5rem; }
.why-cta-box {
  background: var(--grad);
  border-radius: var(--radius);
  padding: 3rem 2rem;
  text-align: center;
  color: var(--white);
  max-width: 1200px; margin: 0 auto;
  box-shadow: var(--shadow-lg);
}
.why-cta-box h3 { font-size: 1.875rem; font-weight: 700; color: var(--white); margin-bottom: .75rem; }
.why-cta-box p  { color: rgba(255,255,255,.85); max-width: 520px; margin: 0 auto 1.75rem; }

/* ════════════════════════════════════
   PROCESS
════════════════════════════════════ */
.process-sec { padding: 5.5rem 1.5rem; background: var(--bg2); }
.process-grid {
  display: grid; grid-template-columns: repeat(3,1fr);
  gap: 1.5rem; max-width: 1200px; margin: 0 auto;
}
.process-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  position: relative;
  box-shadow: var(--shadow);
}
.process-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.25rem; }
.step-num { font-size: 2.5rem; font-weight: 800; color: var(--primary-l); line-height: 1; }
.process-card h3 { color: var(--text); margin-bottom: .5rem; }

/* ════════════════════════════════════
   REGIONS
════════════════════════════════════ */
.regions-sec { padding: 5.5rem 1.5rem; background: var(--bg2); }
.regions-grid {
  display: grid; grid-template-columns: repeat(2,1fr);
  gap: 1.5rem; max-width: 1200px; margin: 0 auto 1.5rem;
}
.region-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
}
.region-card h2 { color: var(--text); margin-bottom: 1.25rem; }
.region-tags { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.5rem; }
.tag {
  padding: .25rem .75rem;
  background: var(--primary-l);
  color: var(--primary);
  border-radius: 999px;
  font-size: .75rem; font-weight: 500;
}
.region-feats {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: .5rem; margin-bottom: 1.5rem;
}
.region-feats li { display: flex; align-items: center; gap: .5rem; font-size: .875rem; color: var(--text); }
.region-stats {
  display: grid; grid-template-columns: repeat(3,1fr);
  gap: 1rem; padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}
.r-stat-val { font-size: 1.5rem; font-weight: 700; color: var(--primary); line-height: 1; }
.r-stat-lbl { font-size: .75rem; color: var(--muted); margin-top: .25rem; }
.global-box {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 2.5rem; align-items: center;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.5rem;
  max-width: 1200px; margin: 0 auto;
}
.global-box h3 { color: var(--text); margin-bottom: .75rem; }
.global-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-top: 1.5rem; }
.g-stat-val { font-size: 2rem; font-weight: 800; color: var(--primary); line-height: 1; }
.g-stat-lbl { font-size: .75rem; color: var(--muted); margin-top: .25rem; }
.global-box img { width: 100%; border-radius: var(--radius-sm); }

/* ════════════════════════════════════
   CONTACT
════════════════════════════════════ */
.contact-sec { padding: 5.5rem 1.5rem; background: var(--bg); }
.contact-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 3rem; max-width: 1200px; margin: 0 auto;
}
.contact-info h2 { color: var(--text); margin-bottom: .75rem; font-size: 1.5rem; }
.contact-info > p { margin-bottom: 1.75rem; }
.contact-item {
  display: flex; align-items: flex-start; gap: 1rem;
  padding: 1.25rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
}
.c-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--grad);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.125rem; line-height: 1;
  flex-shrink: 0;
}
.c-label { font-size: .8125rem; font-weight: 600; color: var(--text); margin-bottom: .25rem; }
.c-val { font-size: .875rem; color: var(--muted); }
.c-val a { color: var(--muted); transition: color .2s; }
.c-val a:hover { color: var(--primary); }
.expect {
  background: var(--primary-l);
  border-radius: var(--radius-sm);
  padding: 1.25rem; margin-top: .25rem;
}
.expect-title { font-size: .875rem; font-weight: 600; color: var(--primary); margin-bottom: .75rem; }
.expect-list { display: flex; flex-direction: column; gap: .5rem; }
.expect-list li { display: flex; align-items: center; gap: .5rem; font-size: .875rem; color: var(--text); }
.contact-form-wrap {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
}
.form-row { margin-bottom: 1rem; }
.form-label { display: block; font-size: .875rem; font-weight: 500; color: var(--text); margin-bottom: .375rem; }
.form-input, .form-select, .form-textarea {
  width: 100%; padding: .625rem .875rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--text);
  font-size: .9375rem;
  transition: border-color .2s, box-shadow .2s;
  -webkit-appearance: none;
  appearance: none;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(59,91,219,.12);
  background: var(--white);
}
.form-textarea { min-height: 120px; resize: vertical; }
.form-select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .75rem center; padding-right: 2.5rem; }
.form-success { text-align: center; padding: 2rem; color: var(--primary); font-weight: 600; font-size: 1.0625rem; }

/* ════════════════════════════════════
   FOOTER
════════════════════════════════════ */
.site-footer { background: var(--dark); color: #94a3b8; }
.footer-top { padding: 4rem 0 3rem; }
.footer-grid {
  max-width: 1200px; margin: 0 auto; padding: 0 1.5rem;
  display: grid; grid-template-columns: 1.8fr 1fr 1fr 1.4fr;
  gap: 3rem;
}
.footer-logo { font-size: 1.375rem; font-weight: 800; color: #fff; display: block; margin-bottom: .875rem; }
.footer-tagline { font-size: .875rem; line-height: 1.7; max-width: 260px; margin-bottom: 1.5rem; }
.social-row { display: flex; gap: .625rem; }
.social-btn {
  width: 36px; height: 36px;
  border-radius: 8px;
  border: 1px solid #334155;
  background: transparent;
  color: #94a3b8;
  font-size: 1rem; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  transition: all .2s; cursor: pointer;
}
.social-btn:hover { background: var(--primary); border-color: var(--primary); color: #fff; }
.footer-heading { font-size: .6875rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: #fff; margin-bottom: 1.25rem; }
.footer-links { display: flex; flex-direction: column; gap: .625rem; }
.footer-links a { font-size: .875rem; color: #94a3b8; transition: color .2s; }
.footer-links a:hover { color: #fff; }
.footer-contact { display: flex; flex-direction: column; gap: .875rem; margin-bottom: 1.5rem; }
.fc-item { display: flex; align-items: flex-start; gap: .625rem; }
.fc-icon { font-size: 1rem; line-height: 1.5; flex-shrink: 0; color: var(--primary); }
.fc-text { font-size: .875rem; color: #94a3b8; }
.fc-text a { color: #94a3b8; transition: color .2s; }
.fc-text a:hover { color: #fff; }
.footer-cta-btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .5rem 1.125rem;
  background: var(--primary); color: #fff;
  border-radius: var(--radius-sm);
  font-size: .875rem; font-weight: 600;
  transition: background .2s;
}
.footer-cta-btn:hover { background: var(--primary-d); }
.footer-bottom {
  border-top: 1px solid #1e293b;
  padding: 1.25rem 1.5rem;
}
.footer-bottom-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: .75rem;
}
.footer-copy { font-size: .8125rem; color: #475569; }
.footer-legal { display: flex; gap: 1.5rem; }
.footer-legal a { font-size: .8125rem; color: #475569; transition: color .2s; }
.footer-legal a:hover { color: #fff; }

/* ════════════════════════════════════
   RESPONSIVE
════════════════════════════════════ */
@media (max-width: 1024px) {
  .cards-grid, .why-grid, .process-grid { grid-template-columns: repeat(2,1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-img { display: none; }
  .hero-stats { grid-template-columns: repeat(2,1fr); }
  .cards-grid, .why-grid, .process-grid,
  .regions-grid, .contact-grid, .global-box { grid-template-columns: 1fr; }
  .nav-menu { display: none; }
  .nav-menu.open {
    display: flex; flex-direction: column;
    position: absolute; top: 68px; left: 0; right: 0;
    background: rgba(248,250,255,.98);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    padding: 1.25rem 1.5rem; gap: 1rem;
    align-items: flex-start; z-index: 999;
  }
  .menu-toggle { display: flex; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  h1 { font-size: 2rem; }
}
@media (max-width: 560px) {
  .hero-btns, .cta-btns { flex-direction: column; align-items: flex-start; }
  .cta-btns { align-items: center; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom-inner { flex-direction: column; text-align: center; }
  .region-feats { grid-template-columns: 1fr; }
}

/* ── Plain-text icons (✉ ☎ ◎) sizing ── */
.fc-icon {
  font-size: 1rem !important;
  line-height: 1.4 !important;
  width: 20px !important;
  text-align: center;
}
.c-icon {
  font-size: 1.125rem !important;
  width: 44px !important;
  height: 44px !important;
  min-width: 44px !important;
}

/* ── Ensure no stray SVG ever breaks layout ── */
svg {
  display: inline-block !important;
  width: 1em !important;
  height: 1em !important;
  max-width: 1em !important;
  max-height: 1em !important;
  overflow: hidden !important;
}

/* ── btn text must never wrap ── */
.btn { white-space: nowrap !important; }
.nav-cta { white-space: nowrap !important; }
