/* ===== Joshua8.AI Design System ===== */
/* Corporate Professional Theme - Refined Blue Palette */

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

:root {
  /* Refined Blue Palette */
  --primary-900: #0a1628;
  --primary-800: #0f2744;
  --primary-700: #1a365d;
  --primary-600: #2c5282;
  --primary-500: #3182ce;
  --primary-400: #4299e1;
  --primary-300: #63b3ed;
  --primary-200: #90cdf4;
  --primary-100: #ebf8ff;

  /* Neutral Scale */
  --gray-900: #1a202c;
  --gray-800: #2d3748;
  --gray-700: #4a5568;
  --gray-600: #718096;
  --gray-500: #a0aec0;
  --gray-400: #cbd5e0;
  --gray-300: #e2e8f0;
  --gray-200: #edf2f7;
  --gray-100: #f7fafc;
  --white: #ffffff;

  /* Accent Colors */
  --accent-600: #b7791f;
  --accent-500: #d69e2e;
  --accent-400: #ecc94b;
  --accent-100: #fefcbf;

  /* Success/CTA Green */
  --success-600: #25855a;
  --success-500: #38a169;
  --success-400: #48bb78;

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

  /* Spacing Scale (8px base) */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;

  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 8px;
  --radius-xl: 12px;
  --radius-2xl: 16px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 200ms ease;
  --transition-slow: 300ms ease;

  /* Layout */
  --max-width-content: 1200px;
  --max-width-narrow: 800px;
  --max-width-nav: 1400px;
}

/* ===== Base Styles ===== */
html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--white);
  color: var(--gray-700);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ===== Typography ===== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: var(--space-4);
  color: var(--gray-900);
  letter-spacing: -0.02em;
}

h1 {
  font-size: 2.75rem;
  font-weight: 700;
}

h2 {
  font-size: 2rem;
  font-weight: 600;
}

h3 {
  font-size: 1.5rem;
  font-weight: 600;
}

h4 {
  font-size: 1.25rem;
  font-weight: 600;
}

h5 {
  font-size: 1.125rem;
  font-weight: 600;
}

h6 {
  font-size: 1rem;
  font-weight: 600;
}

p {
  margin-bottom: var(--space-4);
  color: var(--gray-600);
  line-height: 1.7;
}

a {
  color: var(--primary-500);
  text-decoration: none;
  transition: color var(--transition-fast);
  touch-action: manipulation;
}

a:hover {
  color: var(--primary-600);
}

strong {
  font-weight: 600;
  color: var(--gray-800);
}

/* ===== Skip Link (Accessibility) ===== */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-4);
  background: var(--primary-700);
  color: var(--white);
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-md);
  z-index: 10000;
  font-weight: 500;
}

.skip-link:focus {
  top: var(--space-4);
}

/* Screen Reader Only */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ===== Header & Navigation ===== */
header {
  background: var(--primary-800);
  color: var(--white);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: var(--max-width-nav);
  margin: 0 auto;
  padding: var(--space-4) var(--space-8);
  gap: var(--space-8);
  position: relative;
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.01em;
  white-space: nowrap;
  flex-shrink: 0;
  padding: var(--space-2);
  margin: calc(var(--space-2) * -1);
  border-radius: var(--radius-md);
  transition: opacity var(--transition-fast);
  touch-action: manipulation;
}

.logo:hover {
  color: var(--white);
  opacity: 0.9;
}

.logo img {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  object-fit: cover;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: var(--space-2);
  z-index: 1001;
  touch-action: manipulation;
  border-radius: var(--radius-md);
  transition: background var(--transition-fast);
}

.mobile-menu-toggle:hover {
  background: rgba(255, 255, 255, 0.1);
}

.hamburger-line {
  width: 24px;
  height: 2px;
  background-color: var(--white);
  border-radius: 2px;
  transition: all var(--transition-base);
  transform-origin: center;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

.nav-center {
  flex: 1;
  display: flex;
  justify-content: center;
}

nav ul {
  list-style: none;
  display: flex;
  gap: var(--space-1);
  align-items: center;
  margin: 0;
}

nav li {
  margin: 0;
}

nav ul a {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
  font-size: 0.9375rem;
  transition: all var(--transition-fast);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  white-space: nowrap;
  display: flex;
  align-items: center;
  min-height: 44px;
  touch-action: manipulation;
}

nav ul a:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
}

