/* ==========================================================================
   The OakWood Publishers — Premium Book Publishing & Author Services Agency
   Visual Identity: Editorial Light Foundation / Rich Black Contrast / Strategic Yellow
   Typography: Manrope (Headings), DM Sans (Body), DM Serif Display (Accents)
   ========================================================================== */

/* --------------------------------------------------------------------------
   01. Custom Properties & Dynamic Theme Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Constant Brand Colors */
  --color-primary-yellow: #FFD43B;
  --color-warm-yellow: #F5C400;
  --color-bright-yellow: #FFE878;
  --color-yellow-dim: rgba(255, 212, 59, 0.12);
  --color-yellow-glow: rgba(255, 212, 59, 0.35);

  --color-pure-black: #080808;
  --color-rich-black: #111111;
  --color-charcoal-dark: #1A1A1A;
  --color-pure-white: #FFFFFF;
  --color-warm-white: #FAF9F6;
  --color-light-gray: #F1F0EC;

  /* Dynamic Theme Tokens (Light Mode Default) */
  --bg-page: #FAF9F6;
  --bg-surface: #FFFFFF;
  --bg-surface-elevated: #F4F3EE;
  --bg-card: #FFFFFF;
  --bg-card-hover: #FFFFFF;
  --bg-card-dark: #111111;

  --text-main: #111111;
  --text-secondary: #5A5A5A;
  --text-muted: #888888;
  --text-light: #F7F5EF;

  --border-subtle: rgba(0, 0, 0, 0.08);
  --border-medium: rgba(0, 0, 0, 0.14);
  --border-accent: rgba(255, 212, 59, 0.45);
  --border-dark: rgba(255, 255, 255, 0.12);

  --header-bg: rgba(250, 249, 246, 0.94);
  --header-scrolled: rgba(255, 255, 255, 0.98);

  --shadow-subtle: 0 4px 20px rgba(0, 0, 0, 0.04);
  --shadow-card: 0 16px 40px -10px rgba(0, 0, 0, 0.07);
  --shadow-card-hover: 0 24px 50px -10px rgba(0, 0, 0, 0.14);
  --shadow-device: 0 28px 70px -15px rgba(0, 0, 0, 0.22);
  --shadow-dark-card: 0 20px 50px rgba(0, 0, 0, 0.6);

  /* Typography */
  --font-heading: 'Manrope', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-editorial: 'DM Serif Display', Georgia, serif;

  /* Spacing Scale */
  --container-max-width: 1320px;
  --nav-height: 104px;
  --section-padding-y: clamp(80px, 8vw, 130px);
  --grid-gap: clamp(24px, 3vw, 40px);

  /* Radii */
  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 0.32s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  --theme-transition: background-color 0.35s ease, color 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

/* --------------------------------------------------------------------------
   Dark Mode Theme Overrides
   -------------------------------------------------------------------------- */
[data-theme="dark"] {
  --bg-page: #0C0C0C;
  --bg-surface: #141414;
  --bg-surface-elevated: #1D1D1D;
  --bg-card: #161616;
  --bg-card-hover: #1E1E1E;
  --bg-card-dark: #080808;

  --text-main: #FFFFFF;
  --text-secondary: #B4B4B4;
  --text-muted: #7E7E7E;
  --text-light: #F7F5EF;

  --border-subtle: rgba(255, 255, 255, 0.1);
  --border-medium: rgba(255, 255, 255, 0.18);
  --border-accent: rgba(255, 212, 59, 0.5);

  --header-bg: rgba(12, 12, 12, 0.94);
  --header-scrolled: rgba(18, 18, 18, 0.98);

  --shadow-subtle: 0 4px 20px rgba(0, 0, 0, 0.3);
  --shadow-card: 0 16px 40px -10px rgba(0, 0, 0, 0.5);
  --shadow-card-hover: 0 24px 50px -10px rgba(0, 0, 0, 0.7);
  --shadow-device: 0 28px 70px -15px rgba(0, 0, 0, 0.8);
}

