/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Body */
body {
  font-family: 'Jost', sans-serif;
  background-color: #330000;
  color: #ffffff;
  line-height: 1.6;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

/* Header */
header {
  text-align: center;
  padding: 20px;
}

header h1 {
  font-size: 2.2rem;
  margin-bottom: 10px;
}

.tagline {
  font-size: 1rem;
  font-weight: 300;
  color: #ffcccc;
}

/* Navigation */
.navbar {
  background-color: #5a1a1a;
  padding: 10px 20px;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.2rem;
}

.nav-toggle {
  background: none;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  display: none;
}

.nav-menu {
  list-style: none;
  display: flex;
  gap: 20px;
}

.nav-menu li a {
  color: #fff;
  text-decoration: none;
  font-weight: bold;
}

/* Responsive nav */
@media (max-width: 768px) {
  .nav-menu {
    display: none;
    flex-direction: column;
    background-color: #5a1a1a;
    position: absolute;
    top: 60px;
    right: 20px;
    padding: 10px;
    border-radius: 5px;
  }

  .nav-menu.active {
    display: flex;
  }

  .nav-toggle {
    display: block;
  }
}

/* Sections */
.main-content {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  margin: 20px 0;
}

.centered-row {
  display: flex;
  justify-content: center;
  margin: 20px 0;
}

.card-box {
  background-color: #5a1a1a;
  border-radius: 5px;
  padding: 20px;
  max-width: 576px;
  flex: 1;
  min-width: 240px;
  text-align: center;
  transition: all 0.2s ease-in-out;
}

.card-box:hover {
  background-color: #6a1a1a;
  outline: 2px solid #ffb3b3;
  transform: scale(1.02);
}

/* Profile pic */
.profile-pic {
  max-width: 80px;
  border-radius: 10%;
  margin-bottom: 10px;
}

/* Footer */
footer {
  background-color: #5a1a1a;
  text-align: center;
  padding: 15px;
}

footer nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 1rem;
  padding: 0;
}

footer nav a {
  color: #ffcccc;
  text-decoration: none;
  font-size: 0.9rem;
}

/* Responsive stack */
@media (max-width: 768px) {
  .main-content {
    flex-direction: column;
  }

  .centered-row {
    flex-direction: column;
    align-items: center;
  }

  .card-box {
    margin-bottom: 20px;
  }
}
/* === BLOG SECTION === */
.blog-posts {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-top: 2rem;
  padding: 1rem;
}

.blog-post {
  background-color: #440000;
  border-left: 6px solid #cc4444;
  border-radius: 1rem;
  padding: 1.5rem;
  color: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 750px;
  margin: 0 auto;
  transition: transform 0.2s ease;
}

.blog-post:hover {
  transform: translateY(-2px);
}

.blog-post h3 {
  margin-top: 0;
  font-size: 1.5rem;
  color: #ffcccc;
}

.blog-post a {
  text-decoration: none;
  color: #ff6666;
}

.blog-post a:hover {
  text-decoration: underline;
}

.tags {
  margin-top: 0.5rem;
}

.tag {
  display: inline-block;
  background-color: #661111;
  color: #ffcccc;
  padding: 0.25em 0.6em;
  font-size: 0.8em;
  border-radius: 999px;
  margin-right: 0.5em;
}

/* COFFEE INDEX STYLING */
.coffee-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
  padding: 1rem;
}

.coffee-card {
  display: flex;
  flex-direction: column;
  background-color: #330000;
  border: 1px solid #551111;
  border-left: 6px solid #aa0000;
  border-radius: 1rem;
  overflow: hidden;
  color: #f9f9f9;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.coffee-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}

.coffee-thumbnail {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-bottom: 1px solid #551111;
}

.coffee-info {
  padding: 1rem 1.2rem;
}

.coffee-card h3 {
  margin-top: 0;
  font-size: 1.4rem;
  color: #ff9999;
}

.coffee-card a {
  text-decoration: none;
  color: #ff9999;
}

.coffee-card a:hover {
  text-decoration: underline;
}

.subtitle {
  color: #ccc;
  font-size: 1rem;
  margin-bottom: 1rem;
}
/* Landing Page Background */
body.landing {
  background-color: #b54c4c;
  background-image: url('/assets/images/hills.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  position: relative;
  color: white;
}

/* Optional overlay to preserve readability */
body.landing::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(181, 76, 76, 0.6); /* semi-transparent red tint */
  z-index: -1;
}

/* Ensure content is visible over the overlay */
body.landing main {
  position: relative;
  background-color: rgba(0, 0, 0, 0.4);
  padding: 2rem;
  border-radius: 12px;
  margin: 1rem;
  z-index: 1;
}

body.bg-barbican {
  background-image: url('/assets/images/barbican.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: scroll;
  background-color: #330000;
  color: white;
  position: relative;
}

body.bg-barbican::before {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(50, 10, 10, 0.6);
  z-index: -1;
  pointer-events: none;
}

body.bg-dam {
  background-image: url('/assets/images/dam.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: scroll;
  background-color: #330000;
  color: white;
  position: relative;
}

body.bg-dam::before {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(60, 15, 15, 0.6);
  z-index: -1;
  pointer-events: none;
}
/* --- Sticky footer across all pages using the default layout --- */
html, body { height: 100%; }

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main { flex: 1 0 auto; }

/* Push footer to the bottom */
footer {
  margin-top: auto;
}