/* Dropdown Menu */
.dropdown {
  position: relative;
}

.dropdown > a::after {
  content: '';
  display: inline-block;
  width: 0;
  height: 0;
  margin-left: var(--space-2);
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  transition: transform var(--transition-fast);
}

.dropdown:hover > a::after {
  transform: rotate(180deg);
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--white);
  min-width: 200px;
  box-shadow: var(--shadow-xl);
  border-radius: var(--radius-lg);
  overflow: hidden;
  z-index: 100;
  flex-direction: column;
  border: 1px solid var(--gray-200);
  padding-top: var(--space-2);
}

.dropdown-menu::before {
  content: '';
  position: absolute;
  top: calc(var(--space-2) * -1);
  left: 0;
  right: 0;
  height: var(--space-2);
  background: transparent;
}

.dropdown:hover .dropdown-menu,
.dropdown:focus-within .dropdown-menu {
  display: flex;
}

.dropdown-menu li {
  width: 100%;
}

.dropdown-menu a {
  color: var(--gray-700);
  padding: var(--space-3) var(--space-5);
  border-radius: 0;
  font-size: 0.9375rem;
}

.dropdown-menu a:hover {
  background: var(--primary-100);
  color: var(--primary-700);
}

.nav-cta {
  flex-shrink: 0;
  touch-action: manipulation;
}

/* ===== Buttons & CTAs ===== */
.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--success-500);
  color: var(--white);
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9375rem;
  border: none;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-align: center;
  box-shadow: var(--shadow-sm);
  min-height: 44px;
  min-width: 44px;
  touch-action: manipulation;
  gap: var(--space-2);
}

.cta:hover {
  background: var(--success-600);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.cta-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.8);
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9375rem;
  transition: all var(--transition-fast);
  min-height: 44px;
  min-width: 44px;
  touch-action: manipulation;
}

.cta-secondary:hover {
  background: var(--white);
  color: var(--primary-800);
  border-color: var(--white);
  transform: translateY(-1px);
}

.cta-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: var(--primary-600);
  border: 2px solid var(--primary-500);
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9375rem;
  transition: all var(--transition-fast);
  min-height: 44px;
  touch-action: manipulation;
}

.cta-outline:hover {
  background: var(--primary-500);
  color: var(--white);
}

/* ===== Main Content ===== */
main {
  min-height: calc(100vh - 200px);
}

.content-wrapper {
  max-width: var(--max-width-content);
  margin: 0 auto;
  padding: var(--space-8);
}

.content-wrapper > .hero,
.content-wrapper > section.value-prop,
.content-wrapper > section.why-us,
.content-wrapper > section.services-teaser,
.content-wrapper > section.testimonials {
  margin-left: calc(var(--space-8) * -1);
  margin-right: calc(var(--space-8) * -1);
  max-width: none;
}

.content-wrapper > h1,
.content-wrapper > h2,
.content-wrapper > h3 {
  margin-bottom: var(--space-4);
}

.content-wrapper > p {
  margin-bottom: var(--space-4);
  line-height: 1.7;
}

.content-wrapper > blockquote {
  max-width: var(--max-width-narrow);
  margin-left: auto;
  margin-right: auto;
}

section {
  padding: var(--space-20) var(--space-8);
  max-width: var(--max-width-content);
  margin: 0 auto;
}

/* ===== Hero Section ===== */
.hero {
  position: relative;
  padding: var(--space-24) var(--space-8);
  overflow: hidden;
  background: var(--primary-800);
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(10, 22, 40, 0.95), rgba(26, 54, 93, 0.9));
  z-index: 1;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: var(--max-width-narrow);
  margin: 0 auto;
  text-align: center;
  color: var(--white);
}

.hero h1 {
  font-size: 3.25rem;
  margin-bottom: var(--space-6);
  font-weight: 700;
  line-height: 1.1;
  color: var(--white);
  letter-spacing: -0.03em;
}

.hero-subtitle {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: var(--space-4);
  color: var(--white);
  opacity: 0.95;
}

.hero p {
  font-size: 1.125rem;
  margin-bottom: var(--space-6);
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.7;
}

.hero-link {
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: var(--space-8);
  display: block;
}

