/* ============================================================
   NXTBYTE — Premium Design System
   Human-crafted, editorial, modern technology studio
   ============================================================ */

/* -----------------------------------------------------------
   1. DESIGN TOKENS
   ----------------------------------------------------------- */
:root {
  /* Brand Colors — Ink + Warm Amber */
  --ink: #16151A;
  /* Almost-black with warmth */
  --ink-700: #2D2B35;
  --ink-500: #5A5868;
  --ink-300: #9997A3;
  --ink-100: #F2F1F4;
  --ink-50: #F9F8FB;

  --amber: #F59E0B;
  /* Warm amber accent */
  --amber-light: #FDE68A;
  --amber-dark: #D97706;

  --blue-accent: #2563EB;
  /* Links & interactive */
  --green-ok: #059669;
  --red-err: #DC2626;

  --white: #FFFFFF;
  --surface: #FFFFFF;
  --surface-2: #FAF9FC;

  /* Typography */
  --font-heading: 'Plus Jakarta Sans', -apple-system, sans-serif;
  --font-body: 'Inter', -apple-system, sans-serif;

  /* Spacing scale */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-24: 6rem;

  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-full: 999px;

  /* Shadows — natural, layered */
  --shadow-xs: 0 1px 3px rgba(22, 21, 26, 0.04);
  --shadow-sm: 0 2px 8px rgba(22, 21, 26, 0.06), 0 1px 3px rgba(22, 21, 26, 0.03);
  --shadow-md: 0 4px 16px rgba(22, 21, 26, 0.08), 0 2px 6px rgba(22, 21, 26, 0.04);
  --shadow-lg: 0 12px 32px rgba(22, 21, 26, 0.10), 0 4px 12px rgba(22, 21, 26, 0.05);
  --shadow-xl: 0 24px 56px rgba(22, 21, 26, 0.12), 0 8px 20px rgba(22, 21, 26, 0.06);

  /* Transitions */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
  --t-fast: all 0.18s var(--ease-out);
  --t-base: all 0.28s var(--ease-out);
  --t-slow: all 0.5s var(--ease-out);

  /* Legacy compatibility */
  --primary: var(--ink);
  --primary-light: var(--ink-700);
  --primary-dark: var(--ink);
  --primary-gradient: linear-gradient(135deg, var(--ink) 0%, var(--ink-700) 100%);
  --secondary-brand: var(--amber);
  --secondary: var(--amber);
  --dark: var(--ink);
  --dark-light: var(--ink-700);
  --dark-gradient: linear-gradient(135deg, #16151A 0%, #2D2B35 100%);
  --gray: var(--ink-500);
  --light: var(--ink-100);
  --border-color: var(--ink-100);
  --text-dim: var(--ink-500);
  --surface: var(--white);
  --transition: var(--t-base);
  --shadow-glow: none;
}


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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink-700);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: var(--ink);
}

h1 {
  font-size: clamp(2.4rem, 5vw, 3.75rem);
}

h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.75rem);
}

h3 {
  font-size: clamp(1.3rem, 2.5vw, 1.75rem);
}

h4 {
  font-size: 1.25rem;
}

h5 {
  font-size: 1.1rem;
}

p {
  margin-bottom: 1rem;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--t-base);
}

ul {
  list-style: none;
}

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

/* -----------------------------------------------------------
   3. LAYOUT — Container & Grid
   ----------------------------------------------------------- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.grid {
  display: grid;
  gap: var(--space-8);
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

/* -----------------------------------------------------------
   4. UTILITIES
   ----------------------------------------------------------- */
.text-center {
  text-align: center;
}

.text-left {
  text-align: left;
}

.text-gray {
  color: var(--ink-500);
}

.text-primary {
  color: var(--ink);
}

.text-white {
  color: var(--white);
}

.text-accent {
  color: var(--amber);
}

.text-sm {
  font-size: 0.875rem;
}

.bg-light {
  background: var(--surface-2);
}

