/* ========================================
   MANUEL MARTÍNEZ - NUMEROLOGY
   Main Stylesheet
   ======================================== */

@import url('https://fonts.googleapis.com/css2?family=Roboto+Mono:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400&family=Montserrat:wght@400;500;600;700&display=swap');

/* ========================================
   CSS VARIABLES
   ======================================== */
:root {
  --color-bg: #000000;
  --color-bg-dark: #000000;
  --color-bg-section: #050505;
  --color-bg-footer: #080808;
  --color-gold: #c9a96e;
  --color-gold-light: #e4cb86;
  --color-gold-dark: #9a7a4a;
  --color-text: #968979;
  --color-text-muted: #968979;
  --color-text-light: #ffffff;
  --color-border: rgba(255, 255, 255, 0.12);
  --color-white: #ffffff;
  --font-mono: 'Roboto Mono', 'Courier New', monospace;
  --font-sans: 'Roboto Mono', monospace;
  --nav-height: 70px;
  --transition: all 0.35s cubic-bezier(0.25, 1, 0.5, 1);
  --shadow-gold: 0 0 30px rgba(201, 169, 110, 0.15);
  --radius-img: 16px;
}

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

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

body {
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-mono);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

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

ul {
  list-style: none;
}

/* ========================================
   UTILITY CLASSES
   ======================================== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

.section {
  padding: 100px 0;
}

.section-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: 20px;
}

/* ========================================
   TOP BAR
   ======================================== */
.top-bar {
  background-color: #050505;
  border-bottom: 1px solid var(--color-border);
  padding: 8px 0;
  text-align: right;
  display: none;
}

.top-bar .container {
  display: flex;
  justify-content: flex-end;
}

.top-bar a {
  position: relative;
  display: inline-flex;
  min-width: 118px;
  min-height: 30px;
  align-items: center;
  justify-content: flex-end;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-gold-light);
  padding: 5px 13px 5px 42px;
  border: 1px solid rgba(172, 140, 106, 0.48);
  border-radius: 999px;
  background: rgba(172, 140, 106, 0.08);
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.top-bar a::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 50%;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--color-gold);
  box-shadow: 0 0 14px rgba(201, 169, 110, 0.32);
  transform: translateY(-50%);
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.top-bar a::after {
  content: "EN";
  position: absolute;
  left: 11px;
  top: 50%;
  font-size: 0.48rem;
  font-weight: 700;
  letter-spacing: 0;
  color: #050505;
  transform: translateY(-50%);
}

.top-bar a[data-current-language="es"] {
  justify-content: flex-start;
  padding: 5px 42px 5px 13px;
}

.top-bar a[data-current-language="es"]::before {
  left: auto;
  right: 8px;
}

.top-bar a[data-current-language="es"]::after {
  content: "ES";
  left: auto;
  right: 11px;
}

.top-bar a:hover {
  color: #ffffff;
  border-color: var(--color-gold);
  background: rgba(172, 140, 106, 0.15);
  transform: translateY(-1px);
}

.top-bar a:focus-visible {
  outline: 1px solid var(--color-gold);
  outline-offset: 3px;
}

.nav-language {
  display: flex;
  align-items: center;
  margin-left: 18px;
}

.nav-language .language-toggle {
  position: relative;
  display: inline-flex;
  min-width: 128px;
  min-height: 34px;
  align-items: center;
  justify-content: flex-end;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #080808;
  padding: 6px 14px 6px 45px;
  border: 1px solid var(--color-gold-light);
  border-radius: 999px;
  background: linear-gradient(135deg, var(--color-gold-light), var(--color-gold));
  box-shadow: 0 0 18px rgba(201, 169, 110, 0.2);
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.nav-language .language-toggle::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 50%;
  width: 23px;
  height: 23px;
  border-radius: 50%;
  background: #090909;
  box-shadow: inset 0 0 0 1px rgba(201, 169, 110, 0.55);
  transform: translateY(-50%);
}

