/*
  HENRY NGUGI METHU & HUSTLEZANATION 
  Multi-Page Editorial Design System
  Inspired by modern fashion/editorial aesthetics (Warm Beige, Cream, Charcoal, Crimson)
*/

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@500;600;700;800;900&family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
  --bg-page: #f8f6f0;       /* Warm Cream / Off-White */
  --bg-card: #ffffff;       /* Pure White Card */
  --bg-dark: #0f0f12;       /* Rich Charcoal / Near Black */
  --bg-dark-card: #18181d;
  
  --text-main: #18181b;     /* Deep Charcoal Body Text */
  --text-muted: #52525b;    /* Slate Muted Text */
  --text-light: #f4f4f5;    /* Light Text for dark components */
  --text-dim: #a1a1aa;
  
  --brand-burgundy: #7a1f36; /* Deep Burgundy Accent */
  --brand-crimson: #9e1b32;  /* Vibrant Crimson Accent */
  --brand-gold: #c59b27;     /* Soft Editorial Gold */
  --brand-accent: #18181b;
  
  --border-light: rgba(24, 24, 27, 0.12);
  --border-dark: rgba(255, 255, 255, 0.12);
  
  --font-heading: 'Montserrat', system-ui, -apple-system, sans-serif;
  --font-body: 'Poppins', system-ui, -apple-system, sans-serif;
  
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-full: 9999px;
  
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 20px 45px rgba(0, 0, 0, 0.14);
  
  --transition-fast: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
}

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

/* Typography Hierarchy */
h1, h2, h3, h4, .font-heading {
  font-family: var(--font-heading);
  font-weight: 800;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

p {
  font-family: var(--font-body);
  font-weight: 400;
}

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

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

.wrap {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Sticky Header & Editorial Navigation */
header.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(248, 246, 240, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-light);
  transition: var(--transition-fast);
}

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

.brand-logo {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 20px;
  letter-spacing: 0.5px;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 8px;
}

.brand-logo span.accent {
  color: var(--brand-burgundy);
}

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

.nav-link {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  position: relative;
  padding: 8px 0;
  transition: var(--transition-fast);
}

.nav-link:hover {
  color: var(--text-main);
}

/* Active Navigation Underline Indicator */
.nav-link.active {
  color: var(--text-main);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--brand-burgundy);
  border-radius: 2px;
}

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

/* Mobile Navigation Toggle */
.mobile-nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  padding: 4px;
}

.mobile-nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text-main);
  transition: var(--transition-fast);
}

.mobile-nav-drawer {
  display: none;
  position: fixed;
  top: 76px;
  left: 0;
  right: 0;
  background: var(--bg-page);
  border-bottom: 1px solid var(--border-light);
  padding: 24px;
  flex-direction: column;
  gap: 18px;
  box-shadow: var(--shadow-md);
  z-index: 99;
}

.mobile-nav-drawer.active {
  display: flex;
}

/* Editorial Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: var(--radius-full);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  transition: var(--transition-fast);
}

.btn-dark {
  background: var(--text-main);
  color: #ffffff;
  border: 2px solid var(--text-main);
}

.btn-dark:hover {
  background: #27272a;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-burgundy {
  background: var(--brand-burgundy);
  color: #ffffff;
  border: 2px solid var(--brand-burgundy);
}

.btn-burgundy:hover {
  background: #61182a;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(122, 31, 54, 0.25);
}

.btn-outline {
  background: transparent;
  color: var(--text-main);
  border: 2px solid var(--border-light);
}

.btn-outline:hover {
  border-color: var(--text-main);
  background: rgba(0, 0, 0, 0.04);
  transform: translateY(-2px);
}

/* Page Section Common */
.page-section {
  padding: 80px 0;
}

.section-header {
  margin-bottom: 40px;
}

.tag-label {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--brand-burgundy);
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.08;
  color: var(--text-main);
  margin-bottom: 14px;
}

.section-lead {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 680px;
}

/* HOME PAGE SPECIFIC STYLES */
.home-hero {
  padding: 80px 0 60px;
  border-bottom: 1px solid var(--border-light);
}

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

.hero-headline {
  font-size: clamp(38px, 5.5vw, 64px);
  line-height: 1.04;
  margin-bottom: 24px;
}

.hero-quote-box {
  border-left: 3px solid var(--brand-burgundy);
  padding-left: 20px;
  margin-bottom: 28px;
}

.hero-quote-main {
  font-size: 20px;
  font-weight: 600;
  font-style: italic;
  color: var(--text-main);
  margin-bottom: 6px;
}

.hero-quote-sub {
  font-size: 15px;
  color: var(--text-muted);
}

.hero-identity-tags {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.identity-badge {
  padding: 6px 14px;
  background: rgba(122, 31, 54, 0.08);
  border: 1px solid rgba(122, 31, 54, 0.2);
  color: var(--brand-burgundy);
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 800;
  border-radius: var(--radius-full);
}

.hero-portrait-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-light);
  aspect-ratio: 4/5;
  background: #e4dec8;
}

.hero-portrait-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Books & Published Writing Section */
.books-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 32px;
}

.book-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
}

.book-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: rgba(122, 31, 54, 0.3);
}

.book-cover {
  height: 360px;
  background: #121214;
  overflow: hidden;
  display: grid;
  place-items: center;
}

.book-cover img {
  max-height: 330px;
  max-width: 90%;
  object-fit: contain;
  transition: transform 0.4s ease;
}

.book-card:hover .book-cover img {
  transform: scale(1.04);
}

