/* ===== CSS Variables — Red primary, Yellow accents, Blue minor ===== */
:root {
  --cream: #F8F4EA;
  --cream-dark: #EFE8D8;
  --black: #0D0D0D;
  --black-soft: #1A1A1A;
  --red: #E01B24;           /* was blue — now primary */
  --red-light: #F03A42;
  --yellow: #F5C211;        /* was red — now accents/labels */
  --blue: #1A5FB4;          /* minor / secondary */
  --blue-light: #3584E4;
  --text: #121212;
  --text-muted: #555555;
  --white: #FFFFFF;
  --shadow: 0 4px 24px rgba(13, 13, 13, 0.09);
  --radius: 8px;
  --transition: 0.25s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Source Sans 3', system-ui, sans-serif;
  background-color: var(--cream);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 600;
  line-height: 1.2;
}

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

ul {
  list-style: none;
}

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

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  padding: 0.9rem 1.85rem;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  border-radius: var(--radius);
  transition: all var(--transition);
  text-align: center;
}

.btn-primary {
  background-color: var(--red);
  color: var(--white);
}

.btn-primary:hover {
  background-color: var(--red-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(224, 27, 36, 0.3);
}

.btn-secondary {
  background-color: transparent;
  color: var(--black);
  border: 2px solid var(--black);
}

.btn-secondary:hover {
  background-color: var(--black);
  color: var(--cream);
}

.btn-amazon {
  background-color: #FF9900;
  color: var(--black);
}

.btn-amazon:hover {
  background-color: #e68a00;
  transform: translateY(-2px);
}

/* ===== Navigation ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background-color: rgba(248, 244, 234, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(13, 13, 13, 0.07);
}

.nav-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 1.05rem;
  max-width: 280px;
  line-height: 1.2;
  font-family: 'Playfair Display', serif;
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--red);
  letter-spacing: 0.04em;
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--yellow);
  transition: width var(--transition);
}

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

.cart-btn {
  font-size: 1.1rem;
  padding: 0.4rem 0.85rem;
  background-color: var(--black);
  color: var(--cream);
  border-radius: 50px;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: background var(--transition);
}

.cart-btn:hover {
  background-color: var(--red);
}

#cartCount {
  background-color: var(--yellow);
  color: var(--black);
  font-size: 0.75rem;
  font-weight: 700;
  width: 1.3rem;
  height: 1.3rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.menu-toggle {
  display: none;
  font-size: 1.5rem;
  color: var(--black);
}

/* ===== Cart Sidebar ===== */
.cart-sidebar {
  position: fixed;
  top: 0;
  right: -400px;
  width: 380px;
  max-width: 100%;
  height: 100%;
  background-color: var(--cream);
  z-index: 2000;
  box-shadow: -4px 0 30px rgba(0,0,0,0.15);
  transition: right 0.3s ease;
  display: flex;
  flex-direction: column;
}

.cart-sidebar.open {
  right: 0;
}

.cart-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(13,13,13,0.45);
  z-index: 1500;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

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

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

.cart-header h3 {
  font-size: 1.3rem;
}

.close-cart {
  font-size: 1.8rem;
  color: var(--text-muted);
  line-height: 1;
}

.close-cart:hover {
  color: var(--red);
}

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 1.5rem;
}

.empty-cart {
  color: var(--text-muted);
  text-align: center;
  padding: 2rem 0;
}

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

.cart-item-info h4 {
  font-size: 1rem;
  margin-bottom: 0.2rem;
}

.cart-item-info p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.remove-item {
  color: var(--red);
  font-size: 0.85rem;
  font-weight: 600;
}

.remove-item:hover {
  text-decoration: underline;
}

.cart-footer {
  padding: 1.5rem;
  border-top: 1px solid var(--cream-dark);
}

.cart-total {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 1rem;
  text-align: right;
}

.checkout-btn {
  width: 100%;
  padding: 1rem;
  background-color: var(--red);
  color: var(--white);
  font-weight: 600;
  border-radius: var(--radius);
  transition: background var(--transition);
}

.checkout-btn:hover {
  background-color: var(--red-light);
}

/* ===== Hero ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6rem 1.5rem 4rem;
  position: relative;
  background: linear-gradient(160deg, var(--cream) 0%, var(--cream-dark) 100%);
  overflow: hidden;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 820px;
}

.hero-tagline {
  font-size: 0.95rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 1.5rem;
  font-weight: 600;
}

.hero h1 {
  font-size: clamp(2.8rem, 7vw, 5.1rem);
  color: var(--black);
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

.hero-sub {
  font-size: 1.3rem;
  color: var(--text);
  margin-bottom: 2.75rem;
  font-weight: 400;
  line-height: 1.55;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-accent {
  position: absolute;
  bottom: -100px;
  right: -100px;
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, rgba(224, 27, 36, 0.12) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

/* ===== Section Headers ===== */
.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-label {
  display: inline-block;
  font-size: 0.8rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--yellow);
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.section-header h2 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  color: var(--black);
}