.nav-language .language-toggle::after {
  content: "EN";
  position: absolute;
  left: 11px;
  top: 50%;
  font-size: 0.52rem;
  font-weight: 700;
  letter-spacing: 0;
  color: var(--color-gold-light);
  transform: translateY(-50%);
}

.nav-language .language-toggle[data-current-language="es"] {
  justify-content: flex-start;
  padding: 6px 45px 6px 14px;
}

.nav-language .language-toggle[data-current-language="es"]::before {
  left: auto;
  right: 8px;
}

.nav-language .language-toggle[data-current-language="es"]::after {
  content: "ES";
  left: auto;
  right: 11px;
}

.nav-language .language-toggle:hover,
.nav-language .language-toggle:focus-visible {
  color: #ffffff;
  border-color: var(--color-gold-light);
  background: linear-gradient(135deg, var(--color-gold), var(--color-gold-dark));
  transform: translateY(-1px);
  outline: none;
}

/* ========================================
   NAVIGATION
   ======================================== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(6, 6, 6, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--color-border);
  transition: var(--transition);
}

.nav.scrolled {
  background: rgba(6, 6, 6, 0.98);
  box-shadow: 0 4px 30px rgba(0,0,0,0.5);
}

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

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.nav-logo-icon {
  width: 36px;
  height: 36px;
}

.nav-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.nav-logo-name {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--color-text-light);
}

.nav-logo-name span {
  font-weight: 700;
  color: var(--color-gold);
}

.nav-logo-sub {
  font-family: var(--font-mono);
  font-size: 0.55rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-top: 4px;
}

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

.nav-links a {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  padding: 8px 14px;
  position: relative;
  transition: var(--transition);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 14px;
  right: 14px;
  height: 1px;
  background: var(--color-gold);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.nav-links a:hover {
  color: var(--color-text-light);
}

.nav-links a:hover::after {
  transform: scaleX(1);
}

.nav-links a.active {
  color: var(--color-gold);
}

/* Dropdown */
.nav-dropdown {
  position: relative;
}

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

.nav-dropdown-toggle svg {
  width: 10px;
  height: 10px;
  fill: currentColor;
  transition: transform 0.3s ease;
}

.nav-dropdown:hover .nav-dropdown-toggle svg {
  transform: rotate(180deg);
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 180px;
  background: rgba(15, 15, 15, 0.98);
  border: 1px solid var(--color-border);
  backdrop-filter: blur(20px);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: var(--transition);
  z-index: 100;
}

.nav-dropdown:hover .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown-menu a {
  display: block;
  padding: 12px 20px;
  font-size: 0.7rem;
  border-bottom: 1px solid var(--color-border);
}

.nav-dropdown-menu a:last-child {
  border-bottom: none;
}

.nav-dropdown-menu a:hover {
  background: rgba(201, 169, 110, 0.08);
  color: var(--color-gold);
  padding-left: 28px;
}

/* Social Icons in Nav */
.nav-social {
  display: flex;
  align-items: center;
  gap: 14px;
}

.nav-social a {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  transition: var(--transition);
  display: flex;
  align-items: center;
}

.nav-social a:hover {
  color: var(--color-gold);
  transform: translateY(-2px);
}

.nav-social svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

/* Hamburger */
.nav-hamburger {
  display: none;
  width: 44px;
  height: 38px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  padding: 0;
  background: rgba(172, 140, 106, 0.08);
  border: 1px solid rgba(172, 140, 106, 0.5);
  border-radius: 3px;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.nav-hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--color-gold);
  transition: background-color 0.2s ease, transform 0.2s ease, opacity 0.2s ease;
}

.nav-hamburger:hover,
.nav-hamburger:focus-visible {
  background: rgba(172, 140, 106, 0.16);
  border-color: var(--color-gold);
  transform: translateY(-1px);
  outline: none;
}

.nav-hamburger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

.nav-hamburger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-hamburger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  overflow: hidden;
  background: var(--color-bg-dark);
  padding-bottom: 80px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-portrait {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: var(--nav-height);
}

