:root {
  --purple: #7a4fbf;
  --purple-dark: #4c228a;
  --purple-light: #9061d4;
  --purple-soft: #efe8fb;
  --purple-ultra-light: #f7f2fc;
  --red: #d92638;
  --red-dark: #b22234;
  --blue-dark: #0d1b3e;
  --blue-accent: #2563eb;
  --white: #ffffff;
  --bg: #FAF7FD;
  --bg-gradient: linear-gradient(180deg, #F5EDFC 0%, #FAF7FD 50%, #FFFFFF 100%);
  --grey-bg: #f8f9fa;
  --grey-light: #f1f5f9;
  --grey-border: #e6e2ee;
  --grey-muted: #64748b;
  --ink: #0f172a;
  --ink-2: #1e293b;
  --shadow: 0 20px 40px -15px rgba(76, 34, 138, 0.15);
  --shadow-lg: 0 25px 50px -12px rgba(13, 27, 62, 0.25);
  --radius: 20px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--bg-gradient);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: "Sentient", 'Playfair Display', Georgia, serif;
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

h1 {
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  font-weight: 800;
}

h2 {
  font-size: clamp(1.9rem, 3.5vw, 2.8rem);
  font-weight: 700;
}

h3 {
  font-size: 1.4rem;
  font-weight: 700;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ==========================================================================
   1. HEADER & NAVIGATION (Seamless Full-Width Sticky Top Header)
   ==========================================================================/* Floating Pill Header (Spines.com Exact Design Match) */
.site-header {
  position: sticky;
  top: 16px;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 0 24px;
  background: transparent;
  border: none;
  box-shadow: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 24px;
  padding: 12px 28px;
  box-shadow: 0 10px 35px -5px rgba(13, 27, 62, 0.08), 0 2px 8px rgba(122, 79, 191, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.8);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.site-header.scrolled .nav {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 16px 40px -5px rgba(13, 27, 62, 0.14), 0 0 0 1px rgba(122, 79, 191, 0.18);
  transform: translateY(-2px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  color: var(--blue-dark);
  font-size: 1.1rem;
  letter-spacing: -0.01em;
  white-space: nowrap;
  flex-shrink: 0;
}

.brand-logo {
  width: 40px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.brand-logo img {
  max-height: 100%;
  width: auto;
  object-fit: contain;
}

.nav-links {
  display: flex;
  gap: 4px;
  align-items: center;
}

.nav-links a {
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink-2);
  transition: all 0.2s ease;
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active {
  background: var(--purple-soft);
  color: var(--purple-dark);
}

.nav-cta {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-shrink: 0;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  border: none;
  text-align: center;
  white-space: nowrap;
}

.btn-primary {
  background: var(--red);
  color: #fff;
  box-shadow: 0 8px 20px -6px rgba(217, 38, 56, 0.5);
}

.btn-primary:hover {
  background: var(--red-dark);
  transform: translateY(-2px);
  box-shadow: 0 12px 25px -6px rgba(178, 34, 52, 0.6);
  color: #fff;
}

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

.btn-outline:hover {
  background: var(--purple-soft);
  color: var(--purple-dark);
  border-color: var(--purple-dark);
  transform: translateY(-2px);
}

.btn-blue {
  background: var(--blue-dark);
  color: #fff;
}

.btn-blue:hover {
  background: #15244f;
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(13, 27, 62, 0.4);
}

.btn-lg {
  padding: 16px 36px;
  font-size: 1.05rem;
}

/* Services Mega Menu */
.nav-dropdown {
  position: relative;
  padding: 6px 0;
}

.nav-dropdown::before {
  content: "";
  position: absolute;
  top: 100%;
  left: -40px;
  right: -40px;
  height: 24px;
  background: transparent;
  z-index: 99;
}

.nav-dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.nav-dropdown-toggle::after {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.2s ease;
  margin-top: -2px;
}

.nav-dropdown:hover .nav-dropdown-toggle::after {
  transform: rotate(-135deg);
}

.mega-menu {
  position: absolute;
  left: 50%;
  top: 100%;
  margin-top: 4px;
  transform: translateX(-50%) translateY(4px);
  background: #ffffff;
  border: 1px solid rgba(122, 79, 191, 0.18);
  border-radius: 24px;
  box-shadow: 0 25px 60px -10px rgba(13, 27, 62, 0.18);
  padding: 32px;
  min-width: 840px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease;
  pointer-events: none;
  z-index: 100;
}

.nav-dropdown:hover .mega-menu,
.nav-dropdown.open .mega-menu,
.mega-menu:hover {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

.mega-menu-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 32px;
}

.mega-col h6 {
  color: var(--purple-dark);
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(122, 79, 191, 0.12);
}

.mega-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mega-col a {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--ink);
  padding: 10px;
  border-radius: 12px;
  transition: all 0.2s ease;
}

.mega-col a:hover {
  background: var(--purple-soft);
  transform: translateX(4px);
}

.mega-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--purple-soft);
  color: var(--purple-dark);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  font-size: 1.1rem;
}

.mega-col a:hover .mega-icon {
  background: var(--red);
  color: #fff;
}

.mega-col a strong {
  display: block;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--purple-dark);
}

.mega-col a span {
  display: block;
  color: var(--grey-muted);
  font-size: 0.8rem;
  line-height: 1.35;
  margin-top: 2px;
}

.nav-dropdown:hover .mega-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

.mega-menu-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 32px;
}

