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

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  color: #333;
  line-height: 1.6;
  background-color: #fafafa;
  overflow-x: hidden;
}

/* Header */
.site-header {
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid #e5e5e5;
  position: sticky;
  top: 0;
  z-index: 10;
}

.header-inner {
  max-width: 1100px;
  margin: auto;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.4rem;
  font-weight: 600;
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

.main-nav a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
}

.main-nav a:hover {
  text-decoration: underline;
}

/* Hero */
.hero {
  height: 100vh;
  background-image: url("../images/hero.jpg");
  background-size: cover;
  background-position: center;
  position: relative;
}

.hero-overlay {
  height: 100%;
  background: rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: white;
  padding: 2rem;
}

.hero h2 {
  font-size: 3rem;
  margin-bottom: 0.5rem;
}

.hero p {
  font-size: 1.2rem;
}

/* Main content */
.site-main {
  max-width: 1100px;
  margin: auto;
  padding: 4rem 2rem;
}

/* Summary section */
.summary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  margin-bottom: 4rem;
}

.summary-text h3 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.summary-image img {
  width: 100%;
  border-radius: 8px;
}

/* Links */
.links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 4rem;
}

.links a {
  font-size: 2rem;
  color: #333;
}

.links a:hover {
  color: #555;
}

/* Footer */
.site-footer {
  text-align: center;
  padding: 2rem;
  border-top: 1px solid #e5e5e5;
  color: #666;
  background: white;
}

/* Responsive */
@media (max-width: 800px) {
  .summary {
    grid-template-columns: 1fr;
  }

  .hero h2 {
    font-size: 2.2rem;
  }

  .page-hero {
    min-height: 45vh;
    padding: 6rem 1.5rem 4rem;
  }

  .page-hero h2 {
    font-size: 2.2rem;
  }

  .page-hero p {
    font-size: 1.1rem;
  }
}

/* Logo link styling */
.logo a {
  text-decoration: none;
  color: inherit;
}

.logo a:hover {
  color: #7e7e7e;
}


/* Mobile nav button */
.nav-toggle {
  font-size: 1.5rem;
  background: none;
  border: none;
  cursor: pointer;
  line-height: 1;
}

/* Hide original text */
.nav-toggle {
  color: transparent;
  display: none;          /* hide by default (desktop) */
  font-size: 1.6rem;
  background: none;
  border: none;
  cursor: pointer;
  line-height: 1;
  position: relative;
}

/* Hamburger icon */
.nav-toggle::before {
  content: "☰";
  color: #000;
  display: inline-block;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* open state */
.nav-toggle.open::before {
  content: "✕";
  transform: rotate(90deg);
}


/* Mobile styles */
@media (max-width: 700px) {
  .nav-toggle {
    display: block;
  }

  .header-inner {
    flex-wrap: wrap;
  }

  .main-nav {
    display: none;
    width: 100%;
    flex-basis: 100%;
  }

  .main-nav.open {
    display: block;
  }

  .main-nav ul {
    flex-direction: column;
    align-items: center;
    margin-top: 1rem;
  }

  /* Hero modifier for About page */
.hero-about {
  background-image: url("../images/about-hero.jpg");
  background-size: cover;
  background-position: center;
}

/* Two-column layout for About page */
.two-columns {
  display: flex;
  gap: 3rem;
  flex-wrap: wrap;
  align-items: center;
}

.about-text {
  flex: 1 1 300px;
}

.about-text p {
  margin-bottom: 1rem;
  line-height: 1.6;
  color: #555;
}

.about-image {
  flex: 1 1 300px;
}

.about-image img {
  width: 100%;
  border-radius: 16px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}
}






/* Page hero (smaller than homepage hero) */
.page-hero {
  min-height: 60vh;
  padding: 8rem 2rem 6rem;
  text-align: center;

  background-size: cover;
  background-position: center;

  color: white;
  position: relative;

  display: flex;
  flex-direction: column;
  justify-content: center;
}


.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
}

.page-hero h2 {
  font-size: 3rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  position: relative;
}

.page-hero p {
  font-size: 1.3rem;
  color: rgba(255, 255, 255, 0.9);
  position: relative;
}

.hero-cheese {
  background-image: url("../images/cheese-hero.jpg");
}

.hero-games {
  background-image: url("../images/games-hero.jpg");
}



/* Content section */
.content {
  max-width: 700px;
  margin: auto;
}

.content h3 {
  margin: 2rem 0 1rem;
  font-size: 1.5rem;
}

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

/* Form placeholder */
.form-placeholder {
  margin-top: 2rem;
  padding: 1.5rem;
  border: 1px dashed #ccc;
  border-radius: 6px;
  background: #fff;
  text-align: center;
  color: #666;
}

/* Content image inside text pages */
.content-image {
  margin: 2.5rem 0;
  text-align: center;
}

.content-image img {
  max-width: 100%;
  border-radius: 8px;
}





/* Games */
.game-card {
  margin-bottom: 3rem;
}

.game-canvas {
  margin: 1rem 0;
  border: 1px solid #ddd;
  border-radius: 6px;
  overflow: hidden;
}



/* Blog */
.blog-section {
  padding: 5rem 2rem 0 2rem;
}

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

.blog-intro-text {
  color: #666;
  margin-bottom: 3rem;
}

.blog-card {
  background: white;
  padding: 2rem;
  border-radius: 16px;
  margin-bottom: 2rem;
  box-shadow: 0 6px 25px rgba(0,0,0,0.05);
  transition: transform 0.2s ease;
}

.blog-card:hover {
  transform: translateY(-5px);
}

.blog-card h3 {
  margin-bottom: 0.5rem;
}

.blog-card h3 a {
  text-decoration: none;
  color: #222;
}

.blog-card h3 a:hover {
  color: #555;
}

.post-date {
  font-size: 0.85rem;
  color: #888;
  margin-bottom: 1rem;
}

.read-more {
  display: inline-block;
  margin-top: 1rem;
  text-decoration: none;
  font-weight: 500;
  color: #000;
}

.subscribe-section {
  padding: 4rem 2rem;
  text-align: center;
  background: #f9f9f9;
  border-radius: 20px;
  margin-top: 4rem;
}

.subscribe-section h3 {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}

.subscribe-section p {
  color: #666;
  margin-bottom: 2rem;
}



/* Hero modifier for About page */
.hero-about {
  background-image: url("../images/about-hero.jpg");
  background-size: cover;
  background-position: center;
}

/* Two-column layout for About page */
.two-columns {
  display: flex;
  gap: 3rem;
  flex-wrap: wrap;
  align-items: center;
}

.about-text {
  flex: 1 1 300px;
}

.about-text p {
  margin-bottom: 1rem;
  line-height: 1.6;
  color: #555;
}

.about-image {
  flex: 1 1 300px;
}

.about-image img {
  width: 100%;
  border-radius: 16px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}
