/* =====================================================================
   VÄRVID JA PÕHISEADED
   ===================================================================== */
:root {
  --forest: #2f5d3a;       /* tumeroheline */
  --forest-dark: #234a2c;
  --moss: #6b8f5e;         /* samblaroheline */
  --wood: #8b5e3c;         /* puidupruun */
  --wood-dark: #744b2e;
  --wood-light: #d9b88f;   /* hele puit */
  --offwhite: #faf7f0;     /* taust */
  --sand: #f1ebdf;         /* vahelduv taust */
  --text: #2b2b2b;
  --muted: #5c5c55;
  --error: #b3261e;
  --border: #ddd3c2;
  --radius: 12px;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--offwhite);
  color: var(--text);
  font-size: 1.125rem;     /* 18px */
  line-height: 1.65;
}

h1, h2, h3 {
  color: var(--forest);
  font-weight: 700;
  line-height: 1.2;
}

h2 {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  margin-bottom: 0.75rem;
}

a {
  color: var(--forest);
}

:focus-visible {
  outline: 3px solid var(--wood);
  outline-offset: 2px;
}

/* =====================================================================
   ÜLARIBA
   Kitsal ekraanil: pealkiri + keelenupud ühel real, telefoninupp all.
   Alates 768px: kõik ühel real.
   ===================================================================== */
.site-bar {
  position: sticky;
  top: 0;
  z-index: 1020;
  background: var(--forest);
  color: #fff;
}

.site-bar-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0.6rem 1rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem 0.75rem;
}

.site-title {
  flex: 1 1 0;
  min-width: 0;
  margin: 0;
  color: #fff;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.25;
}

/* Telefoninupp: kitsal ekraanil terve rea laiune */
.call-btn {
  flex: 0 0 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.5rem 1rem;
  background: var(--wood);
  color: #fff;
  border-radius: 10px;
  font-size: 1.15rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.call-btn:hover,
.call-btn:focus {
  background: var(--wood-dark);
  color: #fff;
}

/* Piirkond ülariba all (ei jää kerimisel kinni) */
.info-line {
  margin: 0;
  padding: 0.5rem 1rem;
  text-align: center;
  background: var(--sand);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.5;
}

.info-line .bi {
  color: var(--wood);
  margin-right: 0.3rem;
}

@media (min-width: 768px) {
  .site-bar-inner {
    flex-wrap: nowrap;
    padding: 0.6rem 1.25rem;
    gap: 1rem;
  }

  .site-title {
    font-size: 1.35rem;
  }

  .call-btn {
    flex: 0 0 auto;
  }
}

/* Keelevalik (EST / ENG / RUS) */
.lang-switch {
  display: flex;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 8px;
  overflow: hidden;
}

.lang-btn {
  background: transparent;
  border: 0;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.3rem 0.45rem;
  min-height: 44px;
  min-width: 44px;
}

.lang-btn + .lang-btn {
  border-left: 1px solid rgba(255, 255, 255, 0.5);
}

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

.lang-btn[aria-pressed="true"] {
  background: var(--wood-light);
  color: var(--forest-dark);
}

/* =====================================================================
   NUPUD
   ===================================================================== */
.btn {
  min-height: 48px;
  border-radius: 10px;
  font-weight: 600;
}

.btn-forest {
  background: var(--forest);
  border-color: var(--forest);
  color: #fff;
  font-size: 1.25rem;
  padding: 0.8rem 1.5rem;
}

.btn-forest:hover,
.btn-forest:focus {
  background: var(--forest-dark);
  border-color: var(--forest-dark);
  color: #fff;
}

.btn-forest:disabled {
  background: var(--moss);
  border-color: var(--moss);
}

/* =====================================================================
   SEKTSIOONID
   ===================================================================== */
.section {
  padding: 4.5rem 0;
}

.section-alt {
  background: var(--sand);
}

.narrow {
  max-width: 960px;
}

.section-intro {
  color: var(--muted);
  margin-bottom: 2rem;
}

/* ---------- Hinnakiri ---------- */
.price-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
}

.price-item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.25rem 1rem;
  background: #fff;
  border: 1px solid var(--border);
  border-left: 6px solid var(--wood);
  border-radius: var(--radius);
  padding: 1.1rem 1.4rem;
  margin-bottom: 0.9rem;
}

.price-info {
  display: flex;
  flex-direction: column;
}

.price-name {
  font-size: 1.25rem;
  font-weight: 600;
}

.price-species {
  font-size: 1rem;
  color: var(--muted);
}

.price-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--forest);
  white-space: nowrap;
}

.price-unit {
  font-size: 1rem;
  font-weight: 400;
  color: var(--muted);
}

.info-box {
  background: #eef3ea;
  border-radius: var(--radius);
  padding: 1.1rem 1.4rem;
  font-weight: 600;
}

.info-box p {
  margin: 0;
}

.info-box p + p {
  margin-top: 0.35rem;
}

/* ---------- Tellimisvorm ---------- */
.order-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(1.25rem, 4vw, 2.5rem);
}

