/* ============================================================
   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);
}

.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 */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
}

.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 (Asymmetric Split Layout)
   ----------------------------------------------------------- */
.hero-premium {
  background: var(--white);
  padding: 100px 0 80px;
  min-height: 88vh;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--ink-100);
  position: relative;
  overflow: hidden;
}

/* Subtle diagonal background accent */
.hero-premium::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 42%;
  height: 100%;
  background: var(--surface-2);
  clip-path: polygon(8% 0, 100% 0, 100% 100%, 0% 100%);
  z-index: 0;
}

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

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

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 0.4rem 1rem;
  background: rgba(245,158,11,0.1);
  border: 1.5px solid rgba(245,158,11,0.3);
  border-radius: var(--radius-full);
  color: var(--amber-dark);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-6);
}

.hero-content-premium h1 {
  font-size: clamp(2.6rem, 5.5vw, 4rem);
  line-height: 1.08;
  margin-bottom: var(--space-6);
  color: var(--ink);
}

.hero-content-premium h1 .accent {
  color: var(--amber);
}

.hero-content-premium p {
  font-size: 1.2rem;
  color: var(--ink-500);
  line-height: 1.7;
  margin-bottom: var(--space-8);
  max-width: 520px;
}

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

.hero-actions-premium .btn {
  padding: 0.9rem 2rem;
  font-size: 1rem;
}

/* Hero Stats Panel */
.hero-stats-premium {
  background: var(--ink);
  padding: var(--space-8);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
}

.stats-list-premium {
  display: flex;
  flex-direction: column;
  gap: 0;
}

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

.stat-item-premium:first-child { padding-top: 0; }
.stat-item-premium:last-child  { border-bottom: none; padding-bottom: 0; }

.stat-item-premium h3 {
  font-size: 2.75rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1;
  margin-bottom: var(--space-1);
  letter-spacing: -0.03em;
}

.stat-item-premium p {
  color: rgba(255,255,255,0.5);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0;
}

/* -----------------------------------------------------------
   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; }

  .hero-premium { padding: 90px 0 60px; min-height: auto; }
  .section { padding: 72px 0; }

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

  .hero-stats-premium {
    display: block;
  }
  .stats-list-premium { flex-direction: column; }
  .stat-item-premium {
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    padding: var(--space-4) 0;
  }
  .stat-item-premium:last-child { border-bottom: none; }

  .cta-grid-premium { padding: 2rem 1.5rem; }

  .stats-row { flex-direction: column; gap: var(--space-4); }

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

@media (max-width: 480px) {
  h1 { font-size: 2.1rem; }
  h2 { font-size: 1.7rem; }
  .hero-actions-premium { flex-direction: column; align-items: stretch; }
  .hero-actions-premium .btn { width: 100%; justify-content: center; }
  .footer-bottom-content { flex-direction: column; text-align: center; }
}