/* --------------------------------------------------------------------------
   02. Reset & Document Setup
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  background-color: var(--bg-page);
  color: var(--text-main);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: var(--theme-transition);
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-page);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  transition: var(--theme-transition);
}

::selection {
  background-color: var(--color-primary-yellow);
  color: var(--color-pure-black);
}

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

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

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

ul, ol {
  list-style: none;
}

/* --------------------------------------------------------------------------
   03. Typography Architecture
   -------------------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: -0.035em;
  color: var(--text-main);
  line-height: 1.15;
}

.hero-title {
  font-size: clamp(1.95rem, 3.1vw, 3.25rem);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.035em;
  margin-bottom: 22px;
}

.hero-title .hero-line {
  display: block;
  white-space: nowrap;
}

.hero-title .highlight-yellow {
  background: linear-gradient(120deg, transparent 0%, transparent 60%, var(--color-primary-yellow) 60%, var(--color-primary-yellow) 100%);
  background-size: 100% 40%;
  background-repeat: no-repeat;
  background-position: 0 88%;
  display: inline;
}

[data-theme="dark"] .hero-title .highlight-yellow {
  color: var(--color-primary-yellow);
  background: none;
}

.editorial-serif {
  font-family: var(--font-editorial);
  font-weight: 400;
  font-style: italic;
}

.section-title {
  font-size: clamp(2.2rem, 4.2vw, 3.4rem);
  letter-spacing: -0.035em;
  line-height: 1.15;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: clamp(1.05rem, 1.25vw, 1.2rem);
  color: var(--text-secondary);
  line-height: 1.65;
  max-width: 660px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-size: 0.8125rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--text-main);
  margin-bottom: 14px;
}

.eyebrow::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--color-primary-yellow);
  box-shadow: 0 0 10px rgba(255, 212, 59, 0.8);
}

/* --------------------------------------------------------------------------
   04. Layout & Containers
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container-max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: clamp(20px, 3.5vw, 44px);
  padding-right: clamp(20px, 3.5vw, 44px);
}

.section {
  padding-top: var(--section-padding-y);
  padding-bottom: var(--section-padding-y);
  position: relative;
  transition: var(--theme-transition);
}

.section-white {
  background-color: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.section-header {
  margin-bottom: clamp(40px, 6vw, 70px);
}

.section-header.center {
  text-align: center;
}

.section-header.center .eyebrow {
  justify-content: center;
}

.section-header.center .section-subtitle {
  margin-left: auto;
  margin-right: auto;
}

/* --------------------------------------------------------------------------
   05. Buttons & Interactive Elements
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  padding: 15px 30px;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  position: relative;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--color-primary-yellow);
  color: var(--color-pure-black);
  border: 1px solid var(--color-primary-yellow);
  box-shadow: 0 4px 18px rgba(255, 212, 59, 0.3);
}

.btn-primary:hover {
  background-color: var(--color-bright-yellow);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255, 212, 59, 0.45);
}

.btn-secondary {
  background-color: transparent;
  color: var(--text-main);
  border: 1.5px solid var(--text-main);
}

.btn-secondary:hover {
  background-color: var(--text-main);
  color: var(--bg-page);
  transform: translateY(-2px);
}

.btn-secondary-white {
  background-color: transparent;
  color: var(--color-pure-white);
  border: 1.5px solid rgba(255, 255, 255, 0.25);
}

.btn-secondary-white:hover {
  border-color: var(--color-primary-yellow);
  color: var(--color-primary-yellow);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 11px 22px;
  font-size: 0.875rem;
}

.btn .btn-arrow {
  display: inline-flex;
  transition: transform var(--transition-fast);
}

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

/* Theme Switcher Button */
.theme-toggle-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid var(--border-medium);
  background-color: var(--bg-surface);
  color: var(--text-main);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-subtle);
  position: relative;
}

