:root {
  --color-bg: #ffffff;
  --color-surface: #f8fbff;
  --color-text: #0f172a;
  --color-muted: #475569;
  --color-primary: #1e3a8a;
  --color-primary-soft: #eff6ff;
  --color-accent: #c9a96e;
  --color-border: rgba(15, 23, 42, 0.08);
  --color-shadow: 0 18px 60px rgba(15, 23, 42, 0.08);
  --radius: 20px;
  --radius-sm: 12px;
  --radius-xs: 8px;
  --shadow: 0 12px 40px rgba(15, 23, 42, 0.08);
  --max-width: 1100px;
  --max-width-narrow: 760px;
  --border: 1px solid var(--color-border);
  --transition: 180ms ease;
}

.dark {
  --color-bg: #030712;
  --color-surface: #111827;
  --color-text: #e2e8f0;
  --color-muted: #94a3b8;
  --color-primary: #93c5fd;
  --color-primary-soft: #0d1727;
  --color-accent: #facc15;
  --color-border: rgba(148, 163, 184, 0.18);
  --color-shadow: 0 18px 60px rgba(0, 0, 0, 0.45);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  min-height: 100vh;
  background: linear-gradient(180deg, var(--color-bg) 0%, var(--color-surface) 100%);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--color-text);
  line-height: 1.75;
  overflow-x: hidden;
}

/* Responsive Images */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

svg {
  max-width: 100%;
  height: auto;
}

/* Responsive image containers */
.featured-card__image,
.card__image {
  height: 200px;
  background-size: cover;
  background-position: center;
}

@media (max-width: 768px) {
  .featured-card__image,
  .card__image {
    height: 150px;
  }

  /* Make sure all images in content are responsive */
  .post-content img,
  .page-content img,
  article img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius);
    margin: 1rem 0;
  }

  /* Service icons responsive */
  .service-icon svg {
    width: 48px;
    height: 48px;
  }

  /* Featured card images smaller on mobile */
  .featured-card__image {
    height: 120px;
  }
}

p {
  color: var(--color-muted);
}

h1, h2, h3, h4 {
  color: var(--color-text);
  font-weight: 700;
  letter-spacing: -0.03em;
}

/* Ensure better contrast for light theme */
:root {
  --text-primary: #0f172a;
  --text-secondary: #334155;
  --text-muted: #64748b;
}

.dark {
  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
}

/* Apply better text colors */
.section-description,
.footer-description,
.service-card p,
.featured-content p,
.faq-cta p,
.cta-content p {
  color: var(--text-secondary) !important;
}

.eyebrow {
  color: var(--color-primary);
}

.footer-links a,
.footer-meta {
  color: var(--text-secondary) !important;
}

h1 {
  font-size: clamp(2.5rem, 4vw, 4rem);
  line-height: 1.05;
  font-weight: 800;
}

h2 {
  font-size: clamp(2rem, 3vw, 2.6rem);
  line-height: 1.2;
  font-weight: 700;
}

h3 {
  font-size: clamp(1.5rem, 2vw, 1.9rem);
  line-height: 1.3;
  font-weight: 600;
}

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

p, li {
  font-size: 1rem;
  line-height: 1.7;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.8rem;
  color: var(--color-primary);
  margin-bottom: 1rem;
  font-weight: 600;
}

ul, ol {
  margin-left: 1.35rem;
}

blockquote {
  margin: 2rem 0;
  padding: 1.5rem 1.5rem;
  border-left: 4px solid var(--color-primary);
  background: rgba(30, 58, 138, 0.06);
  color: var(--color-text);
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
}

td, th {
  border: var(--border);
  padding: 1rem;
  text-align: left;
}

code, pre {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, Liberation Mono, Courier New, monospace;
}

pre {
  background: var(--color-surface);
  padding: 1.25rem;
  border-radius: var(--radius-sm);
  overflow-x: auto;
}

code {
  color: var(--color-primary);
  background: rgba(30, 58, 138, 0.05);
  padding: 0.25rem 0.4rem;
  border-radius: 0.45rem;
}

.page-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.page-content {
  width: min(1140px, calc(100% - 2rem));
  margin: 0 auto;
  flex: 1;
}

/* About Section */
.about-section {
  padding: 5rem 1.5rem;
  background: var(--color-bg);
}

.about-content {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 4rem;
  align-items: center;
}

