/* ============================================================
   GREENFIELD PUBLISHERS — Design System v4.0
   "Literary Luxury" — Premium Publishing Experience
   Domain: greenfieldpublishers.com
   ============================================================ */

/* ---------- CSS Custom Properties ---------- */
:root {
  /* Brand Colors */
  --emerald: #064E3B;
  --emerald-light: #059669;
  --emerald-dark: #022C22;
  --gold: #D4A574;
  --gold-light: #E8C9A0;
  --gold-dark: #B8864E;
  --coral: #E8725C;
  --coral-light: #F09A89;

  /* Neutrals — Dark Luxury Theme */
  --charcoal: #111120;
  --ink: #0A0F1E;
  --slate: #2A3040;
  --stone: #58647A;
  --silver: #8892A8;
  --mist: #D0D6E0;
  --cloud: #E8ECF2;
  --snow: #F0F2F5;
  --warm-white: #F4F3F0;
  --cream: #EDE9E0;
  --white: #FFFFFF;

  /* Functional Colors */
  --success: #10B981;
  --warning: #F59E0B;
  --error: #EF4444;
  --info: #3B82F6;

  /* Typography */
  --font-display: 'Cormorant Garamond', 'Georgia', serif;
  --font-body: 'Plus Jakarta Sans', 'Segoe UI', sans-serif;
  --font-mono: 'Space Mono', 'Courier New', monospace;

  /* Font Sizes — Fluid Typography */
  --text-xs: clamp(0.7rem, 0.65rem + 0.25vw, 0.75rem);
  --text-sm: clamp(0.8rem, 0.75rem + 0.25vw, 0.875rem);
  --text-base: clamp(0.95rem, 0.9rem + 0.25vw, 1.0625rem);
  --text-lg: clamp(1.1rem, 1rem + 0.5vw, 1.25rem);
  --text-xl: clamp(1.25rem, 1.1rem + 0.75vw, 1.5rem);
  --text-2xl: clamp(1.5rem, 1.25rem + 1.25vw, 2rem);
  --text-3xl: clamp(1.875rem, 1.5rem + 1.875vw, 2.5rem);
  --text-4xl: clamp(2.25rem, 1.75rem + 2.5vw, 3.25rem);
  --text-5xl: clamp(2.75rem, 2rem + 3.75vw, 4.5rem);
  --text-6xl: clamp(3.25rem, 2.25rem + 5vw, 6rem);

  /* Spacing Scale */
  --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;
  --space-32: 8rem;

  /* Layout */
  --container-sm: 640px;
  --container-md: 768px;
  --container-lg: 1024px;
  --container-xl: 1200px;
  --container-2xl: 1400px;

  /* Borders & Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-xs: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
  --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);
  --shadow-2xl: 0 25px 50px -12px rgba(0,0,0,0.25);
  --shadow-glow: 0 0 40px rgba(6,78,59,0.15);
  --shadow-gold: 0 0 40px rgba(212,165,116,0.2);

  /* Glass Effect */
  --glass-bg: rgba(255,255,255,0.7);
  --glass-border: rgba(255,255,255,0.2);
  --glass-blur: blur(20px);

  /* Transitions */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --duration-fast: 200ms;
  --duration-normal: 350ms;
  --duration-slow: 600ms;

  /* Z-index Scale */
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-modal-backdrop: 300;
  --z-modal: 400;
  --z-toast: 500;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

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

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

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-out);
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

ul, ol { list-style: none; }
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.2;
  color: var(--ink);
}

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container-xl);
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.container--narrow { max-width: var(--container-md); }
.container--wide { max-width: var(--container-2xl); }

.section {
  padding: var(--space-24) 0;
  position: relative;
}

.section--sm { padding: var(--space-16) 0; }
.section--lg { padding: var(--space-32) 0; }

.grid {
  display: grid;
  gap: var(--space-8);
}

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

.flex { display: flex; }
.flex--center { align-items: center; justify-content: center; }
.flex--between { align-items: center; justify-content: space-between; }
.flex--col { flex-direction: column; }
.flex--wrap { flex-wrap: wrap; }
.gap-4 { gap: var(--space-4); }
.gap-6 { gap: var(--space-6); }
.gap-8 { gap: var(--space-8); }

/* ---------- Navigation ---------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-sticky);
  padding: var(--space-5) 0;
  transition: all var(--duration-normal) var(--ease-out);
}

.nav--scrolled {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid var(--glass-border);
  padding: var(--space-3) 0;
  box-shadow: var(--shadow-sm);
}

.nav__inner {
  display: flex;
  flex-wrap: nowrap;
  overflow: hidden;
  align-items: center;
  justify-content: space-between;
  max-width: var(--container-xl);
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--white);
  transition: color var(--duration-fast) var(--ease-out);
}

.nav--scrolled .nav__logo { color: var(--emerald-dark); }

.nav__logo svg {
  height: 48px;
  width: auto;
  min-width: 44px;
}

.nav__logo-text span {
  display: block;
  font-size: var(--text-xs);
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  opacity: 0.7;
  font-weight: 400;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: var(--space-8);
}

.nav__link {
  font-size: var(--text-sm);
  font-weight: 500;
  color: rgba(255,255,255,0.85);
  position: relative;
  padding: var(--space-2) 0;
  transition: color var(--duration-fast) var(--ease-out);
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width var(--duration-normal) var(--ease-out);
}

.nav__link:hover::after,
.nav__link--active::after { width: 100%; }

.nav--scrolled .nav__link { color: var(--slate); }
.nav--scrolled .nav__link:hover { color: var(--emerald); }

.nav__cta {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  background: var(--gold);
  color: var(--ink);
  font-size: var(--text-sm);
  font-weight: 600;
  border-radius: var(--radius-full);
  transition: all var(--duration-normal) var(--ease-out);
}

.nav__cta:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-gold);
}

/* Mobile Menu */
.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: var(--space-2);
  cursor: pointer;
}

.nav__hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all var(--duration-fast) var(--ease-out);
}

.nav--scrolled .nav__hamburger span { background: var(--charcoal); }

.nav__hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav__hamburger.active span:nth-child(2) { opacity: 0; }
.nav__hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

.nav__mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--emerald-dark);
  z-index: 9999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-8);
  opacity: 0;
  visibility: hidden;
  transition: all var(--duration-slow) var(--ease-out);
}

.nav__mobile-menu.active {
  display: flex;
  opacity: 1;
  visibility: visible;
}

.nav__mobile-menu a {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  color: var(--white);
  font-weight: 600;
}

.nav__mobile-close {
  position: absolute;
  top: var(--space-6);
  right: var(--space-6);
  color: var(--white);
  font-size: var(--text-2xl);
  cursor: pointer;
}

