/*
 * Global styles for poule.net
 *
 * This file defines the colour palette, typography and responsive
 * layout rules used throughout the site. A mobile–first approach
 * ensures pages scale gracefully from phones up to large desktop
 * monitors. Colours have been selected to evoke a warm, rustic
 * aesthetic while maintaining sufficient contrast for accessibility.
 */

/* CSS custom properties allow easy theming */
:root {
  --bg-colour: #faf8f3;
  --primary-colour: #1e3a5f;
  --secondary-colour: #e59a24;
  --text-colour: #333333;
  --light-colour: #ffffff;
  --muted-colour: #f0ece6;
  --border-radius: 0.5rem;
  --container-max-width: 1200px;
  --transition-speed: 0.2s;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
  background-color: var(--bg-colour);
  color: var(--text-colour);
  line-height: 1.6;
}

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

a:hover,
a:focus {
  color: var(--secondary-colour);
}

img {
  max-width: 100%;
  display: block;
  border-radius: var(--border-radius);
}

/* Container utility class */
.container {
  width: 90%;
  max-width: var(--container-max-width);
  margin: 0 auto;
}

/* Header */
header {
  background: var(--light-colour);
  border-bottom: 1px solid #e2e2e2;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--primary-colour);
}

/* Navigation menu */
nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

nav li a {
  font-weight: 500;
}

/* Mobile menu toggle (hidden for now) */
.menu-toggle {
  display: none;
}

/* Hero section */
.hero {
  position: relative;
  height: 60vh;
  min-height: 320px;
  color: var(--light-colour);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  background-image: linear-gradient(rgba(30,58,95,0.5), rgba(30,58,95,0.5)), url('../images/hero.webp');
  background-size: cover;
  background-position: center;
}

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

.hero p {
  font-size: 1.1rem;
  max-width: 40rem;
  margin: 0 auto;
}

/* Quick navigation cards */
.quick-nav {
  margin-top: -4rem; /* overlap hero */
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  padding: 0 1rem;
}

.quick-card {
  background: var(--light-colour);
  border-radius: var(--border-radius);
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  padding: 1.5rem;
  flex: 1 1 250px;
  text-align: center;
  transition: transform var(--transition-speed);
}

.quick-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.12);
}

.quick-card span {
  display: inline-block;
  margin-bottom: 0.5rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--secondary-colour);
  color: var(--light-colour);
  font-size: 1.5rem;
  line-height: 40px;
}

.quick-card h3 {
  margin: 0.5rem 0;
  font-size: 1.1rem;
  color: var(--primary-colour);
}

.quick-card p {
  font-size: 0.9rem;
  color: #555;
  margin-bottom: 0;
}

/* Featured guides section */
.featured {
  margin: 4rem 0 2rem;
}

.featured h2 {
  text-align: center;
  margin-bottom: 1.5rem;
  color: var(--primary-colour);
}

.cards-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.guide-card {
  background: var(--light-colour);
  border-radius: var(--border-radius);
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-speed);
}

.guide-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.12);
}

.guide-card img {
  height: 160px;
  object-fit: cover;
}

.guide-content {
  padding: 1rem;
  flex: 1;
}

.guide-content h3 {
  margin-bottom: 0.5rem;
  font-size: 1rem;
  color: var(--primary-colour);
}

.guide-content p {
  font-size: 0.85rem;
  color: #555;
}

/* Seasonal widget */
.seasonal-widget {
  background: var(--muted-colour);
  border-left: 4px solid var(--secondary-colour);
  padding: 1rem;
  margin: 2rem 0;
  border-radius: var(--border-radius);
}

.seasonal-widget h4 {
  margin-bottom: 0.5rem;
  color: var(--primary-colour);
}

.seasonal-widget a {
  font-weight: bold;
}

/* Testimonials / trust section */
.trust {
  background: var(--primary-colour);
  color: var(--light-colour);
  padding: 2rem 1rem;
  text-align: center;
  border-radius: var(--border-radius);
  margin: 2rem 0;
}

.trust h3 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 600;
}

/* Newsletter signup */
.newsletter {
  margin: 3rem 0;
  background: var(--light-colour);
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.newsletter h4 {
  margin-bottom: 0.5rem;
  color: var(--primary-colour);
}

.newsletter form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.newsletter input[type="email"] {
  flex: 1;
  padding: 0.8rem;
  border: 1px solid #ccc;
  border-radius: var(--border-radius);
  font-size: 1rem;
}

.newsletter button {
  background: var(--secondary-colour);
  border: none;
  color: var(--light-colour);
  padding: 0.8rem 1.5rem;
  border-radius: var(--border-radius);
  font-size: 1rem;
  cursor: pointer;
  transition: background var(--transition-speed);
}

.newsletter button:hover {
  background: #cf8a1f;
}

/* Footer */
footer {
  background: var(--primary-colour);
  color: var(--light-colour);
  padding: 2rem 1rem;
  margin-top: 4rem;
}

footer .footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: space-between;
  align-items: flex-start;
}

footer h4 {
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

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

footer ul li a {
  color: var(--light-colour);
  font-size: 0.9rem;
}

footer .copy {
  margin-top: 1rem;
  text-align: center;
  font-size: 0.8rem;
  opacity: 0.8;
}

/* Article layout */
.article-header {
  margin: 2rem 0;
}

.article-header h1 {
  font-size: 2rem;
  color: var(--primary-colour);
  margin-bottom: 0.5rem;
}

.article-meta {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 1rem;
}

.progress-bar {
  height: 5px;
  background: var(--muted-colour);
  border-radius: var(--border-radius);
  overflow: hidden;
  margin-bottom: 1rem;
}

.progress-bar .progress {
  height: 100%;
  background: var(--secondary-colour);
  width: 0;
}

.table-of-contents {
  background: var(--muted-colour);
  padding: 1rem;
  border-radius: var(--border-radius);
  margin-bottom: 2rem;
}

.table-of-contents h3 {
  margin-bottom: 0.5rem;
  font-size: 1rem;
  color: var(--primary-colour);
}

.table-of-contents ul {
  list-style: none;
  padding-left: 0;
}

.table-of-contents li {
  margin-bottom: 0.3rem;
}

.table-of-contents a {
  font-size: 0.9rem;
  color: var(--primary-colour);
}

.article-content h2,
.article-content h3 {
  margin: 1.5rem 0 0.5rem;
  color: var(--primary-colour);
}

.article-content p {
  margin-bottom: 1rem;
}

.callout {
  background: var(--muted-colour);
  border-left: 4px solid var(--secondary-colour);
  padding: 1rem;
  margin: 2rem 0;
  border-radius: var(--border-radius);
}

.faq-section {
  margin: 2rem 0;
}

.faq-section h3 {
  margin-bottom: 0.5rem;
}

.faq-item {
  margin-bottom: 1rem;
}

.faq-item h4 {
  font-size: 1rem;
  margin-bottom: 0.3rem;
  color: var(--primary-colour);
}

.summary-box {
  background: var(--muted-colour);
  padding: 1rem;
  border-radius: var(--border-radius);
  margin: 2rem 0;
}

.summary-box h3 {
  margin-bottom: 0.5rem;
  color: var(--primary-colour);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2rem;
  }
  .quick-card {
    flex: 1 1 45%;
  }
}

@media (max-width: 480px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  nav ul {
    flex-direction: column;
    gap: 0.5rem;
  }
  .hero h1 {
    font-size: 1.5rem;
  }
  .newsletter form {
    flex-direction: column;
  }
  .newsletter button {
    width: 100%;
  }
}