/* Bebop by the Numbers - Main Stylesheet */

:root {
  --dark-bg: #1a1a1a;
  --dark-text: #ffffff;
  --light-bg: #ffffff;
  --light-text: #1a1a1a;
  --accent-bg: #2d8a7b;
  --accent-text: #ffffff;
  --link-color: #2d8a7b;
  --link-color-dark: #5bbfad;
  --star-color: #f5a623;
}

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

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

body {
  font-family: Georgia, 'Times New Roman', serif;
  line-height: 1.6;
  color: var(--light-text);
  background-color: var(--light-bg);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: Georgia, 'Times New Roman', serif;
  font-weight: normal;
  line-height: 1.3;
  margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.15rem; }

p { margin-bottom: 1rem; }

a {
  color: var(--link-color);
  text-decoration: underline;
}

a:hover {
  text-decoration: none;
}

ul, ol {
  margin-left: 1.5rem;
  margin-bottom: 1rem;
}

li {
  margin-bottom: 0.25rem;
}

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

/* Header / Navigation */
.site-header {
  background-color: var(--dark-bg);
  padding: 1rem 0;
  position: relative;
}

.site-header .container {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  flex-wrap: wrap;
}

.site-nav {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  flex-wrap: wrap;
}

.site-nav a {
  color: var(--dark-text);
  text-decoration: none;
  font-size: 0.95rem;
}

.site-nav a:hover {
  text-decoration: underline;
}

.site-nav a.active {
  text-decoration: underline;
}

/* Container */
.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Page Sections */
.page-section {
  padding: 3rem 0;
}

.page-section.style-dark {
  background-color: var(--dark-bg);
  color: var(--dark-text);
}

.page-section.style-dark a {
  color: var(--link-color-dark);
}

.page-section.style-dark h1,
.page-section.style-dark h2,
.page-section.style-dark h3 {
  color: var(--dark-text);
}

.page-section.style-light {
  background-color: var(--light-bg);
  color: var(--light-text);
}

.page-section.style-light a {
  color: var(--link-color);
}

.page-section.style-light h1,
.page-section.style-light h2,
.page-section.style-light h3 {
  color: var(--link-color);
}

.page-section.style-accent {
  background-color: var(--accent-bg);
  color: var(--accent-text);
}

.page-section.style-accent a {
  color: var(--accent-text);
}

.page-section.style-accent h1,
.page-section.style-accent h2,
.page-section.style-accent h3 {
  color: var(--accent-text);
}

/* Hero Section (header of page) */
.page-header {
  padding: 3rem 0;
  text-align: left;
}

.page-header.style-dark {
  background-color: var(--dark-bg);
  color: var(--dark-text);
}

.page-header h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.page-header .stars {
  color: var(--star-color);
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.page-header .testimonial {
  font-style: italic;
  max-width: 700px;
}

.page-header .testimonial-author {
  margin-top: 0.25rem;
}

/* Two Column Layout */
.two-column {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

.two-column.image-left .column-image {
  order: -1;
}

@media (max-width: 768px) {
  .two-column {
    grid-template-columns: 1fr;
  }
  
  .two-column .column-image {
    order: -1;
  }
}

/* Testimonials */
.testimonial-block {
  border-left: 3px solid var(--star-color);
  padding-left: 1.5rem;
  margin: 1.5rem 0;
}

.testimonial-block .quote {
  font-style: italic;
  margin-bottom: 0.5rem;
}

.testimonial-block .author {
  font-weight: bold;
}

.testimonial-block .title {
  font-size: 0.9rem;
  opacity: 0.8;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  text-decoration: none;
  font-size: 0.9rem;
  margin: 0.25rem;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s;
}

.btn:hover {
  opacity: 0.85;
  text-decoration: none;
}

.btn-primary {
  background-color: var(--accent-bg);
  color: var(--accent-text);
}

.btn-secondary {
  background-color: #444;
  color: #fff;
}

.btn-outline {
  background-color: transparent;
  border: 1px solid currentColor;
}

.button-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0;
}

.page-section.style-dark a.btn-primary,
.page-section.style-dark a.btn-secondary,
.page-section.style-light a.btn-primary,
.page-section.style-light a.btn-secondary {
  color: #fff;
}

/* YouTube Embed */
.video-embed {
  max-width: 350px;
  margin: 1rem auto;
}

.video-embed.vertical {
  max-width: 300px;
}

.video-embed .video-wrapper {
  position: relative;
  padding-bottom: 177.78%; /* 9:16 for vertical */
  height: 0;
  overflow: hidden;
}

.video-embed.horizontal .video-wrapper {
  padding-bottom: 56.25%; /* 16:9 for horizontal */
}

.video-embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* Newsletter Form */
.newsletter-form {
  display: flex;
  gap: 0.5rem;
  max-width: 400px;
}

.newsletter-form input[type="email"] {
  flex: 1;
  padding: 0.5rem 1rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1rem;
}

.newsletter-form button {
  padding: 0.5rem 1.5rem;
  background-color: var(--accent-bg);
  color: var(--accent-text);
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1rem;
}

@media (max-width: 480px) {
  .newsletter-form {
    flex-direction: column;
  }
}

/* Footer */
.site-footer {
  background-color: var(--dark-bg);
  color: var(--dark-text);
  padding: 2rem 0;
  font-size: 0.9rem;
}

.site-footer a {
  color: var(--dark-text);
}

.site-footer .footer-nav {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #333;
}

.site-footer .footer-info {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.site-footer .footer-brand h4 {
  margin-bottom: 0.5rem;
}

.site-footer .footer-brand p {
  margin-bottom: 0.25rem;
  opacity: 0.8;
}

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }

/* Blockquote / Testimonial */
blockquote {
  border-left: 3px solid var(--star-color);
  padding-left: 1.5rem;
  margin: 1.5rem 0;
  font-style: italic;
}

blockquote p {
  margin-bottom: 0.5rem;
}

blockquote footer {
  font-style: normal;
  font-weight: bold;
  color: inherit;
  opacity: 0.9;
}

/* ================================
   Mobile Menu
   ================================ */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--dark-text);
  font-size: 1.75rem;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  line-height: 1;
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
    position: fixed;
    left: 1.5rem;
    top: 1rem;
    z-index: 1000;
  }
  
  .site-header {
    position: relative;
    padding-top: 0.5rem;
  }
  
  .site-header .container {
    flex-direction: column;
    align-items: stretch;
  }
  
  .site-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    padding: 0;
    gap: 0;
  }
  
  .site-nav.open {
    display: flex;
    padding-top: 2.5rem;
  }
  
  .site-nav a {
    padding: 1rem 0;
    width: 100%;
    border-bottom: 1px solid #333;
    text-align: left;
  }
  
  .site-nav a:first-child {
    border-top: 1px solid #333;
  }
  
  .site-nav a:last-child {
    border-bottom: none;
  }
  
  .site-nav a:hover {
    background-color: #2a2a2a; 
  }
}
 
