/* ============================================
   Henrik Edler / Agentic Agency
   Brand: "Digital Garden" - Sage Green Palette
   ============================================ */

/* Import Editorial Fonts */
@import url('https://fonts.googleapis.com/css2?family=Crimson+Pro:wght@300;400;500;600;700&family=Inter:wght@300;400;500;600&display=swap');

:root {
  /* Primary Colors */
  --sage: #4A7C59;
  --sage-light: #E8F0E9;
  --sage-dark: #2D5A3D;

  /* Secondary Colors */
  --olive: #6B7F5E;
  --cream: #FDFBF7;
  --warm-gray: #F5F4F2;

  /* Neutrals */
  --charcoal: #1A1A1A;
  --stone: #6B6B6B;

  /* Typography - Original */
  --font-display: 'Cabinet Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'General Sans', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Editorial Typography */
  --serif: 'Crimson Pro', Georgia, serif;
  --sans-editorial: 'Inter', -apple-system, sans-serif;

  /* Editorial Colors */
  --bg-primary: #fefefe;
  --bg-secondary: #f9f9f9;
  --border-color: #e0e0e0;
  --border-subtle: #f0f0f0;

  --text-primary: #1a1a1a;
  --text-secondary: #4a4a4a;
  --text-tertiary: #888888;

  --accent-burgundy: #8b2635;
  --accent-sage: #6b7d5f;
  --accent-sand: #d4c5a0;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--charcoal);
  line-height: 1.6;
  overflow-x: hidden;
}

::selection {
  background: var(--sage);
  color: white;
}

/* ============================================
   NAVIGATION
   ============================================ */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.25rem 3rem;
  background: rgba(253, 251, 247, 0.9);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(74, 124, 89, 0.1);
}

.nav-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

.logo-mark {
  width: 2.5rem;
  height: 2.5rem;
  flex-shrink: 0;
}

.logo-mark svg {
  width: 100%;
  height: 100%;
}

.logo-text {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--charcoal);
}

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

nav a {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--stone);
  text-decoration: none;
  transition: color 0.2s;
}

nav a:hover {
  color: var(--sage);
}

.nav-cta {
  padding: 0.75rem 1.5rem;
  background: var(--sage);
  color: white !important;
  border-radius: 0.5rem;
  transition: all 0.2s;
}

.nav-cta:hover {
  background: var(--sage-dark);
}

/* ============================================
   HERO
   ============================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 8rem 3rem 4rem;
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 20% 40%, rgba(74, 124, 89, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse 60% 40% at 80% 60%, rgba(107, 127, 94, 0.1) 0%, transparent 50%);
}

.hero-content {
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
  position: relative;
  z-index: 2;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--sage-light);
  border-radius: 2rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--sage-dark);
  margin-bottom: 2rem;
}

.hero-badge-dot {
  width: 0.5rem;
  height: 0.5rem;
  background: var(--sage);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* Floating geometric shapes */
.hero-shapes {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.shape {
  position: absolute;
  border: 1px solid rgba(74, 124, 89, 0.2);
  border-radius: 1rem;
}

.shape-1 {
  width: 300px;
  height: 300px;
  top: 15%;
  right: 10%;
  animation: float 8s ease-in-out infinite;
}

.shape-2 {
  width: 200px;
  height: 200px;
  bottom: 20%;
  right: 25%;
  animation: float 6s ease-in-out infinite 1s;
}

.shape-3 {
  width: 150px;
  height: 150px;
  top: 30%;
  right: 30%;
  background: rgba(74, 124, 89, 0.05);
  animation: float 7s ease-in-out infinite 0.5s;
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(2deg); }
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 7vw, 5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--charcoal);
  max-width: 800px;
  margin-bottom: 1.5rem;
}

.hero-title .highlight {
  color: var(--sage);
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--stone);
  max-width: 560px;
  margin-bottom: 2.5rem;
  line-height: 1.7;
}

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

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2rem;
  background: var(--sage);
  color: white;
  text-decoration: none;
  font-weight: 600;
  border-radius: 0.75rem;
  transition: all 0.3s;
}

.btn-primary:hover {
  background: var(--sage-dark);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(74, 124, 89, 0.3);
}