.about-text h2 {
  margin-bottom: 1.5rem;
  color: var(--color-text);
  font-size: 2.5rem;
  line-height: 1.2;
}

.about-text p {
  color: var(--color-muted);
  line-height: 1.7;
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

.about-stats {
  display: none;
}

.stat {
  text-align: center;
}

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

.stat-label {
  color: var(--color-muted);
  font-size: 0.9rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.about-image {
  display: flex;
  justify-content: center;
}

.about-image-placeholder {
  width: 250px;
  height: 250px;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark, #1e40af) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 4rem;
  box-shadow: var(--shadow-lg);
}

@media (max-width: 768px) {
  .about-content {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }

  .about-text h2 {
    font-size: 2rem;
  }

  .about-image-placeholder {
    width: 200px;
    height: 200px;
    font-size: 3rem;
  }
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba( var(--color-bg), 0.96 );
  backdrop-filter: blur(16px);
  border-bottom: var(--border);
  box-shadow: var(--shadow);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.5rem;
  min-height: 70px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
}

.brand-logo {
  width: 40px;
  height: 40px;
  background: var(--color-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 800;
  font-size: 1.2rem;
}

.brand-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--color-text);
}

.brand-subtitle {
  color: var(--color-muted);
  font-size: 0.9rem;
  display: none;
}

/* Desktop Navigation */
.nav-main {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-main ul {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  list-style: none;
  margin: 0;
}

.nav-main a {
  color: var(--color-text);
  font-weight: 500;
  text-decoration: none;
  padding: 0.5rem 0;
  transition: color var(--transition);
  position: relative;
}

.nav-main a:hover,
.nav-main a:focus {
  color: var(--color-primary);
}

.nav-main a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-primary);
  transition: width var(--transition);
}

.nav-main a:hover::after,
.nav-main a:focus::after {
  width: 100%;
}

/* Mobile Menu Button */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  padding: 0.5rem;
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: background var(--transition);
}

.nav-toggle:hover {
  background: var(--color-surface);
}

.nav-toggle svg {
  width: 24px;
  height: 24px;
  color: var(--color-text);
}

/* Theme Toggle */
.theme-toggle {
  padding: 0.75rem 1rem;
  border-radius: 999px;
  background: var(--color-primary);
  color: #fff;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  position: relative;
}

.theme-toggle:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

.theme-toggle svg {
  width: 20px;
  height: 20px;
  transition: opacity var(--transition), transform var(--transition);
}

.theme-toggle .theme-icon-light {
  opacity: 1;
  transform: scale(1);
}

.theme-toggle .theme-icon-dark {
  opacity: 0;
  transform: scale(0.8);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.8);
}

.dark .theme-toggle .theme-icon-light {
  opacity: 0;
  transform: scale(0.8);
}

.dark .theme-toggle .theme-icon-dark {
  opacity: 1;
  transform: scale(1);
  position: static;
}

/* Hero Section */
.hero-section {
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 50%, #cbd5e1 100%);
  color: #0f172a;
  padding: 6rem 1.5rem 5rem;
  position: relative;
  overflow: hidden;
}

.dark .hero-section {
  background: linear-gradient(135deg, #0b172f 0%, #1e3a8a 50%, #12244a 100%);
  color: #f8fafc;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.03)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.02)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.04)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  opacity: 0.5;
}

.hero-shell {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  gap: 3rem;
  position: relative;
  z-index: 1;
}

.hero-copy h1,
.hero-copy p {
  max-width: 700px;
}

.hero-copy h1 {
  font-size: clamp(3rem, 6vw, 4.5rem);
  line-height: 1.1;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, #0f172a 0%, #334155 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.dark .hero-copy h1 {
  background: linear-gradient(135deg, #ffffff 0%, #e2e8f0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-text {
  color: rgba(15, 23, 42, 0.8);
  margin: 1.5rem 0 2.5rem;
  max-width: 740px;
  font-size: 1.1rem;
  line-height: 1.6;
}

.dark .hero-text {
  color: rgba(248, 250, 252, 0.9);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

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

.hero-stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--color-accent);
  display: block;
  margin-bottom: 0.5rem;
}

.hero-stat-label {
  color: rgba(248, 250, 252, 0.8);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* Services Section */
.services-section {
  padding: 6rem 1.5rem;
  background: var(--color-surface);
}

.services-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
}

.service-card {
  background: var(--color-bg);
  border: var(--border);
  border-radius: var(--radius);
  padding: 3rem 2rem;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 25px 80px rgba(15, 23, 42, 0.15);
}

.service-icon {
  width: 64px;
  height: 64px;
  background: var(--color-primary-soft);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  color: var(--color-primary);
  font-size: 1.5rem;
}

.service-card h3 {
  margin-bottom: 1rem;
  color: var(--color-text);
}

.service-card p {
  color: var(--color-muted);
  line-height: 1.6;
}

/* Featured Content */
.featured-section {
  padding: 6rem 1.5rem;
}

.featured-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
  gap: 2.5rem;
}

