/* =========================================
   Retro Broadway Mysteries — Static Site
   Pixel-for-pixel rebuild from Avada/Fusion
   ========================================= */

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

:root {
  --color-white: #e8eff9;
  --color-dark-red: #750000;
  --color-light-blue: #e8eff9;
  --color-green: #65bd7d;
  --color-yellow: #f7db54;
  --color-gray: #434549;
  --color-dark-gray: #212326;
  --color-deep-purple: #150927;
  --color-red-accent: #d23639;
  --font-heading: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
  --font-body: 'Niramit', Tahoma, Geneva, sans-serif;
  --max-width: 1144px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: 0.015em;
  color: var(--color-deep-purple);
  background: var(--color-white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Skip Link --- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.skip-link:focus {
  position: fixed;
  top: 5px;
  left: 5px;
  width: auto;
  height: auto;
  padding: 15px 23px;
  background: #ddd;
  color: #444;
  z-index: 100000;
  font-size: 1em;
}

/* --- Header --- */
.site-header {
  padding: 15px 0;
  background: var(--color-white);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.site-logo {
  width: 75px;
  flex-shrink: 0;
}
.site-logo img { width: 100%; }

/* --- Nav --- */
.main-nav ul {
  display: flex;
  gap: 30px;
}
.main-nav a {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  position: relative;
  padding: 4px 0;
  transition: color 0.3s;
}
.main-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-red-accent);
  transition: width 0.3s;
}
.main-nav a:hover,
.main-nav a.active {
  color: var(--color-red-accent);
}
.main-nav a:hover::after,
.main-nav a.active::after {
  width: 100%;
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: var(--color-dark-red);
  color: var(--color-light-blue);
  border: none;
  padding: 8px 16px;
  font-size: 14px;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* --- Hero Section --- */
.hero {
  background-color: var(--color-dark-red);
  padding: 60px 0 0;
  position: relative;
  overflow: visible;
}
.hero-pattern {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background-image: url("data:image/svg+xml;utf8,%3Csvg width='120' height='120' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M1.488 30c0 15.747 12.765 28.512 28.512 28.512S58.512 45.747 58.512 30 45.747 1.488 30 1.488 1.488 14.253 1.488 30zM30 60C13.431 60 0 46.569 0 30 0 13.431 13.431 0 30 0c16.569 0 30 13.431 30 30 0 16.569-13.431 30-30 30z' fill='rgba(210,54,57,0.07)'/%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M11.47 30c0 10.234 8.296 18.53 18.53 18.53 10.234 0 18.53-8.296 18.53-18.53 0-10.234-8.296-18.53-18.53-18.53-10.234 0-18.53 8.296-18.53 18.53zM30 50c-11.046 0-20-8.954-20-20s8.954-20 20-20 20 8.954 20 20-8.954 20-20 20z' fill='rgba(210,54,57,0.07)'/%3E%3C/svg%3E");
  opacity: 1;
}
.hero .container {
  display: flex;
  align-items: center;
  gap: 40px;
  position: relative;
  z-index: 1;
  padding-bottom: 50px;
}
.hero-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100%;
}
.hero-text h1 {
  font-family: var(--font-heading);
  font-size: 64px;
  font-weight: 600;
  color: var(--color-light-blue);
  line-height: 1;
  letter-spacing: -0.015em;
  margin: 0;
}
.hero-text h2 {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 400;
  color: var(--color-light-blue);
  letter-spacing: -0.015em;
  margin: 10px 0 0;
  line-height: 1;
}
.hero-video {
  flex: 1;
  max-width: 600px;
}
.video-wrapper {
  position: relative;
  padding-top: 60%;
  background: #000;
}
.video-wrapper img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: pointer;
}
.video-wrapper .play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 68px;
  height: 48px;
  background: rgba(0, 0, 0, 0.7);
  border-radius: 12px;
  border: none;
  cursor: pointer;
  z-index: 1;
  padding: 0;
  display: grid;
  place-items: center;
  transition: background 0.2s;
}
.video-wrapper .play-btn:hover {
  background: #d23639;
}
.video-wrapper .play-btn svg { display: block; }
.video-wrapper iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}


/* --- Curtain Separator (inside hero) --- */
.curtain-sep-inner {
  height: 60px;
  position: relative;
  z-index: 2;
  background-image: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1440' height='100' viewBox='0 0 1440 100' preserveAspectRatio='none' fill='%23150927'%3E%3Cpath d='M0,100 H1440 V0 C1320,70 1200,80 1080,30 C960,80 840,70 720,30 C600,80 480,70 360,30 C240,80 120,70 0,0 Z'/%3E%3C/svg%3E");
  background-size: 50% 100%;
  background-repeat: repeat-x;
}
.book-sep-bottom {
  background-color: #892121;
  position: relative;
  z-index: 10;
}
.book-sep-bottom .book-sep-inner {
  height: 60px;
  background-image: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1440' height='100' viewBox='0 0 1440 100' preserveAspectRatio='none' fill='rgba(21,9,39,1)'%3E%3Cpath d='M0,0 H1440 V20 C1320,80 1200,90 1080,40 C960,90 840,80 720,40 C600,90 480,80 360,40 C240,90 120,80 0,20 Z'/%3E%3C/svg%3E");
  background-size: 50% 100%;
  background-repeat: repeat-x;
}