.section-desc {
  max-width: 520px;
  margin: 1rem auto 0;
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* ===== About / Presence ===== */
.about {
  padding: 6rem 0;
  background-color: var(--white);
}

.about-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 4rem;
  align-items: start;
}

.about-text .lead {
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--red);
  margin-bottom: 1.5rem;
  font-family: 'Playfair Display', serif;
}

.about-text p {
  margin-bottom: 1.25rem;
  font-size: 1.08rem;
  color: var(--text);
}

.about-stats {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.stat {
  background-color: var(--cream);
  padding: 1.5rem 1.6rem;
  border-radius: var(--radius);
  border-left: 5px solid var(--red);
}

.stat-number {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: 1.55rem;
  color: var(--red);
  margin-bottom: 0.2rem;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--blue);   /* minor blue */
}

/* ===== Works ===== */
.works {
  padding: 6rem 0;
  background-color: var(--cream);
}

.works-note {
  text-align: center;
  margin-top: 2.5rem;
  font-size: 0.95rem;
  color: var(--text-muted);
  font-style: italic;
}

/* Featured Album */
.featured-album {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 2.5rem;
  background: var(--white);
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 2rem;
  align-items: center;
}

.featured-cover {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 6px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.featured-info h3 {
  font-size: 1.7rem;
  margin-bottom: 0.35rem;
  color: var(--black);
}

.featured-info .album-type {
  font-size: 0.95rem;
  color: var(--blue);   /* minor blue */
  margin-bottom: 1rem;
}

.featured-info .album-desc {
  font-size: 1.05rem;
  margin-bottom: 1.4rem;
  line-height: 1.6;
}

.featured-info .album-price {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--red);
  margin-bottom: 1.25rem;
}

/* Music grid for secondary albums */
.music-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.75rem;
  margin-top: 1rem;
}

.music-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform var(--transition);
}

.music-card:hover {
  transform: translateY(-4px);
}

.music-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
}

.music-card-info {
  padding: 1.25rem;
}

.music-card-info h3 {
  font-size: 1.2rem;
  margin-bottom: 0.3rem;
}

.music-card-info .type {
  font-size: 0.85rem;
  color: var(--blue);
  margin-bottom: 0.6rem;
}

.music-card-info .price {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--red);
  margin-bottom: 1rem;
}

/* ===== Book Section ===== */
.book {
  padding: 6rem 0;
  background-color: var(--white);
}

.book-card {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 3rem;
  max-width: 800px;
  margin: 0 auto;
  background: var(--cream);
  padding: 2.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  align-items: center;
}

.book-cover {
  width: 100%;
  aspect-ratio: 2/3;
  background: linear-gradient(160deg, var(--red), var(--black));
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cream);
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  text-align: center;
  padding: 1rem;
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.book-info h3 {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}

.book-info .book-meta {
  font-size: 0.95rem;
  color: var(--blue);
  margin-bottom: 1.25rem;
}

.book-info p {
  margin-bottom: 1.5rem;
  font-size: 1.05rem;
  line-height: 1.6;
}

/* ===== Shop ===== */
.shop {
  padding: 6rem 0;
  background-color: var(--cream);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.75rem;
}

.product-card {
  background-color: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}

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

.product-image {
  overflow: hidden;
  height: 240px;
  position: relative;
  background-size: cover;
  background-position: center;
}

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

.badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background-color: var(--yellow);
  color: var(--black);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.3rem 0.7rem;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  z-index: 2;
}

.product-info {
  padding: 1.25rem;
}

.product-info h3 {
  font-size: 1.15rem;
  margin-bottom: 0.25rem;
}

.product-type {
  font-size: 0.85rem;
  color: var(--blue);
  margin-bottom: 0.75rem;
}

.product-price {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--red);
  margin-bottom: 1rem;
}

.product-info .btn {
  width: 100%;
  padding: 0.7rem;
  font-size: 0.9rem;
}

/* ===== Contact ===== */
.contact {
  padding: 6rem 0;
  background-color: var(--white);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
  align-items: start;
}

.contact-info p {
  margin-bottom: 1.5rem;
  font-size: 1.08rem;
}

.contact-details p {
  margin-bottom: 1.25rem;
}