/* ---------- Hero Section ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--emerald-dark) 0%, var(--charcoal) 50%, var(--ink) 100%);
  overflow: hidden;
}

.hero__bg-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.05;
  background-image:
    radial-gradient(circle at 25% 25%, var(--gold) 1px, transparent 1px),
    radial-gradient(circle at 75% 75%, var(--gold) 1px, transparent 1px);
  background-size: 60px 60px;
}

.hero__glow {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.15;
  pointer-events: none;
}

.hero__glow--1 {
  top: -200px;
  right: -100px;
  background: var(--emerald-light);
}

.hero__glow--2 {
  bottom: -200px;
  left: -100px;
  background: var(--gold);
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 720px;
  padding-top: calc(var(--space-32) + 40px);
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-2) var(--space-5);
  background: rgba(212,165,116,0.15);
  border: 1px solid rgba(212,165,116,0.3);
  border-radius: var(--radius-full);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--gold-light);
  margin-bottom: var(--space-8);
}

.hero__eyebrow-dot {
  width: 8px;
  height: 8px;
  background: var(--gold);
  border-radius: 50%;
  animation: dot-pulse 2s ease-in-out infinite;
}
@keyframes dot-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.5); }
}

.hero__title {
  font-size: var(--text-6xl);
  font-weight: 700;
  color: var(--white);
  line-height: 1.05;
  margin-bottom: var(--space-6);
}

.hero__title-accent {
  background: linear-gradient(135deg, var(--gold-light), var(--gold), var(--coral-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__subtitle {
  font-size: var(--text-lg);
  color: rgba(255,255,255,0.7);
  line-height: 1.8;
  margin-bottom: var(--space-10);
  max-width: 580px;
}

.hero__actions {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  margin-bottom: var(--space-16);
}

.hero__stats {
  display: flex;
  gap: var(--space-12);
  padding-top: var(--space-10);
  border-top: 1px solid rgba(255,255,255,0.1);
}

.hero__stat-number {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}

.hero__stat-label {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.5);
  margin-top: var(--space-2);
}

/* Hero Creative Scene */
.hero__visual {
  position: absolute;
  right: 3%;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1;
  width: 480px;
  height: 520px;
}

.hero__scene {
  position: relative;
  width: 100%;
  height: 100%;
}

/* Glow orb behind the book */
.hero__glow-orb {
  position: absolute;
  top: 25%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(212,165,116,0.15) 0%, rgba(6,78,59,0.1) 40%, transparent 70%);
  border-radius: 50%;
  animation: glow-pulse 4s ease-in-out infinite;
  filter: blur(30px);
}

@keyframes glow-pulse {
  0%, 100% { opacity: 0.6; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 1; transform: translate(-50%, -50%) scale(1.15); }
}

/* Open book */
.hero__openbook {
  position: absolute;
  top: 35%;
  left: 50%;
  transform: translate(-50%, -50%) perspective(800px) rotateX(20deg);
  display: flex;
  align-items: stretch;
  animation: book-float 6s ease-in-out infinite;
  filter: drop-shadow(0 30px 50px rgba(0,0,0,0.5));
}

.hero__openbook-left,
.hero__openbook-right {
  width: 160px;
  height: 200px;
  border-radius: 4px;
  position: relative;
  overflow: hidden;
}

