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

:root {
  --green: #4a6741;
  --green-dark: #354a2e;
  --brown: #6b4f3a;
  --cream: #faf6f0;
  --warm-white: #fff9f2;
  --sand: #e8ddd0;
  --text: #2e2e2e;
  --text-light: #5a5a5a;
}

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  color: #2e2e2e;
  line-height: 1.6;
  background: #fff9f2;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main { flex: 1; }

/* === Logo === */
.hero-logo {
  width: 100%;
  max-width: 1200px;
  margin-bottom: 1rem;
  filter: brightness(0) invert(1);
}

.hero h1 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* === Hero === */
.hero {
  min-height: 55vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(135deg, var(--green-dark), var(--green) 60%, var(--brown));
  background-size: cover;
  background-position: center;
  color: #fff;
  padding: 2rem;
  position: relative;
}

.hero[style*="background-image"] { background-blend-mode: overlay; }
.hero::after { content: ''; position: absolute; inset: 0; background: rgba(53, 74, 46, 0.55); }
.hero .hero-overlay { position: relative; z-index: 1; }

.hero-small { min-height: 25vh; }
.hero-small .hero-logo { width: 100%; max-width: 900px; }

.tagline {
  font-size: clamp(1.1rem, 3vw, 1.5rem);
  font-style: italic;
  opacity: 0.9;
  margin-bottom: 0.75rem;
}

.hero-sub {
  font-size: 1.05rem;
  opacity: 0.85;
  max-width: 500px;
  margin: 0 auto;
}

/* === Button === */
.btn {
  display: inline-block;
  background: var(--green);
  color: #fff;
  padding: 0.75rem 2rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}

.btn:hover { background: var(--green-dark); transform: translateY(-1px); }

/* === Tabs === */
.tabs {
  display: flex;
  flex-wrap: wrap;
  background: var(--cream);
  border-bottom: 2px solid var(--sand);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 0;
  justify-content: center;
}

.tab {
  padding: 0.85rem 1.25rem;
  text-decoration: none;
  color: var(--text-light);
  font-size: 0.95rem;
  font-weight: 500;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  transition: color 0.2s, border-color 0.2s;
}

.tab:hover { color: var(--green); }
.tab.active { color: var(--green-dark); border-bottom-color: var(--green); font-weight: 700; }

@media (max-width: 520px) {
  .tab { padding: 0.6rem 0.7rem; font-size: 0.82rem; }
}

/* === Page content === */
.page {
  max-width: 800px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 3rem;
}

.page h2 {
  font-size: 1.75rem;
  color: var(--green-dark);
  margin-bottom: 1rem;
}

.page h3 {
  font-size: 1.25rem;
  color: var(--green-dark);
  margin: 2rem 0 0.75rem;
}

.page p + p { margin-top: 0.75rem; }

/* === Cards === */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  margin-top: 1rem;
}

.card {
  background: var(--warm-white);
  border: 1px solid var(--sand);
  border-left: 4px solid var(--green);
  border-radius: 0 10px 10px 0;
  padding: 1.5rem;
}

.card:nth-child(2) { border-left-color: var(--brown); }
.card:nth-child(3) { border-left-color: var(--green-dark); }
.card:nth-child(4) { border-left-color: #8a6d5b; }
.card:nth-child(5) { border-left-color: var(--green); }
.card:nth-child(6) { border-left-color: var(--brown); }
.card:nth-child(7) { border-left-color: var(--green-dark); }

.card h3 { margin: 0 0 0.5rem; color: var(--green-dark); font-size: 1.1rem; }

/* === Offerings (two-column list) === */
.offerings {
  margin-top: 1.5rem;
}

.offering {
  display: flex;
  gap: 2rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--sand);
}

.offering:last-child { border-bottom: none; }

.offering dt {
  flex: 0 0 180px;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--green-dark);
}

.offering dd {
  flex: 1;
  color: var(--text-light);
  line-height: 1.6;
}

@media (max-width: 600px) {
  .offering { flex-direction: column; gap: 0.25rem; }
  .offering dt { flex: none; }
}

.price {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--brown);
}

.pricing-note {
  margin-top: 1.5rem;
  font-style: italic;
  color: var(--text-light);
  text-align: center;
}

/* === Steps === */
.steps {
  list-style: none;
  counter-reset: step;
}

.steps li {
  counter-increment: step;
  display: flex;
  flex-direction: column;
  padding: 1rem 0 1rem 3.5rem;
  position: relative;
  border-left: 2px solid var(--sand);
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: -0.85rem;
  width: 1.7rem;
  height: 1.7rem;
  background: var(--green);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
}

.steps li strong { font-size: 1.1rem; color: var(--green-dark); }
.steps li span { color: var(--text-light); }

/* === Small Print === */
.small-print { list-style: disc; padding-left: 1.25rem; color: var(--text-light); }
.small-print li { margin-bottom: 0.5rem; }