.bg-white {
  background: var(--white);
}

.bg-ink {
  background: var(--ink);
}

.mt-1 {
  margin-top: var(--space-4);
}

.mt-2 {
  margin-top: var(--space-8);
}

.mt-3 {
  margin-top: var(--space-12);
}

.mt-5 {
  margin-top: var(--space-12);
}

.mb-1 {
  margin-bottom: var(--space-1);
}

.mb-2 {
  margin-bottom: var(--space-2);
}

.mb-3 {
  margin-bottom: var(--space-4);
}

.mb-4 {
  margin-bottom: var(--space-6);
}

.mb-5 {
  margin-bottom: var(--space-12);
}

.col-span-3 {
  grid-column: span 3;
}

/* -----------------------------------------------------------
   5. BUTTONS
   ----------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: var(--t-base);
  white-space: nowrap;
}

/* Primary — Ink fill */
.btn-primary {
  background: var(--ink);
  color: var(--white);
  border-color: var(--ink);
}

.btn-primary:hover {
  background: var(--ink-700);
  border-color: var(--ink-700);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

/* Secondary — Ghost */
.btn-secondary {
  background: transparent;
  color: var(--ink);
  border-color: rgba(22, 21, 26, 0.18);
}

.btn-secondary:hover {
  background: var(--ink-50);
  border-color: rgba(22, 21, 26, 0.3);
  transform: translateY(-1px);
}

/* Outline — for dark backgrounds */
.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.35);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.6);
}

/* Amber CTA */
.btn-amber {
  background: var(--amber);
  color: var(--ink);
  border-color: var(--amber);
  font-weight: 700;
}

.btn-amber:hover {
  background: var(--amber-dark);
  border-color: var(--amber-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.3);
}

/* Outline Primary */
.btn-outline-primary {
  background: transparent;
  color: var(--blue-accent);
  border-color: rgba(37, 99, 235, 0.3);
  font-weight: 600;
}

.btn-outline-primary:hover {
  background: rgba(37, 99, 235, 0.05);
  border-color: var(--blue-accent);
}

/* -----------------------------------------------------------
   6. NAVIGATION
   ----------------------------------------------------------- */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(22, 21, 26, 0.06);
  transition: var(--t-base);
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.logo i {
  color: var(--amber);
  font-size: 1.2rem;
}

.logo span {
  color: var(--ink);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

/* Desktop: show full nav, hide hamburger */
@media (min-width: 992px) {
  .nav-menu {
    display: flex;
  }

  .mobile-menu-toggle {
    display: none !important;
  }
}

.nav-link {
  font-size: 0.925rem;
  font-weight: 500;
  color: var(--ink-500);
  padding: 0.5rem 0.875rem;
  border-radius: var(--radius-sm);
  transition: var(--t-fast);
}

.nav-link:hover,
.nav-link.active {
  color: var(--ink);
  background: var(--ink-100);
}

.nav-menu .btn-primary {
  padding: 0.55rem 1.25rem;
  font-size: 0.9rem;
  margin-left: var(--space-2);
  border-radius: var(--radius-sm);
}

/* Mobile Toggle — hidden on desktop, shown on mobile */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
}

@media (max-width: 991px) {
  .mobile-menu-toggle {
    display: flex !important;
  }
}

.mobile-menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: var(--t-fast);
}

/* Mobile Menu */
.mobile-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: var(--white);
  padding: var(--space-4);
  border-bottom: 1px solid var(--ink-100);
  box-shadow: var(--shadow-lg);
  flex-direction: column;
  gap: 2px;
}

.mobile-menu.active {
  display: flex;
}

.mobile-menu .nav-link {
  display: block;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
}

/* -----------------------------------------------------------
   7. BRANDING (FOUC prevention)
   ----------------------------------------------------------- */
body:not(.branding-loaded) .logo,
body:not(.branding-loaded) .dynamic-company-name {
  opacity: 0;
  visibility: hidden;
}

