/* 
 * PrintableDrops.com - Main Stylesheet
 * A clean, mobile-first design for a weekly printables subscription site
 */

/* CSS Reset & Base Styles */
:root {
  --primary-color: #ff6b6b; /* Warm coral */
  --accent-color: #4ecdc4; /* Teal accent */
  --bg-color: #fff9f5; /* Warm white background */
  --text-color: #333333; /* Dark gray for text */
  --text-light: #666666; /* Lighter text */
  --border-color: #e6e6e6; /* Light gray for borders */
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Subtle shadow */
  --border-radius: 8px;
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
  --container-width: 1200px;
  --transition-speed: 0.3s;
}

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

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

body {
  font-family: 'Nunito', sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--bg-color);
  overflow-x: hidden;
}

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

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

a:hover {
  color: darken(var(--primary-color), 10%);
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: var(--spacing-md);
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.5rem;
}

p {
  margin-bottom: var(--spacing-md);
}

.container {
  width: 90%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

section {
  padding: var(--spacing-xl) 0;
  scroll-margin-top: 70px;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: var(--border-radius);
  border: none;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-speed);
  font-size: 1rem;
  text-align: center;
  font-family: 'Nunito', sans-serif;
}

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

.btn-primary:hover {
  background-color: #e55c5c;
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  color: white;
}

.btn-secondary {
  background-color: var(--accent-color);
  color: white;
}

.btn-secondary:hover {
  background-color: #3dbdb5;
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  color: white;
}

/* Form Elements */
.form-group {
  margin-bottom: var(--spacing-md);
}

label {
  display: block;
  margin-bottom: var(--spacing-xs);
  font-weight: 600;
}

input, textarea, select {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  font-family: 'Nunito', sans-serif;
  font-size: 1rem;
  transition: border-color var(--transition-speed), box-shadow var(--transition-speed);
}

input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px rgba(78, 205, 196, 0.2);
}

.form-inline {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-sm);
}

.form-inline input {
  flex: 1;
  min-width: 200px;
}

.form-inline button {
  white-space: nowrap;
}

/* Header & Navigation */
.site-header {
  background-color: white;
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: var(--spacing-md) 0;
}

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

.site-logo {
  font-family: 'Poppins', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary-color);
}

.site-logo img {
  height: 40px;
  width: auto;
}

.main-nav ul {
  display: flex;
  gap: var(--spacing-lg);
  list-style: none;
}

.main-nav a {
  font-weight: 600;
  color: var(--text-color);
}

.main-nav a:hover {
  color: var(--primary-color);
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.5rem;
  color: var(--text-color);
}

/* Hero Section */
.hero {
  padding: var(--spacing-xl) 0;
  background-color: white;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url('../images/pattern.svg');
  background-size: 200px;
  background-repeat: repeat;
  opacity: 0.05;
  z-index: 0;
}

.hero-container {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: var(--spacing-xl);
}

.hero-content {
  flex: 1;
}

.hero-headline {
  font-size: 3rem;
  margin-bottom: var(--spacing-md);
  color: var(--text-color);
  line-height: 1.2;
}

.hero-subheadline {
  font-size: 1.25rem;
  margin-bottom: var(--spacing-lg);
  color: var(--text-light);
}

.hero-image {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-image img {
  max-width: 100%;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
}

/* Features Section */
.features {
  background-color: white;
}

.section-header {
  text-align: center;
  margin-bottom: var(--spacing-xl);
}

.section-title {
  font-size: 2.25rem;
  margin-bottom: var(--spacing-sm);
  color: var(--text-color);
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-light);
  max-width: 700px;
  margin: 0 auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-lg);
}

.feature-item {
  background-color: white;
  border-radius: var(--border-radius);
  padding: var(--spacing-lg);
  box-shadow: var(--shadow);
  text-align: center;
  transition: transform var(--transition-speed);
}

.feature-item:hover {
  transform: translateY(-5px);
}

.feature-icon {
  width: 80px;
  height: 80px;
  background-color: rgba(255, 107, 107, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--spacing-md);
  color: var(--primary-color);
  font-size: 2rem;
}

.feature-title {
  font-size: 1.25rem;
  margin-bottom: var(--spacing-sm);
}

