/* Logic8 - Main Stylesheet
   Professional digital design with dark theme elements */

/* ============================================
   CSS Custom Properties
   ============================================ */
:root {
  --color-primary: #12131b;
  --color-secondary: #055eb8;
  --color-accent: #00c0a5;
  --color-accent-hover: #00a890;
  --color-accent-glow: rgba(0, 192, 165, 0.12);
  --color-accent-glow-strong: rgba(0, 192, 165, 0.25);
  --color-light: #f7f8fc;
  --color-white: #ffffff;
  --color-text: #2d3748;
  --color-text-light: #64748b;
  --color-text-muted: #94a3b8;
  --color-footer-bg: #0d0e14;
  --color-border: #e2e8f0;
  --color-surface: #ffffff;
  --color-dark-card: #1a1b25;
  --color-dark-card-border: rgba(255, 255, 255, 0.06);
  --color-success: #10b981;
  --color-error: #ef4444;

  --gradient-hero: linear-gradient(160deg, #12131b 0%, #161722 40%, #1a1c28 70%, #12131b 100%);
  --gradient-dark: linear-gradient(180deg, #12131b 0%, #161722 100%);
  --gradient-accent: linear-gradient(135deg, #00c0a5 0%, #055eb8 100%);
  --gradient-accent-reverse: linear-gradient(135deg, #055eb8 0%, #00c0a5 100%);
  --gradient-cta: linear-gradient(135deg, #12131b 0%, #1a1c28 50%, #12131b 100%);

  --font-body: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-heading: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --max-width: 1200px;
  --header-height: 72px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 4px 12px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.04), 0 10px 24px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.08), 0 20px 48px rgba(0, 0, 0, 0.06);
  --radius: 8px;
  --radius-lg: 16px;
  --radius-xl: 24px;
}

/* ============================================
   Reset & Base
   ============================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-text);
  background-color: var(--color-white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.nav-open {
  overflow: hidden;
}

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

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--color-accent-hover);
}

ul, ol {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--color-primary);
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.02em;
}

h1 { font-size: 3.25rem; font-weight: 800; }
h2 { font-size: 2.5rem; font-weight: 700; }
h3 { font-size: 1.5rem; font-weight: 600; }
h4 { font-size: 1.25rem; font-weight: 600; }

p {
  margin-bottom: 1rem;
}

/* ============================================
   Utility Classes
   ============================================ */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

.section {
  padding: 6rem 0;
}

.section-light {
  background-color: var(--color-light);
  position: relative;
}

.section-light::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: radial-gradient(rgba(0, 192, 165, 0.05) 1px, transparent 1px);
  background-size: 20px 20px;
  pointer-events: none;
}

/* Light section with very faint dot pattern */
.section-pattern {
  background-color: #f0f2f8;
  position: relative;
}

.section-pattern::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: radial-gradient(rgba(0, 192, 165, 0.06) 1px, transparent 1px);
  background-size: 20px 20px;
  pointer-events: none;
}

/* Dark section with dot pattern */
.section-dark {
  background: var(--gradient-dark);
  color: var(--color-white);
  position: relative;
  overflow: hidden;
}

.section-dark::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
}

/* Decorative circle pattern for dark sections */
.section-dark::after {
  content: '';
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  border: 1px solid rgba(0, 192, 165, 0.06);
  box-shadow:
    0 0 0 40px rgba(0, 192, 165, 0.03),
    0 0 0 80px rgba(0, 192, 165, 0.02),
    0 0 0 120px rgba(0, 192, 165, 0.01);
  top: 50%;
  right: -150px;
  transform: translateY(-50%);
  pointer-events: none;
}

.section-dark > .container {
  position: relative;
  z-index: 1;
}

.section-dark h2,
.section-dark h3,
.section-dark h4 {
  color: var(--color-white);
}

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-header h2 {
  margin-bottom: 1rem;
}

.section-header p {
  font-size: 1.1rem;
  color: var(--color-text-light);
  max-width: 650px;
  margin: 0 auto;
  line-height: 1.7;
}

.section-dark .section-header p {
  color: rgba(255, 255, 255, 0.6);
}

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

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