.hero-link a {
  color: var(--white);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.hero-link a:hover {
  color: var(--primary-300);
}

.hero-actions {
  display: flex;
  gap: var(--space-4);
  justify-content: center;
  flex-wrap: wrap;
  margin-top: var(--space-8);
}

.services-banner {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: var(--radius-xl);
  margin-bottom: var(--space-8);
  display: block;
}

/* ===== Value Prop Section ===== */
.value-prop {
  background: var(--gray-100);
  padding: var(--space-20) var(--space-8);
}

.value-prop h2 {
  text-align: center;
  margin-bottom: var(--space-12);
  font-size: 2.25rem;
}

.columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-8);
  max-width: var(--max-width-content);
  margin: 0 auto;
}

.columns > div {
  background: var(--white);
  padding: var(--space-8);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
  border: 1px solid var(--gray-200);
  border-top: 3px solid var(--primary-500);
}

.columns > div:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.columns h3 {
  color: var(--primary-700);
  margin-bottom: var(--space-4);
  font-size: 1.375rem;
}

.columns p {
  color: var(--gray-600);
  line-height: 1.7;
  margin-bottom: 0;
}

.columns p:last-child {
  margin-bottom: 0;
}

/* ===== Why Us Section ===== */
.why-us {
  padding: var(--space-20) var(--space-8);
}

.why-us h2 {
  text-align: center;
  margin-bottom: var(--space-12);
  font-size: 2.25rem;
}

.why-us ul {
  list-style: none;
  max-width: var(--max-width-narrow);
  margin: 0 auto;
  display: grid;
  gap: var(--space-4);
}

.why-us li {
  padding: var(--space-5) var(--space-6);
  background: var(--primary-100);
  border-left: 4px solid var(--primary-500);
  border-radius: var(--radius-md);
  font-size: 1.0625rem;
  color: var(--gray-700);
  transition: all var(--transition-fast);
  line-height: 1.6;
}

.why-us li:hover {
  transform: translateX(4px);
  background: var(--primary-100);
  border-left-color: var(--primary-600);
}

.why-us-footer {
  margin-top: var(--space-8);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--primary-700);
  text-align: center;
}

/* ===== Services Teaser Section ===== */
.services-teaser {
  background: var(--gray-100);
  padding: var(--space-16) var(--space-8);
  text-align: center;
}

.services-teaser h2 {
  margin-bottom: var(--space-6);
  font-size: 2.25rem;
}

.services-teaser p {
  font-size: 1.125rem;
  color: var(--gray-600);
}

.services-teaser a {
  font-weight: 500;
}

/* ===== Services Grid ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--space-6);
  max-width: var(--max-width-content);
  margin: 0 auto;
  padding: var(--space-8);
}

.service-card {
  background: var(--white);
  padding: var(--space-8);
  border-radius: var(--radius-xl);
  border: 1px solid var(--gray-200);
  transition: all var(--transition-base);
  position: relative;
  border-top: 3px solid var(--primary-500);
}

.service-icon {
  width: 48px;
  height: 48px;
  margin-bottom: var(--space-4);
  color: var(--primary-500);
}

.service-card:hover {
  border-top-color: var(--primary-600);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.service-card h3 {
  color: var(--gray-900);
  margin-bottom: var(--space-3);
  font-size: 1.25rem;
}

.service-card p {
  color: var(--gray-600);
  line-height: 1.7;
  margin-bottom: 0;
}

/* ===== Services Page Specific ===== */
.services-hero {
  text-align: center;
  padding: var(--space-12) var(--space-8);
}

.services-hero h1 {
  margin-bottom: var(--space-4);
}

.services-intro {
  font-size: 1.25rem;
  max-width: var(--max-width-narrow);
  margin: 0 auto var(--space-4);
  color: var(--gray-600);
}

.services-tagline {
  font-size: 1.125rem;
  max-width: var(--max-width-narrow);
  margin: 0 auto var(--space-8);
  color: var(--primary-600);
  font-weight: 600;
}

.service-category {
  padding: var(--space-8) var(--space-8) var(--space-4);
  max-width: var(--max-width-content);
  margin: 0 auto;
}

.category-header {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding-bottom: var(--space-4);
  border-bottom: 3px solid var(--primary-500);
  margin-bottom: var(--space-4);
}

