/* 
 * Quiet Maple Grove Blog - Main Stylesheet
 * A comprehensive CSS file for the Quiet Maple Grove artist blog
 * Copyright 2024 Quiet Maple Grove
 */

/* ======== Base Styles & Typography ======== */
:root {
  --primary-color: #5d4de3;
  --primary-light: #8f7ff5;
  --primary-dark: #3b2cb8;
  --secondary-color: #ff6b6b;
  --accent-color: #6cddbc;
  --dark-color: #222639;
  --dark-gray: #4a4a4a;
  --medium-gray: #888888;
  --light-gray: #e9e9e9;
  --lightest-gray: #f8f8f8;
  --white: #ffffff;
  --box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  --transition: all 0.3s ease;
  --border-radius: 8px;
  --border-radius-lg: 12px;
  --container-max-width: 1200px;
  --container-padding: 0 20px;
  --section-spacing: 80px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--dark-color);
  background-color: var(--white);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 1rem;
  color: var(--dark-color);
}

h1 {
  font-size: 2.8rem;
}

h2 {
  font-size: 2.2rem;
  margin-bottom: 2rem;
}

h3 {
  font-size: 1.5rem;
  margin-bottom: 0.8rem;
}

p {
  margin-bottom: 1.5rem;
}

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

a:hover {
  color: var(--primary-dark);
}

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

ul, ol {
  list-style: none;
}

/* ======== Layout & Containers ======== */
.container {
  width: 100%;
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: var(--container-padding);
}

section {
  padding: 60px 0;
}

.page-header {
  background-color: var(--lightest-gray);
  padding: 60px 0 40px;
  text-align: center;
  margin-bottom: 40px;
  border-bottom: 1px solid var(--light-gray);
}

.page-header h1 {
  margin-bottom: 10px;
}

.page-header p {
  font-size: 1.2rem;
  color: var(--medium-gray);
  max-width: 700px;
  margin: 0 auto;
}

/* ======== Header & Navigation ======== */
header {
  background-color: var(--white);
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  position: sticky;
  top: 0;
  z-index: 1000;
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 20px;
}

.logo img {
  height: 50px;
  width: auto;
}

nav {
  display: flex;
  align-items: center;
}

.nav-menu {
  display: flex;
  gap: 30px;
}

.nav-menu li a {
  font-weight: 600;
  color: var(--dark-color);
  position: relative;
  padding: 8px 0;
}

.nav-menu li a:after {
  content: '';
  position: absolute;
  width: 0;
  height: 3px;
  bottom: 0;
  left: 0;
  background-color: var(--primary-color);
  transition: var(--transition);
}

.nav-menu li a:hover:after,
.nav-menu li a.active:after {
  width: 100%;
}

.hamburger {
  display: none;
  cursor: pointer;
}

.bar {
  display: block;
  width: 25px;
  height: 3px;
  margin: 5px auto;
  transition: var(--transition);
  background-color: var(--dark-color);
}

/* ======== Hero Section ======== */
.hero {
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-color) 100%);
  color: var(--white);
  padding: 100px 0;
  text-align: center;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  color: var(--white);
}

.hero p {
  font-size: 1.3rem;
  margin-bottom: 2.5rem;
  opacity: 0.9;
}

/* ======== Buttons ======== */
.btn {
  display: inline-block;
  background-color: var(--primary-color);
  color: var(--white);
  padding: 12px 30px;
  border-radius: 50px;
  font-weight: 600;
  text-align: center;
  transition: var(--transition);
  border: 2px solid var(--primary-color);
  cursor: pointer;
  font-size: 1rem;
}

.btn:hover {
  background-color: var(--primary-dark);
  border-color: var(--primary-dark);
  color: var(--white);
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(93, 77, 227, 0.3);
}

.btn-sm {
  padding: 8px 20px;
  font-size: 0.9rem;
}

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

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

/* ======== Featured Posts ======== */
.featured-posts h2,
.blog-posts h2 {
  text-align: center;
  position: relative;
  margin-bottom: 50px;
}

.featured-posts h2:after,
.blog-posts h2:after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background-color: var(--primary-color);
  margin: 20px auto 0;
  border-radius: 2px;
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
}

.post-card {
  background-color: var(--white);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
}

.post-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.post-card.featured {
  grid-column: span 2;
}

.post-image {
  height: 220px;
  overflow: hidden;
}

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