.featured-card {
  background: var(--color-surface);
  border: var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}

.featured-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 25px 80px rgba(15, 23, 42, 0.15);
}

.featured-card__image {
  height: 220px;
  background-size: cover;
  background-position: center;
}

.featured-card__body {
  padding: 2.5rem;
}

.featured-card__meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  color: var(--color-muted);
}

.featured-card h3 {
  margin-bottom: 1rem;
  font-size: 1.25rem;
}

.featured-card p {
  color: var(--color-muted);
  line-height: 1.6;
}

/* FAQ Section */
.faq-section {
  padding: 6rem 1.5rem;
  background: var(--color-surface);
}

.faq-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 4rem;
}

.faq-content {
  background: var(--color-bg);
  border: var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.faq-sidebar {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.faq-cta {
  background: var(--color-bg);
  border: var(--border);
  border-radius: var(--radius);
  padding: 2.5rem;
  text-align: center;
}

.faq-cta h3 {
  color: var(--color-text);
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

.faq-cta p {
  color: var(--color-muted);
  margin-bottom: 1.5rem;
}

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

.faq-stats .stat {
  background: var(--color-bg);
  border: var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
}

/* Accordion Styles */
.accordion {
  border: var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.accordion-item {
  border-bottom: var(--border);
}

.accordion-item:last-child {
  border-bottom: none;
}

.accordion-header {
  width: 100%;
  background: none;
  border: none;
  padding: 1.5rem;
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background var(--transition);
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text);
}

.accordion-header:hover,
.accordion-header:focus {
  background: var(--color-surface);
}

.accordion-header:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: -2px;
}

.accordion-title {
  flex: 1;
}

.accordion-icon {
  width: 20px;
  height: 20px;
  color: var(--color-primary);
  transition: transform var(--transition);
  flex-shrink: 0;
  margin-left: 1rem;
}

.accordion-item.accordion-open .accordion-icon {
  transform: rotate(180deg);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition);
  background: var(--color-surface);
}

.accordion-item.accordion-open .accordion-content {
  max-height: 500px;
}

.accordion-content p {
  padding: 1.5rem;
  margin: 0;
  color: var(--color-muted);
  line-height: 1.6;
}

/* Share Section Styling */
.share-panel {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--color-border);
}

