/*
 * Stylesheet for Biesboschweekend.nl
 * This file defines the colour palette, layout and responsive behaviour
 * for the tourism website promoting a weekend in the Brabantse Biesbosch.
 */

/* Colour variables for easy theming */
:root {
  --primary-color: #2f5d34;        /* dark green reminiscent of willow forests */
  --secondary-color: #6fa66e;      /* soft green for accents */
  --accent-color: #f3a546;         /* warm orange for buttons and highlights */
  --background-color: #fdfdfd;     /* clean light background */
  --text-color: #333333;           /* neutral dark text */
  --header-height: 64px;           /* fixed header height */
}

/* Global resets */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Segoe UI', Tahoma, sans-serif;
  color: var(--text-color);
  background-color: var(--background-color);
  line-height: 1.6;
}

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

/* Fixed header with simple navigation */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
}

header .logo {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--primary-color);
  text-decoration: none;
}

nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
}

nav li {
  margin-left: 20px;
}

nav a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

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

/* Hamburger menu for mobile */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 25px;
  height: 20px;
  cursor: pointer;
}

.hamburger span {
  height: 3px;
  width: 100%;
  background: var(--primary-color);
  border-radius: 3px;
}

@media (max-width: 768px) {
  nav ul {
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    background-color: rgba(255, 255, 255, 0.98);
    flex-direction: column;
    align-items: center;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }
  nav ul.open {
    max-height: 400px;
  }
  nav li {
    margin: 15px 0;
  }
  .hamburger {
    display: flex;
  }
}

/* Hero section */
.hero {
  margin-top: var(--header-height);
  height: 60vh;
  min-height: 320px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  overflow: hidden;
}

.hero img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: -2;
}

.hero .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.45);
  z-index: -1;
}

.hero .content {
  text-align: center;
  padding: 0 20px;
}

.hero h1 {
  font-size: 2.4rem;
  margin-bottom: 10px;
}

.hero p {
  font-size: 1.1rem;
  margin-bottom: 20px;
}

/* Generic section styling */
section {
  padding: 40px 20px;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
}

h2 {
  font-size: 1.8rem;
  margin-top: 0;
  margin-bottom: 20px;
  color: var(--primary-color);
}

h3 {
  font-size: 1.4rem;
  margin-top: 0;
  margin-bottom: 10px;
  color: var(--primary-color);
}

p {
  margin-top: 0;
  margin-bottom: 1rem;
}

/* Grid layouts */
.grid {
  display: grid;
  gap: 20px;
}

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

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

@media (min-width: 768px) {
  .grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Card component */
.card {
  background: #ffffff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
}

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

.card-content {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-content h3 {
  margin-top: 0;
  margin-bottom: 10px;
}

.card-content p {
  flex: 1;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 10px 20px;
  background-color: var(--primary-color);
  color: #ffffff;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.3s ease;
}

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

/* Video embed */
.video-container {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 ratio */
  height: 0;
  overflow: hidden;
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Footer */
footer {
  background-color: var(--primary-color);
  color: #ffffff;
  padding: 40px 20px;
}

footer a {
  color: #ffffff;
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

footer .footer-container {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
}

footer .footer-column {
  flex: 1 1 200px;
}

footer h4 {
  margin-top: 0;
  color: var(--accent-color);
}

/* Citation style for referencing sources */
.citation {
  font-size: 0.8rem;
  color: #555;
}

.citation a {
  color: var(--accent-color);
  text-decoration: none;
}

.citation a:hover {
  text-decoration: underline;
}