/* === Calendar === */
.cal-grid { display: grid; grid-template-columns: repeat(7,1fr); gap: 4px; max-width: 500px; margin: 1rem 0; }
.cal-header { font-weight: 700; text-align: center; font-size: 0.8rem; color: var(--text-light); padding: 0.3rem; }
.cal-day { text-align: center; padding: 0.5rem 0.25rem; border-radius: 6px; font-size: 0.9rem; border: 1px solid var(--sand); background: #4a9e4a; color: #fff; }
.cal-day.admin { cursor: pointer; }
.cal-day.admin:hover { border-color: var(--green-dark); }
.cal-day.provisional { background: #f39c12 !important; color: #fff !important; border-color: #d68910; }
.cal-day.booked { background: #e74c3c !important; color: #fff !important; border-color: #c0392b; }
.cal-day.empty { border: none; background: none !important; color: transparent; }
.cal-day.past { opacity: 0.6; }
.cal-nav { display: flex; align-items: center; gap: 1rem; margin-bottom: 0.5rem; }
.cal-nav button { background: var(--green); color: #fff; border: none; border-radius: 6px; padding: 0.4rem 1rem; cursor: pointer; font-size: 0.9rem; }
.cal-nav h3 { margin: 0; min-width: 180px; text-align: center; }
.legend { display: flex; gap: 1rem; margin: 1rem 0; font-size: 0.85rem; flex-wrap: wrap; }
.legend span { display: flex; align-items: center; gap: 0.3rem; }
.legend-dot { width: 14px; height: 14px; border-radius: 4px; display: inline-block; }
.legend-dot.avail { background: #4a9e4a; }
.legend-dot.provisional { background: #f39c12; }
.legend-dot.booked { background: #e74c3c; }

/* === Dog Cards === */
.dog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.dog-card {
  text-align: center;
  background: var(--cream);
  border-radius: 10px;
  padding: 1.25rem;
  border: 1px solid var(--sand);
}

.dog-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 0.75rem;
}

.dog-photo-placeholder {
  width: 100%;
  height: 180px;
  background: var(--sand);
  border-radius: 8px;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
}

.dog-card h3 { color: var(--green-dark); margin: 0 0 0.25rem; font-size: 1.1rem; }
.dog-card p { color: var(--text-light); font-size: 0.9rem; margin: 0; }

/* === Gallery === */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1rem;
}

.gallery img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 10px;
  transition: transform 0.2s;
}

.gallery img:hover { transform: scale(1.03); }

.cal-day.pick { cursor: pointer; }
.cal-day.pick:hover { border-color: var(--green-dark); transform: scale(1.05); }
.cal-day.pick.booked { cursor: not-allowed; }
.cal-day.pick.booked:hover { transform: none; }
.cal-day.selected {
  background: repeating-linear-gradient(45deg, var(--green-dark), var(--green-dark) 5px, var(--green) 5px, var(--green) 10px);
  color: #fff; border-color: var(--green-dark); font-weight: 700;
}
.cal-day.selected.provisional {
  background: repeating-linear-gradient(45deg, var(--green-dark), var(--green-dark) 5px, #f39c12 5px, #f39c12 10px);
}
.legend-dot.selected { background: var(--green-dark); }

.date-picker-wrap { margin: 0.5rem 0; }

.selected-dates { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.75rem; }
.date-chip {
  background: var(--green-dark); color: #fff; padding: 0.3rem 0.6rem; border-radius: 20px;
  font-size: 0.85rem; display: flex; align-items: center; gap: 0.3rem;
}
.date-chip button {
  background: none; border: none; color: #fff; cursor: pointer; font-size: 1rem;
  padding: 0; line-height: 1; opacity: 0.8;
}
.date-chip button:hover { opacity: 1; }

/* === Contact Form === */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 1.5rem;
  max-width: 500px;
}

.contact-form label {
  font-weight: 600;
  font-size: 0.9rem;
  margin-top: 0.5rem;
  color: var(--text-light);
}

.contact-form input,
.contact-form textarea {
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--sand);
  border-radius: 6px;
  font-size: 1rem;
  font-family: inherit;
  background: #fff;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid var(--green);
  outline-offset: 1px;
  border-color: var(--green);
}

.contact-form .btn { margin-top: 1rem; align-self: flex-start; }

.form-status { margin-top: 0.75rem; font-size: 0.95rem; }
.form-status.success { color: var(--green); }
.form-status.error { color: #b44; }
.form-note { margin-top: 0.75rem; font-size: 0.85rem; color: var(--text-light); }
.form-note a { color: var(--green); }

.field-error { display: none; color: #b44; font-size: 0.85rem; margin-top: 0.2rem; }
.field-error.show { display: block; }

.btn-whatsapp { background: #25D366; color: #fff; }
.btn-whatsapp:hover { background: #1da851; }

/* === Footer === */
footer {
  text-align: center;
  padding: 2rem 1rem;
  background: var(--green-dark);
  color: rgba(255,255,255,0.75);
  font-size: 0.9rem;
}

footer p + p { margin-top: 0.25rem; }
footer a { color: rgba(255,255,255,0.75); }
footer a:hover { color: #fff; }