.share-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.share-buttons a,
.share-buttons button {
  flex: 1;
  min-width: 100px;
  padding: 0.75rem 1.25rem;
  background: var(--color-primary);
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.share-buttons a:hover,
.share-buttons button:hover {
  background: var(--color-primary-dark, #1e40af);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.share-buttons button:active {
  transform: translateY(0);
}

@media (max-width: 768px) {
  .share-buttons {
    flex-direction: column;
  }

  .share-buttons a,
  .share-buttons button {
    width: 100%;
  }
}

/* CTA Section */
.cta-section {
  padding: 5rem 1.5rem;
  background: linear-gradient(135deg, var(--color-primary) 0%, #1e40af 100%);
  color: white;
  text-align: center;
}

.cta-content {
  max-width: 700px;
  margin: 0 auto;
}

.cta-content h2 {
  color: white;
  margin-bottom: 1.5rem;
  font-size: 2.5rem;
  line-height: 1.2;
}

.cta-content p {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 3rem;
  font-size: 1.2rem;
  line-height: 1.6;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
}

.cta-actions .button {
  padding: 1.25rem 2.5rem;
  font-size: 1.1rem;
  font-weight: 600;
}

/* Footer */
.site-footer {
  background: var(--color-surface);
  color: var(--color-text);
  padding: 4rem 1.5rem 2rem;
  border-top: 1px solid var(--color-border);
}

.dark .site-footer {
  background: #030712;
  color: rgba(255, 255, 255, 0.9);
}

.site-footer p,
.site-footer a,
.site-footer li {
  color: var(--color-text);
}

.dark .site-footer p,
.dark .site-footer a,
.dark .site-footer li {
  color: rgba(248, 250, 252, 0.9);
}

.footer-content {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-section h3 {
  color: var(--color-text);
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
  font-weight: 700;
}

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

.footer-section li {
  margin-bottom: 0.75rem;
}

.footer-section a {
  color: var(--color-muted);
  text-decoration: none;
  transition: color var(--transition);
  font-size: 0.95rem;
}

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

.footer-newsletter {
  background: var(--color-bg);
  border: var(--border);
  padding: 2rem;
  border-radius: var(--radius);
  margin-top: 1.5rem;
}

.dark .footer-newsletter {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-newsletter h4 {
  color: var(--color-text);
  margin-bottom: 0.75rem;
  font-size: 1.1rem;
  font-weight: 700;
}

.footer-newsletter p {
  color: var(--color-muted);
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
  line-height: 1.5;
}

.newsletter-form {
  margin-bottom: 1rem;
}

.newsletter-input-group {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.newsletter-input-group input {
  flex: 1;
  padding: 0.75rem 1rem;
  border: var(--border);
  border-radius: var(--radius-sm);
  background: var(--color-bg);
  color: var(--color-text);
  font-size: 0.9rem;
}

.newsletter-input-group input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.1);
}

.newsletter-input-group button {
  padding: 0.75rem 1.5rem;
  white-space: nowrap;
}

.newsletter-disclaimer {
  font-size: 0.8rem;
  color: var(--color-muted);
  margin: 0;
}

.footer-newsletter p {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
}

.footer-bottom {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

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

.footer-social {
  display: flex;
  gap: 1rem;
}

.footer-social a,
.social-links .social-link {
  width: 32px;
  height: 32px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  transition: background var(--transition);
}

.footer-social a:hover,
.social-links .social-link:hover {
  background: rgba(255, 255, 255, 0.2);
}

.footer-social a svg,
.social-links .social-link svg {
  width: 16px;
  height: 16px;
}

/* Share Panel */
.share-panel {
  background: var(--color-surface);
  border: var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-top: 2rem;
}

.share-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.share-buttons a,
.share-buttons button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: var(--color-bg);
  border: var(--border);
  border-radius: var(--radius-sm);
  color: var(--color-text);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all var(--transition);
  cursor: pointer;
}

.share-buttons a:hover,
.share-buttons button:hover {
  background: var(--color-primary);
  color: white;
  border-color: var(--color-primary);
}

.share-buttons a svg,
.share-buttons button svg {
  width: 16px;
  height: 16px;
}

/* Buttons */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 1rem 2rem;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: all var(--transition);
  border: 2px solid transparent;
  cursor: pointer;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(30, 58, 138, 0.2);
}

.button--primary {
  background: var(--color-primary);
  color: #fff;
}

.button--secondary {
  background: transparent;
  border-color: var(--color-border);
  color: var(--color-text);
}

.button--secondary:hover {
  background: var(--color-surface);
}

.button--cta {
  background: white;
  color: var(--color-primary);
  font-size: 1.1rem;
  padding: 1.25rem 2.5rem;
}

.button--cta:hover {
  background: rgba(255, 255, 255, 0.9);
}

/* Cards */
.card {
  background: var(--color-bg);
  border: var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.12);
}

.card__image {
  height: 200px;
  background-size: cover;
  background-position: center;
}

.card__body {
  padding: 1.5rem;
}

.card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  color: var(--color-muted);
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.tag {
  display: inline-flex;
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  background: var(--color-primary-soft);
  color: var(--color-primary);
  font-size: 0.8rem;
  font-weight: 500;
}

.meta-sep {
  color: var(--color-border);
}

.card__body h3 {
  margin-bottom: 0.75rem;
  font-size: 1.1rem;
}

.card__body p {
  color: var(--color-muted);
  line-height: 1.6;
}

/* Grid and Layout */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.grid-list {
  display: grid;
  gap: 2rem;
}

.section-intro {
  padding: 5rem 1.5rem;
  text-align: center;
}

.section-intro__inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.section-copy {
  color: var(--color-muted);
  max-width: 720px;
  margin: 0 auto 2rem;
  font-size: 1.1rem;
  line-height: 1.6;
}

.center-row {
  display: flex;
  justify-content: center;
  margin-top: 3rem;
}

/* Article Layout */
.post-article {
  padding: 4rem 1.5rem;
}

.post-hero {
  max-width: var(--max-width);
  margin: 0 auto 4rem;
  padding: 0 2rem;
}

.post-hero h1 {
  font-size: 3rem;
  line-height: 1.2;
  margin: 1.5rem 0;
  color: var(--color-text);
}

.post-meta {
  color: var(--color-muted);
  font-size: 0.95rem;
}

.post-featured {
  margin: 2rem 0;
  border-radius: var(--radius);
  overflow: hidden;
}

.post-featured img {
  width: 100%;
  height: auto;
}

.article-layout {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 4rem;
}

.article-toc {
  order: 2;
}

.toc-shell {
  background: var(--color-surface);
  border: var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 2rem;
  position: sticky;
  top: 100px;
}

.toc-shell ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.toc-shell ul li {
  margin: 0.5rem 0;
}

.toc-shell a {
  color: var(--color-text);
  text-decoration: none;
  font-size: 0.9rem;
}

.toc-shell a:hover {
  color: var(--color-primary);
}

.toc-title {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--color-muted);
  margin: 0 0 1rem;
}

.author-card--compact {
  background: var(--color-surface);
  border: var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 2rem;
  text-align: center;
}

.author-media {
  margin-bottom: 1rem;
}

.author-media img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin: 0 auto;
}

