/*
 * Messinger Bag Publishing website styles
 *
 * This stylesheet defines the visual design for the Messinger Bag
 * Publishing website. The color palette draws inspiration from
 * classic publishing aesthetics with dark greens and warm golds
 * taken from the supplied hero image. Typography pairs
 * Playfair Display for headings with Lato for body text to
 * create an elegant yet approachable feel. Responsive layouts
 * ensure the site looks great on any device.
 */

:root {
  /* Primary dark green evokes the rich leather of a well‑worn messenger bag. */
  --primary-color: #013220;
  /* Secondary warm gold ties back to the hero image and conveys a sense of heritage. */
  --secondary-color: #E1C699;
  /* Light background for sections that need contrast. */
  --light-color: #f8f8f8;
  /* Neutral dark for text. */
  --text-color: #333;
  /* Accent used on meta details like dates. */
  --accent-color: #c58d00;
}

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

body {
  font-family: 'Lato', sans-serif;
  line-height: 1.6;
  color: var(--text-color);
}

/* Navigation styles */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background-color: var(--primary-color);
  position: sticky;
  top: 0;
  z-index: 999;
}

.navbar .logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  color: var(--secondary-color);
  text-decoration: none;
}

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

.navbar .nav-links a {
  color: var(--secondary-color);
  text-decoration: none;
  font-weight: 400;
  transition: color 0.3s;
}

.navbar .nav-links a:hover,
.navbar .nav-links a.active {
  color: #ffffff;
}

/* Hero section */
.hero {
  background-image: url('assets/hero.jpg');
  background-size: cover;
  background-position: center;
  height: 80vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #ffffff;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* Darken the hero overlay so the tagline is legible against the busy background */
  background: rgba(0, 0, 0, 0.6);
}

.hero-content {
  position: relative;
  max-width: 700px;
  padding: 0 1rem;
}

.hero-content h1 {
  font-family: 'Playfair Display', serif;
  font-size: 3rem;
  margin-bottom: 1rem;
  color: var(--secondary-color);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

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

/* Buttons */
.btn-cta,
.btn-secondary {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  font-weight: 700;
  transition: background 0.3s, color 0.3s;
  text-decoration: none;
}

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

.btn-cta:hover {
  background-color: var(--accent-color);
  color: #ffffff;
}

.btn-secondary {
  background-color: var(--primary-color);
  color: var(--secondary-color);
  border: 2px solid var(--secondary-color);
  margin-top: 1.5rem;
}

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

/* Features section */
.features {
  padding: 4rem 2rem;
  background-color: var(--light-color);
  text-align: center;
}

.features h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  margin-bottom: 2rem;
  color: var(--primary-color);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.feature {
  background-color: #ffffff;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.feature i {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.feature h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--primary-color);
}

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

/* About preview */
.about-preview {
  padding: 4rem 2rem;
  background-color: #ffffff;
  text-align: center;
}

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

.about-preview h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.about-preview p {
  font-size: 1rem;
  margin-bottom: 2rem;
  color: var(--text-color);
}

/* Call to action section */
.cta {
  background-color: var(--primary-color);
  color: var(--secondary-color);
  text-align: center;
  padding: 3rem 1rem;
}

.cta h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

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

/* Page header for subpages */
.page-header {
  background-color: var(--light-color);
  padding: 4rem 2rem 2rem;
  text-align: center;
}

.page-header h1 {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.page-header p {
  font-size: 1rem;
  color: var(--text-color);
}

/* Service list styles */
.service-list {
  max-width: 1000px;
  margin: 2rem auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.service-item h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.service-item p {
  font-size: 1rem;
  color: var(--text-color);
  line-height: 1.6;
}

/* About section styles */
.about-section {
  max-width: 800px;
  margin: 2rem auto;
  padding: 0 2rem;
}

.about-section h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  color: var(--primary-color);
  margin-top: 2rem;
  margin-bottom: 0.5rem;
}

.about-section p {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-color);
}

.about-section ul {
  margin: 1rem 0 0 1.5rem;
  list-style-type: disc;
}

.about-section li {
  font-size: 1rem;
  margin-bottom: 0.5rem;
  color: var(--text-color);
}

.about-section strong {
  color: var(--primary-color);
}

/* Blog list styles */
.blog-list {
  max-width: 1000px;
  margin: 2rem auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.post {
  background-color: #ffffff;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
}

.post h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.7rem;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.post-meta {
  font-size: 0.85rem;
  color: var(--accent-color);
  margin-bottom: 1rem;
}

.post p {
  flex-grow: 1;
  font-size: 0.95rem;
  color: var(--text-color);
  margin-bottom: 1rem;
}

.post a.btn-secondary {
  align-self: flex-start;
}

/* Contact page styles */
.contact-section {
  max-width: 1000px;
  margin: 2rem auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.contact-info h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.contact-info p {
  font-size: 1rem;
  margin-bottom: 0.5rem;
  color: var(--text-color);
}

.contact-form {
  background-color: #ffffff;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.3rem;
  font-weight: 700;
  color: var(--primary-color);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1rem;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--primary-color);
  outline: none;
}

.contact-form button.btn-cta {
  margin-top: 1rem;
  width: 100%;
  text-align: center;
}

/* Footer */
footer {
  background-color: var(--primary-color);
  color: var(--secondary-color);
  text-align: center;
  padding: 1rem;
  font-size: 0.9rem;
}

/* Responsive tweaks */
@media (max-width: 600px) {
  .hero-content h1 {
    font-size: 2.3rem;
  }
  .hero-content p {
    font-size: 1rem;
  }
  .navbar .nav-links {
    gap: 1rem;
  }
}