.mega-col h6 {
  color: var(--purple-light);
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mega-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mega-col a {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: #fff;
  padding: 10px;
  border-radius: 12px;
  transition: all 0.2s ease;
}

.mega-col a:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateX(4px);
}

.mega-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--purple-soft);
  color: var(--purple-dark);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  font-size: 1.1rem;
}

.mega-col a:hover .mega-icon {
  background: var(--red);
  color: #fff;
}

.mega-col a strong {
  display: block;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.3;
}

.mega-col a span {
  display: block;
  color: #a0aec0;
  font-size: 0.8rem;
  line-height: 1.35;
  margin-top: 2px;
}

/* Responsive Nav */
@media (max-width: 992px) {
  .mega-menu {
    min-width: 680px;
  }
  .mega-menu-inner {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 860px) {
  .mobile-toggle {
    display: block !important;
  }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #0b1530;
    flex-direction: column;
    padding: 20px;
    gap: 12px;
    border-bottom: 1px solid rgba(163, 133, 214, 0.3);
    box-shadow: 0 15px 30px rgba(0,0,0,0.5);
  }
  .nav-links.mobile-open {
    display: flex !important;
  }
  .mega-menu {
    position: static;
    transform: none;
    min-width: 100%;
    box-shadow: none;
    border: none;
    padding: 16px 0;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
  .nav-cta .btn-outline {
    display: none;
  }
}

/* ==========================================================================
   2. HERO SECTION
   ========================================================================== */
.hero {
  padding: 90px 0 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 70% 50% at 20% -10%, rgba(122, 79, 191, 0.22), transparent 70%),
    radial-gradient(ellipse 60% 40% at 80% 20%, rgba(217, 38, 56, 0.12), transparent 60%),
    var(--bg);
}

.hero .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 999px;
  background: var(--purple-soft);
  color: var(--purple-dark);
  font-size: 0.88rem;
  font-weight: 700;
  margin-bottom: 24px;
  border: 1px solid rgba(122, 79, 191, 0.2);
}

