/* For the Love of Mr. Jones Podcast — Styles */
:root{
  --bg:#0d0d0f;
  --panel:#121218;
  --ink:#eaeaf2;
  --muted:#b9b9c6;
  --brand:#a86bf0;
  --brand-2:#ff5aa5;
  --accent:#ffd166;
  --card:#171722;
  --line:#2a2a38;
}

*{box-sizing:border-box}
html,body{margin:0;padding:0}
body{
  font-family:Poppins,system-ui,-apple-system,Segoe UI,Roboto,"Helvetica Neue",Arial,sans-serif;
  color:var(--ink);
  background: radial-gradient(1200px 800px at 20% -10%, #1a1a28 0%, var(--bg) 40%) no-repeat fixed,
              linear-gradient(180deg,#0b0b10 0%,#0d0d0f 100%);
  line-height:1.6;
}

/* Layout */
.container{width:min(1100px,92%);margin-inline:auto}
.site-header{
  position:sticky;top:0;z-index:20;
  background:rgba(13,13,15,.82);backdrop-filter:saturate(140%) blur(8px);
  border-bottom:1px solid var(--line);
}
.header-inner{
  display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:1rem 0;
}
.brand{display:flex;align-items:center;gap:1rem}
.logo{width:56px;height:56px;object-fit:contain;border-radius:10px;border:1px solid var(--line);background:#0f0f15}
.brand h1{margin:0;font-size:1.35rem;font-weight:700;letter-spacing:.2px}
.brand h1 span{color:var(--brand)}
.tag{margin:.1rem 0 0;color:var(--muted);font-size:.9rem}

.nav a{color:var(--ink);text-decoration:none;margin-left:1rem;opacity:.9}
.nav a:hover{opacity:1;color:var(--brand)}

/* --- SLIM PURPLE AD PLACEHOLDER --- */
.adbar {
  display:block;
  text-align:center;
  padding:4px 0;
}

.adbar .ad-placeholder {
  background:#121218;
  border:1px dashed #a86bf0;  /* purple accent */
  border-radius:8px;
  color:#a86bf0;
  font-size:0.8rem;
  line-height:1.3;
  padding:6px 8px;
  max-width:90%;
  margin:0 auto;
  opacity:0.9;
}

@media (max-width:600px){
  .adbar .ad-placeholder{
    font-size:0.75rem;
    padding:4px 6px;
  }
}

/* Hero */
.hero{padding:48px 0;border-bottom:1px solid var(--line)}
.hero-inner{display:grid;grid-template-columns:1.1fr .9fr;align-items:center;gap:2rem}
.hero-copy h2{font-size:2rem;margin:0 0 .5rem}
.hero-copy p{color:var(--muted);margin:.2rem 0 1rem;max-width:55ch}
.cta-row{display:flex;gap:.75rem;flex-wrap:wrap}
.btn{
  display:inline-block;padding:.8rem 1.1rem;border-radius:12px;border:1px solid var(--line);
  text-decoration:none;color:var(--ink);font-weight:600;transition:.2s;
}
.btn.primary{background:linear-gradient(135deg,var(--brand) 0%, var(--brand-2) 100%);border:none;color:#0c0612}
.btn.ghost:hover{border-color:var(--brand);color:var(--brand)}
.hero-art{
  height:260px;border-radius:16px;border:1px solid var(--line);
  background:
    radial-gradient(120px 80px at 10% 20%, rgba(255,255,255,.08), transparent 60%),
    radial-gradient(120px 80px at 80% 30%, rgba(255,90,165,.12), transparent 60%),
    radial-gradient(140px 90px at 40% 80%, rgba(168,107,240,.18), transparent 60%),
    url('../img/hero-wave.svg');
  background-size:cover;
}

/* Blocks */
.block{padding:56px 0;border-bottom:1px solid var(--line)}
.block.alt{background:linear-gradient(180deg,#0d0d10 0%, #0f0f15 100%)}
.block-head h3{margin:0 0 .25rem;font-size:1.5rem}
.block-head p{margin:0 0 1.25rem;color:var(--muted)}

/* Player */
.player{border:1px solid var(--line);border-radius:16px;overflow:hidden;box-shadow:0 8px 24px rgba(0,0,0,.35)}

/* Products */
.products{display:grid;grid-template-columns:1fr 1fr;gap:1rem}
.card{
  background:var(--card);border:1px solid var(--line);border-radius:16px;overflow:hidden;
  display:flex;flex-direction:column;min-height:100%;
}
.card-img{aspect-ratio:16/9;width:100%;object-fit:cover;border-bottom:1px solid var(--line)}
.card-body{padding:1rem}
.card-body h4{margin:.2rem 0 .6rem}
.bullets{margin:0 0 .9rem;padding-left:1.1rem;color:var(--muted)}
.price-row{display:flex;align-items:center;justify-content:space-between}
.price{font-weight:700;font-size:1.25rem}

/* Contact */
.contact-simple .fineprint{color:var(--muted);font-size:.9rem;margin-top:.5rem}

/* Footer */
.site-footer{padding:28px 0}
.footer-inner{display:flex;align-items:center;justify-content:space-between;border-top:1px solid var(--line);padding-top:1rem}
.socials a{color:var(--muted);text-decoration:none;margin-left:1rem}
.socials a:hover{color:var(--brand)}

/* Responsive */
@media (max-width: 900px){
  .hero-inner{grid-template-columns:1fr}
  .products{grid-template-columns:1fr}
}

/* --- CONTACT FORM STYLING --- */
.contact-form {
  display:flex;
  flex-direction:column;
  gap:.75rem;
  margin-top:1.5rem;
  max-width:480px;
}

.contact-form label {
  font-weight:600;
  color:var(--muted);
  font-size:.9rem;
}

.contact-form input,
.contact-form textarea {
  background:#18181f;
  border:1px solid var(--line);
  border-radius:8px;
  color:var(--ink);
  padding:.6rem .8rem;
  font-size:.9rem;
  width:100%;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline:none;
  border-color:var(--brand);
  box-shadow:0 0 0 2px rgba(168,107,240,.3);
}

.contact-form button {
  margin-top:.5rem;
  align-self:flex-start;
  cursor:pointer;
}

/* Product Image Optimization */
.card-img {
  width: 100%;
  height: auto;
  max-height: 420px;
  object-fit: contain;
  display: block;
  margin: 0 auto 1rem auto;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* Equal card height for consistency */
.products {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
}

.card {
  flex: 1 1 300px;
  max-width: 450px;
  background: linear-gradient(180deg, #171722, #111);
  border-radius: 12px;
  padding: 1rem;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Make Buy buttons align neatly */
.price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
}

/* --- Responsive Hero Image Fix --- */
.hero-art {
  width: 100%;
  max-width: 100%;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.35);
}

.hero-art img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  object-fit: cover;
}

/* Make sure it resizes smoothly on mobile */
@media (max-width: 768px) {
  .hero-art {
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.25);
  }

  .hero-art img {
    width: 100%;
    height: auto;
    border-radius: 12px;
  }
}

@media (max-width: 900px) {
  .site-header {
    position: static !important;
    backdrop-filter: none !important;
    background: #0d0d0f !important;
  }
}

@media (max-width: 900px) {
  .hero-copy p,
  .hero-copy h2,
  .block-head p,
  .block-head h3 {
    max-width: 100% !important;
    text-align: left !important;
  }
}

@media (max-width: 900px) {
  .nav a {
    display: block;
    width: 100%;
    padding: 12px;
    margin: 6px 0;
    text-align: center;
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
    border-radius: 10px;
    font-weight: 600;
    color: #fff !important;
  }
}

/* --- FULL MOBILE UPGRADE --- */
@media (max-width: 900px) {

  /* Center hero section */
  .hero {
    padding: 32px 0;
    text-align: center;
  }

  .hero-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
  }

  .hero-copy h2 {
    font-size: 1.8rem;
    line-height: 1.3;
    text-align: center !important;
    width: 100%;
  }

  .hero-copy p {
    width: 100%;
    max-width: 90% !important;
    margin: 0 auto 1rem auto;
    text-align: center !important;
    line-height: 1.5;
  }

  /* Center hero CTA buttons */
  .cta-row {
    width: 100%;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
  }

  .btn {
    width: 90%;
    text-align: center;
    padding: 1rem;
    font-size: 1rem;
  }

  /* Make top navigation links into centered vertical buttons */
  .nav {
    width: 100%;
  }

  .nav a {
    display: block;
    width: 90%;
    margin: 8px auto;
    padding: 14px;
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
    border-radius: 12px;
    font-weight: 600;
    color: #fff !important;
    text-align: center;
  }

  /* Ensure header is not sticky */
  .site-header {
    position: static !important;
    background: #0d0d0f !important;
    padding-bottom: 8px;
  }

  /* Widen all text blocks */
  .block-head h3,
  .block-head p {
    max-width: 100% !important;
    text-align: center !important;
  }

  /* Add spacing to make scrolling feel smoother */
  .block {
    padding: 40px 0;
  }

}

/* --- FULL MOBILE UPGRADE --- */
@media (max-width: 900px) {

  /* Center hero section */
  .hero {
    padding: 32px 0;
    text-align: center;
  }

  .hero-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
  }

  .hero-copy h2 {
    font-size: 1.8rem;
    line-height: 1.3;
    text-align: center !important;
    width: 100%;
  }

  .hero-copy p {
    width: 100%;
    max-width: 90% !important;
    margin: 0 auto 1rem auto;
    text-align: center !important;
    line-height: 1.5;
  }

  /* Center hero CTA buttons */
  .cta-row {
    width: 100%;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
  }

  .btn {
    width: 90%;
    text-align: center;
    padding: 1rem;
    font-size: 1rem;
  }

  /* Make top navigation links into centered vertical buttons */
  .nav {
    width: 100%;
  }

  .nav a {
    display: block;
    width: 90%;
    margin: 8px auto;
    padding: 14px;
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
    border-radius: 12px;
    font-weight: 600;
    color: #fff !important;
    text-align: center;
  }

  /* Ensure header is not sticky */
  .site-header {
    position: static !important;
    background: #0d0d0f !important;
    padding-bottom: 8px;
  }

  /* Widen all text blocks */
  .block-head h3,
  .block-head p {
    max-width: 100% !important;
    text-align: center !important;
  }

  /* Add spacing to make scrolling feel smoother */
  .block {
    padding: 40px 0;
  }

}

/* -------------------------------------------
   GLOBAL SMOOTH SCROLLING
------------------------------------------- */
html {
  scroll-behavior: smooth;
}

/* Fade-in animations for scroll */
.fade-in {
  opacity: 0;
  transform: translateY(25px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Section wave divider */
.section-divider {
  width: 100%;
  height: 60px;
  background: url('assets/img/wave-divider.svg') no-repeat center;
  background-size: cover;
  margin: -20px 0 20px;
}

/* Parallax hero effect */
.hero {
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
  position: relative;
}

/* Gradient Pulse Buttons */
.btn, .nav a {
  position: relative;
  overflow: hidden;
}

.btn::after, .nav a::after {
  content: "";
  position: absolute;
  top: 0; left: -100%;
  width: 200%; height: 100%;
  background: rgba(255,255,255,0.15);
  transform: skewX(-20deg);
  transition: 0.5s;
}

.btn:hover::after,
.nav a:hover::after {
  left: 100%;
}

.btn:hover, .nav a:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(168,107,240,0.35);
}

/* Sliding Mobile Drawer */
@media (max-width: 900px) {
  .mobile-drawer {
    position: fixed;
    top: 0;
    right: -100%;
    width: 75%;
    height: 100%;
    background: #111;
    padding: 2.5rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.4rem;
    transition: 0.4s ease;
    z-index: 99999;
    box-shadow: -4px 0 20px rgba(0,0,0,0.5);
  }

  .mobile-drawer a {
    font-size: 1.2rem;
    color: var(--ink);
    text-decoration: none;
    font-weight: 600;
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
    padding: 14px 16px;
    border-radius: 12px;
    text-align: center;
  }

  .mobile-drawer.open {
    right: 0;
  }
}
