/* Rustic Fiber Farm theme */

:root {
  --bg: #f3ede4;
  --bg-alt: #e6dbc8;
  --text: #3b2a1e;
  --accent: #8c5749;
  --accent-dark: #5b3b28;
  --accent-green: #6b8b4a;
  --accent-gold: #c29a5b;
  --border-soft: #d3c4af;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

/* Layout */

.site-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

/* Header & Nav */

.site-header {
  background: linear-gradient(to bottom, #a77458, #8c5749);
  color: #fff;
  padding: 0.75rem 0;
  box-shadow: 0 2px 6px rgba(0,0,0,0.25);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-logo {
  height: 72px;
  width: auto;
  display: block;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-text-title {
  font-family: "Georgia", "Times New Roman", serif;
  font-size: 1.4rem;
  letter-spacing: 0.03em;
}

.brand-text-tagline {
  font-size: 0.85rem;
  opacity: 0.9;
}

.nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.nav a {
  color: #fcefe4;
  text-decoration: none;
  font-size: 0.95rem;
  padding: 0.35rem 0.55rem;
  border-radius: 999px;
  transition: background 0.15s ease, color 0.15s ease;
}

.nav a:hover {
  background: rgba(0,0,0,0.15);
}

.nav a.active {
  background: rgba(0,0,0,0.25);
}

.nav .etsy-btn {
  background: #f7b26a;
  color: #4a2d1c;
  font-weight: 600;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  text-decoration: none;
  box-shadow: 0 1px 3px rgba(0,0,0,0.25);
}

.nav .etsy-btn:hover {
  background: #f39c45;
}

/* Hero */

.hero {
  background:
    linear-gradient(to bottom, rgba(40,25,15,0.55), rgba(40,25,15,0.9)),
    url("images/hero-placeholder.jpg") center/cover no-repeat;
  color: #fff;
  padding: 4rem 1rem 3rem;
}

.hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 2.5rem;
}

.hero-text h1 {
  font-family: "Georgia", "Times New Roman", serif;
  font-size: 2.4rem;
  margin: 0 0 0.75rem;
}

.hero-text p {
  margin: 0 0 1.25rem;
  max-width: 30rem;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.3rem;
  border-radius: 999px;
  border: none;
  text-decoration: none;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.1s ease, box-shadow 0.1s ease, background 0.1s ease;
}

.btn-etsy {
  background: #f7b26a;
  color: #4a2d1c;
  box-shadow: 0 2px 5px rgba(0,0,0,0.4);
}

.btn-etsy:hover {
  background: #f39c45;
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.75);
}

.btn-ghost:hover {
  background: rgba(255,255,255,0.12);
}

.hero-note {
  font-size: 0.85rem;
  opacity: 0.9;
}

.hero-highlight {
  background: rgba(255,255,255,0.1);
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  font-size: 0.9rem;
}

/* Content sections */

.page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2.5rem 1rem 3rem;
}

.page h2 {
  font-family: "Georgia", "Times New Roman", serif;
  font-size: 1.75rem;
  margin-top: 0;
  color: var(--accent-dark);
}

.page h3 {
  font-family: "Georgia", "Times New Roman", serif;
  font-size: 1.25rem;
  margin-top: 1.75rem;
  color: var(--accent-dark);
}

.section-intro {
  max-width: 40rem;
  margin-bottom: 1.5rem;
}

/* Cards */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.card {
  background: #fff;
  border-radius: 0.9rem;
  border: 1px solid var(--border-soft);
  box-shadow: 0 2px 4px rgba(0,0,0,0.06);
  padding: 1.1rem 1.1rem 1.25rem;
}

.card h3 {
  margin-top: 0.25rem;
}

.card-tag {
  display: inline-block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #7b6b57;
  background: #f7efe2;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  margin-bottom: 0.35rem;
}

/* -------------------------------------------------- */
/* HOME PAGE — SIMPLE ANIMAL TILES                    */
/* -------------------------------------------------- */

.animal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.75rem;
  margin-top: 1.5rem;
}

.animal-card {
  background: #fff;
  border-radius: 0.9rem;
  border: 1px solid var(--border-soft);
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0,0,0,0.06);
}

.animal-card img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  display: block;
}

.animal-body {
  padding: 1rem 1.1rem 1.25rem;
}

/* Callout / band */