.logo,
.dynamic-company-name {
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* -----------------------------------------------------------
   8. HERO — HOME PAGE (Restructured Hero)
   ----------------------------------------------------------- */
.hero-premium {
  background: #ffffff;
  padding: 20px 0 60px;
  min-height: auto;
  display: flex;
  align-items: center;
  border-bottom: none;
  position: relative;
  overflow: hidden;
}

/* Remove diagonal background */
.hero-premium::before {
  display: none;
}

.hero-grid-premium {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-12);
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-content-premium {
  max-width: 620px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 0.5rem 1.25rem;
  background: #FFF7ED;
  border: none;
  border-radius: var(--radius-full);
  color: #9A3412;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-8);
}

.hero-badge i {
  color: #F97316;
}

.hero-content-premium h1 {
  font-size: clamp(2.8rem, 6vw, 4.2rem);
  line-height: 1.1;
  margin-bottom: var(--space-6);
  color: var(--ink);
  font-weight: 850;
}

.hero-content-premium p {
  font-size: 1.4rem;
  color: #64748B;
  line-height: 1.6;
  margin-bottom: var(--space-12);
  max-width: 520px;
}

.hero-actions-premium {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
  align-items: center;
}

.hero-actions-premium .btn {
  padding: 1rem 2.25rem;
  font-size: 1.1rem;
  border-radius: var(--radius-md);
}

.hero-actions-premium .btn-primary {
  background: #111827;
  border: none;
}

.hero-image-premium {
  position: relative;
  width: 100%;
}

.hero-image-premium img {
  width: 100%;
  height: auto;
  transform: translateY(0);
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.05));
  mix-blend-mode: multiply;
  /* Ensures white backgrounds blend perfectly */
}

/* -----------------------------------------------------------
   8b. STATS BAR (Dark Global)
   ----------------------------------------------------------- */
.stats-bar-dark {
  background: #111827;
  padding: var(--space-16) 0;
  border-radius: var(--radius-lg);
  margin-top: -60px;
  /* Slight overlap for modern look */
  margin-bottom: var(--space-24);
  position: relative;
  z-index: 10;
}

.stats-grid-dark {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8);
}

.stat-box-dark {
  padding: var(--space-4) var(--space-12);
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  text-align: left;
}

.stat-box-dark:last-child {
  border-right: none;
}

.stat-box-dark h3 {
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1;
  margin-bottom: var(--space-2);
}

.stat-box-dark p {
  color: #94A3B8;
  font-size: 0.95rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin: 0;
}