.contact-details strong {
  color: var(--yellow);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.contact-details a {
  color: var(--red);
}

.contact-details a:hover {
  text-decoration: underline;
}

.contact-form {
  background-color: var(--cream);
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--text);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid var(--cream-dark);
  border-radius: var(--radius);
  background-color: var(--white);
  font-family: inherit;
  font-size: 1rem;
  transition: border-color var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--red);
}

.contact-form .btn {
  width: 100%;
}

/* ===== Footer ===== */
.footer {
  background-color: var(--black);
  color: var(--cream);
  padding: 3.5rem 0 2rem;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-brand .logo {
  font-size: 1.05rem;
  max-width: 280px;
  line-height: 1.2;
  color: var(--yellow);
  display: block;
  margin-bottom: 0.3rem;
}

.footer-brand p {
  font-size: 0.9rem;
  opacity: 0.8;
}

.footer-links {
  display: flex;
  gap: 1.75rem;
}

.footer-links a {
  font-size: 0.95rem;
  opacity: 0.85;
}

.footer-links a:hover {
  color: var(--yellow);
  opacity: 1;
}

.footer-bottom {
  border-top: 1px solid rgba(248, 244, 234, 0.15);
  padding-top: 1.5rem;
  text-align: center;
  font-size: 0.85rem;
  opacity: 0.7;
}

.demo-note {
  margin-top: 0.5rem;
  font-size: 0.8rem;
  color: var(--yellow);
  opacity: 0.9;
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .about-grid,
  .contact-grid,
  .featured-album,
  .book-card {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .featured-cover,
  .book-cover {
    max-width: 260px;
    margin: 0 auto;
  }
}

@media (max-width: 700px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--cream);
    flex-direction: column;
    padding: 1.5rem;
    gap: 1rem;
    border-bottom: 1px solid rgba(13,13,13,0.08);
  }

  .nav-links.open {
    display: flex;
  }

  .menu-toggle {
    display: block;
  }

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

  .btn {
    width: 100%;
    max-width: 280px;
  }

  .cart-sidebar {
    width: 100%;
  }
}

/* Book cover image */
.book-cover-img {
  width: 100%;
  max-width: 220px;
  aspect-ratio: 2/3;
  object-fit: cover;
  border-radius: 4px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
  display: block;
}

.cart-note {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 0.75rem;
}

/* Full name logo adjustments */
.logo {
  font-size: 0.95rem !important;
  letter-spacing: 0.02em !important;
  white-space: nowrap;
}

@media (max-width: 900px) {
  .logo {
    font-size: 0.8rem !important;
    max-width: 180px;
    white-space: normal;
  }
}

.footer-brand .logo {
  font-size: 1.1rem !important;
  white-space: normal;
  max-width: none;
}

/* ===== Elsewhere (YouTube + Substack) ===== */
.elsewhere {
  padding: 6rem 0;
  background-color: var(--cream);
}

.elsewhere-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  max-width: 800px;
  margin: 0 auto;
}

.elsewhere-card {
  background: var(--white);
  padding: 2.5rem 2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-align: center;
  transition: transform var(--transition), box-shadow var(--transition);
  display: block;
  color: inherit;
}

.elsewhere-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 35px rgba(0,0,0,0.12);
}

.elsewhere-icon {
  font-size: 2.2rem;
  margin-bottom: 1rem;
  line-height: 1;
}

.elsewhere-card.youtube .elsewhere-icon {
  color: #FF0000;
}

.elsewhere-card.substack .elsewhere-icon {
  color: #FF6719;
}

.elsewhere-card h3 {
  font-size: 1.5rem;
  margin-bottom: 0.4rem;
}

.elsewhere-card p {
  color: var(--blue);
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
}

.elsewhere-cta {
  display: inline-block;
  font-weight: 600;
  color: var(--red);
  font-size: 0.95rem;
}

.elsewhere-card:hover .elsewhere-cta {
  text-decoration: underline;
}

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

/* ===== Mobile image fixes (iPhone cropping) ===== */
@media (max-width: 700px) {
  .featured-album {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 1.5rem;
  }

  .featured-cover {
    max-width: 280px;
    width: 100%;
    margin: 0 auto 1.5rem;
    aspect-ratio: 1 / 1;
    object-fit: contain;          /* prevent weird cropping */
    background: #f0ebe0;
  }

  .product-image {
  overflow: hidden;
    height: auto;
    aspect-ratio: 1 / 1;
  }

  .product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;          /* show full cover without cutting */
    background: #f0ebe0;
  }

  .book-card {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 1.75rem;
  }

  .book-cover-img {
    max-width: 200px;
    margin: 0 auto 1.5rem;
    object-fit: contain;
  }

  .featured-info,
  .book-info {
    text-align: center;
  }

  .featured-info .btn,
  .book-info .btn {
    width: 100%;
    max-width: 260px;
  }
}
