* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
  --green: #1a4a2e;
  --light-green: #2d6a45;
  --gold: #c9a84c;
  --white: #f8f8f0;
  --dark: #111;
  --gray: #555;
}
body { font-family: 'Georgia', serif; background: var(--white); color: var(--dark); }
a { color: var(--gold); text-decoration: none; }
a:hover { text-decoration: underline; }

/* NAV */
nav {
  background: var(--green);
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky; top: 0; z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}
.nav-brand { display: flex; align-items: center; gap: 0.7rem; padding: 1rem 0; }
.nav-brand .logo { font-size: 2rem; }
.nav-brand span { color: var(--gold); font-size: 1.2rem; font-weight: bold; letter-spacing: 1px; }
nav ul { list-style: none; display: flex; gap: 0.2rem; }
nav ul li a { color: var(--white); padding: 1.1rem 1rem; display: block; font-size: 0.92rem; transition: background 0.2s; }
nav ul li a:hover, nav ul li a.active { background: var(--light-green); color: var(--gold); text-decoration: none; }

/* HERO */
.hero {
  background: linear-gradient(135deg, var(--green) 0%, #0d2b1a 60%, #1a1a1a 100%);
  color: var(--white);
  padding: 5rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '♟';
  position: absolute; right: -2rem; bottom: -3rem;
  font-size: 18rem; opacity: 0.06; pointer-events: none;
}
.hero h1 { font-size: 3rem; color: var(--gold); margin-bottom: 1rem; text-shadow: 0 2px 6px rgba(0,0,0,0.5); }
.hero p { font-size: 1.2rem; max-width: 600px; margin: 0 auto 2rem; opacity: 0.9; line-height: 1.7; }
.btn {
  display: inline-block;
  background: var(--gold);
  color: var(--dark);
  padding: 0.8rem 2rem;
  border-radius: 4px;
  font-weight: bold;
  font-size: 1rem;
  transition: transform 0.2s, box-shadow 0.2s;
  border: none; cursor: pointer;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(201,168,76,0.4); text-decoration: none; color: var(--dark); }

/* SECTIONS */
section { padding: 4rem 2rem; max-width: 1100px; margin: 0 auto; }
section h2 { font-size: 2rem; color: var(--green); margin-bottom: 0.5rem; }
.section-line { width: 60px; height: 4px; background: var(--gold); margin-bottom: 2rem; }

/* SERVICES GRID */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1.5rem; }
.service-card {
  background: var(--green);
  color: var(--white);
  border-radius: 8px;
  padding: 2rem 1.5rem;
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
}
.service-card:hover { transform: translateY(-4px); box-shadow: 0 8px 20px rgba(0,0,0,0.2); }
.service-card .icon { font-size: 2.5rem; margin-bottom: 1rem; }
.service-card h3 { color: var(--gold); margin-bottom: 0.7rem; font-size: 1.1rem; }
.service-card p { font-size: 0.9rem; opacity: 0.85; line-height: 1.6; }

/* PUZZLE TEASER */
.puzzle-teaser {
  background: #f4efe6;
  border-left: 5px solid var(--gold);
  border-radius: 8px;
  padding: 2rem;
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  flex-wrap: wrap;
}
.puzzle-teaser .board { font-size: 3.5rem; line-height: 1; }
.puzzle-teaser h3 { color: var(--green); font-size: 1.4rem; margin-bottom: 0.5rem; }
.puzzle-teaser p { color: var(--gray); line-height: 1.7; }

/* CONTACT FORM */
.contact-form { max-width: 600px; }
.contact-form label { display: block; margin-bottom: 0.3rem; font-weight: bold; color: var(--green); }
.contact-form input, .contact-form textarea {
  width: 100%; padding: 0.75rem 1rem;
  border: 2px solid #ddd; border-radius: 4px;
  font-family: inherit; font-size: 1rem;
  margin-bottom: 1.2rem;
  transition: border-color 0.2s;
}
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--gold); outline: none; }
.contact-form textarea { height: 150px; resize: vertical; }
.alert { padding: 1rem; border-radius: 4px; margin-bottom: 1rem; }
.alert-success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.alert-error { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }

/* CHESS BOARD DISPLAY */
.chess-board-display {
  display: inline-grid;
  grid-template-columns: repeat(8, 48px);
  grid-template-rows: repeat(8, 48px);
  border: 3px solid var(--green);
  margin: 1.5rem 0;
}
.cell { width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; font-size: 1.8rem; }
.cell.light { background: #f0d9b5; }
.cell.dark { background: #b58863; }

/* FOOTER */
footer {
  background: var(--green);
  color: var(--white);
  text-align: center;
  padding: 2rem;
  margin-top: 3rem;
  font-size: 0.9rem;
}
footer a { color: var(--gold); }
footer .footer-links { margin-bottom: 0.7rem; }
footer .footer-links a { margin: 0 0.7rem; }

/* PROSE */
.prose h2 { color: var(--green); margin: 1.5rem 0 0.5rem; }
.prose h3 { color: var(--light-green); margin: 1.2rem 0 0.4rem; }
.prose p, .prose li { line-height: 1.8; color: #333; margin-bottom: 0.5rem; }
.prose ul { padding-left: 1.5rem; }
.prose address { font-style: normal; line-height: 2; }

@media (max-width: 700px) {
  .hero h1 { font-size: 2rem; }
  nav ul { display: none; }
  .puzzle-teaser { flex-direction: column; }
}
