/* Filo — reusable components: buttons, pills, mobile menu, FAQ accordion,
   booking modal and form. Behavior/styles mirror the approved reference. */

/* ---------- Buttons ---------- */

.nav-cta,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid var(--green);
  border-radius: 999px;
  padding: 12px 19px;
  font-weight: 700;
  font-size: .92rem;
  transition: .2s ease;
  cursor: pointer;
}

.nav-cta,
.btn-primary {
  background: var(--green);
  color: white;
}

.nav-cta:hover,
.btn-primary:hover {
  background: #163829;
  transform: translateY(-1px);
}

.btn-secondary {
  background: transparent;
  color: var(--ink);
}

.btn-secondary:hover {
  background: #eae8df;
}

/* ---------- Pills (trust strip) ---------- */

.pill {
  border: 1px solid #cbd1c7;
  border-radius: 999px;
  padding: 7px 12px;
  font-size: .82rem;
  color: #4d5a52;
}

/* ---------- Mobile menu ---------- */

.mobile-menu {
  display: none;
}

@media (max-width: 850px) {
  .mobile-menu.open {
    display: flex;
    flex-direction: column;
    padding: 4px 0 18px;
    gap: 14px;
  }

  .mobile-menu a:not(.btn) {
    padding: 6px 0;
    color: #46524b;
  }

  .mobile-menu .btn {
    align-self: flex-start;
  }
}

/* ---------- FAQ accordion (native details) ---------- */

details {
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
}

summary {
  cursor: pointer;
  font-weight: 700;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

/* T3 (approved): suppress Safari's native disclosure marker so only the
   designed + / − indicator shows. */
summary::-webkit-details-marker {
  display: none;
}

summary:after {
  content: "+";
  font-size: 1.3rem;
  color: var(--green);
}

details[open] summary:after {
  content: "−";
}

details p {
  color: var(--muted);
  margin: 12px 30px 0 0;
  font-size: .94rem;
}

/* ---------- Booking modal ---------- */

.modal-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 50;
  background: #101914a8;
  padding: 20px;
  overflow-y: auto;
  align-items: center;
  justify-content: center;
}

.modal-backdrop.open {
  display: flex;
}

.modal {
  background: var(--paper);
  width: min(640px, 100%);
  border-radius: 24px;
  padding: clamp(22px, 5vw, 38px);
  position: relative;
  max-height: calc(100vh - 40px);
  overflow: auto;
}

.modal-close {
  position: absolute;
  right: 18px;
  top: 16px;
  border: 0;
  background: #e7e6dd;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.25rem;
}

.modal h2 {
  font-size: 2.5rem;
  max-width: 480px;
}

.modal-intro {
  color: var(--muted);
}

/* ---------- Booking form ---------- */

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 22px;
}

.field {
  display: grid;
  gap: 6px;
}

.field.full {
  grid-column: 1/-1;
}

.field label {
  font-size: .83rem;
  font-weight: 750;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 13px;
  border: 1px solid #cbd1c7;
  background: var(--white);
  border-radius: 10px;
  color: var(--ink);
  outline: none;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px #244f3d18;
}

.field textarea {
  min-height: 90px;
  resize: vertical;
}

.form-note {
  font-size: .78rem;
  color: var(--muted);
}

.success {
  display: none;
  margin-top: 18px;
  border-radius: 12px;
  padding: 15px;
  background: #e2edda;
  color: #23432f;
}

.success.show {
  display: block;
}

.form-error {
  margin-top: 18px;
  border-radius: 12px;
  padding: 15px;
  background: #f6e3e0;
  color: #5a2320;
}

@media (max-width: 520px) {
  .form-grid {
    grid-template-columns: 1fr;
  }

  .field.full {
    grid-column: auto;
  }
}