/* Section label (small uppercase text above headings) */
.section-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--color-accent);
  margin-bottom: 0.75rem;
}

/* ============================================
   Buttons
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 2.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--transition);
  text-align: center;
  line-height: 1.4;
  letter-spacing: 0.01em;
  gap: 0.5rem;
}

.btn-primary {
  background: var(--color-accent);
  color: var(--color-white);
}

.btn-primary:hover {
  background: var(--color-accent-hover);
  color: var(--color-white);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 192, 165, 0.35);
}

.btn-secondary {
  background: var(--gradient-accent);
  color: var(--color-white);
}

.btn-secondary:hover {
  color: var(--color-white);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 192, 165, 0.35);
  filter: brightness(1.1);
}

.btn-outline {
  background-color: transparent;
  color: var(--color-white);
  border: 2px solid rgba(255, 255, 255, 0.35);
}

.btn-outline:hover {
  background-color: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.6);
  color: var(--color-white);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 0.55rem 1.25rem;
  font-size: 0.85rem;
}

.btn-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ============================================
   Header & Navigation (Transparent/Dark)
   ============================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background-color: transparent;
  transition: all var(--transition);
  height: var(--header-height);
}

.site-header.scrolled {
  background-color: rgba(18, 19, 27, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

.site-logo img {
  height: 40px;
  width: auto;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-menu > a,
.nav-menu > .nav-dropdown > .dropdown-toggle {
  color: rgba(255, 255, 255, 0.8);
  font-weight: 500;
  font-size: 0.9rem;
  position: relative;
  padding: 0.25rem 0;
  letter-spacing: 0.01em;
  transition: color var(--transition);
}

.nav-menu > a:hover,
.nav-menu > a.active,
.nav-menu > .nav-dropdown:hover > .dropdown-toggle {
  color: var(--color-accent);
}

/* Nav underline on hover */
.nav-menu > a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-accent);
  transition: width var(--transition);
  border-radius: 2px;
}

.nav-menu > a:hover::after,
.nav-menu > a.active::after {
  width: 100%;
}

/* Dropdown */
.nav-dropdown {
  position: relative;
}

.dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.dropdown-toggle::after {
  content: '';
  display: inline-block;
  width: 5px;
  height: 5px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  margin-top: -3px;
  transition: transform var(--transition);
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: -12px;
  background: var(--color-primary);
  min-width: 250px;
  padding: 0.5rem;
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.08);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all var(--transition);
}

.nav-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu a {
  display: block;
  padding: 0.6rem 1rem;
  font-size: 0.9rem;
  border-radius: var(--radius);
  color: rgba(255, 255, 255, 0.7);
}

.dropdown-menu a:hover {
  background-color: rgba(255, 255, 255, 0.06);
  color: var(--color-accent);
}

.nav-cta {
  margin-left: 0.5rem;
  padding-left: 20px !important;
  padding-right: 20px !important;
}

/* Hamburger toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 28px;
  height: 28px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--color-white);
  transition: all var(--transition);
  border-radius: 2px;
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

.nav-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(10, 10, 16, 0.7);
  backdrop-filter: blur(4px);
  z-index: 998;
}

.nav-overlay.active {
  display: block;
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
  padding: calc(var(--header-height) + 5rem) 0 6rem;
  background: var(--gradient-hero);
  color: var(--color-white);
  position: relative;
  overflow: hidden;
  min-height: 90vh;
  display: flex;
  align-items: center;
}

/* Dot grid pattern */
.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
}

/* Decorative concentric circles */
.hero::after {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  border: 1px solid rgba(0, 192, 165, 0.08);
  box-shadow:
    0 0 0 50px rgba(0, 192, 165, 0.04),
    0 0 0 100px rgba(0, 192, 165, 0.025),
    0 0 0 150px rgba(0, 192, 165, 0.015),
    0 0 0 200px rgba(0, 192, 165, 0.008);
  bottom: -200px;
  left: -100px;
  pointer-events: none;
}

.hero > .container {
  position: relative;
  z-index: 1;
}

.hero-content {
  max-width: 600px;
}

.hero-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-split .hero-content {
  text-align: left;
}

