/* =========================================================
   BOOKS PUBLISHING LAB — style.css
   ========================================================= */

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

:root {
  --blue:       #224E8A;
  --blue-dark:  #0D1626;
  --blue-light: #4A8FD4;
  --blue-pale:  #EBF2FC;
  --white:      #FFFFFF;
  --gray-50:    #F5F7FA;
  --gray-100:   #E8EDF5;
  --gray-400:   #8A9BB5;
  --gray-700:   #3A4A60;
  --font-head:  'Poppins', sans-serif;
  --font-body:  'Inter', sans-serif;
  --font-serif: 'Playfair Display', serif;
  --ease-out:   cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --radius:     12px;
  --radius-lg:  20px;
  --shadow-sm:  0 2px 8px rgba(34,78,138,0.08);
  --shadow-md:  0 8px 30px rgba(34,78,138,0.12);
  --shadow-lg:  0 20px 60px rgba(34,78,138,0.18);
  --transition: 0.35s var(--ease-out);
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  color: var(--blue-dark);
  background: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ----- SCROLL REVEAL ----- */
.reveal-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
.reveal-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children */
.service-card.reveal-up:nth-child(1) { transition-delay: 0.0s; }
.service-card.reveal-up:nth-child(2) { transition-delay: 0.06s; }
.service-card.reveal-up:nth-child(3) { transition-delay: 0.12s; }
.service-card.reveal-up:nth-child(4) { transition-delay: 0.18s; }
.service-card.reveal-up:nth-child(5) { transition-delay: 0.24s; }
.service-card.reveal-up:nth-child(6) { transition-delay: 0.30s; }
.service-card.reveal-up:nth-child(7) { transition-delay: 0.36s; }
.service-card.reveal-up:nth-child(8) { transition-delay: 0.42s; }
.service-card.reveal-up:nth-child(9) { transition-delay: 0.48s; }
.service-card.reveal-up:nth-child(10) { transition-delay: 0.54s; }
.why-feature.reveal-up:nth-child(odd)  { transition-delay: 0.0s; }
.why-feature.reveal-up:nth-child(even) { transition-delay: 0.15s; }
.process-step.reveal-up:nth-child(1) { transition-delay: 0.0s; }
.process-step.reveal-up:nth-child(2) { transition-delay: 0.1s; }
.process-step.reveal-up:nth-child(3) { transition-delay: 0.2s; }
.process-step.reveal-up:nth-child(4) { transition-delay: 0.3s; }
.process-step.reveal-up:nth-child(5) { transition-delay: 0.4s; }
.process-step.reveal-up:nth-child(6) { transition-delay: 0.5s; }

/* ----- BUTTONS ----- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 8px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
  border: none;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}
.btn:disabled { opacity: 0.65; cursor: not-allowed; transform: none; }
.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.1);
  transform: translateX(-100%);
  transition: transform 0.4s var(--ease-out);
}
.btn:hover::before { transform: translateX(0); }

.btn--primary {
  background: var(--blue);
  color: var(--white);
  box-shadow: 0 4px 20px rgba(34,78,138,0.35);
}
.btn--primary:hover {
  background: #1a3d6e;
  box-shadow: 0 8px 30px rgba(34,78,138,0.5);
  transform: translateY(-2px);
}

.btn--ghost {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.4);
}
.btn--ghost:hover {
  border-color: rgba(255,255,255,0.8);
  background: rgba(255,255,255,0.08);
  transform: translateY(-2px);
}

.btn--nav {
  background: var(--blue);
  color: var(--white);
  padding: 10px 22px;
  font-size: 0.85rem;
}
.btn--nav:hover {
  background: #1a3d6e;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(34,78,138,0.4);
}

.btn--white {
  background: var(--white);
  color: var(--blue);
  font-weight: 700;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}
.btn--white:hover {
  background: var(--gray-50);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.btn--lg { padding: 15px 32px; font-size: 1rem; border-radius: 10px; }

/* ----- SECTION COMMON ----- */
.section-label {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--blue-light);
  background: rgba(74,143,212,0.1);
  padding: 5px 14px;
  border-radius: 100px;
  margin-bottom: 16px;
}
.section-label--light {
  color: rgba(255,255,255,0.9);
  background: rgba(255,255,255,0.12);
}

.section-title {
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  line-height: 1.2;
  color: var(--blue-dark);
  margin-bottom: 16px;
}
.section-title--light { color: var(--white); }

.section-sub {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--gray-700);
  max-width: 560px;
}
.section-sub--light { color: rgba(255,255,255,0.75); }

.section-header {
  text-align: center;
  margin-bottom: 60px;
}
.section-header .section-sub { margin: 0 auto; }
.section-header--light .section-title { color: var(--white); }

/* =========================================================
   NAVIGATION
   ========================================================= */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 28px 0;
  transition: background 0.4s ease, padding 0.4s ease, box-shadow 0.4s ease;
}
.nav.scrolled {
  background: rgba(13,22,38,0.97);
  backdrop-filter: blur(20px);
  padding: 18px 0;
  box-shadow: 0 4px 30px rgba(0,0,0,0.2);
}
.nav__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  gap: 40px;
}
.nav__logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.nav__logo-icon {
  width: 38px;
  height: 38px;
  background: var(--blue);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  box-shadow: 0 2px 10px rgba(34,78,138,0.4);
}
.nav__logo-icon svg { width: 100%; height: 100%; }
.nav__logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.nav__logo-primary {
  font-family: var(--font-head);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--white);
}
.nav__logo-secondary {
  font-family: var(--font-head);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  color: var(--blue-light);
}
.nav__links {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-left: auto;
}
.nav__links a {
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 500;
  color: rgba(255,255,255,0.75);
  letter-spacing: 0.02em;
  transition: color 0.2s;
  position: relative;
}
.nav__links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: var(--blue-light);
  border-radius: 2px;
  transition: width 0.3s var(--ease-out);
}
.nav__links a:hover { color: var(--white); }
.nav__links a:hover::after { width: 100%; }
.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
  margin-left: auto;
}
.nav__hamburger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all 0.3s;
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
  min-height: 100vh;
  background: var(--blue-dark);
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 130px;
}