.post-card:hover .post-image img {
  transform: scale(1.05);
}

.post-content {
  padding: 1.5rem;
}

.post-meta {
  display: flex;
  gap: 15px;
  margin-bottom: 10px;
  font-size: 0.85rem;
  color: var(--medium-gray);
}

.post-card h3 {
  font-size: 1.3rem;
  margin-bottom: 0.8rem;
  line-height: 1.4;
}

.post-card h3 a {
  color: var(--dark-color);
}

.post-card h3 a:hover {
  color: var(--primary-color);
}

.read-more {
  display: inline-flex;
  align-items: center;
  font-weight: 600;
  color: var(--primary-color);
  margin-top: 0.5rem;
  transition: var(--transition);
}

.read-more:after {
  content: '→';
  margin-left: 5px;
  transition: var(--transition);
}

.read-more:hover:after {
  margin-left: 10px;
}

.view-all {
  text-align: center;
  margin-top: 40px;
}

/* ======== This Day in History ======== */
.this-day-history {
  background-color: var(--lightest-gray);
  padding: 70px 0;
}

.history-content {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 40px;
  align-items: center;
}

.history-image {
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
}

.history-text h3 {
  margin-bottom: 20px;
  font-size: 1.6rem;
  color: var(--primary-dark);
}

/* ======== Daily Picks ======== */
.daily-picks {
  padding: 70px 0;
  background-color: var(--white);
}

.daily-picks h2 {
  text-align: center;
  margin-bottom: 50px;
}

.picks-slider {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding: 20px 0;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}

.picks-slider::-webkit-scrollbar {
  height: 6px;
}

.picks-slider::-webkit-scrollbar-track {
  background: var(--light-gray);
  border-radius: 10px;
}

.picks-slider::-webkit-scrollbar-thumb {
  background-color: var(--primary-color);
  border-radius: 10px;
}

.pick-item {
  flex: 0 0 300px;
  background-color: var(--white);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
  scroll-snap-align: start;
  transition: var(--transition);
}

.pick-item:hover {
  transform: scale(1.03);
}

.pick-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.pick-item h4 {
  padding: 15px 15px 5px;
  font-size: 1.1rem;
}

.pick-item p {
  padding: 0 15px 15px;
  color: var(--medium-gray);
  font-size: 0.9rem;
  margin-bottom: 0;
}

/* ======== Newsletter ======== */
.newsletter {
  background-color: var(--dark-color);
  color: var(--white);
  padding: 60px 0;
}