.hero h1 {
  color: var(--color-white);
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.hero .tagline {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 1.5rem;
  max-width: 500px;
  font-weight: 400;
}

.hero .hero-text {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.65);
  max-width: 520px;
  margin-bottom: 2.5rem;
  line-height: 1.8;
}

.hero .btn-group {
  justify-content: flex-start;
}

.hero-image {
  position: relative;
}

.hero-image img {
  border-radius: var(--radius-lg);
  width: 100%;
  height: auto;
}

/* Dot frame around hero image */
.hero-image::before {
  content: '';
  position: absolute;
  top: -15px;
  right: -15px;
  width: 50%;
  height: 50%;
  background-image: radial-gradient(var(--color-accent) 1.5px, transparent 1.5px);
  background-size: 12px 12px;
  opacity: 0.3;
  z-index: -1;
  border-radius: var(--radius);
}

/* Center aligned hero (for inner pages) */
.hero-center {
  text-align: center;
}

.hero-center .hero-content {
  margin: 0 auto;
  text-align: center;
  max-width: 700px;
}

.hero-center .hero-text,
.hero-center .tagline {
  margin-left: auto;
  margin-right: auto;
}

.hero-center .btn-group {
  justify-content: center;
}

/* Service page hero (smaller) */
.hero-sm {
  min-height: auto;
  padding: calc(var(--header-height) + 4rem) 0 4rem;
}

/* ============================================
   Tech Partners Strip
   ============================================ */
.partners {
  padding: 3rem 0;
  background: var(--color-white);
  border-bottom: 1px solid var(--color-border);
}

.partners-label {
  text-align: center;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--color-text-muted);
  margin-bottom: 2rem;
  font-weight: 600;
}

.partners-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  flex-wrap: wrap;
  padding: 0 1rem;
}

.partners-logos img {
  height: 32px;
  width: auto;
  opacity: 0.45;
  transition: opacity var(--transition);
  filter: grayscale(100%);
}

.partners-logos img:hover {
  opacity: 0.85;
  filter: grayscale(0%);
}

/* ============================================
   Stats Section
   ============================================ */
.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  text-align: center;
}

.stat-item {
  padding: 2rem 1rem;
}

.stat-item .stat-number {
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--color-accent);
  line-height: 1.1;
  margin-bottom: 0.5rem;
  letter-spacing: -0.03em;
}

.section-dark .stat-item .stat-number {
  color: var(--color-accent);
}

.stat-item .stat-label {
  font-size: 0.95rem;
  color: var(--color-text-light);
  font-weight: 500;
}

.section-dark .stat-item .stat-label {
  color: rgba(255, 255, 255, 0.55);
}

/* ============================================
   Cards Grid (Light background)
   ============================================ */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: 2rem;
  border: 1px solid var(--color-border);
  transition: all var(--transition);
  position: relative;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(0, 192, 165, 0.2);
}

.card-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  font-size: 1.5rem;
  color: var(--color-accent);
  filter: grayscale(1) brightness(0.6) sepia(1) hue-rotate(120deg) saturate(4) brightness(0.9);
}

.card h3 {
  margin-bottom: 0.75rem;
  font-size: 1.15rem;
}

.card p {
  color: var(--color-text-light);
  font-size: 0.95rem;
  margin-bottom: 0;
  line-height: 1.6;
}

/* Dark cards (for service grids on dark backgrounds) */
.cards-grid-dark {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.card-dark {
  background: var(--color-dark-card);
  border-radius: var(--radius-lg);
  padding: 2rem;
  border: 1px solid var(--color-dark-card-border);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.card-dark::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient-accent);
  opacity: 0;
  transition: opacity var(--transition);
}