/* background elements */
.hero__bg { position: absolute; inset: 0; pointer-events: none; }
.hero__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.25;
}
.hero__orb--1 {
  width: 600px; height: 600px;
  background: var(--blue);
  top: -200px; right: -100px;
  animation: orbFloat 8s ease-in-out infinite;
}
.hero__orb--2 {
  width: 400px; height: 400px;
  background: var(--blue-light);
  bottom: -100px; left: 10%;
  animation: orbFloat 10s ease-in-out infinite reverse;
}
.hero__orb--3 {
  width: 300px; height: 300px;
  background: #1a3d6e;
  top: 40%; left: 40%;
  animation: orbFloat 12s ease-in-out infinite 2s;
}
@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(20px, -30px) scale(1.05); }
}

#particleCanvas {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  opacity: 0.4;
}

/* floating books */
.hero__books { position: absolute; inset: 0; pointer-events: none; }
.hero__book {
  position: absolute;
  border-radius: 3px;
  animation: bookFloat linear infinite;
}
.hero__book--1 {
  width: 40px; height: 56px;
  background: linear-gradient(135deg, #224E8A, #4A8FD4);
  top: 20%; right: 8%;
  animation-duration: 6s;
  box-shadow: 0 10px 30px rgba(34,78,138,0.4);
  opacity: 0.6;
}
.hero__book--2 {
  width: 32px; height: 44px;
  background: linear-gradient(135deg, #1a3d6e, #224E8A);
  top: 60%; right: 15%;
  animation-duration: 8s;
  animation-delay: -3s;
  opacity: 0.5;
}
.hero__book--3 {
  width: 24px; height: 34px;
  background: linear-gradient(135deg, #4A8FD4, #80b8e8);
  top: 35%; right: 25%;
  animation-duration: 7s;
  animation-delay: -1.5s;
  opacity: 0.4;
}
.book-spine {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 5px;
  background: rgba(0,0,0,0.3);
  border-radius: 2px 0 0 2px;
}
@keyframes bookFloat {
  0%, 100% { transform: translateY(0) rotate(-5deg); }
  50% { transform: translateY(-20px) rotate(5deg); }
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 32px;
  width: 100%;
}
.hero__eyebrow {
  font-family: var(--font-head);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blue-light);
  margin-bottom: 20px;
  transition-delay: 0.1s;
}
.hero__headline {
  font-family: var(--font-head);
  font-size: clamp(2.4rem, 6vw, 4.5rem);
  font-weight: 800;
  line-height: 1.1;
  color: var(--white);
  margin-bottom: 24px;
  max-width: 700px;
  transition-delay: 0.2s;
}
.hero__headline em {
  font-style: normal;
  font-family: var(--font-serif);
  font-style: italic;
  background: linear-gradient(135deg, #4A8FD4, #80b8e8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero__sub {
  font-size: 1.1rem;
  line-height: 1.75;
  color: rgba(255,255,255,0.65);
  max-width: 520px;
  margin-bottom: 36px;
  transition-delay: 0.3s;
}
.hero__ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 48px;
  transition-delay: 0.4s;
}
.hero__trust {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
  transition-delay: 0.5s;
}
.hero__trust-item {
  display: flex;
  flex-direction: column;
}
.hero__trust-num {
  font-family: var(--font-head);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--white);
}
.hero__trust-item span:last-child {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.03em;
}
.hero__trust-divider {
  width: 1px; height: 36px;
  background: rgba(255,255,255,0.15);
}

.hero__scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.4);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.hero__scroll-line {
  width: 1px; height: 40px;
  background: rgba(255,255,255,0.2);
  position: relative;
  overflow: hidden;
}
.hero__scroll-line::after {
  content: '';
  position: absolute;
  top: -40px; left: 0;
  width: 1px; height: 40px;
  background: rgba(255,255,255,0.6);
  animation: scrollLine 2s ease-in-out infinite;
}
@keyframes scrollLine {
  0% { top: -40px; }
  100% { top: 40px; }
}

/* =========================================================
   SERVICES
   ========================================================= */
.services {
  padding: 100px 0;
  background: var(--gray-50);
  position: relative;
}
.services::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--blue-light), transparent);
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 20px;
}

.service-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--gray-100);
  cursor: pointer;
  transition: all 0.4s var(--ease-out);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.service-card:hover {
  border-color: rgba(34,78,138,0.2);
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.service-card:hover .service-card__glow {
  opacity: 1;
  transform: scale(1);
}
.service-card:hover .service-card__arrow {
  transform: translateX(4px);
  color: var(--blue);
}
.service-card:hover .service-card__icon {
  background: var(--blue);
  color: var(--white);
}

.service-card__icon {
  width: 52px; height: 52px;
  background: var(--blue-pale);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
  transition: all 0.3s;
  flex-shrink: 0;
}
.service-card__icon svg { width: 28px; height: 28px; }
.service-card__content h3 {
  font-family: var(--font-head);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--blue-dark);
  margin-bottom: 6px;
}
.service-card__content p {
  font-size: 0.88rem;
  line-height: 1.65;
  color: var(--gray-700);
}
.service-card__arrow {
  margin-top: auto;
  font-size: 1.2rem;
  color: var(--gray-400);
  transition: all 0.3s;
  align-self: flex-end;
}
.service-card__glow {
  position: absolute;
  bottom: -60px; right: -60px;
  width: 180px; height: 180px;
  background: radial-gradient(circle, rgba(34,78,138,0.08) 0%, transparent 70%);
  border-radius: 50%;
  opacity: 0;
  transform: scale(0.5);
  transition: all 0.5s var(--ease-out);
  pointer-events: none;
}

/* =========================================================
   WHY CHOOSE US
   ========================================================= */