.author-card--compact h3 {
  color: var(--color-text);
  font-size: 1rem;
  margin: 0.5rem 0;
}

.author-bio {
  color: var(--color-muted);
  font-size: 0.85rem;
  line-height: 1.5;
  margin: 0;
}

.post-content {
  font-size: 1.1rem;
  line-height: 1.8;
  order: 1;
  padding: 0 2rem;
}

.post-content h1,
.post-content h2,
.post-content h3,
.post-content h4,
.post-content h5,
.post-content h6 {
  color: var(--color-text);
  margin-top: 3rem;
  margin-bottom: 1.5rem;
  font-weight: 700;
  line-height: 1.3;
}

.post-content h1 {
  font-size: 2.5rem;
}

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

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

.post-content p {
  margin-bottom: 1.5rem;
  color: var(--color-text);
}

.post-content ul,
.post-content ol {
  margin-bottom: 1.5rem;
  padding-left: 2rem;
}

.post-content li {
  margin-bottom: 0.75rem;
  color: var(--color-text);
}

.post-content blockquote {
  border-left: 4px solid var(--color-primary);
  padding-left: 1.5rem;
  margin: 2rem 0;
  color: var(--color-muted);
  font-style: italic;
}

.post-content img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius);
  margin: 2rem 0;
  box-shadow: var(--shadow);
}

.post-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  background: var(--color-bg);
  border: var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.post-content th,
.post-content td {
  padding: 1rem;
  text-align: left;
  border-bottom: var(--border);
}

.post-content th {
  background: var(--color-surface);
  font-weight: 600;
  color: var(--color-text);
}

.post-content code {
  background: var(--color-surface);
  color: var(--color-primary);
  padding: 0.25rem 0.4rem;
  border-radius: 0.25rem;
  font-family: 'Monaco', 'Menlo', monospace;
  font-size: 0.9em;
}

.post-content pre {
  background: var(--color-surface);
  border: var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  overflow-x: auto;
  margin: 2rem 0;
}

.post-content pre code {
  background: none;
  padding: 0;
  color: var(--color-text);
}