/* Responsive adjustments — Mobile Hero (side-by-side) + Stats Redesign */
@media (max-width: 991px) {

  /* ── Hero: full-width card with image at bottom ── */
  .hero-premium {
    padding: 32px 0 0 !important;
    background: #f8f9fb !important;
    overflow: hidden !important;
  }

  .hero-grid-premium {
    display: flex !important;
    flex-direction: column !important;
    gap: 0 !important;
    align-items: stretch !important;
    width: 100% !important;
  }

  /* Text block */
  .hero-content-premium {
    padding: 0 24px 28px !important;
    text-align: left !important;
    max-width: 100% !important;
    order: 1;
  }

  .hero-badge {
    padding: 0.35rem 0.85rem !important;
    font-size: 0.7rem !important;
    margin-bottom: 14px !important;
    letter-spacing: 0.06em !important;
  }

  .hero-content-premium h1 {
    font-size: 2rem !important;
    line-height: 1.18 !important;
    margin-bottom: 12px !important;
    letter-spacing: -0.03em !important;
  }

  .hero-content-premium p {
    font-size: 0.95rem !important;
    color: #64748b !important;
    margin-bottom: 22px !important;
    line-height: 1.6 !important;
    max-width: 100% !important;
  }

  .hero-actions-premium {
    justify-content: flex-start !important;
    gap: 10px !important;
    display: flex !important;
    flex-wrap: wrap !important;
  }

  .hero-actions-premium .btn {
    padding: 0.7rem 1.4rem !important;
    font-size: 0.9rem !important;
    border-radius: 6px !important;
  }

  /* Image block: full-width flush to bottom of hero */
  .hero-image-premium {
    order: 2;
    width: 100% !important;
    background: linear-gradient(180deg, #f8f9fb 0%, #eef1f7 100%) !important;
    border-radius: 20px 20px 0 0 !important;
    overflow: hidden !important;
    display: flex !important;
    justify-content: center !important;
    align-items: flex-end !important;
    padding: 20px 20px 0 !important;
  }

  .hero-image-premium img {
    width: 88% !important;
    max-width: 340px !important;
    margin: 0 auto !important;
    transform: none !important;
    filter: drop-shadow(0 -8px 24px rgba(0,0,0,0.08)) !important;
    mix-blend-mode: normal !important;
    display: block !important;
  }

  /* ── Stats Bar Redesign ── */
  .stats-bar-dark {
    background: #111827 !important;
    margin-top: 0 !important;
    margin-bottom: 48px !important;
    border-radius: 0 !important;
    padding: 20px 24px !important;
    box-shadow: none !important;
  }

  .stats-grid-dark {
    grid-template-columns: repeat(3, 1fr) !important;
    display: grid !important;
    gap: 0 !important;
  }

  .stat-box-dark {
    border-right: 1px solid rgba(255,255,255,0.1) !important;
    border-bottom: none !important;
    padding: 8px 12px !important;
    text-align: center !important;
  }

  .stat-box-dark:last-child {
    border-right: none !important;
  }

  .stat-box-dark h3 {
    font-size: 1.65rem !important;
    font-weight: 800 !important;
    color: #ffffff !important;
    margin-bottom: 2px !important;
    line-height: 1 !important;
  }

  .stat-box-dark p {
    font-size: 0.58rem !important;
    color: #94A3B8 !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.08em !important;
    margin: 0 !important;
  }
}

/* -----------------------------------------------------------
   9. PAGE HERO — Inner Pages
   ----------------------------------------------------------- */
.hero-page {
  background: var(--ink);
  padding: 80px 0 60px;
  position: relative;
  overflow: hidden;
}

.hero-page::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.hero-page-content {
  position: relative;
  z-index: 1;
  max-width: 640px;
}

.hero-page-content .hero-badge {
  background: rgba(245, 158, 11, 0.15);
  border-color: rgba(245, 158, 11, 0.3);
  color: var(--amber);
}

.hero-page-content h1 {
  color: var(--white);
  margin-bottom: var(--space-4);
}

.hero-page-content p {
  color: rgba(255, 255, 255, 0.65);
  font-size: 1.15rem;
  line-height: 1.7;
  margin-bottom: 0;
}

/* Legacy class mapping for existing pages */
.hero-modern {
  background: var(--ink);
  padding: 80px 0 60px;
  position: relative;
  overflow: hidden;
}

.hero-mesh-gradient,
.cta-mesh {
  display: none;
}

.hero-content-modern {
  max-width: 640px;
  position: relative;
  z-index: 1;
}

.hero-content-modern h1 {
  color: var(--white);
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  margin-bottom: var(--space-4);
}

.hero-content-modern p {
  color: rgba(255, 255, 255, 0.65);
  font-size: 1.1rem;
  margin-bottom: 0;
}

/* -----------------------------------------------------------
   10. SECTIONS
   ----------------------------------------------------------- */
.section {
  padding: 100px 0;
  position: relative;
}

.bg-light {
  background: var(--surface-2);
}

/* Section Header */
.container-header {
  margin-bottom: var(--space-16);
}

.container-header.header-left,
.container-header {
  text-align: left;
  max-width: 640px;
}

.container-header .label {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--amber-dark);
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.25);
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-full);
  margin-bottom: var(--space-4);
}

.container-header h2 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  margin-bottom: var(--space-4);
  color: var(--ink);
}