.why-us {
  padding: 100px 0;
  background: var(--blue-dark);
  position: relative;
  overflow: hidden;
}
.why-us__bg { position: absolute; inset: 0; pointer-events: none; }
.why-us__shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.08;
}
.why-us__shape--1 {
  width: 700px; height: 700px;
  background: var(--blue);
  top: -200px; right: -200px;
}
.why-us__shape--2 {
  width: 500px; height: 500px;
  background: var(--blue-light);
  bottom: -200px; left: -100px;
}

.why-us__features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}
.why-feature {
  padding: 36px 40px;
  position: relative;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 20px;
  align-items: start;
  transition: background 0.3s;
}
.why-feature:hover {
  background: rgba(255,255,255,0.03);
}
.why-feature:nth-child(odd) {
  border-right: 1px solid rgba(255,255,255,0.06);
}
.why-feature__num {
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 800;
  color: rgba(74,143,212,0.3);
  line-height: 1;
  padding-top: 4px;
}
.why-feature__body h3 {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 8px;
}
.why-feature__body p {
  font-size: 0.88rem;
  line-height: 1.65;
  color: rgba(255,255,255,0.55);
}
.why-feature__line {
  display: none;
}

/* =========================================================
   PROCESS
   ========================================================= */
.process {
  padding: 100px 0;
  background: var(--white);
  position: relative;
  overflow: hidden;
}

.process__timeline {
  position: relative;
  padding: 20px 0;
  max-width: 800px;
  margin: 0 auto;
}
.process__line {
  position: absolute;
  left: 50%;
  top: 0; bottom: 0;
  width: 2px;
  background: var(--gray-100);
  transform: translateX(-50%);
}
.process__line-fill {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 0%;
  background: linear-gradient(to bottom, var(--blue-light), var(--blue));
  border-radius: 2px;
  transition: height 0.1s linear;
}

.process-step {
  display: flex;
  align-items: flex-start;
  gap: 40px;
  margin-bottom: 48px;
  position: relative;
  justify-content: flex-start;
}
.process-step--right {
  justify-content: flex-end;
  flex-direction: row-reverse;
}
.process-step__node {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 44px; height: 44px;
  background: var(--white);
  border: 3px solid var(--blue);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: all 0.3s;
  flex-shrink: 0;
}
.process-step__node span {
  font-family: var(--font-head);
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--blue);
}
.process-step.is-visible .process-step__node {
  background: var(--blue);
  box-shadow: 0 0 0 8px rgba(34,78,138,0.12);
}
.process-step.is-visible .process-step__node span { color: var(--white); }

.process-step__card {
  width: calc(50% - 50px);
  background: var(--gray-50);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius);
  padding: 28px;
  transition: all 0.3s;
}
.process-step:hover .process-step__card {
  border-color: rgba(34,78,138,0.2);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.process-step__icon {
  font-size: 1.8rem;
  margin-bottom: 10px;
}
.process-step__card h3 {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  color: var(--blue-dark);
  margin-bottom: 8px;
}
.process-step__card p {
  font-size: 0.86rem;
  line-height: 1.65;
  color: var(--gray-700);
}

/* =========================================================
   PORTFOLIO
   ========================================================= */
.portfolio {
  padding: 100px 0;
  background: #0a1220;
  position: relative;
  overflow: hidden;
}
.portfolio__bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 50%, rgba(34,78,138,0.15) 0%, transparent 70%);
}

.portfolio__carousel {
  position: relative;
  overflow: hidden;
}
.portfolio__track {
  display: flex;
  gap: 30px;
  transition: transform 0.6s var(--ease-out);
}

.book-item {
  flex-shrink: 0;
  width: 170px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.book-3d {
  position: relative;
  width: 130px;
  height: 190px;
  transform-style: preserve-3d;
  perspective: 800px;
  transition: transform 0.5s var(--ease-out);
}
.book-3d:hover {
  transform: rotateY(-20deg) rotateX(5deg) scale(1.06);
}
.book-3d__cover {
  position: absolute;
  inset: 0;
  border-radius: 2px 8px 8px 2px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 16px 14px;
  box-shadow: 6px 6px 20px rgba(0,0,0,0.5), inset 0 0 40px rgba(255,255,255,0.05);
  overflow: hidden;
}
.book-3d__cover::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 100%;
  background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, transparent 50%);
  pointer-events: none;
}
.book-3d__title {
  font-family: var(--font-head);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.3;
  margin-bottom: 4px;
}
.book-3d__author {
  font-size: 0.62rem;
  color: rgba(255,255,255,0.65);
}
.book-3d__deco {
  position: absolute;
  top: 16px;
  right: 14px;
  font-size: 1.4rem;
  color: rgba(255,255,255,0.2);
}
.book-3d__spine {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 12px;
  border-radius: 2px 0 0 2px;
  box-shadow: inset -2px 0 4px rgba(0,0,0,0.3);
}
.book-3d__pages {
  position: absolute;
  right: -4px; top: 4px; bottom: 4px;
  width: 4px;
  background: repeating-linear-gradient(
    to bottom,
    #e8e0d0 0px,
    #e8e0d0 2px,
    #d4cbbb 2px,
    #d4cbbb 3px
  );
  border-radius: 0 2px 2px 0;
  box-shadow: 1px 0 4px rgba(0,0,0,0.2);
}

.book-item__meta {
  text-align: center;
}
.book-item__meta strong {
  display: block;
  font-family: var(--font-head);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 3px;
}
.book-item__meta span {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.4);
  letter-spacing: 0.05em;
}