.btn-primary svg {
  width: 1.25rem;
  height: 1.25rem;
  transition: transform 0.3s;
}

.btn-primary:hover svg {
  transform: translateX(4px);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2rem;
  background: transparent;
  color: var(--charcoal);
  text-decoration: none;
  font-weight: 600;
  border: 1px solid var(--charcoal);
  border-radius: 0.75rem;
  transition: all 0.3s;
}

.btn-secondary:hover {
  background: var(--charcoal);
  color: white;
}

/* ============================================
   SECTIONS (shared)
   ============================================ */
.section-inner {
  max-width: 1400px;
  margin: 0 auto;
}

.section-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  margin-bottom: 4rem;
  align-items: end;
}

.section-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--sage);
  margin-bottom: 1rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.section-desc {
  font-size: 1.125rem;
  color: var(--stone);
  max-width: 480px;
  line-height: 1.7;
}

/* ============================================
   SERVICES
   ============================================ */
.services {
  padding: 8rem 3rem;
  background: white;
}

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

.service-card {
  background: var(--cream);
  border-radius: 1rem;
  padding: 2rem;
  transition: all 0.3s ease;
  border: 1px solid transparent;
}

.service-card:hover {
  background: white;
  border-color: var(--sage-light);
  box-shadow: 0 10px 40px rgba(74, 124, 89, 0.1);
}

.service-card-icon {
  width: 48px;
  height: 48px;
  background: var(--sage-light);
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--sage);
  margin-bottom: 1.5rem;
  transition: all 0.3s;
}

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

.service-card-icon svg {
  width: 1.5rem;
  height: 1.5rem;
}

.service-card h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--charcoal);
}

.service-card p {
  color: var(--stone);
  line-height: 1.65;
  font-size: 0.9375rem;
}

.service-card.featured {
  grid-column: span 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
  background: var(--sage-light);
}

.service-card.featured:hover {
  background: var(--sage-light);
}

.service-card.featured .service-card-content {
  padding-right: 1rem;
}

.service-card.featured .service-card-visual {
  background: white;
  border-radius: 0.75rem;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.visual-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  background: var(--cream);
  border-radius: 0.5rem;
  font-size: 0.875rem;
  color: var(--charcoal);
}

.visual-item-dot {
  width: 8px;
  height: 8px;
  background: var(--sage);
  border-radius: 50%;
  flex-shrink: 0;
}

/* ============================================
   ABOUT
   ============================================ */
.about {
  padding: 8rem 3rem;
  background: var(--cream);
}

.about-grid {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 6rem;
  align-items: center;
}

.about-image {
  position: relative;
}

.about-image img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  border-radius: 1.5rem;
}

.about-image::before {
  content: '';
  position: absolute;
  top: -1rem;
  left: -1rem;
  right: 1rem;
  bottom: 1rem;
  border: 2px solid var(--sage);
  border-radius: 1.5rem;
  z-index: -1;
}

.about-content .section-title {
  margin-bottom: 2rem;
}

.about-text {
  color: var(--stone);
  line-height: 1.8;
  margin-bottom: 2rem;
}

.about-text p {
  margin-bottom: 1.25rem;
}

.about-text strong {
  color: var(--charcoal);
}

.stats {
  display: flex;
  gap: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(74, 124, 89, 0.2);
}

.stat-value {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--sage);
  line-height: 1;
}

.stat-label {
  font-size: 0.875rem;
  color: var(--stone);
  margin-top: 0.5rem;
}

/* ============================================
   INSIGHTS
   ============================================ */
.insights {
  padding: 8rem 3rem;
  background: white;
}

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

.insight-card {
  background: var(--cream);
  border-radius: 1rem;
  padding: 2rem;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
  border: 1px solid transparent;
}

.insight-card:hover {
  background: white;
  border-color: var(--sage);
  box-shadow: 0 12px 40px rgba(74, 124, 89, 0.12);
  transform: translateY(-4px);
}

.insight-card-tag {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--sage);
  background: var(--sage-light);
  padding: 0.25rem 0.75rem;
  border-radius: 1rem;
  width: fit-content;
  margin-bottom: 1rem;
}

.insight-card h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--charcoal);
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.insight-card p {
  color: var(--stone);
  font-size: 0.9375rem;
  line-height: 1.65;
  flex-grow: 1;
}