.hero-portrait img {
  height: 75vh;
  max-height: 650px;
  width: auto;
  object-fit: contain;
  object-position: top center;
  filter: brightness(0.85) contrast(1.1);
  mask-image: linear-gradient(to bottom, black 60%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, black 60%, transparent 100%);
}

/* Gradient overlays */
.hero-gradient-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(to top, var(--color-bg-dark) 40%, transparent);
  z-index: 2;
}

.hero-gradient-top {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 30%;
  background: linear-gradient(to bottom, var(--color-bg-dark) 0%, transparent);
  z-index: 2;
}

.hero-gradient-left {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 20%;
  background: linear-gradient(to right, var(--color-bg-dark), transparent);
  z-index: 2;
}

.hero-gradient-right {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 20%;
  background: linear-gradient(to left, var(--color-bg-dark), transparent);
  z-index: 2;
}

/* Blue accent line on top */
.hero-accent-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, #1a3a5c, #2a5a8c, #1a3a5c, transparent);
  z-index: 10;
}

.hero-content {
  position: relative;
  z-index: 5;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.hero-logo {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 4px;
}

.hero-logo-icon {
  width: 56px;
  height: 56px;
  opacity: 0.9;
}

.hero-logo-text {
  text-align: left;
}

.hero-name {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 300;
  letter-spacing: 0.15em;
  color: var(--color-text-light);
  line-height: 1;
}

.hero-name strong {
  font-weight: 700;
  color: var(--color-gold-light);
}

.hero-tagline {
  font-family: var(--font-mono);
  font-size: clamp(0.6rem, 1.2vw, 0.78rem);
  letter-spacing: 0.55em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-top: 6px;
}

.hero-scroll {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  animation: fadeInUp 1.5s ease forwards;
}

.hero-scroll span {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.hero-scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--color-gold), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.4; transform: scaleY(0.8); }
  50% { opacity: 1; transform: scaleY(1); }
}

/* ========================================
   ABOUT SECTION
   ======================================== */
.about {
  background: var(--color-bg);
  padding: 120px 0;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  align-items: start;
}

.about-quote {
  font-family: var(--font-mono);
  font-size: clamp(1.2rem, 2.5vw, 1.7rem);
  line-height: 1.5;
  color: var(--color-text-light);
  font-style: italic;
  position: relative;
}

.about-quote::before {
  content: '"';
  position: absolute;
  top: -20px;
  left: -10px;
  font-size: 5rem;
  color: var(--color-gold);
  opacity: 0.3;
  font-family: var(--font-serif);
  line-height: 1;
}

.about-body {
  padding-top: 20px;
}

.about-text {
  font-size: 0.85rem;
  line-height: 1.85;
  color: var(--color-text-muted);
  margin-bottom: 32px;
}

.btn-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-light);
  border-bottom: 1px solid var(--color-gold);
  padding-bottom: 4px;
  transition: var(--transition);
}

.btn-link:hover {
  color: var(--color-gold);
  gap: 16px;
}

.btn-link::after {
  content: '→';
}

/* ========================================
   BOOKS SECTION
   ======================================== */
.books {
  background: var(--color-bg-dark);
  padding: 100px 0;
}

.books-header {
  text-align: center;
  margin-bottom: 70px;
}

.books-title {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 400;
  color: var(--color-text-light);
  letter-spacing: 0.08em;
}

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

.book-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  cursor: pointer;
}

.book-cover {
  position: relative;
  width: 100%;
  max-width: 220px;
  margin: 0 auto 28px;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.book-cover img {
  width: 100%;
  filter: drop-shadow(0 20px 40px rgba(0,0,0,0.6));
  transition: var(--transition);
}

.book-card:hover .book-cover {
  transform: translateY(-12px) rotate(-1deg);
}

.book-card:hover .book-cover img {
  filter: drop-shadow(0 30px 50px rgba(201, 169, 110, 0.2));
}

.book-title {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-light);
  margin-bottom: 10px;
}