.portfolio__controls {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 40px;
}
.portfolio__btn {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  color: var(--white);
  font-size: 1.1rem;
  border: 1px solid rgba(255,255,255,0.15);
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.portfolio__btn:hover {
  background: var(--blue);
  border-color: var(--blue);
  transform: scale(1.1);
}

/* =========================================================
   TESTIMONIALS
   ========================================================= */
.testimonials {
  padding: 100px 0;
  background: var(--gray-50);
  overflow: hidden;
}
.testimonials__carousel { overflow: hidden; position: relative; }
.testimonials__track {
  display: flex;
  gap: 24px;
  transition: transform 0.6s var(--ease-out);
}

.testi-card {
  flex-shrink: 0;
  width: 100%;
  max-width: 680px;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--gray-100);
  transition: transform 0.3s, box-shadow 0.3s;
}
.testi-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.testi-card__stars {
  color: #F4B942;
  font-size: 1rem;
  letter-spacing: 2px;
  margin-bottom: 16px;
}
.testi-card__quote {
  font-size: 1.02rem;
  line-height: 1.75;
  color: var(--gray-700);
  font-style: italic;
  margin-bottom: 24px;
  position: relative;
}
.testi-card__quote::before {
  content: '"';
  position: absolute;
  top: -20px; left: -8px;
  font-family: var(--font-serif);
  font-size: 4rem;
  color: var(--blue-pale);
  line-height: 1;
  z-index: 0;
}
.testi-card__author {
  display: flex;
  align-items: center;
  gap: 14px;
}
.testi-card__avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--blue);
  color: var(--white);
  font-family: var(--font-head);
  font-size: 0.8rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.testi-card__author strong {
  display: block;
  font-family: var(--font-head);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--blue-dark);
}
.testi-card__author span {
  font-size: 0.78rem;
  color: var(--gray-400);
}

.testimonials__dots {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 32px;
}
.testi-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--gray-100);
  cursor: pointer;
  border: none;
  transition: all 0.3s;
}
.testi-dot.active {
  background: var(--blue);
  width: 24px;
  border-radius: 4px;
}

/* =========================================================
   STATS
   ========================================================= */
.stats {
  padding: 80px 0;
  background: var(--blue-dark);
  position: relative;
  overflow: hidden;
}
.stats__bg { position: absolute; inset: 0; pointer-events: none; }
.stats__orb {
  position: absolute;
  left: 50%; top: 50%;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(34,78,138,0.4) 0%, transparent 70%);
  transform: translate(-50%, -50%);
  border-radius: 50%;
  animation: statsPulse 4s ease-in-out infinite;
}
@keyframes statsPulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.5; }
  50% { transform: translate(-50%, -50%) scale(1.1); opacity: 0.8; }
}

.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  position: relative;
  z-index: 2;
}
.stat-item {
  text-align: center;
  display: flex;
  align-items: baseline;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.stat-item__num {
  font-family: var(--font-head);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1;
}
.stat-item__suffix {
  font-family: var(--font-head);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 900;
  color: var(--blue-light);
  line-height: 1;
  margin-top: -4px;
}
.stat-item { position: relative; }
.stat-item__num, .stat-item__suffix {
  display: inline-block;
}
/* Override to show them on same line */
.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.stat-item__row {
  display: flex;
  align-items: baseline;
}
.stat-item__label {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.04em;
  margin-top: 4px;
}

/* =========================================================
   ABOUT
   ========================================================= */
.about {
  padding: 100px 0;
  background: var(--white);
  overflow: hidden;
}
.about__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.about__visual {
  position: relative;
  display: flex;
  justify-content: center;
}
.about__visual-main {
  position: relative;
  width: 340px;
  height: 340px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.about__logo-large {
  width: 280px; height: 280px;
  animation: logoSpin 20s linear infinite;
}
@keyframes logoSpin {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(2deg); }
  75% { transform: rotate(-2deg); }
}
.about__tag {
  position: absolute;
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: 100px;
  padding: 8px 16px;
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--blue);
  box-shadow: var(--shadow-md);
  animation: tagFloat 4s ease-in-out infinite;
}
.about__tag--1 { top: 20px; left: 0; animation-delay: 0s; }
.about__tag--2 { bottom: 60px; left: -10px; animation-delay: 1.3s; }
.about__tag--3 { top: 60px; right: -10px; animation-delay: 2.6s; }
@keyframes tagFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.about__content { padding-right: 20px; }
.about__content p {
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--gray-700);
  margin-bottom: 16px;
}
.about__badges {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}
.about__badge {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--blue-pale);
  border-radius: 8px;
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--blue);
}

/* =========================================================
   FAQ
   ========================================================= */
.faq {
  padding: 100px 0;
  background: var(--gray-50);
}
.faq__list {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.faq-item {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--gray-100);
  overflow: hidden;
  transition: box-shadow 0.3s;
}
.faq-item:hover { box-shadow: var(--shadow-sm); }
.faq-item.is-open { border-color: rgba(34,78,138,0.2); box-shadow: var(--shadow-md); }

.faq-item__question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 28px;
  gap: 16px;
  text-align: left;
  font-family: var(--font-head);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--blue-dark);
  transition: color 0.2s;
}
.faq-item.is-open .faq-item__question { color: var(--blue); }
.faq-item__icon {
  width: 20px; height: 20px;
  flex-shrink: 0;
  transition: transform 0.35s var(--ease-out);
  color: var(--gray-400);
}
.faq-item.is-open .faq-item__icon { transform: rotate(180deg); color: var(--blue); }

.faq-item__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.45s var(--ease-in-out);
}
.faq-item.is-open .faq-item__answer { max-height: 300px; }
.faq-item__answer p {
  padding: 0 28px 22px;
  font-size: 0.9rem;
  line-height: 1.75;
  color: var(--gray-700);
}

/* =========================================================
   CTA BANNER
   ========================================================= */
.cta-banner {
  padding: 100px 0;
  background: linear-gradient(135deg, #0D1626 0%, #1a3266 40%, #224E8A 100%);
  position: relative;
  overflow: hidden;
  text-align: center;
}
#ctaCanvas {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
}
.cta-banner__content {
  position: relative;
  z-index: 2;
  max-width: 660px;
  margin: 0 auto;
  padding: 0 32px;
}
.cta-banner__icon {
  margin: 0 auto 24px;
  width: 70px; height: 70px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,0.2);
}
.cta-banner__icon svg { width: 40px; height: 40px; }