.category-number {
  background: var(--primary-600);
  color: var(--white);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 1rem;
}

.category-header h2 {
  margin: 0;
  color: var(--gray-900);
}

.category-description {
  font-size: 1.125rem;
  color: var(--gray-600);
  margin: 0;
}

/* Incubator Section */
.incubator-section {
  padding: 0 var(--space-8) var(--space-12);
  max-width: var(--max-width-content);
  margin: 0 auto;
}

.incubator-content {
  background: linear-gradient(135deg, var(--primary-100) 0%, var(--white) 100%);
  padding: var(--space-10);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
}

.incubator-content h3 {
  color: var(--gray-900);
  font-size: 1.5rem;
  margin-bottom: var(--space-4);
}

.incubator-content > p {
  font-size: 1.0625rem;
  line-height: 1.8;
  margin-bottom: var(--space-6);
}

.featured-company {
  background: var(--white);
  padding: var(--space-6);
  border-radius: var(--radius-lg);
  border-left: 4px solid var(--primary-500);
  margin-bottom: var(--space-6);
}

.featured-company h4 {
  color: var(--primary-700);
  margin-bottom: var(--space-2);
}

.company-tagline {
  font-style: italic;
  color: var(--gray-600);
  margin-bottom: var(--space-3);
}

.featured-company > p:last-of-type {
  margin-bottom: var(--space-4);
}

/* Services CTA Section */
.services-cta {
  text-align: center;
  padding: var(--space-16) var(--space-8);
  background: var(--primary-100);
}

.services-cta h2 {
  margin-bottom: var(--space-4);
}

.services-cta > p {
  font-size: 1.125rem;
  margin-bottom: var(--space-6);
}

.services-cta-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  justify-content: center;
  align-items: center;
}

.services-cta-links span {
  color: var(--gray-600);
}

/* ===== Ordered Lists (Services page) ===== */
ol {
  max-width: var(--max-width-narrow);
  margin: var(--space-8) auto;
  line-height: 1.8;
  padding-left: var(--space-6);
}

ol li {
  margin-bottom: var(--space-6);
  padding-left: var(--space-2);
}

ol li strong {
  color: var(--primary-700);
  font-size: 1.0625rem;
}