.insight-card-read {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
  font-weight: 600;
  color: var(--sage);
  font-size: 0.9375rem;
}

.insight-card-read svg {
  transition: transform 0.2s;
}

.insight-card:hover .insight-card-read svg {
  transform: translateX(4px);
}

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

.insights-cta .btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.insights-cta .btn-secondary svg {
  transition: transform 0.2s;
}

.insights-cta .btn-secondary:hover svg {
  transform: translateX(4px);
}

/* ============================================
   CONTACT
   ============================================ */
.contact {
  padding: 8rem 3rem;
  background: var(--charcoal);
  color: white;
}

.contact-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
}

.contact-content .section-label {
  color: var(--sage);
}

.contact-content .section-title {
  color: white;
  margin-bottom: 1.5rem;
}

.contact-content .section-desc {
  color: var(--stone);
  margin-bottom: 3rem;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.contact-item-icon {
  width: 3rem;
  height: 3rem;
  background: rgba(74, 124, 89, 0.2);
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--sage);
}

.contact-item-text {
  font-size: 0.9375rem;
}

.contact-form {
  background: rgba(255,255,255,0.05);
  border-radius: 1.5rem;
  padding: 2.5rem;
}

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

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: rgba(255,255,255,0.7);
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 1rem;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 0.75rem;
  color: white;
  font-family: var(--font-body);
  font-size: 1rem;
  transition: all 0.3s;
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--sage);
  background: rgba(255,255,255,0.08);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: rgba(255,255,255,0.3);
}

.form-textarea {
  resize: none;
  min-height: 120px;
}

.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.form-checkbox input {
  width: 1.25rem;
  height: 1.25rem;
  accent-color: var(--sage);
  margin-top: 0.125rem;
}

.form-checkbox label {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.5;
}

.form-checkbox a {
  color: var(--sage);
}

.form-submit {
  width: 100%;
  padding: 1rem;
  background: var(--sage);
  color: white;
  border: none;
  border-radius: 0.75rem;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.form-submit:hover {
  background: var(--sage-dark);
  transform: translateY(-2px);
}

.form-submit svg {
  width: 1.25rem;
  height: 1.25rem;
}

/* Success Message */
.success-message {
  display: none;
  text-align: center;
  padding: 3rem;
}

.success-message.show {
  display: block;
}

.success-icon {
  width: 4rem;
  height: 4rem;
  background: var(--sage);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}

.success-icon svg {
  width: 2rem;
  height: 2rem;
  color: white;
}

.success-message h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.success-message p {
  color: var(--stone);
}

/* ============================================
   FOOTER
   ============================================ */
footer {
  background: var(--charcoal);
  padding: 2rem 3rem;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-left {
  font-size: 0.875rem;
  color: var(--stone);
}

.footer-links {
  display: flex;
  gap: 2rem;
}

.footer-links a {
  font-size: 0.875rem;
  color: var(--stone);
  text-decoration: none;
  transition: color 0.2s;
}

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

/* ============================================
   BLOG INDEX
   ============================================ */
.blog-hero {
  padding: 10rem 3rem 4rem;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.blog-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  color: var(--charcoal);
  margin-bottom: 1rem;
}

.blog-hero p {
  font-size: 1.25rem;
  color: var(--stone);
  max-width: 600px;
  margin: 0 auto;
}

.blog-list {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem 3rem 6rem;
}

.blog-card {
  background: white;
  border-radius: 1rem;
  padding: 2.5rem;
  margin-bottom: 2rem;
  border: 1px solid rgba(74, 124, 89, 0.1);
  transition: all 0.3s ease;
  text-decoration: none;
  display: block;
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(74, 124, 89, 0.12);
  border-color: var(--sage);
}

.blog-card-meta {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
}

.blog-card-date {
  font-size: 0.875rem;
  color: var(--stone);
}

.blog-card-tag {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--sage);
  background: var(--sage-light);
  padding: 0.25rem 0.75rem;
  border-radius: 1rem;
}

.blog-card h2 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--charcoal);
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.blog-card p {
  color: var(--stone);
  font-size: 1.0625rem;
  line-height: 1.7;
}