/* Mobile Styles */
@media (max-width: 768px) {
  body {
    overflow-x: hidden;
  }

  .post-article {
    padding: 2rem 1rem;
  }

  .post-hero {
    margin: 0 0 2rem;
    padding: 0;
  }

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

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

  .article-toc {
    order: 2;
  }

  .post-content {
    order: 1;
    padding: 0;
  }

  .toc-shell {
    position: static;
  }

  .post-content h1,
  .post-content h2,
  .post-content h3 {
    margin-top: 1.5rem;
  }

  .post-content ul,
  .post-content ol {
    padding-left: 1.5rem;
  }

  .post-content img {
    margin: 1rem 0;
  }

  .post-content table {
    font-size: 0.9rem;
  }

  .post-content th,
  .post-content td {
    padding: 0.75rem;
  }

  .brand-subtitle {
    display: none;
  }

  .nav-main {
    display: none;
  }

  .nav-toggle {
    display: block;
  }

  .hero-section {
    padding: 4rem 1.5rem 3rem;
  }

  .hero-shell {
    gap: 2rem;
  }

  .hero-copy h1 {
    font-size: clamp(2rem, 6vw, 3rem);
    margin-bottom: 1rem;
  }

  .hero-copy .eyebrow {
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
  }

  .hero-text {
    font-size: 1rem;
    margin: 1rem 0 1.5rem;
  }

  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .services-grid,
  .featured-grid,
  .faq-grid {
    grid-template-columns: 1fr;
  }

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

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

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

  .hero-actions,
  .cta-actions {
    flex-direction: column;
    width: 100%;
    align-items: stretch;
  }

  .button {
    width: 100%;
  }

  .about-section {
    padding: 3rem 1rem;
  }

  .about-text h2 {
    font-size: 1.75rem;
  }

  .about-text p {
    font-size: 1rem;
  }

  .service-card {
    padding: 1.5rem 1rem;
  }

  .service-icon {
    width: 48px;
    height: 48px;
  }

  .featured-card {
    padding: 1.5rem 1rem;
  }

  .featured-image {
    height: 150px;
  }

  .section-heading {
    text-align: center;
    margin-bottom: 2rem;
  }

  .section-heading h2 {
    font-size: 1.75rem;
  }

  .section-heading .eyebrow {
    font-size: 0.85rem;
  }

  .section-description {
    font-size: 0.95rem;
  }

  .cta-section {
    padding: 3rem 1rem;
  }

  .cta-content h2 {
    font-size: 1.75rem;
  }

  .newsletter-input-group {
    flex-direction: column;
  }

  .newsletter-input-group input,
  .newsletter-input-group .button {
    width: 100%;
  }

  .accordion-header {
    padding: 1rem;
    font-size: 0.95rem;
  }

  .accordion-content p {
    padding: 1rem;
  }

  .faq-content {
    order: 2;
  }

  .faq-sidebar {
    order: 1;
    margin-bottom: 2rem;
  }

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

  .footer-section h3 {
    margin-bottom: 1rem;
    font-size: 1rem;
  }

  .footer-section p {
    font-size: 0.9rem;
  }

  .footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
  }

  .footer-links li {
    margin: 0;
  }

  .footer-links a {
    padding: 0.5rem 0;
    display: block;
  }

  .hero-visual {
    padding: 0 1rem;
  }

  .hero-card {
    padding: 1.5rem;
  }

  .services-section,
  .featured-section,
  .faq-section {
    padding: 3rem 1rem;
  }

  .share-buttons {
    flex-direction: column;
  }

  .share-buttons a,
  .share-buttons button {
    width: 100%;
  }

  .post-content h1,
  .post-content h2,
  .post-content h3 {
    margin-top: 1.5rem;
  }

  .post-content img {
    margin: 1rem 0;
  }

  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  input,
  textarea,
  select {
    font-size: 16px;
  }
}

/* Mobile Menu */
@media (max-width: 768px) {
  .nav-main {
    position: fixed;
    top: 80px;
    left: 1rem;
    right: 1rem;
    background: var(--color-bg);
    border: var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow-lg);
    transform: translateY(-20px);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition);
    z-index: 999;
    display: none;
  }

  .nav-main.nav-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    display: block !important;
  }

  .nav-main ul {
    flex-direction: column;
    gap: 1rem;
    align-items: center;
  }

  .nav-main a {
    padding: 0.75rem 0;
    width: 100%;
    text-align: center;
    border-radius: var(--radius-sm);
    transition: background var(--transition);
  }

  .nav-main a:hover,
  .nav-main a:focus {
    background: var(--color-surface);
  }

  /* Improve mobile layout */
  .services-section,
  .featured-section,
  .faq-section,
  .cta-section {
    padding: 3rem 1rem;
  }

  .section-heading {
    text-align: center;
    margin-bottom: 3rem;
  }

  .section-heading h2 {
    font-size: clamp(1.8rem, 5vw, 2.4rem);
  }

  .service-card,
  .featured-card {
    padding: 2rem 1.5rem;
  }

  .faq-content {
    order: 2;
  }

  .faq-sidebar {
    order: 1;
    margin-bottom: 3rem;
  }

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

  .footer-section h3 {
    margin-bottom: 1rem;
  }

  .footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
  }

  .footer-links li {
    margin: 0;
  }

  .footer-links a {
    padding: 0.5rem 0;
    display: block;
  }
}