/* --- Book Section --- */
.book-section {
  background-color: var(--color-deep-purple);
  padding: 83px 0 106px;
  margin-top: 0;
}
.book-section .container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
}
.book-cover {
  flex: 0 0 40%;
  max-width: 400px;
}
.book-cover img {
  width: 100%;
  border-radius: 4px;
}
.book-info {
  flex: 1;
  color: var(--color-light-blue);
}
.book-info h2 {
  font-family: var(--font-heading);
  font-size: 48px;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1;
  margin: 0 0 0.8em;
  color: var(--color-light-blue);
}
.book-info p {
  margin-bottom: 16px;
  color: var(--color-light-blue);
}

/* Buy Buttons */
.buy-buttons {
  display: flex;
  justify-content: flex-start;
  gap: 16px;
  margin: 20px 0;
}
.buy-btn {
  display: inline-block;
  padding: 12px 28px;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 4px;
  transition: all 0.3s;
  text-align: center;
  flex: 1;
  background: linear-gradient(to top, var(--color-dark-red), var(--color-red-accent));
  color: var(--color-white);
}
.buy-btn:hover {
  opacity: 0.85;
  transform: translateY(-1px);
}

/* Publication Info */
.pub-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 20px;
}
.pub-info p {
  margin: 0;
}
.pub-info strong {
  font-weight: 600;
}
.camel-logo {
  max-width: 140px;
}