.card-dark:hover {
  border-color: rgba(0, 192, 165, 0.15);
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.card-dark:hover::before {
  opacity: 1;
}

.card-dark .card-icon {
  color: var(--color-accent);
  filter: grayscale(1) brightness(0.6) sepia(1) hue-rotate(120deg) saturate(4) brightness(0.9);
}

.card-dark h3 {
  color: var(--color-white);
  margin-bottom: 0.75rem;
  font-size: 1.1rem;
}

.card-dark p {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.9rem;
  margin-bottom: 0;
  line-height: 1.6;
}

/* ============================================
   Approach / Steps
   ============================================ */
.approach-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  align-items: stretch;
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.approach-image {
  position: relative;
  min-height: 400px;
}

.approach-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.approach-content {
  background: var(--color-primary);
  padding: 3rem;
  position: relative;
  overflow: hidden;
}

/* Concentric circles decoration in approach */
.approach-content::after {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  border: 1px solid rgba(0, 192, 165, 0.06);
  box-shadow:
    0 0 0 30px rgba(0, 192, 165, 0.03),
    0 0 0 60px rgba(0, 192, 165, 0.02),
    0 0 0 90px rgba(0, 192, 165, 0.01);
  bottom: -100px;
  right: -100px;
  pointer-events: none;
}

.approach-content .section-label {
  color: var(--color-accent);
}

.approach-content h2 {
  color: var(--color-white);
  margin-bottom: 2rem;
}

.approach-list {
  list-style: none;
  padding: 0;
  position: relative;
  z-index: 1;
}

.approach-list li {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  align-items: flex-start;
}

.approach-dot {
  width: 10px;
  height: 10px;
  background: var(--color-accent);
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 6px;
  box-shadow: 0 0 8px rgba(0, 192, 165, 0.4);
}

.approach-list li strong {
  color: var(--color-white);
  display: block;
  margin-bottom: 0.25rem;
  font-size: 1rem;
}

.approach-list li span {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.9rem;
  line-height: 1.5;
}

/* Simpler steps grid (for about page etc) */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
  position: relative;
}

.steps-grid::before {
  content: '';
  position: absolute;
  top: 30px;
  left: 15%;
  right: 15%;
  height: 2px;
  background: rgba(255, 255, 255, 0.08);
  z-index: 0;
}

.step-item {
  position: relative;
  z-index: 1;
}

.step-number {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--color-accent);
  color: var(--color-white);
  font-size: 1.25rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  box-shadow: 0 0 20px rgba(0, 192, 165, 0.3);
}

.step-item h3 {
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.step-item p {
  font-size: 0.9rem;
  color: var(--color-text-light);
  line-height: 1.6;
}

.section-dark .step-item p {
  color: rgba(255, 255, 255, 0.55);
}

/* ============================================
   Two Column Layout
   ============================================ */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.two-col-text h2 {
  margin-bottom: 1rem;
}

.two-col-text p {
  color: var(--color-text-light);
  line-height: 1.7;
}

.two-col-image {
  position: relative;
}

.two-col-image img {
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
}

/* ============================================
   Testimonials
   ============================================ */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.testimonial-card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  border: 1px solid var(--color-border);
  position: relative;
  transition: all var(--transition);
}

.testimonial-card:hover {
  box-shadow: var(--shadow-md);
}

.testimonial-card::before {
  content: '\201C';
  font-size: 5rem;
  color: var(--color-accent);
  opacity: 0.2;
  position: absolute;
  top: 0.5rem;
  left: 1.5rem;
  line-height: 1;
  font-family: Georgia, serif;
}

.testimonial-card blockquote {
  font-size: 1rem;
  font-style: italic;
  color: var(--color-text);
  line-height: 1.8;
  margin-bottom: 1.5rem;
  padding-top: 1.5rem;
}

.testimonial-author {
  font-weight: 600;
  color: var(--color-primary);
  font-size: 0.95rem;
}

