/* ── Reset & Base ────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --green:      #2B4428;
  --green-light:#3D5C38;
  --cream:      #FAF5EB;
  --cream-dark: #F0E8D8;
  --rust:       #8C4A2F;
  --gold:       #B8923A;
  --text:       #3A3328;
  --text-light: #6B5F50;
  --border:     #E0D8C8;
  --font:       'Playfair Display', Georgia, serif;
  --font-sans:  'Source Sans 3', system-ui, -apple-system, sans-serif;
}

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: var(--cream);
  color: var(--text);
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ── Accent Bar ─────────────────────────────���───────────────────────────── */
.accent-bar {
  height: 6px;
  background: linear-gradient(90deg, var(--green), var(--green-light), var(--gold), var(--rust));
}

/* ── Site Layout (non-home pages) ────��──────────────────────────────────── */
.site-header {
  text-align: center;
  padding: 2rem 1rem 1rem;
  border-bottom: 1px solid var(--border);
  background: var(--cream);
}

.site-logo {
  max-width: 220px;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 4px 12px rgba(43, 68, 40, .12));
}

.logo-link { display: inline-block; }

.site-main {
  flex: 1;
  max-width: 780px;
  width: 100%;
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
}

.site-footer {
  text-align: center;
  padding: 1.5rem 1rem;
  border-top: 1px solid var(--border);
  color: var(--text-light);
  font-size: 0.8rem;
  opacity: 0.7;
}

/* ── Typography ──────────────────────────────────���───────────────────────── */
h1 { font-family: var(--font); font-size: 1.75rem; margin-bottom: 0.75rem; color: var(--green); }
h2 { font-family: var(--font); font-size: 1.35rem; margin-bottom: 0.5rem; color: var(--green); letter-spacing: .02em; }
h3 { font-family: var(--font); font-size: 1.1rem; margin-bottom: 0.4rem; }
p  { margin-bottom: 1rem; }
a  { color: var(--green); text-decoration: underline; }
a:hover { color: var(--green-light); }

/* ── Home Page ────────���─────────────────────────────────────────────────── */
.page {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.5rem 2rem;
  position: relative;
  overflow: hidden;
}

.page::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 0L60 30L30 60L0 30Z' fill='none' stroke='%232B4428' stroke-width='.3' opacity='.06'/%3E%3C/svg%3E");
  pointer-events: none;
}

.header {
  text-align: center;
  margin-bottom: 2rem;
  animation: fadeUp .8s ease-out both;
}

.logo {
  width: min(220px, 50vw);
  height: auto;
  margin-bottom: 1.25rem;
  filter: drop-shadow(0 4px 12px rgba(43, 68, 40, .12));
}

.tagline {
  font-family: var(--font);
  font-size: clamp(1.05rem, 2.5vw, 1.3rem);
  font-weight: 400;
  font-style: italic;
  color: var(--green);
  margin-bottom: .75rem;
}

.intro {
  max-width: 520px;
  margin: 0 auto;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-light);
}

.cards {
  display: flex;
  gap: 1.5rem;
  max-width: 720px;
  width: 100%;
  animation: fadeUp .8s .2s ease-out both;
}

.card {
  flex: 1;
  background: white;
  border: 1px solid var(--cream-dark);
  border-radius: 12px;
  padding: 1.75rem 1.5rem;
  text-align: center;
  box-shadow: 0 2px 20px rgba(43, 68, 40, .06);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.card h2 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: .6rem;
}

.card p {
  font-size: .9rem;
  color: var(--text-light);
  line-height: 1.5;
  margin-bottom: 1.25rem;
  flex: 1;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  text-decoration: none;
  font-weight: 600;
  font-size: .9rem;
  padding: .65rem 1.4rem;
  border-radius: 8px;
  transition: transform .15s, filter .2s;
  color: white;
}
.card-link:hover { transform: translateY(-1px); filter: brightness(1.15); color: white; }
.card-link + .card-link { margin-top: .6rem; }
.card-link svg { width: 16px; height: 16px; fill: currentColor; }

.card-link--rust  { background: var(--rust); }
.card-link--green { background: var(--green); }

.home-footer {
  text-align: center;
  padding: 1.5rem 1rem;
  font-size: .8rem;
  color: var(--text-light);
  opacity: .7;
}

.location {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .35rem;
  margin-bottom: .3rem;
  font-size: .85rem;
  color: var(--text-light);
}
.location svg { width: 14px; height: 14px; fill: var(--rust); }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Buttons ──────────���───────────────────────────��──────────────────────── */
.btn {
  display: inline-block;
  padding: 0.55rem 1.25rem;
  background: var(--green);
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: background 0.15s;
}
.btn:hover { background: var(--green-light); color: #fff; }

/* ── Available Page ────────────���────────────────────────────────────���────── */
.available-header { margin-bottom: 2rem; }

.available-section {
  margin-bottom: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--border);
}
.available-section:last-child { border-bottom: none; }

