:root {
  --bg: #f7f1e8;
  --bg-alt: #f0e2d2;
  --accent: #2f5f3a;       /* pine green */
  --accent-soft: #c47a4a;  /* warm leather */
  --accent-dark: #214329;
  --text: #3b2a1f;
  --muted: #7a6a5a;
  --card-bg: #ffffff;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

header {
  background: linear-gradient(135deg, var(--bg-alt), var(--bg));
  border-bottom: 2px solid var(--accent);
  padding: 0.75rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo {
  height: 48px;
  width: auto;
}

header h1 {
  font-size: 1.4rem;
  color: var(--accent-dark);
}

nav a {
  margin-left: 1rem;
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
  font-size: 0.95rem;
}

nav a:hover {
  color: var(--accent-dark);
}

main {
  max-width: 1100px;
  margin: 2rem auto;
  padding: 0 1rem 3rem;
}

h2 {
  margin-bottom: 0.75rem;
  color: var(--accent-dark);
}

h3 {
  margin-bottom: 0.5rem;
  color: var(--accent-soft);
}

p {
  margin-bottom: 0.75rem;
}

ul {
  margin-left: 1.25rem;
  margin-top: 0.5rem;
}

.hero {
  background: var(--card-bg);
  border-radius: 10px;
  padding: 1.5rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  margin-bottom: 2rem;
}

.button-primary {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.7rem 1.4rem;
  background: var(--accent);
  color: #fff;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
}

.button-primary:hover {
  background: var(--accent-dark);
}

.slideshow {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  margin-bottom: 1.5rem;
}


.slideshow img {
  height: 300px;      /* adjust as needed */
  width: 100%;
  display: none;      /* hides images by default */
  object-fit: cover;
}


.slideshow img.active {
  display: block;	/* only the active image is shown */
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.75rem;
  justify-items: center;
}

.card {
  background: var(--card-bg);
  border-radius: 8px;
  padding: 0.5rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
 text-align: center;
}

.card img {
  width: 80px;
  height: 100px;
  object-fit: cover;
  border-radius: 6px;
  margin: 0 auto 0.5rem;
  display: block;
}

.card h3 {
  font-size: 1rem;
}

.card p {
  font-size: 0.9rem;
  color: var(--muted);
}

.about-layout {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  align-items: start;
  margin-top: 1rem;
}

.about-photo {
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  margin-bottom: 0.5rem;
}

footer {
  border-top: 1px solid var(--bg-alt);
  padding: 1rem 2rem;
  text-align: center;
  font-size: 0.85rem;
  color: var(--muted);
}

/* Make pattern cards feel clickable */
.pattern-link {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border-radius: 8px;
  padding: 0.5rem;
}

/* Hover effect */
.pattern-link:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 14px rgba(0,0,0,0.12);
}

/* Image zoom on hover */
.pattern-link img {
  transition: transform 0.25s ease;
  border-radius: 6px;
}

.pattern-link:hover img {
  transform: scale(1.05);
}

/* Larger cards for patterns */
#patterns-grid .card {
  padding: 1rem;
  max-width: 300px;
}

#patterns-grid .card img {
  width: 240px;
  height: 240px;
  object-fit: cover;
  border-radius: 8px;
}
/* Force Patterns page to be 4-wide */
#patterns-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  justify-items: center;
}
.pattern-section {
  margin-bottom: 3rem;
}

.category-title {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  border-bottom: 2px solid #ccc;
  padding-bottom: .5rem;
}
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.filter-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border: 1px solid #c7c7c7;
  background: #faf8f4;
  border-radius: 6px;
  font-size: 1rem;
  color: #3a4a36;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

.filter-btn svg {
  display: block;
}

.filter-btn:hover {
  background: #ece7df;
  border-color: #4a6b3f;
}

.filter-btn.active {
  background: #4a6b3f;
  color: white;
  border-color: #4a6b3f;
}

.filter-btn.active svg {
  stroke: white;
}