.testimonial-company {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

/* ============================================
   Blog Cards
   ============================================ */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.blog-card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
  transition: all var(--transition);
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.blog-card-image {
  height: 200px;
  background: var(--gradient-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.3);
  font-size: 0.9rem;
  position: relative;
  overflow: hidden;
}

.blog-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.blog-card:hover .blog-card-image img {
  transform: scale(1.05);
}

.blog-card-content {
  padding: 1.5rem;
}

.blog-card-date {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin-bottom: 0.5rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.blog-card-content h3 {
  font-size: 1.05rem;
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

.blog-card-content h3 a {
  color: var(--color-primary);
}

.blog-card-content h3 a:hover {
  color: var(--color-accent);
}

.blog-card-excerpt {
  font-size: 0.9rem;
  color: var(--color-text-light);
  margin-bottom: 1rem;
  line-height: 1.6;
}

.read-more {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-accent);
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.read-more:hover {
  gap: 0.5rem;
}

.read-more::after {
  content: '\2192';
  transition: all var(--transition);
}

/* ============================================
   Blog Post Page
   ============================================ */
.blog-post {
  padding: calc(var(--header-height) + 3rem) 0 5rem;
}

.blog-post-header {
  text-align: center;
  margin-bottom: 3rem;
}

.blog-post-header h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.blog-post-date {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  font-weight: 500;
}

.blog-post-content {
  max-width: 780px;
  margin: 0 auto;
}

.blog-post-content h2 {
  margin: 2.5rem 0 1rem;
  font-size: 1.75rem;
}

.blog-post-content h3 {
  margin: 2rem 0 0.75rem;
}

.blog-post-content p {
  margin-bottom: 1.25rem;
  line-height: 1.8;
}

.blog-post-content ul,
.blog-post-content ol {
  margin: 1rem 0 1.25rem 1.5rem;
}

.blog-post-content ul {
  list-style: disc;
}

.blog-post-content ol {
  list-style: decimal;
}

.blog-post-content li {
  margin-bottom: 0.5rem;
}

.blog-post-content blockquote {
  border-left: 3px solid var(--color-accent);
  padding: 1.25rem 1.5rem;
  margin: 2rem 0;
  background: var(--color-accent-glow);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
}

.blog-post-back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 2rem;
  font-weight: 600;
}

/* ============================================
   Blog Listing Page
   ============================================ */
.blog-listing {
  padding: calc(var(--header-height) + 3rem) 0 5rem;
}

.blog-listing-header {
  text-align: center;
  margin-bottom: 3rem;
}

.blog-listing-header h1 {
  margin-bottom: 0.75rem;
}

.blog-listing-header p {
  color: var(--color-text-light);
  font-size: 1.1rem;
}

/* ============================================
   Contact Form
   ============================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 4rem;
  align-items: start;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--color-primary);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: all var(--transition);
  background: var(--color-white);
  color: var(--color-text);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px var(--color-accent-glow);
}

.form-group textarea {
  min-height: 150px;
  resize: vertical;
}

.hp-field {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  width: 0;
  overflow: hidden;
}

.form-message {
  display: none;
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  margin-top: 1rem;
  font-weight: 500;
  font-size: 0.95rem;
}

.form-message.success {
  background-color: rgba(16, 185, 129, 0.1);
  color: #065f46;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.form-message.error {
  background-color: rgba(239, 68, 68, 0.1);
  color: #991b1b;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.contact-details {
  background: var(--color-primary);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  color: var(--color-white);
  position: relative;
  overflow: hidden;
}

/* Dot pattern on contact details */
.contact-details::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 20px 20px;
  pointer-events: none;
}

.contact-details > * {
  position: relative;
  z-index: 1;
}

.contact-details h3 {
  color: var(--color-white);
  margin-bottom: 2rem;
}

.contact-info-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.75rem;
  align-items: flex-start;
}

.contact-info-icon {
  width: 40px;
  height: 40px;
  background: rgba(0, 192, 165, 0.12);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.1rem;
  color: var(--color-accent);
}

.contact-info-icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: var(--color-accent);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contact-info-text strong {
  display: block;
  margin-bottom: 0.25rem;
  color: var(--color-white);
  font-size: 0.9rem;
}

.contact-info-text a,
.contact-info-text span {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.95rem;
}

.contact-info-text a:hover {
  color: var(--color-accent);
}

/* ============================================
   Values / Features Grid
   ============================================ */
.values-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.value-card {
  padding: 2rem;
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  transition: all var(--transition);
}

.value-card:hover {
  border-color: rgba(0, 192, 165, 0.2);
  box-shadow: var(--shadow-md);
}

.value-card h3 {
  margin-bottom: 0.75rem;
  color: var(--color-primary);
  font-size: 1.1rem;
}