.container-header p {
  font-size: 1.1rem;
  color: var(--ink-500);
  line-height: 1.7;
  margin: 0;
}

/* -----------------------------------------------------------
   11. SERVICE CARDS
   ----------------------------------------------------------- */
.service-card-premium {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 2.25rem;
  border: 1.5px solid var(--ink-100);
  box-shadow: var(--shadow-xs);
  transition: var(--t-base);
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.service-card-premium::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 0;
  background: var(--amber);
  border-radius: 0 0 4px 0;
  transition: height 0.35s var(--ease-out);
}

.service-card-premium:hover {
  border-color: rgba(22, 21, 26, 0.12);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.service-card-premium:hover::before {
  height: 100%;
}

.service-icon-gradient {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  margin-bottom: var(--space-6);
  background: var(--ink-100);
  color: var(--ink);
  flex-shrink: 0;
  transition: var(--t-base);
}

.service-card-premium:hover .service-icon-gradient {
  background: var(--amber);
  color: var(--white);
}

/* Override old gradient classes */
.gradient-blue,
.gradient-purple,
.gradient-green,
.gradient-orange {
  background: var(--ink-100);
  color: var(--ink);
}

.service-card-premium h4 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: var(--space-3);
  color: var(--ink);
}

/* Mission/Vision variant */
.mission-vision-card {
  flex-direction: row;
  align-items: flex-start;
  gap: var(--space-6);
  padding: 2rem;
}

.card-icon {
  margin-bottom: 0;
}

/* -----------------------------------------------------------
   12. PORTFOLIO CARDS
   ----------------------------------------------------------- */
.project-card-modern {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1.5px solid var(--ink-100);
  box-shadow: var(--shadow-xs);
  transition: var(--t-base);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.project-card-modern:hover {
  border-color: rgba(22, 21, 26, 0.12);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.project-image-wrapper {
  position: relative;
  padding-top: 62%;
  overflow: hidden;
  background: var(--ink-100);
}

.project-image-wrapper img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s var(--ease-out);
}

.project-card-modern:hover img {
  transform: scale(1.04);
}

.project-content-modern {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.project-client-badge {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--ink-300);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-2);
}

.project-title-modern {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: var(--space-3);
  color: var(--ink);
  line-height: 1.3;
}

.project-description-modern {
  font-size: 0.9rem;
  color: var(--ink-500);
  line-height: 1.65;
  margin-bottom: var(--space-4);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.project-tech-tags {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin-top: auto;
}

.project-tech-tag {
  font-size: 0.7rem;
  font-weight: 600;
  background: var(--ink-100);
  color: var(--ink-500);
  padding: 0.3rem 0.7rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(22, 21, 26, 0.06);
}

/* -----------------------------------------------------------
   13. TESTIMONIALS
   ----------------------------------------------------------- */
.testimonial-modern {
  background: var(--white);
  padding: 2rem;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--ink-100);
  box-shadow: var(--shadow-xs);
  transition: var(--t-base);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.testimonial-modern:hover {
  box-shadow: var(--shadow-md);
  border-color: rgba(22, 21, 26, 0.1);
}

/* Quote mark */
.testimonial-modern::before {
  content: '\201C';
  font-family: Georgia, serif;
  font-size: 4rem;
  line-height: 1;
  color: var(--amber);
  opacity: 0.5;
  display: block;
  margin-bottom: -0.5rem;
}

.rating-stars {
  color: var(--amber);
  font-size: 0.85rem;
  letter-spacing: 3px;
  margin-bottom: var(--space-4);
}

.testimonial-text {
  font-size: 1rem;
  color: var(--ink-700);
  line-height: 1.75;
  flex: 1;
  margin-bottom: var(--space-6);
  font-style: italic;
}

.testimonial-author-section {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding-top: var(--space-4);
  border-top: 1px solid var(--ink-100);
  margin-top: auto;
}

.testimonial-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  color: var(--white);
  flex-shrink: 0;
}