.hero__openbook-left {
  background: linear-gradient(135deg, #f5ecd8 0%, #e8dcc0 100%);
  transform: rotateY(25deg);
  transform-origin: right center;
  border-right: none;
  border-radius: 8px 0 0 8px;
  box-shadow: inset -8px 0 20px rgba(0,0,0,0.08);
}

.hero__openbook-right {
  background: linear-gradient(225deg, #faf4e8 0%, #f0e4c8 100%);
  transform: rotateY(-25deg);
  transform-origin: left center;
  border-left: none;
  border-radius: 0 8px 8px 0;
  box-shadow: inset 8px 0 20px rgba(0,0,0,0.05);
}

.hero__openbook-spine {
  width: 14px;
  height: 200px;
  background: linear-gradient(to bottom, #c0a870, #a08850, #c0a870);
  box-shadow: inset 0 0 8px rgba(0,0,0,0.3);
  border-radius: 0;
  flex-shrink: 0;
}

/* Page lines */
.hero__openbook-lines {
  position: absolute;
  top: 20px;
  left: 20px;
  right: 20px;
  bottom: 30px;
}

.hero__openbook-left .hero__openbook-lines {
  background: repeating-linear-gradient(
    to bottom,
    transparent 0px,
    transparent 11px,
    rgba(139,111,71,0.15) 11px,
    rgba(139,111,71,0.15) 12px
  );
}

.hero__openbook-right .hero__openbook-lines {
  background: repeating-linear-gradient(
    to bottom,
    transparent 0px,
    transparent 11px,
    rgba(139,111,71,0.12) 11px,
    rgba(139,111,71,0.12) 12px
  );
}

/* Quill pen */
.hero__quill {
  position: absolute;
  top: 12%;
  right: 18%;
  width: 50px;
  height: 100px;
  transform: rotate(-35deg);
  animation: quill-write 3s ease-in-out infinite;
  z-index: 3;
}

.hero__quill-svg {
  width: 100%;
  height: 100%;
}

@keyframes quill-write {
  0%, 100% { transform: rotate(-35deg) translate(0, 0); }
  25% { transform: rotate(-33deg) translate(5px, 2px); }
  50% { transform: rotate(-37deg) translate(-3px, 4px); }
  75% { transform: rotate(-34deg) translate(3px, 1px); }
}

/* Ink trail */
.hero__ink-trail {
  position: absolute;
  top: 42%;
  left: 55%;
  width: 60px;
  height: 3px;
  background: linear-gradient(to right, rgba(42,48,64,0.5), transparent);
  border-radius: 2px;
  animation: ink-flow 3s ease-in-out infinite;
  z-index: 2;
}

@keyframes ink-flow {
  0%, 100% { width: 30px; opacity: 0.4; }
  50% { width: 70px; opacity: 0.7; }
}

/* Floating pages rising from the book */
.hero__floating-page {
  position: absolute;
  background: rgba(255,255,255,0.85);
  border: 1px solid rgba(212,165,116,0.2);
  border-radius: 3px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  z-index: 2;
}

.hero__floating-page::before {
  content: '';
  position: absolute;
  top: 15%;
  left: 15%;
  right: 15%;
  bottom: 25%;
  background: repeating-linear-gradient(
    to bottom,
    rgba(139,111,71,0.1) 0px,
    rgba(139,111,71,0.1) 1px,
    transparent 1px,
    transparent 8px
  );
}

.hero__floating-page--1 {
  width: 70px;
  height: 90px;
  top: 8%;
  left: 25%;
  animation: page-rise-1 8s ease-in-out infinite;
}

.hero__floating-page--2 {
  width: 55px;
  height: 72px;
  top: 5%;
  right: 22%;
  animation: page-rise-2 10s ease-in-out infinite 1.5s;
}

.hero__floating-page--3 {
  width: 48px;
  height: 62px;
  top: 15%;
  left: 12%;
  animation: page-rise-3 12s ease-in-out infinite 3s;
}

@keyframes page-rise-1 {
  0%, 100% { transform: translateY(0) rotate(-8deg); opacity: 0.7; }
  50% { transform: translateY(-25px) rotate(-3deg); opacity: 0.95; }
}

@keyframes page-rise-2 {
  0%, 100% { transform: translateY(0) rotate(6deg); opacity: 0.6; }
  50% { transform: translateY(-30px) rotate(12deg); opacity: 0.9; }
}

@keyframes page-rise-3 {
  0%, 100% { transform: translateY(0) rotate(-12deg); opacity: 0.5; }
  50% { transform: translateY(-20px) rotate(-5deg); opacity: 0.85; }
}

/* Golden sparkle particles */
.hero__sparkle {
  position: absolute;
  width: 6px;
  height: 6px;
  background: var(--gold);
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(212,165,116,0.6), 0 0 16px rgba(212,165,116,0.3);
  z-index: 4;
}

.hero__sparkle--1 { top: 10%; left: 30%; animation: sparkle-float 5s ease-in-out infinite; }
.hero__sparkle--2 { top: 20%; right: 25%; width: 4px; height: 4px; animation: sparkle-float 7s ease-in-out infinite 1s; }
.hero__sparkle--3 { top: 35%; left: 15%; width: 3px; height: 3px; animation: sparkle-float 6s ease-in-out infinite 2s; }
.hero__sparkle--4 { top: 50%; right: 15%; width: 5px; height: 5px; animation: sparkle-float 8s ease-in-out infinite 0.5s; }
.hero__sparkle--5 { top: 15%; left: 55%; width: 3px; height: 3px; animation: sparkle-float 9s ease-in-out infinite 3s; }
.hero__sparkle--6 { top: 5%; right: 35%; width: 4px; height: 4px; animation: sparkle-float 6.5s ease-in-out infinite 1.5s; }

@keyframes sparkle-float {
  0%, 100% { opacity: 0.3; transform: translateY(0) scale(1); }
  25% { opacity: 1; transform: translateY(-10px) scale(1.3); }
  50% { opacity: 0.5; transform: translateY(-20px) scale(0.8); }
  75% { opacity: 0.9; transform: translateY(-8px) scale(1.1); }
}

/* Rising text from pages */
.hero__rising-text {
  position: absolute;
  top: 18%;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-style: italic;
  color: rgba(212,165,116,0.5);
  text-align: center;
  line-height: 1.5;
  animation: text-rise 6s ease-in-out infinite;
  white-space: nowrap;
  z-index: 3;
  text-shadow: 0 0 20px rgba(212,165,116,0.3);
}

@keyframes text-rise {
  0%, 100% { opacity: 0.3; transform: translateX(-50%) translateY(0); }
  50% { opacity: 0.7; transform: translateX(-50%) translateY(-15px); }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-4) var(--space-8);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  border-radius: var(--radius-full);
  transition: all var(--duration-normal) var(--ease-out);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn--primary {
  background: var(--emerald);
  color: var(--white);
  box-shadow: 0 4px 15px rgba(6,78,59,0.3);
}

.btn--primary:hover {
  background: var(--emerald-light);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(6,78,59,0.4);
}

.btn--gold {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--ink);
  box-shadow: 0 4px 15px rgba(212,165,116,0.3);
  position: relative;
  overflow: hidden;
}
.btn--gold::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent 30%,
    rgba(255,255,255,0.15) 50%,
    transparent 70%
  );
  transform: translateX(-100%);
  transition: none;
}
.btn--gold:hover::after {
  animation: btn-shimmer 0.6s ease forwards;
}
@keyframes btn-shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.btn--gold:hover {
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  transform: translateY(-3px);
  box-shadow: var(--shadow-gold);
}

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

.btn--outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.6);
}

.btn--outline-dark {
  color: var(--emerald);
  border: 2px solid var(--emerald);
  background: transparent;
}

.btn--outline-dark:hover {
  background: var(--emerald);
  color: var(--white);
}

.btn--lg {
  padding: var(--space-5) var(--space-10);
  font-size: var(--text-base);
}

.btn--sm {
  padding: var(--space-2) var(--space-5);
  font-size: var(--text-xs);
}

.btn--icon {
  width: 48px;
  height: 48px;
  padding: 0;
  border-radius: 50%;
}

.btn__arrow {
  transition: transform var(--duration-fast) var(--ease-out);
}

.btn:hover .btn__arrow {
  transform: translateX(4px);
}

/* ---------- Section Headers ---------- */
.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto var(--space-16);
}

.section-header--left {
  text-align: left;
  margin-left: 0;
}

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--emerald-light);
  margin-bottom: var(--space-4);
}

.section-eyebrow::before {
  content: '';
  width: 24px;
  height: 2px;
  background: var(--gold);
}

.section-title {
  font-size: var(--text-4xl);
  font-weight: 700;
  color: var(--ink);
  margin-bottom: var(--space-4);
}

.section-title--light { color: var(--white); }

.section-subtitle {
  font-size: var(--text-lg);
  color: var(--stone);
  line-height: 1.8;
}

/* ---------- Service Cards ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8);
}

.service-card {
  position: relative;
  padding: 0;
  background: var(--white);
  border-radius: var(--radius-2xl);
  border: 1px solid transparent;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.4s ease;
  overflow: hidden;
}

.service-card__illustration {
  width: 100%;
  height: 160px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: var(--radius-2xl) var(--radius-2xl) 0 0;
}

.service-card__body {
  padding: var(--space-8) var(--space-8) var(--space-10);
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--emerald), var(--gold));
  opacity: 0;
  transition: opacity var(--duration-normal) var(--ease-out);
}

.service-card:hover {
  transform: translateY(-12px);
  box-shadow: 0 20px 60px rgba(6, 78, 59, 0.15), 0 0 0 1px rgba(212, 165, 116, 0.3);
  border-color: var(--gold-light);
}

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

.service-card__icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(6,78,59,0.1), rgba(6,78,59,0.05));
  border-radius: var(--radius-xl);
  margin-bottom: var(--space-4);
  margin-top: calc(-28px);
  margin-left: var(--space-8);
  position: relative;
  z-index: 2;
  font-size: 28px;
  transition: transform 0.4s ease, background 0.4s ease;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  border: 2px solid var(--white);
}
.service-card:hover .service-card__icon {
  transform: scale(1.15) rotate(-5deg);
  background: var(--emerald);
}
.service-card:hover .service-card__icon svg {
  stroke: var(--white);
}

.service-card__title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  margin-bottom: var(--space-3);
}

.service-card__desc {
  color: var(--stone);
  font-size: var(--text-sm);
  line-height: 1.7;
  margin-bottom: var(--space-6);
}

.service-card__price {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  color: var(--emerald);
  font-weight: 700;
  padding: var(--space-2) var(--space-4);
  background: rgba(6,78,59,0.06);
  border-radius: var(--radius-full);
  display: inline-block;
}

.service-card__link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--emerald);
  font-size: var(--text-sm);
  font-weight: 600;
  margin-top: var(--space-4);
  transition: gap 0.3s ease, color 0.3s ease;
}

.service-card__link:hover { gap: var(--space-3); }
.service-card:hover .service-card__link {
  gap: var(--space-3);
  color: var(--gold-dark);
}

/* ---------- Process / Journey Timeline ---------- */
.journey {
  background: linear-gradient(135deg, var(--ink) 0%, var(--charcoal) 100%);
  position: relative;
  overflow: hidden;
}