.newsletter-content {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.newsletter h2 {
  color: var(--white);
  margin-bottom: 1rem;
}

.newsletter p {
  color: var(--light-gray);
  margin-bottom: 2rem;
}

.newsletter-form {
  display: flex;
  gap: 10px;
}

.newsletter-form input {
  flex: 1;
  padding: 12px 20px;
  border: none;
  border-radius: 50px;
  font-size: 1rem;
}

/* ======== Footer ======== */
footer {
  background-color: var(--lightest-gray);
  padding-top: 60px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-logo img {
  width: 140px;
  margin-bottom: 15px;
}

.footer-logo p {
  color: var(--medium-gray);
  font-size: 0.9rem;
}

.footer-content h4 {
  margin-bottom: 20px;
  font-size: 1.2rem;
}

.footer-links ul,
.footer-legal ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a,
.footer-legal a {
  color: var(--dark-gray);
  transition: var(--transition);
}

.footer-links a:hover,
.footer-legal a:hover {
  color: var(--primary-color);
  padding-left: 5px;
}

.social-icons {
  display: flex;
  gap: 15px;
}

.social-icons.large {
  gap: 25px;
  justify-content: center;
  margin-top: 20px;
}

.social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: var(--light-gray);
  color: var(--dark-gray);
  border-radius: 50%;
  transition: var(--transition);
}

.social-icons.large a {
  width: 60px;
  height: 60px;
}

.social-icons a:hover {
  background-color: var(--primary-color);
  color: var(--white);
  transform: translateY(-5px);
}

.footer-bottom {
  border-top: 1px solid var(--light-gray);
  padding: 20px 0;
  text-align: center;
  color: var(--medium-gray);
  font-size: 0.9rem;
}

/* ======== Cookie Banner ======== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: var(--dark-color);
  color: var(--white);
  padding: 20px 0;
  z-index: 9999;
  display: none;
  box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.1);
}

.cookie-banner.show {
  display: block;
  animation: slideUp 0.5s forwards;
}

@keyframes slideUp {
  0% {
    transform: translateY(100%);
  }
  100% {
    transform: translateY(0);
  }
}

.cookie-content {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px;
  text-align: center;
}

.cookie-content p {
  margin-bottom: 15px;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--light-gray);
}

.cookie-buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 10px;
}

.cookie-link {
  font-size: 0.85rem;
  color: var(--accent-color);
  text-decoration: underline;
}

/* ======== About Page Styles ======== */
.about-story {
  padding: 40px 0 80px;
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.about-image {
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.team-card {
  background-color: var(--white);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
  text-align: center;
}

.team-card:hover {
  transform: translateY(-10px);
}

.team-card img {
  width: 100%;
  height: 300px;
  object-fit: cover;
}

.team-card h3 {
  margin-top: 15px;
  margin-bottom: 5px;
  font-size: 1.3rem;
}

.team-card p {
  padding: 0 15px 20px;
  color: var(--medium-gray);
  margin-bottom: 0;
}

.team-card p:nth-of-type(1) {
  color: var(--primary-color);
  font-weight: 600;
  margin-bottom: 10px;
}

.values-section {
  background-color: var(--lightest-gray);
  padding: 80px 0;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 30px;
}

.value-card {
  background-color: var(--white);
  border-radius: var(--border-radius);
  padding: 30px;
  text-align: center;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
}

.value-card:hover {
  transform: translateY(-10px);
}

.value-icon {
  color: var(--primary-color);
  margin-bottom: 20px;
}

.value-card h3 {
  margin-bottom: 15px;
}

.value-card p {
  color: var(--dark-gray);
  margin-bottom: 0;
}

.testimonials {
  padding: 80px 0;
}

.testimonial-slider {
  display: flex;
  gap: 30px;
  overflow-x: auto;
  padding: 20px 0;
  scroll-snap-type: x mandatory;
}

.testimonial {
  flex: 0 0 400px;
  scroll-snap-align: start;
}

.testimonial-content {
  background-color: var(--white);
  border-radius: var(--border-radius);
  padding: 30px;
  box-shadow: var(--box-shadow);
}

.testimonial-content p {
  font-style: italic;
  margin-bottom: 20px;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 15px;
}

.testimonial-author img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
}

.testimonial-author h4 {
  margin-bottom: 0;
  font-size: 1.1rem;
}

.testimonial-author p {
  margin-bottom: 0;
  color: var(--medium-gray);
  font-size: 0.9rem;
}

.cta-section {
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-dark) 100%);
  padding: 80px 0;
  color: var(--white);
  text-align: center;
}

.cta-content {
  max-width: 700px;
  margin: 0 auto;
}

.cta-content h2 {
  color: var(--white);
  margin-bottom: 20px;
}

.cta-content p {
  margin-bottom: 30px;
  font-size: 1.1rem;
  opacity: 0.9;
}

.cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.cta-buttons .btn-outline {
  border-color: var(--white);
  color: var(--white);
}

.cta-buttons .btn-outline:hover {
  background-color: var(--white);
  color: var(--primary-dark);
}

/* ======== Blog Page Styles ======== */
.blog-filters {
  margin-bottom: 40px;
}

.filter-options {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.search-bar {
  flex: 1;
  min-width: 250px;
  position: relative;
}

.search-bar input {
  width: 100%;
  padding: 12px 20px;
  border: 1px solid var(--light-gray);
  border-radius: 50px;
  font-size: 1rem;
  padding-right: 45px;
}

.search-bar button {
  position: absolute;
  right: 5px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: var(--medium-gray);
  padding: 10px;
}

.category-filter {
  min-width: 200px;
}

.category-filter select {
  width: 100%;
  padding: 12px 20px;
  border: 1px solid var(--light-gray);
  border-radius: 50px;
  font-size: 1rem;
  background-color: var(--white);
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%234a4a4a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 15px center;
  background-size: 16px;
}

.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 30px;
}

