/*
 * Global styles for the Ainsdale Bees & Honey website
 *
 * This stylesheet introduces a modern, responsive look inspired by coastal
 * colours and honey tones. It uses CSS variables to centralise the colour
 * palette and leverages flexbox and grid layouts for structure. No external
 * dependencies are required so the site remains self‑contained for
 * Cloudflare Pages hosting.
 */

/* CSS custom properties for easy theming */
:root {
  --primary-color: #ffe48a;  /* soft honey yellow */
  --accent-color: #f5a623;   /* richer golden tone */
  --secondary-color: #2f4858;/* deep coastal blue */
  --light-bg: #fffdf5;       /* very light cream */
  --dark-bg: #1e2b3c;        /* dark blue-grey */
}

/* Reset & base styles */
*, *::before, *::after {
  box-sizing: border-box;
}

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

a {
  color: var(--secondary-color);
  text-decoration: none;
  transition: color 0.2s ease-in-out;
}

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

/* Header with navigation */
header {
  background: var(--dark-bg);
  color: var(--light-bg);
  padding: 1rem 0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

header .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.logo {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--primary-color);
}

nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

nav a {
  color: var(--light-bg);
  font-weight: 500;
}

nav a:hover, nav a:focus {
  color: var(--primary-color);
}

/* Hero section */
.hero {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
  color: var(--dark-bg);
  padding: 5rem 0;
  text-align: center;
}

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

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

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

/* Section spacing */
.section {
  padding: 2rem 0;
}

/* Cards layout */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.card {
  background: var(--light-bg);
  border: 1px solid #eee;
  border-radius: 0.5rem;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.card h3 {
  margin-top: 0;
  color: var(--dark-bg);
}

/* Table styling */
table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
  overflow-x: auto;
}

table th, table td {
  padding: 0.75rem 1rem;
  text-align: left;
}

table th {
  background: var(--primary-color);
  color: var(--dark-bg);
}

table tr:nth-child(even) {
  background: #fdf7e5;
}

table tr:nth-child(odd) {
  background: #fff;
}

table tr:hover {
  background: #f6f0d9;
}

table, table th, table td {
  border: none;
}

/* Unordered lists */
ul {
  margin: 0 0 1rem 1.25rem;
  padding: 0;
}

ul li {
  margin-bottom: 0.5rem;
}

/* Footer */
footer {
  background: var(--dark-bg);
  color: var(--light-bg);
  text-align: center;
  padding: 2rem 1rem;
  font-size: 0.9rem;
}

footer img.logo-footer {
  height: 2rem;
  vertical-align: middle;
  margin-left: 0.5rem;
}

@media (max-width: 768px) {
  nav ul {
    justify-content: center;
  }
  .hero h1 {
    font-size: 2rem;
  }
  .hero p {
    font-size: 1rem;
  }
}