.journey__steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--space-6);
  position: relative;
}

.journey__line {
  position: absolute;
  top: 48px;
  left: 10%;
  right: 10%;
  height: 2px;
  background: linear-gradient(90deg, var(--emerald-light), var(--gold), var(--coral));
  z-index: 1;
}

.journey__step {
  text-align: center;
  position: relative;
  z-index: 2;
  transition: transform 0.3s ease;
}
.journey__step:hover {
  transform: translateY(-4px);
}

.journey__step-number {
  width: 96px;
  height: 96px;
  margin: 0 auto var(--space-6);
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--emerald), var(--emerald-dark));
  border-radius: 50%;
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--gold);
  border: 3px solid rgba(212,165,116,0.3);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.journey__step:hover .journey__step-number {
  transform: scale(1.1);
  border-color: var(--gold);
  box-shadow: 0 0 20px rgba(212, 165, 116, 0.5);
}

.journey__step-title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--white);
  margin-bottom: var(--space-2);
}

.journey__step-desc {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.5);
  line-height: 1.6;
}

/* ---------- Testimonials ---------- */
.testimonials {
  background: var(--cloud);
}

.testimonial-card {
  background: var(--white);
  border-radius: var(--radius-2xl);
  padding: var(--space-10);
  position: relative;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  border: 1px solid transparent;
}

.testimonial-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 24px 48px rgba(0,0,0,0.12);
  border-color: rgba(6,78,59,0.1);
}

.testimonial-card__stars {
  display: flex;
  gap: 4px;
  margin-bottom: var(--space-4);
  color: var(--gold);
  font-size: 18px;
  transition: transform 0.3s ease;
}
.testimonial-card:hover .testimonial-card__stars {
  transform: scale(1.1);
}

.testimonial-card__text {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-style: italic;
  color: var(--slate);
  line-height: 1.8;
  margin-bottom: var(--space-6);
}

.testimonial-card__author {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.testimonial-card__avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--emerald), var(--gold));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--white);
}

.testimonial-card__name {
  font-weight: 700;
  font-size: var(--text-base);
}

.testimonial-card__role {
  font-size: var(--text-sm);
  color: var(--stone);
}

.testimonial-card__book {
  font-size: var(--text-sm);
  color: var(--emerald);
  font-style: italic;
}

/* ---------- Pricing Cards ---------- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8);
  align-items: start;
}

.pricing-card {
  background: var(--white);
  border-radius: var(--radius-2xl);
  padding: var(--space-10);
  border: 2px solid var(--mist);
  position: relative;
  transition: all var(--duration-normal) var(--ease-out);
}

.pricing-card--featured {
  border-color: var(--emerald);
  transform: scale(1.05);
  box-shadow: var(--shadow-xl);
}

.pricing-card--featured::before {
  content: 'Most Popular';
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  padding: var(--space-2) var(--space-5);
  background: var(--emerald);
  color: var(--white);
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-radius: var(--radius-full);
}

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

.pricing-card--featured:hover {
  transform: scale(1.05) translateY(-4px);
}

.pricing-card__name {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  margin-bottom: var(--space-2);
}

.pricing-card__desc {
  font-size: var(--text-sm);
  color: var(--stone);
  margin-bottom: var(--space-6);
}

.pricing-card__price {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  font-weight: 700;
  color: var(--emerald);
}

.pricing-card__price span {
  font-size: var(--text-base);
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--stone);
}

.pricing-card__features {
  margin: var(--space-8) 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.pricing-card__feature {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-size: var(--text-sm);
  color: var(--slate);
}

.pricing-card__feature svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--emerald-light);
  margin-top: 2px;
}

/* ---------- Portfolio Grid ---------- */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
}

.portfolio-item {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  aspect-ratio: 3/4;
  cursor: pointer;
}

.portfolio-item__cover {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-8);
  text-align: center;
  transition: transform var(--duration-slow) var(--ease-out);
}

.portfolio-item:hover .portfolio-item__cover {
  transform: scale(1.05);
}

.portfolio-item__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 50%);
  opacity: 0;
  transition: opacity var(--duration-normal) var(--ease-out);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--space-6);
}

.portfolio-item:hover .portfolio-item__overlay { opacity: 1; }

.portfolio-item__genre {
  display: inline-block;
  padding: var(--space-1) var(--space-3);
  background: rgba(212,165,116,0.2);
  border: 1px solid rgba(212,165,116,0.4);
  color: var(--gold-light);
  font-size: var(--text-xs);
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-radius: var(--radius-full);
  margin-bottom: var(--space-2);
}

.portfolio-item__title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--white);
}

.portfolio-item__author {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.7);
}

/* ---------- Blog Cards ---------- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8);
}

.blog-card {
  background: var(--white);
  border-radius: var(--radius-2xl);
  overflow: hidden;
  border: 1px solid var(--mist);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.blog-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
  border-color: transparent;
}

.blog-card__image, .blog-card__header {
  transition: transform 0.5s ease;
  overflow: hidden;
}
.blog-card:hover .blog-card__image,
.blog-card:hover .blog-card__header {
  transform: scale(1.05);
}

.blog-card__image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
}

.blog-card__body { padding: var(--space-8); }

.blog-card__meta {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  font-size: var(--text-xs);
  color: var(--stone);
  margin-bottom: var(--space-4);
  font-family: var(--font-mono);
}

.blog-card__tag {
  padding: var(--space-1) var(--space-3);
  background: rgba(6,78,59,0.08);
  color: var(--emerald);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 600;
}

.blog-card__title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  margin-bottom: var(--space-3);
  line-height: 1.3;
}

.blog-card__excerpt {
  font-size: var(--text-sm);
  color: var(--stone);
  line-height: 1.7;
  margin-bottom: var(--space-4);
}

.blog-card__link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--emerald);
  font-size: var(--text-sm);
  font-weight: 600;
}

.blog-card__link:hover { gap: var(--space-3); }

/* ---------- Stats Bar ---------- */
.stats-bar {
  background: linear-gradient(135deg, var(--emerald-dark), var(--emerald));
  padding: var(--space-16) 0;
}