.value-card p {
  color: var(--color-text-light);
  font-size: 0.95rem;
  margin-bottom: 0;
  line-height: 1.6;
}

/* ============================================
   CTA Section
   ============================================ */
.cta-section {
  background: var(--color-primary);
  color: var(--color-white);
  text-align: center;
  padding: 5rem 0;
  position: relative;
  overflow: hidden;
}

/* Dot pattern */
.cta-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
}

/* Gradient accent line at top */
.cta-section::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-accent);
}

.cta-section > .container {
  position: relative;
  z-index: 1;
}

.cta-section h2 {
  color: var(--color-white);
  margin-bottom: 1rem;
}

.cta-section p {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 2rem;
  max-width: 550px;
  margin-left: auto;
  margin-right: auto;
}

/* ============================================
   Service Page Specifics
   ============================================ */
.service-intro {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.service-intro p {
  font-size: 1.1rem;
  color: var(--color-text-light);
  line-height: 1.8;
}

.service-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.service-feature {
  padding: 2rem;
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  transition: all var(--transition);
  position: relative;
}

.service-feature:hover {
  border-color: rgba(0, 192, 165, 0.2);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.service-feature-icon {
  width: 48px;
  height: 48px;
  background: rgba(0, 192, 165, 0.1);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.service-feature-icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: var(--color-accent);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.service-feature h3 {
  margin-bottom: 0.75rem;
  font-size: 1.1rem;
  color: var(--color-primary);
}

.service-feature p {
  color: var(--color-text-light);
  font-size: 0.95rem;
  margin-bottom: 0;
  line-height: 1.6;
}

/* Dark service features (for dark backgrounds) */
.service-features-dark {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.service-feature-dark {
  padding: 2rem;
  background: var(--color-dark-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-dark-card-border);
  transition: all var(--transition);
  text-align: center;
}

.service-feature-dark:hover {
  border-color: rgba(0, 192, 165, 0.15);
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.service-feature-dark .feature-icon {
  font-size: 2rem;
  color: var(--color-accent);
  margin-bottom: 1rem;
  display: block;
}

.service-feature-dark h3 {
  color: var(--color-white);
  margin-bottom: 0.75rem;
  font-size: 1.05rem;
}

.service-feature-dark p {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.9rem;
  margin-bottom: 0;
  line-height: 1.6;
}

/* Service image section (legacy, kept for reference) */

/* ============================================
   Who We Help
   ============================================ */
.help-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.help-card {
  text-align: center;
  padding: 2rem 1.5rem;
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  transition: all var(--transition);
}

.help-card:hover {
  border-color: rgba(0, 192, 165, 0.2);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.help-card-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--color-accent);
  filter: grayscale(1) brightness(0.6) sepia(1) hue-rotate(120deg) saturate(4) brightness(0.9);
}

.help-card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
}

.help-card p {
  font-size: 0.9rem;
  color: var(--color-text-light);
  margin-bottom: 0;
}

/* ============================================
   Pull Quote
   ============================================ */
.pull-quote {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  padding: 3rem 2rem;
}

.pull-quote blockquote {
  font-size: 1.3rem;
  font-style: italic;
  color: var(--color-text);
  line-height: 1.7;
  position: relative;
}

.pull-quote blockquote::before {
  content: '\201C';
  font-size: 4rem;
  color: var(--color-accent);
  display: block;
  text-align: center;
  line-height: 1;
  margin-bottom: 0.5rem;
  font-family: Georgia, serif;
}

/* ============================================
   Footer
   ============================================ */
.site-footer {
  background-color: var(--color-footer-bg);
  color: rgba(255, 255, 255, 0.7);
  padding: 5rem 0 0;
  position: relative;
}

.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-accent);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-about .footer-logo {
  height: 36px;
  margin-bottom: 1.25rem;
}

.footer-about p {
  font-size: 0.9rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.45);
}

.site-footer h4 {
  color: var(--color-white);
  font-size: 0.85rem;
  margin-bottom: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 600;
}

.footer-links a {
  display: block;
  color: rgba(255, 255, 255, 0.45);
  padding: 0.3rem 0;
  font-size: 0.9rem;
  transition: all var(--transition);
}

.footer-links a:hover {
  color: var(--color-accent);
  padding-left: 4px;
}

.footer-contact-item {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
  align-items: flex-start;
  color: rgba(255, 255, 255, 0.45);
}

.footer-contact-icon {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 2px;
}

.footer-contact-icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: var(--color-accent);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.footer-contact-item a {
  color: rgba(255, 255, 255, 0.45);
}

.footer-contact-item a:hover {
  color: var(--color-accent);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 1.5rem 0;
  text-align: center;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.3);
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 1024px) {
  .cards-grid,
  .cards-grid-dark {
    grid-template-columns: repeat(2, 1fr);
  }

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

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

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

  .hero-split {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .hero-image {
    max-width: 500px;
    margin: 0 auto;
  }

  .approach-split {
    grid-template-columns: 1fr;
  }

  .approach-image {
    min-height: 300px;
  }

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

@media (max-width: 768px) {
  h1 { font-size: 2.25rem; }
  h2 { font-size: 1.85rem; }
  h3 { font-size: 1.2rem; }

  .section {
    padding: 4rem 0;
  }

  .container {
    padding: 0 1.25rem;
  }

  /* Mobile navigation */
  .nav-toggle {
    display: flex;
    z-index: 1001;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: -300px;
    width: 300px;
    height: 100vh;
    background: var(--color-primary);
    flex-direction: column;
    align-items: flex-start;
    padding: 5rem 2rem 2rem;
    gap: 0;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.3);
    transition: right var(--transition);
    z-index: 999;
    overflow-y: auto;
  }

  .nav-menu.active {
    right: 0;
  }

  .nav-menu > a,
  .nav-menu > .nav-dropdown > .dropdown-toggle {
    padding: 0.85rem 0;
    width: 100%;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }

  .nav-menu > a::after {
    display: none;
  }

  .nav-menu .nav-cta {
    margin-left: 0;
    margin-top: 1.5rem;
    width: 100%;
    text-align: center;
  }

  /* Dropdown mobile */
  .nav-dropdown .dropdown-menu {
    position: static;
    box-shadow: none;
    border: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    display: none;
    padding-left: 0.5rem;
    padding-top: 0;
    min-width: 0;
    background: transparent;
  }

  .nav-dropdown.open .dropdown-menu {
    display: block;
  }

  .nav-dropdown.open .dropdown-toggle::after {
    transform: rotate(-135deg);
    margin-top: 3px;
  }

  /* Hero mobile */
  .hero {
    min-height: auto;
    padding: calc(var(--header-height) + 3rem) 0 3.5rem;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .hero .btn-group {
    justify-content: center;
  }

  .hero-split .hero-content {
    text-align: center;
  }

  .hero-split .hero-content .tagline,
  .hero-split .hero-content .hero-text {
    margin-left: auto;
    margin-right: auto;
  }

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

  .btn-group {
    flex-direction: column;
    align-items: stretch;
  }

  /* Grids to single/dual column */
  .cards-grid,
  .cards-grid-dark,
  .stats-row,
  .steps-grid,
  .two-col,
  .testimonials-grid,
  .blog-grid,
  .contact-grid,
  .values-grid,
  .service-features,
  .service-features-dark,
  .help-cards {
    grid-template-columns: 1fr;
  }

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

  .stat-item {
    padding: 1rem 0.5rem;
  }

  .stat-item .stat-number {
    font-size: 2.25rem;
  }

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

  .steps-grid::before {
    display: none;
  }

  .two-col {
    gap: 2rem;
  }

  .approach-split {
    border-radius: var(--radius-lg);
  }

  .approach-content {
    padding: 2rem;
  }

  .partners-logos {
    gap: 2rem;
  }

  .partners-logos img {
    height: 24px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .blog-post-header h1 {
    font-size: 1.75rem;
  }

  .service-features-dark {
    grid-template-columns: 1fr;
  }
}

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

  .hero h1 {
    font-size: 2rem;
  }

  .steps-grid {
    grid-template-columns: 1fr;
  }

  .stats-row {
    grid-template-columns: 1fr;
  }

  .help-cards {
    grid-template-columns: 1fr;
  }
}