.cta-banner__content h2 {
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 16px;
}
.cta-banner__content p {
  font-size: 1rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.65);
  margin-bottom: 36px;
}
.cta-banner__form {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.cta-banner__input {
  flex: 1;
  min-width: 240px;
  max-width: 320px;
  padding: 15px 20px;
  border-radius: 10px;
  border: 1.5px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.08);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.9rem;
  transition: border-color 0.3s;
  backdrop-filter: blur(10px);
}
.cta-banner__input::placeholder { color: rgba(255,255,255,0.4); }
.cta-banner__input:focus {
  outline: none;
  border-color: rgba(255,255,255,0.6);
}
.cta-banner__note {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.4);
  letter-spacing: 0.03em;
}

/* =========================================================
   FOOTER
   ========================================================= */
.footer { background: #060d16; }
.footer__top { padding: 70px 0 50px; }
.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1.5fr;
  gap: 48px;
}

.footer__logo { margin-bottom: 16px; }
.footer__brand-desc {
  font-size: 0.85rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.4);
  margin-bottom: 24px;
  max-width: 280px;
}
.footer__socials { display: flex; gap: 12px; }
.footer__social {
  width: 36px; height: 36px;
  border-radius: 8px;
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}
.footer__social svg { width: 15px; height: 15px; }
.footer__social:hover {
  background: var(--blue);
  color: var(--white);
  transform: translateY(-2px);
}

.footer__col h4 {
  font-family: var(--font-head);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.footer__col ul { display: flex; flex-direction: column; gap: 10px; }
.footer__col ul li a {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.4);
  transition: color 0.2s;
}
.footer__col ul li a:hover { color: rgba(255,255,255,0.9); }

.footer__col--newsletter p {
  font-size: 0.83rem;
  line-height: 1.65;
  color: rgba(255,255,255,0.4);
  margin-bottom: 14px;
}
.footer__newsletter {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}
.footer__newsletter input {
  flex: 1;
  padding: 10px 14px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  color: var(--white);
  font-size: 0.82rem;
  font-family: var(--font-body);
  transition: border-color 0.3s;
}
.footer__newsletter input::placeholder { color: rgba(255,255,255,0.25); }
.footer__newsletter input:focus { outline: none; border-color: var(--blue-light); }
.footer__newsletter button {
  width: 38px; height: 38px;
  background: var(--blue);
  color: var(--white);
  border-radius: 8px;
  font-size: 1rem;
  transition: all 0.3s;
  flex-shrink: 0;
}
.footer__newsletter button:hover { background: var(--blue-light); }

.footer__contact {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.footer__contact a {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.4);
  transition: color 0.2s;
}
.footer__contact a:hover { color: var(--white); }

.footer__bottom {
  padding: 20px 0;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.footer__bottom .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.footer__bottom p {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.3);
}
.footer__legal {
  display: flex;
  gap: 24px;
}
.footer__legal a {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.3);
  transition: color 0.2s;
}
.footer__legal a:hover { color: rgba(255,255,255,0.7); }

/* =========================================================
   STAT COUNTER LAYOUT FIX
   ========================================================= */
.stat-item {
  position: relative;
  z-index: 2;
  text-align: center;
}
.stat-item__counter {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 2px;
}
.stat-item__num {
  font-family: var(--font-head);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.stat-item__suffix {
  font-family: var(--font-head);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 900;
  color: var(--blue-light);
  line-height: 1;
}
.stat-item__label {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
  margin-top: 6px;
  letter-spacing: 0.04em;
}

/* =========================================================
   REAL BOOK COVERS (portfolio)
   ========================================================= */
/* Carousel cover (homepage, dark bg) — keeps .book-item wrapper */
.book-item__cover {
  width: 100%;
  height: 210px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.book-item__cover img {
  max-width: 100%;
  max-height: 210px;
  width: auto;
  border-radius: 3px;
  filter: drop-shadow(0 16px 28px rgba(0,0,0,0.55));
  transition: transform 0.45s var(--ease-out);
}
.book-item:hover .book-item__cover img { transform: translateY(-8px) scale(1.04); }

/* Portfolio page grid */
.cover-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 40px 28px;
}
.cover-card { display: flex; flex-direction: column; align-items: center; text-align: center; }
.cover-card__img {
  height: 300px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  margin-bottom: 16px;
}
.cover-card__img img {
  max-height: 300px;
  max-width: 100%;
  width: auto;
  border-radius: 4px;
  filter: drop-shadow(0 18px 34px rgba(13,22,38,0.28));
  transition: transform 0.45s var(--ease-out);
}
.cover-card:hover .cover-card__img img { transform: translateY(-8px) scale(1.03); }
.cover-card__title {
  font-family: var(--font-head);
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--blue-dark);
  line-height: 1.3;
  margin-bottom: 4px;
}
.cover-card__genre {
  font-size: 0.76rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--blue-light);
  font-weight: 600;
}
@media (max-width: 600px) {
  .cover-grid { grid-template-columns: repeat(2, 1fr); gap: 28px 16px; }
  .cover-card__img, .cover-card__img img { height: 220px; max-height: 220px; }
}

/* =========================================================
   BRAND LOGO IMAGES
   ========================================================= */
.nav__logo-img {
  height: 60px;
  width: auto;
  display: block;
  transition: height 0.4s ease;
}
.nav.scrolled .nav__logo-img { height: 48px; }
.footer__logo-img {
  height: 50px;
  width: auto;
  display: block;
  margin-bottom: 22px;
}
.about__logo-img {
  width: 100%;
  max-width: 360px;
  height: auto;
  display: block;
}
/* static (no spin) when the about visual holds the real lockup */
.about__logo-large--img { animation: none; width: auto; height: auto; }
.cta-banner__icon img { width: 42px; height: 42px; display: block; }

@media (max-width: 768px) {
  .nav__logo-img { height: 46px; }
  .footer__logo-img { height: 44px; }
}

/* =========================================================
   INNER PAGES — shared sub-page styles
   ========================================================= */

/* Give the nav a permanent solid backing on inner pages so the
   white logo/links stay readable even before scrolling. */
.nav--solid {
  background: rgba(13,22,38,0.97);
  backdrop-filter: blur(20px);
  box-shadow: 0 4px 30px rgba(0,0,0,0.2);
}