.blog-card-read {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
  font-weight: 600;
  color: var(--sage);
  font-size: 0.9375rem;
}

.blog-card-read svg {
  transition: transform 0.2s;
}

.blog-card:hover .blog-card-read svg {
  transform: translateX(4px);
}

/* ============================================
   BLOG ARTICLE
   ============================================ */
.article-header {
  padding: 10rem 3rem 4rem;
  max-width: 800px;
  margin: 0 auto;
}

.article-back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--sage);
  text-decoration: none;
  font-weight: 500;
  margin-bottom: 2rem;
  transition: gap 0.2s;
}

.article-back:hover {
  gap: 0.75rem;
}

.article-meta {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.article-date {
  font-size: 0.875rem;
  color: var(--stone);
}

.article-tag {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--sage);
  background: var(--sage-light);
  padding: 0.25rem 0.75rem;
  border-radius: 1rem;
}

.article-header h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  color: var(--charcoal);
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

.article-intro {
  font-size: 1.25rem;
  color: var(--stone);
  line-height: 1.7;
}

.article-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 3rem 6rem;
}

.article-content h2 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--charcoal);
  margin: 3rem 0 1.5rem;
}

.article-content h3 {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--charcoal);
  margin: 2.5rem 0 1rem;
}

.article-content p {
  color: var(--stone);
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.article-content ul,
.article-content ol {
  color: var(--stone);
  line-height: 1.8;
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

.article-content li {
  margin-bottom: 0.75rem;
}

.article-content strong {
  color: var(--charcoal);
}

.article-content a {
  color: var(--sage);
  text-decoration: underline;
}

.article-content a:hover {
  color: var(--sage-dark);
}

.article-content blockquote {
  border-left: 3px solid var(--sage);
  padding-left: 1.5rem;
  margin: 2rem 0;
  font-style: italic;
  color: var(--stone);
}

.article-content blockquote p {
  margin-bottom: 0;
}

.article-content code {
  background: var(--sage-light);
  padding: 0.2rem 0.4rem;
  border-radius: 0.25rem;
  font-size: 0.9em;
}

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

.article-content pre code {
  background: none;
  padding: 0;
  color: inherit;
}

/* Article images */
.article-content img {
  max-width: 100%;
  height: auto;
  border-radius: 0.75rem;
  margin: 2rem 0;
  display: block;
}

/* Article tables */
.article-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  font-size: 0.95rem;
}

.article-content table th,
.article-content table td {
  padding: 0.875rem 1rem;
  text-align: left;
  border-bottom: 1px solid rgba(74, 124, 89, 0.2);
}

.article-content table th {
  background: var(--sage-light);
  font-weight: 600;
  color: var(--charcoal);
}

.article-content table td {
  color: var(--stone);
}

.article-content table tbody tr:hover {
  background: var(--sage-light);
}

/* Article CTA */
.article-cta {
  background: var(--sage-light);
  border-radius: 1rem;
  padding: 2.5rem;
  margin-top: 4rem;
  text-align: center;
}

.article-cta h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--charcoal);
  margin: 0 0 0.75rem 0;
}

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

.article-cta a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--sage);
  color: white;
  padding: 0.875rem 1.75rem;
  border-radius: 0.5rem;
  text-decoration: none;
  font-weight: 500;
  transition: background 0.2s ease;
}

.article-cta a:hover {
  background: var(--sage-dark);
}

.article-cta a svg {
  transition: transform 0.2s ease;
}

.article-cta a:hover svg {
  transform: translateX(4px);
}

/* Article Bottom Navigation */
.article-bottom-nav {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-light);
  text-align: center;
}

.back-to-home-bottom {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--stone);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.back-to-home-bottom:hover {
  color: var(--sage);
}

.back-to-home-bottom svg {
  transition: transform 0.2s ease;
}

.back-to-home-bottom:hover svg {
  transform: translateX(-4px);
}

/* Callout boxes */
.callout {
  background: var(--sage-light);
  border-radius: 0.75rem;
  padding: 1.5rem;
  margin: 2rem 0;
}

.callout-title {
  font-weight: 600;
  color: var(--sage-dark);
  margin-bottom: 0.5rem;
}