.theme-toggle-btn:hover {
  border-color: var(--color-primary-yellow);
  transform: scale(1.05);
  box-shadow: 0 4px 14px rgba(255, 212, 59, 0.25);
}

.theme-icon {
  width: 20px;
  height: 20px;
  fill: currentColor;
  transition: transform var(--transition-smooth), opacity var(--transition-fast);
}

.theme-icon-sun {
  display: none;
}

[data-theme="dark"] .theme-icon-moon {
  display: none;
}

[data-theme="dark"] .theme-icon-sun {
  display: block;
}

/* --------------------------------------------------------------------------
   06. SECTION 1 — Navigation Bar
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-height);
  background-color: var(--header-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-subtle);
  z-index: 100;
  transition: var(--theme-transition);
}

.site-header.scrolled {
  background-color: var(--header-scrolled);
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.05);
  border-bottom-color: var(--border-medium);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.brand-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.brand-logo-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #080808;
  padding: 6px 14px;
  border-radius: 10px;
  border: 1.5px solid rgba(255, 212, 59, 0.45);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.22);
  transition: all var(--transition-smooth);
}

.brand-logo-badge:hover {
  border-color: var(--color-primary-yellow);
  box-shadow: 0 8px 30px rgba(255, 212, 59, 0.4);
  transform: translateY(-2px);
}

.brand-logo-img {
  height: 76px;
  width: auto;
  max-width: 150px;
  object-fit: contain;
  display: block;
}

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

.nav-link {
  font-family: var(--font-heading);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-main);
  transition: color var(--transition-fast);
  padding: 6px 0;
  position: relative;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-primary-yellow);
  transition: width var(--transition-fast);
}

.nav-link:hover {
  color: var(--color-primary-yellow);
}

.nav-link:hover::after {
  width: 100%;
}

.nav-cta-wrap {
  display: flex;
  align-items: center;
  gap: 16px;
}

.hamburger-btn {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 44px;
  height: 44px;
  padding: 13px 10px;
  border: 1.5px solid var(--border-medium);
  border-radius: var(--radius-sm);
  background: var(--bg-surface);
}

.hamburger-btn span {
  display: block;
  height: 2px;
  width: 100%;
  background-color: var(--text-main);
  border-radius: 2px;
  transition: all var(--transition-fast);
}

/* Mobile Drawer */
.mobile-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: 85%;
  max-width: 400px;
  height: 100vh;
  background-color: var(--bg-surface);
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.2);
  z-index: 1001;
  padding: 30px 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: right var(--transition-smooth);
}

.mobile-drawer.open {
  right: 0;
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 36px;
}

.drawer-logo-img {
  height: 66px;
  width: auto;
  object-fit: contain;
  display: block;
}

.drawer-links {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.drawer-link {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-main);
  padding: 8px 0;
  border-bottom: 1px solid var(--border-subtle);
}

.drawer-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-smooth);
}

.drawer-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

/* --------------------------------------------------------------------------
   07. SECTION 2 — Hero Section (Book Publishing Presentation)
   -------------------------------------------------------------------------- */
.hero-section {
  padding-top: clamp(40px, 6vw, 80px);
  padding-bottom: clamp(60px, 8vw, 110px);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: clamp(36px, 4vw, 56px);
  align-items: center;
}

.hero-brand-pill {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 6px 18px 6px 6px;
  background: var(--bg-surface);
  border: 1.5px solid var(--border-accent);
  border-radius: var(--radius-full);
  margin-bottom: 20px;
  box-shadow: var(--shadow-subtle);
  transition: all var(--transition-fast);
}

.hero-brand-pill:hover {
  border-color: var(--color-primary-yellow);
  box-shadow: 0 6px 20px rgba(255, 212, 59, 0.25);
  transform: translateY(-1px);
}