.callout {
  margin-top: 2rem;
  padding: 1.25rem 1.25rem;
  border-radius: 0.9rem;
  background: linear-gradient(to right, #e4d3b8, #f3ede4);
  border: 1px solid #d3c4af;
}

/* Lists */

ul {
  padding-left: 1.25rem;
}

/* Footer */

.site-footer {
  background: #f0e4d2;
  border-top: 1px solid #d3c4af;
  padding: 1rem 0;
  font-size: 0.85rem;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
}

/* Responsive tweaks */

@media (max-width: 800px) {
  .hero {
    padding: 3rem 1rem 2.25rem;
  }

  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .header-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav {
    justify-content: flex-start;
  }
}

/* -------------------------------------------------- */
/* YARN STORY BLOCK — UPDATED WITH MOBILE FIXES       */
/* -------------------------------------------------- */

.yarn-story-block {
  max-width: 1000px;
  margin: 3rem auto;
  padding: 2rem 2.5rem;
  border-radius: 1.25rem;
  background: #f7f3ee;
  display: flex;
  gap: 2rem;
  align-items: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}

.yarn-story-image {
  flex: 1 1 45%;
  overflow: visible;
}

.yarn-story-image img {
  display: block;
  width: 100%;
  max-width: 420px;
  height: auto;
  margin: 0 auto;
  border-radius: 1rem;
  object-fit: contain;
}

.yarn-story-text {
  flex: 1 1 55%;
}

.yarn-story-text h2 {
  margin-top: 0;
  margin-bottom: 0.75rem;
}

.yarn-story-text p {
  margin-bottom: 0.75rem;
  line-height: 1.6;
}

@media (max-width: 800px) {
  .yarn-story-block {
    flex-direction: column;
    padding: 1.75rem 1.5rem;
    text-align: center;
  }

  .yarn-story-image,
  .yarn-story-text {
    flex: 1 1 auto;
  }

  .yarn-story-image img {
    max-width: 350px;
  }
}

/* -------------------------------------------------- */
/* HERD SUMMARY (Animals Page)                        */
/* -------------------------------------------------- */

.herd-summary {
  margin-top: 1.5rem;
  margin-bottom: 2rem;
  padding: 1.5rem 1.5rem 1.75rem;
  border-radius: 1rem;
  background: linear-gradient(to right, #e4d3b8, #f3ede4);
  border: 1px solid var(--border-soft);
}

.herd-summary h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-family: "Georgia", "Times New Roman", serif;
  font-size: 1.5rem;
  color: var(--accent-dark);
}

.herd-summary-intro {
  margin-top: 0;
  margin-bottom: 1rem;
  max-width: 38rem;
}

.herd-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
  margin-top: 0.5rem;
}

.herd-summary-item {
  background: #fff;
  border-radius: 0.9rem;
  border: 1px solid var(--border-soft);
  padding: 0.75rem 0.9rem 0.9rem;
  text-align: center;
  box-shadow: 0 2px 4px rgba(0,0,0,0.04);
}

.herd-summary-label {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #7b6b57;
  margin-bottom: 0.15rem;
}

.herd-summary-count {
  display: block;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--accent-dark);
}

/* -------------------------------------------------- */
/* ANIMALS PAGE – PROFILE CARDS (SCOPED)              */
/* -------------------------------------------------- */

/* Make sure <main> on animals.html has: class="page animals-page" */

.animals-page .animal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(480px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.animals-page .animal-card {
  background: #ffffff;
  border-radius: 14px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* FIXED: full-height images with restored top/bottom */
.animals-page .animal-photo {
  width: 100%;
  height: auto;          /* override home-page 190px */
  max-height: 450px;     /* gives back top & bottom */
  object-fit: cover;
  object-position: center 40%;
  display: block;
}

/* Text block */
.animals-page .animal-info {
  padding: 1.25rem 1.5rem 1.5rem;
}

.animals-page .animal-name {
  margin: 0;
  font-size: 1.4rem;
  font-weight: 600;
  color: #3a2c22;
}

.animals-page .animal-breed {
  margin: 0.35rem 0 0.75rem 0;
  font-size: 0.98rem;
  font-weight: 500;
  color: #7a6556;
}

.animals-page .animal-description {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.5;
  color: #3a2c22;
}

/* Side-by-side layout on wider screens */
@media (min-width: 720px) {
  .animals-page .animal-card {
    flex-direction: row;
  }

  .animals-page .animal-photo {
    max-width: 45%;
    max-height: none;
  }

  .animals-page .animal-info {
    flex: 1;
  }
}