/* ----- PAGE HERO (banner under the fixed nav) ----- */
.page-hero {
  position: relative;
  background: linear-gradient(135deg, #0D1626 0%, #1a3266 55%, #224E8A 100%);
  padding: 190px 0 70px;
  overflow: hidden;
  text-align: center;
}
.page-hero__bg { position: absolute; inset: 0; pointer-events: none; }
.page-hero__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.3;
}
.page-hero__orb--1 { width: 420px; height: 420px; background: var(--blue); top: -160px; right: -80px; }
.page-hero__orb--2 { width: 320px; height: 320px; background: var(--blue-light); bottom: -140px; left: -60px; }
.page-hero__inner { position: relative; z-index: 2; max-width: 760px; margin: 0 auto; padding: 0 32px; }
.page-hero h1 {
  font-family: var(--font-head);
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--white);
  margin: 14px 0 18px;
}
.page-hero h1 em {
  font-family: var(--font-serif);
  font-style: italic;
  background: linear-gradient(135deg, #4A8FD4, #80b8e8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.page-hero__sub {
  font-size: 1.08rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.7);
  max-width: 600px;
  margin: 0 auto;
}
.page-hero__ctas {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 32px;
}

/* ----- BREADCRUMB ----- */
.breadcrumb {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.04em;
}
.breadcrumb a { color: rgba(255,255,255,0.6); transition: color 0.2s; }
.breadcrumb a:hover { color: var(--white); }
.breadcrumb span[aria-current] { color: var(--blue-light); }
.breadcrumb .sep { color: rgba(255,255,255,0.3); }

/* ----- GENERIC PAGE SECTION ----- */
.page-section { padding: 90px 0; }
.page-section--alt { background: var(--gray-50); }
.page-section--dark { background: var(--blue-dark); }

/* ----- PROSE (long-form / legal / about copy) ----- */
.prose { max-width: 820px; margin: 0 auto; }
.prose > p { font-size: 1rem; line-height: 1.85; color: var(--gray-700); margin-bottom: 18px; }
.prose h2 {
  font-family: var(--font-head);
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  font-weight: 800;
  color: var(--blue-dark);
  margin: 40px 0 14px;
}
.prose h3 {
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--blue-dark);
  margin: 28px 0 10px;
}
.prose ul { margin: 0 0 18px; padding-left: 0; }
.prose ul li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 12px;
  font-size: 0.98rem;
  line-height: 1.75;
  color: var(--gray-700);
}
.prose ul li::before {
  content: '';
  position: absolute;
  left: 0; top: 9px;
  width: 14px; height: 14px;
  background: var(--blue-pale);
  border: 2px solid var(--blue-light);
  border-radius: 50%;
}
.prose a { color: var(--blue); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.prose strong { color: var(--blue-dark); }
.prose .updated {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--blue);
  background: var(--blue-pale);
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 28px;
}

/* ----- SERVICE DETAIL LAYOUT (content + sticky CTA card) ----- */
.detail-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 56px;
  align-items: start;
}
.detail-main h2 {
  font-family: var(--font-head);
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  font-weight: 800;
  color: var(--blue-dark);
  margin: 38px 0 14px;
}
.detail-main h2:first-child { margin-top: 0; }
.detail-main p { font-size: 1rem; line-height: 1.85; color: var(--gray-700); margin-bottom: 18px; }

.check-list { display: flex; flex-direction: column; gap: 14px; margin: 8px 0 24px; }
.check-list li {
  position: relative;
  padding-left: 36px;
  font-size: 0.97rem;
  line-height: 1.6;
  color: var(--gray-700);
}
.check-list li strong { color: var(--blue-dark); }
.check-list li::before {
  content: '';
  position: absolute;
  left: 0; top: 1px;
  width: 22px; height: 22px;
  border-radius: 6px;
  background: var(--blue-pale);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none'%3E%3Cpath d='M5 10l3 3 7-7' stroke='%23224E8A' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 16px;
}

/* sidebar */
.detail-sidebar { position: sticky; top: 100px; display: flex; flex-direction: column; gap: 20px; }
.detail-card {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-md);
}
.detail-card--accent {
  background: linear-gradient(135deg, #0D1626 0%, #224E8A 100%);
  border: none;
  color: var(--white);
}
.detail-card__icon {
  width: 52px; height: 52px;
  background: var(--blue-pale);
  color: var(--blue);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.detail-card__icon svg { width: 28px; height: 28px; }
.detail-card h3 {
  font-family: var(--font-head);
  font-size: 1.1rem; font-weight: 700;
  margin-bottom: 8px;
  color: inherit;
}
.detail-card--accent h3 { color: var(--white); }
.detail-card p { font-size: 0.9rem; line-height: 1.65; color: var(--gray-700); margin-bottom: 18px; }
.detail-card--accent p { color: rgba(255,255,255,0.75); }
.detail-card .btn { width: 100%; justify-content: center; }
.detail-card__list { display: flex; flex-direction: column; gap: 12px; }
.detail-card__list li {
  display: flex; justify-content: space-between;
  font-size: 0.88rem; color: var(--gray-700);
  padding-bottom: 10px; border-bottom: 1px solid var(--gray-100);
}
.detail-card__list li:last-child { border-bottom: none; padding-bottom: 0; }
.detail-card__list li span:last-child { font-family: var(--font-head); font-weight: 700; color: var(--blue); }

/* ----- FEATURE / STEP GRID (reused on service + company pages) ----- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.feature-box {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: all 0.35s var(--ease-out);
}
.feature-box:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: rgba(34,78,138,0.2); }
.feature-box__num {
  font-family: var(--font-head);
  font-size: 1.6rem; font-weight: 800;
  color: rgba(34,78,138,0.25);
  margin-bottom: 10px;
}
.feature-box h3 { font-family: var(--font-head); font-size: 1.05rem; font-weight: 700; color: var(--blue-dark); margin-bottom: 8px; }
.feature-box p { font-size: 0.9rem; line-height: 1.65; color: var(--gray-700); }

/* ----- RELATED SERVICES STRIP ----- */
.related-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.related-card {
  display: flex; align-items: center; gap: 12px;
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius);
  padding: 18px 20px;
  font-family: var(--font-head);
  font-weight: 600; font-size: 0.92rem;
  color: var(--blue-dark);
  transition: all 0.3s;
}
.related-card:hover { border-color: rgba(34,78,138,0.25); box-shadow: var(--shadow-md); transform: translateY(-3px); color: var(--blue); }
.related-card span:last-child { margin-left: auto; color: var(--gray-400); transition: transform 0.3s; }
.related-card:hover span:last-child { transform: translateX(4px); color: var(--blue); }

/* ----- CONTACT PAGE ----- */
.contact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.contact-form { display: flex; flex-direction: column; gap: 16px; }
.contact-form label { font-family: var(--font-head); font-size: 0.82rem; font-weight: 600; color: var(--blue-dark); margin-bottom: 6px; display: block; }
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--gray-100);
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 0.92rem;
  color: var(--blue-dark);
  background: var(--white);
  transition: border-color 0.25s;
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus { outline: none; border-color: var(--blue-light); }
.contact-form textarea { resize: vertical; min-height: 130px; }
.contact-info { display: flex; flex-direction: column; gap: 18px; }
.contact-info__item {
  display: flex; gap: 16px; align-items: flex-start;
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius);
  padding: 20px 22px;
}
.contact-info__icon {
  width: 44px; height: 44px; flex-shrink: 0;
  background: var(--blue-pale); color: var(--blue);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
}
.contact-info__icon svg { width: 22px; height: 22px; }
.contact-info__item h3 { font-family: var(--font-head); font-size: 0.95rem; font-weight: 700; color: var(--blue-dark); margin-bottom: 4px; }
.contact-info__item p, .contact-info__item a { font-size: 0.9rem; color: var(--gray-700); line-height: 1.6; }
.contact-info__item a:hover { color: var(--blue); }