.stats-bar__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-8);
  text-align: center;
}

.stats-bar__item { position: relative; }
.stats-bar__item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 20%;
  height: 60%;
  width: 1px;
  background: rgba(255,255,255,0.15);
}

.stats-bar__number {
  font-family: var(--font-display);
  font-size: var(--text-5xl);
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}

.stats-bar__label {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.7);
  margin-top: var(--space-2);
}

/* ---------- CTA Section ---------- */
.cta-section {
  background: linear-gradient(135deg, var(--ink), var(--charcoal));
  position: relative;
  overflow: hidden;
  text-align: center;
}

.cta-section__glow {
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: var(--emerald);
  filter: blur(150px);
  opacity: 0.1;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: cta-glow-pulse 4s ease-in-out infinite;
}
@keyframes cta-glow-pulse {
  0%, 100% { opacity: 0.3; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 0.5; transform: translate(-50%, -50%) scale(1.1); }
}

.cta-section__content {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: var(--space-12);
}

.cta-section__text { flex: 1; text-align: left; }

.cta-section__illustration {
  flex: 0 0 380px;
  height: 300px;
}

.cta-section__illustration img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0.9;
  filter: drop-shadow(0 10px 40px rgba(0,0,0,0.3));
}

@media (max-width: 1024px) {
  .cta-section__content { flex-direction: column; text-align: center; }
  .cta-section__text { text-align: center; }
  .cta-section__illustration { flex: 0 0 auto; width: 280px; height: 220px; }
}

@media (max-width: 640px) {
  .cta-section__illustration { display: none; }
}

.cta-section__title {
  font-size: var(--text-4xl);
  font-weight: 700;
  color: var(--white);
  margin-bottom: var(--space-4);
}

.cta-section__subtitle {
  font-size: var(--text-lg);
  color: rgba(255,255,255,0.6);
  margin-bottom: var(--space-10);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* ---------- Footer ---------- */
.footer {
  background: var(--ink);
  padding: var(--space-20) 0 var(--space-8);
  color: rgba(255,255,255,0.6);
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-12);
  margin-bottom: var(--space-16);
}

.footer__brand-desc {
  font-size: var(--text-sm);
  line-height: 1.8;
  margin-top: var(--space-4);
  max-width: 300px;
}

.footer__social {
  display: flex;
  gap: var(--space-3);
  margin-top: var(--space-6);
}

.footer__social a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  transition: all var(--duration-fast) var(--ease-out);
  font-size: 16px;
}

.footer__social a:hover {
  background: var(--emerald);
  border-color: var(--emerald);
  transform: translateY(-3px);
}

.footer__heading {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--white);
  margin-bottom: var(--space-6);
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer__link {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.5);
  transition: all var(--duration-fast) var(--ease-out);
  display: inline-block;
}

.footer__link:hover {
  color: var(--gold);
  transform: translateX(4px);
}

.footer__bottom {
  padding-top: var(--space-8);
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: var(--text-xs);
}

.footer__legal {
  display: flex;
  gap: var(--space-6);
}

.footer__legal a {
  color: rgba(255,255,255,0.4);
}

.footer__legal a:hover { color: var(--gold); }

/* ---------- Contact Form ---------- */
.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-6);
}

.contact-form__group { display: flex; flex-direction: column; gap: var(--space-2); }
.contact-form__group--full { grid-column: 1 / -1; }

.contact-form__label {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--slate);
}

.contact-form__input,
.contact-form__select,
.contact-form__textarea {
  padding: var(--space-4);
  border: 2px solid var(--mist);
  border-radius: var(--radius-lg);
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--charcoal);
  background: var(--white);
  transition: all var(--duration-fast) var(--ease-out);
  width: 100%;
}

.contact-form__input:focus,
.contact-form__select:focus,
.contact-form__textarea:focus {
  outline: none;
  border-color: var(--emerald);
  box-shadow: 0 0 0 4px rgba(6,78,59,0.1);
}

.contact-form__textarea {
  min-height: 150px;
  resize: vertical;
}

/* ---------- Blog Article / Case Study ---------- */
.article-hero {
  background: linear-gradient(135deg, var(--emerald-dark), var(--charcoal));
  padding: var(--space-32) 0 var(--space-16);
  text-align: center;
}

.article-hero__meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-6);
  margin-bottom: var(--space-6);
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.6);
  font-family: var(--font-mono);
}

.article-hero__title {
  font-size: var(--text-5xl);
  font-weight: 700;
  color: var(--white);
  max-width: 800px;
  margin: 0 auto var(--space-6);
}

.article-hero h1 {
  font-size: var(--text-5xl);
  font-weight: 700;
  color: var(--white);
  max-width: 800px;
  margin: 0 auto var(--space-6);
}

.article-hero__subtitle {
  font-size: var(--text-lg);
  color: rgba(255,255,255,0.6);
  max-width: 600px;
  margin: 0 auto;
}

.article-content {
  max-width: 760px;
  margin: 0 auto;
  padding: var(--space-16) var(--space-6);
}

.article-content h2 {
  font-size: var(--text-3xl);
  margin-top: var(--space-12);
  margin-bottom: var(--space-6);
  color: var(--ink);
}

.article-content h3 {
  font-size: var(--text-2xl);
  margin-top: var(--space-8);
  margin-bottom: var(--space-4);
}

.article-content p {
  margin-bottom: var(--space-6);
  line-height: 1.9;
  color: var(--slate);
  font-size: var(--text-base);
}

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

.article-content li {
  margin-bottom: var(--space-3);
  line-height: 1.8;
  color: var(--slate);
  list-style: disc;
}

.article-content ol li { list-style: decimal; }

.article-content blockquote {
  border-left: 4px solid var(--gold);
  padding: var(--space-6) var(--space-8);
  margin: var(--space-8) 0;
  background: rgba(212,165,116,0.05);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-style: italic;
  color: var(--slate);
}

.article-callout {
  padding: var(--space-8);
  border-radius: var(--radius-xl);
  margin: var(--space-8) 0;
}

.article-callout--tip {
  background: rgba(6,78,59,0.06);
  border: 1px solid rgba(6,78,59,0.15);
}

.article-callout--warning {
  background: rgba(245,158,11,0.06);
  border: 1px solid rgba(245,158,11,0.2);
}

.article-callout__title {
  font-weight: 700;
  font-size: var(--text-base);
  margin-bottom: var(--space-2);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

/* ---------- FAQ Accordion ---------- */
.faq-item {
  border: 1px solid var(--mist);
  border-radius: var(--radius-xl);
  margin-bottom: var(--space-4);
  overflow: hidden;
  transition: all var(--duration-fast) var(--ease-out);
}

.faq-item.active {
  border-color: var(--emerald);
  box-shadow: 0 0 0 3px rgba(6,78,59,0.08);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-6) var(--space-8);
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  background: var(--white);
}