.hero p.lead {
  max-width: 760px;
  margin: 24px auto 36px;
  color: var(--grey-muted);
  font-size: 1.2rem;
  line-height: 1.7;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Book Stack Visual */
.book-stack {
  margin: 60px auto 0;
  max-width: 1100px;
  position: relative;
  height: 320px;
  display: flex;
  justify-content: center;
  align-items: flex-end;
}

.book {
  width: 170px;
  height: 240px;
  border-radius: 10px;
  box-shadow: 0 25px 45px -12px rgba(13, 27, 62, 0.35);
  background: linear-gradient(135deg, var(--blue-dark), var(--purple-dark));
  color: #fff;
  padding: 24px 18px;
  font-family: 'Sentient', serif;
  font-size: 1.1rem;
  line-height: 1.2;
  margin: 0 -16px;
  transform-origin: bottom center;
  transition: all 0.35s ease;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.book:hover {
  transform: translateY(-16px) scale(1.04) rotate(0deg) !important;
  z-index: 10;
  box-shadow: 0 35px 60px -15px rgba(217, 38, 56, 0.4);
}

.book:nth-child(1) { transform: rotate(-8deg); background: linear-gradient(160deg, #efe8fb, #c7b0ec); color: var(--ink); }
.book:nth-child(2) { transform: rotate(-4deg); background: linear-gradient(160deg, #2563eb, #0d1b3e); color: #fff; }
.book:nth-child(3) { transform: rotate(0deg) translateY(-10px); background: linear-gradient(160deg, #4c228a, #1b0c36); color: #fff; }
.book:nth-child(4) { transform: rotate(4deg); background: linear-gradient(160deg, #d92638, #8b1520); color: #fff; }
.book:nth-child(5) { transform: rotate(8deg); background: linear-gradient(160deg, #0d1b3e, #1a2b54); color: #fff; }

/* ==========================================================================
   3. SECTIONS & TYPOGRAPHY
   ========================================================================== */
section {
  padding: 95px 0;
}

.section-head {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 60px;
}

.section-head .subhead {
  display: inline-block;
  color: var(--red);
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.section-head p {
  color: var(--grey-muted);
  margin-top: 16px;
  font-size: 1.1rem;
}

.red-heading {
  color: var(--red);
}

.main-headings {
  font-family: "Sentient", Georgia, serif;
  font-size: clamp(2.2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.04em;
}

/* Stats Section */
.stats {
  background: var(--purple-soft);
  padding: 60px 0;
  border-y: 1px solid rgba(122, 79, 191, 0.15);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}

.stat-num {
  font-family: "Sentient", Georgia, serif;
  font-size: clamp(2.4rem, 4vw, 3.2rem);
  font-weight: 800;
  color: var(--purple-dark);
}

.stat-lbl {
  color: var(--grey-muted);
  font-size: 1rem;
  font-weight: 600;
  margin-top: 6px;
}

@media (max-width: 768px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
}

/* ==========================================================================
   4. SERVICES & HOVER ANIMATIONS
   ========================================================================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.service {
  background: #fff;
  border-radius: var(--radius);
  padding: 36px 30px;
  border: 1px solid var(--grey-border);
  box-shadow: 0 10px 30px -15px rgba(13, 27, 62, 0.05);
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-align: center;
  align-items: center;
}

.service::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--purple), var(--red));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.service:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 50px -12px rgba(122, 79, 191, 0.22);
  border-color: var(--purple-light);
  background: linear-gradient(180deg, #ffffff 0%, #f9f5fc 100%);
}

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

.service-icon {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background: var(--purple-soft);
  color: var(--purple-dark);
  display: grid;
  place-items: center;
  font-size: 1.7rem;
  margin: 0 auto 24px;
  transition: all 0.35s ease;
}

.service:hover .service-icon {
  background: linear-gradient(135deg, var(--purple-dark), var(--purple));
  color: #ffffff;
  transform: scale(1.1) rotate(-5deg);
  box-shadow: 0 8px 20px rgba(122, 79, 191, 0.35);
}

.service h3 {
  margin-bottom: 12px;
  font-size: 1.35rem;
  transition: color 0.3s ease;
  text-align: center;
}

.service:hover h3 {
  color: var(--purple-dark);
}

.service p {
  color: var(--grey-muted);
  font-size: 0.98rem;
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
  text-align: center;
}

.service-link {
  margin: 0 auto;
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: var(--purple-dark);
  font-size: 0.92rem;
  transition: color 0.2s ease;
}

.service-link i {
  transition: transform 0.2s ease;
}

.service:hover .service-link {
  color: var(--red);
}

.service:hover .service-link i {
  transform: translateX(6px);
}

@media (max-width: 992px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .services-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   5. PROCESS SECTION
   ========================================================================== */
.process {
  background: linear-gradient(180deg, var(--purple-soft), #fff);
}

.steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}

.step {
  background: #fff;
  border-radius: var(--radius);
  padding: 30px 20px;
  text-align: center;
  border: 1px solid var(--grey-border);
  box-shadow: 0 8px 25px -10px rgba(13, 27, 62, 0.05);
  transition: transform 0.3s ease;
}

.step:hover {
  transform: translateY(-6px);
  border-color: var(--purple);
}

.step-num {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--purple-dark);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 1.2rem;
  margin: 0 auto 18px;
}

.step h4 {
  margin-bottom: 10px;
  font-size: 1.15rem;
}

.step p {
  color: var(--grey-muted);
  font-size: 0.9rem;
}

@media (max-width: 992px) {
  .steps { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 640px) {
  .steps { grid-template-columns: 1fr; }
}

/* ==========================================================================
   6. PORTFOLIO & TESTIMONIALS
   ========================================================================== */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.cover {
  aspect-ratio: 2/3;
  border-radius: 16px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  color: #fff;
  font-family: 'Sentient', serif;
  font-size: 1.1rem;
  line-height: 1.3;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  position: relative;
  overflow: hidden;
  background-size: cover;
  background-position: center;
}

.cover::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(13, 27, 62, 0.85));
}

.cover:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 50px -10px rgba(13, 27, 62, 0.4);
}

.cover span, .cover .rating {
  position: relative;
  z-index: 1;
}

.cover .rating {
  font-family: 'Inter', sans-serif;
  font-size: 0.82rem;
  color: #fcd34d;
  margin-top: 8px;
  font-weight: 600;
}

@media (max-width: 992px) { .portfolio-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .portfolio-grid { grid-template-columns: repeat(2, 1fr); } }

/* Testimonials */
.testimonials {
  background: var(--blue-dark);
  color: #fff;
}

.testimonials .section-head h2 { color: #fff; }
.testimonials .section-head p { color: #a0aec0; }

.test-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.test {
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius);
  padding: 34px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

.test .stars {
  color: #f59e0b;
  margin-bottom: 16px;
  letter-spacing: 2px;
}

.test p {
  color: #e2e8f0;
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 24px;
}

.test .who {
  display: flex;
  align-items: center;
  gap: 14px;
}

.avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
}

.test .who strong { display: block; color: #fff; font-size: 1rem; }
.test .who small { color: #a0aec0; font-size: 0.85rem; }

@media (max-width: 992px) { .test-grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   7. REQUEST A QUOTE SECTION (Placed ABOVE Ready To Print CTA)
   ========================================================================== */
.quote-section {
  padding: 90px 0;
  background: linear-gradient(135deg, #f7f3ff, #eef2ff);
  position: relative;
}

.quote-card {
  max-width: 950px;
  margin: 0 auto;
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 25px 60px -15px rgba(13, 27, 62, 0.12);
  padding: 48px;
  border: 1px solid rgba(122, 79, 191, 0.15);
}

.quote-header {
  text-align: center;
  max-width: 650px;
  margin: 0 auto 36px;
}

.quote-header .badge {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--purple-soft);
  color: var(--purple-dark);
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 12px;
}

.quote-form .form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group.full-width {
  grid-column: 1 / -1;
}

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.92rem;
  margin-bottom: 8px;
  color: var(--ink-2);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 14px 18px;
  border-radius: 12px;
  border: 1.5px solid var(--grey-border);
  background: var(--grey-bg);
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--ink);
  outline: none;
  transition: all 0.2s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--purple);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(122, 79, 191, 0.12);
}

.quote-submit-btn {
  width: 100%;
  padding: 16px;
  font-size: 1.05rem;
  border-radius: 12px;
  margin-top: 10px;
}

@media (max-width: 768px) {
  .quote-card { padding: 32px 20px; }
  .quote-form .form-grid { grid-template-columns: 1fr; gap: 0; }
}

/* ==========================================================================
   8. READY TO PRINT CTA BANNER
   ========================================================================== */
.cta {
  background: linear-gradient(135deg, var(--purple-dark), var(--blue-dark));
  color: #fff;
  border-radius: 24px;
  padding: 70px 40px;
  text-align: center;
  margin: 60px 0;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.cta h2 { color: #fff; margin-bottom: 16px; }
.cta p { color: rgba(255, 255, 255, 0.9); max-width: 640px; margin: 0 auto 32px; font-size: 1.15rem; }
.cta-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* CTA Outline button fix for dark cards */
.cta .btn-outline,
.content-card .btn-outline {
  color: #ffffff !important;
  border: 2px solid rgba(255, 255, 255, 0.9) !important;
  background: rgba(255, 255, 255, 0.12) !important;
  backdrop-filter: blur(8px);
  font-weight: 600;
}
.cta .btn-outline:hover,
.content-card .btn-outline:hover {
  background: #ffffff !important;
  color: var(--purple-dark) !important;
  border-color: #ffffff !important;
  transform: translateY(-2px);
}

/* ==========================================================================
   9. FOOTER & TRUST BAR
   ========================================================================== */
.trust-bar {
  background: #fff;
  border-top: 1px solid var(--grey-border);
  border-bottom: 1px solid var(--grey-border);
  padding: 24px 0;
  color: var(--ink-2);
}

.trust-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: nowrap;
}

.trust-left { 
  display: flex; 
  align-items: center;
  gap: 32px; 
  flex-shrink: 0; 
}

.trust-item { 
  display: flex; 
  align-items: center; 
  gap: 12px; 
}

.trust-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--purple-soft);
  color: var(--purple-dark);
  display: grid;
  place-items: center;
  font-size: 1.15rem;
  flex-shrink: 0;
}

.trust-item strong { display: block; font-size: 0.92rem; font-weight: 700; color: var(--ink); }
.trust-item span { color: var(--grey-muted); font-size: 0.8rem; }

.trust-right {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-shrink: 0;
}

.payment-icons {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
}

.pay-badge {
  font-size: 0.72rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 6px;
  letter-spacing: 0.05em;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  color: #334155;
}

.pay-badge.visa { color: #1a1f71; font-weight: 900; }
.pay-badge.mastercard { color: #eb001b; font-weight: 900; }
.pay-badge.amex { color: #006fcf; font-weight: 900; }
.pay-badge.paypal { color: #003087; font-weight: 900; }

.trust-meta {
  font-size: 0.8rem;
  color: var(--grey-muted);
}

.trust-meta a {
  color: var(--grey-muted);
  text-decoration: none;
}
.trust-meta a:hover {
  color: var(--purple);
}

@media (max-width: 1024px) {
  .trust-grid {
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
  }
  .trust-left, .trust-right {
    justify-content: center;
    flex-wrap: wrap;
  }
}

footer {
  background: var(--blue-dark);
  color: #cbd5e1;
  padding: 75px 0 35px;
  font-size: 0.95rem;
}

footer .brand .brand-logo img {
  filter: brightness(0) invert(1) !important;
}

footer .brand span {
  color: #ffffff !important;
}

footer i.fa-phone-alt,
footer i.fa-envelope,
footer i.fa-map-marker-alt {
  color: #ffffff !important;
}

.foot-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 50px;
}

footer h5 {
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 800;
  margin-bottom: 22px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

footer ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

footer a { transition: color 0.2s ease; color: #cbd5e1; text-decoration: none; }
footer a:hover { color: #fff; }

.foot-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.88rem;
}

.foot-links { display: flex; gap: 20px; }

@media (max-width: 860px) {
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-bottom { flex-direction: column; text-align: center; }
}

/* ==========================================================================
   10. BACK TO TOP BUTTON
   ========================================================================== */
#backToTop {
  position: fixed;
  right: 28px;
  bottom: 28px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--purple-dark);
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  border: 2px solid #fff;
  box-shadow: 0 8px 25px rgba(76, 34, 138, 0.4);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#backToTop.show {
  opacity: 1;
  visibility: visible;
}

#backToTop:hover {
  background: var(--red);
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(217, 38, 56, 0.5);
}

/* Floating Talk Widget (Spines.com Style) */
.floating-talk-widget {
  position: fixed;
  bottom: 28px;
  right: 90px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #ffffff;
  padding: 8px 18px 8px 22px;
  border-radius: 999px;
  box-shadow: 0 10px 30px rgba(13, 27, 62, 0.15);
  border: 1px solid rgba(122, 79, 191, 0.18);
  z-index: 998;
  transition: all 0.3s ease;
  text-decoration: none;
}

.floating-talk-widget:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 35px rgba(13, 27, 62, 0.22);
}

.floating-talk-widget .talk-text {
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--blue-dark);
}

.floating-talk-widget .talk-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  color: #ffffff;
  display: grid;
  place-items: center;
  font-size: 1rem;
  box-shadow: 0 6px 16px rgba(217, 38, 56, 0.4);
}

/* ==========================================================================
   11. INNER PAGE STYLES (Banner & Content Layouts)
   ========================================================================== */
.inner-banner {
  background: linear-gradient(135deg, var(--blue-dark), var(--purple-dark));
  color: #fff;
  padding: 80px 0 60px;
  text-align: center;
}

.inner-banner h1 { color: #fff; margin-bottom: 16px; }
.inner-banner p { max-width: 700px; margin: 0 auto; color: rgba(255, 255, 255, 0.88); font-size: 1.15rem; }

.page-content {
  padding: 80px 0;
}

.content-card {
  background: #fff;
  border-radius: 20px;
  padding: 40px;
  border: 1px solid var(--grey-border);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.05);
  margin-bottom: 30px;
}

.content-card h2 { margin-bottom: 16px; color: var(--purple-dark); }
.content-card p { margin-bottom: 16px; color: var(--grey-muted); font-size: 1.05rem; line-height: 1.7; }
/* ==========================================================================
   PORTFOLIO & FAQ ENHANCEMENTS
   ========================================================================== */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.portfolio-card {
  background: #ffffff;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--grey-border);
  box-shadow: 0 10px 30px -15px rgba(13, 27, 62, 0.08);
  transition: all 0.35s ease;
  display: flex;
  flex-direction: column;
}
.portfolio-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 50px -12px rgba(122, 79, 191, 0.22);
  border-color: var(--purple-light);
}
.portfolio-img-wrapper {
  aspect-ratio: 2/3;
  overflow: hidden;
  background: var(--purple-soft);
  position: relative;
}
.portfolio-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.portfolio-card:hover .portfolio-img-wrapper img {
  transform: scale(1.05);
}
.portfolio-info {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.portfolio-badge {
  align-self: flex-start;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--purple-soft);
  color: var(--purple-dark);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.portfolio-info h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 6px;
  font-family: 'Playfair Display', serif;
}
@media (max-width: 992px) {
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .portfolio-grid { grid-template-columns: 1fr; }
}

/* FAQ Styles */
.faq-section {
  background: var(--purple-ultra-light);
  padding: 95px 0;
}
.faq-list {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.faq-item {
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid var(--grey-border);
  overflow: hidden;
  transition: all 0.25s ease;
}
.faq-item.open {
  border-color: var(--purple);
  box-shadow: 0 10px 25px -5px rgba(122, 79, 191, 0.12);
}
.faq-button {
  width: 100%;
  text-align: left;
  padding: 22px 28px;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--purple-dark);
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}
.faq-answer {
  padding: 0 28px 24px;
  color: var(--grey-muted);
  font-size: 1rem;
  line-height: 1.75;
  display: none;
}
.faq-item.open .faq-answer {
  display: block;
}

/* ==========================================================================
   11. FLOATING TALK WIDGET & POPUP LEAD MODAL
   ========================================================================== */
.floating-talk-widget {
  position: fixed;
  bottom: 30px;
  right: 30px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--blue-dark);
  color: #ffffff;
  padding: 8px 10px 8px 20px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  box-shadow: 0 15px 35px -8px rgba(13, 27, 62, 0.4);
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  z-index: 9999;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

.floating-talk-widget:hover {
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 20px 40px -6px rgba(217, 38, 56, 0.45);
  background: var(--purple-dark);
  color: #ffffff;
}

.floating-talk-widget .talk-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--red);
  color: #ffffff;
  display: grid;
  place-items: center;
  font-size: 1.1rem;
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.floating-talk-widget:hover .talk-btn {
  transform: rotate(15deg) scale(1.08);
}

/* Modal Overlay */
.popup-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(13, 27, 62, 0.75);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 100000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.popup-modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.popup-modal-container {
  background: #ffffff;
  border-radius: 28px;
  max-width: 860px;
  width: 100%;
  box-shadow: 0 35px 80px -15px rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(122, 79, 191, 0.2);
  position: relative;
  overflow: hidden;
  transform: scale(0.95) translateY(20px);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.popup-modal-overlay.open .popup-modal-container {
  transform: scale(1) translateY(0);
}

.popup-close-btn {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: #f1f5f9;
  color: #64748b;
  display: grid;
  place-items: center;
  font-size: 1.2rem;
  cursor: pointer;
  z-index: 10;
  transition: all 0.2s ease;
}

.popup-close-btn:hover {
  background: var(--red);
  color: #ffffff;
  transform: rotate(90deg);
}

.popup-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
}

.popup-banner {
  background: linear-gradient(145deg, var(--purple-dark), var(--blue-dark));
  color: #ffffff;
  padding: 48px 36px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.popup-banner::after {
  content: "";
  position: absolute;
  bottom: -40px;
  right: -40px;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(217, 38, 56, 0.4) 0%, transparent 70%);
  pointer-events: none;
}

.popup-badge {
  display: inline-block;
  align-self: flex-start;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--red);
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.popup-banner h3 {
  color: #ffffff;
  font-size: 1.85rem;
  font-family: 'Playfair Display', serif;
  line-height: 1.25;
  margin-bottom: 16px;
}

.popup-banner p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.95rem;
  line-height: 1.6;
}

.popup-perks {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  list-style: none;
}

.popup-perks li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: #ffffff;
}

.popup-perks li i {
  color: #38bdf8;
}

.popup-body {
  padding: 48px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.popup-body h4 {
  font-size: 1.45rem;
  color: var(--ink);
  margin-bottom: 6px;
  font-weight: 800;
}

.popup-body p.popup-desc {
  color: var(--grey-muted);
  font-size: 0.9rem;
  margin-bottom: 24px;
}

.popup-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.popup-form .input-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.popup-form input,
.popup-form select,
.popup-form textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--grey-border);
  border-radius: 12px;
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--ink);
  background: #fdfdfd;
  transition: all 0.2s ease;
}

.popup-form input:focus,
.popup-form select:focus,
.popup-form textarea:focus {
  outline: none;
  border-color: var(--purple);
  box-shadow: 0 0 0 4px rgba(122, 79, 191, 0.15);
  background: #ffffff;
}

.popup-form button[type="submit"] {
  margin-top: 8px;
  background: var(--red);
  color: #ffffff;
  border: none;
  padding: 14px 24px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 10px 25px -5px rgba(217, 38, 56, 0.5);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.popup-form button[type="submit"]:hover {
  background: var(--red-dark);
  transform: translateY(-2px);
  box-shadow: 0 14px 30px -5px rgba(217, 38, 56, 0.65);
}

.popup-success {
  text-align: center;
  padding: 40px 20px;
  display: none;
}

.popup-success i {
  font-size: 3.5rem;
  color: #10b981;
  margin-bottom: 16px;
}

.popup-success h4 {
  font-size: 1.6rem;
  margin-bottom: 8px;
}

.popup-success p {
  color: var(--grey-muted);
}

@media (max-width: 768px) {
  .popup-grid {
    grid-template-columns: 1fr;
  }
  .popup-banner {
    padding: 32px 24px;
  }
  .popup-body {
    padding: 32px 24px;
  }
}