.book-info {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.book-title {
  font-size: 20px;
  margin-bottom: 6px;
}

.book-source {
  font-size: 13px;
  font-weight: 700;
  color: var(--brand-burgundy);
  margin-bottom: 12px;
}

.book-desc {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 20px;
  flex: 1;
}

/* Currently Writing Section */
.currently-writing-box {
  background: var(--bg-dark);
  color: var(--text-light);
  border-radius: var(--radius-lg);
  padding: 48px;
  margin: 40px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Hustlezanation Banner on Home */
.hustle-home-banner {
  background: linear-gradient(135deg, #18181b 0%, #0f0f12 100%);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 56px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.hustle-home-banner h2 {
  font-size: 38px;
  color: #ffffff;
}

/* ABOUT PAGE SPECIFIC STYLES */
.about-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.author-statement-card {
  background: #efe9dc;
  border-left: 4px solid var(--brand-burgundy);
  padding: 32px;
  border-radius: var(--radius-md);
  margin-bottom: 36px;
  font-size: 17px;
  line-height: 1.7;
  font-style: italic;
  font-weight: 500;
}

/* SHOP PAGE SPECIFIC STYLES (HUSTLEZANATION) */
body.shop-page {
  background-color: #0d0d11;
  color: #f4f4f5;
}

body.shop-page header.site-header {
  background: rgba(13, 13, 17, 0.92);
  border-bottom-color: var(--border-dark);
}

body.shop-page .brand-logo, body.shop-page .nav-link {
  color: #ffffff;
}

body.shop-page .nav-link {
  color: #a1a1aa;
}

body.shop-page .nav-link:hover, body.shop-page .nav-link.active {
  color: #ffffff;
}

body.shop-page .nav-link.active::after {
  background: var(--brand-crimson);
}

.shop-header-banner {
  background: linear-gradient(180deg, #181820 0%, #0d0d11 100%);
  padding: 60px 0 40px;
  border-bottom: 1px solid var(--border-dark);
}

.shop-filter-chips {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 14px;
  margin-bottom: 32px;
}

.chip-btn {
  padding: 10px 22px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-dark);
  background: var(--bg-dark-card);
  color: #a1a1aa;
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
  transition: var(--transition-fast);
}

.chip-btn:hover, .chip-btn.active {
  background: #ffffff;
  color: #0d0d11;
  border-color: #ffffff;
}

/* Shop Products Grid */
.shop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 28px;
}

.shop-card {
  background: var(--bg-dark-card);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
}

.shop-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
}

.shop-card-img {
  aspect-ratio: 1;
  background: #121216;
  position: relative;
  overflow: hidden;
}

.shop-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.shop-card:hover .shop-card-img img {
  transform: scale(1.05);
}

.shop-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--brand-crimson);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: var(--radius-full);
}

.shop-info {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.shop-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 4px;
}

.shop-price {
  font-size: 18px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 12px;
}

/* Color Swatches on Shop Card */
.swatches-row {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}

.swatch-dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid transparent;
  outline: 1px solid rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: var(--transition-fast);
}

.swatch-dot:hover, .swatch-dot.selected {
  transform: scale(1.2);
  outline-color: #ffffff;
}

/* Modal Overlay & Card */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(12px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  padding: 20px;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  background: var(--bg-dark-card);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-lg);
  max-width: 880px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  color: #ffffff;
}

.modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: grid;
  place-items: center;
  z-index: 10;
}

.size-btn {
  min-width: 44px;
  height: 40px;
  padding: 0 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-dark);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  transition: var(--transition-fast);
}

.size-btn:hover, .size-btn.selected {
  background: #ffffff;
  color: #000;
  border-color: #ffffff;
}

/* Cart Drawer */
.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(420px, 100%);
  background: #111116;
  z-index: 210;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  border-left: 1px solid var(--border-dark);
  color: #ffffff;
}

.cart-drawer.active {
  transform: translateX(0);
}

.cart-header {
  padding: 24px;
  border-bottom: 1px solid var(--border-dark);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cart-body {
  flex: 1;
  overflow-y: auto;
  padding: 24px;

  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cart-footer {
  padding: 24px;
  border-top: 1px solid var(--border-dark);
  background: #09090b;
}

/* CONTACT PAGE STYLES */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

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

.form-field label {
  display: block;
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.form-field input, .form-field textarea {
  width: 100%;
  padding: 14px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 14px;
  color: var(--text-main);
  transition: var(--transition-fast);
}

.form-field input:focus, .form-field textarea:focus {
  border-color: var(--brand-burgundy);
  outline: none;
}

/* Footer Across All Pages */
footer.site-footer {
  background: #0c0c0e;
  color: #f4f4f5;
  padding: 70px 0 32px;
  border-top: 1px solid var(--border-dark);
}

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

.footer-col h4 {
  font-size: 13px;
  color: var(--brand-gold);
  margin-bottom: 16px;
  letter-spacing: 1px;
}

.footer-col a {
  display: block;
  color: #a1a1aa;
  font-size: 14px;
  margin-bottom: 8px;
  transition: var(--transition-fast);
}

.footer-col a:hover {
  color: #ffffff;
}

.footer-bottom {
  border-top: 1px solid var(--border-dark);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  color: #71717a;
  font-size: 13px;
}

/* Responsive Rules */
@media (max-width: 900px) {
  .hero-grid, .about-hero-grid, .contact-grid {
    grid-template-columns: 1fr;
  }
  .nav-links {
    display: none;
  }
  .mobile-nav-toggle {
    display: flex;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .currently-writing-box, .hustle-home-banner {
    flex-direction: column;
    text-align: center;
    gap: 24px;
  }
}