.faq-question__icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  transition: transform var(--duration-fast) var(--ease-out);
  color: var(--emerald);
}

.faq-item.active .faq-question__icon { transform: rotate(45deg); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--duration-normal) var(--ease-out);
}

.faq-answer__inner {
  padding: 0 var(--space-8) var(--space-6);
  color: var(--stone);
  line-height: 1.8;
  font-size: var(--text-sm);
}

/* ---------- Case Study Cards ---------- */
.case-study-card {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: var(--space-10);
  background: var(--white);
  border-radius: var(--radius-2xl);
  overflow: hidden;
  border: 1px solid var(--mist);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.case-study-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 48px rgba(0,0,0,0.15);
  border-color: transparent;
}

.case-study-card__visual {
  min-height: 350px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-8);
}

.case-study-card__body {
  padding: var(--space-10);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.case-study-card__tag {
  display: inline-block;
  padding: var(--space-1) var(--space-3);
  background: rgba(6,78,59,0.08);
  color: var(--emerald);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 600;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-4);
  width: fit-content;
}

.case-study-card__title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 700;
  margin-bottom: var(--space-4);
}

.case-study-card__excerpt {
  color: var(--stone);
  line-height: 1.8;
  margin-bottom: var(--space-6);
}

.case-study-card__stats {
  display: flex;
  gap: var(--space-8);
  margin-bottom: var(--space-6);
}

.case-study-card__stat-value {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--emerald);
}

.case-study-card__stat-label {
  font-size: var(--text-xs);
  color: var(--stone);
}

/* ---------- Newsletter ---------- */
.newsletter {
  background: linear-gradient(135deg, var(--emerald-dark), var(--emerald));
  border-radius: var(--radius-2xl);
  padding: var(--space-12) var(--space-16);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-10);
}

.newsletter__title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--white);
  margin-bottom: var(--space-2);
}

.newsletter__desc {
  color: rgba(255,255,255,0.7);
  font-size: var(--text-sm);
}

.newsletter__form {
  display: flex;
  gap: var(--space-3);
  min-width: 400px;
}

.newsletter__input {
  flex: 1;
  padding: var(--space-4) var(--space-6);
  border: 2px solid rgba(255,255,255,0.2);
  border-radius: var(--radius-full);
  background: rgba(255,255,255,0.1);
  color: var(--white);
  font-family: var(--font-body);
  font-size: var(--text-sm);
}

.newsletter__input::placeholder { color: rgba(255,255,255,0.5); }
.newsletter__input:focus {
  outline: none;
  border-color: var(--gold);
  background: rgba(255,255,255,0.15);
}

/* ---------- Page Heroes (Inner Pages) ---------- */
.page-hero {
  background: linear-gradient(135deg, var(--emerald-dark) 0%, var(--charcoal) 100%);
  padding: calc(var(--space-32) + 80px) 0 var(--space-16);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero__bg-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.03;
  background-image:
    radial-gradient(circle at 20% 30%, var(--gold) 1px, transparent 1px),
    radial-gradient(circle at 80% 70%, var(--gold) 1px, transparent 1px);
  background-size: 50px 50px;
}

.page-hero__title {
  font-size: var(--text-5xl);
  font-weight: 700;
  color: var(--white);
  margin-bottom: var(--space-4);
  position: relative;
}

.page-hero h1 {
  font-size: var(--text-5xl);
  font-weight: 700;
  color: var(--white);
  margin-bottom: var(--space-4);
  position: relative;
}

.page-hero .breadcrumb,
.page-hero .breadcrumb ol {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  margin-bottom: var(--space-6);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.4);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  position: relative;
  list-style: none;
  padding: 0;
}

.page-hero .breadcrumb a { color: var(--gold); }
.page-hero .breadcrumb li + li::before {
  content: '>';
  margin-right: var(--space-2);
  color: rgba(255,255,255,0.3);
}

.page-hero__subtitle {
  font-size: var(--text-lg);
  color: rgba(255,255,255,0.6);
  max-width: 600px;
  margin: 0 auto;
  position: relative;
}

.page-hero__breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  margin-bottom: var(--space-6);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.4);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  position: relative;
}

.page-hero__breadcrumb a { color: var(--gold); }

/* ---------- Trust Badges ---------- */
.trust-badges {
  overflow: hidden;
  position: relative;
  padding: var(--space-8) 0;
}
.trust-badges::before,
.trust-badges::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 80px;
  z-index: 2;
  pointer-events: none;
}
.trust-badges::before {
  left: 0;
  background: linear-gradient(to right, var(--cloud), transparent);
}
.trust-badges::after {
  right: 0;
  background: linear-gradient(to left, var(--cloud), transparent);
}
.trust-badges__track {
  display: flex;
  gap: var(--space-16);
  animation: marquee 30s linear infinite;
  width: max-content;
  align-items: center;
}
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.trust-badge {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-sm);
  color: var(--stone);
}

.trust-badge__icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(6,78,59,0.06);
  border-radius: 50%;
  font-size: 18px;
}

/* ---------- Scroll Animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s var(--ease-out);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal--left {
  transform: translateX(-40px);
}

.reveal--left.visible { transform: translateX(0); }

.reveal--right {
  transform: translateX(40px);
}

.reveal--right.visible { transform: translateX(0); }

.reveal--scale {
  transform: scale(0.95);
}

.reveal--scale.visible { transform: scale(1); }

/* Stagger children */
.stagger > *:nth-child(1) { transition-delay: 0.1s; }
.stagger > *:nth-child(2) { transition-delay: 0.2s; }
.stagger > *:nth-child(3) { transition-delay: 0.3s; }
.stagger > *:nth-child(4) { transition-delay: 0.4s; }
.stagger > *:nth-child(5) { transition-delay: 0.5s; }
.stagger > *:nth-child(6) { transition-delay: 0.6s; }

/* ---------- Keyframe Animations ---------- */
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.5); }
}

@keyframes book-float {
  0%, 100% { transform: translate(-50%, -50%) perspective(800px) rotateX(20deg) translateY(0); }
  50% { transform: translate(-50%, -50%) perspective(800px) rotateX(20deg) translateY(-15px); }
}

@keyframes float-page {
  0%, 100% { transform: translateY(0) rotate(0deg); opacity: 0.3; }
  50% { transform: translateY(-30px) rotate(5deg); opacity: 0.6; }
}

@keyframes spin-slow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes gradient-shift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Logo Animation */
@keyframes logo-book-open {
  0% { transform: rotateY(0deg); }
  50% { transform: rotateY(-30deg); }
  100% { transform: rotateY(0deg); }
}

@keyframes logo-pages-flutter {
  0%, 100% { transform: scaleX(1) translateX(0); }
  25% { transform: scaleX(1.1) translateX(2px); }
  75% { transform: scaleX(0.95) translateX(-1px); }
}