.book-cta {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
  font-style: italic;
}

/* Available At Section */
.available {
  background: var(--color-bg-dark);
  padding: 0 0 80px;
  border-top: 1px solid var(--color-border);
  margin-top: 60px;
}

.available-inner {
  padding-top: 70px;
  text-align: center;
}

.available-label {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 300;
  color: var(--color-text-light);
  letter-spacing: 0.12em;
  margin-bottom: 30px;
  text-transform: uppercase;
}

.available-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}

.store-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 132px;
  height: 64px;
  padding: 10px 18px;
  border: 1px solid rgba(201, 169, 110, 0.28);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
  color: #d4cfc9;
  filter: grayscale(100%) brightness(0.72);
  transition: transform 0.25s ease, border-color 0.25s ease, background-color 0.25s ease, filter 0.25s ease;
}

.store-logo:hover {
  background: rgba(201, 169, 110, 0.09);
  border-color: rgba(201, 169, 110, 0.6);
  filter: grayscale(0%) brightness(1);
  transform: translateY(-2px);
}

.store-logo img {
  height: 34px;
  width: auto;
}

.store-logo--amazon {
  gap: 11px;
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.store-logo--amazon img {
  width: 32px;
  height: 32px;
  padding: 4px;
  border-radius: 7px;
  background: #ffffff;
  object-fit: contain;
}

.store-logo--amazon span {
  color: #f3f3f3;
}

/* ========================================
   EBOOK SECTION
   ======================================== */
.ebook {
  background: var(--color-bg);
  padding: 100px 0;
}

.ebook-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 80px;
  align-items: center;
}

.ebook-image {
  position: relative;
}

.ebook-image img {
  width: 100%;
  border-radius: 4px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 0 1px var(--color-border);
}

.ebook-content {
  padding: 20px 0;
}

.ebook-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 20px;
  font-style: italic;
}

.ebook-title {
  font-family: var(--font-mono);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 700;
  color: var(--color-text-light);
  line-height: 1.3;
  margin-bottom: 20px;
}

.ebook-description {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--color-text-muted);
  line-height: 1.8;
  margin-bottom: 36px;
  font-style: italic;
}

/* ========================================
   SUBSCRIBE SECTION
   ======================================== */
.subscribe {
  background: #0c0c0c;
  padding: 100px 0;
  text-align: center;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.subscribe-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 16px;
}

.subscribe-title {
  font-family: var(--font-mono);
  font-size: clamp(1.2rem, 2.5vw, 1.7rem);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-text-light);
  margin-bottom: 48px;
  font-weight: 400;
}

.subscribe-form {
  display: flex;
  align-items: stretch;
  max-width: 540px;
  margin: 0 auto;
  gap: 0;
}

.subscribe-input {
  flex: 1;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.15);
  border-right: none;
  padding: 14px 20px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--color-text-light);
  outline: none;
  transition: var(--transition);
}

.subscribe-input::placeholder {
  color: var(--color-text-muted);
}

.subscribe-input:focus {
  border-color: var(--color-gold);
  background: rgba(201, 169, 110, 0.05);
}

.subscribe-btn {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.25);
  padding: 14px 28px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-light);
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.subscribe-btn:hover {
  background: var(--color-gold);
  border-color: var(--color-gold);
  color: var(--color-bg-dark);
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
  background: var(--color-bg-footer);
  padding: 70px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 2fr 1fr;
  gap: 60px;
  margin-bottom: 60px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 0;
}

.footer-logo-icon {
  width: 42px;
  height: 42px;
  opacity: 0.85;
}

.footer-logo-name {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--color-text-light);
}

.footer-logo-name strong {
  font-weight: 700;
  color: var(--color-gold);
}

.footer-logo-sub {
  font-family: var(--font-mono);
  font-size: 0.5rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-top: 4px;
}

.footer-nav {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  align-content: flex-start;
}