/* -----------------------------------------------------------
   14. BLOG CARDS
   ----------------------------------------------------------- */
.blog-card-modern {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1.5px solid var(--ink-100);
  box-shadow: var(--shadow-xs);
  transition: var(--t-base);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.blog-card-modern:hover {
  box-shadow: var(--shadow-md);
  border-color: rgba(22, 21, 26, 0.1);
  transform: translateY(-3px);
}

.blog-image-wrapper {
  position: relative;
  padding-top: 58%;
  overflow: hidden;
  background: var(--ink-100);
}

.blog-image-wrapper img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s var(--ease-out);
}

.blog-card-modern:hover img {
  transform: scale(1.04);
}

.blog-category-badge {
  position: absolute;
  top: var(--space-4);
  left: var(--space-4);
  background: var(--amber);
  color: var(--ink);
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.blog-content-modern {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.blog-meta-modern {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  font-size: 0.8rem;
  color: var(--ink-300);
  margin-bottom: var(--space-3);
}

.blog-title-modern {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.4;
  margin-bottom: var(--space-4);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* -----------------------------------------------------------
   15. CTA STRIP
   ----------------------------------------------------------- */
.cta-premium {
  background: var(--ink);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.cta-premium::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.2) 0%, transparent 70%);
  pointer-events: none;
}

.cta-premium::after {
  content: '';
  position: absolute;
  bottom: -80px;
  left: -40px;
  width: 240px;
  height: 240px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.cta-grid-premium {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--space-8);
  align-items: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 3.5rem 4rem;
}

.cta-grid-premium h2 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  color: var(--white);
  margin-bottom: var(--space-3);
}

.cta-grid-premium .cta-content p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 1.1rem;
  margin: 0;
}

.cta-action {
  flex-shrink: 0;
}

/* Old-style CTA (about, services pages) */
.cta-premium .reveal h2,
.cta-premium .reveal>h2 {
  color: var(--white);
}

/* -----------------------------------------------------------
   16. ABOUT PAGE ELEMENTS
   ----------------------------------------------------------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: center;
}

.about-heading {
  font-size: clamp(2rem, 4vw, 2.75rem) !important;
  font-weight: 800;
  margin-bottom: var(--space-6);
  line-height: 1.1;
  color: var(--ink);
  position: relative;
  display: inline-block;
}

.about-heading::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 48px;
  height: 3px;
  background: var(--amber);
  border-radius: 2px;
}

.about-lead {
  font-size: 1.1rem !important;
  color: var(--ink-700) !important;
  line-height: 1.75 !important;
  margin-bottom: var(--space-4);
}

.section-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.9rem;
  background: rgba(245, 158, 11, 0.1);
  border: 1.5px solid rgba(245, 158, 11, 0.25);
  border-radius: var(--radius-full);
  margin-bottom: var(--space-4);
}

.section-badge span {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--amber-dark);
  -webkit-text-fill-color: unset;
  background: none;
}

.stats-row {
  display: flex;
  gap: var(--space-8);
  margin-top: var(--space-8);
  padding-top: var(--space-6);
  border-top: 1px solid var(--ink-100);
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: var(--space-1);
  line-height: 1;
}

.stat-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-300);
}

.about-cards-column {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

/* -----------------------------------------------------------
   17. FOOTER
   ----------------------------------------------------------- */
.footer-modern {
  background: var(--ink);
  padding: 80px 0 40px;
  color: rgba(255, 255, 255, 0.5);
}

.footer-content {
  display: grid;
  grid-template-columns: 2.2fr 1fr 1fr 1.4fr;
  gap: var(--space-12);
  margin-bottom: var(--space-12);
}

.footer-section h3 {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
  margin-bottom: var(--space-6);
}

.footer-section .footer-logo {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-transform: none;
  color: var(--white);
  margin-bottom: var(--space-4);
}

.footer-section p {
  font-size: 0.9rem;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 0;
}