.package-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.25rem;
  margin-top: 1rem;
}

.package-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1.25rem;
}

.package-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.5rem;
}

.package-header h3 { margin: 0; font-size: 1.05rem; }

.package-price {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--green);
}

.package-description {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: 0.75rem;
}

.package-contents {
  list-style: none;
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
  padding-left: 0;
}
.package-contents li {
  padding: 0.2rem 0;
  border-bottom: 1px dotted var(--border);
}
.package-contents li:last-child { border-bottom: none; }

.item-weight { color: var(--text-light); font-size: 0.85rem; }

.package-availability { font-size: 0.85rem; font-family: var(--font-sans); margin-top: 0.5rem; }
.in-stock  { color: var(--green); font-weight: 600; }
.out-of-stock { color: var(--text-light); }

.unavailable-section {
  margin-top: 1rem;
  opacity: 0.7;
}
.unavailable-section summary {
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: 1rem;
}

.items-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  font-family: var(--font-sans);
}
.items-table th {
  text-align: left;
  padding: 0.5rem 0.75rem;
  border-bottom: 2px solid var(--border);
  color: var(--green);
  font-weight: 600;
}
.items-table td {
  padding: 0.6rem 0.75rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.price-cell { font-weight: 600; color: var(--green); }

.none-available { color: var(--text-light); font-style: italic; }

.available-footer {
  font-size: 0.9rem;
  color: var(--text-light);
  font-family: var(--font-sans);
  text-align: center;
}

.back-link { font-family: var(--font-sans); }

/* ── Home carousel ────────────────────────────────────────────────────────── */
/* `.hero-carousel` lives inside .page, a column flex container with
   align-items + justify-content: center. Without flex-shrink: 0, the
   flex layout squashes the carousel's intrinsic height down to ~70px
   no matter what aspect-ratio or padding-bottom we set on the child.
   flex-shrink: 0 plus the padding-bottom hack locks the 16:9 box. */
.hero-carousel {
  position: relative;
  width: 100%;
  max-width: 1100px;
  flex: 0 0 auto;
  margin: 0 auto 2rem;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  background: #f0ede5;
}
.hero-carousel::before {
  content: '';
  display: block;
  padding-bottom: 56.25%; /* 9 / 16 = 0.5625 — locks 16:9 in any layout */
}
.hero-slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
}
.hero-slide-active { opacity: 1; }
.hero-slide img { display: block; width: 100%; height: 100%; object-fit: cover; }
.hero-slide figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 1rem 1.25rem;
  background: linear-gradient(to top, rgba(0,0,0,0.65), transparent);
  color: #fff;
  font-family: var(--font-sans);
  font-size: 1rem;
}
.hero-dots {
  position: absolute;
  bottom: 0.75rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
  z-index: 1;
}
.hero-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  border: 1px solid rgba(0,0,0,0.2);
  cursor: pointer;
  transition: background 0.2s;
}
.hero-dot-active { background: #fff; }

/* ── Flock page ───────────────────────────────────────────────────────────── */
.flock-intro { max-width: 720px; margin: 0 auto 2.5rem; text-align: center; }
.flock-intro h1 { font-family: var(--font-display); font-size: 2.5rem; margin-bottom: 1rem; color: var(--green); }
.flock-intro p { line-height: 1.6; color: var(--text); }

.flock-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
  max-width: 1100px;
  margin: 0 auto 3rem;
}

.flock-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
}

.flock-card-photo {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #f0ede5;
}
.flock-card-photo-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  font-style: italic;
}

.flock-card-body { padding: 1.25rem 1.5rem 1.5rem; }
.flock-card-name { font-family: var(--font-display); font-size: 1.6rem; margin: 0 0 0.25rem; color: var(--green); }
.flock-card-meta { font-family: var(--font-sans); color: var(--text-light); font-size: 0.95rem; margin: 0 0 0.75rem; }
.flock-card-desc { line-height: 1.55; color: var(--text); margin: 0 0 1rem; }

.flock-card-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  margin-top: 0.75rem;
}
.flock-card-gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 4px; }

.flock-card-videos { margin-top: 1rem; display: flex; flex-direction: column; gap: 0.75rem; }
.flock-card-video { position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; border-radius: 6px; }
.flock-card-video iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0; }

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 580px) {
  .cards { flex-direction: column; }
  .page { padding: 2.5rem 1.25rem 1.5rem; }
  .package-grid { grid-template-columns: 1fr; }
  .items-table { font-size: 0.85rem; }
  .flock-grid { grid-template-columns: 1fr; }
  .flock-intro h1 { font-size: 2rem; }
}