.feature-text {
  color: var(--text-light);
  font-size: 0.95rem;
}

/* Previews Section */
.previews {
  background-color: var(--bg-color);
}

.preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: var(--spacing-md);
}

.preview-item {
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform var(--transition-speed);
  background-color: white;
}

.preview-item:hover {
  transform: translateY(-5px);
}

.preview-image {
  height: 200px;
  background-color: transparent;
  position: relative;
  overflow: hidden;
}

.preview-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.preview-item:hover .preview-image img {
  transform: scale(1.05);
}

.preview-content {
  padding: var(--spacing-md);
}

.preview-title {
  font-size: 1.1rem;
  margin-bottom: var(--spacing-xs);
}

.preview-desc {
  color: var(--text-light);
  font-size: 0.9rem;
}

/* FAQs Section */
.faqs {
  background-color: white;
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  margin-bottom: var(--spacing-md);
  border-bottom: 1px solid var(--border-color);
  padding-bottom: var(--spacing-md);
}

.faq-question {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: var(--spacing-sm);
  color: var(--text-color);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.faq-question::after {
  content: '+';
  font-size: 1.5rem;
  color: var(--primary-color);
  transition: transform var(--transition-speed);
}

.faq-item.active .faq-question::after {
  content: '−';
  transform: rotate(180deg);
}

.faq-answer {
  color: var(--text-light);
  display: none;
  padding-top: var(--spacing-sm);
}

.faq-item.active .faq-answer {
  display: block;
}

/* CTA Section */
.cta {
  background-color: var(--primary-color);
  color: white;
  text-align: center;
  padding: var(--spacing-xl) 0;
}

.cta .section-title {
  color: white;
}

.cta .section-subtitle {
  color: rgba(255, 255, 255, 0.8);
}

.cta-form {
  max-width: 600px;
  margin: var(--spacing-lg) auto 0;
}

.trust-signals {
  margin-top: var(--spacing-md);
  display: flex;
  justify-content: center;
  gap: var(--spacing-lg);
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
}

.trust-signal {
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
}

/* Footer */
.site-footer {
  background-color: #333;
  color: white;
  padding: var(--spacing-xl) 0 var(--spacing-md);
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--spacing-xl);
}

.footer-column {
  display: flex;
  flex-direction: column;
}

.footer-title {
  font-size: 1.1rem;
  margin-bottom: var(--spacing-md);
  color: white;
}

.footer-link-list {
  list-style: none;
}

.footer-link-list li {
  margin-bottom: var(--spacing-sm);
}

.footer-link-list a {
  color: rgba(255, 255, 255, 0.7);
  transition: color var(--transition-speed);
}

.footer-link-list a:hover {
  color: white;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: var(--spacing-xl);
  padding-top: var(--spacing-md);
  text-align: center;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.9rem;
}

.social-links {
  display: flex;
  gap: var(--spacing-md);
  margin-top: var(--spacing-md);
}

.social-link {
  color: white;
  font-size: 1.2rem;
  transition: color var(--transition-speed);
}

.social-link:hover {
  color: var(--primary-color);
}

/* Animation for scrolling */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

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

  h2 {
    font-size: 1.75rem;
  }

  .hero-headline {
    font-size: 2.5rem;
  }

  .hero-container {
    flex-direction: column;
  }

  .hero-image {
    order: -1;
  }
}

@media (max-width: 768px) {
  .site-header {
    padding: var(--spacing-sm) 0;
  }

  .mobile-menu-toggle {
    display: block;
  }

  .main-nav {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background-color: white;
    box-shadow: var(--shadow);
    padding: var(--spacing-md);
    transform: translateY(-100%);
    opacity: 0;
    transition: transform var(--transition-speed), opacity var(--transition-speed);
    z-index: 99;
  }

  .main-nav.open {
    transform: translateY(0);
    opacity: 1;
  }

  .main-nav ul {
    flex-direction: column;
    gap: var(--spacing-md);
  }

  .hero-headline {
    font-size: 2rem;
  }

  .hero-subheadline {
    font-size: 1.1rem;
  }

  .section-title {
    font-size: 1.75rem;
  }

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

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

  .form-inline button {
    width: 100%;
  }

  .trust-signals {
    flex-direction: column;
    gap: var(--spacing-sm);
  }
}