/* ===== Tables ===== */
table {
  width: 100%;
  max-width: 900px;
  margin: var(--space-8) auto;
  border-collapse: collapse;
  background: var(--white);
  box-shadow: var(--shadow-md);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

th, td {
  padding: var(--space-4);
  text-align: left;
  border-bottom: 1px solid var(--gray-200);
}

th {
  background: var(--primary-800);
  color: var(--white);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.8125rem;
  letter-spacing: 0.05em;
}

tr:hover {
  background: var(--gray-100);
}

/* ===== Forms ===== */
form {
  max-width: 600px;
  margin: var(--space-8) auto;
  padding: var(--space-8);
  background: var(--gray-100);
  border-radius: var(--radius-xl);
  border: 1px solid var(--gray-200);
}

label {
  display: block;
  font-weight: 500;
  margin-bottom: var(--space-2);
  color: var(--gray-700);
  font-size: 0.9375rem;
}

input, textarea {
  width: 100%;
  padding: var(--space-4);
  margin-bottom: var(--space-5);
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-family: inherit;
  transition: all var(--transition-fast);
  background: var(--white);
}

input:focus, textarea:focus {
  outline: none;
  border-color: var(--primary-500);
  box-shadow: 0 0 0 3px rgba(49, 130, 206, 0.15);
}

input::placeholder, textarea::placeholder {
  color: var(--gray-500);
}

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

button[type="submit"] {
  background: var(--primary-600);
  color: var(--white);
  padding: var(--space-4) var(--space-8);
  border: none;
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  width: 100%;
  min-height: 48px;
  touch-action: manipulation;
}

button[type="submit"]:hover {
  background: var(--primary-700);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

/* ===== Blockquotes ===== */
blockquote {
  background: var(--primary-100);
  border-left: 4px solid var(--primary-500);
  padding: var(--space-8);
  margin: var(--space-12) auto;
  max-width: var(--max-width-narrow);
  font-size: 1.375rem;
  font-style: italic;
  color: var(--primary-800);
  border-radius: var(--radius-md);
  text-align: center;
  line-height: 1.5;
}

/* ===== Testimonials ===== */
.testimonials {
  padding: var(--space-16) var(--space-8);
  background: var(--gray-100);
  text-align: center;
}

.testimonials h2 {
  margin-bottom: var(--space-12);
  color: var(--gray-900);
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-6);
  max-width: var(--max-width-content);
  margin: 0 auto;
}

.testimonial {
  background: var(--white);
  padding: var(--space-6);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  border-left: 4px solid var(--primary-500);
  text-align: left;
}

.testimonial blockquote {
  font-size: 1rem;
  font-style: italic;
  color: var(--gray-600);
  margin: 0 0 var(--space-4) 0;
  padding: 0;
  background: none;
  border: none;
  text-align: left;
  line-height: 1.7;
}

.testimonial p strong {
  color: var(--primary-700);
  font-size: 0.9375rem;
}

/* ===== Animations ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.columns > div,
.services-grid > div,
.testimonial-grid > div {
  animation: fadeInUp 0.5s ease forwards;
  opacity: 0;
}

.columns > div:nth-child(1),
.services-grid > div:nth-child(1),
.testimonial-grid > div:nth-child(1) { animation-delay: 0.1s; }

.columns > div:nth-child(2),
.services-grid > div:nth-child(2),
.testimonial-grid > div:nth-child(2) { animation-delay: 0.2s; }

.columns > div:nth-child(3),
.services-grid > div:nth-child(3),
.testimonial-grid > div:nth-child(3) { animation-delay: 0.3s; }

.services-grid > div:nth-child(4) { animation-delay: 0.4s; }
.services-grid > div:nth-child(5) { animation-delay: 0.5s; }
.services-grid > div:nth-child(6) { animation-delay: 0.6s; }
.services-grid > div:nth-child(7) { animation-delay: 0.7s; }
.services-grid > div:nth-child(8) { animation-delay: 0.8s; }
.services-grid > div:nth-child(9) { animation-delay: 0.9s; }

/* ===== Footer ===== */
footer {
  background: var(--primary-900);
  color: var(--white);
  padding: var(--space-16) var(--space-8) var(--space-8);
  margin-top: var(--space-16);
}

.footer-content {
  max-width: var(--max-width-content);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-10);
  padding-bottom: var(--space-10);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-section h3 {
  color: var(--white);
  margin-bottom: var(--space-2);
  font-size: 1.375rem;
}

.footer-section h4 {
  color: var(--white);
  margin-bottom: var(--space-4);
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-section p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9375rem;
  line-height: 1.6;
}

.footer-section ul {
  list-style: none;
  padding: 0;
}

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

.footer-section a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9375rem;
  transition: color var(--transition-fast);
}

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

.footer-bottom {
  max-width: var(--max-width-content);
  margin: 0 auto;
  text-align: center;
  padding-top: var(--space-8);
}

.footer-bottom p {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.875rem;
}

.footer-tagline {
  font-style: italic;
  opacity: 0.8;
  font-size: 0.875rem;
  margin-top: var(--space-2);
}

.footer-cta {
  margin-top: var(--space-4);
  display: inline-block;
}

.footer-contact-info {
  margin-top: var(--space-6);
}

.footer-email a {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.9375rem;
}

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

.footer-locations {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.7);
  margin-top: var(--space-2);
}

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

.footer-social a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9375rem;
  padding: var(--space-2) var(--space-4);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.footer-social a:hover {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.1);
}

/* ===== Breadcrumbs ===== */
.breadcrumbs {
  background: var(--gray-100);
  padding: var(--space-4) var(--space-8);
  border-bottom: 1px solid var(--gray-200);
}

.breadcrumbs ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  max-width: var(--max-width-content);
  margin: 0 auto;
  padding: 0;
  gap: var(--space-2);
  line-height: 1.5;
}

.breadcrumbs li {
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0;
  font-size: 0.875rem;
}

.breadcrumbs a {
  color: var(--primary-600);
  transition: color var(--transition-fast);
  padding: var(--space-1) 0;
}

.breadcrumbs a:hover {
  color: var(--primary-700);
  text-decoration: underline;
}

.breadcrumb-separator {
  color: var(--gray-400);
  margin: 0 var(--space-2);
}

.breadcrumbs li:last-child {
  color: var(--gray-600);
  font-weight: 500;
}