.callout p {
  margin-bottom: 0;
  color: var(--charcoal);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  header { padding: 1rem 1.5rem; }
  .hero, .services, .about, .contact, .insights { padding: 4rem 1.5rem; }
  .hero-shapes { display: none; }
  .section-header { grid-template-columns: 1fr; gap: 1.5rem; }
  .services-grid { grid-template-columns: 1fr; }
  .service-card.featured {
    grid-column: span 1;
    grid-template-columns: 1fr;
  }
  .about-grid { grid-template-columns: 1fr; gap: 3rem; }
  .contact-inner { grid-template-columns: 1fr; gap: 3rem; }
  .insights-grid { grid-template-columns: 1fr; }
  .stats { gap: 2rem; }
  .stat-value { font-size: 2rem; }

  /* Blog responsive */
  .blog-hero { padding: 8rem 1.5rem 3rem; }
  .blog-list { padding: 1rem 1.5rem 4rem; }
  .blog-card { padding: 1.5rem; }
  .blog-card h2 { font-size: 1.375rem; }
  .article-header { padding: 8rem 1.5rem 3rem; }
  .article-content { padding: 0 1.5rem 4rem; }
}

@media (max-width: 768px) {
  .footer-inner { flex-direction: column; gap: 1rem; text-align: center; }
}

@media (max-width: 640px) {
  .hero-title { font-size: 2.5rem; }
  .stats { flex-wrap: wrap; }
}

/* ============================================
   EDITORIAL HOMEPAGE STYLES
   ============================================ */

/* Site Header (Editorial) */
.site-header {
  padding: 10rem 3rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.site-title {
  font-family: var(--serif);
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.site-subtitle {
  font-family: var(--sans-editorial);
  font-size: 1.125rem;
  color: var(--text-secondary);
  font-weight: 400;
}

/* Language Toggle */
.language-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 1rem;
  background: var(--bg-secondary);
  border-radius: 2rem;
  font-family: var(--sans-editorial);
  font-size: 0.875rem;
  font-weight: 500;
}

.lang-option {
  cursor: pointer;
  color: var(--text-tertiary);
  transition: color 0.2s;
}

.lang-option:hover {
  color: var(--text-primary);
}

.lang-option.active {
  color: var(--text-primary);
  font-weight: 600;
}

.lang-divider {
  color: var(--border-color);
}

/* Content Wrapper (2-column) */
.content-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 3rem 4rem;
  display: grid;
  grid-template-columns: 1fr 350px;
  gap: 4rem;
  align-items: start;
}

/* Featured Article Section */
.featured-section {
  margin-bottom: 3rem;
}

.featured-label {
  font-family: var(--sans-editorial);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-tertiary);
  margin-bottom: 1rem;
}

.featured-article {
  text-decoration: none;
  display: block;
}

.featured-title {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.2;
  margin-bottom: 1rem;
  transition: color 0.2s;
}

.featured-article:hover .featured-title {
  color: var(--accent-sage);
}

.featured-excerpt {
  font-family: var(--serif);
  font-size: 1.25rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.featured-meta {
  font-family: var(--sans-editorial);
  font-size: 0.875rem;
  color: var(--text-tertiary);
}

/* Terminal Code Block */
.code-insight {
  background: var(--charcoal);
  border-radius: 0.75rem;
  padding: 1.5rem;
  margin-bottom: 3rem;
  font-family: 'Monaco', 'Courier New', monospace;
  font-size: 0.875rem;
  color: #E0E0E0;
  overflow-x: auto;
  line-height: 1.6;
}

.code-insight .code-comment {
  color: #888;
}

.code-insight .code-keyword {
  color: #8b2635;
}

/* Article Grid */
.articles-section {
  margin-bottom: 3rem;
}

.section-heading {
  font-family: var(--serif);
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
}

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

.article-card {
  text-decoration: none;
  display: block;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border-subtle);
  transition: all 0.2s;
}

.article-card:hover {
  padding-left: 1rem;
}

.article-tag {
  font-family: var(--sans-editorial);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-sage);
  margin-bottom: 0.5rem;
  display: block;
}

.article-title {
  font-family: var(--serif);
  font-size: 1.375rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.3;
  margin-bottom: 0.5rem;
  transition: color 0.2s;
}

.article-card:hover .article-title {
  color: var(--accent-sage);
}