.footer-links li {
  margin-bottom: var(--space-3);
}

.footer-links a {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.55);
  transition: var(--t-fast);
}

.footer-links a:hover {
  color: var(--white);
}

.footer-links a i {
  margin-right: var(--space-2);
  color: var(--amber);
  width: 16px;
}

.social-links {
  display: flex;
  gap: var(--space-2);
  margin-top: var(--space-6);
}

.social-btn {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.85rem;
  transition: var(--t-fast);
}

.social-btn:hover {
  background: var(--amber);
  border-color: var(--amber);
  color: var(--ink);
  transform: translateY(-2px);
}

.footer-bottom {
  padding-top: var(--space-6);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.85rem;
}

.footer-bottom-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-4);
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.4);
  transition: var(--t-fast);
}

.footer-bottom a:hover {
  color: var(--white);
}

/* -----------------------------------------------------------
   18. LOADING / SPINNER
   ----------------------------------------------------------- */
.loading-spinner {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: var(--space-16);
  grid-column: 1 / -1;
}

.spinner-border {
  width: 36px;
  height: 36px;
  border: 3px solid var(--ink-100);
  border-top-color: var(--ink);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* -----------------------------------------------------------
   19. REVEAL ANIMATION
   ----------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* -----------------------------------------------------------
   20. RESPONSIVE
   ----------------------------------------------------------- */
@media (max-width: 1100px) {
  .footer-content {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-8);
  }

  .hero-grid-premium {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }

  .hero-premium::before {
    display: none;
  }

  .hero-stats-premium {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
  }

  .stats-list-premium {
    flex-direction: row;
  }

  .stat-item-premium {
    border-bottom: none;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    padding: var(--space-4) var(--space-6);
  }

  .stat-item-premium:last-child {
    border-right: none;
  }

  .cta-grid-premium {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 2.5rem 2rem;
  }

  .cta-action {
    justify-self: center;
  }
}

@media (max-width: 900px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }

  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .navbar {
    height: 64px;
  }

  .nav-menu {
    display: none;
  }

  .mobile-menu-toggle {
    display: flex !important;
  }

  /* Hero Redesign Mobile Overrides */
  .hero-premium {
    padding: 60px 0 40px;
    min-height: auto;
    text-align: center;
  }

  .hero-grid-premium {
    grid-template-columns: 1fr;
    gap: var(--space-12);
  }

  .hero-content-premium {
    margin: 0 auto;
    order: 1;
    /* Force text content to be first */
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .hero-badge {
    margin: 0 auto var(--space-6);
  }

  .hero-content-premium h1 {
    font-size: clamp(2.2rem, 8vw, 3rem);
    margin-bottom: var(--space-4);
  }

  .hero-content-premium p {
    font-size: 1.1rem;
    margin-bottom: var(--space-8);
  }

  .hero-actions-premium {
    flex-direction: column;
    gap: var(--space-3);
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
  }

  .hero-actions-premium .btn {
    width: 100%;
    justify-content: center;
  }

  .hero-image-premium {
    order: 2;
    /* Image below text on mobile */
    max-width: 380px;
    margin: 0 auto;
  }

  /* Stats Bar Mobile Overrides */
  .stats-bar-dark {
    margin-top: 0;
    border-radius: 0;
    padding: var(--space-12) 0;
    margin-bottom: var(--space-16);
  }

  .stats-grid-dark {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .stat-box-dark {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding: var(--space-8) 0;
    text-align: center;
  }

  .stat-box-dark:last-child {
    border-bottom: none;
  }

  .stat-box-dark h3 {
    font-size: 2.8rem;
  }

  .stat-box-dark p {
    font-size: 0.85rem;
  }

  .section {
    padding: 60px 0;
  }

  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }

  .container {
    padding: 0 var(--space-6);
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 1.85rem;
  }

  .hero-actions-premium {
    max-width: 100%;
  }

  .footer-bottom-content {
    flex-direction: column;
    text-align: center;
  }
}