.hero-brand-pill-img {
  height: 38px;
  width: auto;
  object-fit: contain;
  display: block;
  background: #080808;
  border-radius: 50%;
  padding: 4px;
  border: 1px solid rgba(255, 212, 59, 0.4);
}

.hero-brand-pill-text {
  font-family: var(--font-heading);
  font-size: 0.8125rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-main);
}

.hero-description {
  font-size: clamp(1.1rem, 1.35vw, 1.25rem);
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 34px;
  max-width: 580px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.hero-trust-line {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted);
  flex-wrap: wrap;
}

.hero-trust-line .dot {
  color: var(--color-primary-yellow);
}

/* Hero Book Showcase Composition */
.hero-visual-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-book-stage {
  position: relative;
  width: 100%;
  max-width: 520px;
  aspect-ratio: 1 / 1.05;
  perspective: 1200px;
}

/* Background Soft Glow */
.hero-stage-glow {
  position: absolute;
  top: 15%;
  left: 20%;
  width: 65%;
  height: 65%;
  background: radial-gradient(circle, rgba(255, 212, 59, 0.18) 0%, transparent 70%);
  filter: blur(40px);
  z-index: 1;
  pointer-events: none;
}

/* Main Hardcover Book Stand */
.hardcover-book-3d {
  position: absolute;
  top: 8%;
  left: 12%;
  width: 68%;
  aspect-ratio: 1 / 1.42;
  border-radius: 8px 16px 16px 8px;
  box-shadow: 
    -12px 18px 45px rgba(0, 0, 0, 0.35),
    0 4px 12px rgba(0, 0, 0, 0.2);
  transform: rotateY(-14deg) rotateX(6deg) rotateZ(-3deg);
  transform-style: preserve-3d;
  transition: transform var(--transition-smooth);
  z-index: 3;
  overflow: hidden;
  border: 1px solid rgba(255, 212, 59, 0.3);
}

.hardcover-book-3d:hover {
  transform: rotateY(-6deg) rotateX(2deg) rotateZ(-1deg) scale(1.02);
}

.hardcover-book-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.book-spine-lighting {
  position: absolute;
  top: 0;
  left: 0;
  width: 22px;
  height: 100%;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.25) 0%, rgba(0, 0, 0, 0.35) 60%, transparent 100%);
  pointer-events: none;
}

.book-ribbon-marker {
  position: absolute;
  bottom: -14px;
  right: 32px;
  width: 16px;
  height: 38px;
  background-color: var(--color-primary-yellow);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 80%, 0 100%);
  z-index: 4;
}

/* Secondary Paperback Book Behind */
.secondary-paperback-3d {
  position: absolute;
  top: 16%;
  right: 4%;
  width: 55%;
  aspect-ratio: 1 / 1.42;
  border-radius: 6px 12px 12px 6px;
  box-shadow: -16px 20px 40px rgba(0, 0, 0, 0.3);
  transform: rotateY(18deg) rotateX(4deg) rotateZ(6deg);
  z-index: 2;
  overflow: hidden;
  opacity: 0.94;
  border: 1px solid rgba(0, 0, 0, 0.15);
}

.secondary-paperback-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Manuscript Sheet Floating Card */
.hero-manuscript-card {
  position: absolute;
  bottom: 6%;
  left: 0%;
  background: var(--bg-surface);
  border: 1.5px solid var(--border-medium);
  border-radius: var(--radius-md);
  padding: 18px 22px;
  box-shadow: var(--shadow-card-hover);
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: 280px;
  animation: floatSlow 5s ease-in-out infinite alternate;
}

@keyframes floatSlow {
  0% { transform: translateY(0); }
  100% { transform: translateY(-10px); }
}

.manuscript-stamp {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-yellow-dim);
  border: 1.5px solid var(--color-primary-yellow);
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.manuscript-info h5 {
  font-size: 0.95rem;
  font-weight: 800;
  margin-bottom: 2px;
}