@keyframes logo-glow-pulse {
  0%, 100% { filter: drop-shadow(0 0 4px rgba(212,165,116,0.3)); }
  50% { filter: drop-shadow(0 0 12px rgba(212,165,116,0.6)); }
}

@keyframes logo-pen-write {
  0% { transform: translateX(0) translateY(0); }
  25% { transform: translateX(3px) translateY(-2px); }
  50% { transform: translateX(6px) translateY(0); }
  75% { transform: translateX(3px) translateY(2px); }
  100% { transform: translateX(0) translateY(0); }
}

@keyframes logo-sparkle {
  0%, 100% { opacity: 0; transform: scale(0); }
  50% { opacity: 1; transform: scale(1); }
}

.logo-animated {
  animation: logo-glow-pulse 3s ease-in-out infinite;
}

.logo-animated:hover .logo-book-left {
  animation: logo-book-open 1s ease-in-out;
}

.logo-animated:hover .logo-pages {
  animation: logo-pages-flutter 0.8s ease-in-out;
}

.logo-animated:hover .logo-pen {
  animation: logo-pen-write 1.5s ease-in-out infinite;
}

.logo-animated .logo-sparkle {
  animation: logo-sparkle 2s ease-in-out infinite;
}

.logo-animated .logo-sparkle:nth-child(2) { animation-delay: 0.6s; }
.logo-animated .logo-sparkle:nth-child(3) { animation-delay: 1.2s; }

/* ---------- Utility Classes ---------- */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-white { color: var(--white); }
.text-gold { color: var(--gold); }
.text-emerald { color: var(--emerald); }
.text-stone { color: var(--stone); }
.text-muted { color: var(--silver); }

.bg-white { background: var(--white); }
.bg-cloud { background: var(--cloud); }
.bg-warm { background: var(--warm-white); }

.mt-4 { margin-top: var(--space-4); }
.mt-8 { margin-top: var(--space-8); }
.mt-12 { margin-top: var(--space-12); }
.mt-16 { margin-top: var(--space-16); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-8 { margin-bottom: var(--space-8); }
.mb-12 { margin-bottom: var(--space-12); }
.mb-16 { margin-bottom: var(--space-16); }

.pt-8 { padding-top: var(--space-8); }
.pb-8 { padding-bottom: var(--space-8); }

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

.relative { position: relative; }
.overflow-hidden { overflow: hidden; }

/* ---------- Responsive ---------- */
@media (max-width: 1200px) {
  .hero__visual { display: none; }
  .hero__content { max-width: 100%; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: var(--space-8); }
}

@media (max-width: 1024px) {
  .nav__links { display: none; }
  .nav__cta { display: none; }
  .nav__hamburger { display: flex; }

  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-card--featured { transform: none; }
  .pricing-card--featured:hover { transform: translateY(-4px); }

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

  .journey__steps { grid-template-columns: repeat(3, 1fr); }
  .journey__line { display: none; }

  .stats-bar__grid { grid-template-columns: repeat(2, 1fr); gap: var(--space-10); }
  .stats-bar__item::after { display: none; }

  .case-study-card { grid-template-columns: 1fr; }
  .case-study-card__visual { min-height: 250px; }

  .newsletter {
    flex-direction: column;
    text-align: center;
    padding: var(--space-10);
  }
  .newsletter__form { min-width: 100%; flex-direction: column; }
}

@media (max-width: 768px) {
  .section { padding: var(--space-16) 0; }
  .section--lg { padding: var(--space-20) 0; }

  .hero { min-height: auto; padding: calc(var(--space-32) + 60px) 0 var(--space-16); }
  .hero__stats { flex-direction: column; gap: var(--space-6); }
  .hero__actions { flex-direction: column; align-items: flex-start; }

  .services-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 450px; margin: 0 auto; }
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
  .blog-grid { grid-template-columns: 1fr; }

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

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

  .footer__grid { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; gap: var(--space-4); text-align: center; }

  .page-hero { padding: calc(var(--space-20) + 80px) 0 var(--space-12); }

  .article-hero { padding: calc(var(--space-20) + 80px) 0 var(--space-12); }
  .article-hero__title { font-size: var(--text-3xl); }
}

@media (max-width: 480px) {
  .hero__title { font-size: var(--text-4xl); }
  .portfolio-grid { grid-template-columns: 1fr; }
  .stats-bar__grid { grid-template-columns: 1fr; }
  .journey__steps { grid-template-columns: 1fr; }
  /* trust-badges marquee works at all sizes */
}

/* Inner pages: ensure nav is readable on page-hero */
.nav:not(.nav--scrolled) {
  background: transparent;
}

/* ---------- Background Images for Pages ---------- */
.hero {
  background-image: url('../images/backgrounds/hero-pattern.svg'), linear-gradient(135deg, var(--emerald-dark) 0%, var(--charcoal) 50%, var(--ink) 100%);
  background-repeat: repeat, no-repeat;
  background-size: 400px, cover;
  background-blend-mode: overlay;
}

.page-hero {
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  background-blend-mode: soft-light;
}

/* Per-page hero backgrounds — SVG layered on top of the base gradient */
[data-page="services"] .page-hero,
.page-hero--services {
  background-image: url('../images/backgrounds/services-hero.svg'), linear-gradient(135deg, var(--emerald-dark) 0%, var(--charcoal) 100%);
}

[data-page="pricing"] .page-hero,
.page-hero--pricing {
  background-image: url('../images/backgrounds/pricing-hero.svg'), linear-gradient(135deg, var(--emerald-dark) 0%, var(--charcoal) 100%);
}

[data-page="about"] .page-hero,
.page-hero--about {
  background-image: url('../images/backgrounds/about-hero.svg'), linear-gradient(135deg, var(--emerald-dark) 0%, var(--charcoal) 100%);
}

[data-page="contact"] .page-hero,
.page-hero--contact {
  background-image: url('../images/backgrounds/contact-hero.svg'), linear-gradient(135deg, var(--emerald-dark) 0%, var(--charcoal) 100%);
}

[data-page="portfolio"] .page-hero,
.page-hero--portfolio {
  background-image: url('../images/backgrounds/portfolio-hero.svg'), linear-gradient(135deg, var(--emerald-dark) 0%, var(--charcoal) 100%);
}

[data-page="blog"] .page-hero,
.page-hero--blog {
  background-image: url('../images/backgrounds/blog-hero.svg'), linear-gradient(135deg, var(--emerald-dark) 0%, var(--charcoal) 100%);
}

[data-page="case-studies"] .page-hero,
.page-hero--case-studies {
  background-image: url('../images/backgrounds/case-studies-hero.svg'), linear-gradient(135deg, var(--emerald-dark) 0%, var(--charcoal) 100%);
}