/* ===== Blog Posts ===== */
.blog ul, .posts-list {
  list-style: none;
  max-width: var(--max-width-narrow);
  margin: var(--space-8) auto;
  padding: 0;
}

.blog li, .posts-list li {
  padding: var(--space-6);
  margin-bottom: var(--space-4);
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  transition: all var(--transition-fast);
}

.blog li:hover, .posts-list li:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--gray-300);
}

.blog li a, .posts-list li a {
  font-weight: 600;
  font-size: 1.125rem;
  color: var(--gray-900);
}

.blog li a:hover, .posts-list li a:hover {
  color: var(--primary-600);
}

/* ===== Blog Post Article ===== */
.blog-post {
  max-width: var(--max-width-narrow);
  margin: 0 auto;
  padding: var(--space-8) 0;
}

.post-header {
  margin-bottom: var(--space-8);
  padding-bottom: var(--space-6);
  border-bottom: 2px solid var(--gray-200);
}

.post-header h1 {
  font-size: 2.5rem;
  line-height: 1.15;
  margin-bottom: var(--space-4);
  color: var(--gray-900);
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  font-size: 0.9375rem;
  color: var(--gray-600);
  align-items: center;
}

.post-author {
  font-weight: 500;
}

.post-date {
  color: var(--gray-500);
}

.post-category {
  background: var(--primary-100);
  color: var(--primary-700);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-md);
  font-weight: 500;
  font-size: 0.875rem;
}

.post-content {
  font-size: 1.0625rem;
  line-height: 1.8;
  color: var(--gray-800);
}

.post-content h2 {
  margin-top: var(--space-10);
  margin-bottom: var(--space-4);
  font-size: 1.75rem;
  color: var(--gray-900);
}

.post-content h3 {
  margin-top: var(--space-8);
  margin-bottom: var(--space-3);
  font-size: 1.375rem;
  color: var(--primary-700);
}

.post-content p {
  margin-bottom: var(--space-6);
  color: var(--gray-700);
}

.post-content ul,
.post-content ol {
  margin-bottom: var(--space-6);
  padding-left: var(--space-8);
}

.post-content li {
  margin-bottom: var(--space-2);
  line-height: 1.7;
}

.post-content a {
  color: var(--primary-600);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.post-content a:hover {
  color: var(--primary-500);
}

.post-content table {
  width: 100%;
  margin: var(--space-8) 0;
  border-collapse: collapse;
}

.post-content th,
.post-content td {
  padding: var(--space-4);
  border: 1px solid var(--gray-200);
  text-align: left;
}

.post-content th {
  background: var(--primary-800);
  color: var(--white);
  font-weight: 600;
}

.post-content blockquote {
  margin: var(--space-8) 0;
  padding: var(--space-6);
  background: var(--gray-100);
  border-left: 4px solid var(--primary-500);
  font-size: 1.125rem;
  font-style: italic;
  color: var(--gray-700);
}

.post-content pre,
.post-content code {
  font-family: 'SF Mono', Monaco, 'Courier New', monospace;
  font-size: 0.9em;
}

.post-content code {
  background: var(--gray-100);
  padding: 0.2em 0.4em;
  border-radius: var(--radius-sm);
}

.post-content pre {
  background: var(--gray-900);
  color: var(--gray-100);
  padding: var(--space-6);
  border-radius: var(--radius-lg);
  overflow-x: auto;
  margin: var(--space-6) 0;
}

.post-content pre code {
  background: transparent;
  padding: 0;
  color: inherit;
}

.post-footer {
  margin-top: var(--space-12);
  padding-top: var(--space-8);
  border-top: 1px solid var(--gray-200);
}

.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  align-items: center;
}

.post-tags-label {
  font-weight: 600;
  color: var(--gray-700);
  margin-right: var(--space-2);
}

.tag {
  background: var(--gray-100);
  color: var(--gray-700);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  transition: all var(--transition-fast);
}

.tag:hover {
  background: var(--gray-200);
}

/* Related Posts */
.related-posts {
  margin-top: var(--space-12);
  padding: var(--space-8);
  background: var(--gray-100);
  border-radius: var(--radius-xl);
}

.related-posts h3 {
  margin-bottom: var(--space-6);
  font-size: 1.25rem;
  color: var(--gray-900);
}