.manuscript-info p {
  font-size: 0.8125rem;
  color: var(--text-secondary);
}

/* Top Floating Publishing Badge */
.hero-published-pill {
  position: absolute;
  top: 4%;
  right: 2%;
  background: #080808;
  color: var(--color-pure-white);
  border: 1.5px solid rgba(255, 212, 59, 0.5);
  border-radius: var(--radius-full);
  padding: 8px 18px;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  z-index: 5;
  animation: floatSlow 6s ease-in-out 1s infinite alternate-reverse;
}

.hero-published-pill .star-icon {
  color: var(--color-primary-yellow);
}

/* --------------------------------------------------------------------------
   08. SECTION 3 — Book Portfolio Section (Showcase Concepts)
   -------------------------------------------------------------------------- */
.portfolio-tabs-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.portfolio-tab-btn {
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 700;
  padding: 10px 22px;
  border-radius: var(--radius-full);
  border: 1.5px solid var(--border-medium);
  background: var(--bg-surface);
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.portfolio-tab-btn:hover {
  color: var(--text-main);
  border-color: var(--text-main);
}

.portfolio-tab-btn.active {
  background: var(--text-main);
  color: var(--bg-page);
  border-color: var(--text-main);
}

[data-theme="dark"] .portfolio-tab-btn.active {
  background: var(--color-primary-yellow);
  color: var(--color-pure-black);
  border-color: var(--color-primary-yellow);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(24px, 3.5vw, 36px);
}

.portfolio-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform var(--transition-smooth), box-shadow var(--transition-smooth), border-color var(--transition-smooth);
  display: flex;
  flex-direction: column;
  position: relative;
}

.portfolio-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-card-hover);
  border-color: var(--border-accent);
}

.portfolio-cover-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1.35;
  background: var(--bg-surface-elevated);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.portfolio-book-mockup {
  position: relative;
  width: 82%;
  height: 94%;
  box-shadow: -8px 12px 30px rgba(0, 0, 0, 0.28);
  border-radius: 4px 10px 10px 4px;
  overflow: hidden;
  transition: transform var(--transition-smooth);
}

.portfolio-card:hover .portfolio-book-mockup {
  transform: scale(1.04) rotate(-1deg);
}

.portfolio-book-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.portfolio-category-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: rgba(17, 17, 17, 0.88);
  backdrop-filter: blur(8px);
  color: var(--color-primary-yellow);
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 212, 59, 0.35);
  z-index: 2;
}

.portfolio-card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.portfolio-book-title {
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 6px;
  line-height: 1.25;
}

.portfolio-author-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-warm-yellow);
  margin-bottom: 14px;
}

.portfolio-book-desc {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}

.portfolio-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid var(--border-subtle);
}

.portfolio-view-btn {
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text-main);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all var(--transition-fast);
}

.portfolio-view-btn:hover {
  color: var(--color-warm-yellow);
  transform: translateX(4px);
}

/* --------------------------------------------------------------------------
   09. SECTION 4 — Our Publishing Services (Editorial Layout)
   -------------------------------------------------------------------------- */
.services-layout-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(36px, 5vw, 64px);
  align-items: start;
  margin-bottom: 60px;
}

.services-feature-visual-panel {
  position: sticky;
  top: 130px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.services-visual-img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  display: block;
}

.services-feature-meta {
  padding: 32px;
}

.services-feature-meta h3 {
  font-size: 1.6rem;
  margin-bottom: 12px;
}

.services-feature-meta p {
  color: var(--text-secondary);
  font-size: 0.98rem;
  line-height: 1.65;
  margin-bottom: 24px;
}

.services-metrics-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  border-top: 1px solid var(--border-subtle);
  padding-top: 20px;
}

.services-metric-box .metric-value {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--color-warm-yellow);
}