/* ----- STAT STRIP (compact, reused on inner pages) ----- */
.mini-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; text-align: center; }
.mini-stat__num { font-family: var(--font-head); font-size: clamp(2rem, 4vw, 3rem); font-weight: 900; color: var(--white); line-height: 1; }
.mini-stat__label { font-size: 0.82rem; color: rgba(255,255,255,0.55); margin-top: 6px; letter-spacing: 0.04em; }

/* ----- INNER PAGE RESPONSIVE ----- */
@media (max-width: 900px) {
  .detail-layout { grid-template-columns: 1fr; gap: 40px; }
  .detail-sidebar { position: static; }
  .contact-layout { grid-template-columns: 1fr; gap: 40px; }
  .mini-stats { grid-template-columns: repeat(2, 1fr); gap: 28px; }
}
@media (max-width: 480px) {
  .page-hero { padding: 150px 0 56px; }
  .page-section { padding: 64px 0; }
}

/* =========================================================
   REDUCED MOTION
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1100px) {
  .footer__grid {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 36px;
  }
  .footer__brand { grid-column: 1 / -1; }
  .footer__col--newsletter { grid-column: 1 / -1; }
  .footer__newsletter { max-width: 360px; }
}

@media (max-width: 900px) {
  .why-us__features { grid-template-columns: 1fr; }
  .why-feature:nth-child(odd) { border-right: none; }
  .about__inner { grid-template-columns: 1fr; gap: 48px; }
  .about__visual { order: -1; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .process__timeline { max-width: 100%; padding: 0; }
  .process__line { display: none; }
  .process-step,
  .process-step--right {
    flex-direction: column;
    justify-content: flex-start;
  }
  .process-step__node {
    position: relative;
    left: auto;
    transform: none;
  }
  .process-step__card { width: 100%; }
}

/* Switch to the hamburger menu early enough that the larger logo
   never crowds the inline links on tablets. */
@media (max-width: 960px) {
  .nav__links { display: none; }
  .nav__links.is-open {
    display: flex;
    flex-direction: column;
    position: fixed;
    inset: 0;
    background: rgba(13,22,38,0.98);
    align-items: center;
    justify-content: center;
    gap: 36px;
    z-index: 999;
  }
  .nav__links.is-open a { font-size: 1.4rem; }
  .btn--nav { display: none; }
  .nav__hamburger { display: flex; }
  .nav__hamburger.is-open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
  .nav__hamburger.is-open span:nth-child(2) { opacity: 0; }
  .nav__hamburger.is-open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }
}

@media (max-width: 768px) {
  .hero__content { padding: 40px 24px; }
  .hero__ctas { flex-direction: column; width: fit-content; }
  .hero__books { display: none; }

  .services__grid { grid-template-columns: 1fr; }
  .portfolio__track { gap: 20px; }
  .book-item { width: 130px; }
  .book-3d { width: 100px; height: 150px; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
  .footer__col--newsletter { grid-column: 1 / -1; }
  .cta-banner__form { flex-direction: column; align-items: center; }
  .cta-banner__input { max-width: 100%; width: 100%; }
  .testi-card { padding: 28px 24px; }
}

@media (max-width: 480px) {
  .container { padding: 0 20px; }
  .stats__grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .hero__trust { gap: 14px 18px; }
  .hero__trust-divider { display: none; }
  .hero__headline { font-size: clamp(1.9rem, 9vw, 2.6rem); }
  .hero__sub { font-size: 1rem; }
  .footer__grid { grid-template-columns: 1fr; }
  .footer__bottom .container { flex-direction: column; align-items: flex-start; }
  .section-header { margin-bottom: 40px; }
  .section-title { font-size: clamp(1.55rem, 7vw, 2rem); }
  .services { padding: 70px 0; }
  .why-us { padding: 70px 0; }
  .process { padding: 70px 0; }
  .portfolio { padding: 70px 0; }
  .testimonials { padding: 70px 0; }
  .about { padding: 70px 0; }
  .faq { padding: 70px 0; }
  .cta-banner { padding: 70px 0; }
  .why-feature { padding: 28px 22px; grid-template-columns: 54px 1fr; gap: 14px; }
  .faq-item__question { padding: 18px 18px; font-size: 0.9rem; }
  .faq-item__answer p { padding: 0 18px 18px; }
  .testi-card__quote { font-size: 0.95rem; }
  .page-hero__inner { padding: 0 20px; }
}

/* =========================================================
   LEAD FORMS — honeypot, status messages, optional hints
   ========================================================= */

/* Honeypot: hidden from humans, visible to bots */
.lead-hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
}