.footer-nav a {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  color: var(--color-text-muted);
  transition: var(--transition);
}

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

.footer-social {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-content: flex-start;
}

.footer-social a {
  width: 38px;
  height: 38px;
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  transition: var(--transition);
}

.footer-social a:hover {
  border-color: var(--color-gold);
  color: var(--color-gold);
  transform: translateY(-3px);
  box-shadow: var(--shadow-gold);
}

.footer-social svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
}

.footer-bottom {
  border-top: 1px solid var(--color-border);
  padding-top: 28px;
  text-align: center;
}

.footer-copyright {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
}

/* ========================================
   SCROLL TO TOP
   ======================================== */
.scroll-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 44px;
  height: 44px;
  background: rgba(15, 15, 15, 0.9);
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 100;
  opacity: 0;
  transform: translateY(16px);
  transition: var(--transition);
  backdrop-filter: blur(10px);
}

.scroll-top.visible {
  opacity: 1;
  transform: translateY(0);
}

.scroll-top:hover {
  border-color: var(--color-gold);
  background: rgba(201, 169, 110, 0.1);
}

.scroll-top svg {
  width: 16px;
  height: 16px;
  fill: var(--color-text-muted);
}

.scroll-top:hover svg {
  fill: var(--color-gold);
}

/* ========================================
   ANIMATIONS
   ======================================== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.animate-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.animate-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.animate-in-delay-1 { transition-delay: 0.1s; }
.animate-in-delay-2 { transition-delay: 0.2s; }
.animate-in-delay-3 { transition-delay: 0.3s; }

/* ========================================
   MOBILE NAV OVERLAY
   ======================================== */
.mobile-menu {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 0;
  padding: 82px clamp(24px, 8vw, 64px) 46px;
  background: rgba(6, 6, 6, 0.96);
  z-index: 2000;
  backdrop-filter: blur(20px);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-16px);
  transition: opacity 0.28s ease, transform 0.28s ease;
}

.mobile-menu.open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.mobile-menu-brand {
  display: block;
  width: min(100%, 620px);
  margin: 0 auto 34px;
  padding: 0 44px 28px 0;
  border-bottom: 1px solid rgba(172, 140, 106, 0.45);
}

.mobile-menu-brand img {
  display: block;
  width: min(100%, 590px);
  height: auto;
  max-height: 76px;
  object-fit: contain;
  object-position: left center;
}

.mobile-menu nav {
  display: flex;
  width: min(100%, 620px);
  margin: 0 auto;
  flex-direction: column;
}

.mobile-menu a {
  font-family: var(--font-mono);
  font-size: clamp(1rem, 2.8vw, 1.28rem);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-text);
  transition: color 0.2s ease, padding-left 0.2s ease, background-color 0.2s ease;
}

.mobile-menu nav a {
  padding: 18px 0;
  border-bottom: 1px solid rgba(172, 140, 106, 0.36);
}

.mobile-menu a:hover {
  color: var(--color-gold);
  padding-left: 10px;
}