.services-metric-box .metric-label {
  font-size: 0.78rem;
  color: var(--text-secondary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Services 8 Rows / Cards */
.services-list-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.service-item-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 26px 28px;
  box-shadow: var(--shadow-subtle);
  transition: all var(--transition-smooth);
  display: flex;
  gap: 22px;
  align-items: flex-start;
}

.service-item-card:hover {
  transform: translateX(6px);
  border-color: var(--border-accent);
  box-shadow: var(--shadow-card);
}

.service-icon-box {
  width: 54px;
  height: 54px;
  border-radius: var(--radius-sm);
  background: var(--color-yellow-dim);
  border: 1.5px solid rgba(255, 212, 59, 0.45);
  color: var(--color-warm-yellow);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all var(--transition-fast);
}

.service-icon-box svg {
  width: 25px;
  height: 25px;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
  transition: all var(--transition-fast);
}

.service-item-card:hover .service-icon-box {
  background: var(--color-primary-yellow);
  color: var(--color-pure-black);
  transform: scale(1.08);
  border-color: var(--color-primary-yellow);
  box-shadow: 0 4px 16px rgba(255, 212, 59, 0.4);
}

.service-text-content h4 {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.service-text-content p {
  font-size: 0.93rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 12px;
}

.service-deliverables-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.service-pill-tag {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  background: var(--bg-surface-elevated);
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
}

/* --------------------------------------------------------------------------
   10. SECTION 5 — NEW: Premium Modern Testimonials Section
   -------------------------------------------------------------------------- */
.testimonials-editorial-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: clamp(28px, 4vw, 44px);
  align-items: stretch;
}

/* Featured Large Testimonial Card */
.featured-testimonial-card {
  background: var(--bg-card);
  border: 1.5px solid var(--border-accent);
  border-radius: var(--radius-lg);
  padding: clamp(36px, 5vw, 56px);
  box-shadow: var(--shadow-card-hover);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.quote-mark-watermark {
  position: absolute;
  top: 20px;
  right: 32px;
  font-family: var(--font-editorial);
  font-size: 10rem;
  line-height: 1;
  color: var(--color-yellow-dim);
  pointer-events: none;
  user-select: none;
}

.testimonial-quote-text {
  font-family: var(--font-body);
  font-size: clamp(1.15rem, 1.4vw, 1.35rem);
  line-height: 1.7;
  color: var(--text-main);
  margin-bottom: 36px;
  position: relative;
  z-index: 2;
  font-style: italic;
}

.testimonial-book-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 8px 16px;
  margin-bottom: 24px;
}

.testimonial-book-badge .label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.testimonial-book-badge .title {
  font-size: 0.875rem;
  font-weight: 800;
  color: var(--color-warm-yellow);
}

.testimonial-author-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border-subtle);
  padding-top: 24px;
  position: relative;
  z-index: 2;
}

.author-profile-box {
  display: flex;
  align-items: center;
  gap: 16px;
}

.author-avatar-img {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--color-primary-yellow);
}

.author-profile-info h5 {
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 2px;
}

.author-profile-info p {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.testimonial-rating-stars {
  color: var(--color-primary-yellow);
  font-size: 1.1rem;
  letter-spacing: 2px;
}

/* Supporting Testimonials Column */
.supporting-testimonials-col {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.supporting-testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 30px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all var(--transition-smooth);
}

.supporting-testimonial-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-accent);
  box-shadow: var(--shadow-card-hover);
}

.supporting-quote-text {
  font-size: 0.98rem;
  line-height: 1.65;
  color: var(--text-main);
  margin-bottom: 22px;
  font-style: italic;
}

.transparency-note {
  font-size: 0.8125rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 36px;
  font-style: italic;
}

/* --------------------------------------------------------------------------
   11. SECTION 6 — Why Choose Us (Creative Partnership)
   -------------------------------------------------------------------------- */
.why-us-editorial-split {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(36px, 5vw, 64px);
  align-items: center;
}