/* ======== Contact Page Styles ======== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 50px;
}

.contact-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.info-card {
  background-color: var(--white);
  border-radius: var(--border-radius);
  padding: 25px;
  box-shadow: var(--box-shadow);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: var(--transition);
}

.info-card:hover {
  transform: translateY(-5px);
}

.info-icon {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--primary-light);
  border-radius: 50%;
  margin-bottom: 15px;
  color: var(--white);
}

.info-card h3 {
  margin-bottom: 10px;
  font-size: 1.1rem;
}

.info-card p {
  margin-bottom: 0;
  color: var(--dark-gray);
  font-size: 0.9rem;
}

.info-card a {
  color: var(--primary-color);
}

.contact-form-container {
  background-color: var(--white);
  border-radius: var(--border-radius);
  padding: 40px;
  box-shadow: var(--box-shadow);
}

.contact-form-container h2 {
  margin-bottom: 30px;
}

.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group:nth-child(3),
.form-group:nth-child(5),
.form-group:nth-child(6),
.form-group:last-child {
  grid-column: span 2;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: 600;
  font-size: 0.9rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid var(--light-gray);
  border-radius: var(--border-radius);
  font-size: 1rem;
  transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--primary-color);
  outline: none;
  box-shadow: 0 0 0 3px rgba(93, 77, 227, 0.2);
}

.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.form-checkbox input {
  width: auto;
  margin-top: 4px;
}

.form-checkbox label {
  font-weight: 400;
  font-size: 0.85rem;
  color: var(--dark-gray);
}

.map-section {
  margin-top: 60px;
  margin-bottom: 40px;
}

.map-container {
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
  background-color: var(--white);
}

.map-placeholder {
  position: relative;
}

.map-placeholder img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

.map-placeholder .btn {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
}

/* ======== Modal ======== */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 2000;
  align-items: center;
  justify-content: center;
}

.modal.show {
  display: flex;
  animation: fadeIn 0.3s forwards;
}

@keyframes fadeIn {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

.modal-content {
  background-color: var(--white);
  border-radius: var(--border-radius);
  width: 90%;
  max-width: 500px;
  padding: 40px;
  position: relative;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  animation: slideDown 0.5s forwards;
}

@keyframes slideDown {
  0% {
    transform: translateY(-50px);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

.close-modal {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 1.8rem;
  cursor: pointer;
  color: var(--dark-gray);
  transition: var(--transition);
}

.close-modal:hover {
  color: var(--primary-color);
}

.thank-you-message {
  text-align: center;
}

.thank-you-message svg {
  margin-bottom: 20px;
}

.thank-you-message h3 {
  font-size: 1.8rem;
  margin-bottom: 15px;
}

.thank-you-message p {
  margin-bottom: 25px;
}

.close-btn {
  display: inline-block;
}

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

  h2 {
    font-size: 2rem;
  }

  .hero {
    padding: 80px 0;
  }

  .hero h1 {
    font-size: 3rem;
  }

  .post-card.featured {
    grid-column: span 1;
  }

  .about-content,
  .history-content,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-content .about-text,
  .history-content .history-text {
    order: -1;
  }
}

@media (max-width: 768px) {
  h1 {
    font-size: 2.2rem;
  }

  h2 {
    font-size: 1.8rem;
  }

  section {
    padding: 50px 0;
  }

  .hero {
    padding: 60px 0;
  }

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

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

  .hamburger {
    display: block;
  }

  .nav-menu {
    position: fixed;
    left: -100%;
    top: 70px;
    gap: 0;
    flex-direction: column;
    background-color: var(--white);
    width: 100%;
    text-align: center;
    transition: 0.3s;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
  }

  .nav-menu.active {
    left: 0;
  }

  .nav-menu li {
    margin: 16px 0;
  }

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

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

  .contact-info {
    grid-template-columns: 1fr;
  }

  .contact-form {
    grid-template-columns: 1fr;
  }

  .form-group:nth-child(3),
  .form-group:nth-child(5),
  .form-group:nth-child(6),
  .form-group:last-child {
    grid-column: span 1;
  }
}

@media (max-width: 576px) {
  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.6rem;
  }

  .hero {
    padding: 50px 0;
  }

  .hero h1 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
  }

  .hero p {
    font-size: 1rem;
    margin-bottom: 2rem;
  }

  .btn {
    padding: 10px 25px;
  }

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

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

  .testimonial {
    flex: 0 0 300px;
  }

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

  .cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .contact-form-container {
    padding: 25px;
  }

  .cookie-buttons {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  .modal-content {
    padding: 30px 20px;
  }

  .filter-options {
    flex-direction: column;
  }
}