/* ---------- Floating CTA Button ---------- */
.floating-cta {
  position: fixed;
  bottom: var(--space-8);
  right: var(--space-8);
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-6);
  background: linear-gradient(135deg, var(--emerald), var(--emerald-dark));
  color: var(--white);
  border-radius: 50px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--text-sm);
  text-decoration: none;
  box-shadow: 0 8px 32px rgba(6, 78, 59, 0.4), 0 0 0 4px rgba(6, 78, 59, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  animation: floating-pulse 3s ease-in-out infinite;
}
.floating-cta:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 12px 40px rgba(6, 78, 59, 0.5), 0 0 0 6px rgba(6, 78, 59, 0.15);
}
.floating-cta__icon {
  width: 20px;
  height: 20px;
  animation: phone-ring 2s ease-in-out infinite;
}
@keyframes floating-pulse {
  0%, 100% { box-shadow: 0 8px 32px rgba(6, 78, 59, 0.4), 0 0 0 4px rgba(6, 78, 59, 0.1); }
  50% { box-shadow: 0 8px 32px rgba(6, 78, 59, 0.4), 0 0 0 8px rgba(6, 78, 59, 0.05); }
}
@keyframes phone-ring {
  0%, 100% { transform: rotate(0deg); }
  10% { transform: rotate(15deg); }
  20% { transform: rotate(-10deg); }
  30% { transform: rotate(10deg); }
  40% { transform: rotate(-5deg); }
  50%, 100% { transform: rotate(0deg); }
}

/* ---------- Scroll Progress Bar ---------- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--emerald), var(--gold), var(--coral));
  z-index: 10000;
  transition: width 0.1s linear;
  border-radius: 0 2px 2px 0;
}

/* ---------- Section Divider ---------- */
.section-divider {
  height: 4px;
  background: linear-gradient(90deg, transparent, var(--gold), var(--emerald), var(--gold), transparent);
  border: none;
  margin: 0;
  opacity: 0.4;
}

/* Section background patterns */
.testimonials,
.section--testimonials {
  background-image: url('../images/backgrounds/section-pattern-light.svg');
  background-repeat: repeat;
  background-size: 200px;
}

.journey {
  background-image: url('../images/backgrounds/section-pattern-dark.svg'), linear-gradient(135deg, var(--ink) 0%, var(--charcoal) 100%);
  background-repeat: repeat, no-repeat;
  background-size: 200px, cover;
  background-blend-mode: overlay;
}

.section--dark {
  background-image: url('../images/backgrounds/section-pattern-dark.svg'), linear-gradient(135deg, var(--ink) 0%, var(--charcoal) 100%);
  background-repeat: repeat, no-repeat;
  background-size: 200px, cover;
  background-blend-mode: overlay;
}

.cta-section {
  background-image: url('../images/backgrounds/cta-glow.svg'), linear-gradient(135deg, var(--ink) 0%, var(--charcoal) 100%);
  background-repeat: no-repeat, no-repeat;
  background-position: center, center;
  background-size: cover, cover;
  background-blend-mode: soft-light;
}

.newsletter {
  background-image: url('../images/backgrounds/newsletter-pattern.svg'), linear-gradient(135deg, var(--emerald-dark), var(--emerald));
  background-repeat: repeat, no-repeat;
  background-size: 300px, cover;
  background-blend-mode: overlay;
}

/* -- Base section variant colours (used across inner pages) -- */
.section--ink {
  background-image: url('../images/backgrounds/section-pattern-dark.svg'),
                    linear-gradient(135deg, var(--ink) 0%, var(--charcoal) 100%);
  background-repeat: repeat, no-repeat;
  background-size: 200px, 100% 100%;
  background-blend-mode: soft-light;
  color: var(--white);
}
.section--ink h2,
.section--ink h3 { color: var(--white); }
.section--cream {
  background-color: var(--warm-white);
}

/* -- Dark-background section patterns (stats-bar / footer) -- */
.stats-bar {
  background-image: url('../images/backgrounds/section-pattern-dark.svg'),
                    linear-gradient(135deg, var(--emerald-dark), var(--emerald));
  background-repeat: repeat, no-repeat;
  background-size: 200px, 100% 100%;
  background-blend-mode: soft-light;
}
.footer {
  background-image: url('../images/backgrounds/section-pattern-dark.svg'), linear-gradient(135deg, var(--ink) 0%, var(--ink) 100%);
  background-repeat: repeat, no-repeat;
  background-size: 200px, cover;
  background-blend-mode: soft-light;
}

/* -- Light-pattern sections -- */
.section--cream,
.section--services-grid,
.section--pricing-packages,
.section--faq,
.section--testimonials-page,
.section--team,
.section--timeline,
.section--portfolio-grid,
.section--case-cards,
.section--contact-main,
.section--blog-grid {
  background-image: url('../images/backgrounds/section-pattern-light.svg');
  background-repeat: repeat;
  background-size: 200px;
  background-blend-mode: soft-light;
}

/* Ensure the existing .testimonials rule also gets blend-mode */
.testimonials,
.section--testimonials {
  background-blend-mode: soft-light;
}

/* -- CTA sections on inner pages (gradient + glow) -- */
.section--cta-dark {
  background-image: url('../images/backgrounds/cta-glow.svg'),
                    linear-gradient(135deg, var(--emerald-dark) 0%, var(--charcoal) 100%);
  background-repeat: no-repeat, no-repeat;
  background-position: center, center;
  background-size: cover, 100% 100%;
  background-blend-mode: soft-light;
}

/* -- Newsletter section on blog listing page -- */
.newsletter-section {
  background-image: url('../images/backgrounds/newsletter-pattern.svg'), linear-gradient(135deg, var(--emerald-dark), var(--emerald));
  background-repeat: repeat, no-repeat;
  background-size: 300px, cover;
  background-blend-mode: overlay;
}

/* Page hero universal fix - ensure all h1 inside page-hero are white */
.page-hero h1 {
  font-size: var(--text-5xl);
  font-weight: 700;
  color: var(--white);
  margin-bottom: var(--space-4);
  position: relative;
}

.page-hero .breadcrumb,
.page-hero .breadcrumb ol {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  margin-bottom: var(--space-6);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.4);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  position: relative;
  list-style: none;
  padding: 0;
}

.page-hero .breadcrumb a { color: var(--gold); }
.page-hero .breadcrumb li + li::before {
  content: '>';
  margin-right: var(--space-2);
  color: rgba(255,255,255,0.3);
}

.article-hero h1 {
  font-size: var(--text-5xl);
  font-weight: 700;
  color: var(--white);
  max-width: 800px;
  margin: 0 auto var(--space-6);
}

/* ---------- Print Styles ---------- */
@media print {
  .nav, .footer, .cta-section, .newsletter { display: none; }
  body { color: #000; background: #fff; }
  .hero { min-height: auto; background: none; color: #000; padding: 2rem 0; }
  .hero__title, .section-title { color: #000; }
}