.related-posts-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.related-posts-list li {
  margin-bottom: var(--space-4);
}

.related-posts-list li:last-child {
  margin-bottom: 0;
}

.related-posts-list a {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  padding: var(--space-4);
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
  transition: all var(--transition-fast);
}

.related-posts-list a:hover {
  border-color: var(--primary-300);
  box-shadow: var(--shadow-sm);
}

.related-post-title {
  font-weight: 600;
  color: var(--gray-900);
}

.related-post-date {
  font-size: 0.875rem;
  color: var(--gray-500);
}

/* ===== Focus States ===== */
:focus-visible {
  outline: 2px solid var(--primary-500);
  outline-offset: 2px;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--primary-500);
  outline-offset: 2px;
}

/* ===== Responsive Design ===== */
@media (max-width: 1024px) {
  h1 { font-size: 2.25rem; }
  h2 { font-size: 1.75rem; }

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

@media (max-width: 768px) {
  /* Mobile menu */
  .mobile-menu-toggle {
    display: flex;
  }

  .nav-center {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--primary-800);
    flex-direction: column;
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-slow);
    box-shadow: var(--shadow-lg);
  }

  .nav-center.active {
    max-height: 600px;
    padding: var(--space-4) 0;
  }

  nav ul {
    flex-direction: column;
    gap: 0;
    width: 100%;
  }

  nav li {
    width: 100%;
    text-align: center;
  }

  nav ul a {
    width: 100%;
    padding: var(--space-4) var(--space-6);
    justify-content: center;
    border-radius: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }

  .dropdown-menu {
    position: static;
    transform: none;
    box-shadow: none;
    border: none;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 0;
  }

  .dropdown-menu a {
    color: rgba(255, 255, 255, 0.9);
  }

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

  .dropdown-menu.show {
    display: flex;
  }

  .nav-cta {
    order: -1;
    width: 100%;
    padding: var(--space-4) var(--space-6);
  }

  .nav-cta .cta {
    width: 100%;
  }

  /* Typography */
  h1 { font-size: 2rem; }
  h2 { font-size: 1.625rem; }
  h3 { font-size: 1.25rem; }

  .hero {
    padding: var(--space-16) var(--space-6);
  }

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

  .hero p {
    font-size: 1rem;
  }

  section {
    padding: var(--space-12) var(--space-6);
  }

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

  .services-grid {
    grid-template-columns: 1fr;
    padding: var(--space-4);
  }

  blockquote {
    font-size: 1.125rem;
    padding: var(--space-6);
  }

  .breadcrumbs {
    padding: var(--space-3) var(--space-4);
  }

  /* Blog post responsive */
  .post-header h1 {
    font-size: 1.75rem;
  }

  .post-content {
    font-size: 1rem;
  }

  .post-content h2 {
    font-size: 1.5rem;
  }

  .post-content h3 {
    font-size: 1.25rem;
  }

  .related-posts {
    padding: var(--space-6);
  }

  .content-wrapper {
    padding: var(--space-6) var(--space-4);
  }

  .content-wrapper > .hero,
  .content-wrapper > section.value-prop,
  .content-wrapper > section.why-us,
  .content-wrapper > section.services-teaser,
  .content-wrapper > section.testimonials {
    margin-left: calc(var(--space-4) * -1);
    margin-right: calc(var(--space-4) * -1);
  }
}

@media (max-width: 480px) {
  nav {
    padding: var(--space-3) var(--space-4);
  }

  .logo {
    font-size: 1.25rem;
  }

  .logo img {
    width: 36px;
    height: 36px;
  }

  .hero {
    padding: var(--space-12) var(--space-4);
  }

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

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .cta,
  .hero-actions .cta-secondary {
    width: 100%;
  }

  section {
    padding: var(--space-10) var(--space-4);
  }

  .columns > div,
  .service-card {
    padding: var(--space-6);
  }

  form {
    padding: var(--space-6);
  }
}

/* ===== Reduced Motion ===== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ===== Print Styles ===== */
@media print {
  header, footer, .breadcrumbs {
    display: none;
  }

  body {
    font-size: 12pt;
    color: #000;
    background: #fff;
  }

  a {
    color: #000;
    text-decoration: underline;
  }

  .hero {
    background: #f0f0f0;
    color: #000;
  }

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