.why-us-visual-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-device);
}

.why-us-photo-img {
  width: 100%;
  height: 520px;
  object-fit: cover;
  display: block;
}

.why-us-floating-badge {
  position: absolute;
  bottom: 24px;
  left: 24px;
  background: rgba(17, 17, 17, 0.92);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 212, 59, 0.4);
  border-radius: var(--radius-md);
  padding: 18px 24px;
  color: var(--color-pure-white);
  box-shadow: var(--shadow-dark-card);
}

.why-us-floating-badge .metric {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--color-primary-yellow);
  margin-bottom: 2px;
}

.why-us-floating-badge .label {
  font-size: 0.8125rem;
  color: #B4B4B4;
}

.why-us-pillars-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.why-us-pillar-box {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-subtle);
  transition: all var(--transition-fast);
}

.why-us-pillar-box:hover {
  border-color: var(--border-accent);
  transform: translateY(-3px);
}

.pillar-number {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--color-warm-yellow);
  margin-bottom: 10px;
}

.why-us-pillar-box h5 {
  font-size: 1.08rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.why-us-pillar-box p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* --------------------------------------------------------------------------
   12. SECTION 7 — Publishing Packages
   -------------------------------------------------------------------------- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(24px, 3vw, 36px);
  align-items: stretch;
}

.pricing-card {
  background: var(--bg-card);
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: clamp(32px, 4vw, 44px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-card);
  position: relative;
  transition: all var(--transition-smooth);
}

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

.pricing-card.featured {
  border-color: var(--color-primary-yellow);
  box-shadow: 0 20px 50px rgba(255, 212, 59, 0.18);
  transform: scale(1.02);
}

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

.featured-popular-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-primary-yellow);
  color: var(--color-pure-black);
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 18px;
  border-radius: var(--radius-full);
  box-shadow: 0 4px 14px rgba(255, 212, 59, 0.4);
}

.plan-title {
  font-size: 1.55rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.plan-subtitle {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 24px;
}

.plan-quote-box {
  padding: 18px 0;
  margin-bottom: 28px;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.plan-quote-amount {
  font-family: var(--font-heading);
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--text-main);
}

.plan-quote-note {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  margin-top: 4px;
}

.plan-features-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 36px;
  flex-grow: 1;
}

.plan-feature-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.92rem;
  color: var(--text-main);
}

.plan-check-symbol {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--color-yellow-dim);
  color: var(--color-warm-yellow);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.plan-check-symbol svg {
  width: 12px;
  height: 12px;
  stroke: currentColor;
  stroke-width: 2.6;
  fill: none;
}

[data-theme="dark"] .plan-check-symbol {
  color: var(--color-primary-yellow);
}

/* --------------------------------------------------------------------------
   13. SECTION 8 — Final CTA + Agency Footer
   -------------------------------------------------------------------------- */
.cta-dark-wrapper {
  background: var(--color-pure-black);
  border-radius: var(--radius-lg);
  padding: clamp(56px, 8vw, 100px) clamp(24px, 5vw, 64px);
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-dark-card);
  margin-bottom: var(--section-padding-y);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.cta-dark-wrapper .section-title {
  color: var(--color-pure-white);
  margin-bottom: 18px;
}

.cta-dark-wrapper .section-subtitle {
  color: #a3a3a3;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 36px;
}

.cta-buttons-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
}

/* Black Agency Footer */
.site-footer {
  background-color: var(--color-pure-black);
  color: var(--color-pure-white);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 64px;
  padding-bottom: 40px;
}

.footer-columns-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: clamp(30px, 4vw, 60px);
  margin-bottom: 50px;
}

.footer-logo-badge {
  display: inline-block;
  background: #080808;
  padding: 8px 18px;
  border-radius: 12px;
  border: 1.5px solid rgba(255, 212, 59, 0.4);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
  margin-bottom: 20px;
  transition: all var(--transition-smooth);
}