/* Inline "(optional)" / hint text next to a label */
.field-opt {
  font-weight: 500;
  font-size: 0.72rem;
  color: var(--blue-light);
  letter-spacing: 0.01em;
}

/* Status / feedback message shown after a submission */
.lead-status {
  font-size: 0.85rem;
  font-weight: 500;
  line-height: 1.5;
  margin-top: 12px;
  min-height: 1em;
  transition: color var(--transition);
}
.lead-status:empty { display: none; }
.lead-status--ok { color: #1f9d5b; }
.lead-status--err { color: #d9544f; }

/* On dark sections (CTA banner, footer) keep messages readable */
.cta-banner .lead-status,
.footer .lead-status {
  color: rgba(255,255,255,0.85);
}
.cta-banner .lead-status--ok,
.footer .lead-status--ok { color: #8ff0bd; }
.cta-banner .lead-status--err,
.footer .lead-status--err { color: #ffb4b1; }

.footer .lead-status { margin-top: 8px; max-width: 360px; }

/* Invalid field highlight set by JS validation */
.contact-form input.is-invalid,
.contact-form textarea.is-invalid,
.cta-banner__input.is-invalid,
.footer__newsletter input.is-invalid {
  border-color: #d9544f;
}

.contact-form__hint {
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--gray-700);
  background: var(--blue-pale);
  border-left: 3px solid var(--blue-light);
  padding: 10px 14px;
  border-radius: 8px;
  margin: -4px 0 4px;
}
.contact-form__hint strong { color: var(--blue-dark); }

/* =========================================================
   HERO QUICK-QUOTE FORM (homepage)
   ========================================================= */
.hero__ctas { margin-bottom: 30px; }   /* tighten to make room for the form */

.hero__form {
  position: relative;
  z-index: 2;
  max-width: 640px;
  margin: 0 0 40px;
  padding: 22px 24px 18px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.25);
  transition-delay: 0.45s;
}
.hero__form-title {
  display: block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--white);
  margin-bottom: 14px;
  letter-spacing: 0.01em;
}
.hero__form-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.hero__form-row input {
  flex: 1 1 150px;
  min-width: 0;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(13,22,38,0.4);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.9rem;
  transition: border-color var(--transition), background var(--transition);
}
.hero__form-row input::placeholder { color: rgba(255,255,255,0.45); }
.hero__form-row input:focus {
  outline: none;
  border-color: var(--blue-light);
  background: rgba(13,22,38,0.6);
}
.hero__form-row input.is-invalid { border-color: #ffb4b1; }
.hero__form-row .btn {
  flex: 0 0 auto;
  white-space: nowrap;
  justify-content: center;
}
.hero__form-note {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.55);
  margin-top: 12px;
}
.hero__form-note strong { color: rgba(255,255,255,0.8); }

@media (max-width: 560px) {
  .hero__form-row { flex-direction: column; }
  .hero__form-row input,
  .hero__form-row .btn { flex: 1 1 auto; width: 100%; }
}

/* =========================================================
   FLOATING "FREE QUOTE" BUTTON + POPUP MODAL (all pages)
   ========================================================= */
.floating-quote {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 1500;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 22px;
  border-radius: 100px;
  background: var(--blue);
  color: var(--white);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: 0 8px 30px rgba(34,78,138,0.45);
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
  animation: fqPulse 2.6s ease-in-out infinite;
}
.floating-quote svg { width: 20px; height: 20px; }
.floating-quote:hover {
  background: #1a3d6e;
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(34,78,138,0.6);
}
@keyframes fqPulse {
  0%, 100% { box-shadow: 0 8px 30px rgba(34,78,138,0.45); }
  50% { box-shadow: 0 8px 30px rgba(34,78,138,0.45), 0 0 0 12px rgba(74,143,212,0.0); }
}

/* Modal */
.quote-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.quote-modal[hidden] { display: none; }
.quote-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(13,22,38,0.7);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  animation: fqFade 0.25s ease;
}
.quote-modal__card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 460px;
  max-height: 92vh;
  overflow-y: auto;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px 28px 26px;
  box-shadow: var(--shadow-lg);
  animation: fqPop 0.3s var(--ease-out);
}
@keyframes fqFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes fqPop {
  from { opacity: 0; transform: translateY(16px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.quote-modal__close {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 36px;
  height: 36px;
  font-size: 1.6rem;
  line-height: 1;
  color: var(--gray-400);
  background: transparent;
  border-radius: 8px;
  cursor: pointer;
  transition: color var(--transition), background var(--transition);
}
.quote-modal__close:hover { color: var(--blue-dark); background: var(--gray-50); }
.quote-modal__title {
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--blue-dark);
  margin-bottom: 6px;
}
.quote-modal__sub {
  font-size: 0.9rem;
  color: var(--gray-700);
  margin-bottom: 20px;
}
.quote-modal__form { display: flex; flex-direction: column; gap: 12px; }
.quote-modal__form input,
.quote-modal__form select,
.quote-modal__form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--gray-100);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--blue-dark);
  background: var(--white);
}
.quote-modal__form input:focus,
.quote-modal__form select:focus,
.quote-modal__form textarea:focus { outline: none; border-color: var(--blue-light); }
.quote-modal__form input.is-invalid { border-color: #d9544f; }
.quote-modal__form textarea { resize: vertical; min-height: 80px; }
.quote-modal__hint {
  font-size: 0.8rem;
  color: var(--gray-700);
  margin: -2px 0 -2px;
}
.quote-modal__hint strong { color: var(--blue-dark); }

@media (max-width: 560px) {
  .floating-quote { right: 16px; bottom: 16px; padding: 12px 18px; font-size: 0.85rem; }
  .quote-modal__card { padding: 28px 20px 22px; }
}
