/* ========================================
   SPUDLOG — Editorial Magazine Design
   Colors: Cream #FFF8F0, Charcoal #2C2C2C, Navy #1B2A4A, Rust #C45B28
   Fonts: Playfair Display (serif headlines), Lora (body)
======================================== */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Lora', serif;
  font-size: 16px;
  line-height: 1.75;
  color: #2C2C2C;
  background-color: #FFF8F0;
  overflow-x: hidden;
}

a {
  color: #C45B28;
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: #1B2A4A;
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  line-height: 1.2;
  color: #1B2A4A;
  margin: 1.5rem 0 1rem 0;
}

h1 {
  font-size: 3.5rem;
  font-weight: 900;
}

h2 {
  font-size: 2.8rem;
}

h3 {
  font-size: 1.5rem;
}

h4 {
  font-size: 1.25rem;
}

p {
  margin-bottom: 1.25rem;
}

blockquote {
  border-left: 4px solid #C45B28;
  padding-left: 1.5rem;
  margin: 2rem 0;
  font-style: italic;
  color: #1B2A4A;
}

cite {
  display: block;
  font-style: normal;
  font-size: 0.9rem;
  margin-top: 0.5rem;
  color: #666;
}

/* Navigation */
.navbar {
  background-color: #FFF8F0;
  border-bottom: 1px solid #E8E0D5;
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #1B2A4A;
}

.logo-icon {
  margin-right: 0.5rem;
  font-size: 1.3rem;
}

.site-logo {
  width: 48px;
  height: 48px;
  object-fit: contain;
  margin-right: 0.5rem;
  vertical-align: middle;
}

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

.nav-links a {
  color: #2C2C2C;
  font-size: 0.95rem;
  font-weight: 500;
}

.nav-links a:hover {
  color: #C45B28;
}