.footer-logo-badge:hover {
  border-color: var(--color-primary-yellow);
  box-shadow: 0 10px 36px rgba(255, 212, 59, 0.35);
  transform: translateY(-2px);
}

.footer-logo-img {
  height: 96px;
  width: auto;
  max-width: 170px;
  object-fit: contain;
  display: block;
}

.footer-brand p {
  color: #8e8e8e;
  font-size: 0.92rem;
  margin-top: 16px;
  max-width: 320px;
  line-height: 1.6;
}

.footer-heading {
  font-family: var(--font-heading);
  font-size: 0.9375rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-pure-white);
  margin-bottom: 20px;
}

.footer-nav-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-nav-list a {
  color: #8e8e8e;
  font-size: 0.9rem;
  transition: all var(--transition-fast);
}

.footer-nav-list a:hover {
  color: var(--color-primary-yellow);
  transform: translateX(3px);
}

.footer-bottom-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.85rem;
  color: #666666;
}

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

/* --------------------------------------------------------------------------
   14. Project Inquiry Modal & Project Detail Modal
   -------------------------------------------------------------------------- */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-overlay.open {
  display: flex;
}

.modal-container {
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 540px;
  max-height: 90vh;
  overflow-y: auto;
  padding: clamp(28px, 4vw, 40px);
  position: relative;
  box-shadow: var(--shadow-device);
  animation: modalEnter 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalEnter {
  from { opacity: 0; transform: scale(0.95) translateY(12px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border-medium);
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: all var(--transition-fast);
}

.modal-close-btn:hover {
  background-color: var(--bg-surface-elevated);
}

.modal-brand-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #080808;
  padding: 6px 16px;
  border-radius: 10px;
  border: 1.5px solid rgba(255, 212, 59, 0.4);
  margin-bottom: 16px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.modal-logo-img {
  height: 62px;
  width: auto;
  object-fit: contain;
  display: block;
}

.form-group {
  margin-bottom: 18px;
  text-align: left;
}

.form-label {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-main);
  margin-bottom: 8px;
}

.form-control {
  width: 100%;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-medium);
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 13px 16px;
  border-radius: var(--radius-xs);
  transition: all var(--transition-fast);
}

.form-control:focus {
  outline: none;
  background: var(--bg-surface);
  border-color: var(--color-primary-yellow);
  box-shadow: 0 0 0 3px rgba(255, 212, 59, 0.3);
}

/* --------------------------------------------------------------------------
   15. Responsive Breakpoints
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-trust-line {
    justify-content: center;
  }

  .hero-visual-wrapper {
    margin-top: 20px;
  }

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

  .services-layout-split {
    grid-template-columns: 1fr;
  }

  .services-feature-visual-panel {
    position: static;
  }

  .testimonials-editorial-grid {
    grid-template-columns: 1fr;
  }

  .why-us-editorial-split {
    grid-template-columns: 1fr;
  }

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

  .nav-links {
    display: none;
  }

  .hamburger-btn {
    display: flex;
  }

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

@media (max-width: 768px) {
  :root {
    --nav-height: 84px;
  }

  .brand-logo-img {
    height: 58px;
    max-width: 110px;
  }

  .brand-logo-badge {
    padding: 4px 10px;
  }

  .footer-logo-img {
    height: 76px;
  }

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

  .why-us-pillars-grid {
    grid-template-columns: 1fr;
  }

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

  .footer-bottom-bar {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }

  .btn {
    width: 100%;
  }

  .nav-cta-wrap .btn-sm {
    display: none;
  }

  .hero-title {
    font-size: clamp(1.6rem, 5.5vw, 2.1rem);
  }
}

@media (max-width: 420px) {
  .hero-title .hero-line {
    white-space: normal;
  }
}

/* --------------------------------------------------------------------------
   16. Reduced Motion Accessibility
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