.article-excerpt {
  font-family: var(--serif);
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Sidebar */
.sidebar {
  position: sticky;
  top: 6rem;
}

.sidebar-card {
  background: var(--bg-secondary);
  border-radius: 0.75rem;
  padding: 2rem;
  margin-bottom: 2rem;
}

.sidebar-card h3 {
  font-family: var(--serif);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

/* About Card */
.about-photo {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 0.5rem;
  margin-bottom: 1rem;
}

.about-bio {
  font-family: var(--serif);
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.about-focus {
  font-family: var(--sans-editorial);
  font-size: 0.875rem;
  color: var(--text-tertiary);
  margin-bottom: 1rem;
}

.about-experience {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.experience-badge {
  font-family: var(--sans-editorial);
  font-size: 0.75rem;
  padding: 0.375rem 0.75rem;
  background: white;
  border-radius: 1rem;
  color: var(--text-primary);
}

.about-cta {
  display: inline-block;
  width: 100%;
  padding: 0.75rem;
  background: var(--text-primary);
  color: white;
  text-align: center;
  text-decoration: none;
  border-radius: 0.5rem;
  font-family: var(--sans-editorial);
  font-size: 0.875rem;
  font-weight: 500;
  transition: background 0.2s;
}

.about-cta:hover {
  background: var(--accent-sage);
}

/* Stats Card */
.stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

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

.stat-number {
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 600;
  color: var(--accent-sage);
  display: block;
}

.stat-label {
  font-family: var(--sans-editorial);
  font-size: 0.75rem;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Topics Card */
.topic-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.topic-tag {
  font-family: var(--sans-editorial);
  font-size: 0.75rem;
  padding: 0.375rem 0.75rem;
  background: white;
  border-radius: 1rem;
  color: var(--text-primary);
  text-decoration: none;
  transition: all 0.2s;
}

.topic-tag:hover {
  background: var(--accent-sage);
  color: white;
}

/* Contact CTA Section */
.contact-cta-section {
  background: var(--bg-secondary);
  border-radius: 0.75rem;
  padding: 2.5rem;
  text-align: center;
  margin-top: 3rem;
}

.contact-cta-section h2 {
  font-family: var(--serif);
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.contact-cta-section p {
  font-family: var(--serif);
  font-size: 1.125rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.contact-cta-button {
  display: inline-block;
  padding: 1rem 2rem;
  background: var(--text-primary);
  color: white;
  text-decoration: none;
  border-radius: 0.5rem;
  font-family: var(--sans-editorial);
  font-weight: 500;
  transition: background 0.2s;
}

.contact-cta-button:hover {
  background: var(--accent-sage);
}

/* Editorial Footer */
.site-footer {
  background: var(--bg-secondary);
  padding: 3rem 3rem 2rem;
  margin-top: 4rem;
}

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

.footer-section h4 {
  font-family: var(--sans-editorial);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

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

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

.footer-section a {
  font-family: var(--serif);
  font-size: 0.9375rem;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s;
}

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

.footer-brand {
  grid-column: 1;
}

.footer-brand p {
  font-family: var(--serif);
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 2rem;
  border-top: 1px solid var(--border-subtle);
  font-family: var(--sans-editorial);
  font-size: 0.875rem;
  color: var(--text-tertiary);
  text-align: center;
}

/* Responsive Editorial Styles */
@media (max-width: 1024px) {
  .content-wrapper {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .sidebar {
    position: static;
  }

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

@media (max-width: 768px) {
  .site-header {
    padding: 8rem 1.5rem 2rem;
  }

  .content-wrapper {
    padding: 0 1.5rem 3rem;
  }

  .featured-title {
    font-size: 1.75rem;
  }

  .featured-excerpt {
    font-size: 1.125rem;
  }

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

  .site-footer {
    padding: 2rem 1.5rem 1.5rem;
  }
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(1.5rem); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-badge, .hero-title, .hero-subtitle, .hero-ctas {
  animation: fade-up 0.6s ease-out both;
}
.hero-badge { animation-delay: 0.1s; }
.hero-title { animation-delay: 0.2s; }
.hero-subtitle { animation-delay: 0.3s; }
.hero-ctas { animation-delay: 0.4s; }