.form-label {
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.form-control,
.form-select {
  border-color: #c9bfae;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--moss);
  box-shadow: 0 0 0 0.25rem rgba(107, 143, 94, 0.25);
}

.form-hint {
  color: var(--muted);
  font-size: 1rem;
  margin: 0.25rem 0 0.5rem;
}

.field-error {
  color: var(--error);
  font-weight: 600;
  font-size: 1rem;
  margin-top: 0.3rem;
}

.field-error:empty {
  display: none;
}

.field-error::before {
  content: "⚠ ";
}

.is-invalid {
  border-color: var(--error) !important;
}

/* Toote valik (raadionupud) */
legend.form-label {
  font-size: inherit;
  float: none;
}

.product-options {
  display: grid;
  gap: 0.75rem;
}

.product-option {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  background: #fff;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  cursor: pointer;
}

.product-option:hover {
  border-color: var(--moss);
}

.product-option:has(input:checked) {
  border-color: var(--forest);
  background: #eef3ea;
}

.product-option .form-check-input {
  width: 1.5rem;
  height: 1.5rem;
  margin: 0;
  flex-shrink: 0;
}

.product-option .form-check-input:checked {
  background-color: var(--forest);
  border-color: var(--forest);
}

.product-option-name {
  flex: 1;
  font-size: 1.15rem;
  font-weight: 600;
}

.product-option-price {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--forest);
  white-space: nowrap;
}

.product-options.is-invalid .product-option {
  border-color: var(--error);
}

.total-box {
  background: var(--sand);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin-bottom: 1.75rem;
  font-size: 1.25rem;
}

.total-box strong {
  font-size: 1.75rem;
  color: var(--forest);
  margin-left: 0.4rem;
}

.total-detail {
  font-size: 1rem;
  color: var(--muted);
}

/* Privaatsusmärkus saatmisnupu kohal */
.privacy-note {
  margin: 1.5rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ---------- Kalender ---------- */
.calendar-wrap {
  max-width: 1000px;
  border-radius: var(--radius);
}

.calendar-wrap.is-invalid {
  outline: 2px solid var(--error);
  outline-offset: 4px;
}

.calendar-wrap .flatpickr-calendar.inline {
  width: 100%;
  max-width: 100%;
  box-shadow: none;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 1rem;
}

.calendar-wrap .flatpickr-innerContainer,
.calendar-wrap .flatpickr-rContainer,
.calendar-wrap .flatpickr-days,
.calendar-wrap .dayContainer {
  width: 100%;
  min-width: 0;
  max-width: 100%;
}

.calendar-wrap .flatpickr-weekdays {
  width: 100%;
}

.calendar-wrap .flatpickr-day {
  flex-basis: 14.2857%;
  max-width: none;
  height: 44px;
  line-height: 42px;
  font-size: 1.05rem;
  border-radius: 8px;
}

.calendar-wrap .flatpickr-months .flatpickr-month {
  height: 44px;
}

.calendar-wrap .flatpickr-current-month {
  font-size: 1.15rem;
}

/* Vaba päev */
.calendar-wrap .flatpickr-day:not(.flatpickr-disabled):not(.prevMonthDay):not(.nextMonthDay) {
  background: #eef3ea;
  border-color: #eef3ea;
  color: var(--forest);
  font-weight: 600;
}

.calendar-wrap .flatpickr-day:not(.flatpickr-disabled):hover {
  background: var(--moss);
  border-color: var(--moss);
  color: #fff;
}

/* Valitud päev */
.calendar-wrap .flatpickr-day.selected,
.calendar-wrap .flatpickr-day.selected:hover {
  background: var(--forest) !important;
  border-color: var(--forest) !important;
  color: #fff !important;
}

/* Nädalavahetus / väljaspool lubatud vahemikku */
.calendar-wrap .flatpickr-day.flatpickr-disabled {
  color: #bbb5aa;
}

.legend {
  list-style: none;
  padding: 0;
  margin: 0.75rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.25rem;
  font-size: 1rem;
  color: var(--muted);
}

.legend-dot {
  display: inline-block;
  width: 1rem;
  height: 1rem;
  border-radius: 4px;
  vertical-align: -2px;
  border: 1px solid var(--border);
}

.legend-free   { background: #eef3ea; }
.legend-closed { background: #fff; }

.selected-date {
  margin: 0.75rem 0 0;
  font-weight: 600;
  color: var(--forest);
}

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

.gallery img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

/* ---------- Jalus ---------- */
.site-footer {
  background: var(--forest);
  color: #e8efe4;
  text-align: center;
  padding: 1.75rem 1rem;
}

.site-footer p {
  margin: 0;
}

/* =====================================================================
   LAI EKRAAN (üle 1400px): hinnad vasakul, tellimine paremal
   ===================================================================== */
@media (min-width: 1400px) {
  .page-grid {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 3rem;
    align-items: start;
    max-width: 1400px;
    margin: 0 auto;
    padding: 3.5rem 1.25rem 4.5rem;
  }

  .page-grid .section {
    padding: 0;
    background: none;
  }

  .page-grid .narrow {
    max-width: none;
    padding: 0;
  }

  /* Hinnad jäävad kerimisel nähtavale (ülariba alla) */
  .section-prices {
    position: sticky;
    top: 92px;
  }

  /* Galerii võtab mõlemad veerud */
  .gallery-section {
    grid-column: 1 / -1;
  }
}

/* =====================================================================
   VÄIKESED EKRAANID
   ===================================================================== */
@media (max-width: 575.98px) {
  .section {
    padding: 3rem 0;
  }

  .calendar-wrap .flatpickr-day {
    height: 40px;
    line-height: 38px;
  }
}