/* Hero Section */
.hero {
  padding: 5rem 0 4rem 0;
  background: linear-gradient(135deg, #FFF8F0 0%, #FFFBF5 100%);
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-text h1 {
  margin-top: 0;
  margin-bottom: 1rem;
  line-height: 1.1;
}

.serif-headline {
  font-family: 'Playfair Display', serif;
  font-weight: 900;
  font-size: 3.5rem;
  color: #1B2A4A;
  line-height: 1.1;
}

.serif-subtitle {
  font-size: 1.5rem;
  font-weight: 600;
  color: #C45B28;
  margin-bottom: 1.5rem;
  line-height: 1.3;
}

.hero-body {
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 2rem;
  max-width: 90%;
}

/* Email Forms */
.email-form {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  align-items: center;
}

.email-form input {
  flex: 1;
  min-width: 200px;
  padding: 0.9rem 1rem;
  border: 2px solid #1B2A4A;
  border-radius: 2px;
  font-family: 'Lora', serif;
  font-size: 1rem;
  background-color: #FFF8F0;
  color: #2C2C2C;
}

.email-form input::placeholder {
  color: #999;
}

.email-form input:focus {
  outline: none;
  border-color: #C45B28;
  background-color: #FFFBF5;
}

.form-note {
  font-size: 0.85rem;
  color: #666;
  margin-top: 0.5rem;
}

/* Buttons */
.btn {
  padding: 0.9rem 1.8rem;
  border: 2px solid transparent;
  border-radius: 2px;
  font-family: 'Lora', serif;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-primary {
  background-color: #C45B28;
  color: white;
  border-color: #C45B28;
}

.btn-primary:hover {
  background-color: #A84820;
  border-color: #A84820;
  transform: translateY(-2px);
}

.btn-secondary {
  background-color: transparent;
  color: #1B2A4A;
  border-color: #1B2A4A;
}

.btn-secondary:hover {
  background-color: #1B2A4A;
  color: white;
  transform: translateY(-2px);
}

/* Hero Image Placeholder */
.hero-image {
  display: flex;
  justify-content: center;
  align-items: center;
}

.image-placeholder {
  width: 100%;
  aspect-ratio: 1;
  background: linear-gradient(135deg, #E8E0D5 0%, #D0C8BB 100%);
  border: 2px solid #1B2A4A;
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.placeholder-content {
  text-align: center;
  font-size: 4rem;
  color: #1B2A4A;
}

/* Editorial Section */
.editorial-section {
  padding: 5rem 0;
  background-color: #FFFBF5;
  border-top: 1px solid #E8E0D5;
  border-bottom: 1px solid #E8E0D5;
}

.editorial-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
  align-items: flex-start;
}

.section-headline {
  font-size: 2.8rem;
  margin-bottom: 1.5rem;
  line-height: 1.15;
}

.editorial-col-main h2 {
  margin-top: 0;
}

.editorial-col-main p {
  font-size: 1.05rem;
  line-height: 1.85;
}

.pull-quote {
  background-color: #FFF8F0;
  border-left: 4px solid #C45B28;
  padding: 1.5rem 1.5rem;
  margin: 2rem 0;
  font-style: italic;
  color: #1B2A4A;
  font-size: 1.15rem;
  line-height: 1.7;
}

.pull-quote cite {
  margin-top: 0.75rem;
  font-size: 0.9rem;
}

/* Editorial Sidebar */
.editorial-sidebar {
  padding: 2rem;
  background-color: #FFF8F0;
  border: 2px solid #1B2A4A;
  border-radius: 4px;
  position: sticky;
  top: 100px;
}

.sidebar-stat {
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid #E8E0D5;
}

.sidebar-stat:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.stat-number {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 900;
  color: #C45B28;
  margin-bottom: 0.25rem;
  line-height: 1;
}

.stat-label {
  font-size: 0.95rem;
  color: #666;
  margin: 0;
}

/* Solution Section */
.solution-section {
  padding: 5rem 0;
}

.section-intro {
  font-size: 1.2rem;
  max-width: 700px;
  margin: 0 0 3rem 0;
  color: #1B2A4A;
  line-height: 1.8;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
  margin-top: 3rem;
}

.feature-card {
  padding: 2rem;
  background-color: #FFFBF5;
  border: 2px solid #E8E0D5;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.feature-card:hover {
  border-color: #C45B28;
  box-shadow: 0 8px 16px rgba(196, 91, 40, 0.1);
}

.feature-icon {
  font-size: 2.5rem;
  display: block;
  margin-bottom: 1rem;
}

.feature-card h3 {
  margin-top: 0;
  margin-bottom: 0.75rem;
}

.feature-card p {
  margin-bottom: 0;
  color: #666;
  font-size: 0.95rem;
  line-height: 1.7;
}

/* Demo Section */
.demo-section {
  padding: 5rem 0;
  background: linear-gradient(135deg, #FFFBF5 0%, #FFF8F0 100%);
  border-top: 1px solid #E8E0D5;
  border-bottom: 1px solid #E8E0D5;
}

.demo-container {
  max-width: 700px;
  margin: 3rem auto 0;
  display: grid;
  gap: 2rem;
}

.demo-input {
  padding: 2rem;
  background-color: white;
  border: 2px solid #1B2A4A;
  border-radius: 4px;
}

.demo-input label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: #1B2A4A;
}

.demo-input textarea {
  width: 100%;
  padding: 1rem;
  border: 1px solid #E8E0D5;
  border-radius: 2px;
  font-family: 'Lora', serif;
  font-size: 0.95rem;
  line-height: 1.6;
  resize: vertical;
  margin-bottom: 1rem;
}

.demo-input textarea:focus {
  outline: none;
  border-color: #C45B28;
  background-color: #FFFBF5;
}

#demo-submit {
  width: 100%;
}

.demo-output {
  animation: fadeIn 0.3s ease;
}

.output-result {
  padding: 1.5rem;
  background-color: #FFFBF5;
  border-left: 4px solid #C45B28;
  border-radius: 2px;
  white-space: pre-wrap;
  font-size: 0.95rem;
  line-height: 1.7;
  font-family: 'Lora', serif;
  color: #2C2C2C;
  margin-bottom: 1rem;
}

#demo-reset {
  width: 100%;
}

.demo-loading {
  padding: 2rem;
  text-align: center;
  color: #C45B28;
  font-weight: 600;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Testimonials Section */
.testimonials-section {
  padding: 5rem 0;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
  margin-top: 3rem;
}

.testimonial-card {
  padding: 2.5rem;
  background-color: white;
  border: 2px solid #E8E0D5;
  border-radius: 4px;
}

.testimonial-quote {
  margin: 0;
  border: none;
  padding: 0;
}

.testimonial-quote p {
  font-size: 1rem;
  line-height: 1.8;
  font-style: italic;
  color: #1B2A4A;
  margin-bottom: 1rem;
}

.testimonial-quote cite {
  color: #C45B28;
  font-weight: 600;
  font-size: 0.9rem;
}

/* Pricing Section */
.pricing-section {
  padding: 5rem 0;
  background: linear-gradient(135deg, #FFFBF5 0%, #FFF8F0 100%);
  border-top: 1px solid #E8E0D5;
  border-bottom: 1px solid #E8E0D5;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.pricing-card {
  padding: 2.5rem;
  background-color: white;
  border: 2px solid #E8E0D5;
  border-radius: 4px;
  transition: all 0.2s ease;
  position: relative;
}

.pricing-card.featured {
  border-color: #C45B28;
  box-shadow: 0 8px 24px rgba(196, 91, 40, 0.15);
  transform: scale(1.02);
}

.pricing-card:hover {
  border-color: #C45B28;
}

.popular-badge {
  position: absolute;
  top: -12px;
  left: 20px;
  background-color: #C45B28;
  color: white;
  padding: 0.4rem 0.8rem;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 20px;
  text-transform: uppercase;
}

.pricing-tier {
  font-size: 1.5rem;
  margin: 0 0 0.5rem 0;
  color: #1B2A4A;
}

.pricing-price {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  font-weight: 900;
  color: #C45B28;
  margin-bottom: 0;
  line-height: 1;
}

.pricing-period {
  font-size: 1rem;
  color: #666;
  font-weight: 400;
}

.pricing-subtext {
  font-size: 0.9rem;
  color: #666;
  margin: 0.5rem 0 1.5rem 0;
}

.pricing-features {
  list-style: none;
  margin: 1.5rem 0;
}

.pricing-features li {
  padding: 0.5rem 0;
  color: #2C2C2C;
  font-size: 0.95rem;
  line-height: 1.6;
}

.pricing-btn {
  width: 100%;
  margin-top: 1.5rem;
}

/* FAQ Section */
.faq-section {
  padding: 5rem 0;
}

.faq-grid {
  max-width: 800px;
  margin: 3rem auto 0;
  display: grid;
  gap: 0;
  border: 2px solid #E8E0D5;
  border-radius: 4px;
  overflow: hidden;
}

.faq-item {
  border-bottom: 1px solid #E8E0D5;
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-toggle {
  width: 100%;
  padding: 1.5rem;
  background-color: white;
  border: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.2s ease;
  font-family: 'Lora', serif;
  font-size: 1rem;
  font-weight: 600;
  color: #1B2A4A;
  text-align: left;
}

.faq-toggle:hover {
  background-color: #FFFBF5;
  color: #C45B28;
}

.faq-q {
  flex: 1;
}

.faq-icon {
  margin-left: 1rem;
  font-size: 1.25rem;
  font-weight: bold;
  transition: transform 0.2s ease;
}

.faq-toggle.active .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  padding: 1.5rem;
  background-color: #FFFBF5;
  line-height: 1.8;
  color: #2C2C2C;
  animation: slideDown 0.2s ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    max-height: 0;
  }
  to {
    opacity: 1;
    max-height: 500px;
  }
}

/* Final CTA Section */
.cta-final-section {
  padding: 5rem 0;
  background: linear-gradient(135deg, #1B2A4A 0%, #2C2C2C 100%);
  color: white;
  text-align: center;
}

.cta-final-content .serif-headline {
  color: white;
  margin-bottom: 1rem;
}

.cta-subtext {
  font-size: 1.2rem;
  color: #E8E0D5;
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cta-final-form {
  justify-content: center;
  margin-bottom: 1rem;
}

.cta-final-form input {
  background-color: white;
  color: #2C2C2C;
  min-width: 250px;
}

.cta-final-form .btn-primary {
  background-color: #C45B28;
  border-color: #C45B28;
}

.cta-final-form .btn-primary:hover {
  background-color: #A84820;
}

.cta-final-section .form-note {
  color: #D0C8BB;
}

/* Footer */
.footer {
  background-color: #1B2A4A;
  color: white;
  padding: 3rem 0 1rem 0;
  border-top: 4px solid #C45B28;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-col h4 {
  color: white;
  margin-top: 0;
  margin-bottom: 1rem;
}

.footer-col p {
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
  color: #D0C8BB;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 0.5rem;
}

.footer-col a {
  color: #D0C8BB;
  text-decoration: none;
}

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

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid #2C2C2C;
  font-size: 0.9rem;
  color: #999;
}

/* Responsive Design */
@media (max-width: 768px) {
  h1 {
    font-size: 2.5rem;
  }

  h2 {
    font-size: 2rem;
  }

  h3 {
    font-size: 1.3rem;
  }

  .hero-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .hero-text h1 {
    font-size: 2.5rem;
  }

  .hero-body {
    max-width: 100%;
  }

  .editorial-grid {
    grid-template-columns: 1fr;
  }

  .editorial-sidebar {
    position: static;
  }

  .email-form {
    flex-direction: column;
  }

  .email-form input,
  .email-form .btn {
    width: 100%;
  }

  .navbar .container {
    flex-direction: column;
    gap: 1rem;
  }

  .nav-links {
    gap: 1rem;
    flex-wrap: wrap;
  }

  .pricing-card.featured {
    transform: scale(1);
  }

  .faq-toggle {
    padding: 1rem;
  }

  .faq-answer {
    padding: 1rem;
  }

  .container {
    padding: 0 1rem;
  }
}

@media (max-width: 480px) {
  body {
    font-size: 15px;
  }

  h1 {
    font-size: 2rem;
  }

  .section-headline {
    font-size: 1.8rem;
  }

  .features-grid,
  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .footer-content {
    grid-template-columns: 1fr;
  }
}