/* --- Newsletter Section --- */
.newsletter-section {
  background-color: #892121;
  padding: 40px 0 60px;
  text-align: center;
}
.newsletter-section p {
  color: var(--color-light-blue);
  font-size: 43px;
  font-weight: 600;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* --- Footer --- */
.site-footer {
  background-color: var(--color-dark-red);
  padding: 30px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.footer-pattern {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,%3Csvg width='120' height='120' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M1.488 30c0 15.747 12.765 28.512 28.512 28.512S58.512 45.747 58.512 30 45.747 1.488 30 1.488 1.488 14.253 1.488 30zM30 60C13.431 60 0 46.569 0 30 0 13.431 13.431 0 30 0c16.569 0 30 13.431 30 30 0 16.569-13.431 30-30 30z' fill='rgba(210,54,57,0.07)'/%3E%3C/svg%3E");
  opacity: 0.13;
}
.site-footer p {
  color: var(--color-light-blue);
  font-size: 14px;
  position: relative;
  z-index: 1;
}

/* --- About Page --- */
.page-section {
  padding: 60px 0 80px;
  background-color: var(--color-light-blue);
}
.page-section .container {
  max-width: var(--max-width);
}
.page-title {
  font-family: var(--font-heading);
  font-size: 48px;
  font-weight: 700;
  color: var(--color-deep-purple);
  line-height: 1;
  letter-spacing: -0.015em;
  margin-bottom: 20px;
}
.about-hero {
  background-color: var(--color-dark-red);
  position: relative;
  overflow: hidden;
}
.about-hero .page-title {
  color: var(--color-white);
  position: relative;
  z-index: 1;
}
.about-layout {
  display: block;
  position: relative;
  z-index: 1;
}
.about-photo {
  float: right;
  width: 300px;
  margin: 0 0 20px 30px;
}
.about-photo img {
  width: 100%;
  border-radius: 4px;
}
.about-content {
  color: var(--color-light-blue);
}
.about-content p {
  margin-bottom: 16px;
}
.about-content a {
  color: var(--color-light-blue);
  text-decoration: underline;
}
.about-content a:hover {
  color: var(--color-yellow);
}
.photo-credit {
  font-size: 13px;
  font-style: italic;
  color: rgba(232, 239, 249, 0.6);
  margin-top: 8px;
}
.about-book-section {
  background-color: var(--color-light-blue);
  padding: 60px 0;
}
.about-book-layout {
  display: flex;
  align-items: center;
  gap: 40px;
}
.about-book-text-col {
  flex: 1;
  text-align: center;
  font-size: 44px;
}
.about-book-cover {
  flex: 0 0 350px;
  max-width: 350px;
}
.about-book-cover img {
  width: 100%;
  border-radius: 4px;
  box-shadow: 0 4px 20px rgba(21, 9, 39, 0.25);
}
.about-cta {
  display: inline-block;
  margin-top: 20px;
  padding: 12px 28px;
  background: linear-gradient(to top, var(--color-dark-red), var(--color-red-accent));
  color: var(--color-white);
  border-radius: 4px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 14px;
  transition: opacity 0.3s;
}
.about-cta:hover { opacity: 0.85; }

/* --- Press Page --- */
.press-intro {
  text-align: left;
  margin-bottom: 75px;
}
.press-intro h2 {
  font-family: var(--font-heading);
  font-size: 28.6px;
  font-weight: 400;
}
.press-items {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.press-item {
  display: flex;
  gap: 30px;
  align-items: flex-start;
  margin-bottom: 50px;
}
.press-logo {
  flex: 0 0 20%;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}
.press-logo img {
  max-width: 100%;
  object-fit: contain;
}
.press-content {
  flex: 0 0 80%;
}
.press-content h2 {
  font-family: var(--font-heading);
  font-size: 0.7em;
  font-weight: 700;
  margin: 0 0 5px;
}
.press-content p {
  margin-bottom: 10px;
}
.press-content a {
  color: var(--color-red-accent);
  text-decoration: underline;
}
.press-content a:hover {
  color: var(--color-yellow);
}

/* --- Press Kit Page --- */
.presskit-layout {
  display: flex;
  gap: 40px;
  align-items: stretch;
  justify-content: center;
}
.presskit-title-box {
  flex: 0 0 400px;
  background-color: var(--color-dark-red);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  border-radius: 4px;
}
.presskit-title-box h1 {
  font-family: var(--font-heading);
  font-size: 48px;
  font-weight: 700;
  color: var(--color-white);
  line-height: 1;
}
.presskit-links {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  justify-content: center;
}
.presskit-links a {
  color: var(--color-deep-purple);
  text-decoration: underline;
  transition: color 0.2s;
}
.presskit-links a:hover {
  color: var(--color-red-accent);
}

/* --- Contact Page --- */
.contact-layout {
  display: flex;
  gap: 40px;
  align-items: flex-start;
}
.contact-text {
  flex: 1;
}
.contact-text p {
  margin-bottom: 16px;
}
.contact-text a {
  color: var(--color-red-accent);
}
.contact-form-wrap {
  flex: 1;
}
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 16px;
  font-size: 16px;
  background: #ffffff;
  border: 1px solid rgba(21, 9, 39, 0.2);
  border-radius: 4px;
  color: var(--color-deep-purple);
  transition: border-color 0.3s;
}
.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(21, 9, 39, 0.4);
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--color-red-accent);
}
.contact-form textarea {
  min-height: 150px;
  resize: vertical;
}
.contact-form button {
  padding: 14px 32px;
  background: linear-gradient(to top, var(--color-dark-red), var(--color-red-accent));
  color: var(--color-white);
  border: none;
  border-radius: 4px;
  font-size: 16px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: opacity 0.3s;
  align-self: flex-start;
}
.contact-form button:hover { opacity: 0.85; }
.contact-form button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.form-status {
  padding: 12px 16px;
  border-radius: 4px;
  font-size: 14px;
  display: none;
}
.form-status.success {
  display: block;
  background: rgba(101, 189, 125, 0.15);
  color: var(--color-green);
  border: 1px solid rgba(101, 189, 125, 0.3);
}
.form-status.error {
  display: block;
  background: rgba(210, 54, 57, 0.15);
  color: var(--color-red-accent);
  border: 1px solid rgba(210, 54, 57, 0.3);
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .hero .container {
    flex-direction: column;
  }
  .hero-video {
    max-width: 100%;
    width: 100%;
  }
  .book-section .container {
    flex-direction: column;
  }
  .book-cover {
    flex: none;
    max-width: 300px;
  }
  .about-layout {
    flex-direction: column;
  }
  .about-photo {
    flex: none;
    max-width: 300px;
  }
  .press-item {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .press-logo {
    flex: none;
  }
  .contact-layout {
    flex-direction: column;
  }
}

@media (max-width: 768px) {
  .hero-text h1 { font-size: 32px; }
  .page-title { font-size: 28px; }
  .book-info h2 { font-size: 22px; }
  .buy-buttons { flex-direction: column; }
  .pub-info { flex-direction: column; text-align: center; }
}

@media (max-width: 640px) {
  .main-nav ul { display: none; }
  .main-nav ul.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-light-blue);
    padding: 16px 24px;
    gap: 12px;
    z-index: 100;
  }
  .nav-toggle { display: block; }
  .site-header .container { position: relative; }
  .site-logo { width: 60px; }
  .hero { padding: 40px 0 24px; }
  .book-section { padding: 50px 0 60px; }
}