.mobile-menu-close {
  position: absolute;
  top: 22px;
  right: clamp(22px, 6vw, 54px);
  width: 44px;
  height: 44px;
  font-family: var(--font-mono);
  font-size: 2rem;
  line-height: 1;
  color: var(--color-gold);
  cursor: pointer;
  background: rgba(6, 6, 6, 0.82);
  border: 1px solid rgba(172, 140, 106, 0.62);
  border-radius: 50%;
  padding: 0 0 4px;
  transition: color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.mobile-menu-close:hover,
.mobile-menu-close:focus-visible {
  color: #ffffff;
  border-color: var(--color-gold);
  transform: rotate(90deg);
  outline: none;
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 1024px) {
  .nav-social { display: none; }
  .books-grid { gap: 30px; }
  .about-grid { gap: 50px; }
}

@media (max-width: 768px) {
  .container { padding: 0 24px; }
  .nav-inner { padding: 0 24px; }
  
  .nav-links,
  .nav-social { display: none; }
  
  .nav-hamburger { display: flex; }
  
  .hero-portrait img { height: 60vh; }
  
  .about-grid,
  .ebook-grid { grid-template-columns: 1fr; gap: 40px; }
  
  .books-grid { grid-template-columns: 1fr; max-width: 300px; margin: 0 auto; }
  
  .footer-grid { grid-template-columns: 1fr; gap: 40px; }
  
  .section { padding: 70px 0; }
  
  .subscribe-form { flex-direction: column; }
  .subscribe-input { border-right: 1px solid rgba(255,255,255,0.15); border-bottom: none; }

  .available-logos { gap: 40px; }
}

@media (max-width: 480px) {
  .hero-name { font-size: 1.6rem; }
  .hero-tagline { letter-spacing: 0.25em; }
}

/* ========================================
   ROUNDED IMAGES & ELEGANT FADE-IN
   ======================================== */
.rounded-img,
.book-cover img,
.ebook-image img,
.about-banner-img,
.phyllis-img {
  border-radius: 16px !important;
  overflow: hidden;
}

/* Subtle, elegant Fade-In Animation */
.animate-in {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1), transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.animate-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ========================================
   PHYLLIS BARASH 2-COLUMN LAYOUT (AS IN SCREENSHOT)
   ======================================== */
.phyllis-grid {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 50px;
  align-items: start;
  max-width: 1100px;
  margin: 0 auto;
}

.phyllis-photo-wrap {
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #000000;
}

.phyllis-photo-wrap img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 16px;
  filter: contrast(1.03) brightness(0.98);
}

.phyllis-details h2 {
  font-family: var(--font-mono);
  font-size: 2.2rem;
  font-weight: 400;
  color: #ffffff;
  margin-bottom: 24px;
  letter-spacing: 0.04em;
}

.phyllis-details .phyllis-name-lead {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-bottom: 16px;
}

.phyllis-details p {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  line-height: 1.85;
  color: var(--color-text-muted);
  margin-bottom: 20px;
}

/* ========================================
   BOOKS PAGE 4-COLUMN GRID & BUY BUTTONS
   ======================================== */
.books-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 48px 24px;
  max-width: 1200px;
  margin: 0 auto;
  align-items: stretch;
}

.book-grid-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
  height: 100%;
}

.book-grid-cover {
  width: 100% !important;
  height: 360px !important;
  min-height: 360px !important;
  max-height: 360px !important;
  flex-shrink: 0 !important;
  box-sizing: border-box !important;
  border-radius: 16px !important;
  overflow: hidden !important;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 20px !important;
  background: #060606;
  position: relative !important;
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.4s cubic-bezier(0.25, 1, 0.5, 1), border-color 0.4s ease;
}

.book-grid-cover img {
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: cover !important;
  object-position: center top !important;
  display: block !important;
  border-radius: 16px !important;
  box-sizing: border-box !important;
}

/* White background variant for graphic novel illustrations */
.book-grid-cover.white-bg {
  background: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.2) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.book-grid-cover.white-bg img {
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain !important;
  object-position: center !important;
  padding: 12px !important;
  box-sizing: border-box !important;
  border-radius: 16px !important;
  display: block !important;
}

.book-grid-card:hover .book-grid-cover {
  transform: translateY(-8px);
  box-shadow: 0 24px 48px rgba(201, 169, 110, 0.25);
  border-color: rgba(201, 169, 110, 0.3);
}

.btn-buy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #a49685;
  color: #000000;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 11px 28px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  margin-top: auto !important;
}

.btn-buy:hover {
  background: #ffffff;
  color: #000000;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(255, 255, 255, 0.2);
}

@media (max-width: 1024px) {
  .books-grid-4 {
    grid-template-columns: repeat(2, 1fr);
    gap: 36px 24px;
  }
}

@media (max-width: 600px) {
  .books-grid-4 {
    grid-template-columns: 1fr;
    max-width: 300px;
    margin: 0 auto;
  }
}
